configure 699 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.5.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.5.1'
  518. PACKAGE_STRING='aria2 1.5.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_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. LIBOBJS
  583. POSUB
  584. LTLIBINTL
  585. LIBINTL
  586. INTLLIBS
  587. INTL_LIBTOOL_SUFFIX_PREFIX
  588. INTLOBJS
  589. GENCAT
  590. INSTOBJEXT
  591. DATADIRNAME
  592. CATOBJEXT
  593. USE_INCLUDED_LIBINTL
  594. BUILD_INCLUDED_LIBINTL
  595. LTLIBC
  596. WINDRES
  597. WOE32
  598. WOE32DLL
  599. HAVE_WPRINTF
  600. HAVE_SNPRINTF
  601. HAVE_ASPRINTF
  602. HAVE_POSIX_PRINTF
  603. INTL_MACOSX_LIBS
  604. GLIBC21
  605. INTLBISON
  606. LTLIBICONV
  607. LIBICONV
  608. LTLIBMULTITHREAD
  609. LIBMULTITHREAD
  610. LTLIBTHREAD
  611. LIBTHREAD
  612. LIBPTH_PREFIX
  613. LTLIBPTH
  614. LIBPTH
  615. PRI_MACROS_BROKEN
  616. HAVE_VISIBILITY
  617. CFLAG_VISIBILITY
  618. GLIBC2
  619. XGETTEXT_EXTRA_OPTIONS
  620. MSGMERGE
  621. XGETTEXT_015
  622. XGETTEXT
  623. GMSGFMT_015
  624. MSGFMT_015
  625. GMSGFMT
  626. MSGFMT
  627. GETTEXT_MACRO_VERSION
  628. USE_NLS
  629. ALLOCA
  630. HAVE_SQLITE3_FALSE
  631. HAVE_SQLITE3_TRUE
  632. HAVE_LIBZ_FALSE
  633. HAVE_LIBZ_TRUE
  634. ENABLE_ASYNC_DNS_FALSE
  635. ENABLE_ASYNC_DNS_TRUE
  636. HAVE_LIBEXPAT_FALSE
  637. HAVE_LIBEXPAT_TRUE
  638. HAVE_LIBXML2_FALSE
  639. HAVE_LIBXML2_TRUE
  640. ENABLE_XML_RPC_FALSE
  641. ENABLE_XML_RPC_TRUE
  642. ENABLE_METALINK_LIBEXPAT_FALSE
  643. ENABLE_METALINK_LIBEXPAT_TRUE
  644. ENABLE_METALINK_LIBXML2_FALSE
  645. ENABLE_METALINK_LIBXML2_TRUE
  646. ENABLE_METALINK_FALSE
  647. ENABLE_METALINK_TRUE
  648. ENABLE_BITTORRENT_FALSE
  649. ENABLE_BITTORRENT_TRUE
  650. ENABLE_MESSAGE_DIGEST_FALSE
  651. ENABLE_MESSAGE_DIGEST_TRUE
  652. HAVE_LIBSSL_FALSE
  653. HAVE_LIBSSL_TRUE
  654. HAVE_LIBGNUTLS_FALSE
  655. HAVE_LIBGNUTLS_TRUE
  656. ca_bundle
  657. ENABLE_SSL_FALSE
  658. ENABLE_SSL_TRUE
  659. LIBZ_CPPFLAGS
  660. LIBZ_LIBS
  661. LIBCARES_CPPFLAGS
  662. LIBCARES_LIBS
  663. OPENSSL_CFLAGS
  664. OPENSSL_LIBS
  665. LIBGCRYPT_LIBS
  666. LIBGCRYPT_CFLAGS
  667. LIBGCRYPT_CONFIG
  668. LIBGNUTLS_CONFIG
  669. LIBGNUTLS_LIBS
  670. LIBGNUTLS_CFLAGS
  671. SQLITE3_LIBS
  672. SQLITE3_CFLAGS
  673. PKG_CONFIG
  674. LIBEXPAT_CPPFLAGS
  675. LIBEXPAT_LIBS
  676. XML_LIBS
  677. XML_CPPFLAGS
  678. XML2_CONFIG
  679. EGREP
  680. GREP
  681. CXXCPP
  682. YFLAGS
  683. YACC
  684. RANLIB
  685. am__fastdepCC_FALSE
  686. am__fastdepCC_TRUE
  687. CCDEPMODE
  688. ac_ct_CC
  689. CFLAGS
  690. CC
  691. am__fastdepCXX_FALSE
  692. am__fastdepCXX_TRUE
  693. CXXDEPMODE
  694. AMDEPBACKSLASH
  695. AMDEP_FALSE
  696. AMDEP_TRUE
  697. am__quote
  698. am__include
  699. DEPDIR
  700. OBJEXT
  701. EXEEXT
  702. ac_ct_CXX
  703. CPPFLAGS
  704. LDFLAGS
  705. CXXFLAGS
  706. CXX
  707. WINSOCK_LIBS
  708. CPPUNIT_LIBS
  709. CPPUNIT_CFLAGS
  710. CPPUNIT_CONFIG
  711. am__untar
  712. am__tar
  713. AMTAR
  714. am__leading_dot
  715. SET_MAKE
  716. AWK
  717. mkdir_p
  718. MKDIR_P
  719. INSTALL_STRIP_PROGRAM
  720. STRIP
  721. install_sh
  722. MAKEINFO
  723. AUTOHEADER
  724. AUTOMAKE
  725. AUTOCONF
  726. ACLOCAL
  727. VERSION
  728. PACKAGE
  729. CYGPATH_W
  730. am__isrc
  731. INSTALL_DATA
  732. INSTALL_SCRIPT
  733. INSTALL_PROGRAM
  734. target_os
  735. target_vendor
  736. target_cpu
  737. target
  738. host_os
  739. host_vendor
  740. host_cpu
  741. host
  742. build_os
  743. build_vendor
  744. build_cpu
  745. build
  746. target_alias
  747. host_alias
  748. build_alias
  749. LIBS
  750. ECHO_T
  751. ECHO_N
  752. ECHO_C
  753. DEFS
  754. mandir
  755. localedir
  756. libdir
  757. psdir
  758. pdfdir
  759. dvidir
  760. htmldir
  761. infodir
  762. docdir
  763. oldincludedir
  764. includedir
  765. localstatedir
  766. sharedstatedir
  767. sysconfdir
  768. datadir
  769. datarootdir
  770. libexecdir
  771. sbindir
  772. bindir
  773. program_transform_name
  774. prefix
  775. exec_prefix
  776. PACKAGE_BUGREPORT
  777. PACKAGE_STRING
  778. PACKAGE_VERSION
  779. PACKAGE_TARNAME
  780. PACKAGE_NAME
  781. PATH_SEPARATOR
  782. SHELL'
  783. ac_subst_files=''
  784. ac_user_opts='
  785. enable_option_checking
  786. with_cppunit_prefix
  787. with_cppunit_exec_prefix
  788. with_gnutls
  789. with_openssl
  790. with_sqlite3
  791. with_libxml2
  792. with_libexpat
  793. with_libcares
  794. with_libz
  795. enable_bittorrent
  796. enable_metalink
  797. enable_epoll
  798. with_ca_bundle
  799. enable_dependency_tracking
  800. with_xml_prefix
  801. with_xml_exec_prefix
  802. enable_xmltest
  803. with_libexpat_prefix
  804. with_sqlite3_prefix
  805. with_libgnutls_prefix
  806. with_libgcrypt_prefix
  807. with_openssl_prefix
  808. with_libcares_prefix
  809. with_libz_prefix
  810. enable_largefile
  811. enable_nls
  812. enable_threads
  813. with_gnu_ld
  814. enable_rpath
  815. with_libpth_prefix
  816. with_libiconv_prefix
  817. with_included_gettext
  818. with_libintl_prefix
  819. '
  820. ac_precious_vars='build_alias
  821. host_alias
  822. target_alias
  823. CXX
  824. CXXFLAGS
  825. LDFLAGS
  826. LIBS
  827. CPPFLAGS
  828. CCC
  829. CC
  830. CFLAGS
  831. YACC
  832. YFLAGS
  833. CXXCPP
  834. PKG_CONFIG
  835. SQLITE3_CFLAGS
  836. SQLITE3_LIBS
  837. LIBGNUTLS_CFLAGS
  838. LIBGNUTLS_LIBS'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  934. { (exit 1); exit 1; }; }
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=no ;;
  945. -docdir | --docdir | --docdi | --doc | --do)
  946. ac_prev=docdir ;;
  947. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  948. docdir=$ac_optarg ;;
  949. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  950. ac_prev=dvidir ;;
  951. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  952. dvidir=$ac_optarg ;;
  953. -enable-* | --enable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  958. { (exit 1); exit 1; }; }
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1131. { (exit 1); exit 1; }; }
  1132. ac_useropt_orig=$ac_useropt
  1133. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1134. case $ac_user_opts in
  1135. *"
  1136. "with_$ac_useropt"
  1137. "*) ;;
  1138. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1139. ac_unrecognized_sep=', ';;
  1140. esac
  1141. eval with_$ac_useropt=\$ac_optarg ;;
  1142. -without-* | --without-*)
  1143. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1144. # Reject names that are not valid shell variable names.
  1145. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1146. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1147. { (exit 1); exit 1; }; }
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=no ;;
  1158. --x)
  1159. # Obsolete; use --with-x.
  1160. with_x=yes ;;
  1161. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1162. | --x-incl | --x-inc | --x-in | --x-i)
  1163. ac_prev=x_includes ;;
  1164. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1165. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1166. x_includes=$ac_optarg ;;
  1167. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1168. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1169. ac_prev=x_libraries ;;
  1170. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1171. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1172. x_libraries=$ac_optarg ;;
  1173. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1174. Try \`$0 --help' for more information." >&2
  1175. { (exit 1); exit 1; }; }
  1176. ;;
  1177. *=*)
  1178. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1179. # Reject names that are not valid shell variable names.
  1180. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1181. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1182. { (exit 1); exit 1; }; }
  1183. eval $ac_envvar=\$ac_optarg
  1184. export $ac_envvar ;;
  1185. *)
  1186. # FIXME: should be removed in autoconf 3.0.
  1187. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1191. ;;
  1192. esac
  1193. done
  1194. if test -n "$ac_prev"; then
  1195. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1197. { (exit 1); exit 1; }; }
  1198. fi
  1199. if test -n "$ac_unrecognized_opts"; then
  1200. case $enable_option_checking in
  1201. no) ;;
  1202. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1203. { (exit 1); exit 1; }; } ;;
  1204. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1205. esac
  1206. fi
  1207. # Check all directory arguments for consistency.
  1208. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209. datadir sysconfdir sharedstatedir localstatedir includedir \
  1210. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211. libdir localedir mandir
  1212. do
  1213. eval ac_val=\$$ac_var
  1214. # Remove trailing slashes.
  1215. case $ac_val in
  1216. */ )
  1217. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218. eval $ac_var=\$ac_val;;
  1219. esac
  1220. # Be sure to have absolute directory names.
  1221. case $ac_val in
  1222. [\\/$]* | ?:[\\/]* ) continue;;
  1223. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224. esac
  1225. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1226. { (exit 1); exit 1; }; }
  1227. done
  1228. # There might be people who depend on the old broken behavior: `$host'
  1229. # used to hold the argument of --host etc.
  1230. # FIXME: To remove some day.
  1231. build=$build_alias
  1232. host=$host_alias
  1233. target=$target_alias
  1234. # FIXME: To remove some day.
  1235. if test "x$host_alias" != x; then
  1236. if test "x$build_alias" = x; then
  1237. cross_compiling=maybe
  1238. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1239. If a cross compiler is detected then cross compile mode will be used." >&2
  1240. elif test "x$build_alias" != "x$host_alias"; then
  1241. cross_compiling=yes
  1242. fi
  1243. fi
  1244. ac_tool_prefix=
  1245. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1246. test "$silent" = yes && exec 6>/dev/null
  1247. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1248. ac_ls_di=`ls -di .` &&
  1249. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1250. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1251. { (exit 1); exit 1; }; }
  1252. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1253. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1254. { (exit 1); exit 1; }; }
  1255. # Find the source files, if location was not specified.
  1256. if test -z "$srcdir"; then
  1257. ac_srcdir_defaulted=yes
  1258. # Try the directory containing this script, then the parent directory.
  1259. ac_confdir=`$as_dirname -- "$as_myself" ||
  1260. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1261. X"$as_myself" : 'X\(//\)[^/]' \| \
  1262. X"$as_myself" : 'X\(//\)$' \| \
  1263. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1264. $as_echo X"$as_myself" |
  1265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)[^/].*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\/\)$/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\).*/{
  1278. s//\1/
  1279. q
  1280. }
  1281. s/.*/./; q'`
  1282. srcdir=$ac_confdir
  1283. if test ! -r "$srcdir/$ac_unique_file"; then
  1284. srcdir=..
  1285. fi
  1286. else
  1287. ac_srcdir_defaulted=no
  1288. fi
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1291. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1292. { (exit 1); exit 1; }; }
  1293. fi
  1294. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1295. ac_abs_confdir=`(
  1296. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1297. { (exit 1); exit 1; }; }
  1298. pwd)`
  1299. # When building in place, set srcdir=.
  1300. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1301. srcdir=.
  1302. fi
  1303. # Remove unnecessary trailing slashes from srcdir.
  1304. # Double slashes in file names in object file debugging info
  1305. # mess up M-x gdb in Emacs.
  1306. case $srcdir in
  1307. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1308. esac
  1309. for ac_var in $ac_precious_vars; do
  1310. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1311. eval ac_env_${ac_var}_value=\$${ac_var}
  1312. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1314. done
  1315. #
  1316. # Report the --help message.
  1317. #
  1318. if test "$ac_init_help" = "long"; then
  1319. # Omit some internal or obsolete options to make the list less imposing.
  1320. # This message is too long to be a string in the A/UX 3.1 sh.
  1321. cat <<_ACEOF
  1322. \`configure' configures aria2 1.5.1 to adapt to many kinds of systems.
  1323. Usage: $0 [OPTION]... [VAR=VALUE]...
  1324. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1325. VAR=VALUE. See below for descriptions of some of the useful variables.
  1326. Defaults for the options are specified in brackets.
  1327. Configuration:
  1328. -h, --help display this help and exit
  1329. --help=short display options specific to this package
  1330. --help=recursive display the short help of all the included packages
  1331. -V, --version display version information and exit
  1332. -q, --quiet, --silent do not print \`checking...' messages
  1333. --cache-file=FILE cache test results in FILE [disabled]
  1334. -C, --config-cache alias for \`--cache-file=config.cache'
  1335. -n, --no-create do not create output files
  1336. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1337. Installation directories:
  1338. --prefix=PREFIX install architecture-independent files in PREFIX
  1339. [$ac_default_prefix]
  1340. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1341. [PREFIX]
  1342. By default, \`make install' will install all the files in
  1343. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1344. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1345. for instance \`--prefix=\$HOME'.
  1346. For better control, use the options below.
  1347. Fine tuning of the installation directories:
  1348. --bindir=DIR user executables [EPREFIX/bin]
  1349. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1350. --libexecdir=DIR program executables [EPREFIX/libexec]
  1351. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1352. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1353. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1354. --libdir=DIR object code libraries [EPREFIX/lib]
  1355. --includedir=DIR C header files [PREFIX/include]
  1356. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1357. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1358. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1359. --infodir=DIR info documentation [DATAROOTDIR/info]
  1360. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1361. --mandir=DIR man documentation [DATAROOTDIR/man]
  1362. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1363. --htmldir=DIR html documentation [DOCDIR]
  1364. --dvidir=DIR dvi documentation [DOCDIR]
  1365. --pdfdir=DIR pdf documentation [DOCDIR]
  1366. --psdir=DIR ps documentation [DOCDIR]
  1367. _ACEOF
  1368. cat <<\_ACEOF
  1369. Program names:
  1370. --program-prefix=PREFIX prepend PREFIX to installed program names
  1371. --program-suffix=SUFFIX append SUFFIX to installed program names
  1372. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1373. System types:
  1374. --build=BUILD configure for building on BUILD [guessed]
  1375. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1376. --target=TARGET configure for building compilers for TARGET [HOST]
  1377. _ACEOF
  1378. fi
  1379. if test -n "$ac_init_help"; then
  1380. case $ac_init_help in
  1381. short | recursive ) echo "Configuration of aria2 1.5.1:";;
  1382. esac
  1383. cat <<\_ACEOF
  1384. Optional Features:
  1385. --disable-option-checking ignore unrecognized --enable/--with options
  1386. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1387. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1388. --enable-bittorrent enable bittorrent support.
  1389. --enable-metalink enable metalink support.
  1390. --enable-epoll enable epoll support.
  1391. --disable-dependency-tracking speeds up one-time build
  1392. --enable-dependency-tracking do not reject slow dependency extractors
  1393. --disable-xmltest Do not try to compile and run a test LIBXML program
  1394. --disable-largefile omit support for large files
  1395. --disable-nls do not use Native Language Support
  1396. --enable-threads={posix|solaris|pth|win32}
  1397. specify multithreading API
  1398. --disable-threads build without multithread safety
  1399. --disable-rpath do not hardcode runtime library paths
  1400. Optional Packages:
  1401. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1402. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1403. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1404. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1405. --with-gnutls use gnutls if it is installed.
  1406. --with-openssl use openssl if it is installed.
  1407. --with-sqlite3 use sqlite3 if it is installed.
  1408. --with-libxml2 use libxml2 if it is installed.
  1409. --with-libexpat use libexpat if it is installed.
  1410. --with-libcares use libcares if it is installed.
  1411. --with-libz use libz if it is installed.
  1412. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1413. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1414. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1415. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1416. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1417. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1418. --with-libgcrypt-prefix=PFX
  1419. prefix where LIBGCRYPT is installed (optional)
  1420. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1421. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1422. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1423. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1424. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1425. --without-libpth-prefix don't search for libpth in includedir and libdir
  1426. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1427. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1428. --with-included-gettext use the GNU gettext library included here
  1429. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1430. --without-libintl-prefix don't search for libintl in includedir and libdir
  1431. Some influential environment variables:
  1432. CXX C++ compiler command
  1433. CXXFLAGS C++ compiler flags
  1434. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1435. nonstandard directory <lib dir>
  1436. LIBS libraries to pass to the linker, e.g. -l<library>
  1437. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1438. you have headers in a nonstandard directory <include dir>
  1439. CC C compiler command
  1440. CFLAGS C compiler flags
  1441. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1442. the first program found out of: `bison -y', `byacc', `yacc'.
  1443. YFLAGS The list of arguments that will be passed by default to $YACC.
  1444. This script will default YFLAGS to the empty string to avoid a
  1445. default value of `-d' given by some make applications.
  1446. CXXCPP C++ preprocessor
  1447. PKG_CONFIG path to pkg-config utility
  1448. SQLITE3_CFLAGS
  1449. C compiler flags for SQLITE3, overriding pkg-config
  1450. SQLITE3_LIBS
  1451. linker flags for SQLITE3, overriding pkg-config
  1452. LIBGNUTLS_CFLAGS
  1453. C compiler flags for LIBGNUTLS, overriding pkg-config
  1454. LIBGNUTLS_LIBS
  1455. linker flags for LIBGNUTLS, overriding pkg-config
  1456. Use these variables to override the choices made by `configure' or to help
  1457. it to find libraries and programs with nonstandard names/locations.
  1458. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1459. _ACEOF
  1460. ac_status=$?
  1461. fi
  1462. if test "$ac_init_help" = "recursive"; then
  1463. # If there are subdirs, report their specific --help.
  1464. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1465. test -d "$ac_dir" ||
  1466. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1467. continue
  1468. ac_builddir=.
  1469. case "$ac_dir" in
  1470. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1471. *)
  1472. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1473. # A ".." for each directory in $ac_dir_suffix.
  1474. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1475. case $ac_top_builddir_sub in
  1476. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1477. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1478. esac ;;
  1479. esac
  1480. ac_abs_top_builddir=$ac_pwd
  1481. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1482. # for backward compatibility:
  1483. ac_top_builddir=$ac_top_build_prefix
  1484. case $srcdir in
  1485. .) # We are building in place.
  1486. ac_srcdir=.
  1487. ac_top_srcdir=$ac_top_builddir_sub
  1488. ac_abs_top_srcdir=$ac_pwd ;;
  1489. [\\/]* | ?:[\\/]* ) # Absolute name.
  1490. ac_srcdir=$srcdir$ac_dir_suffix;
  1491. ac_top_srcdir=$srcdir
  1492. ac_abs_top_srcdir=$srcdir ;;
  1493. *) # Relative name.
  1494. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1495. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1496. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1497. esac
  1498. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1499. cd "$ac_dir" || { ac_status=$?; continue; }
  1500. # Check for guested configure.
  1501. if test -f "$ac_srcdir/configure.gnu"; then
  1502. echo &&
  1503. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1504. elif test -f "$ac_srcdir/configure"; then
  1505. echo &&
  1506. $SHELL "$ac_srcdir/configure" --help=recursive
  1507. else
  1508. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1509. fi || ac_status=$?
  1510. cd "$ac_pwd" || { ac_status=$?; break; }
  1511. done
  1512. fi
  1513. test -n "$ac_init_help" && exit $ac_status
  1514. if $ac_init_version; then
  1515. cat <<\_ACEOF
  1516. aria2 configure 1.5.1
  1517. generated by GNU Autoconf 2.63
  1518. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1519. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1520. This configure script is free software; the Free Software Foundation
  1521. gives unlimited permission to copy, distribute and modify it.
  1522. _ACEOF
  1523. exit
  1524. fi
  1525. cat >config.log <<_ACEOF
  1526. This file contains any messages produced by compilers while
  1527. running configure, to aid debugging if configure makes a mistake.
  1528. It was created by aria2 $as_me 1.5.1, which was
  1529. generated by GNU Autoconf 2.63. Invocation command line was
  1530. $ $0 $@
  1531. _ACEOF
  1532. exec 5>>config.log
  1533. {
  1534. cat <<_ASUNAME
  1535. ## --------- ##
  1536. ## Platform. ##
  1537. ## --------- ##
  1538. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1539. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1540. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1541. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1542. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1543. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1544. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1545. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1546. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1547. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1548. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1549. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1550. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1551. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1552. _ASUNAME
  1553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1554. for as_dir in $PATH
  1555. do
  1556. IFS=$as_save_IFS
  1557. test -z "$as_dir" && as_dir=.
  1558. $as_echo "PATH: $as_dir"
  1559. done
  1560. IFS=$as_save_IFS
  1561. } >&5
  1562. cat >&5 <<_ACEOF
  1563. ## ----------- ##
  1564. ## Core tests. ##
  1565. ## ----------- ##
  1566. _ACEOF
  1567. # Keep a trace of the command line.
  1568. # Strip out --no-create and --no-recursion so they do not pile up.
  1569. # Strip out --silent because we don't want to record it for future runs.
  1570. # Also quote any args containing shell meta-characters.
  1571. # Make two passes to allow for proper duplicate-argument suppression.
  1572. ac_configure_args=
  1573. ac_configure_args0=
  1574. ac_configure_args1=
  1575. ac_must_keep_next=false
  1576. for ac_pass in 1 2
  1577. do
  1578. for ac_arg
  1579. do
  1580. case $ac_arg in
  1581. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1582. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1583. | -silent | --silent | --silen | --sile | --sil)
  1584. continue ;;
  1585. *\'*)
  1586. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1587. esac
  1588. case $ac_pass in
  1589. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1590. 2)
  1591. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1592. if test $ac_must_keep_next = true; then
  1593. ac_must_keep_next=false # Got value, back to normal.
  1594. else
  1595. case $ac_arg in
  1596. *=* | --config-cache | -C | -disable-* | --disable-* \
  1597. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1598. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1599. | -with-* | --with-* | -without-* | --without-* | --x)
  1600. case "$ac_configure_args0 " in
  1601. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1602. esac
  1603. ;;
  1604. -* ) ac_must_keep_next=true ;;
  1605. esac
  1606. fi
  1607. ac_configure_args="$ac_configure_args '$ac_arg'"
  1608. ;;
  1609. esac
  1610. done
  1611. done
  1612. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1613. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1614. # When interrupted or exit'd, cleanup temporary files, and complete
  1615. # config.log. We remove comments because anyway the quotes in there
  1616. # would cause problems or look ugly.
  1617. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1618. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1619. trap 'exit_status=$?
  1620. # Save into config.log some information that might help in debugging.
  1621. {
  1622. echo
  1623. cat <<\_ASBOX
  1624. ## ---------------- ##
  1625. ## Cache variables. ##
  1626. ## ---------------- ##
  1627. _ASBOX
  1628. echo
  1629. # The following way of writing the cache mishandles newlines in values,
  1630. (
  1631. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1632. eval ac_val=\$$ac_var
  1633. case $ac_val in #(
  1634. *${as_nl}*)
  1635. case $ac_var in #(
  1636. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1637. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1638. esac
  1639. case $ac_var in #(
  1640. _ | IFS | as_nl) ;; #(
  1641. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1642. *) $as_unset $ac_var ;;
  1643. esac ;;
  1644. esac
  1645. done
  1646. (set) 2>&1 |
  1647. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1648. *${as_nl}ac_space=\ *)
  1649. sed -n \
  1650. "s/'\''/'\''\\\\'\'''\''/g;
  1651. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1652. ;; #(
  1653. *)
  1654. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1655. ;;
  1656. esac |
  1657. sort
  1658. )
  1659. echo
  1660. cat <<\_ASBOX
  1661. ## ----------------- ##
  1662. ## Output variables. ##
  1663. ## ----------------- ##
  1664. _ASBOX
  1665. echo
  1666. for ac_var in $ac_subst_vars
  1667. do
  1668. eval ac_val=\$$ac_var
  1669. case $ac_val in
  1670. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1671. esac
  1672. $as_echo "$ac_var='\''$ac_val'\''"
  1673. done | sort
  1674. echo
  1675. if test -n "$ac_subst_files"; then
  1676. cat <<\_ASBOX
  1677. ## ------------------- ##
  1678. ## File substitutions. ##
  1679. ## ------------------- ##
  1680. _ASBOX
  1681. echo
  1682. for ac_var in $ac_subst_files
  1683. do
  1684. eval ac_val=\$$ac_var
  1685. case $ac_val in
  1686. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1687. esac
  1688. $as_echo "$ac_var='\''$ac_val'\''"
  1689. done | sort
  1690. echo
  1691. fi
  1692. if test -s confdefs.h; then
  1693. cat <<\_ASBOX
  1694. ## ----------- ##
  1695. ## confdefs.h. ##
  1696. ## ----------- ##
  1697. _ASBOX
  1698. echo
  1699. cat confdefs.h
  1700. echo
  1701. fi
  1702. test "$ac_signal" != 0 &&
  1703. $as_echo "$as_me: caught signal $ac_signal"
  1704. $as_echo "$as_me: exit $exit_status"
  1705. } >&5
  1706. rm -f core *.core core.conftest.* &&
  1707. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1708. exit $exit_status
  1709. ' 0
  1710. for ac_signal in 1 2 13 15; do
  1711. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1712. done
  1713. ac_signal=0
  1714. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1715. rm -f -r conftest* confdefs.h
  1716. # Predefined preprocessor variables.
  1717. cat >>confdefs.h <<_ACEOF
  1718. #define PACKAGE_NAME "$PACKAGE_NAME"
  1719. _ACEOF
  1720. cat >>confdefs.h <<_ACEOF
  1721. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1722. _ACEOF
  1723. cat >>confdefs.h <<_ACEOF
  1724. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1725. _ACEOF
  1726. cat >>confdefs.h <<_ACEOF
  1727. #define PACKAGE_STRING "$PACKAGE_STRING"
  1728. _ACEOF
  1729. cat >>confdefs.h <<_ACEOF
  1730. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1731. _ACEOF
  1732. # Let the site file select an alternate cache file if it wants to.
  1733. # Prefer an explicitly selected file to automatically selected ones.
  1734. ac_site_file1=NONE
  1735. ac_site_file2=NONE
  1736. if test -n "$CONFIG_SITE"; then
  1737. ac_site_file1=$CONFIG_SITE
  1738. elif test "x$prefix" != xNONE; then
  1739. ac_site_file1=$prefix/share/config.site
  1740. ac_site_file2=$prefix/etc/config.site
  1741. else
  1742. ac_site_file1=$ac_default_prefix/share/config.site
  1743. ac_site_file2=$ac_default_prefix/etc/config.site
  1744. fi
  1745. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1746. do
  1747. test "x$ac_site_file" = xNONE && continue
  1748. if test -r "$ac_site_file"; then
  1749. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1750. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1751. sed 's/^/| /' "$ac_site_file" >&5
  1752. . "$ac_site_file"
  1753. fi
  1754. done
  1755. if test -r "$cache_file"; then
  1756. # Some versions of bash will fail to source /dev/null (special
  1757. # files actually), so we avoid doing that.
  1758. if test -f "$cache_file"; then
  1759. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1760. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1761. case $cache_file in
  1762. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1763. *) . "./$cache_file";;
  1764. esac
  1765. fi
  1766. else
  1767. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1768. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1769. >$cache_file
  1770. fi
  1771. gt_needs="$gt_needs "
  1772. ac_header_list="$ac_header_list sys/time.h"
  1773. ac_header_list="$ac_header_list unistd.h"
  1774. ac_func_list="$ac_func_list alarm"
  1775. # Check that the precious variables saved in the cache have kept the same
  1776. # value.
  1777. ac_cache_corrupted=false
  1778. for ac_var in $ac_precious_vars; do
  1779. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1780. eval ac_new_set=\$ac_env_${ac_var}_set
  1781. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1782. eval ac_new_val=\$ac_env_${ac_var}_value
  1783. case $ac_old_set,$ac_new_set in
  1784. set,)
  1785. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1786. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1787. ac_cache_corrupted=: ;;
  1788. ,set)
  1789. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1790. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1791. ac_cache_corrupted=: ;;
  1792. ,);;
  1793. *)
  1794. if test "x$ac_old_val" != "x$ac_new_val"; then
  1795. # differences in whitespace do not lead to failure.
  1796. ac_old_val_w=`echo x $ac_old_val`
  1797. ac_new_val_w=`echo x $ac_new_val`
  1798. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1799. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1800. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1801. ac_cache_corrupted=:
  1802. else
  1803. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1804. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1805. eval $ac_var=\$ac_old_val
  1806. fi
  1807. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1808. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1809. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1810. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1811. fi;;
  1812. esac
  1813. # Pass precious variables to config.status.
  1814. if test "$ac_new_set" = set; then
  1815. case $ac_new_val in
  1816. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1817. *) ac_arg=$ac_var=$ac_new_val ;;
  1818. esac
  1819. case " $ac_configure_args " in
  1820. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1821. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1822. esac
  1823. fi
  1824. done
  1825. if $ac_cache_corrupted; then
  1826. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1828. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1829. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1830. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1831. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1832. { (exit 1); exit 1; }; }
  1833. fi
  1834. ac_ext=c
  1835. ac_cpp='$CPP $CPPFLAGS'
  1836. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1837. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1838. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1839. ac_aux_dir=
  1840. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1841. if test -f "$ac_dir/install-sh"; then
  1842. ac_aux_dir=$ac_dir
  1843. ac_install_sh="$ac_aux_dir/install-sh -c"
  1844. break
  1845. elif test -f "$ac_dir/install.sh"; then
  1846. ac_aux_dir=$ac_dir
  1847. ac_install_sh="$ac_aux_dir/install.sh -c"
  1848. break
  1849. elif test -f "$ac_dir/shtool"; then
  1850. ac_aux_dir=$ac_dir
  1851. ac_install_sh="$ac_aux_dir/shtool install -c"
  1852. break
  1853. fi
  1854. done
  1855. if test -z "$ac_aux_dir"; then
  1856. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1857. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1858. { (exit 1); exit 1; }; }
  1859. fi
  1860. # These three variables are undocumented and unsupported,
  1861. # and are intended to be withdrawn in a future Autoconf release.
  1862. # They can cause serious problems if a builder's source tree is in a directory
  1863. # whose full name contains unusual characters.
  1864. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1865. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1866. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1867. # Make sure we can run config.sub.
  1868. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1869. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1870. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1871. { (exit 1); exit 1; }; }
  1872. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1873. $as_echo_n "checking build system type... " >&6; }
  1874. if test "${ac_cv_build+set}" = set; then
  1875. $as_echo_n "(cached) " >&6
  1876. else
  1877. ac_build_alias=$build_alias
  1878. test "x$ac_build_alias" = x &&
  1879. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1880. test "x$ac_build_alias" = x &&
  1881. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1882. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1883. { (exit 1); exit 1; }; }
  1884. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1885. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1886. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1887. { (exit 1); exit 1; }; }
  1888. fi
  1889. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1890. $as_echo "$ac_cv_build" >&6; }
  1891. case $ac_cv_build in
  1892. *-*-*) ;;
  1893. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1894. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1895. { (exit 1); exit 1; }; };;
  1896. esac
  1897. build=$ac_cv_build
  1898. ac_save_IFS=$IFS; IFS='-'
  1899. set x $ac_cv_build
  1900. shift
  1901. build_cpu=$1
  1902. build_vendor=$2
  1903. shift; shift
  1904. # Remember, the first character of IFS is used to create $*,
  1905. # except with old shells:
  1906. build_os=$*
  1907. IFS=$ac_save_IFS
  1908. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1909. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1910. $as_echo_n "checking host system type... " >&6; }
  1911. if test "${ac_cv_host+set}" = set; then
  1912. $as_echo_n "(cached) " >&6
  1913. else
  1914. if test "x$host_alias" = x; then
  1915. ac_cv_host=$ac_cv_build
  1916. else
  1917. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1918. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1919. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1920. { (exit 1); exit 1; }; }
  1921. fi
  1922. fi
  1923. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1924. $as_echo "$ac_cv_host" >&6; }
  1925. case $ac_cv_host in
  1926. *-*-*) ;;
  1927. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1928. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1929. { (exit 1); exit 1; }; };;
  1930. esac
  1931. host=$ac_cv_host
  1932. ac_save_IFS=$IFS; IFS='-'
  1933. set x $ac_cv_host
  1934. shift
  1935. host_cpu=$1
  1936. host_vendor=$2
  1937. shift; shift
  1938. # Remember, the first character of IFS is used to create $*,
  1939. # except with old shells:
  1940. host_os=$*
  1941. IFS=$ac_save_IFS
  1942. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1943. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1944. $as_echo_n "checking target system type... " >&6; }
  1945. if test "${ac_cv_target+set}" = set; then
  1946. $as_echo_n "(cached) " >&6
  1947. else
  1948. if test "x$target_alias" = x; then
  1949. ac_cv_target=$ac_cv_host
  1950. else
  1951. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1952. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1953. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1954. { (exit 1); exit 1; }; }
  1955. fi
  1956. fi
  1957. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1958. $as_echo "$ac_cv_target" >&6; }
  1959. case $ac_cv_target in
  1960. *-*-*) ;;
  1961. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1962. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1963. { (exit 1); exit 1; }; };;
  1964. esac
  1965. target=$ac_cv_target
  1966. ac_save_IFS=$IFS; IFS='-'
  1967. set x $ac_cv_target
  1968. shift
  1969. target_cpu=$1
  1970. target_vendor=$2
  1971. shift; shift
  1972. # Remember, the first character of IFS is used to create $*,
  1973. # except with old shells:
  1974. target_os=$*
  1975. IFS=$ac_save_IFS
  1976. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1977. # The aliases save the names the user supplied, while $host etc.
  1978. # will get canonicalized.
  1979. test -n "$target_alias" &&
  1980. test "$program_prefix$program_suffix$program_transform_name" = \
  1981. NONENONEs,x,x, &&
  1982. program_prefix=${target_alias}-
  1983. am__api_version='1.10'
  1984. # Find a good install program. We prefer a C program (faster),
  1985. # so one script is as good as another. But avoid the broken or
  1986. # incompatible versions:
  1987. # SysV /etc/install, /usr/sbin/install
  1988. # SunOS /usr/etc/install
  1989. # IRIX /sbin/install
  1990. # AIX /bin/install
  1991. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1992. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1993. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1994. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1995. # OS/2's system install, which has a completely different semantic
  1996. # ./install, which can be erroneously created by make from ./install.sh.
  1997. # Reject install programs that cannot install multiple files.
  1998. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1999. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2000. if test -z "$INSTALL"; then
  2001. if test "${ac_cv_path_install+set}" = set; then
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2005. for as_dir in $PATH
  2006. do
  2007. IFS=$as_save_IFS
  2008. test -z "$as_dir" && as_dir=.
  2009. # Account for people who put trailing slashes in PATH elements.
  2010. case $as_dir/ in
  2011. ./ | .// | /cC/* | \
  2012. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2013. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2014. /usr/ucb/* ) ;;
  2015. *)
  2016. # OSF1 and SCO ODT 3.0 have their own names for install.
  2017. # Don't use installbsd from OSF since it installs stuff as root
  2018. # by default.
  2019. for ac_prog in ginstall scoinst install; do
  2020. for ac_exec_ext in '' $ac_executable_extensions; do
  2021. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2022. if test $ac_prog = install &&
  2023. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2024. # AIX install. It has an incompatible calling convention.
  2025. :
  2026. elif test $ac_prog = install &&
  2027. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2028. # program-specific install script used by HP pwplus--don't use.
  2029. :
  2030. else
  2031. rm -rf conftest.one conftest.two conftest.dir
  2032. echo one > conftest.one
  2033. echo two > conftest.two
  2034. mkdir conftest.dir
  2035. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2036. test -s conftest.one && test -s conftest.two &&
  2037. test -s conftest.dir/conftest.one &&
  2038. test -s conftest.dir/conftest.two
  2039. then
  2040. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2041. break 3
  2042. fi
  2043. fi
  2044. fi
  2045. done
  2046. done
  2047. ;;
  2048. esac
  2049. done
  2050. IFS=$as_save_IFS
  2051. rm -rf conftest.one conftest.two conftest.dir
  2052. fi
  2053. if test "${ac_cv_path_install+set}" = set; then
  2054. INSTALL=$ac_cv_path_install
  2055. else
  2056. # As a last resort, use the slow shell script. Don't cache a
  2057. # value for INSTALL within a source directory, because that will
  2058. # break other packages using the cache if that directory is
  2059. # removed, or if the value is a relative name.
  2060. INSTALL=$ac_install_sh
  2061. fi
  2062. fi
  2063. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2064. $as_echo "$INSTALL" >&6; }
  2065. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2066. # It thinks the first close brace ends the variable substitution.
  2067. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2068. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2069. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2070. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2071. $as_echo_n "checking whether build environment is sane... " >&6; }
  2072. # Just in case
  2073. sleep 1
  2074. echo timestamp > conftest.file
  2075. # Do `set' in a subshell so we don't clobber the current shell's
  2076. # arguments. Must try -L first in case configure is actually a
  2077. # symlink; some systems play weird games with the mod time of symlinks
  2078. # (eg FreeBSD returns the mod time of the symlink's containing
  2079. # directory).
  2080. if (
  2081. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2082. if test "$*" = "X"; then
  2083. # -L didn't work.
  2084. set X `ls -t $srcdir/configure conftest.file`
  2085. fi
  2086. rm -f conftest.file
  2087. if test "$*" != "X $srcdir/configure conftest.file" \
  2088. && test "$*" != "X conftest.file $srcdir/configure"; then
  2089. # If neither matched, then we have a broken ls. This can happen
  2090. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2091. # broken ls alias from the environment. This has actually
  2092. # happened. Such a system could not be considered "sane".
  2093. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2094. alias in your environment" >&5
  2095. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2096. alias in your environment" >&2;}
  2097. { (exit 1); exit 1; }; }
  2098. fi
  2099. test "$2" = conftest.file
  2100. )
  2101. then
  2102. # Ok.
  2103. :
  2104. else
  2105. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2106. Check your system clock" >&5
  2107. $as_echo "$as_me: error: newly created file is older than distributed files!
  2108. Check your system clock" >&2;}
  2109. { (exit 1); exit 1; }; }
  2110. fi
  2111. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2112. $as_echo "yes" >&6; }
  2113. test "$program_prefix" != NONE &&
  2114. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2115. # Use a double $ so make ignores it.
  2116. test "$program_suffix" != NONE &&
  2117. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2118. # Double any \ or $.
  2119. # By default was `s,x,x', remove it if useless.
  2120. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2121. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2122. # expand $ac_aux_dir to an absolute path
  2123. am_aux_dir=`cd $ac_aux_dir && pwd`
  2124. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2125. # Use eval to expand $SHELL
  2126. if eval "$MISSING --run true"; then
  2127. am_missing_run="$MISSING --run "
  2128. else
  2129. am_missing_run=
  2130. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2131. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2132. fi
  2133. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2134. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2135. if test -z "$MKDIR_P"; then
  2136. if test "${ac_cv_path_mkdir+set}" = set; then
  2137. $as_echo_n "(cached) " >&6
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_prog in mkdir gmkdir; do
  2145. for ac_exec_ext in '' $ac_executable_extensions; do
  2146. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2147. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2148. 'mkdir (GNU coreutils) '* | \
  2149. 'mkdir (coreutils) '* | \
  2150. 'mkdir (fileutils) '4.1*)
  2151. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2152. break 3;;
  2153. esac
  2154. done
  2155. done
  2156. done
  2157. IFS=$as_save_IFS
  2158. fi
  2159. if test "${ac_cv_path_mkdir+set}" = set; then
  2160. MKDIR_P="$ac_cv_path_mkdir -p"
  2161. else
  2162. # As a last resort, use the slow shell script. Don't cache a
  2163. # value for MKDIR_P within a source directory, because that will
  2164. # break other packages using the cache if that directory is
  2165. # removed, or if the value is a relative name.
  2166. test -d ./--version && rmdir ./--version
  2167. MKDIR_P="$ac_install_sh -d"
  2168. fi
  2169. fi
  2170. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2171. $as_echo "$MKDIR_P" >&6; }
  2172. mkdir_p="$MKDIR_P"
  2173. case $mkdir_p in
  2174. [\\/$]* | ?:[\\/]*) ;;
  2175. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2176. esac
  2177. for ac_prog in gawk mawk nawk awk
  2178. do
  2179. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2180. set dummy $ac_prog; ac_word=$2
  2181. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2182. $as_echo_n "checking for $ac_word... " >&6; }
  2183. if test "${ac_cv_prog_AWK+set}" = set; then
  2184. $as_echo_n "(cached) " >&6
  2185. else
  2186. if test -n "$AWK"; then
  2187. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2188. else
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. for ac_exec_ext in '' $ac_executable_extensions; do
  2195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2196. ac_cv_prog_AWK="$ac_prog"
  2197. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2198. break 2
  2199. fi
  2200. done
  2201. done
  2202. IFS=$as_save_IFS
  2203. fi
  2204. fi
  2205. AWK=$ac_cv_prog_AWK
  2206. if test -n "$AWK"; then
  2207. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2208. $as_echo "$AWK" >&6; }
  2209. else
  2210. { $as_echo "$as_me:$LINENO: result: no" >&5
  2211. $as_echo "no" >&6; }
  2212. fi
  2213. test -n "$AWK" && break
  2214. done
  2215. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2216. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2217. set x ${MAKE-make}
  2218. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2219. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. cat >conftest.make <<\_ACEOF
  2223. SHELL = /bin/sh
  2224. all:
  2225. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2226. _ACEOF
  2227. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2228. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2229. *@@@%%%=?*=@@@%%%*)
  2230. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2231. *)
  2232. eval ac_cv_prog_make_${ac_make}_set=no;;
  2233. esac
  2234. rm -f conftest.make
  2235. fi
  2236. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2237. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2238. $as_echo "yes" >&6; }
  2239. SET_MAKE=
  2240. else
  2241. { $as_echo "$as_me:$LINENO: result: no" >&5
  2242. $as_echo "no" >&6; }
  2243. SET_MAKE="MAKE=${MAKE-make}"
  2244. fi
  2245. rm -rf .tst 2>/dev/null
  2246. mkdir .tst 2>/dev/null
  2247. if test -d .tst; then
  2248. am__leading_dot=.
  2249. else
  2250. am__leading_dot=_
  2251. fi
  2252. rmdir .tst 2>/dev/null
  2253. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2254. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2255. # is not polluted with repeated "-I."
  2256. am__isrc=' -I$(srcdir)'
  2257. # test to see if srcdir already configured
  2258. if test -f $srcdir/config.status; then
  2259. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2260. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2261. { (exit 1); exit 1; }; }
  2262. fi
  2263. fi
  2264. # test whether we have cygpath
  2265. if test -z "$CYGPATH_W"; then
  2266. if (cygpath --version) >/dev/null 2>/dev/null; then
  2267. CYGPATH_W='cygpath -w'
  2268. else
  2269. CYGPATH_W=echo
  2270. fi
  2271. fi
  2272. # Define the identity of the package.
  2273. PACKAGE='aria2'
  2274. VERSION='1.5.1'
  2275. cat >>confdefs.h <<_ACEOF
  2276. #define PACKAGE "$PACKAGE"
  2277. _ACEOF
  2278. cat >>confdefs.h <<_ACEOF
  2279. #define VERSION "$VERSION"
  2280. _ACEOF
  2281. # Some tools Automake needs.
  2282. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2283. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2284. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2285. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2286. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2287. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2288. # Installed binaries are usually stripped using `strip' when the user
  2289. # run `make install-strip'. However `strip' might not be the right
  2290. # tool to use in cross-compilation environments, therefore Automake
  2291. # will honor the `STRIP' environment variable to overrule this program.
  2292. if test "$cross_compiling" != no; then
  2293. if test -n "$ac_tool_prefix"; then
  2294. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2295. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2296. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2297. $as_echo_n "checking for $ac_word... " >&6; }
  2298. if test "${ac_cv_prog_STRIP+set}" = set; then
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. if test -n "$STRIP"; then
  2302. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2311. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2312. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. fi
  2319. fi
  2320. STRIP=$ac_cv_prog_STRIP
  2321. if test -n "$STRIP"; then
  2322. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2323. $as_echo "$STRIP" >&6; }
  2324. else
  2325. { $as_echo "$as_me:$LINENO: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. fi
  2328. fi
  2329. if test -z "$ac_cv_prog_STRIP"; then
  2330. ac_ct_STRIP=$STRIP
  2331. # Extract the first word of "strip", so it can be a program name with args.
  2332. set dummy strip; ac_word=$2
  2333. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2334. $as_echo_n "checking for $ac_word... " >&6; }
  2335. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2336. $as_echo_n "(cached) " >&6
  2337. else
  2338. if test -n "$ac_ct_STRIP"; then
  2339. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_ac_ct_STRIP="strip"
  2349. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2358. if test -n "$ac_ct_STRIP"; then
  2359. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2360. $as_echo "$ac_ct_STRIP" >&6; }
  2361. else
  2362. { $as_echo "$as_me:$LINENO: result: no" >&5
  2363. $as_echo "no" >&6; }
  2364. fi
  2365. if test "x$ac_ct_STRIP" = x; then
  2366. STRIP=":"
  2367. else
  2368. case $cross_compiling:$ac_tool_warned in
  2369. yes:)
  2370. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2372. ac_tool_warned=yes ;;
  2373. esac
  2374. STRIP=$ac_ct_STRIP
  2375. fi
  2376. else
  2377. STRIP="$ac_cv_prog_STRIP"
  2378. fi
  2379. fi
  2380. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2381. # We need awk for the "check" target. The system "awk" is bad on
  2382. # some platforms.
  2383. # Always define AMTAR for backward compatibility.
  2384. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2385. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2386. # Check whether --with-cppunit-prefix was given.
  2387. if test "${with_cppunit_prefix+set}" = set; then
  2388. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2389. else
  2390. cppunit_config_prefix=""
  2391. fi
  2392. # Check whether --with-cppunit-exec-prefix was given.
  2393. if test "${with_cppunit_exec_prefix+set}" = set; then
  2394. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2395. else
  2396. cppunit_config_exec_prefix=""
  2397. fi
  2398. if test x$cppunit_config_exec_prefix != x ; then
  2399. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2400. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2401. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2402. fi
  2403. fi
  2404. if test x$cppunit_config_prefix != x ; then
  2405. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2406. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2407. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2408. fi
  2409. fi
  2410. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2411. set dummy cppunit-config; ac_word=$2
  2412. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2413. $as_echo_n "checking for $ac_word... " >&6; }
  2414. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. case $CPPUNIT_CONFIG in
  2418. [\\/]* | ?:[\\/]*)
  2419. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2420. ;;
  2421. *)
  2422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2423. for as_dir in $PATH
  2424. do
  2425. IFS=$as_save_IFS
  2426. test -z "$as_dir" && as_dir=.
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2429. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2430. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2437. ;;
  2438. esac
  2439. fi
  2440. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2441. if test -n "$CPPUNIT_CONFIG"; then
  2442. { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2443. $as_echo "$CPPUNIT_CONFIG" >&6; }
  2444. else
  2445. { $as_echo "$as_me:$LINENO: result: no" >&5
  2446. $as_echo "no" >&6; }
  2447. fi
  2448. cppunit_version_min=1.10.2
  2449. { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2450. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  2451. no_cppunit=""
  2452. if test "$CPPUNIT_CONFIG" = "no" ; then
  2453. { $as_echo "$as_me:$LINENO: result: no" >&5
  2454. $as_echo "no" >&6; }
  2455. no_cppunit=yes
  2456. else
  2457. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2458. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2459. cppunit_version=`$CPPUNIT_CONFIG --version`
  2460. cppunit_major_version=`echo $cppunit_version | \
  2461. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2462. cppunit_minor_version=`echo $cppunit_version | \
  2463. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2464. cppunit_micro_version=`echo $cppunit_version | \
  2465. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2466. cppunit_major_min=`echo $cppunit_version_min | \
  2467. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2468. if test "x${cppunit_major_min}" = "x" ; then
  2469. cppunit_major_min=0
  2470. fi
  2471. cppunit_minor_min=`echo $cppunit_version_min | \
  2472. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2473. if test "x${cppunit_minor_min}" = "x" ; then
  2474. cppunit_minor_min=0
  2475. fi
  2476. cppunit_micro_min=`echo $cppunit_version_min | \
  2477. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2478. if test "x${cppunit_micro_min}" = "x" ; then
  2479. cppunit_micro_min=0
  2480. fi
  2481. cppunit_version_proper=`expr \
  2482. $cppunit_major_version \> $cppunit_major_min \| \
  2483. $cppunit_major_version \= $cppunit_major_min \& \
  2484. $cppunit_minor_version \> $cppunit_minor_min \| \
  2485. $cppunit_major_version \= $cppunit_major_min \& \
  2486. $cppunit_minor_version \= $cppunit_minor_min \& \
  2487. $cppunit_micro_version \>= $cppunit_micro_min `
  2488. if test "$cppunit_version_proper" = "1" ; then
  2489. { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2490. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2491. else
  2492. { $as_echo "$as_me:$LINENO: result: no" >&5
  2493. $as_echo "no" >&6; }
  2494. no_cppunit=yes
  2495. fi
  2496. fi
  2497. if test "x$no_cppunit" = x ; then
  2498. :
  2499. else
  2500. CPPUNIT_CFLAGS=""
  2501. CPPUNIT_LIBS=""
  2502. :
  2503. fi
  2504. ac_config_headers="$ac_config_headers config.h"
  2505. case "$target" in
  2506. *mingw*|*cygwin*)
  2507. WINSOCK_LIBS="-lws2_32 -lpthread"
  2508. ;;
  2509. esac
  2510. cat >>confdefs.h <<_ACEOF
  2511. #define TARGET "$target"
  2512. _ACEOF
  2513. # Set localedir
  2514. localedir=${datadir}/locale
  2515. # Checks for arguments.
  2516. # Check whether --with-gnutls was given.
  2517. if test "${with_gnutls+set}" = set; then
  2518. withval=$with_gnutls; with_gnutls=$withval
  2519. else
  2520. with_gnutls=yes
  2521. fi
  2522. # Check whether --with-openssl was given.
  2523. if test "${with_openssl+set}" = set; then
  2524. withval=$with_openssl; with_openssl=$withval
  2525. else
  2526. with_openssl=yes
  2527. fi
  2528. # Check whether --with-sqlite3 was given.
  2529. if test "${with_sqlite3+set}" = set; then
  2530. withval=$with_sqlite3; with_sqlite3=$withval
  2531. else
  2532. with_sqlite3=yes
  2533. fi
  2534. # Check whether --with-libxml2 was given.
  2535. if test "${with_libxml2+set}" = set; then
  2536. withval=$with_libxml2; with_libxml2=$withval
  2537. else
  2538. with_libxml2=yes
  2539. fi
  2540. # Check whether --with-libexpat was given.
  2541. if test "${with_libexpat+set}" = set; then
  2542. withval=$with_libexpat; with_libexpat=$withval
  2543. else
  2544. with_libexpat=yes
  2545. fi
  2546. # Check whether --with-libcares was given.
  2547. if test "${with_libcares+set}" = set; then
  2548. withval=$with_libcares; with_libcares=$withval
  2549. else
  2550. with_libcares=yes
  2551. fi
  2552. # Check whether --with-libz was given.
  2553. if test "${with_libz+set}" = set; then
  2554. withval=$with_libz; with_libz=$withval
  2555. else
  2556. with_libz=yes
  2557. fi
  2558. # Check whether --enable-bittorrent was given.
  2559. if test "${enable_bittorrent+set}" = set; then
  2560. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2561. else
  2562. enable_bittorrent=yes
  2563. fi
  2564. # Check whether --enable-metalink was given.
  2565. if test "${enable_metalink+set}" = set; then
  2566. enableval=$enable_metalink; enable_metalink=$enableval
  2567. else
  2568. enable_metalink=yes
  2569. fi
  2570. # Check whether --enable-epoll was given.
  2571. if test "${enable_epoll+set}" = set; then
  2572. enableval=$enable_epoll; enable_epoll=$enableval
  2573. else
  2574. enable_epoll=yes
  2575. fi
  2576. # Check whether --with-ca-bundle was given.
  2577. if test "${with_ca_bundle+set}" = set; then
  2578. withval=$with_ca_bundle; ca_bundle=$withval
  2579. else
  2580. ca_bundle=""
  2581. fi
  2582. # Checks for programs.
  2583. ac_ext=cpp
  2584. ac_cpp='$CXXCPP $CPPFLAGS'
  2585. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2586. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2587. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2588. if test -z "$CXX"; then
  2589. if test -n "$CCC"; then
  2590. CXX=$CCC
  2591. else
  2592. if test -n "$ac_tool_prefix"; then
  2593. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2594. do
  2595. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2596. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2597. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2598. $as_echo_n "checking for $ac_word... " >&6; }
  2599. if test "${ac_cv_prog_CXX+set}" = set; then
  2600. $as_echo_n "(cached) " >&6
  2601. else
  2602. if test -n "$CXX"; then
  2603. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_exec_ext in '' $ac_executable_extensions; do
  2611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2612. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2613. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2614. break 2
  2615. fi
  2616. done
  2617. done
  2618. IFS=$as_save_IFS
  2619. fi
  2620. fi
  2621. CXX=$ac_cv_prog_CXX
  2622. if test -n "$CXX"; then
  2623. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2624. $as_echo "$CXX" >&6; }
  2625. else
  2626. { $as_echo "$as_me:$LINENO: result: no" >&5
  2627. $as_echo "no" >&6; }
  2628. fi
  2629. test -n "$CXX" && break
  2630. done
  2631. fi
  2632. if test -z "$CXX"; then
  2633. ac_ct_CXX=$CXX
  2634. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2635. do
  2636. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2637. set dummy $ac_prog; ac_word=$2
  2638. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2639. $as_echo_n "checking for $ac_word... " >&6; }
  2640. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. if test -n "$ac_ct_CXX"; then
  2644. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2645. else
  2646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2647. for as_dir in $PATH
  2648. do
  2649. IFS=$as_save_IFS
  2650. test -z "$as_dir" && as_dir=.
  2651. for ac_exec_ext in '' $ac_executable_extensions; do
  2652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2653. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2654. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2655. break 2
  2656. fi
  2657. done
  2658. done
  2659. IFS=$as_save_IFS
  2660. fi
  2661. fi
  2662. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2663. if test -n "$ac_ct_CXX"; then
  2664. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2665. $as_echo "$ac_ct_CXX" >&6; }
  2666. else
  2667. { $as_echo "$as_me:$LINENO: result: no" >&5
  2668. $as_echo "no" >&6; }
  2669. fi
  2670. test -n "$ac_ct_CXX" && break
  2671. done
  2672. if test "x$ac_ct_CXX" = x; then
  2673. CXX="g++"
  2674. else
  2675. case $cross_compiling:$ac_tool_warned in
  2676. yes:)
  2677. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2679. ac_tool_warned=yes ;;
  2680. esac
  2681. CXX=$ac_ct_CXX
  2682. fi
  2683. fi
  2684. fi
  2685. fi
  2686. # Provide some information about the compiler.
  2687. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2688. set X $ac_compile
  2689. ac_compiler=$2
  2690. { (ac_try="$ac_compiler --version >&5"
  2691. case "(($ac_try" in
  2692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2693. *) ac_try_echo=$ac_try;;
  2694. esac
  2695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2696. $as_echo "$ac_try_echo") >&5
  2697. (eval "$ac_compiler --version >&5") 2>&5
  2698. ac_status=$?
  2699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }
  2701. { (ac_try="$ac_compiler -v >&5"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2707. $as_echo "$ac_try_echo") >&5
  2708. (eval "$ac_compiler -v >&5") 2>&5
  2709. ac_status=$?
  2710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }
  2712. { (ac_try="$ac_compiler -V >&5"
  2713. case "(($ac_try" in
  2714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715. *) ac_try_echo=$ac_try;;
  2716. esac
  2717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2718. $as_echo "$ac_try_echo") >&5
  2719. (eval "$ac_compiler -V >&5") 2>&5
  2720. ac_status=$?
  2721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); }
  2723. cat >conftest.$ac_ext <<_ACEOF
  2724. /* confdefs.h. */
  2725. _ACEOF
  2726. cat confdefs.h >>conftest.$ac_ext
  2727. cat >>conftest.$ac_ext <<_ACEOF
  2728. /* end confdefs.h. */
  2729. int
  2730. main ()
  2731. {
  2732. ;
  2733. return 0;
  2734. }
  2735. _ACEOF
  2736. ac_clean_files_save=$ac_clean_files
  2737. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2738. # Try to create an executable without -o first, disregard a.out.
  2739. # It will help us diagnose broken compilers, and finding out an intuition
  2740. # of exeext.
  2741. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2742. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2743. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2744. # The possible output files:
  2745. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2746. ac_rmfiles=
  2747. for ac_file in $ac_files
  2748. do
  2749. case $ac_file in
  2750. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2751. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2752. esac
  2753. done
  2754. rm -f $ac_rmfiles
  2755. if { (ac_try="$ac_link_default"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2761. $as_echo "$ac_try_echo") >&5
  2762. (eval "$ac_link_default") 2>&5
  2763. ac_status=$?
  2764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); }; then
  2766. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2767. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2768. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2769. # so that the user can short-circuit this test for compilers unknown to
  2770. # Autoconf.
  2771. for ac_file in $ac_files ''
  2772. do
  2773. test -f "$ac_file" || continue
  2774. case $ac_file in
  2775. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2776. ;;
  2777. [ab].out )
  2778. # We found the default executable, but exeext='' is most
  2779. # certainly right.
  2780. break;;
  2781. *.* )
  2782. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2783. then :; else
  2784. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2785. fi
  2786. # We set ac_cv_exeext here because the later test for it is not
  2787. # safe: cross compilers may not add the suffix if given an `-o'
  2788. # argument, so we may need to know it at that point already.
  2789. # Even if this section looks crufty: it has the advantage of
  2790. # actually working.
  2791. break;;
  2792. * )
  2793. break;;
  2794. esac
  2795. done
  2796. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2797. else
  2798. ac_file=''
  2799. fi
  2800. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2801. $as_echo "$ac_file" >&6; }
  2802. if test -z "$ac_file"; then
  2803. $as_echo "$as_me: failed program was:" >&5
  2804. sed 's/^/| /' conftest.$ac_ext >&5
  2805. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2806. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2807. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2808. See \`config.log' for more details." >&5
  2809. $as_echo "$as_me: error: C++ compiler cannot create executables
  2810. See \`config.log' for more details." >&2;}
  2811. { (exit 77); exit 77; }; }; }
  2812. fi
  2813. ac_exeext=$ac_cv_exeext
  2814. # Check that the compiler produces executables we can run. If not, either
  2815. # the compiler is broken, or we cross compile.
  2816. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2817. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2818. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2819. # If not cross compiling, check that we can run a simple program.
  2820. if test "$cross_compiling" != yes; then
  2821. if { ac_try='./$ac_file'
  2822. { (case "(($ac_try" in
  2823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2824. *) ac_try_echo=$ac_try;;
  2825. esac
  2826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2827. $as_echo "$ac_try_echo") >&5
  2828. (eval "$ac_try") 2>&5
  2829. ac_status=$?
  2830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); }; }; then
  2832. cross_compiling=no
  2833. else
  2834. if test "$cross_compiling" = maybe; then
  2835. cross_compiling=yes
  2836. else
  2837. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2839. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2840. If you meant to cross compile, use \`--host'.
  2841. See \`config.log' for more details." >&5
  2842. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2843. If you meant to cross compile, use \`--host'.
  2844. See \`config.log' for more details." >&2;}
  2845. { (exit 1); exit 1; }; }; }
  2846. fi
  2847. fi
  2848. fi
  2849. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2850. $as_echo "yes" >&6; }
  2851. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2852. ac_clean_files=$ac_clean_files_save
  2853. # Check that the compiler produces executables we can run. If not, either
  2854. # the compiler is broken, or we cross compile.
  2855. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2856. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2857. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2858. $as_echo "$cross_compiling" >&6; }
  2859. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2860. $as_echo_n "checking for suffix of executables... " >&6; }
  2861. if { (ac_try="$ac_link"
  2862. case "(($ac_try" in
  2863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2864. *) ac_try_echo=$ac_try;;
  2865. esac
  2866. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2867. $as_echo "$ac_try_echo") >&5
  2868. (eval "$ac_link") 2>&5
  2869. ac_status=$?
  2870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); }; then
  2872. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2873. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2874. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2875. # `rm'.
  2876. for ac_file in conftest.exe conftest conftest.*; do
  2877. test -f "$ac_file" || continue
  2878. case $ac_file in
  2879. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2880. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2881. break;;
  2882. * ) break;;
  2883. esac
  2884. done
  2885. else
  2886. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2888. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2889. See \`config.log' for more details." >&5
  2890. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2891. See \`config.log' for more details." >&2;}
  2892. { (exit 1); exit 1; }; }; }
  2893. fi
  2894. rm -f conftest$ac_cv_exeext
  2895. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2896. $as_echo "$ac_cv_exeext" >&6; }
  2897. rm -f conftest.$ac_ext
  2898. EXEEXT=$ac_cv_exeext
  2899. ac_exeext=$EXEEXT
  2900. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2901. $as_echo_n "checking for suffix of object files... " >&6; }
  2902. if test "${ac_cv_objext+set}" = set; then
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. cat >conftest.$ac_ext <<_ACEOF
  2906. /* confdefs.h. */
  2907. _ACEOF
  2908. cat confdefs.h >>conftest.$ac_ext
  2909. cat >>conftest.$ac_ext <<_ACEOF
  2910. /* end confdefs.h. */
  2911. int
  2912. main ()
  2913. {
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. rm -f conftest.o conftest.obj
  2919. if { (ac_try="$ac_compile"
  2920. case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo") >&5
  2926. (eval "$ac_compile") 2>&5
  2927. ac_status=$?
  2928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2929. (exit $ac_status); }; then
  2930. for ac_file in conftest.o conftest.obj conftest.*; do
  2931. test -f "$ac_file" || continue;
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2934. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2935. break;;
  2936. esac
  2937. done
  2938. else
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2943. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2944. See \`config.log' for more details." >&5
  2945. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2946. See \`config.log' for more details." >&2;}
  2947. { (exit 1); exit 1; }; }; }
  2948. fi
  2949. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2950. fi
  2951. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2952. $as_echo "$ac_cv_objext" >&6; }
  2953. OBJEXT=$ac_cv_objext
  2954. ac_objext=$OBJEXT
  2955. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2956. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2957. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. cat >conftest.$ac_ext <<_ACEOF
  2961. /* confdefs.h. */
  2962. _ACEOF
  2963. cat confdefs.h >>conftest.$ac_ext
  2964. cat >>conftest.$ac_ext <<_ACEOF
  2965. /* end confdefs.h. */
  2966. int
  2967. main ()
  2968. {
  2969. #ifndef __GNUC__
  2970. choke me
  2971. #endif
  2972. ;
  2973. return 0;
  2974. }
  2975. _ACEOF
  2976. rm -f conftest.$ac_objext
  2977. if { (ac_try="$ac_compile"
  2978. case "(($ac_try" in
  2979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2980. *) ac_try_echo=$ac_try;;
  2981. esac
  2982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2983. $as_echo "$ac_try_echo") >&5
  2984. (eval "$ac_compile") 2>conftest.er1
  2985. ac_status=$?
  2986. grep -v '^ *+' conftest.er1 >conftest.err
  2987. rm -f conftest.er1
  2988. cat conftest.err >&5
  2989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2990. (exit $ac_status); } && {
  2991. test -z "$ac_cxx_werror_flag" ||
  2992. test ! -s conftest.err
  2993. } && test -s conftest.$ac_objext; then
  2994. ac_compiler_gnu=yes
  2995. else
  2996. $as_echo "$as_me: failed program was:" >&5
  2997. sed 's/^/| /' conftest.$ac_ext >&5
  2998. ac_compiler_gnu=no
  2999. fi
  3000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3001. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3002. fi
  3003. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3004. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3005. if test $ac_compiler_gnu = yes; then
  3006. GXX=yes
  3007. else
  3008. GXX=
  3009. fi
  3010. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3011. ac_save_CXXFLAGS=$CXXFLAGS
  3012. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3013. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3014. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3018. ac_cxx_werror_flag=yes
  3019. ac_cv_prog_cxx_g=no
  3020. CXXFLAGS="-g"
  3021. cat >conftest.$ac_ext <<_ACEOF
  3022. /* confdefs.h. */
  3023. _ACEOF
  3024. cat confdefs.h >>conftest.$ac_ext
  3025. cat >>conftest.$ac_ext <<_ACEOF
  3026. /* end confdefs.h. */
  3027. int
  3028. main ()
  3029. {
  3030. ;
  3031. return 0;
  3032. }
  3033. _ACEOF
  3034. rm -f conftest.$ac_objext
  3035. if { (ac_try="$ac_compile"
  3036. case "(($ac_try" in
  3037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3038. *) ac_try_echo=$ac_try;;
  3039. esac
  3040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3041. $as_echo "$ac_try_echo") >&5
  3042. (eval "$ac_compile") 2>conftest.er1
  3043. ac_status=$?
  3044. grep -v '^ *+' conftest.er1 >conftest.err
  3045. rm -f conftest.er1
  3046. cat conftest.err >&5
  3047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3048. (exit $ac_status); } && {
  3049. test -z "$ac_cxx_werror_flag" ||
  3050. test ! -s conftest.err
  3051. } && test -s conftest.$ac_objext; then
  3052. ac_cv_prog_cxx_g=yes
  3053. else
  3054. $as_echo "$as_me: failed program was:" >&5
  3055. sed 's/^/| /' conftest.$ac_ext >&5
  3056. CXXFLAGS=""
  3057. cat >conftest.$ac_ext <<_ACEOF
  3058. /* confdefs.h. */
  3059. _ACEOF
  3060. cat confdefs.h >>conftest.$ac_ext
  3061. cat >>conftest.$ac_ext <<_ACEOF
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. rm -f conftest.$ac_objext
  3071. if { (ac_try="$ac_compile"
  3072. case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo") >&5
  3078. (eval "$ac_compile") 2>conftest.er1
  3079. ac_status=$?
  3080. grep -v '^ *+' conftest.er1 >conftest.err
  3081. rm -f conftest.er1
  3082. cat conftest.err >&5
  3083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084. (exit $ac_status); } && {
  3085. test -z "$ac_cxx_werror_flag" ||
  3086. test ! -s conftest.err
  3087. } && test -s conftest.$ac_objext; then
  3088. :
  3089. else
  3090. $as_echo "$as_me: failed program was:" >&5
  3091. sed 's/^/| /' conftest.$ac_ext >&5
  3092. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3093. CXXFLAGS="-g"
  3094. cat >conftest.$ac_ext <<_ACEOF
  3095. /* confdefs.h. */
  3096. _ACEOF
  3097. cat confdefs.h >>conftest.$ac_ext
  3098. cat >>conftest.$ac_ext <<_ACEOF
  3099. /* end confdefs.h. */
  3100. int
  3101. main ()
  3102. {
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. rm -f conftest.$ac_objext
  3108. if { (ac_try="$ac_compile"
  3109. case "(($ac_try" in
  3110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3111. *) ac_try_echo=$ac_try;;
  3112. esac
  3113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3114. $as_echo "$ac_try_echo") >&5
  3115. (eval "$ac_compile") 2>conftest.er1
  3116. ac_status=$?
  3117. grep -v '^ *+' conftest.er1 >conftest.err
  3118. rm -f conftest.er1
  3119. cat conftest.err >&5
  3120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121. (exit $ac_status); } && {
  3122. test -z "$ac_cxx_werror_flag" ||
  3123. test ! -s conftest.err
  3124. } && test -s conftest.$ac_objext; then
  3125. ac_cv_prog_cxx_g=yes
  3126. else
  3127. $as_echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3136. fi
  3137. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3138. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3139. if test "$ac_test_CXXFLAGS" = set; then
  3140. CXXFLAGS=$ac_save_CXXFLAGS
  3141. elif test $ac_cv_prog_cxx_g = yes; then
  3142. if test "$GXX" = yes; then
  3143. CXXFLAGS="-g -O2"
  3144. else
  3145. CXXFLAGS="-g"
  3146. fi
  3147. else
  3148. if test "$GXX" = yes; then
  3149. CXXFLAGS="-O2"
  3150. else
  3151. CXXFLAGS=
  3152. fi
  3153. fi
  3154. ac_ext=c
  3155. ac_cpp='$CPP $CPPFLAGS'
  3156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3159. DEPDIR="${am__leading_dot}deps"
  3160. ac_config_commands="$ac_config_commands depfiles"
  3161. am_make=${MAKE-make}
  3162. cat > confinc << 'END'
  3163. am__doit:
  3164. @echo done
  3165. .PHONY: am__doit
  3166. END
  3167. # If we don't find an include directive, just comment out the code.
  3168. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3169. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3170. am__include="#"
  3171. am__quote=
  3172. _am_result=none
  3173. # First try GNU make style include.
  3174. echo "include confinc" > confmf
  3175. # We grep out `Entering directory' and `Leaving directory'
  3176. # messages which can occur if `w' ends up in MAKEFLAGS.
  3177. # In particular we don't look at `^make:' because GNU make might
  3178. # be invoked under some other name (usually "gmake"), in which
  3179. # case it prints its new name instead of `make'.
  3180. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3181. am__include=include
  3182. am__quote=
  3183. _am_result=GNU
  3184. fi
  3185. # Now try BSD make style include.
  3186. if test "$am__include" = "#"; then
  3187. echo '.include "confinc"' > confmf
  3188. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3189. am__include=.include
  3190. am__quote="\""
  3191. _am_result=BSD
  3192. fi
  3193. fi
  3194. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3195. $as_echo "$_am_result" >&6; }
  3196. rm -f confinc confmf
  3197. # Check whether --enable-dependency-tracking was given.
  3198. if test "${enable_dependency_tracking+set}" = set; then
  3199. enableval=$enable_dependency_tracking;
  3200. fi
  3201. if test "x$enable_dependency_tracking" != xno; then
  3202. am_depcomp="$ac_aux_dir/depcomp"
  3203. AMDEPBACKSLASH='\'
  3204. fi
  3205. if test "x$enable_dependency_tracking" != xno; then
  3206. AMDEP_TRUE=
  3207. AMDEP_FALSE='#'
  3208. else
  3209. AMDEP_TRUE='#'
  3210. AMDEP_FALSE=
  3211. fi
  3212. depcc="$CXX" am_compiler_list=
  3213. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3214. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3215. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3219. # We make a subdir and do the tests there. Otherwise we can end up
  3220. # making bogus files that we don't know about and never remove. For
  3221. # instance it was reported that on HP-UX the gcc test will end up
  3222. # making a dummy file named `D' -- because `-MD' means `put the output
  3223. # in D'.
  3224. mkdir conftest.dir
  3225. # Copy depcomp to subdir because otherwise we won't find it if we're
  3226. # using a relative directory.
  3227. cp "$am_depcomp" conftest.dir
  3228. cd conftest.dir
  3229. # We will build objects and dependencies in a subdirectory because
  3230. # it helps to detect inapplicable dependency modes. For instance
  3231. # both Tru64's cc and ICC support -MD to output dependencies as a
  3232. # side effect of compilation, but ICC will put the dependencies in
  3233. # the current directory while Tru64 will put them in the object
  3234. # directory.
  3235. mkdir sub
  3236. am_cv_CXX_dependencies_compiler_type=none
  3237. if test "$am_compiler_list" = ""; then
  3238. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3239. fi
  3240. for depmode in $am_compiler_list; do
  3241. # Setup a source with many dependencies, because some compilers
  3242. # like to wrap large dependency lists on column 80 (with \), and
  3243. # we should not choose a depcomp mode which is confused by this.
  3244. #
  3245. # We need to recreate these files for each test, as the compiler may
  3246. # overwrite some of them when testing with obscure command lines.
  3247. # This happens at least with the AIX C compiler.
  3248. : > sub/conftest.c
  3249. for i in 1 2 3 4 5 6; do
  3250. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3251. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3252. # Solaris 8's {/usr,}/bin/sh.
  3253. touch sub/conftst$i.h
  3254. done
  3255. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3256. case $depmode in
  3257. nosideeffect)
  3258. # after this tag, mechanisms are not by side-effect, so they'll
  3259. # only be used when explicitly requested
  3260. if test "x$enable_dependency_tracking" = xyes; then
  3261. continue
  3262. else
  3263. break
  3264. fi
  3265. ;;
  3266. none) break ;;
  3267. esac
  3268. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3269. # mode. It turns out that the SunPro C++ compiler does not properly
  3270. # handle `-M -o', and we need to detect this.
  3271. if depmode=$depmode \
  3272. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3273. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3274. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3275. >/dev/null 2>conftest.err &&
  3276. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3277. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3278. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3279. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3280. # icc doesn't choke on unknown options, it will just issue warnings
  3281. # or remarks (even with -Werror). So we grep stderr for any message
  3282. # that says an option was ignored or not supported.
  3283. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3284. # icc: Command line warning: ignoring option '-M'; no argument required
  3285. # The diagnosis changed in icc 8.0:
  3286. # icc: Command line remark: option '-MP' not supported
  3287. if (grep 'ignoring option' conftest.err ||
  3288. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3289. am_cv_CXX_dependencies_compiler_type=$depmode
  3290. break
  3291. fi
  3292. fi
  3293. done
  3294. cd ..
  3295. rm -rf conftest.dir
  3296. else
  3297. am_cv_CXX_dependencies_compiler_type=none
  3298. fi
  3299. fi
  3300. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3301. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3302. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3303. if
  3304. test "x$enable_dependency_tracking" != xno \
  3305. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3306. am__fastdepCXX_TRUE=
  3307. am__fastdepCXX_FALSE='#'
  3308. else
  3309. am__fastdepCXX_TRUE='#'
  3310. am__fastdepCXX_FALSE=
  3311. fi
  3312. ac_ext=c
  3313. ac_cpp='$CPP $CPPFLAGS'
  3314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3317. if test -n "$ac_tool_prefix"; then
  3318. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3319. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3320. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3321. $as_echo_n "checking for $ac_word... " >&6; }
  3322. if test "${ac_cv_prog_CC+set}" = set; then
  3323. $as_echo_n "(cached) " >&6
  3324. else
  3325. if test -n "$CC"; then
  3326. ac_cv_prog_CC="$CC" # Let the user override the test.
  3327. else
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_exec_ext in '' $ac_executable_extensions; do
  3334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3335. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3336. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3337. break 2
  3338. fi
  3339. done
  3340. done
  3341. IFS=$as_save_IFS
  3342. fi
  3343. fi
  3344. CC=$ac_cv_prog_CC
  3345. if test -n "$CC"; then
  3346. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3347. $as_echo "$CC" >&6; }
  3348. else
  3349. { $as_echo "$as_me:$LINENO: result: no" >&5
  3350. $as_echo "no" >&6; }
  3351. fi
  3352. fi
  3353. if test -z "$ac_cv_prog_CC"; then
  3354. ac_ct_CC=$CC
  3355. # Extract the first word of "gcc", so it can be a program name with args.
  3356. set dummy gcc; ac_word=$2
  3357. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3358. $as_echo_n "checking for $ac_word... " >&6; }
  3359. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3360. $as_echo_n "(cached) " >&6
  3361. else
  3362. if test -n "$ac_ct_CC"; then
  3363. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3364. else
  3365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3366. for as_dir in $PATH
  3367. do
  3368. IFS=$as_save_IFS
  3369. test -z "$as_dir" && as_dir=.
  3370. for ac_exec_ext in '' $ac_executable_extensions; do
  3371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3372. ac_cv_prog_ac_ct_CC="gcc"
  3373. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3374. break 2
  3375. fi
  3376. done
  3377. done
  3378. IFS=$as_save_IFS
  3379. fi
  3380. fi
  3381. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3382. if test -n "$ac_ct_CC"; then
  3383. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3384. $as_echo "$ac_ct_CC" >&6; }
  3385. else
  3386. { $as_echo "$as_me:$LINENO: result: no" >&5
  3387. $as_echo "no" >&6; }
  3388. fi
  3389. if test "x$ac_ct_CC" = x; then
  3390. CC=""
  3391. else
  3392. case $cross_compiling:$ac_tool_warned in
  3393. yes:)
  3394. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3396. ac_tool_warned=yes ;;
  3397. esac
  3398. CC=$ac_ct_CC
  3399. fi
  3400. else
  3401. CC="$ac_cv_prog_CC"
  3402. fi
  3403. if test -z "$CC"; then
  3404. if test -n "$ac_tool_prefix"; then
  3405. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3406. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3407. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3408. $as_echo_n "checking for $ac_word... " >&6; }
  3409. if test "${ac_cv_prog_CC+set}" = set; then
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. if test -n "$CC"; then
  3413. ac_cv_prog_CC="$CC" # Let the user override the test.
  3414. else
  3415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3416. for as_dir in $PATH
  3417. do
  3418. IFS=$as_save_IFS
  3419. test -z "$as_dir" && as_dir=.
  3420. for ac_exec_ext in '' $ac_executable_extensions; do
  3421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3422. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3423. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3424. break 2
  3425. fi
  3426. done
  3427. done
  3428. IFS=$as_save_IFS
  3429. fi
  3430. fi
  3431. CC=$ac_cv_prog_CC
  3432. if test -n "$CC"; then
  3433. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3434. $as_echo "$CC" >&6; }
  3435. else
  3436. { $as_echo "$as_me:$LINENO: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. fi
  3439. fi
  3440. fi
  3441. if test -z "$CC"; then
  3442. # Extract the first word of "cc", so it can be a program name with args.
  3443. set dummy cc; ac_word=$2
  3444. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3445. $as_echo_n "checking for $ac_word... " >&6; }
  3446. if test "${ac_cv_prog_CC+set}" = set; then
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. if test -n "$CC"; then
  3450. ac_cv_prog_CC="$CC" # Let the user override the test.
  3451. else
  3452. ac_prog_rejected=no
  3453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454. for as_dir in $PATH
  3455. do
  3456. IFS=$as_save_IFS
  3457. test -z "$as_dir" && as_dir=.
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3460. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3461. ac_prog_rejected=yes
  3462. continue
  3463. fi
  3464. ac_cv_prog_CC="cc"
  3465. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3466. break 2
  3467. fi
  3468. done
  3469. done
  3470. IFS=$as_save_IFS
  3471. if test $ac_prog_rejected = yes; then
  3472. # We found a bogon in the path, so make sure we never use it.
  3473. set dummy $ac_cv_prog_CC
  3474. shift
  3475. if test $# != 0; then
  3476. # We chose a different compiler from the bogus one.
  3477. # However, it has the same basename, so the bogon will be chosen
  3478. # first if we set CC to just the basename; use the full file name.
  3479. shift
  3480. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3481. fi
  3482. fi
  3483. fi
  3484. fi
  3485. CC=$ac_cv_prog_CC
  3486. if test -n "$CC"; then
  3487. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3488. $as_echo "$CC" >&6; }
  3489. else
  3490. { $as_echo "$as_me:$LINENO: result: no" >&5
  3491. $as_echo "no" >&6; }
  3492. fi
  3493. fi
  3494. if test -z "$CC"; then
  3495. if test -n "$ac_tool_prefix"; then
  3496. for ac_prog in cl.exe
  3497. do
  3498. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3499. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3500. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3501. $as_echo_n "checking for $ac_word... " >&6; }
  3502. if test "${ac_cv_prog_CC+set}" = set; then
  3503. $as_echo_n "(cached) " >&6
  3504. else
  3505. if test -n "$CC"; then
  3506. ac_cv_prog_CC="$CC" # Let the user override the test.
  3507. else
  3508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3509. for as_dir in $PATH
  3510. do
  3511. IFS=$as_save_IFS
  3512. test -z "$as_dir" && as_dir=.
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3515. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3516. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3517. break 2
  3518. fi
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. fi
  3523. fi
  3524. CC=$ac_cv_prog_CC
  3525. if test -n "$CC"; then
  3526. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3527. $as_echo "$CC" >&6; }
  3528. else
  3529. { $as_echo "$as_me:$LINENO: result: no" >&5
  3530. $as_echo "no" >&6; }
  3531. fi
  3532. test -n "$CC" && break
  3533. done
  3534. fi
  3535. if test -z "$CC"; then
  3536. ac_ct_CC=$CC
  3537. for ac_prog in cl.exe
  3538. do
  3539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3540. set dummy $ac_prog; ac_word=$2
  3541. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3542. $as_echo_n "checking for $ac_word... " >&6; }
  3543. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test -n "$ac_ct_CC"; then
  3547. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3548. else
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_exec_ext in '' $ac_executable_extensions; do
  3555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3556. ac_cv_prog_ac_ct_CC="$ac_prog"
  3557. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3558. break 2
  3559. fi
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. fi
  3564. fi
  3565. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3566. if test -n "$ac_ct_CC"; then
  3567. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3568. $as_echo "$ac_ct_CC" >&6; }
  3569. else
  3570. { $as_echo "$as_me:$LINENO: result: no" >&5
  3571. $as_echo "no" >&6; }
  3572. fi
  3573. test -n "$ac_ct_CC" && break
  3574. done
  3575. if test "x$ac_ct_CC" = x; then
  3576. CC=""
  3577. else
  3578. case $cross_compiling:$ac_tool_warned in
  3579. yes:)
  3580. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3582. ac_tool_warned=yes ;;
  3583. esac
  3584. CC=$ac_ct_CC
  3585. fi
  3586. fi
  3587. fi
  3588. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3589. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3590. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3591. See \`config.log' for more details." >&5
  3592. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3593. See \`config.log' for more details." >&2;}
  3594. { (exit 1); exit 1; }; }; }
  3595. # Provide some information about the compiler.
  3596. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3597. set X $ac_compile
  3598. ac_compiler=$2
  3599. { (ac_try="$ac_compiler --version >&5"
  3600. case "(($ac_try" in
  3601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3602. *) ac_try_echo=$ac_try;;
  3603. esac
  3604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3605. $as_echo "$ac_try_echo") >&5
  3606. (eval "$ac_compiler --version >&5") 2>&5
  3607. ac_status=$?
  3608. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3609. (exit $ac_status); }
  3610. { (ac_try="$ac_compiler -v >&5"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3616. $as_echo "$ac_try_echo") >&5
  3617. (eval "$ac_compiler -v >&5") 2>&5
  3618. ac_status=$?
  3619. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620. (exit $ac_status); }
  3621. { (ac_try="$ac_compiler -V >&5"
  3622. case "(($ac_try" in
  3623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3624. *) ac_try_echo=$ac_try;;
  3625. esac
  3626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3627. $as_echo "$ac_try_echo") >&5
  3628. (eval "$ac_compiler -V >&5") 2>&5
  3629. ac_status=$?
  3630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. (exit $ac_status); }
  3632. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3633. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3634. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. cat >conftest.$ac_ext <<_ACEOF
  3638. /* confdefs.h. */
  3639. _ACEOF
  3640. cat confdefs.h >>conftest.$ac_ext
  3641. cat >>conftest.$ac_ext <<_ACEOF
  3642. /* end confdefs.h. */
  3643. int
  3644. main ()
  3645. {
  3646. #ifndef __GNUC__
  3647. choke me
  3648. #endif
  3649. ;
  3650. return 0;
  3651. }
  3652. _ACEOF
  3653. rm -f conftest.$ac_objext
  3654. if { (ac_try="$ac_compile"
  3655. case "(($ac_try" in
  3656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3657. *) ac_try_echo=$ac_try;;
  3658. esac
  3659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3660. $as_echo "$ac_try_echo") >&5
  3661. (eval "$ac_compile") 2>conftest.er1
  3662. ac_status=$?
  3663. grep -v '^ *+' conftest.er1 >conftest.err
  3664. rm -f conftest.er1
  3665. cat conftest.err >&5
  3666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3667. (exit $ac_status); } && {
  3668. test -z "$ac_c_werror_flag" ||
  3669. test ! -s conftest.err
  3670. } && test -s conftest.$ac_objext; then
  3671. ac_compiler_gnu=yes
  3672. else
  3673. $as_echo "$as_me: failed program was:" >&5
  3674. sed 's/^/| /' conftest.$ac_ext >&5
  3675. ac_compiler_gnu=no
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3678. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3679. fi
  3680. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3681. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3682. if test $ac_compiler_gnu = yes; then
  3683. GCC=yes
  3684. else
  3685. GCC=
  3686. fi
  3687. ac_test_CFLAGS=${CFLAGS+set}
  3688. ac_save_CFLAGS=$CFLAGS
  3689. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3690. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3691. if test "${ac_cv_prog_cc_g+set}" = set; then
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. ac_save_c_werror_flag=$ac_c_werror_flag
  3695. ac_c_werror_flag=yes
  3696. ac_cv_prog_cc_g=no
  3697. CFLAGS="-g"
  3698. cat >conftest.$ac_ext <<_ACEOF
  3699. /* confdefs.h. */
  3700. _ACEOF
  3701. cat confdefs.h >>conftest.$ac_ext
  3702. cat >>conftest.$ac_ext <<_ACEOF
  3703. /* end confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. rm -f conftest.$ac_objext
  3712. if { (ac_try="$ac_compile"
  3713. case "(($ac_try" in
  3714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3715. *) ac_try_echo=$ac_try;;
  3716. esac
  3717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3718. $as_echo "$ac_try_echo") >&5
  3719. (eval "$ac_compile") 2>conftest.er1
  3720. ac_status=$?
  3721. grep -v '^ *+' conftest.er1 >conftest.err
  3722. rm -f conftest.er1
  3723. cat conftest.err >&5
  3724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3725. (exit $ac_status); } && {
  3726. test -z "$ac_c_werror_flag" ||
  3727. test ! -s conftest.err
  3728. } && test -s conftest.$ac_objext; then
  3729. ac_cv_prog_cc_g=yes
  3730. else
  3731. $as_echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. CFLAGS=""
  3734. cat >conftest.$ac_ext <<_ACEOF
  3735. /* confdefs.h. */
  3736. _ACEOF
  3737. cat confdefs.h >>conftest.$ac_ext
  3738. cat >>conftest.$ac_ext <<_ACEOF
  3739. /* end confdefs.h. */
  3740. int
  3741. main ()
  3742. {
  3743. ;
  3744. return 0;
  3745. }
  3746. _ACEOF
  3747. rm -f conftest.$ac_objext
  3748. if { (ac_try="$ac_compile"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3754. $as_echo "$ac_try_echo") >&5
  3755. (eval "$ac_compile") 2>conftest.er1
  3756. ac_status=$?
  3757. grep -v '^ *+' conftest.er1 >conftest.err
  3758. rm -f conftest.er1
  3759. cat conftest.err >&5
  3760. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3761. (exit $ac_status); } && {
  3762. test -z "$ac_c_werror_flag" ||
  3763. test ! -s conftest.err
  3764. } && test -s conftest.$ac_objext; then
  3765. :
  3766. else
  3767. $as_echo "$as_me: failed program was:" >&5
  3768. sed 's/^/| /' conftest.$ac_ext >&5
  3769. ac_c_werror_flag=$ac_save_c_werror_flag
  3770. CFLAGS="-g"
  3771. cat >conftest.$ac_ext <<_ACEOF
  3772. /* confdefs.h. */
  3773. _ACEOF
  3774. cat confdefs.h >>conftest.$ac_ext
  3775. cat >>conftest.$ac_ext <<_ACEOF
  3776. /* end confdefs.h. */
  3777. int
  3778. main ()
  3779. {
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. rm -f conftest.$ac_objext
  3785. if { (ac_try="$ac_compile"
  3786. case "(($ac_try" in
  3787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3788. *) ac_try_echo=$ac_try;;
  3789. esac
  3790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3791. $as_echo "$ac_try_echo") >&5
  3792. (eval "$ac_compile") 2>conftest.er1
  3793. ac_status=$?
  3794. grep -v '^ *+' conftest.er1 >conftest.err
  3795. rm -f conftest.er1
  3796. cat conftest.err >&5
  3797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); } && {
  3799. test -z "$ac_c_werror_flag" ||
  3800. test ! -s conftest.err
  3801. } && test -s conftest.$ac_objext; then
  3802. ac_cv_prog_cc_g=yes
  3803. else
  3804. $as_echo "$as_me: failed program was:" >&5
  3805. sed 's/^/| /' conftest.$ac_ext >&5
  3806. fi
  3807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3813. fi
  3814. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3815. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3816. if test "$ac_test_CFLAGS" = set; then
  3817. CFLAGS=$ac_save_CFLAGS
  3818. elif test $ac_cv_prog_cc_g = yes; then
  3819. if test "$GCC" = yes; then
  3820. CFLAGS="-g -O2"
  3821. else
  3822. CFLAGS="-g"
  3823. fi
  3824. else
  3825. if test "$GCC" = yes; then
  3826. CFLAGS="-O2"
  3827. else
  3828. CFLAGS=
  3829. fi
  3830. fi
  3831. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3832. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3833. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3834. $as_echo_n "(cached) " >&6
  3835. else
  3836. ac_cv_prog_cc_c89=no
  3837. ac_save_CC=$CC
  3838. cat >conftest.$ac_ext <<_ACEOF
  3839. /* confdefs.h. */
  3840. _ACEOF
  3841. cat confdefs.h >>conftest.$ac_ext
  3842. cat >>conftest.$ac_ext <<_ACEOF
  3843. /* end confdefs.h. */
  3844. #include <stdarg.h>
  3845. #include <stdio.h>
  3846. #include <sys/types.h>
  3847. #include <sys/stat.h>
  3848. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3849. struct buf { int x; };
  3850. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3851. static char *e (p, i)
  3852. char **p;
  3853. int i;
  3854. {
  3855. return p[i];
  3856. }
  3857. static char *f (char * (*g) (char **, int), char **p, ...)
  3858. {
  3859. char *s;
  3860. va_list v;
  3861. va_start (v,p);
  3862. s = g (p, va_arg (v,int));
  3863. va_end (v);
  3864. return s;
  3865. }
  3866. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3867. function prototypes and stuff, but not '\xHH' hex character constants.
  3868. These don't provoke an error unfortunately, instead are silently treated
  3869. as 'x'. The following induces an error, until -std is added to get
  3870. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3871. array size at least. It's necessary to write '\x00'==0 to get something
  3872. that's true only with -std. */
  3873. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3874. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3875. inside strings and character constants. */
  3876. #define FOO(x) 'x'
  3877. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3878. int test (int i, double x);
  3879. struct s1 {int (*f) (int a);};
  3880. struct s2 {int (*f) (double a);};
  3881. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3882. int argc;
  3883. char **argv;
  3884. int
  3885. main ()
  3886. {
  3887. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3888. ;
  3889. return 0;
  3890. }
  3891. _ACEOF
  3892. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3893. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3894. do
  3895. CC="$ac_save_CC $ac_arg"
  3896. rm -f conftest.$ac_objext
  3897. if { (ac_try="$ac_compile"
  3898. case "(($ac_try" in
  3899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3900. *) ac_try_echo=$ac_try;;
  3901. esac
  3902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3903. $as_echo "$ac_try_echo") >&5
  3904. (eval "$ac_compile") 2>conftest.er1
  3905. ac_status=$?
  3906. grep -v '^ *+' conftest.er1 >conftest.err
  3907. rm -f conftest.er1
  3908. cat conftest.err >&5
  3909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); } && {
  3911. test -z "$ac_c_werror_flag" ||
  3912. test ! -s conftest.err
  3913. } && test -s conftest.$ac_objext; then
  3914. ac_cv_prog_cc_c89=$ac_arg
  3915. else
  3916. $as_echo "$as_me: failed program was:" >&5
  3917. sed 's/^/| /' conftest.$ac_ext >&5
  3918. fi
  3919. rm -f core conftest.err conftest.$ac_objext
  3920. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3921. done
  3922. rm -f conftest.$ac_ext
  3923. CC=$ac_save_CC
  3924. fi
  3925. # AC_CACHE_VAL
  3926. case "x$ac_cv_prog_cc_c89" in
  3927. x)
  3928. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3929. $as_echo "none needed" >&6; } ;;
  3930. xno)
  3931. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3932. $as_echo "unsupported" >&6; } ;;
  3933. *)
  3934. CC="$CC $ac_cv_prog_cc_c89"
  3935. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3936. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3937. esac
  3938. ac_ext=c
  3939. ac_cpp='$CPP $CPPFLAGS'
  3940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3943. depcc="$CC" am_compiler_list=
  3944. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3945. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3946. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3950. # We make a subdir and do the tests there. Otherwise we can end up
  3951. # making bogus files that we don't know about and never remove. For
  3952. # instance it was reported that on HP-UX the gcc test will end up
  3953. # making a dummy file named `D' -- because `-MD' means `put the output
  3954. # in D'.
  3955. mkdir conftest.dir
  3956. # Copy depcomp to subdir because otherwise we won't find it if we're
  3957. # using a relative directory.
  3958. cp "$am_depcomp" conftest.dir
  3959. cd conftest.dir
  3960. # We will build objects and dependencies in a subdirectory because
  3961. # it helps to detect inapplicable dependency modes. For instance
  3962. # both Tru64's cc and ICC support -MD to output dependencies as a
  3963. # side effect of compilation, but ICC will put the dependencies in
  3964. # the current directory while Tru64 will put them in the object
  3965. # directory.
  3966. mkdir sub
  3967. am_cv_CC_dependencies_compiler_type=none
  3968. if test "$am_compiler_list" = ""; then
  3969. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3970. fi
  3971. for depmode in $am_compiler_list; do
  3972. # Setup a source with many dependencies, because some compilers
  3973. # like to wrap large dependency lists on column 80 (with \), and
  3974. # we should not choose a depcomp mode which is confused by this.
  3975. #
  3976. # We need to recreate these files for each test, as the compiler may
  3977. # overwrite some of them when testing with obscure command lines.
  3978. # This happens at least with the AIX C compiler.
  3979. : > sub/conftest.c
  3980. for i in 1 2 3 4 5 6; do
  3981. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3982. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3983. # Solaris 8's {/usr,}/bin/sh.
  3984. touch sub/conftst$i.h
  3985. done
  3986. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3987. case $depmode in
  3988. nosideeffect)
  3989. # after this tag, mechanisms are not by side-effect, so they'll
  3990. # only be used when explicitly requested
  3991. if test "x$enable_dependency_tracking" = xyes; then
  3992. continue
  3993. else
  3994. break
  3995. fi
  3996. ;;
  3997. none) break ;;
  3998. esac
  3999. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4000. # mode. It turns out that the SunPro C++ compiler does not properly
  4001. # handle `-M -o', and we need to detect this.
  4002. if depmode=$depmode \
  4003. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4004. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4005. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4006. >/dev/null 2>conftest.err &&
  4007. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4008. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4009. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4010. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4011. # icc doesn't choke on unknown options, it will just issue warnings
  4012. # or remarks (even with -Werror). So we grep stderr for any message
  4013. # that says an option was ignored or not supported.
  4014. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4015. # icc: Command line warning: ignoring option '-M'; no argument required
  4016. # The diagnosis changed in icc 8.0:
  4017. # icc: Command line remark: option '-MP' not supported
  4018. if (grep 'ignoring option' conftest.err ||
  4019. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4020. am_cv_CC_dependencies_compiler_type=$depmode
  4021. break
  4022. fi
  4023. fi
  4024. done
  4025. cd ..
  4026. rm -rf conftest.dir
  4027. else
  4028. am_cv_CC_dependencies_compiler_type=none
  4029. fi
  4030. fi
  4031. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4032. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4033. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4034. if
  4035. test "x$enable_dependency_tracking" != xno \
  4036. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4037. am__fastdepCC_TRUE=
  4038. am__fastdepCC_FALSE='#'
  4039. else
  4040. am__fastdepCC_TRUE='#'
  4041. am__fastdepCC_FALSE=
  4042. fi
  4043. # Find a good install program. We prefer a C program (faster),
  4044. # so one script is as good as another. But avoid the broken or
  4045. # incompatible versions:
  4046. # SysV /etc/install, /usr/sbin/install
  4047. # SunOS /usr/etc/install
  4048. # IRIX /sbin/install
  4049. # AIX /bin/install
  4050. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4051. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4052. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4053. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4054. # OS/2's system install, which has a completely different semantic
  4055. # ./install, which can be erroneously created by make from ./install.sh.
  4056. # Reject install programs that cannot install multiple files.
  4057. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4058. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4059. if test -z "$INSTALL"; then
  4060. if test "${ac_cv_path_install+set}" = set; then
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4064. for as_dir in $PATH
  4065. do
  4066. IFS=$as_save_IFS
  4067. test -z "$as_dir" && as_dir=.
  4068. # Account for people who put trailing slashes in PATH elements.
  4069. case $as_dir/ in
  4070. ./ | .// | /cC/* | \
  4071. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4072. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4073. /usr/ucb/* ) ;;
  4074. *)
  4075. # OSF1 and SCO ODT 3.0 have their own names for install.
  4076. # Don't use installbsd from OSF since it installs stuff as root
  4077. # by default.
  4078. for ac_prog in ginstall scoinst install; do
  4079. for ac_exec_ext in '' $ac_executable_extensions; do
  4080. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4081. if test $ac_prog = install &&
  4082. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4083. # AIX install. It has an incompatible calling convention.
  4084. :
  4085. elif test $ac_prog = install &&
  4086. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4087. # program-specific install script used by HP pwplus--don't use.
  4088. :
  4089. else
  4090. rm -rf conftest.one conftest.two conftest.dir
  4091. echo one > conftest.one
  4092. echo two > conftest.two
  4093. mkdir conftest.dir
  4094. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4095. test -s conftest.one && test -s conftest.two &&
  4096. test -s conftest.dir/conftest.one &&
  4097. test -s conftest.dir/conftest.two
  4098. then
  4099. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4100. break 3
  4101. fi
  4102. fi
  4103. fi
  4104. done
  4105. done
  4106. ;;
  4107. esac
  4108. done
  4109. IFS=$as_save_IFS
  4110. rm -rf conftest.one conftest.two conftest.dir
  4111. fi
  4112. if test "${ac_cv_path_install+set}" = set; then
  4113. INSTALL=$ac_cv_path_install
  4114. else
  4115. # As a last resort, use the slow shell script. Don't cache a
  4116. # value for INSTALL within a source directory, because that will
  4117. # break other packages using the cache if that directory is
  4118. # removed, or if the value is a relative name.
  4119. INSTALL=$ac_install_sh
  4120. fi
  4121. fi
  4122. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4123. $as_echo "$INSTALL" >&6; }
  4124. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4125. # It thinks the first close brace ends the variable substitution.
  4126. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4127. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4128. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4129. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  4130. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4131. if test -z "$MKDIR_P"; then
  4132. if test "${ac_cv_path_mkdir+set}" = set; then
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4136. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4137. do
  4138. IFS=$as_save_IFS
  4139. test -z "$as_dir" && as_dir=.
  4140. for ac_prog in mkdir gmkdir; do
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4143. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4144. 'mkdir (GNU coreutils) '* | \
  4145. 'mkdir (coreutils) '* | \
  4146. 'mkdir (fileutils) '4.1*)
  4147. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4148. break 3;;
  4149. esac
  4150. done
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. fi
  4155. if test "${ac_cv_path_mkdir+set}" = set; then
  4156. MKDIR_P="$ac_cv_path_mkdir -p"
  4157. else
  4158. # As a last resort, use the slow shell script. Don't cache a
  4159. # value for MKDIR_P within a source directory, because that will
  4160. # break other packages using the cache if that directory is
  4161. # removed, or if the value is a relative name.
  4162. test -d ./--version && rmdir ./--version
  4163. MKDIR_P="$ac_install_sh -d"
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  4167. $as_echo "$MKDIR_P" >&6; }
  4168. if test -n "$ac_tool_prefix"; then
  4169. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4170. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4171. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4172. $as_echo_n "checking for $ac_word... " >&6; }
  4173. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4174. $as_echo_n "(cached) " >&6
  4175. else
  4176. if test -n "$RANLIB"; then
  4177. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4178. else
  4179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4180. for as_dir in $PATH
  4181. do
  4182. IFS=$as_save_IFS
  4183. test -z "$as_dir" && as_dir=.
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4186. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4187. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4188. break 2
  4189. fi
  4190. done
  4191. done
  4192. IFS=$as_save_IFS
  4193. fi
  4194. fi
  4195. RANLIB=$ac_cv_prog_RANLIB
  4196. if test -n "$RANLIB"; then
  4197. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4198. $as_echo "$RANLIB" >&6; }
  4199. else
  4200. { $as_echo "$as_me:$LINENO: result: no" >&5
  4201. $as_echo "no" >&6; }
  4202. fi
  4203. fi
  4204. if test -z "$ac_cv_prog_RANLIB"; then
  4205. ac_ct_RANLIB=$RANLIB
  4206. # Extract the first word of "ranlib", so it can be a program name with args.
  4207. set dummy ranlib; ac_word=$2
  4208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4209. $as_echo_n "checking for $ac_word... " >&6; }
  4210. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -n "$ac_ct_RANLIB"; then
  4214. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4215. else
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_exec_ext in '' $ac_executable_extensions; do
  4222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4223. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4224. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4225. break 2
  4226. fi
  4227. done
  4228. done
  4229. IFS=$as_save_IFS
  4230. fi
  4231. fi
  4232. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4233. if test -n "$ac_ct_RANLIB"; then
  4234. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4235. $as_echo "$ac_ct_RANLIB" >&6; }
  4236. else
  4237. { $as_echo "$as_me:$LINENO: result: no" >&5
  4238. $as_echo "no" >&6; }
  4239. fi
  4240. if test "x$ac_ct_RANLIB" = x; then
  4241. RANLIB=":"
  4242. else
  4243. case $cross_compiling:$ac_tool_warned in
  4244. yes:)
  4245. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4246. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4247. ac_tool_warned=yes ;;
  4248. esac
  4249. RANLIB=$ac_ct_RANLIB
  4250. fi
  4251. else
  4252. RANLIB="$ac_cv_prog_RANLIB"
  4253. fi
  4254. for ac_prog in 'bison -y' byacc
  4255. do
  4256. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4257. set dummy $ac_prog; ac_word=$2
  4258. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4259. $as_echo_n "checking for $ac_word... " >&6; }
  4260. if test "${ac_cv_prog_YACC+set}" = set; then
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. if test -n "$YACC"; then
  4264. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4265. else
  4266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4267. for as_dir in $PATH
  4268. do
  4269. IFS=$as_save_IFS
  4270. test -z "$as_dir" && as_dir=.
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4273. ac_cv_prog_YACC="$ac_prog"
  4274. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4275. break 2
  4276. fi
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. fi
  4281. fi
  4282. YACC=$ac_cv_prog_YACC
  4283. if test -n "$YACC"; then
  4284. { $as_echo "$as_me:$LINENO: result: $YACC" >&5
  4285. $as_echo "$YACC" >&6; }
  4286. else
  4287. { $as_echo "$as_me:$LINENO: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. fi
  4290. test -n "$YACC" && break
  4291. done
  4292. test -n "$YACC" || YACC="yacc"
  4293. # Setting language choice
  4294. ac_ext=cpp
  4295. ac_cpp='$CXXCPP $CPPFLAGS'
  4296. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4297. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4298. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4299. # Enable system extensions
  4300. ac_ext=cpp
  4301. ac_cpp='$CXXCPP $CPPFLAGS'
  4302. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4303. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4304. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4305. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4306. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4307. if test -z "$CXXCPP"; then
  4308. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4309. $as_echo_n "(cached) " >&6
  4310. else
  4311. # Double quotes because CXXCPP needs to be expanded
  4312. for CXXCPP in "$CXX -E" "/lib/cpp"
  4313. do
  4314. ac_preproc_ok=false
  4315. for ac_cxx_preproc_warn_flag in '' yes
  4316. do
  4317. # Use a header file that comes with gcc, so configuring glibc
  4318. # with a fresh cross-compiler works.
  4319. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4320. # <limits.h> exists even on freestanding compilers.
  4321. # On the NeXT, cc -E runs the code through the compiler's parser,
  4322. # not just through cpp. "Syntax error" is here to catch this case.
  4323. cat >conftest.$ac_ext <<_ACEOF
  4324. /* confdefs.h. */
  4325. _ACEOF
  4326. cat confdefs.h >>conftest.$ac_ext
  4327. cat >>conftest.$ac_ext <<_ACEOF
  4328. /* end confdefs.h. */
  4329. #ifdef __STDC__
  4330. # include <limits.h>
  4331. #else
  4332. # include <assert.h>
  4333. #endif
  4334. Syntax error
  4335. _ACEOF
  4336. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4337. case "(($ac_try" in
  4338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4339. *) ac_try_echo=$ac_try;;
  4340. esac
  4341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4342. $as_echo "$ac_try_echo") >&5
  4343. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4344. ac_status=$?
  4345. grep -v '^ *+' conftest.er1 >conftest.err
  4346. rm -f conftest.er1
  4347. cat conftest.err >&5
  4348. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); } >/dev/null && {
  4350. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4351. test ! -s conftest.err
  4352. }; then
  4353. :
  4354. else
  4355. $as_echo "$as_me: failed program was:" >&5
  4356. sed 's/^/| /' conftest.$ac_ext >&5
  4357. # Broken: fails on valid input.
  4358. continue
  4359. fi
  4360. rm -f conftest.err conftest.$ac_ext
  4361. # OK, works on sane cases. Now check whether nonexistent headers
  4362. # can be detected and how.
  4363. cat >conftest.$ac_ext <<_ACEOF
  4364. /* confdefs.h. */
  4365. _ACEOF
  4366. cat confdefs.h >>conftest.$ac_ext
  4367. cat >>conftest.$ac_ext <<_ACEOF
  4368. /* end confdefs.h. */
  4369. #include <ac_nonexistent.h>
  4370. _ACEOF
  4371. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4372. case "(($ac_try" in
  4373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4374. *) ac_try_echo=$ac_try;;
  4375. esac
  4376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4377. $as_echo "$ac_try_echo") >&5
  4378. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4379. ac_status=$?
  4380. grep -v '^ *+' conftest.er1 >conftest.err
  4381. rm -f conftest.er1
  4382. cat conftest.err >&5
  4383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } >/dev/null && {
  4385. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4386. test ! -s conftest.err
  4387. }; then
  4388. # Broken: success on invalid input.
  4389. continue
  4390. else
  4391. $as_echo "$as_me: failed program was:" >&5
  4392. sed 's/^/| /' conftest.$ac_ext >&5
  4393. # Passes both tests.
  4394. ac_preproc_ok=:
  4395. break
  4396. fi
  4397. rm -f conftest.err conftest.$ac_ext
  4398. done
  4399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4400. rm -f conftest.err conftest.$ac_ext
  4401. if $ac_preproc_ok; then
  4402. break
  4403. fi
  4404. done
  4405. ac_cv_prog_CXXCPP=$CXXCPP
  4406. fi
  4407. CXXCPP=$ac_cv_prog_CXXCPP
  4408. else
  4409. ac_cv_prog_CXXCPP=$CXXCPP
  4410. fi
  4411. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4412. $as_echo "$CXXCPP" >&6; }
  4413. ac_preproc_ok=false
  4414. for ac_cxx_preproc_warn_flag in '' yes
  4415. do
  4416. # Use a header file that comes with gcc, so configuring glibc
  4417. # with a fresh cross-compiler works.
  4418. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4419. # <limits.h> exists even on freestanding compilers.
  4420. # On the NeXT, cc -E runs the code through the compiler's parser,
  4421. # not just through cpp. "Syntax error" is here to catch this case.
  4422. cat >conftest.$ac_ext <<_ACEOF
  4423. /* confdefs.h. */
  4424. _ACEOF
  4425. cat confdefs.h >>conftest.$ac_ext
  4426. cat >>conftest.$ac_ext <<_ACEOF
  4427. /* end confdefs.h. */
  4428. #ifdef __STDC__
  4429. # include <limits.h>
  4430. #else
  4431. # include <assert.h>
  4432. #endif
  4433. Syntax error
  4434. _ACEOF
  4435. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4436. case "(($ac_try" in
  4437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4438. *) ac_try_echo=$ac_try;;
  4439. esac
  4440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4441. $as_echo "$ac_try_echo") >&5
  4442. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4443. ac_status=$?
  4444. grep -v '^ *+' conftest.er1 >conftest.err
  4445. rm -f conftest.er1
  4446. cat conftest.err >&5
  4447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4448. (exit $ac_status); } >/dev/null && {
  4449. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4450. test ! -s conftest.err
  4451. }; then
  4452. :
  4453. else
  4454. $as_echo "$as_me: failed program was:" >&5
  4455. sed 's/^/| /' conftest.$ac_ext >&5
  4456. # Broken: fails on valid input.
  4457. continue
  4458. fi
  4459. rm -f conftest.err conftest.$ac_ext
  4460. # OK, works on sane cases. Now check whether nonexistent headers
  4461. # can be detected and how.
  4462. cat >conftest.$ac_ext <<_ACEOF
  4463. /* confdefs.h. */
  4464. _ACEOF
  4465. cat confdefs.h >>conftest.$ac_ext
  4466. cat >>conftest.$ac_ext <<_ACEOF
  4467. /* end confdefs.h. */
  4468. #include <ac_nonexistent.h>
  4469. _ACEOF
  4470. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4471. case "(($ac_try" in
  4472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4473. *) ac_try_echo=$ac_try;;
  4474. esac
  4475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4476. $as_echo "$ac_try_echo") >&5
  4477. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4478. ac_status=$?
  4479. grep -v '^ *+' conftest.er1 >conftest.err
  4480. rm -f conftest.er1
  4481. cat conftest.err >&5
  4482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); } >/dev/null && {
  4484. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4485. test ! -s conftest.err
  4486. }; then
  4487. # Broken: success on invalid input.
  4488. continue
  4489. else
  4490. $as_echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. # Passes both tests.
  4493. ac_preproc_ok=:
  4494. break
  4495. fi
  4496. rm -f conftest.err conftest.$ac_ext
  4497. done
  4498. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4499. rm -f conftest.err conftest.$ac_ext
  4500. if $ac_preproc_ok; then
  4501. :
  4502. else
  4503. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4505. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4506. See \`config.log' for more details." >&5
  4507. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4508. See \`config.log' for more details." >&2;}
  4509. { (exit 1); exit 1; }; }; }
  4510. fi
  4511. ac_ext=cpp
  4512. ac_cpp='$CXXCPP $CPPFLAGS'
  4513. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4514. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4515. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4516. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4517. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4518. if test "${ac_cv_path_GREP+set}" = set; then
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. if test -z "$GREP"; then
  4522. ac_path_GREP_found=false
  4523. # Loop through the user's path and test for each of PROGNAME-LIST
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_prog in grep ggrep; do
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4532. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4533. # Check for GNU ac_path_GREP and select it if it is found.
  4534. # Check for GNU $ac_path_GREP
  4535. case `"$ac_path_GREP" --version 2>&1` in
  4536. *GNU*)
  4537. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4538. *)
  4539. ac_count=0
  4540. $as_echo_n 0123456789 >"conftest.in"
  4541. while :
  4542. do
  4543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4544. mv "conftest.tmp" "conftest.in"
  4545. cp "conftest.in" "conftest.nl"
  4546. $as_echo 'GREP' >> "conftest.nl"
  4547. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4549. ac_count=`expr $ac_count + 1`
  4550. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4551. # Best one so far, save it but keep looking for a better one
  4552. ac_cv_path_GREP="$ac_path_GREP"
  4553. ac_path_GREP_max=$ac_count
  4554. fi
  4555. # 10*(2^10) chars as input seems more than enough
  4556. test $ac_count -gt 10 && break
  4557. done
  4558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4559. esac
  4560. $ac_path_GREP_found && break 3
  4561. done
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. if test -z "$ac_cv_path_GREP"; then
  4566. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4567. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4568. { (exit 1); exit 1; }; }
  4569. fi
  4570. else
  4571. ac_cv_path_GREP=$GREP
  4572. fi
  4573. fi
  4574. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4575. $as_echo "$ac_cv_path_GREP" >&6; }
  4576. GREP="$ac_cv_path_GREP"
  4577. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4578. $as_echo_n "checking for egrep... " >&6; }
  4579. if test "${ac_cv_path_EGREP+set}" = set; then
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4583. then ac_cv_path_EGREP="$GREP -E"
  4584. else
  4585. if test -z "$EGREP"; then
  4586. ac_path_EGREP_found=false
  4587. # Loop through the user's path and test for each of PROGNAME-LIST
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_prog in egrep; do
  4594. for ac_exec_ext in '' $ac_executable_extensions; do
  4595. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4596. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4597. # Check for GNU ac_path_EGREP and select it if it is found.
  4598. # Check for GNU $ac_path_EGREP
  4599. case `"$ac_path_EGREP" --version 2>&1` in
  4600. *GNU*)
  4601. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4602. *)
  4603. ac_count=0
  4604. $as_echo_n 0123456789 >"conftest.in"
  4605. while :
  4606. do
  4607. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4608. mv "conftest.tmp" "conftest.in"
  4609. cp "conftest.in" "conftest.nl"
  4610. $as_echo 'EGREP' >> "conftest.nl"
  4611. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4612. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4613. ac_count=`expr $ac_count + 1`
  4614. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4615. # Best one so far, save it but keep looking for a better one
  4616. ac_cv_path_EGREP="$ac_path_EGREP"
  4617. ac_path_EGREP_max=$ac_count
  4618. fi
  4619. # 10*(2^10) chars as input seems more than enough
  4620. test $ac_count -gt 10 && break
  4621. done
  4622. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4623. esac
  4624. $ac_path_EGREP_found && break 3
  4625. done
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. if test -z "$ac_cv_path_EGREP"; then
  4630. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4631. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4632. { (exit 1); exit 1; }; }
  4633. fi
  4634. else
  4635. ac_cv_path_EGREP=$EGREP
  4636. fi
  4637. fi
  4638. fi
  4639. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4640. $as_echo "$ac_cv_path_EGREP" >&6; }
  4641. EGREP="$ac_cv_path_EGREP"
  4642. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4643. $as_echo_n "checking for ANSI C header files... " >&6; }
  4644. if test "${ac_cv_header_stdc+set}" = set; then
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. cat >conftest.$ac_ext <<_ACEOF
  4648. /* confdefs.h. */
  4649. _ACEOF
  4650. cat confdefs.h >>conftest.$ac_ext
  4651. cat >>conftest.$ac_ext <<_ACEOF
  4652. /* end confdefs.h. */
  4653. #include <stdlib.h>
  4654. #include <stdarg.h>
  4655. #include <string.h>
  4656. #include <float.h>
  4657. int
  4658. main ()
  4659. {
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext
  4665. if { (ac_try="$ac_compile"
  4666. case "(($ac_try" in
  4667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4668. *) ac_try_echo=$ac_try;;
  4669. esac
  4670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4671. $as_echo "$ac_try_echo") >&5
  4672. (eval "$ac_compile") 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } && {
  4679. test -z "$ac_cxx_werror_flag" ||
  4680. test ! -s conftest.err
  4681. } && test -s conftest.$ac_objext; then
  4682. ac_cv_header_stdc=yes
  4683. else
  4684. $as_echo "$as_me: failed program was:" >&5
  4685. sed 's/^/| /' conftest.$ac_ext >&5
  4686. ac_cv_header_stdc=no
  4687. fi
  4688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4689. if test $ac_cv_header_stdc = yes; then
  4690. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. #include <string.h>
  4698. _ACEOF
  4699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4700. $EGREP "memchr" >/dev/null 2>&1; then
  4701. :
  4702. else
  4703. ac_cv_header_stdc=no
  4704. fi
  4705. rm -f conftest*
  4706. fi
  4707. if test $ac_cv_header_stdc = yes; then
  4708. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4709. cat >conftest.$ac_ext <<_ACEOF
  4710. /* confdefs.h. */
  4711. _ACEOF
  4712. cat confdefs.h >>conftest.$ac_ext
  4713. cat >>conftest.$ac_ext <<_ACEOF
  4714. /* end confdefs.h. */
  4715. #include <stdlib.h>
  4716. _ACEOF
  4717. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4718. $EGREP "free" >/dev/null 2>&1; then
  4719. :
  4720. else
  4721. ac_cv_header_stdc=no
  4722. fi
  4723. rm -f conftest*
  4724. fi
  4725. if test $ac_cv_header_stdc = yes; then
  4726. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4727. if test "$cross_compiling" = yes; then
  4728. :
  4729. else
  4730. cat >conftest.$ac_ext <<_ACEOF
  4731. /* confdefs.h. */
  4732. _ACEOF
  4733. cat confdefs.h >>conftest.$ac_ext
  4734. cat >>conftest.$ac_ext <<_ACEOF
  4735. /* end confdefs.h. */
  4736. #include <ctype.h>
  4737. #include <stdlib.h>
  4738. #if ((' ' & 0x0FF) == 0x020)
  4739. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4740. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4741. #else
  4742. # define ISLOWER(c) \
  4743. (('a' <= (c) && (c) <= 'i') \
  4744. || ('j' <= (c) && (c) <= 'r') \
  4745. || ('s' <= (c) && (c) <= 'z'))
  4746. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4747. #endif
  4748. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4749. int
  4750. main ()
  4751. {
  4752. int i;
  4753. for (i = 0; i < 256; i++)
  4754. if (XOR (islower (i), ISLOWER (i))
  4755. || toupper (i) != TOUPPER (i))
  4756. return 2;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. rm -f conftest$ac_exeext
  4761. if { (ac_try="$ac_link"
  4762. case "(($ac_try" in
  4763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4764. *) ac_try_echo=$ac_try;;
  4765. esac
  4766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4767. $as_echo "$ac_try_echo") >&5
  4768. (eval "$ac_link") 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4772. { (case "(($ac_try" in
  4773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4774. *) ac_try_echo=$ac_try;;
  4775. esac
  4776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4777. $as_echo "$ac_try_echo") >&5
  4778. (eval "$ac_try") 2>&5
  4779. ac_status=$?
  4780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4781. (exit $ac_status); }; }; then
  4782. :
  4783. else
  4784. $as_echo "$as_me: program exited with status $ac_status" >&5
  4785. $as_echo "$as_me: failed program was:" >&5
  4786. sed 's/^/| /' conftest.$ac_ext >&5
  4787. ( exit $ac_status )
  4788. ac_cv_header_stdc=no
  4789. fi
  4790. rm -rf conftest.dSYM
  4791. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. fi
  4794. fi
  4795. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4796. $as_echo "$ac_cv_header_stdc" >&6; }
  4797. if test $ac_cv_header_stdc = yes; then
  4798. cat >>confdefs.h <<\_ACEOF
  4799. #define STDC_HEADERS 1
  4800. _ACEOF
  4801. fi
  4802. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4803. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4804. inttypes.h stdint.h unistd.h
  4805. do
  4806. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4807. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4808. $as_echo_n "checking for $ac_header... " >&6; }
  4809. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. cat >conftest.$ac_ext <<_ACEOF
  4813. /* confdefs.h. */
  4814. _ACEOF
  4815. cat confdefs.h >>conftest.$ac_ext
  4816. cat >>conftest.$ac_ext <<_ACEOF
  4817. /* end confdefs.h. */
  4818. $ac_includes_default
  4819. #include <$ac_header>
  4820. _ACEOF
  4821. rm -f conftest.$ac_objext
  4822. if { (ac_try="$ac_compile"
  4823. case "(($ac_try" in
  4824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4825. *) ac_try_echo=$ac_try;;
  4826. esac
  4827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4828. $as_echo "$ac_try_echo") >&5
  4829. (eval "$ac_compile") 2>conftest.er1
  4830. ac_status=$?
  4831. grep -v '^ *+' conftest.er1 >conftest.err
  4832. rm -f conftest.er1
  4833. cat conftest.err >&5
  4834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835. (exit $ac_status); } && {
  4836. test -z "$ac_cxx_werror_flag" ||
  4837. test ! -s conftest.err
  4838. } && test -s conftest.$ac_objext; then
  4839. eval "$as_ac_Header=yes"
  4840. else
  4841. $as_echo "$as_me: failed program was:" >&5
  4842. sed 's/^/| /' conftest.$ac_ext >&5
  4843. eval "$as_ac_Header=no"
  4844. fi
  4845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4846. fi
  4847. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4848. $as_echo "$as_val"'`
  4849. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4850. $as_echo "$ac_res" >&6; }
  4851. as_val=`eval 'as_val=${'$as_ac_Header'}
  4852. $as_echo "$as_val"'`
  4853. if test "x$as_val" = x""yes; then
  4854. cat >>confdefs.h <<_ACEOF
  4855. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4856. _ACEOF
  4857. fi
  4858. done
  4859. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4860. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4861. $as_echo_n "checking for minix/config.h... " >&6; }
  4862. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4863. $as_echo_n "(cached) " >&6
  4864. fi
  4865. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4866. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4867. else
  4868. # Is the header compilable?
  4869. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4870. $as_echo_n "checking minix/config.h usability... " >&6; }
  4871. cat >conftest.$ac_ext <<_ACEOF
  4872. /* confdefs.h. */
  4873. _ACEOF
  4874. cat confdefs.h >>conftest.$ac_ext
  4875. cat >>conftest.$ac_ext <<_ACEOF
  4876. /* end confdefs.h. */
  4877. $ac_includes_default
  4878. #include <minix/config.h>
  4879. _ACEOF
  4880. rm -f conftest.$ac_objext
  4881. if { (ac_try="$ac_compile"
  4882. case "(($ac_try" in
  4883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4884. *) ac_try_echo=$ac_try;;
  4885. esac
  4886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4887. $as_echo "$ac_try_echo") >&5
  4888. (eval "$ac_compile") 2>conftest.er1
  4889. ac_status=$?
  4890. grep -v '^ *+' conftest.er1 >conftest.err
  4891. rm -f conftest.er1
  4892. cat conftest.err >&5
  4893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4894. (exit $ac_status); } && {
  4895. test -z "$ac_cxx_werror_flag" ||
  4896. test ! -s conftest.err
  4897. } && test -s conftest.$ac_objext; then
  4898. ac_header_compiler=yes
  4899. else
  4900. $as_echo "$as_me: failed program was:" >&5
  4901. sed 's/^/| /' conftest.$ac_ext >&5
  4902. ac_header_compiler=no
  4903. fi
  4904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4905. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4906. $as_echo "$ac_header_compiler" >&6; }
  4907. # Is the header present?
  4908. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4909. $as_echo_n "checking minix/config.h presence... " >&6; }
  4910. cat >conftest.$ac_ext <<_ACEOF
  4911. /* confdefs.h. */
  4912. _ACEOF
  4913. cat confdefs.h >>conftest.$ac_ext
  4914. cat >>conftest.$ac_ext <<_ACEOF
  4915. /* end confdefs.h. */
  4916. #include <minix/config.h>
  4917. _ACEOF
  4918. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4919. case "(($ac_try" in
  4920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4921. *) ac_try_echo=$ac_try;;
  4922. esac
  4923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4924. $as_echo "$ac_try_echo") >&5
  4925. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4926. ac_status=$?
  4927. grep -v '^ *+' conftest.er1 >conftest.err
  4928. rm -f conftest.er1
  4929. cat conftest.err >&5
  4930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } >/dev/null && {
  4932. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4933. test ! -s conftest.err
  4934. }; then
  4935. ac_header_preproc=yes
  4936. else
  4937. $as_echo "$as_me: failed program was:" >&5
  4938. sed 's/^/| /' conftest.$ac_ext >&5
  4939. ac_header_preproc=no
  4940. fi
  4941. rm -f conftest.err conftest.$ac_ext
  4942. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4943. $as_echo "$ac_header_preproc" >&6; }
  4944. # So? What about this header?
  4945. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4946. yes:no: )
  4947. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4948. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4949. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4950. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4951. ac_header_preproc=yes
  4952. ;;
  4953. no:yes:* )
  4954. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4955. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4956. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4957. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4958. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4959. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4960. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4961. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4962. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4963. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4964. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4965. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4966. ( cat <<\_ASBOX
  4967. ## ----------------------------------------------- ##
  4968. ## Report this to t-tujikawa@users.sourceforge.net ##
  4969. ## ----------------------------------------------- ##
  4970. _ASBOX
  4971. ) | sed "s/^/$as_me: WARNING: /" >&2
  4972. ;;
  4973. esac
  4974. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4975. $as_echo_n "checking for minix/config.h... " >&6; }
  4976. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. ac_cv_header_minix_config_h=$ac_header_preproc
  4980. fi
  4981. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4982. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4983. fi
  4984. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4985. MINIX=yes
  4986. else
  4987. MINIX=
  4988. fi
  4989. if test "$MINIX" = yes; then
  4990. cat >>confdefs.h <<\_ACEOF
  4991. #define _POSIX_SOURCE 1
  4992. _ACEOF
  4993. cat >>confdefs.h <<\_ACEOF
  4994. #define _POSIX_1_SOURCE 2
  4995. _ACEOF
  4996. cat >>confdefs.h <<\_ACEOF
  4997. #define _MINIX 1
  4998. _ACEOF
  4999. fi
  5000. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  5001. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5002. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. cat >conftest.$ac_ext <<_ACEOF
  5006. /* confdefs.h. */
  5007. _ACEOF
  5008. cat confdefs.h >>conftest.$ac_ext
  5009. cat >>conftest.$ac_ext <<_ACEOF
  5010. /* end confdefs.h. */
  5011. # define __EXTENSIONS__ 1
  5012. $ac_includes_default
  5013. int
  5014. main ()
  5015. {
  5016. ;
  5017. return 0;
  5018. }
  5019. _ACEOF
  5020. rm -f conftest.$ac_objext
  5021. if { (ac_try="$ac_compile"
  5022. case "(($ac_try" in
  5023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5024. *) ac_try_echo=$ac_try;;
  5025. esac
  5026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5027. $as_echo "$ac_try_echo") >&5
  5028. (eval "$ac_compile") 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } && {
  5035. test -z "$ac_cxx_werror_flag" ||
  5036. test ! -s conftest.err
  5037. } && test -s conftest.$ac_objext; then
  5038. ac_cv_safe_to_define___extensions__=yes
  5039. else
  5040. $as_echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. ac_cv_safe_to_define___extensions__=no
  5043. fi
  5044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. fi
  5046. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5047. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5048. test $ac_cv_safe_to_define___extensions__ = yes &&
  5049. cat >>confdefs.h <<\_ACEOF
  5050. #define __EXTENSIONS__ 1
  5051. _ACEOF
  5052. cat >>confdefs.h <<\_ACEOF
  5053. #define _ALL_SOURCE 1
  5054. _ACEOF
  5055. cat >>confdefs.h <<\_ACEOF
  5056. #define _GNU_SOURCE 1
  5057. _ACEOF
  5058. cat >>confdefs.h <<\_ACEOF
  5059. #define _POSIX_PTHREAD_SEMANTICS 1
  5060. _ACEOF
  5061. cat >>confdefs.h <<\_ACEOF
  5062. #define _TANDEM_SOURCE 1
  5063. _ACEOF
  5064. # Checks for libraries.
  5065. if test "x$with_libxml2" = "xyes"; then
  5066. # Check whether --with-xml-prefix was given.
  5067. if test "${with_xml_prefix+set}" = set; then
  5068. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5069. else
  5070. xml_config_prefix=""
  5071. fi
  5072. # Check whether --with-xml-exec-prefix was given.
  5073. if test "${with_xml_exec_prefix+set}" = set; then
  5074. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5075. else
  5076. xml_config_exec_prefix=""
  5077. fi
  5078. # Check whether --enable-xmltest was given.
  5079. if test "${enable_xmltest+set}" = set; then
  5080. enableval=$enable_xmltest;
  5081. else
  5082. enable_xmltest=yes
  5083. fi
  5084. if test x$xml_config_exec_prefix != x ; then
  5085. xml_config_args="$xml_config_args"
  5086. if test x${XML2_CONFIG+set} != xset ; then
  5087. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5088. fi
  5089. fi
  5090. if test x$xml_config_prefix != x ; then
  5091. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5092. if test x${XML2_CONFIG+set} != xset ; then
  5093. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5094. fi
  5095. fi
  5096. # Extract the first word of "xml2-config", so it can be a program name with args.
  5097. set dummy xml2-config; ac_word=$2
  5098. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5099. $as_echo_n "checking for $ac_word... " >&6; }
  5100. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. case $XML2_CONFIG in
  5104. [\\/]* | ?:[\\/]*)
  5105. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5106. ;;
  5107. *)
  5108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5109. for as_dir in $PATH
  5110. do
  5111. IFS=$as_save_IFS
  5112. test -z "$as_dir" && as_dir=.
  5113. for ac_exec_ext in '' $ac_executable_extensions; do
  5114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5115. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5116. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5117. break 2
  5118. fi
  5119. done
  5120. done
  5121. IFS=$as_save_IFS
  5122. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5123. ;;
  5124. esac
  5125. fi
  5126. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5127. if test -n "$XML2_CONFIG"; then
  5128. { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  5129. $as_echo "$XML2_CONFIG" >&6; }
  5130. else
  5131. { $as_echo "$as_me:$LINENO: result: no" >&5
  5132. $as_echo "no" >&6; }
  5133. fi
  5134. min_xml_version=2.6.24
  5135. { $as_echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  5136. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5137. no_xml=""
  5138. if test "$XML2_CONFIG" = "no" ; then
  5139. no_xml=yes
  5140. else
  5141. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5142. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5143. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5144. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5145. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5146. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5147. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5148. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5149. if test "x$enable_xmltest" = "xyes" ; then
  5150. ac_save_CPPFLAGS="$CPPFLAGS"
  5151. ac_save_LIBS="$LIBS"
  5152. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5153. LIBS="$XML_LIBS $LIBS"
  5154. rm -f conf.xmltest
  5155. if test "$cross_compiling" = yes; then
  5156. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5157. else
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. #include <stdlib.h>
  5165. #include <stdio.h>
  5166. #include <string.h>
  5167. #include <libxml/xmlversion.h>
  5168. int
  5169. main()
  5170. {
  5171. int xml_major_version, xml_minor_version, xml_micro_version;
  5172. int major, minor, micro;
  5173. char *tmp_version;
  5174. system("touch conf.xmltest");
  5175. /* Capture xml2-config output via autoconf/configure variables */
  5176. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5177. tmp_version = (char *)strdup("$min_xml_version");
  5178. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5179. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5180. exit(1);
  5181. }
  5182. free(tmp_version);
  5183. /* Capture the version information from the header files */
  5184. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5185. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5186. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5187. exit(1);
  5188. }
  5189. free(tmp_version);
  5190. /* Compare xml2-config output to the libxml headers */
  5191. if ((xml_major_version != $xml_config_major_version) ||
  5192. (xml_minor_version != $xml_config_minor_version) ||
  5193. (xml_micro_version != $xml_config_micro_version))
  5194. {
  5195. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5196. xml_major_version, xml_minor_version, xml_micro_version);
  5197. printf("*** xml2-config (version %d.%d.%d)\n",
  5198. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5199. return 1;
  5200. }
  5201. /* Compare the headers to the library to make sure we match */
  5202. /* Less than ideal -- doesn't provide us with return value feedback,
  5203. * only exits if there's a serious mismatch between header and library.
  5204. */
  5205. LIBXML_TEST_VERSION;
  5206. /* Test that the library is greater than our minimum version */
  5207. if ((xml_major_version > major) ||
  5208. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5209. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5210. (xml_micro_version >= micro)))
  5211. {
  5212. return 0;
  5213. }
  5214. else
  5215. {
  5216. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5217. xml_major_version, xml_minor_version, xml_micro_version);
  5218. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5219. major, minor, micro);
  5220. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5221. printf("***\n");
  5222. printf("*** If you have already installed a sufficiently new version, this error\n");
  5223. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5224. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5225. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5226. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5227. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5228. printf("*** so that the correct libraries are found at run-time))\n");
  5229. }
  5230. return 1;
  5231. }
  5232. _ACEOF
  5233. rm -f conftest$ac_exeext
  5234. if { (ac_try="$ac_link"
  5235. case "(($ac_try" in
  5236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5237. *) ac_try_echo=$ac_try;;
  5238. esac
  5239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5240. $as_echo "$ac_try_echo") >&5
  5241. (eval "$ac_link") 2>&5
  5242. ac_status=$?
  5243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5244. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5245. { (case "(($ac_try" in
  5246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5247. *) ac_try_echo=$ac_try;;
  5248. esac
  5249. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5250. $as_echo "$ac_try_echo") >&5
  5251. (eval "$ac_try") 2>&5
  5252. ac_status=$?
  5253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5254. (exit $ac_status); }; }; then
  5255. :
  5256. else
  5257. $as_echo "$as_me: program exited with status $ac_status" >&5
  5258. $as_echo "$as_me: failed program was:" >&5
  5259. sed 's/^/| /' conftest.$ac_ext >&5
  5260. ( exit $ac_status )
  5261. no_xml=yes
  5262. fi
  5263. rm -rf conftest.dSYM
  5264. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5265. fi
  5266. CPPFLAGS="$ac_save_CPPFLAGS"
  5267. LIBS="$ac_save_LIBS"
  5268. fi
  5269. fi
  5270. if test "x$no_xml" = x ; then
  5271. { $as_echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5272. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5273. have_libxml2=yes
  5274. else
  5275. { $as_echo "$as_me:$LINENO: result: no" >&5
  5276. $as_echo "no" >&6; }
  5277. if test "$XML2_CONFIG" = "no" ; then
  5278. echo "*** The xml2-config script installed by LIBXML could not be found"
  5279. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5280. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5281. echo "*** full path to xml2-config."
  5282. else
  5283. if test -f conf.xmltest ; then
  5284. :
  5285. else
  5286. echo "*** Could not run libxml test program, checking why..."
  5287. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5288. LIBS="$LIBS $XML_LIBS"
  5289. cat >conftest.$ac_ext <<_ACEOF
  5290. /* confdefs.h. */
  5291. _ACEOF
  5292. cat confdefs.h >>conftest.$ac_ext
  5293. cat >>conftest.$ac_ext <<_ACEOF
  5294. /* end confdefs.h. */
  5295. #include <libxml/xmlversion.h>
  5296. #include <stdio.h>
  5297. int
  5298. main ()
  5299. {
  5300. LIBXML_TEST_VERSION; return 0;
  5301. ;
  5302. return 0;
  5303. }
  5304. _ACEOF
  5305. rm -f conftest.$ac_objext conftest$ac_exeext
  5306. if { (ac_try="$ac_link"
  5307. case "(($ac_try" in
  5308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5309. *) ac_try_echo=$ac_try;;
  5310. esac
  5311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5312. $as_echo "$ac_try_echo") >&5
  5313. (eval "$ac_link") 2>conftest.er1
  5314. ac_status=$?
  5315. grep -v '^ *+' conftest.er1 >conftest.err
  5316. rm -f conftest.er1
  5317. cat conftest.err >&5
  5318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319. (exit $ac_status); } && {
  5320. test -z "$ac_cxx_werror_flag" ||
  5321. test ! -s conftest.err
  5322. } && test -s conftest$ac_exeext && {
  5323. test "$cross_compiling" = yes ||
  5324. $as_test_x conftest$ac_exeext
  5325. }; then
  5326. echo "*** The test program compiled, but did not run. This usually means"
  5327. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5328. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5329. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5330. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5331. echo "*** is required on your system"
  5332. echo "***"
  5333. echo "*** If you have an old version installed, it is best to remove it, although"
  5334. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5335. else
  5336. $as_echo "$as_me: failed program was:" >&5
  5337. sed 's/^/| /' conftest.$ac_ext >&5
  5338. echo "*** The test program failed to compile or link. See the file config.log for the"
  5339. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5340. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5341. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5342. fi
  5343. rm -rf conftest.dSYM
  5344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5345. conftest$ac_exeext conftest.$ac_ext
  5346. CPPFLAGS="$ac_save_CPPFLAGS"
  5347. LIBS="$ac_save_LIBS"
  5348. fi
  5349. fi
  5350. XML_CPPFLAGS=""
  5351. XML_LIBS=""
  5352. :
  5353. fi
  5354. rm -f conf.xmltest
  5355. if test "x$have_libxml2" = "xyes"; then
  5356. cat >>confdefs.h <<\_ACEOF
  5357. #define HAVE_LIBXML2 1
  5358. _ACEOF
  5359. fi
  5360. fi
  5361. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5362. # Check whether --with-libexpat-prefix was given.
  5363. if test "${with_libexpat_prefix+set}" = set; then
  5364. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5365. else
  5366. libexpat_prefix=""
  5367. fi
  5368. if test "x$libexpat_prefix" = "x"; then
  5369. libexpat_prefix="/usr"
  5370. fi
  5371. libexpat_prefix_lib=$libexpat_prefix/lib
  5372. libexpat_prefix_include=$libexpat_prefix/include
  5373. LIBS_save=$LIBS
  5374. CPPFLAGS_save=$CPPFLAGS
  5375. LIBS="-L$libexpat_prefix_lib $LIBS"
  5376. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5377. { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5378. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5379. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. ac_check_lib_save_LIBS=$LIBS
  5383. LIBS="-lexpat $LIBS"
  5384. cat >conftest.$ac_ext <<_ACEOF
  5385. /* confdefs.h. */
  5386. _ACEOF
  5387. cat confdefs.h >>conftest.$ac_ext
  5388. cat >>conftest.$ac_ext <<_ACEOF
  5389. /* end confdefs.h. */
  5390. /* Override any GCC internal prototype to avoid an error.
  5391. Use char because int might match the return type of a GCC
  5392. builtin and then its argument prototype would still apply. */
  5393. #ifdef __cplusplus
  5394. extern "C"
  5395. #endif
  5396. char XML_ParserCreate ();
  5397. int
  5398. main ()
  5399. {
  5400. return XML_ParserCreate ();
  5401. ;
  5402. return 0;
  5403. }
  5404. _ACEOF
  5405. rm -f conftest.$ac_objext conftest$ac_exeext
  5406. if { (ac_try="$ac_link"
  5407. case "(($ac_try" in
  5408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5409. *) ac_try_echo=$ac_try;;
  5410. esac
  5411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5412. $as_echo "$ac_try_echo") >&5
  5413. (eval "$ac_link") 2>conftest.er1
  5414. ac_status=$?
  5415. grep -v '^ *+' conftest.er1 >conftest.err
  5416. rm -f conftest.er1
  5417. cat conftest.err >&5
  5418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5419. (exit $ac_status); } && {
  5420. test -z "$ac_cxx_werror_flag" ||
  5421. test ! -s conftest.err
  5422. } && test -s conftest$ac_exeext && {
  5423. test "$cross_compiling" = yes ||
  5424. $as_test_x conftest$ac_exeext
  5425. }; then
  5426. ac_cv_lib_expat_XML_ParserCreate=yes
  5427. else
  5428. $as_echo "$as_me: failed program was:" >&5
  5429. sed 's/^/| /' conftest.$ac_ext >&5
  5430. ac_cv_lib_expat_XML_ParserCreate=no
  5431. fi
  5432. rm -rf conftest.dSYM
  5433. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5434. conftest$ac_exeext conftest.$ac_ext
  5435. LIBS=$ac_check_lib_save_LIBS
  5436. fi
  5437. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5438. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5439. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  5440. have_libexpat=yes
  5441. fi
  5442. if test "x$have_libexpat" = "xyes"; then
  5443. cat >>confdefs.h <<\_ACEOF
  5444. #define HAVE_LIBEXPAT 1
  5445. _ACEOF
  5446. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5447. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5448. fi
  5449. LIBS=$LIBS_save
  5450. CPPFLAGS=$CPPFLAGS_save
  5451. fi
  5452. if test "x$with_sqlite3" = "xyes"; then
  5453. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5454. if test -n "$ac_tool_prefix"; then
  5455. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5456. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5457. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5458. $as_echo_n "checking for $ac_word... " >&6; }
  5459. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. case $PKG_CONFIG in
  5463. [\\/]* | ?:[\\/]*)
  5464. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5465. ;;
  5466. *)
  5467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5468. for as_dir in $PATH
  5469. do
  5470. IFS=$as_save_IFS
  5471. test -z "$as_dir" && as_dir=.
  5472. for ac_exec_ext in '' $ac_executable_extensions; do
  5473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5474. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5475. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5476. break 2
  5477. fi
  5478. done
  5479. done
  5480. IFS=$as_save_IFS
  5481. ;;
  5482. esac
  5483. fi
  5484. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5485. if test -n "$PKG_CONFIG"; then
  5486. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5487. $as_echo "$PKG_CONFIG" >&6; }
  5488. else
  5489. { $as_echo "$as_me:$LINENO: result: no" >&5
  5490. $as_echo "no" >&6; }
  5491. fi
  5492. fi
  5493. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5494. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5495. # Extract the first word of "pkg-config", so it can be a program name with args.
  5496. set dummy pkg-config; ac_word=$2
  5497. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5498. $as_echo_n "checking for $ac_word... " >&6; }
  5499. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. case $ac_pt_PKG_CONFIG in
  5503. [\\/]* | ?:[\\/]*)
  5504. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5505. ;;
  5506. *)
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5514. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5515. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. ;;
  5522. esac
  5523. fi
  5524. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5525. if test -n "$ac_pt_PKG_CONFIG"; then
  5526. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5527. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5528. else
  5529. { $as_echo "$as_me:$LINENO: result: no" >&5
  5530. $as_echo "no" >&6; }
  5531. fi
  5532. if test "x$ac_pt_PKG_CONFIG" = x; then
  5533. PKG_CONFIG=""
  5534. else
  5535. case $cross_compiling:$ac_tool_warned in
  5536. yes:)
  5537. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5538. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5539. ac_tool_warned=yes ;;
  5540. esac
  5541. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5542. fi
  5543. else
  5544. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5545. fi
  5546. fi
  5547. if test -n "$PKG_CONFIG"; then
  5548. _pkg_min_version=0.9.0
  5549. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5550. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5551. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5552. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5553. $as_echo "yes" >&6; }
  5554. else
  5555. { $as_echo "$as_me:$LINENO: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. PKG_CONFIG=""
  5558. fi
  5559. fi
  5560. # Check whether --with-sqlite3-prefix was given.
  5561. if test "${with_sqlite3_prefix+set}" = set; then
  5562. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5563. else
  5564. sqlite3_prefix=""
  5565. fi
  5566. if test "x$sqlite3_prefix" = "x"; then
  5567. sqlite3_prefix="/usr"
  5568. fi
  5569. LIBS_save=$LIBS
  5570. CPPFLAGS_save=$CPPFLAGS
  5571. pkg_failed=no
  5572. { $as_echo "$as_me:$LINENO: checking for SQLITE3" >&5
  5573. $as_echo_n "checking for SQLITE3... " >&6; }
  5574. if test -n "$PKG_CONFIG"; then
  5575. if test -n "$SQLITE3_CFLAGS"; then
  5576. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5577. else
  5578. if test -n "$PKG_CONFIG" && \
  5579. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
  5580. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5581. ac_status=$?
  5582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5583. (exit $ac_status); }; then
  5584. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5585. else
  5586. pkg_failed=yes
  5587. fi
  5588. fi
  5589. else
  5590. pkg_failed=untried
  5591. fi
  5592. if test -n "$PKG_CONFIG"; then
  5593. if test -n "$SQLITE3_LIBS"; then
  5594. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5595. else
  5596. if test -n "$PKG_CONFIG" && \
  5597. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
  5598. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5599. ac_status=$?
  5600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); }; then
  5602. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5603. else
  5604. pkg_failed=yes
  5605. fi
  5606. fi
  5607. else
  5608. pkg_failed=untried
  5609. fi
  5610. if test $pkg_failed = yes; then
  5611. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5612. _pkg_short_errors_supported=yes
  5613. else
  5614. _pkg_short_errors_supported=no
  5615. fi
  5616. if test $_pkg_short_errors_supported = yes; then
  5617. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5618. else
  5619. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5620. fi
  5621. # Put the nasty error message in config.log where it belongs
  5622. echo "$SQLITE3_PKG_ERRORS" >&5
  5623. { $as_echo "$as_me:$LINENO: result: no" >&5
  5624. $as_echo "no" >&6; }
  5625. have_sqlite3=no
  5626. elif test $pkg_failed = untried; then
  5627. have_sqlite3=no
  5628. else
  5629. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5630. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5631. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5632. $as_echo "yes" >&6; }
  5633. have_sqlite3=yes
  5634. fi
  5635. if test "x$have_sqlite3" != "xyes"; then
  5636. { $as_echo "$as_me:$LINENO: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5637. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5638. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5639. sqlite3_prefix_include=$sqlite3_prefix/include
  5640. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5641. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5642. { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5643. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5644. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. ac_check_lib_save_LIBS=$LIBS
  5648. LIBS="-lsqlite3 $LIBS"
  5649. cat >conftest.$ac_ext <<_ACEOF
  5650. /* confdefs.h. */
  5651. _ACEOF
  5652. cat confdefs.h >>conftest.$ac_ext
  5653. cat >>conftest.$ac_ext <<_ACEOF
  5654. /* end confdefs.h. */
  5655. /* Override any GCC internal prototype to avoid an error.
  5656. Use char because int might match the return type of a GCC
  5657. builtin and then its argument prototype would still apply. */
  5658. #ifdef __cplusplus
  5659. extern "C"
  5660. #endif
  5661. char sqlite3_open ();
  5662. int
  5663. main ()
  5664. {
  5665. return sqlite3_open ();
  5666. ;
  5667. return 0;
  5668. }
  5669. _ACEOF
  5670. rm -f conftest.$ac_objext conftest$ac_exeext
  5671. if { (ac_try="$ac_link"
  5672. case "(($ac_try" in
  5673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5674. *) ac_try_echo=$ac_try;;
  5675. esac
  5676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5677. $as_echo "$ac_try_echo") >&5
  5678. (eval "$ac_link") 2>conftest.er1
  5679. ac_status=$?
  5680. grep -v '^ *+' conftest.er1 >conftest.err
  5681. rm -f conftest.er1
  5682. cat conftest.err >&5
  5683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); } && {
  5685. test -z "$ac_cxx_werror_flag" ||
  5686. test ! -s conftest.err
  5687. } && test -s conftest$ac_exeext && {
  5688. test "$cross_compiling" = yes ||
  5689. $as_test_x conftest$ac_exeext
  5690. }; then
  5691. ac_cv_lib_sqlite3_sqlite3_open=yes
  5692. else
  5693. $as_echo "$as_me: failed program was:" >&5
  5694. sed 's/^/| /' conftest.$ac_ext >&5
  5695. ac_cv_lib_sqlite3_sqlite3_open=no
  5696. fi
  5697. rm -rf conftest.dSYM
  5698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5699. conftest$ac_exeext conftest.$ac_ext
  5700. LIBS=$ac_check_lib_save_LIBS
  5701. fi
  5702. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5703. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5704. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
  5705. have_sqlite3=yes
  5706. fi
  5707. if test "x$have_sqlite3" = "xyes"; then
  5708. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5709. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5710. fi
  5711. fi
  5712. if test "x$have_sqlite3" = "xyes"; then
  5713. LIBS="$SQLITE3_LIBS"
  5714. CPPFLAGS="$SQLITE3_CFLAGS"
  5715. for ac_func in sqlite3_open_v2
  5716. do
  5717. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5718. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5719. $as_echo_n "checking for $ac_func... " >&6; }
  5720. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. cat >conftest.$ac_ext <<_ACEOF
  5724. /* confdefs.h. */
  5725. _ACEOF
  5726. cat confdefs.h >>conftest.$ac_ext
  5727. cat >>conftest.$ac_ext <<_ACEOF
  5728. /* end confdefs.h. */
  5729. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5731. #define $ac_func innocuous_$ac_func
  5732. /* System header to define __stub macros and hopefully few prototypes,
  5733. which can conflict with char $ac_func (); below.
  5734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5735. <limits.h> exists even on freestanding compilers. */
  5736. #ifdef __STDC__
  5737. # include <limits.h>
  5738. #else
  5739. # include <assert.h>
  5740. #endif
  5741. #undef $ac_func
  5742. /* Override any GCC internal prototype to avoid an error.
  5743. Use char because int might match the return type of a GCC
  5744. builtin and then its argument prototype would still apply. */
  5745. #ifdef __cplusplus
  5746. extern "C"
  5747. #endif
  5748. char $ac_func ();
  5749. /* The GNU C library defines this for functions which it implements
  5750. to always fail with ENOSYS. Some functions are actually named
  5751. something starting with __ and the normal name is an alias. */
  5752. #if defined __stub_$ac_func || defined __stub___$ac_func
  5753. choke me
  5754. #endif
  5755. int
  5756. main ()
  5757. {
  5758. return $ac_func ();
  5759. ;
  5760. return 0;
  5761. }
  5762. _ACEOF
  5763. rm -f conftest.$ac_objext conftest$ac_exeext
  5764. if { (ac_try="$ac_link"
  5765. case "(($ac_try" in
  5766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5767. *) ac_try_echo=$ac_try;;
  5768. esac
  5769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5770. $as_echo "$ac_try_echo") >&5
  5771. (eval "$ac_link") 2>conftest.er1
  5772. ac_status=$?
  5773. grep -v '^ *+' conftest.er1 >conftest.err
  5774. rm -f conftest.er1
  5775. cat conftest.err >&5
  5776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5777. (exit $ac_status); } && {
  5778. test -z "$ac_cxx_werror_flag" ||
  5779. test ! -s conftest.err
  5780. } && test -s conftest$ac_exeext && {
  5781. test "$cross_compiling" = yes ||
  5782. $as_test_x conftest$ac_exeext
  5783. }; then
  5784. eval "$as_ac_var=yes"
  5785. else
  5786. $as_echo "$as_me: failed program was:" >&5
  5787. sed 's/^/| /' conftest.$ac_ext >&5
  5788. eval "$as_ac_var=no"
  5789. fi
  5790. rm -rf conftest.dSYM
  5791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5792. conftest$ac_exeext conftest.$ac_ext
  5793. fi
  5794. ac_res=`eval 'as_val=${'$as_ac_var'}
  5795. $as_echo "$as_val"'`
  5796. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5797. $as_echo "$ac_res" >&6; }
  5798. as_val=`eval 'as_val=${'$as_ac_var'}
  5799. $as_echo "$as_val"'`
  5800. if test "x$as_val" = x""yes; then
  5801. cat >>confdefs.h <<_ACEOF
  5802. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5803. _ACEOF
  5804. fi
  5805. done
  5806. cat >>confdefs.h <<\_ACEOF
  5807. #define HAVE_SQLITE3 1
  5808. _ACEOF
  5809. fi
  5810. LIBS=$LIBS_save
  5811. CPPFLAGS=$CPPFLAGS_save
  5812. fi
  5813. if test "x$with_gnutls" = "xyes"; then
  5814. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5815. # First check the presence of libgnutls using pkg-config.
  5816. pkg_failed=no
  5817. { $as_echo "$as_me:$LINENO: checking for LIBGNUTLS" >&5
  5818. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5819. if test -n "$PKG_CONFIG"; then
  5820. if test -n "$LIBGNUTLS_CFLAGS"; then
  5821. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5822. else
  5823. if test -n "$PKG_CONFIG" && \
  5824. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5825. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5826. ac_status=$?
  5827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828. (exit $ac_status); }; then
  5829. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5830. else
  5831. pkg_failed=yes
  5832. fi
  5833. fi
  5834. else
  5835. pkg_failed=untried
  5836. fi
  5837. if test -n "$PKG_CONFIG"; then
  5838. if test -n "$LIBGNUTLS_LIBS"; then
  5839. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5840. else
  5841. if test -n "$PKG_CONFIG" && \
  5842. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5843. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); }; then
  5847. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5848. else
  5849. pkg_failed=yes
  5850. fi
  5851. fi
  5852. else
  5853. pkg_failed=untried
  5854. fi
  5855. if test $pkg_failed = yes; then
  5856. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5857. _pkg_short_errors_supported=yes
  5858. else
  5859. _pkg_short_errors_supported=no
  5860. fi
  5861. if test $_pkg_short_errors_supported = yes; then
  5862. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5863. else
  5864. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5865. fi
  5866. # Put the nasty error message in config.log where it belongs
  5867. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5868. { $as_echo "$as_me:$LINENO: result: no" >&5
  5869. $as_echo "no" >&6; }
  5870. have_libgnutls=no
  5871. elif test $pkg_failed = untried; then
  5872. have_libgnutls=no
  5873. else
  5874. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5875. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5876. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5877. $as_echo "yes" >&6; }
  5878. have_libgnutls=yes
  5879. fi
  5880. # If no libgnutls found by pkg-config, fall back to old macro
  5881. if test "x$have_libgnutls" = "xno"; then
  5882. { $as_echo "$as_me:$LINENO: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5883. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5884. # Check whether --with-libgnutls-prefix was given.
  5885. if test "${with_libgnutls_prefix+set}" = set; then
  5886. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5887. else
  5888. libgnutls_config_prefix=""
  5889. fi
  5890. if test x$libgnutls_config_prefix != x ; then
  5891. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5892. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5893. fi
  5894. fi
  5895. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5896. set dummy libgnutls-config; ac_word=$2
  5897. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5898. $as_echo_n "checking for $ac_word... " >&6; }
  5899. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5900. $as_echo_n "(cached) " >&6
  5901. else
  5902. case $LIBGNUTLS_CONFIG in
  5903. [\\/]* | ?:[\\/]*)
  5904. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5905. ;;
  5906. *)
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5914. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5915. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5922. ;;
  5923. esac
  5924. fi
  5925. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5926. if test -n "$LIBGNUTLS_CONFIG"; then
  5927. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5928. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5929. else
  5930. { $as_echo "$as_me:$LINENO: result: no" >&5
  5931. $as_echo "no" >&6; }
  5932. fi
  5933. min_libgnutls_version=1.2.9
  5934. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5935. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5936. no_libgnutls=""
  5937. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5938. no_libgnutls=yes
  5939. else
  5940. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5941. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5942. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5943. ac_save_CFLAGS="$CFLAGS"
  5944. ac_save_LIBS="$LIBS"
  5945. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5946. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5947. rm -f conf.libgnutlstest
  5948. if test "$cross_compiling" = yes; then
  5949. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5950. else
  5951. cat >conftest.$ac_ext <<_ACEOF
  5952. /* confdefs.h. */
  5953. _ACEOF
  5954. cat confdefs.h >>conftest.$ac_ext
  5955. cat >>conftest.$ac_ext <<_ACEOF
  5956. /* end confdefs.h. */
  5957. #include <stdio.h>
  5958. #include <stdlib.h>
  5959. #include <string.h>
  5960. #include <gnutls/gnutls.h>
  5961. int
  5962. main ()
  5963. {
  5964. system ("touch conf.libgnutlstest");
  5965. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5966. {
  5967. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5968. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5969. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5970. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5971. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5972. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5973. printf("*** required on your system.\n");
  5974. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5975. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5976. printf("*** before re-running configure\n");
  5977. }
  5978. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5979. {
  5980. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5981. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5982. }
  5983. else
  5984. {
  5985. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5986. {
  5987. return 0;
  5988. }
  5989. else
  5990. {
  5991. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5992. gnutls_check_version(NULL) );
  5993. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5994. "$min_libgnutls_version" );
  5995. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5996. printf("*** \n");
  5997. printf("*** If you have already installed a sufficiently new version, this error\n");
  5998. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5999. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  6000. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  6001. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  6002. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  6003. printf("*** so that the correct libraries are found at run-time))\n");
  6004. }
  6005. }
  6006. return 1;
  6007. }
  6008. _ACEOF
  6009. rm -f conftest$ac_exeext
  6010. if { (ac_try="$ac_link"
  6011. case "(($ac_try" in
  6012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6013. *) ac_try_echo=$ac_try;;
  6014. esac
  6015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6016. $as_echo "$ac_try_echo") >&5
  6017. (eval "$ac_link") 2>&5
  6018. ac_status=$?
  6019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6021. { (case "(($ac_try" in
  6022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6023. *) ac_try_echo=$ac_try;;
  6024. esac
  6025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6026. $as_echo "$ac_try_echo") >&5
  6027. (eval "$ac_try") 2>&5
  6028. ac_status=$?
  6029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6030. (exit $ac_status); }; }; then
  6031. :
  6032. else
  6033. $as_echo "$as_me: program exited with status $ac_status" >&5
  6034. $as_echo "$as_me: failed program was:" >&5
  6035. sed 's/^/| /' conftest.$ac_ext >&5
  6036. ( exit $ac_status )
  6037. no_libgnutls=yes
  6038. fi
  6039. rm -rf conftest.dSYM
  6040. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6041. fi
  6042. CFLAGS="$ac_save_CFLAGS"
  6043. LIBS="$ac_save_LIBS"
  6044. fi
  6045. if test "x$no_libgnutls" = x ; then
  6046. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6047. $as_echo "yes" >&6; }
  6048. have_libgnutls=yes
  6049. else
  6050. if test -f conf.libgnutlstest ; then
  6051. :
  6052. else
  6053. { $as_echo "$as_me:$LINENO: result: no" >&5
  6054. $as_echo "no" >&6; }
  6055. fi
  6056. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  6057. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  6058. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  6059. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  6060. echo "*** full path to libgnutls-config."
  6061. else
  6062. if test -f conf.libgnutlstest ; then
  6063. :
  6064. else
  6065. echo "*** Could not run libgnutls test program, checking why..."
  6066. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  6067. LIBS="$LIBS $LIBGNUTLS_LIBS"
  6068. cat >conftest.$ac_ext <<_ACEOF
  6069. /* confdefs.h. */
  6070. _ACEOF
  6071. cat confdefs.h >>conftest.$ac_ext
  6072. cat >>conftest.$ac_ext <<_ACEOF
  6073. /* end confdefs.h. */
  6074. #include <stdio.h>
  6075. #include <stdlib.h>
  6076. #include <string.h>
  6077. #include <gnutls/gnutls.h>
  6078. int
  6079. main ()
  6080. {
  6081. return !!gnutls_check_version(NULL);
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. rm -f conftest.$ac_objext conftest$ac_exeext
  6087. if { (ac_try="$ac_link"
  6088. case "(($ac_try" in
  6089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6090. *) ac_try_echo=$ac_try;;
  6091. esac
  6092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6093. $as_echo "$ac_try_echo") >&5
  6094. (eval "$ac_link") 2>conftest.er1
  6095. ac_status=$?
  6096. grep -v '^ *+' conftest.er1 >conftest.err
  6097. rm -f conftest.er1
  6098. cat conftest.err >&5
  6099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100. (exit $ac_status); } && {
  6101. test -z "$ac_cxx_werror_flag" ||
  6102. test ! -s conftest.err
  6103. } && test -s conftest$ac_exeext && {
  6104. test "$cross_compiling" = yes ||
  6105. $as_test_x conftest$ac_exeext
  6106. }; then
  6107. echo "*** The test program compiled, but did not run. This usually means"
  6108. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  6109. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  6110. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  6111. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  6112. echo "*** is required on your system"
  6113. echo "***"
  6114. echo "*** If you have an old version installed, it is best to remove it, although"
  6115. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  6116. echo "***"
  6117. else
  6118. $as_echo "$as_me: failed program was:" >&5
  6119. sed 's/^/| /' conftest.$ac_ext >&5
  6120. echo "*** The test program failed to compile or link. See the file config.log for the"
  6121. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  6122. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  6123. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  6124. fi
  6125. rm -rf conftest.dSYM
  6126. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6127. conftest$ac_exeext conftest.$ac_ext
  6128. CFLAGS="$ac_save_CFLAGS"
  6129. LIBS="$ac_save_LIBS"
  6130. fi
  6131. fi
  6132. LIBGNUTLS_CFLAGS=""
  6133. LIBGNUTLS_LIBS=""
  6134. :
  6135. fi
  6136. rm -f conf.libgnutlstest
  6137. fi
  6138. if test "x$have_libgnutls" = "xyes"; then
  6139. cat >>confdefs.h <<\_ACEOF
  6140. #define HAVE_LIBGNUTLS 1
  6141. _ACEOF
  6142. fi
  6143. fi
  6144. if test "x$have_libgnutls" = "xyes"; then
  6145. # Check whether --with-libgcrypt-prefix was given.
  6146. if test "${with_libgcrypt_prefix+set}" = set; then
  6147. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  6148. else
  6149. libgcrypt_config_prefix=""
  6150. fi
  6151. if test x$libgcrypt_config_prefix != x ; then
  6152. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  6153. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  6154. fi
  6155. fi
  6156. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  6157. set dummy libgcrypt-config; ac_word=$2
  6158. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. case $LIBGCRYPT_CONFIG in
  6164. [\\/]* | ?:[\\/]*)
  6165. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6166. ;;
  6167. *)
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6175. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6176. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6183. ;;
  6184. esac
  6185. fi
  6186. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6187. if test -n "$LIBGCRYPT_CONFIG"; then
  6188. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  6189. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6190. else
  6191. { $as_echo "$as_me:$LINENO: result: no" >&5
  6192. $as_echo "no" >&6; }
  6193. fi
  6194. tmp=1.2.2
  6195. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6196. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6197. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6198. else
  6199. req_libgcrypt_api=0
  6200. min_libgcrypt_version="$tmp"
  6201. fi
  6202. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6203. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6204. ok=no
  6205. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6206. req_major=`echo $min_libgcrypt_version | \
  6207. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6208. req_minor=`echo $min_libgcrypt_version | \
  6209. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6210. req_micro=`echo $min_libgcrypt_version | \
  6211. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6212. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6213. major=`echo $libgcrypt_config_version | \
  6214. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6215. minor=`echo $libgcrypt_config_version | \
  6216. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6217. micro=`echo $libgcrypt_config_version | \
  6218. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6219. if test "$major" -gt "$req_major"; then
  6220. ok=yes
  6221. else
  6222. if test "$major" -eq "$req_major"; then
  6223. if test "$minor" -gt "$req_minor"; then
  6224. ok=yes
  6225. else
  6226. if test "$minor" -eq "$req_minor"; then
  6227. if test "$micro" -ge "$req_micro"; then
  6228. ok=yes
  6229. fi
  6230. fi
  6231. fi
  6232. fi
  6233. fi
  6234. fi
  6235. if test $ok = yes; then
  6236. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  6237. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6238. else
  6239. { $as_echo "$as_me:$LINENO: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. if test $ok = yes; then
  6243. # If we have a recent libgcrypt, we should also check that the
  6244. # API is compatible
  6245. if test "$req_libgcrypt_api" -gt 0 ; then
  6246. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6247. if test "$tmp" -gt 0 ; then
  6248. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6249. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6250. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6251. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6252. $as_echo "okay" >&6; }
  6253. else
  6254. ok=no
  6255. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6256. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6257. fi
  6258. fi
  6259. fi
  6260. fi
  6261. if test $ok = yes; then
  6262. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6263. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6264. have_libgcrypt=yes
  6265. else
  6266. LIBGCRYPT_CFLAGS=""
  6267. LIBGCRYPT_LIBS=""
  6268. :
  6269. fi
  6270. if test "x$have_libgcrypt" = "xyes"; then
  6271. cat >>confdefs.h <<\_ACEOF
  6272. #define HAVE_LIBGCRYPT 1
  6273. _ACEOF
  6274. fi
  6275. fi
  6276. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6277. # Check whether --with-openssl-prefix was given.
  6278. if test "${with_openssl_prefix+set}" = set; then
  6279. withval=$with_openssl_prefix; openssl_prefix=$withval
  6280. else
  6281. openssl_prefix=""
  6282. fi
  6283. if test "x$openssl_prefix" = "x"; then
  6284. openssl_prefix="/usr/local"
  6285. fi
  6286. LIBS_save=$LIBS
  6287. CPPFLAGS_save=$CPPFLAGS
  6288. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6289. if test -x $PKG_CONFIG; then
  6290. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6291. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6292. $PKG_CONFIG --exists openssl
  6293. if test "$?" = "0"; then
  6294. # Use pkg-config to detect LIBS and CFLAGS
  6295. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6296. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6297. LIBS="$OPENSSL_LIBS $LIBS"
  6298. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6299. have_openssl=yes
  6300. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6301. $as_echo "yes" >&6; }
  6302. else
  6303. { $as_echo "$as_me:$LINENO: result: no" >&5
  6304. $as_echo "no" >&6; }
  6305. fi
  6306. fi
  6307. if test "x$have_openssl" != "xyes"; then
  6308. openssl_prefix_lib=$openssl_prefix/lib
  6309. openssl_prefix_include=$openssl_prefix/include
  6310. LIBS="-L$openssl_prefix_lib $LIBS"
  6311. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6312. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6313. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6314. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6315. $as_echo_n "(cached) " >&6
  6316. else
  6317. ac_check_lib_save_LIBS=$LIBS
  6318. LIBS="-lssl $LIBS"
  6319. cat >conftest.$ac_ext <<_ACEOF
  6320. /* confdefs.h. */
  6321. _ACEOF
  6322. cat confdefs.h >>conftest.$ac_ext
  6323. cat >>conftest.$ac_ext <<_ACEOF
  6324. /* end confdefs.h. */
  6325. /* Override any GCC internal prototype to avoid an error.
  6326. Use char because int might match the return type of a GCC
  6327. builtin and then its argument prototype would still apply. */
  6328. #ifdef __cplusplus
  6329. extern "C"
  6330. #endif
  6331. char SSL_library_init ();
  6332. int
  6333. main ()
  6334. {
  6335. return SSL_library_init ();
  6336. ;
  6337. return 0;
  6338. }
  6339. _ACEOF
  6340. rm -f conftest.$ac_objext conftest$ac_exeext
  6341. if { (ac_try="$ac_link"
  6342. case "(($ac_try" in
  6343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6344. *) ac_try_echo=$ac_try;;
  6345. esac
  6346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6347. $as_echo "$ac_try_echo") >&5
  6348. (eval "$ac_link") 2>conftest.er1
  6349. ac_status=$?
  6350. grep -v '^ *+' conftest.er1 >conftest.err
  6351. rm -f conftest.er1
  6352. cat conftest.err >&5
  6353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); } && {
  6355. test -z "$ac_cxx_werror_flag" ||
  6356. test ! -s conftest.err
  6357. } && test -s conftest$ac_exeext && {
  6358. test "$cross_compiling" = yes ||
  6359. $as_test_x conftest$ac_exeext
  6360. }; then
  6361. ac_cv_lib_ssl_SSL_library_init=yes
  6362. else
  6363. $as_echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365. ac_cv_lib_ssl_SSL_library_init=no
  6366. fi
  6367. rm -rf conftest.dSYM
  6368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6369. conftest$ac_exeext conftest.$ac_ext
  6370. LIBS=$ac_check_lib_save_LIBS
  6371. fi
  6372. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6373. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6374. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6375. have_openssl=yes LIBS="-lssl $LIBS"
  6376. fi
  6377. if test "x$have_openssl" = "xyes"; then
  6378. have_openssl=no
  6379. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6380. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6381. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. ac_check_lib_save_LIBS=$LIBS
  6385. LIBS="-lcrypto $LIBS"
  6386. cat >conftest.$ac_ext <<_ACEOF
  6387. /* confdefs.h. */
  6388. _ACEOF
  6389. cat confdefs.h >>conftest.$ac_ext
  6390. cat >>conftest.$ac_ext <<_ACEOF
  6391. /* end confdefs.h. */
  6392. int
  6393. main ()
  6394. {
  6395. return main ();
  6396. ;
  6397. return 0;
  6398. }
  6399. _ACEOF
  6400. rm -f conftest.$ac_objext conftest$ac_exeext
  6401. if { (ac_try="$ac_link"
  6402. case "(($ac_try" in
  6403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6404. *) ac_try_echo=$ac_try;;
  6405. esac
  6406. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6407. $as_echo "$ac_try_echo") >&5
  6408. (eval "$ac_link") 2>conftest.er1
  6409. ac_status=$?
  6410. grep -v '^ *+' conftest.er1 >conftest.err
  6411. rm -f conftest.er1
  6412. cat conftest.err >&5
  6413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); } && {
  6415. test -z "$ac_cxx_werror_flag" ||
  6416. test ! -s conftest.err
  6417. } && test -s conftest$ac_exeext && {
  6418. test "$cross_compiling" = yes ||
  6419. $as_test_x conftest$ac_exeext
  6420. }; then
  6421. ac_cv_lib_crypto_main=yes
  6422. else
  6423. $as_echo "$as_me: failed program was:" >&5
  6424. sed 's/^/| /' conftest.$ac_ext >&5
  6425. ac_cv_lib_crypto_main=no
  6426. fi
  6427. rm -rf conftest.dSYM
  6428. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6429. conftest$ac_exeext conftest.$ac_ext
  6430. LIBS=$ac_check_lib_save_LIBS
  6431. fi
  6432. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6433. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6434. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6435. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6436. fi
  6437. if test "x$have_openssl" = "xyes"; then
  6438. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6439. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6440. fi
  6441. fi
  6442. fi
  6443. if test "x$have_openssl" = "xyes"; then
  6444. cat >>confdefs.h <<\_ACEOF
  6445. #define HAVE_LIBSSL 1
  6446. _ACEOF
  6447. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6448. for ac_func in EVP_DigestInit_ex
  6449. do
  6450. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6451. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6452. $as_echo_n "checking for $ac_func... " >&6; }
  6453. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. cat >conftest.$ac_ext <<_ACEOF
  6457. /* confdefs.h. */
  6458. _ACEOF
  6459. cat confdefs.h >>conftest.$ac_ext
  6460. cat >>conftest.$ac_ext <<_ACEOF
  6461. /* end confdefs.h. */
  6462. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6463. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6464. #define $ac_func innocuous_$ac_func
  6465. /* System header to define __stub macros and hopefully few prototypes,
  6466. which can conflict with char $ac_func (); below.
  6467. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6468. <limits.h> exists even on freestanding compilers. */
  6469. #ifdef __STDC__
  6470. # include <limits.h>
  6471. #else
  6472. # include <assert.h>
  6473. #endif
  6474. #undef $ac_func
  6475. /* Override any GCC internal prototype to avoid an error.
  6476. Use char because int might match the return type of a GCC
  6477. builtin and then its argument prototype would still apply. */
  6478. #ifdef __cplusplus
  6479. extern "C"
  6480. #endif
  6481. char $ac_func ();
  6482. /* The GNU C library defines this for functions which it implements
  6483. to always fail with ENOSYS. Some functions are actually named
  6484. something starting with __ and the normal name is an alias. */
  6485. #if defined __stub_$ac_func || defined __stub___$ac_func
  6486. choke me
  6487. #endif
  6488. int
  6489. main ()
  6490. {
  6491. return $ac_func ();
  6492. ;
  6493. return 0;
  6494. }
  6495. _ACEOF
  6496. rm -f conftest.$ac_objext conftest$ac_exeext
  6497. if { (ac_try="$ac_link"
  6498. case "(($ac_try" in
  6499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6500. *) ac_try_echo=$ac_try;;
  6501. esac
  6502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6503. $as_echo "$ac_try_echo") >&5
  6504. (eval "$ac_link") 2>conftest.er1
  6505. ac_status=$?
  6506. grep -v '^ *+' conftest.er1 >conftest.err
  6507. rm -f conftest.er1
  6508. cat conftest.err >&5
  6509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6510. (exit $ac_status); } && {
  6511. test -z "$ac_cxx_werror_flag" ||
  6512. test ! -s conftest.err
  6513. } && test -s conftest$ac_exeext && {
  6514. test "$cross_compiling" = yes ||
  6515. $as_test_x conftest$ac_exeext
  6516. }; then
  6517. eval "$as_ac_var=yes"
  6518. else
  6519. $as_echo "$as_me: failed program was:" >&5
  6520. sed 's/^/| /' conftest.$ac_ext >&5
  6521. eval "$as_ac_var=no"
  6522. fi
  6523. rm -rf conftest.dSYM
  6524. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6525. conftest$ac_exeext conftest.$ac_ext
  6526. fi
  6527. ac_res=`eval 'as_val=${'$as_ac_var'}
  6528. $as_echo "$as_val"'`
  6529. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6530. $as_echo "$ac_res" >&6; }
  6531. as_val=`eval 'as_val=${'$as_ac_var'}
  6532. $as_echo "$as_val"'`
  6533. if test "x$as_val" = x""yes; then
  6534. cat >>confdefs.h <<_ACEOF
  6535. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6536. _ACEOF
  6537. have_digestinit_ex=yes
  6538. fi
  6539. done
  6540. if test "x$have_digestinit_ex" = "x"; then
  6541. cat >>confdefs.h <<\_ACEOF
  6542. #define HAVE_OLD_LIBSSL 1
  6543. _ACEOF
  6544. fi
  6545. # search for sha256 support
  6546. for ac_func in EVP_sha256
  6547. do
  6548. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6549. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6550. $as_echo_n "checking for $ac_func... " >&6; }
  6551. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. cat >conftest.$ac_ext <<_ACEOF
  6555. /* confdefs.h. */
  6556. _ACEOF
  6557. cat confdefs.h >>conftest.$ac_ext
  6558. cat >>conftest.$ac_ext <<_ACEOF
  6559. /* end confdefs.h. */
  6560. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6561. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6562. #define $ac_func innocuous_$ac_func
  6563. /* System header to define __stub macros and hopefully few prototypes,
  6564. which can conflict with char $ac_func (); below.
  6565. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6566. <limits.h> exists even on freestanding compilers. */
  6567. #ifdef __STDC__
  6568. # include <limits.h>
  6569. #else
  6570. # include <assert.h>
  6571. #endif
  6572. #undef $ac_func
  6573. /* Override any GCC internal prototype to avoid an error.
  6574. Use char because int might match the return type of a GCC
  6575. builtin and then its argument prototype would still apply. */
  6576. #ifdef __cplusplus
  6577. extern "C"
  6578. #endif
  6579. char $ac_func ();
  6580. /* The GNU C library defines this for functions which it implements
  6581. to always fail with ENOSYS. Some functions are actually named
  6582. something starting with __ and the normal name is an alias. */
  6583. #if defined __stub_$ac_func || defined __stub___$ac_func
  6584. choke me
  6585. #endif
  6586. int
  6587. main ()
  6588. {
  6589. return $ac_func ();
  6590. ;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. rm -f conftest.$ac_objext conftest$ac_exeext
  6595. if { (ac_try="$ac_link"
  6596. case "(($ac_try" in
  6597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6598. *) ac_try_echo=$ac_try;;
  6599. esac
  6600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6601. $as_echo "$ac_try_echo") >&5
  6602. (eval "$ac_link") 2>conftest.er1
  6603. ac_status=$?
  6604. grep -v '^ *+' conftest.er1 >conftest.err
  6605. rm -f conftest.er1
  6606. cat conftest.err >&5
  6607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6608. (exit $ac_status); } && {
  6609. test -z "$ac_cxx_werror_flag" ||
  6610. test ! -s conftest.err
  6611. } && test -s conftest$ac_exeext && {
  6612. test "$cross_compiling" = yes ||
  6613. $as_test_x conftest$ac_exeext
  6614. }; then
  6615. eval "$as_ac_var=yes"
  6616. else
  6617. $as_echo "$as_me: failed program was:" >&5
  6618. sed 's/^/| /' conftest.$ac_ext >&5
  6619. eval "$as_ac_var=no"
  6620. fi
  6621. rm -rf conftest.dSYM
  6622. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6623. conftest$ac_exeext conftest.$ac_ext
  6624. fi
  6625. ac_res=`eval 'as_val=${'$as_ac_var'}
  6626. $as_echo "$as_val"'`
  6627. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6628. $as_echo "$ac_res" >&6; }
  6629. as_val=`eval 'as_val=${'$as_ac_var'}
  6630. $as_echo "$as_val"'`
  6631. if test "x$as_val" = x""yes; then
  6632. cat >>confdefs.h <<_ACEOF
  6633. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6634. _ACEOF
  6635. fi
  6636. done
  6637. fi
  6638. LIBS=$LIBS_save
  6639. CPPFLAGS=$CPPFLAGS_save
  6640. fi
  6641. if test "x$with_libcares" = "xyes"; then
  6642. # Check whether --with-libcares-prefix was given.
  6643. if test "${with_libcares_prefix+set}" = set; then
  6644. withval=$with_libcares_prefix; libcares_prefix=$withval
  6645. else
  6646. libcares_prefix=""
  6647. fi
  6648. if test "x$libcares_prefix" = "x"; then
  6649. libcares_prefix="/usr"
  6650. fi
  6651. libcares_prefix_lib=$libcares_prefix/lib
  6652. libcares_prefix_include=$libcares_prefix/include
  6653. LIBS_save=$LIBS
  6654. CPPFLAGS_save=$CPPFLAGS
  6655. LIBS="-L$libcares_prefix_lib $LIBS"
  6656. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6657. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6658. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6659. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6660. $as_echo_n "(cached) " >&6
  6661. else
  6662. ac_check_lib_save_LIBS=$LIBS
  6663. LIBS="-lcares $LIBS"
  6664. cat >conftest.$ac_ext <<_ACEOF
  6665. /* confdefs.h. */
  6666. _ACEOF
  6667. cat confdefs.h >>conftest.$ac_ext
  6668. cat >>conftest.$ac_ext <<_ACEOF
  6669. /* end confdefs.h. */
  6670. /* Override any GCC internal prototype to avoid an error.
  6671. Use char because int might match the return type of a GCC
  6672. builtin and then its argument prototype would still apply. */
  6673. #ifdef __cplusplus
  6674. extern "C"
  6675. #endif
  6676. char ares_init ();
  6677. int
  6678. main ()
  6679. {
  6680. return ares_init ();
  6681. ;
  6682. return 0;
  6683. }
  6684. _ACEOF
  6685. rm -f conftest.$ac_objext conftest$ac_exeext
  6686. if { (ac_try="$ac_link"
  6687. case "(($ac_try" in
  6688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6689. *) ac_try_echo=$ac_try;;
  6690. esac
  6691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6692. $as_echo "$ac_try_echo") >&5
  6693. (eval "$ac_link") 2>conftest.er1
  6694. ac_status=$?
  6695. grep -v '^ *+' conftest.er1 >conftest.err
  6696. rm -f conftest.er1
  6697. cat conftest.err >&5
  6698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); } && {
  6700. test -z "$ac_cxx_werror_flag" ||
  6701. test ! -s conftest.err
  6702. } && test -s conftest$ac_exeext && {
  6703. test "$cross_compiling" = yes ||
  6704. $as_test_x conftest$ac_exeext
  6705. }; then
  6706. ac_cv_lib_cares_ares_init=yes
  6707. else
  6708. $as_echo "$as_me: failed program was:" >&5
  6709. sed 's/^/| /' conftest.$ac_ext >&5
  6710. ac_cv_lib_cares_ares_init=no
  6711. fi
  6712. rm -rf conftest.dSYM
  6713. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6714. conftest$ac_exeext conftest.$ac_ext
  6715. LIBS=$ac_check_lib_save_LIBS
  6716. fi
  6717. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6718. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6719. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6720. have_libcares=yes
  6721. fi
  6722. if test "x$have_libcares" != "xyes"; then
  6723. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6724. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6725. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. ac_check_lib_save_LIBS=$LIBS
  6729. LIBS="-lcares -lrt $LIBS"
  6730. cat >conftest.$ac_ext <<_ACEOF
  6731. /* confdefs.h. */
  6732. _ACEOF
  6733. cat confdefs.h >>conftest.$ac_ext
  6734. cat >>conftest.$ac_ext <<_ACEOF
  6735. /* end confdefs.h. */
  6736. /* Override any GCC internal prototype to avoid an error.
  6737. Use char because int might match the return type of a GCC
  6738. builtin and then its argument prototype would still apply. */
  6739. #ifdef __cplusplus
  6740. extern "C"
  6741. #endif
  6742. char ares_init ();
  6743. int
  6744. main ()
  6745. {
  6746. return ares_init ();
  6747. ;
  6748. return 0;
  6749. }
  6750. _ACEOF
  6751. rm -f conftest.$ac_objext conftest$ac_exeext
  6752. if { (ac_try="$ac_link"
  6753. case "(($ac_try" in
  6754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6755. *) ac_try_echo=$ac_try;;
  6756. esac
  6757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6758. $as_echo "$ac_try_echo") >&5
  6759. (eval "$ac_link") 2>conftest.er1
  6760. ac_status=$?
  6761. grep -v '^ *+' conftest.er1 >conftest.err
  6762. rm -f conftest.er1
  6763. cat conftest.err >&5
  6764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6765. (exit $ac_status); } && {
  6766. test -z "$ac_cxx_werror_flag" ||
  6767. test ! -s conftest.err
  6768. } && test -s conftest$ac_exeext && {
  6769. test "$cross_compiling" = yes ||
  6770. $as_test_x conftest$ac_exeext
  6771. }; then
  6772. ac_cv_lib_cares_ares_init=yes
  6773. else
  6774. $as_echo "$as_me: failed program was:" >&5
  6775. sed 's/^/| /' conftest.$ac_ext >&5
  6776. ac_cv_lib_cares_ares_init=no
  6777. fi
  6778. rm -rf conftest.dSYM
  6779. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6780. conftest$ac_exeext conftest.$ac_ext
  6781. LIBS=$ac_check_lib_save_LIBS
  6782. fi
  6783. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6784. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6785. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6786. have_libcares=yes need_librt=yes
  6787. fi
  6788. fi
  6789. if test "x$have_libcares" = "xyes"; then
  6790. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6791. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6792. cat >conftest.$ac_ext <<_ACEOF
  6793. /* confdefs.h. */
  6794. _ACEOF
  6795. cat confdefs.h >>conftest.$ac_ext
  6796. cat >>conftest.$ac_ext <<_ACEOF
  6797. /* end confdefs.h. */
  6798. #include <ares.h>
  6799. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6800. int
  6801. main ()
  6802. {
  6803. ares_channel channel;
  6804. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6805. ;
  6806. return 0;
  6807. }
  6808. _ACEOF
  6809. rm -f conftest.$ac_objext
  6810. if { (ac_try="$ac_compile"
  6811. case "(($ac_try" in
  6812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6813. *) ac_try_echo=$ac_try;;
  6814. esac
  6815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6816. $as_echo "$ac_try_echo") >&5
  6817. (eval "$ac_compile") 2>conftest.er1
  6818. ac_status=$?
  6819. grep -v '^ *+' conftest.er1 >conftest.err
  6820. rm -f conftest.er1
  6821. cat conftest.err >&5
  6822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. (exit $ac_status); } && {
  6824. test -z "$ac_cxx_werror_flag" ||
  6825. test ! -s conftest.err
  6826. } && test -s conftest.$ac_objext; then
  6827. have_libcares1_5=yes
  6828. else
  6829. $as_echo "$as_me: failed program was:" >&5
  6830. sed 's/^/| /' conftest.$ac_ext >&5
  6831. have_libcares1_5=no
  6832. fi
  6833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6834. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6835. $as_echo "$have_libcares1_5" >&6; }
  6836. if test "x$have_libcares1_5" = "xyes"; then
  6837. cat >>confdefs.h <<\_ACEOF
  6838. #define HAVE_LIBCARES1_5 1
  6839. _ACEOF
  6840. fi
  6841. cat >>confdefs.h <<\_ACEOF
  6842. #define HAVE_LIBCARES 1
  6843. _ACEOF
  6844. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6845. if test "x$need_librt" = "xyes"; then
  6846. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6847. fi
  6848. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6849. fi
  6850. LIBS=$LIBS_save
  6851. CPPFLAGS=$CPPFLAGS_save
  6852. fi
  6853. # Check availability of libz
  6854. if test "x$with_libz" = "xyes"; then
  6855. # Check whether --with-libz-prefix was given.
  6856. if test "${with_libz_prefix+set}" = set; then
  6857. withval=$with_libz_prefix; libz_prefix=$withval
  6858. else
  6859. libz_prefix=""
  6860. fi
  6861. if test "x$libz_prefix" = "x"; then
  6862. libz_prefix="/usr"
  6863. fi
  6864. libz_prefix_lib=$libz_prefix/lib
  6865. libz_prefix_include=$libz_prefix/include
  6866. LIBS_save=$LIBS
  6867. CPPFLAGS_save=$CPPFLAGS
  6868. LIBS="-L$libz_prefix_lib $LIBS"
  6869. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6870. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6871. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6872. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6873. $as_echo_n "(cached) " >&6
  6874. else
  6875. ac_check_lib_save_LIBS=$LIBS
  6876. LIBS="-lz $LIBS"
  6877. cat >conftest.$ac_ext <<_ACEOF
  6878. /* confdefs.h. */
  6879. _ACEOF
  6880. cat confdefs.h >>conftest.$ac_ext
  6881. cat >>conftest.$ac_ext <<_ACEOF
  6882. /* end confdefs.h. */
  6883. /* Override any GCC internal prototype to avoid an error.
  6884. Use char because int might match the return type of a GCC
  6885. builtin and then its argument prototype would still apply. */
  6886. #ifdef __cplusplus
  6887. extern "C"
  6888. #endif
  6889. char zlibVersion ();
  6890. int
  6891. main ()
  6892. {
  6893. return zlibVersion ();
  6894. ;
  6895. return 0;
  6896. }
  6897. _ACEOF
  6898. rm -f conftest.$ac_objext conftest$ac_exeext
  6899. if { (ac_try="$ac_link"
  6900. case "(($ac_try" in
  6901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6902. *) ac_try_echo=$ac_try;;
  6903. esac
  6904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6905. $as_echo "$ac_try_echo") >&5
  6906. (eval "$ac_link") 2>conftest.er1
  6907. ac_status=$?
  6908. grep -v '^ *+' conftest.er1 >conftest.err
  6909. rm -f conftest.er1
  6910. cat conftest.err >&5
  6911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6912. (exit $ac_status); } && {
  6913. test -z "$ac_cxx_werror_flag" ||
  6914. test ! -s conftest.err
  6915. } && test -s conftest$ac_exeext && {
  6916. test "$cross_compiling" = yes ||
  6917. $as_test_x conftest$ac_exeext
  6918. }; then
  6919. ac_cv_lib_z_zlibVersion=yes
  6920. else
  6921. $as_echo "$as_me: failed program was:" >&5
  6922. sed 's/^/| /' conftest.$ac_ext >&5
  6923. ac_cv_lib_z_zlibVersion=no
  6924. fi
  6925. rm -rf conftest.dSYM
  6926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6927. conftest$ac_exeext conftest.$ac_ext
  6928. LIBS=$ac_check_lib_save_LIBS
  6929. fi
  6930. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6931. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6932. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6933. have_libz=yes
  6934. fi
  6935. if test "x$have_libz" = "xyes"; then
  6936. cat >>confdefs.h <<\_ACEOF
  6937. #define HAVE_LIBZ 1
  6938. _ACEOF
  6939. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6940. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6941. fi
  6942. LIBS=$LIBS_save
  6943. CPPFLAGS=$CPPFLAGS_save
  6944. fi
  6945. # Define variables based on the result of the checks for libraries.
  6946. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6947. cat >>confdefs.h <<\_ACEOF
  6948. #define ENABLE_SSL 1
  6949. _ACEOF
  6950. if true; then
  6951. ENABLE_SSL_TRUE=
  6952. ENABLE_SSL_FALSE='#'
  6953. else
  6954. ENABLE_SSL_TRUE='#'
  6955. ENABLE_SSL_FALSE=
  6956. fi
  6957. else
  6958. if false; then
  6959. ENABLE_SSL_TRUE=
  6960. ENABLE_SSL_FALSE='#'
  6961. else
  6962. ENABLE_SSL_TRUE='#'
  6963. ENABLE_SSL_FALSE=
  6964. fi
  6965. fi
  6966. if test "x$have_libgnutls" = "xyes" ; then
  6967. HAVE_LIBGNUTLS_TRUE=
  6968. HAVE_LIBGNUTLS_FALSE='#'
  6969. else
  6970. HAVE_LIBGNUTLS_TRUE='#'
  6971. HAVE_LIBGNUTLS_FALSE=
  6972. fi
  6973. if test "x$have_openssl" = "xyes" ; then
  6974. HAVE_LIBSSL_TRUE=
  6975. HAVE_LIBSSL_FALSE='#'
  6976. else
  6977. HAVE_LIBSSL_TRUE='#'
  6978. HAVE_LIBSSL_FALSE=
  6979. fi
  6980. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6981. cat >>confdefs.h <<\_ACEOF
  6982. #define ENABLE_MESSAGE_DIGEST 1
  6983. _ACEOF
  6984. if true; then
  6985. ENABLE_MESSAGE_DIGEST_TRUE=
  6986. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6987. else
  6988. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6989. ENABLE_MESSAGE_DIGEST_FALSE=
  6990. fi
  6991. enable_message_digest=yes
  6992. else
  6993. if false; then
  6994. ENABLE_MESSAGE_DIGEST_TRUE=
  6995. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6996. else
  6997. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6998. ENABLE_MESSAGE_DIGEST_FALSE=
  6999. fi
  7000. fi
  7001. if test "x$enable_bittorrent" = "xyes" &&
  7002. test "x$enable_message_digest" = "xyes"; then
  7003. cat >>confdefs.h <<\_ACEOF
  7004. #define ENABLE_BITTORRENT 1
  7005. _ACEOF
  7006. if true; then
  7007. ENABLE_BITTORRENT_TRUE=
  7008. ENABLE_BITTORRENT_FALSE='#'
  7009. else
  7010. ENABLE_BITTORRENT_TRUE='#'
  7011. ENABLE_BITTORRENT_FALSE=
  7012. fi
  7013. else
  7014. enable_bittorrent=no
  7015. if false; then
  7016. ENABLE_BITTORRENT_TRUE=
  7017. ENABLE_BITTORRENT_FALSE='#'
  7018. else
  7019. ENABLE_BITTORRENT_TRUE='#'
  7020. ENABLE_BITTORRENT_FALSE=
  7021. fi
  7022. fi
  7023. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  7024. test "x$enable_metalink" = "xyes"; then
  7025. cat >>confdefs.h <<\_ACEOF
  7026. #define ENABLE_METALINK 1
  7027. _ACEOF
  7028. if true; then
  7029. ENABLE_METALINK_TRUE=
  7030. ENABLE_METALINK_FALSE='#'
  7031. else
  7032. ENABLE_METALINK_TRUE='#'
  7033. ENABLE_METALINK_FALSE=
  7034. fi
  7035. else
  7036. enable_metalink=no
  7037. if false; then
  7038. ENABLE_METALINK_TRUE=
  7039. ENABLE_METALINK_FALSE='#'
  7040. else
  7041. ENABLE_METALINK_TRUE='#'
  7042. ENABLE_METALINK_FALSE=
  7043. fi
  7044. fi
  7045. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  7046. ENABLE_METALINK_LIBXML2_TRUE=
  7047. ENABLE_METALINK_LIBXML2_FALSE='#'
  7048. else
  7049. ENABLE_METALINK_LIBXML2_TRUE='#'
  7050. ENABLE_METALINK_LIBXML2_FALSE=
  7051. fi
  7052. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  7053. ENABLE_METALINK_LIBEXPAT_TRUE=
  7054. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  7055. else
  7056. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  7057. ENABLE_METALINK_LIBEXPAT_FALSE=
  7058. fi
  7059. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  7060. enable_xml_rpc=yes
  7061. fi
  7062. if test "x$enable_xml_rpc" = "xyes"; then
  7063. cat >>confdefs.h <<\_ACEOF
  7064. #define ENABLE_XML_RPC 1
  7065. _ACEOF
  7066. fi
  7067. if test "x$enable_xml_rpc" = "xyes"; then
  7068. ENABLE_XML_RPC_TRUE=
  7069. ENABLE_XML_RPC_FALSE='#'
  7070. else
  7071. ENABLE_XML_RPC_TRUE='#'
  7072. ENABLE_XML_RPC_FALSE=
  7073. fi
  7074. if test "x$have_libxml2" = "xyes"; then
  7075. HAVE_LIBXML2_TRUE=
  7076. HAVE_LIBXML2_FALSE='#'
  7077. else
  7078. HAVE_LIBXML2_TRUE='#'
  7079. HAVE_LIBXML2_FALSE=
  7080. fi
  7081. if test "x$have_libexpat" = "xyes"; then
  7082. HAVE_LIBEXPAT_TRUE=
  7083. HAVE_LIBEXPAT_FALSE='#'
  7084. else
  7085. HAVE_LIBEXPAT_TRUE='#'
  7086. HAVE_LIBEXPAT_FALSE=
  7087. fi
  7088. if test "x$have_libcares" = "xyes"; then
  7089. cat >>confdefs.h <<\_ACEOF
  7090. #define ENABLE_ASYNC_DNS 1
  7091. _ACEOF
  7092. if true; then
  7093. ENABLE_ASYNC_DNS_TRUE=
  7094. ENABLE_ASYNC_DNS_FALSE='#'
  7095. else
  7096. ENABLE_ASYNC_DNS_TRUE='#'
  7097. ENABLE_ASYNC_DNS_FALSE=
  7098. fi
  7099. else
  7100. if false; then
  7101. ENABLE_ASYNC_DNS_TRUE=
  7102. ENABLE_ASYNC_DNS_FALSE='#'
  7103. else
  7104. ENABLE_ASYNC_DNS_TRUE='#'
  7105. ENABLE_ASYNC_DNS_FALSE=
  7106. fi
  7107. fi
  7108. # Set conditional for libz
  7109. if test "x$have_libz" = "xyes"; then
  7110. HAVE_LIBZ_TRUE=
  7111. HAVE_LIBZ_FALSE='#'
  7112. else
  7113. HAVE_LIBZ_TRUE='#'
  7114. HAVE_LIBZ_FALSE=
  7115. fi
  7116. # Set conditional for sqlite3
  7117. if test "x$have_sqlite3" = "xyes"; then
  7118. HAVE_SQLITE3_TRUE=
  7119. HAVE_SQLITE3_FALSE='#'
  7120. else
  7121. HAVE_SQLITE3_TRUE='#'
  7122. HAVE_SQLITE3_FALSE=
  7123. fi
  7124. # Checks for header files.
  7125. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  7126. # for constant arguments. Useless!
  7127. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  7128. $as_echo_n "checking for working alloca.h... " >&6; }
  7129. if test "${ac_cv_working_alloca_h+set}" = set; then
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. #include <alloca.h>
  7139. int
  7140. main ()
  7141. {
  7142. char *p = (char *) alloca (2 * sizeof (int));
  7143. if (p) return 0;
  7144. ;
  7145. return 0;
  7146. }
  7147. _ACEOF
  7148. rm -f conftest.$ac_objext conftest$ac_exeext
  7149. if { (ac_try="$ac_link"
  7150. case "(($ac_try" in
  7151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7152. *) ac_try_echo=$ac_try;;
  7153. esac
  7154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7155. $as_echo "$ac_try_echo") >&5
  7156. (eval "$ac_link") 2>conftest.er1
  7157. ac_status=$?
  7158. grep -v '^ *+' conftest.er1 >conftest.err
  7159. rm -f conftest.er1
  7160. cat conftest.err >&5
  7161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); } && {
  7163. test -z "$ac_cxx_werror_flag" ||
  7164. test ! -s conftest.err
  7165. } && test -s conftest$ac_exeext && {
  7166. test "$cross_compiling" = yes ||
  7167. $as_test_x conftest$ac_exeext
  7168. }; then
  7169. ac_cv_working_alloca_h=yes
  7170. else
  7171. $as_echo "$as_me: failed program was:" >&5
  7172. sed 's/^/| /' conftest.$ac_ext >&5
  7173. ac_cv_working_alloca_h=no
  7174. fi
  7175. rm -rf conftest.dSYM
  7176. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7177. conftest$ac_exeext conftest.$ac_ext
  7178. fi
  7179. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  7180. $as_echo "$ac_cv_working_alloca_h" >&6; }
  7181. if test $ac_cv_working_alloca_h = yes; then
  7182. cat >>confdefs.h <<\_ACEOF
  7183. #define HAVE_ALLOCA_H 1
  7184. _ACEOF
  7185. fi
  7186. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  7187. $as_echo_n "checking for alloca... " >&6; }
  7188. if test "${ac_cv_func_alloca_works+set}" = set; then
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. cat >conftest.$ac_ext <<_ACEOF
  7192. /* confdefs.h. */
  7193. _ACEOF
  7194. cat confdefs.h >>conftest.$ac_ext
  7195. cat >>conftest.$ac_ext <<_ACEOF
  7196. /* end confdefs.h. */
  7197. #ifdef __GNUC__
  7198. # define alloca __builtin_alloca
  7199. #else
  7200. # ifdef _MSC_VER
  7201. # include <malloc.h>
  7202. # define alloca _alloca
  7203. # else
  7204. # ifdef HAVE_ALLOCA_H
  7205. # include <alloca.h>
  7206. # else
  7207. # ifdef _AIX
  7208. #pragma alloca
  7209. # else
  7210. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7211. char *alloca ();
  7212. # endif
  7213. # endif
  7214. # endif
  7215. # endif
  7216. #endif
  7217. int
  7218. main ()
  7219. {
  7220. char *p = (char *) alloca (1);
  7221. if (p) return 0;
  7222. ;
  7223. return 0;
  7224. }
  7225. _ACEOF
  7226. rm -f conftest.$ac_objext conftest$ac_exeext
  7227. if { (ac_try="$ac_link"
  7228. case "(($ac_try" in
  7229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7230. *) ac_try_echo=$ac_try;;
  7231. esac
  7232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7233. $as_echo "$ac_try_echo") >&5
  7234. (eval "$ac_link") 2>conftest.er1
  7235. ac_status=$?
  7236. grep -v '^ *+' conftest.er1 >conftest.err
  7237. rm -f conftest.er1
  7238. cat conftest.err >&5
  7239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); } && {
  7241. test -z "$ac_cxx_werror_flag" ||
  7242. test ! -s conftest.err
  7243. } && test -s conftest$ac_exeext && {
  7244. test "$cross_compiling" = yes ||
  7245. $as_test_x conftest$ac_exeext
  7246. }; then
  7247. ac_cv_func_alloca_works=yes
  7248. else
  7249. $as_echo "$as_me: failed program was:" >&5
  7250. sed 's/^/| /' conftest.$ac_ext >&5
  7251. ac_cv_func_alloca_works=no
  7252. fi
  7253. rm -rf conftest.dSYM
  7254. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7255. conftest$ac_exeext conftest.$ac_ext
  7256. fi
  7257. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7258. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7259. if test $ac_cv_func_alloca_works = yes; then
  7260. cat >>confdefs.h <<\_ACEOF
  7261. #define HAVE_ALLOCA 1
  7262. _ACEOF
  7263. else
  7264. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7265. # that cause trouble. Some versions do not even contain alloca or
  7266. # contain a buggy version. If you still want to use their alloca,
  7267. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7268. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7269. cat >>confdefs.h <<\_ACEOF
  7270. #define C_ALLOCA 1
  7271. _ACEOF
  7272. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7273. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7274. if test "${ac_cv_os_cray+set}" = set; then
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. cat >conftest.$ac_ext <<_ACEOF
  7278. /* confdefs.h. */
  7279. _ACEOF
  7280. cat confdefs.h >>conftest.$ac_ext
  7281. cat >>conftest.$ac_ext <<_ACEOF
  7282. /* end confdefs.h. */
  7283. #if defined CRAY && ! defined CRAY2
  7284. webecray
  7285. #else
  7286. wenotbecray
  7287. #endif
  7288. _ACEOF
  7289. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7290. $EGREP "webecray" >/dev/null 2>&1; then
  7291. ac_cv_os_cray=yes
  7292. else
  7293. ac_cv_os_cray=no
  7294. fi
  7295. rm -f conftest*
  7296. fi
  7297. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7298. $as_echo "$ac_cv_os_cray" >&6; }
  7299. if test $ac_cv_os_cray = yes; then
  7300. for ac_func in _getb67 GETB67 getb67; do
  7301. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7302. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7303. $as_echo_n "checking for $ac_func... " >&6; }
  7304. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7305. $as_echo_n "(cached) " >&6
  7306. else
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7314. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7315. #define $ac_func innocuous_$ac_func
  7316. /* System header to define __stub macros and hopefully few prototypes,
  7317. which can conflict with char $ac_func (); below.
  7318. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7319. <limits.h> exists even on freestanding compilers. */
  7320. #ifdef __STDC__
  7321. # include <limits.h>
  7322. #else
  7323. # include <assert.h>
  7324. #endif
  7325. #undef $ac_func
  7326. /* Override any GCC internal prototype to avoid an error.
  7327. Use char because int might match the return type of a GCC
  7328. builtin and then its argument prototype would still apply. */
  7329. #ifdef __cplusplus
  7330. extern "C"
  7331. #endif
  7332. char $ac_func ();
  7333. /* The GNU C library defines this for functions which it implements
  7334. to always fail with ENOSYS. Some functions are actually named
  7335. something starting with __ and the normal name is an alias. */
  7336. #if defined __stub_$ac_func || defined __stub___$ac_func
  7337. choke me
  7338. #endif
  7339. int
  7340. main ()
  7341. {
  7342. return $ac_func ();
  7343. ;
  7344. return 0;
  7345. }
  7346. _ACEOF
  7347. rm -f conftest.$ac_objext conftest$ac_exeext
  7348. if { (ac_try="$ac_link"
  7349. case "(($ac_try" in
  7350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7351. *) ac_try_echo=$ac_try;;
  7352. esac
  7353. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7354. $as_echo "$ac_try_echo") >&5
  7355. (eval "$ac_link") 2>conftest.er1
  7356. ac_status=$?
  7357. grep -v '^ *+' conftest.er1 >conftest.err
  7358. rm -f conftest.er1
  7359. cat conftest.err >&5
  7360. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7361. (exit $ac_status); } && {
  7362. test -z "$ac_cxx_werror_flag" ||
  7363. test ! -s conftest.err
  7364. } && test -s conftest$ac_exeext && {
  7365. test "$cross_compiling" = yes ||
  7366. $as_test_x conftest$ac_exeext
  7367. }; then
  7368. eval "$as_ac_var=yes"
  7369. else
  7370. $as_echo "$as_me: failed program was:" >&5
  7371. sed 's/^/| /' conftest.$ac_ext >&5
  7372. eval "$as_ac_var=no"
  7373. fi
  7374. rm -rf conftest.dSYM
  7375. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7376. conftest$ac_exeext conftest.$ac_ext
  7377. fi
  7378. ac_res=`eval 'as_val=${'$as_ac_var'}
  7379. $as_echo "$as_val"'`
  7380. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7381. $as_echo "$ac_res" >&6; }
  7382. as_val=`eval 'as_val=${'$as_ac_var'}
  7383. $as_echo "$as_val"'`
  7384. if test "x$as_val" = x""yes; then
  7385. cat >>confdefs.h <<_ACEOF
  7386. #define CRAY_STACKSEG_END $ac_func
  7387. _ACEOF
  7388. break
  7389. fi
  7390. done
  7391. fi
  7392. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7393. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7394. if test "${ac_cv_c_stack_direction+set}" = set; then
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. if test "$cross_compiling" = yes; then
  7398. ac_cv_c_stack_direction=0
  7399. else
  7400. cat >conftest.$ac_ext <<_ACEOF
  7401. /* confdefs.h. */
  7402. _ACEOF
  7403. cat confdefs.h >>conftest.$ac_ext
  7404. cat >>conftest.$ac_ext <<_ACEOF
  7405. /* end confdefs.h. */
  7406. $ac_includes_default
  7407. int
  7408. find_stack_direction ()
  7409. {
  7410. static char *addr = 0;
  7411. auto char dummy;
  7412. if (addr == 0)
  7413. {
  7414. addr = &dummy;
  7415. return find_stack_direction ();
  7416. }
  7417. else
  7418. return (&dummy > addr) ? 1 : -1;
  7419. }
  7420. int
  7421. main ()
  7422. {
  7423. return find_stack_direction () < 0;
  7424. }
  7425. _ACEOF
  7426. rm -f conftest$ac_exeext
  7427. if { (ac_try="$ac_link"
  7428. case "(($ac_try" in
  7429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7430. *) ac_try_echo=$ac_try;;
  7431. esac
  7432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7433. $as_echo "$ac_try_echo") >&5
  7434. (eval "$ac_link") 2>&5
  7435. ac_status=$?
  7436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7438. { (case "(($ac_try" in
  7439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7440. *) ac_try_echo=$ac_try;;
  7441. esac
  7442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7443. $as_echo "$ac_try_echo") >&5
  7444. (eval "$ac_try") 2>&5
  7445. ac_status=$?
  7446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. (exit $ac_status); }; }; then
  7448. ac_cv_c_stack_direction=1
  7449. else
  7450. $as_echo "$as_me: program exited with status $ac_status" >&5
  7451. $as_echo "$as_me: failed program was:" >&5
  7452. sed 's/^/| /' conftest.$ac_ext >&5
  7453. ( exit $ac_status )
  7454. ac_cv_c_stack_direction=-1
  7455. fi
  7456. rm -rf conftest.dSYM
  7457. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7458. fi
  7459. fi
  7460. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7461. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7462. cat >>confdefs.h <<_ACEOF
  7463. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7464. _ACEOF
  7465. fi
  7466. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7467. $as_echo_n "checking for ANSI C header files... " >&6; }
  7468. if test "${ac_cv_header_stdc+set}" = set; then
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. cat >conftest.$ac_ext <<_ACEOF
  7472. /* confdefs.h. */
  7473. _ACEOF
  7474. cat confdefs.h >>conftest.$ac_ext
  7475. cat >>conftest.$ac_ext <<_ACEOF
  7476. /* end confdefs.h. */
  7477. #include <stdlib.h>
  7478. #include <stdarg.h>
  7479. #include <string.h>
  7480. #include <float.h>
  7481. int
  7482. main ()
  7483. {
  7484. ;
  7485. return 0;
  7486. }
  7487. _ACEOF
  7488. rm -f conftest.$ac_objext
  7489. if { (ac_try="$ac_compile"
  7490. case "(($ac_try" in
  7491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7492. *) ac_try_echo=$ac_try;;
  7493. esac
  7494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7495. $as_echo "$ac_try_echo") >&5
  7496. (eval "$ac_compile") 2>conftest.er1
  7497. ac_status=$?
  7498. grep -v '^ *+' conftest.er1 >conftest.err
  7499. rm -f conftest.er1
  7500. cat conftest.err >&5
  7501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. (exit $ac_status); } && {
  7503. test -z "$ac_cxx_werror_flag" ||
  7504. test ! -s conftest.err
  7505. } && test -s conftest.$ac_objext; then
  7506. ac_cv_header_stdc=yes
  7507. else
  7508. $as_echo "$as_me: failed program was:" >&5
  7509. sed 's/^/| /' conftest.$ac_ext >&5
  7510. ac_cv_header_stdc=no
  7511. fi
  7512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7513. if test $ac_cv_header_stdc = yes; then
  7514. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7515. cat >conftest.$ac_ext <<_ACEOF
  7516. /* confdefs.h. */
  7517. _ACEOF
  7518. cat confdefs.h >>conftest.$ac_ext
  7519. cat >>conftest.$ac_ext <<_ACEOF
  7520. /* end confdefs.h. */
  7521. #include <string.h>
  7522. _ACEOF
  7523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7524. $EGREP "memchr" >/dev/null 2>&1; then
  7525. :
  7526. else
  7527. ac_cv_header_stdc=no
  7528. fi
  7529. rm -f conftest*
  7530. fi
  7531. if test $ac_cv_header_stdc = yes; then
  7532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7533. cat >conftest.$ac_ext <<_ACEOF
  7534. /* confdefs.h. */
  7535. _ACEOF
  7536. cat confdefs.h >>conftest.$ac_ext
  7537. cat >>conftest.$ac_ext <<_ACEOF
  7538. /* end confdefs.h. */
  7539. #include <stdlib.h>
  7540. _ACEOF
  7541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7542. $EGREP "free" >/dev/null 2>&1; then
  7543. :
  7544. else
  7545. ac_cv_header_stdc=no
  7546. fi
  7547. rm -f conftest*
  7548. fi
  7549. if test $ac_cv_header_stdc = yes; then
  7550. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7551. if test "$cross_compiling" = yes; then
  7552. :
  7553. else
  7554. cat >conftest.$ac_ext <<_ACEOF
  7555. /* confdefs.h. */
  7556. _ACEOF
  7557. cat confdefs.h >>conftest.$ac_ext
  7558. cat >>conftest.$ac_ext <<_ACEOF
  7559. /* end confdefs.h. */
  7560. #include <ctype.h>
  7561. #include <stdlib.h>
  7562. #if ((' ' & 0x0FF) == 0x020)
  7563. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7564. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7565. #else
  7566. # define ISLOWER(c) \
  7567. (('a' <= (c) && (c) <= 'i') \
  7568. || ('j' <= (c) && (c) <= 'r') \
  7569. || ('s' <= (c) && (c) <= 'z'))
  7570. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7571. #endif
  7572. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7573. int
  7574. main ()
  7575. {
  7576. int i;
  7577. for (i = 0; i < 256; i++)
  7578. if (XOR (islower (i), ISLOWER (i))
  7579. || toupper (i) != TOUPPER (i))
  7580. return 2;
  7581. return 0;
  7582. }
  7583. _ACEOF
  7584. rm -f conftest$ac_exeext
  7585. if { (ac_try="$ac_link"
  7586. case "(($ac_try" in
  7587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7588. *) ac_try_echo=$ac_try;;
  7589. esac
  7590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7591. $as_echo "$ac_try_echo") >&5
  7592. (eval "$ac_link") 2>&5
  7593. ac_status=$?
  7594. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7595. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7596. { (case "(($ac_try" in
  7597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7598. *) ac_try_echo=$ac_try;;
  7599. esac
  7600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7601. $as_echo "$ac_try_echo") >&5
  7602. (eval "$ac_try") 2>&5
  7603. ac_status=$?
  7604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7605. (exit $ac_status); }; }; then
  7606. :
  7607. else
  7608. $as_echo "$as_me: program exited with status $ac_status" >&5
  7609. $as_echo "$as_me: failed program was:" >&5
  7610. sed 's/^/| /' conftest.$ac_ext >&5
  7611. ( exit $ac_status )
  7612. ac_cv_header_stdc=no
  7613. fi
  7614. rm -rf conftest.dSYM
  7615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7616. fi
  7617. fi
  7618. fi
  7619. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7620. $as_echo "$ac_cv_header_stdc" >&6; }
  7621. if test $ac_cv_header_stdc = yes; then
  7622. cat >>confdefs.h <<\_ACEOF
  7623. #define STDC_HEADERS 1
  7624. _ACEOF
  7625. fi
  7626. case "$target" in
  7627. *mingw*)
  7628. for ac_header in winsock2.h \
  7629. ws2tcpip.h
  7630. do
  7631. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7632. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7633. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7634. $as_echo_n "checking for $ac_header... " >&6; }
  7635. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7636. $as_echo_n "(cached) " >&6
  7637. fi
  7638. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7639. $as_echo "$as_val"'`
  7640. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7641. $as_echo "$ac_res" >&6; }
  7642. else
  7643. # Is the header compilable?
  7644. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7645. $as_echo_n "checking $ac_header usability... " >&6; }
  7646. cat >conftest.$ac_ext <<_ACEOF
  7647. /* confdefs.h. */
  7648. _ACEOF
  7649. cat confdefs.h >>conftest.$ac_ext
  7650. cat >>conftest.$ac_ext <<_ACEOF
  7651. /* end confdefs.h. */
  7652. $ac_includes_default
  7653. #include <$ac_header>
  7654. _ACEOF
  7655. rm -f conftest.$ac_objext
  7656. if { (ac_try="$ac_compile"
  7657. case "(($ac_try" in
  7658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7659. *) ac_try_echo=$ac_try;;
  7660. esac
  7661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7662. $as_echo "$ac_try_echo") >&5
  7663. (eval "$ac_compile") 2>conftest.er1
  7664. ac_status=$?
  7665. grep -v '^ *+' conftest.er1 >conftest.err
  7666. rm -f conftest.er1
  7667. cat conftest.err >&5
  7668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7669. (exit $ac_status); } && {
  7670. test -z "$ac_cxx_werror_flag" ||
  7671. test ! -s conftest.err
  7672. } && test -s conftest.$ac_objext; then
  7673. ac_header_compiler=yes
  7674. else
  7675. $as_echo "$as_me: failed program was:" >&5
  7676. sed 's/^/| /' conftest.$ac_ext >&5
  7677. ac_header_compiler=no
  7678. fi
  7679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7680. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7681. $as_echo "$ac_header_compiler" >&6; }
  7682. # Is the header present?
  7683. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7684. $as_echo_n "checking $ac_header presence... " >&6; }
  7685. cat >conftest.$ac_ext <<_ACEOF
  7686. /* confdefs.h. */
  7687. _ACEOF
  7688. cat confdefs.h >>conftest.$ac_ext
  7689. cat >>conftest.$ac_ext <<_ACEOF
  7690. /* end confdefs.h. */
  7691. #include <$ac_header>
  7692. _ACEOF
  7693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7694. case "(($ac_try" in
  7695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7696. *) ac_try_echo=$ac_try;;
  7697. esac
  7698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7699. $as_echo "$ac_try_echo") >&5
  7700. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7701. ac_status=$?
  7702. grep -v '^ *+' conftest.er1 >conftest.err
  7703. rm -f conftest.er1
  7704. cat conftest.err >&5
  7705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. (exit $ac_status); } >/dev/null && {
  7707. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7708. test ! -s conftest.err
  7709. }; then
  7710. ac_header_preproc=yes
  7711. else
  7712. $as_echo "$as_me: failed program was:" >&5
  7713. sed 's/^/| /' conftest.$ac_ext >&5
  7714. ac_header_preproc=no
  7715. fi
  7716. rm -f conftest.err conftest.$ac_ext
  7717. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7718. $as_echo "$ac_header_preproc" >&6; }
  7719. # So? What about this header?
  7720. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7721. yes:no: )
  7722. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7723. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7724. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7725. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7726. ac_header_preproc=yes
  7727. ;;
  7728. no:yes:* )
  7729. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7730. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7732. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7733. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7734. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7736. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7738. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7739. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7740. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7741. ( cat <<\_ASBOX
  7742. ## ----------------------------------------------- ##
  7743. ## Report this to t-tujikawa@users.sourceforge.net ##
  7744. ## ----------------------------------------------- ##
  7745. _ASBOX
  7746. ) | sed "s/^/$as_me: WARNING: /" >&2
  7747. ;;
  7748. esac
  7749. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7750. $as_echo_n "checking for $ac_header... " >&6; }
  7751. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. eval "$as_ac_Header=\$ac_header_preproc"
  7755. fi
  7756. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7757. $as_echo "$as_val"'`
  7758. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7759. $as_echo "$ac_res" >&6; }
  7760. fi
  7761. as_val=`eval 'as_val=${'$as_ac_Header'}
  7762. $as_echo "$as_val"'`
  7763. if test "x$as_val" = x""yes; then
  7764. cat >>confdefs.h <<_ACEOF
  7765. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7766. _ACEOF
  7767. fi
  7768. done
  7769. ;;
  7770. esac
  7771. for ac_header in argz.h \
  7772. arpa/inet.h \
  7773. fcntl.h \
  7774. float.h \
  7775. inttypes.h \
  7776. io.h \
  7777. langinfo.h \
  7778. libintl.h \
  7779. limits.h \
  7780. locale.h \
  7781. malloc.h \
  7782. netdb.h \
  7783. netinet/in.h \
  7784. stddef.h \
  7785. stdint.h \
  7786. stdio_ext.h \
  7787. stdlib.h \
  7788. string.h \
  7789. strings.h \
  7790. sys/ioctl.h \
  7791. sys/param.h \
  7792. sys/socket.h \
  7793. sys/time.h \
  7794. termios.h \
  7795. unistd.h \
  7796. wchar.h
  7797. do
  7798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7799. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7800. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7801. $as_echo_n "checking for $ac_header... " >&6; }
  7802. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7803. $as_echo_n "(cached) " >&6
  7804. fi
  7805. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7806. $as_echo "$as_val"'`
  7807. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7808. $as_echo "$ac_res" >&6; }
  7809. else
  7810. # Is the header compilable?
  7811. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7812. $as_echo_n "checking $ac_header usability... " >&6; }
  7813. cat >conftest.$ac_ext <<_ACEOF
  7814. /* confdefs.h. */
  7815. _ACEOF
  7816. cat confdefs.h >>conftest.$ac_ext
  7817. cat >>conftest.$ac_ext <<_ACEOF
  7818. /* end confdefs.h. */
  7819. $ac_includes_default
  7820. #include <$ac_header>
  7821. _ACEOF
  7822. rm -f conftest.$ac_objext
  7823. if { (ac_try="$ac_compile"
  7824. case "(($ac_try" in
  7825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7826. *) ac_try_echo=$ac_try;;
  7827. esac
  7828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7829. $as_echo "$ac_try_echo") >&5
  7830. (eval "$ac_compile") 2>conftest.er1
  7831. ac_status=$?
  7832. grep -v '^ *+' conftest.er1 >conftest.err
  7833. rm -f conftest.er1
  7834. cat conftest.err >&5
  7835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7836. (exit $ac_status); } && {
  7837. test -z "$ac_cxx_werror_flag" ||
  7838. test ! -s conftest.err
  7839. } && test -s conftest.$ac_objext; then
  7840. ac_header_compiler=yes
  7841. else
  7842. $as_echo "$as_me: failed program was:" >&5
  7843. sed 's/^/| /' conftest.$ac_ext >&5
  7844. ac_header_compiler=no
  7845. fi
  7846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7847. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7848. $as_echo "$ac_header_compiler" >&6; }
  7849. # Is the header present?
  7850. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7851. $as_echo_n "checking $ac_header presence... " >&6; }
  7852. cat >conftest.$ac_ext <<_ACEOF
  7853. /* confdefs.h. */
  7854. _ACEOF
  7855. cat confdefs.h >>conftest.$ac_ext
  7856. cat >>conftest.$ac_ext <<_ACEOF
  7857. /* end confdefs.h. */
  7858. #include <$ac_header>
  7859. _ACEOF
  7860. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7861. case "(($ac_try" in
  7862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7863. *) ac_try_echo=$ac_try;;
  7864. esac
  7865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7866. $as_echo "$ac_try_echo") >&5
  7867. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7868. ac_status=$?
  7869. grep -v '^ *+' conftest.er1 >conftest.err
  7870. rm -f conftest.er1
  7871. cat conftest.err >&5
  7872. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); } >/dev/null && {
  7874. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7875. test ! -s conftest.err
  7876. }; then
  7877. ac_header_preproc=yes
  7878. else
  7879. $as_echo "$as_me: failed program was:" >&5
  7880. sed 's/^/| /' conftest.$ac_ext >&5
  7881. ac_header_preproc=no
  7882. fi
  7883. rm -f conftest.err conftest.$ac_ext
  7884. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7885. $as_echo "$ac_header_preproc" >&6; }
  7886. # So? What about this header?
  7887. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7888. yes:no: )
  7889. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7890. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7891. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7892. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7893. ac_header_preproc=yes
  7894. ;;
  7895. no:yes:* )
  7896. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7897. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7898. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7899. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7900. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7901. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7902. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7903. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7904. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7905. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7906. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7907. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7908. ( cat <<\_ASBOX
  7909. ## ----------------------------------------------- ##
  7910. ## Report this to t-tujikawa@users.sourceforge.net ##
  7911. ## ----------------------------------------------- ##
  7912. _ASBOX
  7913. ) | sed "s/^/$as_me: WARNING: /" >&2
  7914. ;;
  7915. esac
  7916. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7917. $as_echo_n "checking for $ac_header... " >&6; }
  7918. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. eval "$as_ac_Header=\$ac_header_preproc"
  7922. fi
  7923. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7924. $as_echo "$as_val"'`
  7925. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7926. $as_echo "$ac_res" >&6; }
  7927. fi
  7928. as_val=`eval 'as_val=${'$as_ac_Header'}
  7929. $as_echo "$as_val"'`
  7930. if test "x$as_val" = x""yes; then
  7931. cat >>confdefs.h <<_ACEOF
  7932. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7933. _ACEOF
  7934. fi
  7935. done
  7936. # Checks for typedefs, structures, and compiler characteristics.
  7937. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7938. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7939. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7940. $as_echo_n "(cached) " >&6
  7941. else
  7942. cat >conftest.$ac_ext <<_ACEOF
  7943. /* confdefs.h. */
  7944. _ACEOF
  7945. cat confdefs.h >>conftest.$ac_ext
  7946. cat >>conftest.$ac_ext <<_ACEOF
  7947. /* end confdefs.h. */
  7948. #include <stdbool.h>
  7949. #ifndef bool
  7950. "error: bool is not defined"
  7951. #endif
  7952. #ifndef false
  7953. "error: false is not defined"
  7954. #endif
  7955. #if false
  7956. "error: false is not 0"
  7957. #endif
  7958. #ifndef true
  7959. "error: true is not defined"
  7960. #endif
  7961. #if true != 1
  7962. "error: true is not 1"
  7963. #endif
  7964. #ifndef __bool_true_false_are_defined
  7965. "error: __bool_true_false_are_defined is not defined"
  7966. #endif
  7967. struct s { _Bool s: 1; _Bool t; } s;
  7968. char a[true == 1 ? 1 : -1];
  7969. char b[false == 0 ? 1 : -1];
  7970. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7971. char d[(bool) 0.5 == true ? 1 : -1];
  7972. bool e = &s;
  7973. char f[(_Bool) 0.0 == false ? 1 : -1];
  7974. char g[true];
  7975. char h[sizeof (_Bool)];
  7976. char i[sizeof s.t];
  7977. enum { j = false, k = true, l = false * true, m = true * 256 };
  7978. /* The following fails for
  7979. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7980. _Bool n[m];
  7981. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7982. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7983. # if defined __xlc__ || defined __GNUC__
  7984. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7985. reported by James Lemley on 2005-10-05; see
  7986. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7987. This test is not quite right, since xlc is allowed to
  7988. reject this program, as the initializer for xlcbug is
  7989. not one of the forms that C requires support for.
  7990. However, doing the test right would require a runtime
  7991. test, and that would make cross-compilation harder.
  7992. Let us hope that IBM fixes the xlc bug, and also adds
  7993. support for this kind of constant expression. In the
  7994. meantime, this test will reject xlc, which is OK, since
  7995. our stdbool.h substitute should suffice. We also test
  7996. this with GCC, where it should work, to detect more
  7997. quickly whether someone messes up the test in the
  7998. future. */
  7999. char digs[] = "0123456789";
  8000. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  8001. # endif
  8002. /* Catch a bug in an HP-UX C compiler. See
  8003. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  8004. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  8005. */
  8006. _Bool q = true;
  8007. _Bool *pq = &q;
  8008. int
  8009. main ()
  8010. {
  8011. *pq |= q;
  8012. *pq |= ! q;
  8013. /* Refer to every declared value, to avoid compiler optimizations. */
  8014. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  8015. + !m + !n + !o + !p + !q + !pq);
  8016. ;
  8017. return 0;
  8018. }
  8019. _ACEOF
  8020. rm -f conftest.$ac_objext
  8021. if { (ac_try="$ac_compile"
  8022. case "(($ac_try" in
  8023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8024. *) ac_try_echo=$ac_try;;
  8025. esac
  8026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8027. $as_echo "$ac_try_echo") >&5
  8028. (eval "$ac_compile") 2>conftest.er1
  8029. ac_status=$?
  8030. grep -v '^ *+' conftest.er1 >conftest.err
  8031. rm -f conftest.er1
  8032. cat conftest.err >&5
  8033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8034. (exit $ac_status); } && {
  8035. test -z "$ac_cxx_werror_flag" ||
  8036. test ! -s conftest.err
  8037. } && test -s conftest.$ac_objext; then
  8038. ac_cv_header_stdbool_h=yes
  8039. else
  8040. $as_echo "$as_me: failed program was:" >&5
  8041. sed 's/^/| /' conftest.$ac_ext >&5
  8042. ac_cv_header_stdbool_h=no
  8043. fi
  8044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8045. fi
  8046. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  8047. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  8048. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  8049. $as_echo_n "checking for _Bool... " >&6; }
  8050. if test "${ac_cv_type__Bool+set}" = set; then
  8051. $as_echo_n "(cached) " >&6
  8052. else
  8053. ac_cv_type__Bool=no
  8054. cat >conftest.$ac_ext <<_ACEOF
  8055. /* confdefs.h. */
  8056. _ACEOF
  8057. cat confdefs.h >>conftest.$ac_ext
  8058. cat >>conftest.$ac_ext <<_ACEOF
  8059. /* end confdefs.h. */
  8060. $ac_includes_default
  8061. int
  8062. main ()
  8063. {
  8064. if (sizeof (_Bool))
  8065. return 0;
  8066. ;
  8067. return 0;
  8068. }
  8069. _ACEOF
  8070. rm -f conftest.$ac_objext
  8071. if { (ac_try="$ac_compile"
  8072. case "(($ac_try" in
  8073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8074. *) ac_try_echo=$ac_try;;
  8075. esac
  8076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8077. $as_echo "$ac_try_echo") >&5
  8078. (eval "$ac_compile") 2>conftest.er1
  8079. ac_status=$?
  8080. grep -v '^ *+' conftest.er1 >conftest.err
  8081. rm -f conftest.er1
  8082. cat conftest.err >&5
  8083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8084. (exit $ac_status); } && {
  8085. test -z "$ac_cxx_werror_flag" ||
  8086. test ! -s conftest.err
  8087. } && test -s conftest.$ac_objext; then
  8088. cat >conftest.$ac_ext <<_ACEOF
  8089. /* confdefs.h. */
  8090. _ACEOF
  8091. cat confdefs.h >>conftest.$ac_ext
  8092. cat >>conftest.$ac_ext <<_ACEOF
  8093. /* end confdefs.h. */
  8094. $ac_includes_default
  8095. int
  8096. main ()
  8097. {
  8098. if (sizeof ((_Bool)))
  8099. return 0;
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. rm -f conftest.$ac_objext
  8105. if { (ac_try="$ac_compile"
  8106. case "(($ac_try" in
  8107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8108. *) ac_try_echo=$ac_try;;
  8109. esac
  8110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8111. $as_echo "$ac_try_echo") >&5
  8112. (eval "$ac_compile") 2>conftest.er1
  8113. ac_status=$?
  8114. grep -v '^ *+' conftest.er1 >conftest.err
  8115. rm -f conftest.er1
  8116. cat conftest.err >&5
  8117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8118. (exit $ac_status); } && {
  8119. test -z "$ac_cxx_werror_flag" ||
  8120. test ! -s conftest.err
  8121. } && test -s conftest.$ac_objext; then
  8122. :
  8123. else
  8124. $as_echo "$as_me: failed program was:" >&5
  8125. sed 's/^/| /' conftest.$ac_ext >&5
  8126. ac_cv_type__Bool=yes
  8127. fi
  8128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8129. else
  8130. $as_echo "$as_me: failed program was:" >&5
  8131. sed 's/^/| /' conftest.$ac_ext >&5
  8132. fi
  8133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8134. fi
  8135. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  8136. $as_echo "$ac_cv_type__Bool" >&6; }
  8137. if test "x$ac_cv_type__Bool" = x""yes; then
  8138. cat >>confdefs.h <<_ACEOF
  8139. #define HAVE__BOOL 1
  8140. _ACEOF
  8141. fi
  8142. if test $ac_cv_header_stdbool_h = yes; then
  8143. cat >>confdefs.h <<\_ACEOF
  8144. #define HAVE_STDBOOL_H 1
  8145. _ACEOF
  8146. fi
  8147. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8148. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8149. if test "${ac_cv_c_const+set}" = set; then
  8150. $as_echo_n "(cached) " >&6
  8151. else
  8152. cat >conftest.$ac_ext <<_ACEOF
  8153. /* confdefs.h. */
  8154. _ACEOF
  8155. cat confdefs.h >>conftest.$ac_ext
  8156. cat >>conftest.$ac_ext <<_ACEOF
  8157. /* end confdefs.h. */
  8158. int
  8159. main ()
  8160. {
  8161. /* FIXME: Include the comments suggested by Paul. */
  8162. #ifndef __cplusplus
  8163. /* Ultrix mips cc rejects this. */
  8164. typedef int charset[2];
  8165. const charset cs;
  8166. /* SunOS 4.1.1 cc rejects this. */
  8167. char const *const *pcpcc;
  8168. char **ppc;
  8169. /* NEC SVR4.0.2 mips cc rejects this. */
  8170. struct point {int x, y;};
  8171. static struct point const zero = {0,0};
  8172. /* AIX XL C 1.02.0.0 rejects this.
  8173. It does not let you subtract one const X* pointer from another in
  8174. an arm of an if-expression whose if-part is not a constant
  8175. expression */
  8176. const char *g = "string";
  8177. pcpcc = &g + (g ? g-g : 0);
  8178. /* HPUX 7.0 cc rejects these. */
  8179. ++pcpcc;
  8180. ppc = (char**) pcpcc;
  8181. pcpcc = (char const *const *) ppc;
  8182. { /* SCO 3.2v4 cc rejects this. */
  8183. char *t;
  8184. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8185. *t++ = 0;
  8186. if (s) return 0;
  8187. }
  8188. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8189. int x[] = {25, 17};
  8190. const int *foo = &x[0];
  8191. ++foo;
  8192. }
  8193. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8194. typedef const int *iptr;
  8195. iptr p = 0;
  8196. ++p;
  8197. }
  8198. { /* AIX XL C 1.02.0.0 rejects this saying
  8199. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8200. struct s { int j; const int *ap[3]; };
  8201. struct s *b; b->j = 5;
  8202. }
  8203. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8204. const int foo = 10;
  8205. if (!foo) return 0;
  8206. }
  8207. return !cs[0] && !zero.x;
  8208. #endif
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. rm -f conftest.$ac_objext
  8214. if { (ac_try="$ac_compile"
  8215. case "(($ac_try" in
  8216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8217. *) ac_try_echo=$ac_try;;
  8218. esac
  8219. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8220. $as_echo "$ac_try_echo") >&5
  8221. (eval "$ac_compile") 2>conftest.er1
  8222. ac_status=$?
  8223. grep -v '^ *+' conftest.er1 >conftest.err
  8224. rm -f conftest.er1
  8225. cat conftest.err >&5
  8226. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8227. (exit $ac_status); } && {
  8228. test -z "$ac_cxx_werror_flag" ||
  8229. test ! -s conftest.err
  8230. } && test -s conftest.$ac_objext; then
  8231. ac_cv_c_const=yes
  8232. else
  8233. $as_echo "$as_me: failed program was:" >&5
  8234. sed 's/^/| /' conftest.$ac_ext >&5
  8235. ac_cv_c_const=no
  8236. fi
  8237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8238. fi
  8239. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8240. $as_echo "$ac_cv_c_const" >&6; }
  8241. if test $ac_cv_c_const = no; then
  8242. cat >>confdefs.h <<\_ACEOF
  8243. #define const /**/
  8244. _ACEOF
  8245. fi
  8246. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8247. $as_echo_n "checking for inline... " >&6; }
  8248. if test "${ac_cv_c_inline+set}" = set; then
  8249. $as_echo_n "(cached) " >&6
  8250. else
  8251. ac_cv_c_inline=no
  8252. for ac_kw in inline __inline__ __inline; do
  8253. cat >conftest.$ac_ext <<_ACEOF
  8254. /* confdefs.h. */
  8255. _ACEOF
  8256. cat confdefs.h >>conftest.$ac_ext
  8257. cat >>conftest.$ac_ext <<_ACEOF
  8258. /* end confdefs.h. */
  8259. #ifndef __cplusplus
  8260. typedef int foo_t;
  8261. static $ac_kw foo_t static_foo () {return 0; }
  8262. $ac_kw foo_t foo () {return 0; }
  8263. #endif
  8264. _ACEOF
  8265. rm -f conftest.$ac_objext
  8266. if { (ac_try="$ac_compile"
  8267. case "(($ac_try" in
  8268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8269. *) ac_try_echo=$ac_try;;
  8270. esac
  8271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8272. $as_echo "$ac_try_echo") >&5
  8273. (eval "$ac_compile") 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } && {
  8280. test -z "$ac_cxx_werror_flag" ||
  8281. test ! -s conftest.err
  8282. } && test -s conftest.$ac_objext; then
  8283. ac_cv_c_inline=$ac_kw
  8284. else
  8285. $as_echo "$as_me: failed program was:" >&5
  8286. sed 's/^/| /' conftest.$ac_ext >&5
  8287. fi
  8288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8289. test "$ac_cv_c_inline" != no && break
  8290. done
  8291. fi
  8292. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8293. $as_echo "$ac_cv_c_inline" >&6; }
  8294. case $ac_cv_c_inline in
  8295. inline | yes) ;;
  8296. *)
  8297. case $ac_cv_c_inline in
  8298. no) ac_val=;;
  8299. *) ac_val=$ac_cv_c_inline;;
  8300. esac
  8301. cat >>confdefs.h <<_ACEOF
  8302. #ifndef __cplusplus
  8303. #define inline $ac_val
  8304. #endif
  8305. _ACEOF
  8306. ;;
  8307. esac
  8308. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8309. $as_echo_n "checking for int16_t... " >&6; }
  8310. if test "${ac_cv_c_int16_t+set}" = set; then
  8311. $as_echo_n "(cached) " >&6
  8312. else
  8313. ac_cv_c_int16_t=no
  8314. for ac_type in 'int16_t' 'int' 'long int' \
  8315. 'long long int' 'short int' 'signed char'; do
  8316. cat >conftest.$ac_ext <<_ACEOF
  8317. /* confdefs.h. */
  8318. _ACEOF
  8319. cat confdefs.h >>conftest.$ac_ext
  8320. cat >>conftest.$ac_ext <<_ACEOF
  8321. /* end confdefs.h. */
  8322. $ac_includes_default
  8323. int
  8324. main ()
  8325. {
  8326. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8327. test_array [0] = 0
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. rm -f conftest.$ac_objext
  8333. if { (ac_try="$ac_compile"
  8334. case "(($ac_try" in
  8335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8336. *) ac_try_echo=$ac_try;;
  8337. esac
  8338. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8339. $as_echo "$ac_try_echo") >&5
  8340. (eval "$ac_compile") 2>conftest.er1
  8341. ac_status=$?
  8342. grep -v '^ *+' conftest.er1 >conftest.err
  8343. rm -f conftest.er1
  8344. cat conftest.err >&5
  8345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8346. (exit $ac_status); } && {
  8347. test -z "$ac_cxx_werror_flag" ||
  8348. test ! -s conftest.err
  8349. } && test -s conftest.$ac_objext; then
  8350. cat >conftest.$ac_ext <<_ACEOF
  8351. /* confdefs.h. */
  8352. _ACEOF
  8353. cat confdefs.h >>conftest.$ac_ext
  8354. cat >>conftest.$ac_ext <<_ACEOF
  8355. /* end confdefs.h. */
  8356. $ac_includes_default
  8357. int
  8358. main ()
  8359. {
  8360. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8361. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8362. test_array [0] = 0
  8363. ;
  8364. return 0;
  8365. }
  8366. _ACEOF
  8367. rm -f conftest.$ac_objext
  8368. if { (ac_try="$ac_compile"
  8369. case "(($ac_try" in
  8370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8371. *) ac_try_echo=$ac_try;;
  8372. esac
  8373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8374. $as_echo "$ac_try_echo") >&5
  8375. (eval "$ac_compile") 2>conftest.er1
  8376. ac_status=$?
  8377. grep -v '^ *+' conftest.er1 >conftest.err
  8378. rm -f conftest.er1
  8379. cat conftest.err >&5
  8380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381. (exit $ac_status); } && {
  8382. test -z "$ac_cxx_werror_flag" ||
  8383. test ! -s conftest.err
  8384. } && test -s conftest.$ac_objext; then
  8385. :
  8386. else
  8387. $as_echo "$as_me: failed program was:" >&5
  8388. sed 's/^/| /' conftest.$ac_ext >&5
  8389. case $ac_type in
  8390. int16_t) ac_cv_c_int16_t=yes ;;
  8391. *) ac_cv_c_int16_t=$ac_type ;;
  8392. esac
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8395. else
  8396. $as_echo "$as_me: failed program was:" >&5
  8397. sed 's/^/| /' conftest.$ac_ext >&5
  8398. fi
  8399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8400. test "$ac_cv_c_int16_t" != no && break
  8401. done
  8402. fi
  8403. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8404. $as_echo "$ac_cv_c_int16_t" >&6; }
  8405. case $ac_cv_c_int16_t in #(
  8406. no|yes) ;; #(
  8407. *)
  8408. cat >>confdefs.h <<_ACEOF
  8409. #define int16_t $ac_cv_c_int16_t
  8410. _ACEOF
  8411. ;;
  8412. esac
  8413. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8414. $as_echo_n "checking for int32_t... " >&6; }
  8415. if test "${ac_cv_c_int32_t+set}" = set; then
  8416. $as_echo_n "(cached) " >&6
  8417. else
  8418. ac_cv_c_int32_t=no
  8419. for ac_type in 'int32_t' 'int' 'long int' \
  8420. 'long long int' 'short int' 'signed char'; do
  8421. cat >conftest.$ac_ext <<_ACEOF
  8422. /* confdefs.h. */
  8423. _ACEOF
  8424. cat confdefs.h >>conftest.$ac_ext
  8425. cat >>conftest.$ac_ext <<_ACEOF
  8426. /* end confdefs.h. */
  8427. $ac_includes_default
  8428. int
  8429. main ()
  8430. {
  8431. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8432. test_array [0] = 0
  8433. ;
  8434. return 0;
  8435. }
  8436. _ACEOF
  8437. rm -f conftest.$ac_objext
  8438. if { (ac_try="$ac_compile"
  8439. case "(($ac_try" in
  8440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8441. *) ac_try_echo=$ac_try;;
  8442. esac
  8443. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8444. $as_echo "$ac_try_echo") >&5
  8445. (eval "$ac_compile") 2>conftest.er1
  8446. ac_status=$?
  8447. grep -v '^ *+' conftest.er1 >conftest.err
  8448. rm -f conftest.er1
  8449. cat conftest.err >&5
  8450. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8451. (exit $ac_status); } && {
  8452. test -z "$ac_cxx_werror_flag" ||
  8453. test ! -s conftest.err
  8454. } && test -s conftest.$ac_objext; then
  8455. cat >conftest.$ac_ext <<_ACEOF
  8456. /* confdefs.h. */
  8457. _ACEOF
  8458. cat confdefs.h >>conftest.$ac_ext
  8459. cat >>conftest.$ac_ext <<_ACEOF
  8460. /* end confdefs.h. */
  8461. $ac_includes_default
  8462. int
  8463. main ()
  8464. {
  8465. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8466. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8467. test_array [0] = 0
  8468. ;
  8469. return 0;
  8470. }
  8471. _ACEOF
  8472. rm -f conftest.$ac_objext
  8473. if { (ac_try="$ac_compile"
  8474. case "(($ac_try" in
  8475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8476. *) ac_try_echo=$ac_try;;
  8477. esac
  8478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8479. $as_echo "$ac_try_echo") >&5
  8480. (eval "$ac_compile") 2>conftest.er1
  8481. ac_status=$?
  8482. grep -v '^ *+' conftest.er1 >conftest.err
  8483. rm -f conftest.er1
  8484. cat conftest.err >&5
  8485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8486. (exit $ac_status); } && {
  8487. test -z "$ac_cxx_werror_flag" ||
  8488. test ! -s conftest.err
  8489. } && test -s conftest.$ac_objext; then
  8490. :
  8491. else
  8492. $as_echo "$as_me: failed program was:" >&5
  8493. sed 's/^/| /' conftest.$ac_ext >&5
  8494. case $ac_type in
  8495. int32_t) ac_cv_c_int32_t=yes ;;
  8496. *) ac_cv_c_int32_t=$ac_type ;;
  8497. esac
  8498. fi
  8499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8500. else
  8501. $as_echo "$as_me: failed program was:" >&5
  8502. sed 's/^/| /' conftest.$ac_ext >&5
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8505. test "$ac_cv_c_int32_t" != no && break
  8506. done
  8507. fi
  8508. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8509. $as_echo "$ac_cv_c_int32_t" >&6; }
  8510. case $ac_cv_c_int32_t in #(
  8511. no|yes) ;; #(
  8512. *)
  8513. cat >>confdefs.h <<_ACEOF
  8514. #define int32_t $ac_cv_c_int32_t
  8515. _ACEOF
  8516. ;;
  8517. esac
  8518. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8519. $as_echo_n "checking for int64_t... " >&6; }
  8520. if test "${ac_cv_c_int64_t+set}" = set; then
  8521. $as_echo_n "(cached) " >&6
  8522. else
  8523. ac_cv_c_int64_t=no
  8524. for ac_type in 'int64_t' 'int' 'long int' \
  8525. 'long long int' 'short int' 'signed char'; do
  8526. cat >conftest.$ac_ext <<_ACEOF
  8527. /* confdefs.h. */
  8528. _ACEOF
  8529. cat confdefs.h >>conftest.$ac_ext
  8530. cat >>conftest.$ac_ext <<_ACEOF
  8531. /* end confdefs.h. */
  8532. $ac_includes_default
  8533. int
  8534. main ()
  8535. {
  8536. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8537. test_array [0] = 0
  8538. ;
  8539. return 0;
  8540. }
  8541. _ACEOF
  8542. rm -f conftest.$ac_objext
  8543. if { (ac_try="$ac_compile"
  8544. case "(($ac_try" in
  8545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8546. *) ac_try_echo=$ac_try;;
  8547. esac
  8548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8549. $as_echo "$ac_try_echo") >&5
  8550. (eval "$ac_compile") 2>conftest.er1
  8551. ac_status=$?
  8552. grep -v '^ *+' conftest.er1 >conftest.err
  8553. rm -f conftest.er1
  8554. cat conftest.err >&5
  8555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8556. (exit $ac_status); } && {
  8557. test -z "$ac_cxx_werror_flag" ||
  8558. test ! -s conftest.err
  8559. } && test -s conftest.$ac_objext; then
  8560. cat >conftest.$ac_ext <<_ACEOF
  8561. /* confdefs.h. */
  8562. _ACEOF
  8563. cat confdefs.h >>conftest.$ac_ext
  8564. cat >>conftest.$ac_ext <<_ACEOF
  8565. /* end confdefs.h. */
  8566. $ac_includes_default
  8567. int
  8568. main ()
  8569. {
  8570. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8571. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8572. test_array [0] = 0
  8573. ;
  8574. return 0;
  8575. }
  8576. _ACEOF
  8577. rm -f conftest.$ac_objext
  8578. if { (ac_try="$ac_compile"
  8579. case "(($ac_try" in
  8580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8581. *) ac_try_echo=$ac_try;;
  8582. esac
  8583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8584. $as_echo "$ac_try_echo") >&5
  8585. (eval "$ac_compile") 2>conftest.er1
  8586. ac_status=$?
  8587. grep -v '^ *+' conftest.er1 >conftest.err
  8588. rm -f conftest.er1
  8589. cat conftest.err >&5
  8590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8591. (exit $ac_status); } && {
  8592. test -z "$ac_cxx_werror_flag" ||
  8593. test ! -s conftest.err
  8594. } && test -s conftest.$ac_objext; then
  8595. :
  8596. else
  8597. $as_echo "$as_me: failed program was:" >&5
  8598. sed 's/^/| /' conftest.$ac_ext >&5
  8599. case $ac_type in
  8600. int64_t) ac_cv_c_int64_t=yes ;;
  8601. *) ac_cv_c_int64_t=$ac_type ;;
  8602. esac
  8603. fi
  8604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8605. else
  8606. $as_echo "$as_me: failed program was:" >&5
  8607. sed 's/^/| /' conftest.$ac_ext >&5
  8608. fi
  8609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8610. test "$ac_cv_c_int64_t" != no && break
  8611. done
  8612. fi
  8613. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8614. $as_echo "$ac_cv_c_int64_t" >&6; }
  8615. case $ac_cv_c_int64_t in #(
  8616. no|yes) ;; #(
  8617. *)
  8618. cat >>confdefs.h <<_ACEOF
  8619. #define int64_t $ac_cv_c_int64_t
  8620. _ACEOF
  8621. ;;
  8622. esac
  8623. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8624. $as_echo_n "checking for int8_t... " >&6; }
  8625. if test "${ac_cv_c_int8_t+set}" = set; then
  8626. $as_echo_n "(cached) " >&6
  8627. else
  8628. ac_cv_c_int8_t=no
  8629. for ac_type in 'int8_t' 'int' 'long int' \
  8630. 'long long int' 'short int' 'signed char'; do
  8631. cat >conftest.$ac_ext <<_ACEOF
  8632. /* confdefs.h. */
  8633. _ACEOF
  8634. cat confdefs.h >>conftest.$ac_ext
  8635. cat >>conftest.$ac_ext <<_ACEOF
  8636. /* end confdefs.h. */
  8637. $ac_includes_default
  8638. int
  8639. main ()
  8640. {
  8641. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8642. test_array [0] = 0
  8643. ;
  8644. return 0;
  8645. }
  8646. _ACEOF
  8647. rm -f conftest.$ac_objext
  8648. if { (ac_try="$ac_compile"
  8649. case "(($ac_try" in
  8650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8651. *) ac_try_echo=$ac_try;;
  8652. esac
  8653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8654. $as_echo "$ac_try_echo") >&5
  8655. (eval "$ac_compile") 2>conftest.er1
  8656. ac_status=$?
  8657. grep -v '^ *+' conftest.er1 >conftest.err
  8658. rm -f conftest.er1
  8659. cat conftest.err >&5
  8660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8661. (exit $ac_status); } && {
  8662. test -z "$ac_cxx_werror_flag" ||
  8663. test ! -s conftest.err
  8664. } && test -s conftest.$ac_objext; then
  8665. cat >conftest.$ac_ext <<_ACEOF
  8666. /* confdefs.h. */
  8667. _ACEOF
  8668. cat confdefs.h >>conftest.$ac_ext
  8669. cat >>conftest.$ac_ext <<_ACEOF
  8670. /* end confdefs.h. */
  8671. $ac_includes_default
  8672. int
  8673. main ()
  8674. {
  8675. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8676. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8677. test_array [0] = 0
  8678. ;
  8679. return 0;
  8680. }
  8681. _ACEOF
  8682. rm -f conftest.$ac_objext
  8683. if { (ac_try="$ac_compile"
  8684. case "(($ac_try" in
  8685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8686. *) ac_try_echo=$ac_try;;
  8687. esac
  8688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8689. $as_echo "$ac_try_echo") >&5
  8690. (eval "$ac_compile") 2>conftest.er1
  8691. ac_status=$?
  8692. grep -v '^ *+' conftest.er1 >conftest.err
  8693. rm -f conftest.er1
  8694. cat conftest.err >&5
  8695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); } && {
  8697. test -z "$ac_cxx_werror_flag" ||
  8698. test ! -s conftest.err
  8699. } && test -s conftest.$ac_objext; then
  8700. :
  8701. else
  8702. $as_echo "$as_me: failed program was:" >&5
  8703. sed 's/^/| /' conftest.$ac_ext >&5
  8704. case $ac_type in
  8705. int8_t) ac_cv_c_int8_t=yes ;;
  8706. *) ac_cv_c_int8_t=$ac_type ;;
  8707. esac
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8710. else
  8711. $as_echo "$as_me: failed program was:" >&5
  8712. sed 's/^/| /' conftest.$ac_ext >&5
  8713. fi
  8714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8715. test "$ac_cv_c_int8_t" != no && break
  8716. done
  8717. fi
  8718. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8719. $as_echo "$ac_cv_c_int8_t" >&6; }
  8720. case $ac_cv_c_int8_t in #(
  8721. no|yes) ;; #(
  8722. *)
  8723. cat >>confdefs.h <<_ACEOF
  8724. #define int8_t $ac_cv_c_int8_t
  8725. _ACEOF
  8726. ;;
  8727. esac
  8728. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8729. $as_echo_n "checking for mode_t... " >&6; }
  8730. if test "${ac_cv_type_mode_t+set}" = set; then
  8731. $as_echo_n "(cached) " >&6
  8732. else
  8733. ac_cv_type_mode_t=no
  8734. cat >conftest.$ac_ext <<_ACEOF
  8735. /* confdefs.h. */
  8736. _ACEOF
  8737. cat confdefs.h >>conftest.$ac_ext
  8738. cat >>conftest.$ac_ext <<_ACEOF
  8739. /* end confdefs.h. */
  8740. $ac_includes_default
  8741. int
  8742. main ()
  8743. {
  8744. if (sizeof (mode_t))
  8745. return 0;
  8746. ;
  8747. return 0;
  8748. }
  8749. _ACEOF
  8750. rm -f conftest.$ac_objext
  8751. if { (ac_try="$ac_compile"
  8752. case "(($ac_try" in
  8753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8754. *) ac_try_echo=$ac_try;;
  8755. esac
  8756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8757. $as_echo "$ac_try_echo") >&5
  8758. (eval "$ac_compile") 2>conftest.er1
  8759. ac_status=$?
  8760. grep -v '^ *+' conftest.er1 >conftest.err
  8761. rm -f conftest.er1
  8762. cat conftest.err >&5
  8763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8764. (exit $ac_status); } && {
  8765. test -z "$ac_cxx_werror_flag" ||
  8766. test ! -s conftest.err
  8767. } && test -s conftest.$ac_objext; then
  8768. cat >conftest.$ac_ext <<_ACEOF
  8769. /* confdefs.h. */
  8770. _ACEOF
  8771. cat confdefs.h >>conftest.$ac_ext
  8772. cat >>conftest.$ac_ext <<_ACEOF
  8773. /* end confdefs.h. */
  8774. $ac_includes_default
  8775. int
  8776. main ()
  8777. {
  8778. if (sizeof ((mode_t)))
  8779. return 0;
  8780. ;
  8781. return 0;
  8782. }
  8783. _ACEOF
  8784. rm -f conftest.$ac_objext
  8785. if { (ac_try="$ac_compile"
  8786. case "(($ac_try" in
  8787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8788. *) ac_try_echo=$ac_try;;
  8789. esac
  8790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8791. $as_echo "$ac_try_echo") >&5
  8792. (eval "$ac_compile") 2>conftest.er1
  8793. ac_status=$?
  8794. grep -v '^ *+' conftest.er1 >conftest.err
  8795. rm -f conftest.er1
  8796. cat conftest.err >&5
  8797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8798. (exit $ac_status); } && {
  8799. test -z "$ac_cxx_werror_flag" ||
  8800. test ! -s conftest.err
  8801. } && test -s conftest.$ac_objext; then
  8802. :
  8803. else
  8804. $as_echo "$as_me: failed program was:" >&5
  8805. sed 's/^/| /' conftest.$ac_ext >&5
  8806. ac_cv_type_mode_t=yes
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8809. else
  8810. $as_echo "$as_me: failed program was:" >&5
  8811. sed 's/^/| /' conftest.$ac_ext >&5
  8812. fi
  8813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8814. fi
  8815. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8816. $as_echo "$ac_cv_type_mode_t" >&6; }
  8817. if test "x$ac_cv_type_mode_t" = x""yes; then
  8818. :
  8819. else
  8820. cat >>confdefs.h <<_ACEOF
  8821. #define mode_t int
  8822. _ACEOF
  8823. fi
  8824. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8825. $as_echo_n "checking for off_t... " >&6; }
  8826. if test "${ac_cv_type_off_t+set}" = set; then
  8827. $as_echo_n "(cached) " >&6
  8828. else
  8829. ac_cv_type_off_t=no
  8830. cat >conftest.$ac_ext <<_ACEOF
  8831. /* confdefs.h. */
  8832. _ACEOF
  8833. cat confdefs.h >>conftest.$ac_ext
  8834. cat >>conftest.$ac_ext <<_ACEOF
  8835. /* end confdefs.h. */
  8836. $ac_includes_default
  8837. int
  8838. main ()
  8839. {
  8840. if (sizeof (off_t))
  8841. return 0;
  8842. ;
  8843. return 0;
  8844. }
  8845. _ACEOF
  8846. rm -f conftest.$ac_objext
  8847. if { (ac_try="$ac_compile"
  8848. case "(($ac_try" in
  8849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8850. *) ac_try_echo=$ac_try;;
  8851. esac
  8852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8853. $as_echo "$ac_try_echo") >&5
  8854. (eval "$ac_compile") 2>conftest.er1
  8855. ac_status=$?
  8856. grep -v '^ *+' conftest.er1 >conftest.err
  8857. rm -f conftest.er1
  8858. cat conftest.err >&5
  8859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8860. (exit $ac_status); } && {
  8861. test -z "$ac_cxx_werror_flag" ||
  8862. test ! -s conftest.err
  8863. } && test -s conftest.$ac_objext; then
  8864. cat >conftest.$ac_ext <<_ACEOF
  8865. /* confdefs.h. */
  8866. _ACEOF
  8867. cat confdefs.h >>conftest.$ac_ext
  8868. cat >>conftest.$ac_ext <<_ACEOF
  8869. /* end confdefs.h. */
  8870. $ac_includes_default
  8871. int
  8872. main ()
  8873. {
  8874. if (sizeof ((off_t)))
  8875. return 0;
  8876. ;
  8877. return 0;
  8878. }
  8879. _ACEOF
  8880. rm -f conftest.$ac_objext
  8881. if { (ac_try="$ac_compile"
  8882. case "(($ac_try" in
  8883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8884. *) ac_try_echo=$ac_try;;
  8885. esac
  8886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8887. $as_echo "$ac_try_echo") >&5
  8888. (eval "$ac_compile") 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } && {
  8895. test -z "$ac_cxx_werror_flag" ||
  8896. test ! -s conftest.err
  8897. } && test -s conftest.$ac_objext; then
  8898. :
  8899. else
  8900. $as_echo "$as_me: failed program was:" >&5
  8901. sed 's/^/| /' conftest.$ac_ext >&5
  8902. ac_cv_type_off_t=yes
  8903. fi
  8904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8905. else
  8906. $as_echo "$as_me: failed program was:" >&5
  8907. sed 's/^/| /' conftest.$ac_ext >&5
  8908. fi
  8909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8910. fi
  8911. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8912. $as_echo "$ac_cv_type_off_t" >&6; }
  8913. if test "x$ac_cv_type_off_t" = x""yes; then
  8914. :
  8915. else
  8916. cat >>confdefs.h <<_ACEOF
  8917. #define off_t long int
  8918. _ACEOF
  8919. fi
  8920. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8921. $as_echo_n "checking for size_t... " >&6; }
  8922. if test "${ac_cv_type_size_t+set}" = set; then
  8923. $as_echo_n "(cached) " >&6
  8924. else
  8925. ac_cv_type_size_t=no
  8926. cat >conftest.$ac_ext <<_ACEOF
  8927. /* confdefs.h. */
  8928. _ACEOF
  8929. cat confdefs.h >>conftest.$ac_ext
  8930. cat >>conftest.$ac_ext <<_ACEOF
  8931. /* end confdefs.h. */
  8932. $ac_includes_default
  8933. int
  8934. main ()
  8935. {
  8936. if (sizeof (size_t))
  8937. return 0;
  8938. ;
  8939. return 0;
  8940. }
  8941. _ACEOF
  8942. rm -f conftest.$ac_objext
  8943. if { (ac_try="$ac_compile"
  8944. case "(($ac_try" in
  8945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8946. *) ac_try_echo=$ac_try;;
  8947. esac
  8948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8949. $as_echo "$ac_try_echo") >&5
  8950. (eval "$ac_compile") 2>conftest.er1
  8951. ac_status=$?
  8952. grep -v '^ *+' conftest.er1 >conftest.err
  8953. rm -f conftest.er1
  8954. cat conftest.err >&5
  8955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8956. (exit $ac_status); } && {
  8957. test -z "$ac_cxx_werror_flag" ||
  8958. test ! -s conftest.err
  8959. } && test -s conftest.$ac_objext; then
  8960. cat >conftest.$ac_ext <<_ACEOF
  8961. /* confdefs.h. */
  8962. _ACEOF
  8963. cat confdefs.h >>conftest.$ac_ext
  8964. cat >>conftest.$ac_ext <<_ACEOF
  8965. /* end confdefs.h. */
  8966. $ac_includes_default
  8967. int
  8968. main ()
  8969. {
  8970. if (sizeof ((size_t)))
  8971. return 0;
  8972. ;
  8973. return 0;
  8974. }
  8975. _ACEOF
  8976. rm -f conftest.$ac_objext
  8977. if { (ac_try="$ac_compile"
  8978. case "(($ac_try" in
  8979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8980. *) ac_try_echo=$ac_try;;
  8981. esac
  8982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8983. $as_echo "$ac_try_echo") >&5
  8984. (eval "$ac_compile") 2>conftest.er1
  8985. ac_status=$?
  8986. grep -v '^ *+' conftest.er1 >conftest.err
  8987. rm -f conftest.er1
  8988. cat conftest.err >&5
  8989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990. (exit $ac_status); } && {
  8991. test -z "$ac_cxx_werror_flag" ||
  8992. test ! -s conftest.err
  8993. } && test -s conftest.$ac_objext; then
  8994. :
  8995. else
  8996. $as_echo "$as_me: failed program was:" >&5
  8997. sed 's/^/| /' conftest.$ac_ext >&5
  8998. ac_cv_type_size_t=yes
  8999. fi
  9000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9001. else
  9002. $as_echo "$as_me: failed program was:" >&5
  9003. sed 's/^/| /' conftest.$ac_ext >&5
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9006. fi
  9007. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  9008. $as_echo "$ac_cv_type_size_t" >&6; }
  9009. if test "x$ac_cv_type_size_t" = x""yes; then
  9010. :
  9011. else
  9012. cat >>confdefs.h <<_ACEOF
  9013. #define size_t unsigned int
  9014. _ACEOF
  9015. fi
  9016. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  9017. $as_echo_n "checking for ssize_t... " >&6; }
  9018. if test "${ac_cv_type_ssize_t+set}" = set; then
  9019. $as_echo_n "(cached) " >&6
  9020. else
  9021. ac_cv_type_ssize_t=no
  9022. cat >conftest.$ac_ext <<_ACEOF
  9023. /* confdefs.h. */
  9024. _ACEOF
  9025. cat confdefs.h >>conftest.$ac_ext
  9026. cat >>conftest.$ac_ext <<_ACEOF
  9027. /* end confdefs.h. */
  9028. $ac_includes_default
  9029. int
  9030. main ()
  9031. {
  9032. if (sizeof (ssize_t))
  9033. return 0;
  9034. ;
  9035. return 0;
  9036. }
  9037. _ACEOF
  9038. rm -f conftest.$ac_objext
  9039. if { (ac_try="$ac_compile"
  9040. case "(($ac_try" in
  9041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9042. *) ac_try_echo=$ac_try;;
  9043. esac
  9044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9045. $as_echo "$ac_try_echo") >&5
  9046. (eval "$ac_compile") 2>conftest.er1
  9047. ac_status=$?
  9048. grep -v '^ *+' conftest.er1 >conftest.err
  9049. rm -f conftest.er1
  9050. cat conftest.err >&5
  9051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9052. (exit $ac_status); } && {
  9053. test -z "$ac_cxx_werror_flag" ||
  9054. test ! -s conftest.err
  9055. } && test -s conftest.$ac_objext; then
  9056. cat >conftest.$ac_ext <<_ACEOF
  9057. /* confdefs.h. */
  9058. _ACEOF
  9059. cat confdefs.h >>conftest.$ac_ext
  9060. cat >>conftest.$ac_ext <<_ACEOF
  9061. /* end confdefs.h. */
  9062. $ac_includes_default
  9063. int
  9064. main ()
  9065. {
  9066. if (sizeof ((ssize_t)))
  9067. return 0;
  9068. ;
  9069. return 0;
  9070. }
  9071. _ACEOF
  9072. rm -f conftest.$ac_objext
  9073. if { (ac_try="$ac_compile"
  9074. case "(($ac_try" in
  9075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9076. *) ac_try_echo=$ac_try;;
  9077. esac
  9078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9079. $as_echo "$ac_try_echo") >&5
  9080. (eval "$ac_compile") 2>conftest.er1
  9081. ac_status=$?
  9082. grep -v '^ *+' conftest.er1 >conftest.err
  9083. rm -f conftest.er1
  9084. cat conftest.err >&5
  9085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9086. (exit $ac_status); } && {
  9087. test -z "$ac_cxx_werror_flag" ||
  9088. test ! -s conftest.err
  9089. } && test -s conftest.$ac_objext; then
  9090. :
  9091. else
  9092. $as_echo "$as_me: failed program was:" >&5
  9093. sed 's/^/| /' conftest.$ac_ext >&5
  9094. ac_cv_type_ssize_t=yes
  9095. fi
  9096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9097. else
  9098. $as_echo "$as_me: failed program was:" >&5
  9099. sed 's/^/| /' conftest.$ac_ext >&5
  9100. fi
  9101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9102. fi
  9103. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  9104. $as_echo "$ac_cv_type_ssize_t" >&6; }
  9105. if test "x$ac_cv_type_ssize_t" = x""yes; then
  9106. :
  9107. else
  9108. cat >>confdefs.h <<_ACEOF
  9109. #define ssize_t int
  9110. _ACEOF
  9111. fi
  9112. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  9113. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  9114. if test "${ac_cv_header_time+set}" = set; then
  9115. $as_echo_n "(cached) " >&6
  9116. else
  9117. cat >conftest.$ac_ext <<_ACEOF
  9118. /* confdefs.h. */
  9119. _ACEOF
  9120. cat confdefs.h >>conftest.$ac_ext
  9121. cat >>conftest.$ac_ext <<_ACEOF
  9122. /* end confdefs.h. */
  9123. #include <sys/types.h>
  9124. #include <sys/time.h>
  9125. #include <time.h>
  9126. int
  9127. main ()
  9128. {
  9129. if ((struct tm *) 0)
  9130. return 0;
  9131. ;
  9132. return 0;
  9133. }
  9134. _ACEOF
  9135. rm -f conftest.$ac_objext
  9136. if { (ac_try="$ac_compile"
  9137. case "(($ac_try" in
  9138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9139. *) ac_try_echo=$ac_try;;
  9140. esac
  9141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9142. $as_echo "$ac_try_echo") >&5
  9143. (eval "$ac_compile") 2>conftest.er1
  9144. ac_status=$?
  9145. grep -v '^ *+' conftest.er1 >conftest.err
  9146. rm -f conftest.er1
  9147. cat conftest.err >&5
  9148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9149. (exit $ac_status); } && {
  9150. test -z "$ac_cxx_werror_flag" ||
  9151. test ! -s conftest.err
  9152. } && test -s conftest.$ac_objext; then
  9153. ac_cv_header_time=yes
  9154. else
  9155. $as_echo "$as_me: failed program was:" >&5
  9156. sed 's/^/| /' conftest.$ac_ext >&5
  9157. ac_cv_header_time=no
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9160. fi
  9161. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  9162. $as_echo "$ac_cv_header_time" >&6; }
  9163. if test $ac_cv_header_time = yes; then
  9164. cat >>confdefs.h <<\_ACEOF
  9165. #define TIME_WITH_SYS_TIME 1
  9166. _ACEOF
  9167. fi
  9168. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9169. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9170. if test "${ac_cv_struct_tm+set}" = set; then
  9171. $as_echo_n "(cached) " >&6
  9172. else
  9173. cat >conftest.$ac_ext <<_ACEOF
  9174. /* confdefs.h. */
  9175. _ACEOF
  9176. cat confdefs.h >>conftest.$ac_ext
  9177. cat >>conftest.$ac_ext <<_ACEOF
  9178. /* end confdefs.h. */
  9179. #include <sys/types.h>
  9180. #include <time.h>
  9181. int
  9182. main ()
  9183. {
  9184. struct tm tm;
  9185. int *p = &tm.tm_sec;
  9186. return !p;
  9187. ;
  9188. return 0;
  9189. }
  9190. _ACEOF
  9191. rm -f conftest.$ac_objext
  9192. if { (ac_try="$ac_compile"
  9193. case "(($ac_try" in
  9194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9195. *) ac_try_echo=$ac_try;;
  9196. esac
  9197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9198. $as_echo "$ac_try_echo") >&5
  9199. (eval "$ac_compile") 2>conftest.er1
  9200. ac_status=$?
  9201. grep -v '^ *+' conftest.er1 >conftest.err
  9202. rm -f conftest.er1
  9203. cat conftest.err >&5
  9204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9205. (exit $ac_status); } && {
  9206. test -z "$ac_cxx_werror_flag" ||
  9207. test ! -s conftest.err
  9208. } && test -s conftest.$ac_objext; then
  9209. ac_cv_struct_tm=time.h
  9210. else
  9211. $as_echo "$as_me: failed program was:" >&5
  9212. sed 's/^/| /' conftest.$ac_ext >&5
  9213. ac_cv_struct_tm=sys/time.h
  9214. fi
  9215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9216. fi
  9217. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9218. $as_echo "$ac_cv_struct_tm" >&6; }
  9219. if test $ac_cv_struct_tm = sys/time.h; then
  9220. cat >>confdefs.h <<\_ACEOF
  9221. #define TM_IN_SYS_TIME 1
  9222. _ACEOF
  9223. fi
  9224. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  9225. $as_echo_n "checking for uint16_t... " >&6; }
  9226. if test "${ac_cv_c_uint16_t+set}" = set; then
  9227. $as_echo_n "(cached) " >&6
  9228. else
  9229. ac_cv_c_uint16_t=no
  9230. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  9231. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9232. cat >conftest.$ac_ext <<_ACEOF
  9233. /* confdefs.h. */
  9234. _ACEOF
  9235. cat confdefs.h >>conftest.$ac_ext
  9236. cat >>conftest.$ac_ext <<_ACEOF
  9237. /* end confdefs.h. */
  9238. $ac_includes_default
  9239. int
  9240. main ()
  9241. {
  9242. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  9243. test_array [0] = 0
  9244. ;
  9245. return 0;
  9246. }
  9247. _ACEOF
  9248. rm -f conftest.$ac_objext
  9249. if { (ac_try="$ac_compile"
  9250. case "(($ac_try" in
  9251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9252. *) ac_try_echo=$ac_try;;
  9253. esac
  9254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9255. $as_echo "$ac_try_echo") >&5
  9256. (eval "$ac_compile") 2>conftest.er1
  9257. ac_status=$?
  9258. grep -v '^ *+' conftest.er1 >conftest.err
  9259. rm -f conftest.er1
  9260. cat conftest.err >&5
  9261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); } && {
  9263. test -z "$ac_cxx_werror_flag" ||
  9264. test ! -s conftest.err
  9265. } && test -s conftest.$ac_objext; then
  9266. case $ac_type in
  9267. uint16_t) ac_cv_c_uint16_t=yes ;;
  9268. *) ac_cv_c_uint16_t=$ac_type ;;
  9269. esac
  9270. else
  9271. $as_echo "$as_me: failed program was:" >&5
  9272. sed 's/^/| /' conftest.$ac_ext >&5
  9273. fi
  9274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9275. test "$ac_cv_c_uint16_t" != no && break
  9276. done
  9277. fi
  9278. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9279. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9280. case $ac_cv_c_uint16_t in #(
  9281. no|yes) ;; #(
  9282. *)
  9283. cat >>confdefs.h <<_ACEOF
  9284. #define uint16_t $ac_cv_c_uint16_t
  9285. _ACEOF
  9286. ;;
  9287. esac
  9288. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9289. $as_echo_n "checking for uint32_t... " >&6; }
  9290. if test "${ac_cv_c_uint32_t+set}" = set; then
  9291. $as_echo_n "(cached) " >&6
  9292. else
  9293. ac_cv_c_uint32_t=no
  9294. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9295. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9296. cat >conftest.$ac_ext <<_ACEOF
  9297. /* confdefs.h. */
  9298. _ACEOF
  9299. cat confdefs.h >>conftest.$ac_ext
  9300. cat >>conftest.$ac_ext <<_ACEOF
  9301. /* end confdefs.h. */
  9302. $ac_includes_default
  9303. int
  9304. main ()
  9305. {
  9306. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9307. test_array [0] = 0
  9308. ;
  9309. return 0;
  9310. }
  9311. _ACEOF
  9312. rm -f conftest.$ac_objext
  9313. if { (ac_try="$ac_compile"
  9314. case "(($ac_try" in
  9315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9316. *) ac_try_echo=$ac_try;;
  9317. esac
  9318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9319. $as_echo "$ac_try_echo") >&5
  9320. (eval "$ac_compile") 2>conftest.er1
  9321. ac_status=$?
  9322. grep -v '^ *+' conftest.er1 >conftest.err
  9323. rm -f conftest.er1
  9324. cat conftest.err >&5
  9325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9326. (exit $ac_status); } && {
  9327. test -z "$ac_cxx_werror_flag" ||
  9328. test ! -s conftest.err
  9329. } && test -s conftest.$ac_objext; then
  9330. case $ac_type in
  9331. uint32_t) ac_cv_c_uint32_t=yes ;;
  9332. *) ac_cv_c_uint32_t=$ac_type ;;
  9333. esac
  9334. else
  9335. $as_echo "$as_me: failed program was:" >&5
  9336. sed 's/^/| /' conftest.$ac_ext >&5
  9337. fi
  9338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9339. test "$ac_cv_c_uint32_t" != no && break
  9340. done
  9341. fi
  9342. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9343. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9344. case $ac_cv_c_uint32_t in #(
  9345. no|yes) ;; #(
  9346. *)
  9347. cat >>confdefs.h <<\_ACEOF
  9348. #define _UINT32_T 1
  9349. _ACEOF
  9350. cat >>confdefs.h <<_ACEOF
  9351. #define uint32_t $ac_cv_c_uint32_t
  9352. _ACEOF
  9353. ;;
  9354. esac
  9355. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9356. $as_echo_n "checking for uint64_t... " >&6; }
  9357. if test "${ac_cv_c_uint64_t+set}" = set; then
  9358. $as_echo_n "(cached) " >&6
  9359. else
  9360. ac_cv_c_uint64_t=no
  9361. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9362. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9363. cat >conftest.$ac_ext <<_ACEOF
  9364. /* confdefs.h. */
  9365. _ACEOF
  9366. cat confdefs.h >>conftest.$ac_ext
  9367. cat >>conftest.$ac_ext <<_ACEOF
  9368. /* end confdefs.h. */
  9369. $ac_includes_default
  9370. int
  9371. main ()
  9372. {
  9373. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9374. test_array [0] = 0
  9375. ;
  9376. return 0;
  9377. }
  9378. _ACEOF
  9379. rm -f conftest.$ac_objext
  9380. if { (ac_try="$ac_compile"
  9381. case "(($ac_try" in
  9382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9383. *) ac_try_echo=$ac_try;;
  9384. esac
  9385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9386. $as_echo "$ac_try_echo") >&5
  9387. (eval "$ac_compile") 2>conftest.er1
  9388. ac_status=$?
  9389. grep -v '^ *+' conftest.er1 >conftest.err
  9390. rm -f conftest.er1
  9391. cat conftest.err >&5
  9392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9393. (exit $ac_status); } && {
  9394. test -z "$ac_cxx_werror_flag" ||
  9395. test ! -s conftest.err
  9396. } && test -s conftest.$ac_objext; then
  9397. case $ac_type in
  9398. uint64_t) ac_cv_c_uint64_t=yes ;;
  9399. *) ac_cv_c_uint64_t=$ac_type ;;
  9400. esac
  9401. else
  9402. $as_echo "$as_me: failed program was:" >&5
  9403. sed 's/^/| /' conftest.$ac_ext >&5
  9404. fi
  9405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9406. test "$ac_cv_c_uint64_t" != no && break
  9407. done
  9408. fi
  9409. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9410. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9411. case $ac_cv_c_uint64_t in #(
  9412. no|yes) ;; #(
  9413. *)
  9414. cat >>confdefs.h <<\_ACEOF
  9415. #define _UINT64_T 1
  9416. _ACEOF
  9417. cat >>confdefs.h <<_ACEOF
  9418. #define uint64_t $ac_cv_c_uint64_t
  9419. _ACEOF
  9420. ;;
  9421. esac
  9422. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9423. $as_echo_n "checking for uint8_t... " >&6; }
  9424. if test "${ac_cv_c_uint8_t+set}" = set; then
  9425. $as_echo_n "(cached) " >&6
  9426. else
  9427. ac_cv_c_uint8_t=no
  9428. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9429. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9430. cat >conftest.$ac_ext <<_ACEOF
  9431. /* confdefs.h. */
  9432. _ACEOF
  9433. cat confdefs.h >>conftest.$ac_ext
  9434. cat >>conftest.$ac_ext <<_ACEOF
  9435. /* end confdefs.h. */
  9436. $ac_includes_default
  9437. int
  9438. main ()
  9439. {
  9440. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9441. test_array [0] = 0
  9442. ;
  9443. return 0;
  9444. }
  9445. _ACEOF
  9446. rm -f conftest.$ac_objext
  9447. if { (ac_try="$ac_compile"
  9448. case "(($ac_try" in
  9449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9450. *) ac_try_echo=$ac_try;;
  9451. esac
  9452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9453. $as_echo "$ac_try_echo") >&5
  9454. (eval "$ac_compile") 2>conftest.er1
  9455. ac_status=$?
  9456. grep -v '^ *+' conftest.er1 >conftest.err
  9457. rm -f conftest.er1
  9458. cat conftest.err >&5
  9459. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9460. (exit $ac_status); } && {
  9461. test -z "$ac_cxx_werror_flag" ||
  9462. test ! -s conftest.err
  9463. } && test -s conftest.$ac_objext; then
  9464. case $ac_type in
  9465. uint8_t) ac_cv_c_uint8_t=yes ;;
  9466. *) ac_cv_c_uint8_t=$ac_type ;;
  9467. esac
  9468. else
  9469. $as_echo "$as_me: failed program was:" >&5
  9470. sed 's/^/| /' conftest.$ac_ext >&5
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9473. test "$ac_cv_c_uint8_t" != no && break
  9474. done
  9475. fi
  9476. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9477. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9478. case $ac_cv_c_uint8_t in #(
  9479. no|yes) ;; #(
  9480. *)
  9481. cat >>confdefs.h <<\_ACEOF
  9482. #define _UINT8_T 1
  9483. _ACEOF
  9484. cat >>confdefs.h <<_ACEOF
  9485. #define uint8_t $ac_cv_c_uint8_t
  9486. _ACEOF
  9487. ;;
  9488. esac
  9489. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9490. $as_echo_n "checking for working volatile... " >&6; }
  9491. if test "${ac_cv_c_volatile+set}" = set; then
  9492. $as_echo_n "(cached) " >&6
  9493. else
  9494. cat >conftest.$ac_ext <<_ACEOF
  9495. /* confdefs.h. */
  9496. _ACEOF
  9497. cat confdefs.h >>conftest.$ac_ext
  9498. cat >>conftest.$ac_ext <<_ACEOF
  9499. /* end confdefs.h. */
  9500. int
  9501. main ()
  9502. {
  9503. volatile int x;
  9504. int * volatile y = (int *) 0;
  9505. return !x && !y;
  9506. ;
  9507. return 0;
  9508. }
  9509. _ACEOF
  9510. rm -f conftest.$ac_objext
  9511. if { (ac_try="$ac_compile"
  9512. case "(($ac_try" in
  9513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9514. *) ac_try_echo=$ac_try;;
  9515. esac
  9516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9517. $as_echo "$ac_try_echo") >&5
  9518. (eval "$ac_compile") 2>conftest.er1
  9519. ac_status=$?
  9520. grep -v '^ *+' conftest.er1 >conftest.err
  9521. rm -f conftest.er1
  9522. cat conftest.err >&5
  9523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9524. (exit $ac_status); } && {
  9525. test -z "$ac_cxx_werror_flag" ||
  9526. test ! -s conftest.err
  9527. } && test -s conftest.$ac_objext; then
  9528. ac_cv_c_volatile=yes
  9529. else
  9530. $as_echo "$as_me: failed program was:" >&5
  9531. sed 's/^/| /' conftest.$ac_ext >&5
  9532. ac_cv_c_volatile=no
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9535. fi
  9536. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9537. $as_echo "$ac_cv_c_volatile" >&6; }
  9538. if test $ac_cv_c_volatile = no; then
  9539. cat >>confdefs.h <<\_ACEOF
  9540. #define volatile /**/
  9541. _ACEOF
  9542. fi
  9543. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9544. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9545. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9546. $as_echo_n "(cached) " >&6
  9547. else
  9548. ac_cv_type_ptrdiff_t=no
  9549. cat >conftest.$ac_ext <<_ACEOF
  9550. /* confdefs.h. */
  9551. _ACEOF
  9552. cat confdefs.h >>conftest.$ac_ext
  9553. cat >>conftest.$ac_ext <<_ACEOF
  9554. /* end confdefs.h. */
  9555. $ac_includes_default
  9556. int
  9557. main ()
  9558. {
  9559. if (sizeof (ptrdiff_t))
  9560. return 0;
  9561. ;
  9562. return 0;
  9563. }
  9564. _ACEOF
  9565. rm -f conftest.$ac_objext
  9566. if { (ac_try="$ac_compile"
  9567. case "(($ac_try" in
  9568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9569. *) ac_try_echo=$ac_try;;
  9570. esac
  9571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9572. $as_echo "$ac_try_echo") >&5
  9573. (eval "$ac_compile") 2>conftest.er1
  9574. ac_status=$?
  9575. grep -v '^ *+' conftest.er1 >conftest.err
  9576. rm -f conftest.er1
  9577. cat conftest.err >&5
  9578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9579. (exit $ac_status); } && {
  9580. test -z "$ac_cxx_werror_flag" ||
  9581. test ! -s conftest.err
  9582. } && test -s conftest.$ac_objext; then
  9583. cat >conftest.$ac_ext <<_ACEOF
  9584. /* confdefs.h. */
  9585. _ACEOF
  9586. cat confdefs.h >>conftest.$ac_ext
  9587. cat >>conftest.$ac_ext <<_ACEOF
  9588. /* end confdefs.h. */
  9589. $ac_includes_default
  9590. int
  9591. main ()
  9592. {
  9593. if (sizeof ((ptrdiff_t)))
  9594. return 0;
  9595. ;
  9596. return 0;
  9597. }
  9598. _ACEOF
  9599. rm -f conftest.$ac_objext
  9600. if { (ac_try="$ac_compile"
  9601. case "(($ac_try" in
  9602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9603. *) ac_try_echo=$ac_try;;
  9604. esac
  9605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9606. $as_echo "$ac_try_echo") >&5
  9607. (eval "$ac_compile") 2>conftest.er1
  9608. ac_status=$?
  9609. grep -v '^ *+' conftest.er1 >conftest.err
  9610. rm -f conftest.er1
  9611. cat conftest.err >&5
  9612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9613. (exit $ac_status); } && {
  9614. test -z "$ac_cxx_werror_flag" ||
  9615. test ! -s conftest.err
  9616. } && test -s conftest.$ac_objext; then
  9617. :
  9618. else
  9619. $as_echo "$as_me: failed program was:" >&5
  9620. sed 's/^/| /' conftest.$ac_ext >&5
  9621. ac_cv_type_ptrdiff_t=yes
  9622. fi
  9623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9624. else
  9625. $as_echo "$as_me: failed program was:" >&5
  9626. sed 's/^/| /' conftest.$ac_ext >&5
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9629. fi
  9630. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9631. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9632. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9633. cat >>confdefs.h <<_ACEOF
  9634. #define HAVE_PTRDIFF_T 1
  9635. _ACEOF
  9636. fi
  9637. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9638. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9639. if test "${ac_cv_c_bigendian+set}" = set; then
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. ac_cv_c_bigendian=unknown
  9643. # See if we're dealing with a universal compiler.
  9644. cat >conftest.$ac_ext <<_ACEOF
  9645. /* confdefs.h. */
  9646. _ACEOF
  9647. cat confdefs.h >>conftest.$ac_ext
  9648. cat >>conftest.$ac_ext <<_ACEOF
  9649. /* end confdefs.h. */
  9650. #ifndef __APPLE_CC__
  9651. not a universal capable compiler
  9652. #endif
  9653. typedef int dummy;
  9654. _ACEOF
  9655. rm -f conftest.$ac_objext
  9656. if { (ac_try="$ac_compile"
  9657. case "(($ac_try" in
  9658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9659. *) ac_try_echo=$ac_try;;
  9660. esac
  9661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9662. $as_echo "$ac_try_echo") >&5
  9663. (eval "$ac_compile") 2>conftest.er1
  9664. ac_status=$?
  9665. grep -v '^ *+' conftest.er1 >conftest.err
  9666. rm -f conftest.er1
  9667. cat conftest.err >&5
  9668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9669. (exit $ac_status); } && {
  9670. test -z "$ac_cxx_werror_flag" ||
  9671. test ! -s conftest.err
  9672. } && test -s conftest.$ac_objext; then
  9673. # Check for potential -arch flags. It is not universal unless
  9674. # there are some -arch flags. Note that *ppc* also matches
  9675. # ppc64. This check is also rather less than ideal.
  9676. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9677. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9678. esac
  9679. else
  9680. $as_echo "$as_me: failed program was:" >&5
  9681. sed 's/^/| /' conftest.$ac_ext >&5
  9682. fi
  9683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9684. if test $ac_cv_c_bigendian = unknown; then
  9685. # See if sys/param.h defines the BYTE_ORDER macro.
  9686. cat >conftest.$ac_ext <<_ACEOF
  9687. /* confdefs.h. */
  9688. _ACEOF
  9689. cat confdefs.h >>conftest.$ac_ext
  9690. cat >>conftest.$ac_ext <<_ACEOF
  9691. /* end confdefs.h. */
  9692. #include <sys/types.h>
  9693. #include <sys/param.h>
  9694. int
  9695. main ()
  9696. {
  9697. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9698. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9699. && LITTLE_ENDIAN)
  9700. bogus endian macros
  9701. #endif
  9702. ;
  9703. return 0;
  9704. }
  9705. _ACEOF
  9706. rm -f conftest.$ac_objext
  9707. if { (ac_try="$ac_compile"
  9708. case "(($ac_try" in
  9709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9710. *) ac_try_echo=$ac_try;;
  9711. esac
  9712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9713. $as_echo "$ac_try_echo") >&5
  9714. (eval "$ac_compile") 2>conftest.er1
  9715. ac_status=$?
  9716. grep -v '^ *+' conftest.er1 >conftest.err
  9717. rm -f conftest.er1
  9718. cat conftest.err >&5
  9719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9720. (exit $ac_status); } && {
  9721. test -z "$ac_cxx_werror_flag" ||
  9722. test ! -s conftest.err
  9723. } && test -s conftest.$ac_objext; then
  9724. # It does; now see whether it defined to BIG_ENDIAN or not.
  9725. cat >conftest.$ac_ext <<_ACEOF
  9726. /* confdefs.h. */
  9727. _ACEOF
  9728. cat confdefs.h >>conftest.$ac_ext
  9729. cat >>conftest.$ac_ext <<_ACEOF
  9730. /* end confdefs.h. */
  9731. #include <sys/types.h>
  9732. #include <sys/param.h>
  9733. int
  9734. main ()
  9735. {
  9736. #if BYTE_ORDER != BIG_ENDIAN
  9737. not big endian
  9738. #endif
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. rm -f conftest.$ac_objext
  9744. if { (ac_try="$ac_compile"
  9745. case "(($ac_try" in
  9746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9747. *) ac_try_echo=$ac_try;;
  9748. esac
  9749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9750. $as_echo "$ac_try_echo") >&5
  9751. (eval "$ac_compile") 2>conftest.er1
  9752. ac_status=$?
  9753. grep -v '^ *+' conftest.er1 >conftest.err
  9754. rm -f conftest.er1
  9755. cat conftest.err >&5
  9756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9757. (exit $ac_status); } && {
  9758. test -z "$ac_cxx_werror_flag" ||
  9759. test ! -s conftest.err
  9760. } && test -s conftest.$ac_objext; then
  9761. ac_cv_c_bigendian=yes
  9762. else
  9763. $as_echo "$as_me: failed program was:" >&5
  9764. sed 's/^/| /' conftest.$ac_ext >&5
  9765. ac_cv_c_bigendian=no
  9766. fi
  9767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9768. else
  9769. $as_echo "$as_me: failed program was:" >&5
  9770. sed 's/^/| /' conftest.$ac_ext >&5
  9771. fi
  9772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9773. fi
  9774. if test $ac_cv_c_bigendian = unknown; then
  9775. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9776. cat >conftest.$ac_ext <<_ACEOF
  9777. /* confdefs.h. */
  9778. _ACEOF
  9779. cat confdefs.h >>conftest.$ac_ext
  9780. cat >>conftest.$ac_ext <<_ACEOF
  9781. /* end confdefs.h. */
  9782. #include <limits.h>
  9783. int
  9784. main ()
  9785. {
  9786. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9787. bogus endian macros
  9788. #endif
  9789. ;
  9790. return 0;
  9791. }
  9792. _ACEOF
  9793. rm -f conftest.$ac_objext
  9794. if { (ac_try="$ac_compile"
  9795. case "(($ac_try" in
  9796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9797. *) ac_try_echo=$ac_try;;
  9798. esac
  9799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9800. $as_echo "$ac_try_echo") >&5
  9801. (eval "$ac_compile") 2>conftest.er1
  9802. ac_status=$?
  9803. grep -v '^ *+' conftest.er1 >conftest.err
  9804. rm -f conftest.er1
  9805. cat conftest.err >&5
  9806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9807. (exit $ac_status); } && {
  9808. test -z "$ac_cxx_werror_flag" ||
  9809. test ! -s conftest.err
  9810. } && test -s conftest.$ac_objext; then
  9811. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9812. cat >conftest.$ac_ext <<_ACEOF
  9813. /* confdefs.h. */
  9814. _ACEOF
  9815. cat confdefs.h >>conftest.$ac_ext
  9816. cat >>conftest.$ac_ext <<_ACEOF
  9817. /* end confdefs.h. */
  9818. #include <limits.h>
  9819. int
  9820. main ()
  9821. {
  9822. #ifndef _BIG_ENDIAN
  9823. not big endian
  9824. #endif
  9825. ;
  9826. return 0;
  9827. }
  9828. _ACEOF
  9829. rm -f conftest.$ac_objext
  9830. if { (ac_try="$ac_compile"
  9831. case "(($ac_try" in
  9832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9833. *) ac_try_echo=$ac_try;;
  9834. esac
  9835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9836. $as_echo "$ac_try_echo") >&5
  9837. (eval "$ac_compile") 2>conftest.er1
  9838. ac_status=$?
  9839. grep -v '^ *+' conftest.er1 >conftest.err
  9840. rm -f conftest.er1
  9841. cat conftest.err >&5
  9842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9843. (exit $ac_status); } && {
  9844. test -z "$ac_cxx_werror_flag" ||
  9845. test ! -s conftest.err
  9846. } && test -s conftest.$ac_objext; then
  9847. ac_cv_c_bigendian=yes
  9848. else
  9849. $as_echo "$as_me: failed program was:" >&5
  9850. sed 's/^/| /' conftest.$ac_ext >&5
  9851. ac_cv_c_bigendian=no
  9852. fi
  9853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9854. else
  9855. $as_echo "$as_me: failed program was:" >&5
  9856. sed 's/^/| /' conftest.$ac_ext >&5
  9857. fi
  9858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9859. fi
  9860. if test $ac_cv_c_bigendian = unknown; then
  9861. # Compile a test program.
  9862. if test "$cross_compiling" = yes; then
  9863. # Try to guess by grepping values from an object file.
  9864. cat >conftest.$ac_ext <<_ACEOF
  9865. /* confdefs.h. */
  9866. _ACEOF
  9867. cat confdefs.h >>conftest.$ac_ext
  9868. cat >>conftest.$ac_ext <<_ACEOF
  9869. /* end confdefs.h. */
  9870. short int ascii_mm[] =
  9871. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9872. short int ascii_ii[] =
  9873. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9874. int use_ascii (int i) {
  9875. return ascii_mm[i] + ascii_ii[i];
  9876. }
  9877. short int ebcdic_ii[] =
  9878. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9879. short int ebcdic_mm[] =
  9880. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9881. int use_ebcdic (int i) {
  9882. return ebcdic_mm[i] + ebcdic_ii[i];
  9883. }
  9884. extern int foo;
  9885. int
  9886. main ()
  9887. {
  9888. return use_ascii (foo) == use_ebcdic (foo);
  9889. ;
  9890. return 0;
  9891. }
  9892. _ACEOF
  9893. rm -f conftest.$ac_objext
  9894. if { (ac_try="$ac_compile"
  9895. case "(($ac_try" in
  9896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9897. *) ac_try_echo=$ac_try;;
  9898. esac
  9899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9900. $as_echo "$ac_try_echo") >&5
  9901. (eval "$ac_compile") 2>conftest.er1
  9902. ac_status=$?
  9903. grep -v '^ *+' conftest.er1 >conftest.err
  9904. rm -f conftest.er1
  9905. cat conftest.err >&5
  9906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9907. (exit $ac_status); } && {
  9908. test -z "$ac_cxx_werror_flag" ||
  9909. test ! -s conftest.err
  9910. } && test -s conftest.$ac_objext; then
  9911. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9912. ac_cv_c_bigendian=yes
  9913. fi
  9914. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9915. if test "$ac_cv_c_bigendian" = unknown; then
  9916. ac_cv_c_bigendian=no
  9917. else
  9918. # finding both strings is unlikely to happen, but who knows?
  9919. ac_cv_c_bigendian=unknown
  9920. fi
  9921. fi
  9922. else
  9923. $as_echo "$as_me: failed program was:" >&5
  9924. sed 's/^/| /' conftest.$ac_ext >&5
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9927. else
  9928. cat >conftest.$ac_ext <<_ACEOF
  9929. /* confdefs.h. */
  9930. _ACEOF
  9931. cat confdefs.h >>conftest.$ac_ext
  9932. cat >>conftest.$ac_ext <<_ACEOF
  9933. /* end confdefs.h. */
  9934. $ac_includes_default
  9935. int
  9936. main ()
  9937. {
  9938. /* Are we little or big endian? From Harbison&Steele. */
  9939. union
  9940. {
  9941. long int l;
  9942. char c[sizeof (long int)];
  9943. } u;
  9944. u.l = 1;
  9945. return u.c[sizeof (long int) - 1] == 1;
  9946. ;
  9947. return 0;
  9948. }
  9949. _ACEOF
  9950. rm -f conftest$ac_exeext
  9951. if { (ac_try="$ac_link"
  9952. case "(($ac_try" in
  9953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9954. *) ac_try_echo=$ac_try;;
  9955. esac
  9956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9957. $as_echo "$ac_try_echo") >&5
  9958. (eval "$ac_link") 2>&5
  9959. ac_status=$?
  9960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9962. { (case "(($ac_try" in
  9963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9964. *) ac_try_echo=$ac_try;;
  9965. esac
  9966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9967. $as_echo "$ac_try_echo") >&5
  9968. (eval "$ac_try") 2>&5
  9969. ac_status=$?
  9970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9971. (exit $ac_status); }; }; then
  9972. ac_cv_c_bigendian=no
  9973. else
  9974. $as_echo "$as_me: program exited with status $ac_status" >&5
  9975. $as_echo "$as_me: failed program was:" >&5
  9976. sed 's/^/| /' conftest.$ac_ext >&5
  9977. ( exit $ac_status )
  9978. ac_cv_c_bigendian=yes
  9979. fi
  9980. rm -rf conftest.dSYM
  9981. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9982. fi
  9983. fi
  9984. fi
  9985. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9986. $as_echo "$ac_cv_c_bigendian" >&6; }
  9987. case $ac_cv_c_bigendian in #(
  9988. yes)
  9989. cat >>confdefs.h <<\_ACEOF
  9990. #define WORDS_BIGENDIAN 1
  9991. _ACEOF
  9992. ;; #(
  9993. no)
  9994. ;; #(
  9995. universal)
  9996. cat >>confdefs.h <<\_ACEOF
  9997. #define AC_APPLE_UNIVERSAL_BUILD 1
  9998. _ACEOF
  9999. ;; #(
  10000. *)
  10001. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  10002. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  10003. $as_echo "$as_me: error: unknown endianness
  10004. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  10005. { (exit 1); exit 1; }; } ;;
  10006. esac
  10007. # Check whether --enable-largefile was given.
  10008. if test "${enable_largefile+set}" = set; then
  10009. enableval=$enable_largefile;
  10010. fi
  10011. if test "$enable_largefile" != no; then
  10012. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10013. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10014. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. ac_cv_sys_largefile_CC=no
  10018. if test "$GCC" != yes; then
  10019. ac_save_CC=$CC
  10020. while :; do
  10021. # IRIX 6.2 and later do not support large files by default,
  10022. # so use the C compiler's -n32 option if that helps.
  10023. cat >conftest.$ac_ext <<_ACEOF
  10024. /* confdefs.h. */
  10025. _ACEOF
  10026. cat confdefs.h >>conftest.$ac_ext
  10027. cat >>conftest.$ac_ext <<_ACEOF
  10028. /* end confdefs.h. */
  10029. #include <sys/types.h>
  10030. /* Check that off_t can represent 2**63 - 1 correctly.
  10031. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10032. since some C++ compilers masquerading as C compilers
  10033. incorrectly reject 9223372036854775807. */
  10034. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10035. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10036. && LARGE_OFF_T % 2147483647 == 1)
  10037. ? 1 : -1];
  10038. int
  10039. main ()
  10040. {
  10041. ;
  10042. return 0;
  10043. }
  10044. _ACEOF
  10045. rm -f conftest.$ac_objext
  10046. if { (ac_try="$ac_compile"
  10047. case "(($ac_try" in
  10048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10049. *) ac_try_echo=$ac_try;;
  10050. esac
  10051. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10052. $as_echo "$ac_try_echo") >&5
  10053. (eval "$ac_compile") 2>conftest.er1
  10054. ac_status=$?
  10055. grep -v '^ *+' conftest.er1 >conftest.err
  10056. rm -f conftest.er1
  10057. cat conftest.err >&5
  10058. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10059. (exit $ac_status); } && {
  10060. test -z "$ac_cxx_werror_flag" ||
  10061. test ! -s conftest.err
  10062. } && test -s conftest.$ac_objext; then
  10063. break
  10064. else
  10065. $as_echo "$as_me: failed program was:" >&5
  10066. sed 's/^/| /' conftest.$ac_ext >&5
  10067. fi
  10068. rm -f core conftest.err conftest.$ac_objext
  10069. CC="$CC -n32"
  10070. rm -f conftest.$ac_objext
  10071. if { (ac_try="$ac_compile"
  10072. case "(($ac_try" in
  10073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10074. *) ac_try_echo=$ac_try;;
  10075. esac
  10076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10077. $as_echo "$ac_try_echo") >&5
  10078. (eval "$ac_compile") 2>conftest.er1
  10079. ac_status=$?
  10080. grep -v '^ *+' conftest.er1 >conftest.err
  10081. rm -f conftest.er1
  10082. cat conftest.err >&5
  10083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10084. (exit $ac_status); } && {
  10085. test -z "$ac_cxx_werror_flag" ||
  10086. test ! -s conftest.err
  10087. } && test -s conftest.$ac_objext; then
  10088. ac_cv_sys_largefile_CC=' -n32'; break
  10089. else
  10090. $as_echo "$as_me: failed program was:" >&5
  10091. sed 's/^/| /' conftest.$ac_ext >&5
  10092. fi
  10093. rm -f core conftest.err conftest.$ac_objext
  10094. break
  10095. done
  10096. CC=$ac_save_CC
  10097. rm -f conftest.$ac_ext
  10098. fi
  10099. fi
  10100. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10101. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10102. if test "$ac_cv_sys_largefile_CC" != no; then
  10103. CC=$CC$ac_cv_sys_largefile_CC
  10104. fi
  10105. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10106. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10107. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. while :; do
  10111. cat >conftest.$ac_ext <<_ACEOF
  10112. /* confdefs.h. */
  10113. _ACEOF
  10114. cat confdefs.h >>conftest.$ac_ext
  10115. cat >>conftest.$ac_ext <<_ACEOF
  10116. /* end confdefs.h. */
  10117. #include <sys/types.h>
  10118. /* Check that off_t can represent 2**63 - 1 correctly.
  10119. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10120. since some C++ compilers masquerading as C compilers
  10121. incorrectly reject 9223372036854775807. */
  10122. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10123. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10124. && LARGE_OFF_T % 2147483647 == 1)
  10125. ? 1 : -1];
  10126. int
  10127. main ()
  10128. {
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. rm -f conftest.$ac_objext
  10134. if { (ac_try="$ac_compile"
  10135. case "(($ac_try" in
  10136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10137. *) ac_try_echo=$ac_try;;
  10138. esac
  10139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10140. $as_echo "$ac_try_echo") >&5
  10141. (eval "$ac_compile") 2>conftest.er1
  10142. ac_status=$?
  10143. grep -v '^ *+' conftest.er1 >conftest.err
  10144. rm -f conftest.er1
  10145. cat conftest.err >&5
  10146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10147. (exit $ac_status); } && {
  10148. test -z "$ac_cxx_werror_flag" ||
  10149. test ! -s conftest.err
  10150. } && test -s conftest.$ac_objext; then
  10151. ac_cv_sys_file_offset_bits=no; break
  10152. else
  10153. $as_echo "$as_me: failed program was:" >&5
  10154. sed 's/^/| /' conftest.$ac_ext >&5
  10155. fi
  10156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10157. cat >conftest.$ac_ext <<_ACEOF
  10158. /* confdefs.h. */
  10159. _ACEOF
  10160. cat confdefs.h >>conftest.$ac_ext
  10161. cat >>conftest.$ac_ext <<_ACEOF
  10162. /* end confdefs.h. */
  10163. #define _FILE_OFFSET_BITS 64
  10164. #include <sys/types.h>
  10165. /* Check that off_t can represent 2**63 - 1 correctly.
  10166. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10167. since some C++ compilers masquerading as C compilers
  10168. incorrectly reject 9223372036854775807. */
  10169. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10170. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10171. && LARGE_OFF_T % 2147483647 == 1)
  10172. ? 1 : -1];
  10173. int
  10174. main ()
  10175. {
  10176. ;
  10177. return 0;
  10178. }
  10179. _ACEOF
  10180. rm -f conftest.$ac_objext
  10181. if { (ac_try="$ac_compile"
  10182. case "(($ac_try" in
  10183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10184. *) ac_try_echo=$ac_try;;
  10185. esac
  10186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10187. $as_echo "$ac_try_echo") >&5
  10188. (eval "$ac_compile") 2>conftest.er1
  10189. ac_status=$?
  10190. grep -v '^ *+' conftest.er1 >conftest.err
  10191. rm -f conftest.er1
  10192. cat conftest.err >&5
  10193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10194. (exit $ac_status); } && {
  10195. test -z "$ac_cxx_werror_flag" ||
  10196. test ! -s conftest.err
  10197. } && test -s conftest.$ac_objext; then
  10198. ac_cv_sys_file_offset_bits=64; break
  10199. else
  10200. $as_echo "$as_me: failed program was:" >&5
  10201. sed 's/^/| /' conftest.$ac_ext >&5
  10202. fi
  10203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10204. ac_cv_sys_file_offset_bits=unknown
  10205. break
  10206. done
  10207. fi
  10208. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10209. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10210. case $ac_cv_sys_file_offset_bits in #(
  10211. no | unknown) ;;
  10212. *)
  10213. cat >>confdefs.h <<_ACEOF
  10214. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10215. _ACEOF
  10216. ;;
  10217. esac
  10218. rm -rf conftest*
  10219. if test $ac_cv_sys_file_offset_bits = unknown; then
  10220. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10221. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10222. if test "${ac_cv_sys_large_files+set}" = set; then
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. while :; do
  10226. cat >conftest.$ac_ext <<_ACEOF
  10227. /* confdefs.h. */
  10228. _ACEOF
  10229. cat confdefs.h >>conftest.$ac_ext
  10230. cat >>conftest.$ac_ext <<_ACEOF
  10231. /* end confdefs.h. */
  10232. #include <sys/types.h>
  10233. /* Check that off_t can represent 2**63 - 1 correctly.
  10234. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10235. since some C++ compilers masquerading as C compilers
  10236. incorrectly reject 9223372036854775807. */
  10237. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10238. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10239. && LARGE_OFF_T % 2147483647 == 1)
  10240. ? 1 : -1];
  10241. int
  10242. main ()
  10243. {
  10244. ;
  10245. return 0;
  10246. }
  10247. _ACEOF
  10248. rm -f conftest.$ac_objext
  10249. if { (ac_try="$ac_compile"
  10250. case "(($ac_try" in
  10251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10252. *) ac_try_echo=$ac_try;;
  10253. esac
  10254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10255. $as_echo "$ac_try_echo") >&5
  10256. (eval "$ac_compile") 2>conftest.er1
  10257. ac_status=$?
  10258. grep -v '^ *+' conftest.er1 >conftest.err
  10259. rm -f conftest.er1
  10260. cat conftest.err >&5
  10261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10262. (exit $ac_status); } && {
  10263. test -z "$ac_cxx_werror_flag" ||
  10264. test ! -s conftest.err
  10265. } && test -s conftest.$ac_objext; then
  10266. ac_cv_sys_large_files=no; break
  10267. else
  10268. $as_echo "$as_me: failed program was:" >&5
  10269. sed 's/^/| /' conftest.$ac_ext >&5
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10272. cat >conftest.$ac_ext <<_ACEOF
  10273. /* confdefs.h. */
  10274. _ACEOF
  10275. cat confdefs.h >>conftest.$ac_ext
  10276. cat >>conftest.$ac_ext <<_ACEOF
  10277. /* end confdefs.h. */
  10278. #define _LARGE_FILES 1
  10279. #include <sys/types.h>
  10280. /* Check that off_t can represent 2**63 - 1 correctly.
  10281. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10282. since some C++ compilers masquerading as C compilers
  10283. incorrectly reject 9223372036854775807. */
  10284. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10285. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10286. && LARGE_OFF_T % 2147483647 == 1)
  10287. ? 1 : -1];
  10288. int
  10289. main ()
  10290. {
  10291. ;
  10292. return 0;
  10293. }
  10294. _ACEOF
  10295. rm -f conftest.$ac_objext
  10296. if { (ac_try="$ac_compile"
  10297. case "(($ac_try" in
  10298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10299. *) ac_try_echo=$ac_try;;
  10300. esac
  10301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10302. $as_echo "$ac_try_echo") >&5
  10303. (eval "$ac_compile") 2>conftest.er1
  10304. ac_status=$?
  10305. grep -v '^ *+' conftest.er1 >conftest.err
  10306. rm -f conftest.er1
  10307. cat conftest.err >&5
  10308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); } && {
  10310. test -z "$ac_cxx_werror_flag" ||
  10311. test ! -s conftest.err
  10312. } && test -s conftest.$ac_objext; then
  10313. ac_cv_sys_large_files=1; break
  10314. else
  10315. $as_echo "$as_me: failed program was:" >&5
  10316. sed 's/^/| /' conftest.$ac_ext >&5
  10317. fi
  10318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10319. ac_cv_sys_large_files=unknown
  10320. break
  10321. done
  10322. fi
  10323. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10324. $as_echo "$ac_cv_sys_large_files" >&6; }
  10325. case $ac_cv_sys_large_files in #(
  10326. no | unknown) ;;
  10327. *)
  10328. cat >>confdefs.h <<_ACEOF
  10329. #define _LARGE_FILES $ac_cv_sys_large_files
  10330. _ACEOF
  10331. ;;
  10332. esac
  10333. rm -rf conftest*
  10334. fi
  10335. fi
  10336. # Checks for library functions.
  10337. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10338. $as_echo_n "checking whether NLS is requested... " >&6; }
  10339. # Check whether --enable-nls was given.
  10340. if test "${enable_nls+set}" = set; then
  10341. enableval=$enable_nls; USE_NLS=$enableval
  10342. else
  10343. USE_NLS=yes
  10344. fi
  10345. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10346. $as_echo "$USE_NLS" >&6; }
  10347. GETTEXT_MACRO_VERSION=0.17
  10348. # Prepare PATH_SEPARATOR.
  10349. # The user is always right.
  10350. if test "${PATH_SEPARATOR+set}" != set; then
  10351. echo "#! /bin/sh" >conf$$.sh
  10352. echo "exit 0" >>conf$$.sh
  10353. chmod +x conf$$.sh
  10354. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10355. PATH_SEPARATOR=';'
  10356. else
  10357. PATH_SEPARATOR=:
  10358. fi
  10359. rm -f conf$$.sh
  10360. fi
  10361. # Find out how to test for executable files. Don't use a zero-byte file,
  10362. # as systems may use methods other than mode bits to determine executability.
  10363. cat >conf$$.file <<_ASEOF
  10364. #! /bin/sh
  10365. exit 0
  10366. _ASEOF
  10367. chmod +x conf$$.file
  10368. if test -x conf$$.file >/dev/null 2>&1; then
  10369. ac_executable_p="test -x"
  10370. else
  10371. ac_executable_p="test -f"
  10372. fi
  10373. rm -f conf$$.file
  10374. # Extract the first word of "msgfmt", so it can be a program name with args.
  10375. set dummy msgfmt; ac_word=$2
  10376. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10377. $as_echo_n "checking for $ac_word... " >&6; }
  10378. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. case "$MSGFMT" in
  10382. [\\/]* | ?:[\\/]*)
  10383. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10384. ;;
  10385. *)
  10386. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10387. for ac_dir in $PATH; do
  10388. IFS="$ac_save_IFS"
  10389. test -z "$ac_dir" && ac_dir=.
  10390. for ac_exec_ext in '' $ac_executable_extensions; do
  10391. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10392. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10393. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10394. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10395. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10396. break 2
  10397. fi
  10398. fi
  10399. done
  10400. done
  10401. IFS="$ac_save_IFS"
  10402. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10403. ;;
  10404. esac
  10405. fi
  10406. MSGFMT="$ac_cv_path_MSGFMT"
  10407. if test "$MSGFMT" != ":"; then
  10408. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10409. $as_echo "$MSGFMT" >&6; }
  10410. else
  10411. { $as_echo "$as_me:$LINENO: result: no" >&5
  10412. $as_echo "no" >&6; }
  10413. fi
  10414. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10415. set dummy gmsgfmt; ac_word=$2
  10416. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10417. $as_echo_n "checking for $ac_word... " >&6; }
  10418. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. case $GMSGFMT in
  10422. [\\/]* | ?:[\\/]*)
  10423. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10424. ;;
  10425. *)
  10426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10427. for as_dir in $PATH
  10428. do
  10429. IFS=$as_save_IFS
  10430. test -z "$as_dir" && as_dir=.
  10431. for ac_exec_ext in '' $ac_executable_extensions; do
  10432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10433. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10434. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10435. break 2
  10436. fi
  10437. done
  10438. done
  10439. IFS=$as_save_IFS
  10440. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10441. ;;
  10442. esac
  10443. fi
  10444. GMSGFMT=$ac_cv_path_GMSGFMT
  10445. if test -n "$GMSGFMT"; then
  10446. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10447. $as_echo "$GMSGFMT" >&6; }
  10448. else
  10449. { $as_echo "$as_me:$LINENO: result: no" >&5
  10450. $as_echo "no" >&6; }
  10451. fi
  10452. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10453. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10454. *) MSGFMT_015=$MSGFMT ;;
  10455. esac
  10456. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10457. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10458. *) GMSGFMT_015=$GMSGFMT ;;
  10459. esac
  10460. # Prepare PATH_SEPARATOR.
  10461. # The user is always right.
  10462. if test "${PATH_SEPARATOR+set}" != set; then
  10463. echo "#! /bin/sh" >conf$$.sh
  10464. echo "exit 0" >>conf$$.sh
  10465. chmod +x conf$$.sh
  10466. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10467. PATH_SEPARATOR=';'
  10468. else
  10469. PATH_SEPARATOR=:
  10470. fi
  10471. rm -f conf$$.sh
  10472. fi
  10473. # Find out how to test for executable files. Don't use a zero-byte file,
  10474. # as systems may use methods other than mode bits to determine executability.
  10475. cat >conf$$.file <<_ASEOF
  10476. #! /bin/sh
  10477. exit 0
  10478. _ASEOF
  10479. chmod +x conf$$.file
  10480. if test -x conf$$.file >/dev/null 2>&1; then
  10481. ac_executable_p="test -x"
  10482. else
  10483. ac_executable_p="test -f"
  10484. fi
  10485. rm -f conf$$.file
  10486. # Extract the first word of "xgettext", so it can be a program name with args.
  10487. set dummy xgettext; ac_word=$2
  10488. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10489. $as_echo_n "checking for $ac_word... " >&6; }
  10490. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10491. $as_echo_n "(cached) " >&6
  10492. else
  10493. case "$XGETTEXT" in
  10494. [\\/]* | ?:[\\/]*)
  10495. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10496. ;;
  10497. *)
  10498. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10499. for ac_dir in $PATH; do
  10500. IFS="$ac_save_IFS"
  10501. test -z "$ac_dir" && ac_dir=.
  10502. for ac_exec_ext in '' $ac_executable_extensions; do
  10503. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10504. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10505. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10506. (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
  10507. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10508. break 2
  10509. fi
  10510. fi
  10511. done
  10512. done
  10513. IFS="$ac_save_IFS"
  10514. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10515. ;;
  10516. esac
  10517. fi
  10518. XGETTEXT="$ac_cv_path_XGETTEXT"
  10519. if test "$XGETTEXT" != ":"; then
  10520. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10521. $as_echo "$XGETTEXT" >&6; }
  10522. else
  10523. { $as_echo "$as_me:$LINENO: result: no" >&5
  10524. $as_echo "no" >&6; }
  10525. fi
  10526. rm -f messages.po
  10527. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10528. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10529. *) XGETTEXT_015=$XGETTEXT ;;
  10530. esac
  10531. # Prepare PATH_SEPARATOR.
  10532. # The user is always right.
  10533. if test "${PATH_SEPARATOR+set}" != set; then
  10534. echo "#! /bin/sh" >conf$$.sh
  10535. echo "exit 0" >>conf$$.sh
  10536. chmod +x conf$$.sh
  10537. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10538. PATH_SEPARATOR=';'
  10539. else
  10540. PATH_SEPARATOR=:
  10541. fi
  10542. rm -f conf$$.sh
  10543. fi
  10544. # Find out how to test for executable files. Don't use a zero-byte file,
  10545. # as systems may use methods other than mode bits to determine executability.
  10546. cat >conf$$.file <<_ASEOF
  10547. #! /bin/sh
  10548. exit 0
  10549. _ASEOF
  10550. chmod +x conf$$.file
  10551. if test -x conf$$.file >/dev/null 2>&1; then
  10552. ac_executable_p="test -x"
  10553. else
  10554. ac_executable_p="test -f"
  10555. fi
  10556. rm -f conf$$.file
  10557. # Extract the first word of "msgmerge", so it can be a program name with args.
  10558. set dummy msgmerge; ac_word=$2
  10559. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10560. $as_echo_n "checking for $ac_word... " >&6; }
  10561. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10562. $as_echo_n "(cached) " >&6
  10563. else
  10564. case "$MSGMERGE" in
  10565. [\\/]* | ?:[\\/]*)
  10566. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10567. ;;
  10568. *)
  10569. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10570. for ac_dir in $PATH; do
  10571. IFS="$ac_save_IFS"
  10572. test -z "$ac_dir" && ac_dir=.
  10573. for ac_exec_ext in '' $ac_executable_extensions; do
  10574. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10575. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10576. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10577. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10578. break 2
  10579. fi
  10580. fi
  10581. done
  10582. done
  10583. IFS="$ac_save_IFS"
  10584. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10585. ;;
  10586. esac
  10587. fi
  10588. MSGMERGE="$ac_cv_path_MSGMERGE"
  10589. if test "$MSGMERGE" != ":"; then
  10590. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10591. $as_echo "$MSGMERGE" >&6; }
  10592. else
  10593. { $as_echo "$as_me:$LINENO: result: no" >&5
  10594. $as_echo "no" >&6; }
  10595. fi
  10596. test -n "$localedir" || localedir='${datadir}/locale'
  10597. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10598. ac_config_commands="$ac_config_commands po-directories"
  10599. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10600. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10601. if test "${ac_cv_gnu_library_2+set}" = set; then
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. cat >conftest.$ac_ext <<_ACEOF
  10605. /* confdefs.h. */
  10606. _ACEOF
  10607. cat confdefs.h >>conftest.$ac_ext
  10608. cat >>conftest.$ac_ext <<_ACEOF
  10609. /* end confdefs.h. */
  10610. #include <features.h>
  10611. #ifdef __GNU_LIBRARY__
  10612. #if (__GLIBC__ >= 2)
  10613. Lucky GNU user
  10614. #endif
  10615. #endif
  10616. _ACEOF
  10617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10618. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10619. ac_cv_gnu_library_2=yes
  10620. else
  10621. ac_cv_gnu_library_2=no
  10622. fi
  10623. rm -f conftest*
  10624. fi
  10625. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10626. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10627. GLIBC2="$ac_cv_gnu_library_2"
  10628. CFLAG_VISIBILITY=
  10629. HAVE_VISIBILITY=0
  10630. if test -n "$GCC"; then
  10631. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10632. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10633. if test "${gl_cv_cc_visibility+set}" = set; then
  10634. $as_echo_n "(cached) " >&6
  10635. else
  10636. gl_save_CFLAGS="$CFLAGS"
  10637. CFLAGS="$CFLAGS -fvisibility=hidden"
  10638. cat >conftest.$ac_ext <<_ACEOF
  10639. /* confdefs.h. */
  10640. _ACEOF
  10641. cat confdefs.h >>conftest.$ac_ext
  10642. cat >>conftest.$ac_ext <<_ACEOF
  10643. /* end confdefs.h. */
  10644. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10645. extern __attribute__((__visibility__("default"))) int exportedvar;
  10646. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10647. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10648. int
  10649. main ()
  10650. {
  10651. ;
  10652. return 0;
  10653. }
  10654. _ACEOF
  10655. rm -f conftest.$ac_objext
  10656. if { (ac_try="$ac_compile"
  10657. case "(($ac_try" in
  10658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10659. *) ac_try_echo=$ac_try;;
  10660. esac
  10661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10662. $as_echo "$ac_try_echo") >&5
  10663. (eval "$ac_compile") 2>conftest.er1
  10664. ac_status=$?
  10665. grep -v '^ *+' conftest.er1 >conftest.err
  10666. rm -f conftest.er1
  10667. cat conftest.err >&5
  10668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10669. (exit $ac_status); } && {
  10670. test -z "$ac_cxx_werror_flag" ||
  10671. test ! -s conftest.err
  10672. } && test -s conftest.$ac_objext; then
  10673. gl_cv_cc_visibility=yes
  10674. else
  10675. $as_echo "$as_me: failed program was:" >&5
  10676. sed 's/^/| /' conftest.$ac_ext >&5
  10677. gl_cv_cc_visibility=no
  10678. fi
  10679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10680. CFLAGS="$gl_save_CFLAGS"
  10681. fi
  10682. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10683. $as_echo "$gl_cv_cc_visibility" >&6; }
  10684. if test $gl_cv_cc_visibility = yes; then
  10685. CFLAG_VISIBILITY="-fvisibility=hidden"
  10686. HAVE_VISIBILITY=1
  10687. fi
  10688. fi
  10689. cat >>confdefs.h <<_ACEOF
  10690. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10691. _ACEOF
  10692. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10693. $as_echo_n "checking for stdint.h... " >&6; }
  10694. if test "${gl_cv_header_stdint_h+set}" = set; then
  10695. $as_echo_n "(cached) " >&6
  10696. else
  10697. cat >conftest.$ac_ext <<_ACEOF
  10698. /* confdefs.h. */
  10699. _ACEOF
  10700. cat confdefs.h >>conftest.$ac_ext
  10701. cat >>conftest.$ac_ext <<_ACEOF
  10702. /* end confdefs.h. */
  10703. #include <sys/types.h>
  10704. #include <stdint.h>
  10705. int
  10706. main ()
  10707. {
  10708. uintmax_t i = (uintmax_t) -1; return !i;
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. rm -f conftest.$ac_objext
  10714. if { (ac_try="$ac_compile"
  10715. case "(($ac_try" in
  10716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10717. *) ac_try_echo=$ac_try;;
  10718. esac
  10719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10720. $as_echo "$ac_try_echo") >&5
  10721. (eval "$ac_compile") 2>conftest.er1
  10722. ac_status=$?
  10723. grep -v '^ *+' conftest.er1 >conftest.err
  10724. rm -f conftest.er1
  10725. cat conftest.err >&5
  10726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10727. (exit $ac_status); } && {
  10728. test -z "$ac_cxx_werror_flag" ||
  10729. test ! -s conftest.err
  10730. } && test -s conftest.$ac_objext; then
  10731. gl_cv_header_stdint_h=yes
  10732. else
  10733. $as_echo "$as_me: failed program was:" >&5
  10734. sed 's/^/| /' conftest.$ac_ext >&5
  10735. gl_cv_header_stdint_h=no
  10736. fi
  10737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10738. fi
  10739. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10740. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10741. if test $gl_cv_header_stdint_h = yes; then
  10742. cat >>confdefs.h <<_ACEOF
  10743. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10744. _ACEOF
  10745. fi
  10746. for ac_header in stdlib.h unistd.h
  10747. do
  10748. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10749. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10750. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10751. $as_echo_n "checking for $ac_header... " >&6; }
  10752. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10753. $as_echo_n "(cached) " >&6
  10754. fi
  10755. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10756. $as_echo "$as_val"'`
  10757. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10758. $as_echo "$ac_res" >&6; }
  10759. else
  10760. # Is the header compilable?
  10761. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10762. $as_echo_n "checking $ac_header usability... " >&6; }
  10763. cat >conftest.$ac_ext <<_ACEOF
  10764. /* confdefs.h. */
  10765. _ACEOF
  10766. cat confdefs.h >>conftest.$ac_ext
  10767. cat >>conftest.$ac_ext <<_ACEOF
  10768. /* end confdefs.h. */
  10769. $ac_includes_default
  10770. #include <$ac_header>
  10771. _ACEOF
  10772. rm -f conftest.$ac_objext
  10773. if { (ac_try="$ac_compile"
  10774. case "(($ac_try" in
  10775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10776. *) ac_try_echo=$ac_try;;
  10777. esac
  10778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10779. $as_echo "$ac_try_echo") >&5
  10780. (eval "$ac_compile") 2>conftest.er1
  10781. ac_status=$?
  10782. grep -v '^ *+' conftest.er1 >conftest.err
  10783. rm -f conftest.er1
  10784. cat conftest.err >&5
  10785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10786. (exit $ac_status); } && {
  10787. test -z "$ac_cxx_werror_flag" ||
  10788. test ! -s conftest.err
  10789. } && test -s conftest.$ac_objext; then
  10790. ac_header_compiler=yes
  10791. else
  10792. $as_echo "$as_me: failed program was:" >&5
  10793. sed 's/^/| /' conftest.$ac_ext >&5
  10794. ac_header_compiler=no
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10797. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10798. $as_echo "$ac_header_compiler" >&6; }
  10799. # Is the header present?
  10800. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10801. $as_echo_n "checking $ac_header presence... " >&6; }
  10802. cat >conftest.$ac_ext <<_ACEOF
  10803. /* confdefs.h. */
  10804. _ACEOF
  10805. cat confdefs.h >>conftest.$ac_ext
  10806. cat >>conftest.$ac_ext <<_ACEOF
  10807. /* end confdefs.h. */
  10808. #include <$ac_header>
  10809. _ACEOF
  10810. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10811. case "(($ac_try" in
  10812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10813. *) ac_try_echo=$ac_try;;
  10814. esac
  10815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10816. $as_echo "$ac_try_echo") >&5
  10817. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10818. ac_status=$?
  10819. grep -v '^ *+' conftest.er1 >conftest.err
  10820. rm -f conftest.er1
  10821. cat conftest.err >&5
  10822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10823. (exit $ac_status); } >/dev/null && {
  10824. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10825. test ! -s conftest.err
  10826. }; then
  10827. ac_header_preproc=yes
  10828. else
  10829. $as_echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. ac_header_preproc=no
  10832. fi
  10833. rm -f conftest.err conftest.$ac_ext
  10834. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10835. $as_echo "$ac_header_preproc" >&6; }
  10836. # So? What about this header?
  10837. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10838. yes:no: )
  10839. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10840. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10841. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10842. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10843. ac_header_preproc=yes
  10844. ;;
  10845. no:yes:* )
  10846. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10847. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10848. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10849. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10850. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10851. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10852. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10853. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10854. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10855. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10856. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10857. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10858. ( cat <<\_ASBOX
  10859. ## ----------------------------------------------- ##
  10860. ## Report this to t-tujikawa@users.sourceforge.net ##
  10861. ## ----------------------------------------------- ##
  10862. _ASBOX
  10863. ) | sed "s/^/$as_me: WARNING: /" >&2
  10864. ;;
  10865. esac
  10866. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10867. $as_echo_n "checking for $ac_header... " >&6; }
  10868. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10869. $as_echo_n "(cached) " >&6
  10870. else
  10871. eval "$as_ac_Header=\$ac_header_preproc"
  10872. fi
  10873. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10874. $as_echo "$as_val"'`
  10875. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10876. $as_echo "$ac_res" >&6; }
  10877. fi
  10878. as_val=`eval 'as_val=${'$as_ac_Header'}
  10879. $as_echo "$as_val"'`
  10880. if test "x$as_val" = x""yes; then
  10881. cat >>confdefs.h <<_ACEOF
  10882. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10883. _ACEOF
  10884. fi
  10885. done
  10886. for ac_func in getpagesize
  10887. do
  10888. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10889. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10890. $as_echo_n "checking for $ac_func... " >&6; }
  10891. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10892. $as_echo_n "(cached) " >&6
  10893. else
  10894. cat >conftest.$ac_ext <<_ACEOF
  10895. /* confdefs.h. */
  10896. _ACEOF
  10897. cat confdefs.h >>conftest.$ac_ext
  10898. cat >>conftest.$ac_ext <<_ACEOF
  10899. /* end confdefs.h. */
  10900. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10901. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10902. #define $ac_func innocuous_$ac_func
  10903. /* System header to define __stub macros and hopefully few prototypes,
  10904. which can conflict with char $ac_func (); below.
  10905. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10906. <limits.h> exists even on freestanding compilers. */
  10907. #ifdef __STDC__
  10908. # include <limits.h>
  10909. #else
  10910. # include <assert.h>
  10911. #endif
  10912. #undef $ac_func
  10913. /* Override any GCC internal prototype to avoid an error.
  10914. Use char because int might match the return type of a GCC
  10915. builtin and then its argument prototype would still apply. */
  10916. #ifdef __cplusplus
  10917. extern "C"
  10918. #endif
  10919. char $ac_func ();
  10920. /* The GNU C library defines this for functions which it implements
  10921. to always fail with ENOSYS. Some functions are actually named
  10922. something starting with __ and the normal name is an alias. */
  10923. #if defined __stub_$ac_func || defined __stub___$ac_func
  10924. choke me
  10925. #endif
  10926. int
  10927. main ()
  10928. {
  10929. return $ac_func ();
  10930. ;
  10931. return 0;
  10932. }
  10933. _ACEOF
  10934. rm -f conftest.$ac_objext conftest$ac_exeext
  10935. if { (ac_try="$ac_link"
  10936. case "(($ac_try" in
  10937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10938. *) ac_try_echo=$ac_try;;
  10939. esac
  10940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10941. $as_echo "$ac_try_echo") >&5
  10942. (eval "$ac_link") 2>conftest.er1
  10943. ac_status=$?
  10944. grep -v '^ *+' conftest.er1 >conftest.err
  10945. rm -f conftest.er1
  10946. cat conftest.err >&5
  10947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10948. (exit $ac_status); } && {
  10949. test -z "$ac_cxx_werror_flag" ||
  10950. test ! -s conftest.err
  10951. } && test -s conftest$ac_exeext && {
  10952. test "$cross_compiling" = yes ||
  10953. $as_test_x conftest$ac_exeext
  10954. }; then
  10955. eval "$as_ac_var=yes"
  10956. else
  10957. $as_echo "$as_me: failed program was:" >&5
  10958. sed 's/^/| /' conftest.$ac_ext >&5
  10959. eval "$as_ac_var=no"
  10960. fi
  10961. rm -rf conftest.dSYM
  10962. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10963. conftest$ac_exeext conftest.$ac_ext
  10964. fi
  10965. ac_res=`eval 'as_val=${'$as_ac_var'}
  10966. $as_echo "$as_val"'`
  10967. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10968. $as_echo "$ac_res" >&6; }
  10969. as_val=`eval 'as_val=${'$as_ac_var'}
  10970. $as_echo "$as_val"'`
  10971. if test "x$as_val" = x""yes; then
  10972. cat >>confdefs.h <<_ACEOF
  10973. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10974. _ACEOF
  10975. fi
  10976. done
  10977. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10978. $as_echo_n "checking for working mmap... " >&6; }
  10979. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. if test "$cross_compiling" = yes; then
  10983. ac_cv_func_mmap_fixed_mapped=no
  10984. else
  10985. cat >conftest.$ac_ext <<_ACEOF
  10986. /* confdefs.h. */
  10987. _ACEOF
  10988. cat confdefs.h >>conftest.$ac_ext
  10989. cat >>conftest.$ac_ext <<_ACEOF
  10990. /* end confdefs.h. */
  10991. $ac_includes_default
  10992. /* malloc might have been renamed as rpl_malloc. */
  10993. #undef malloc
  10994. /* Thanks to Mike Haertel and Jim Avera for this test.
  10995. Here is a matrix of mmap possibilities:
  10996. mmap private not fixed
  10997. mmap private fixed at somewhere currently unmapped
  10998. mmap private fixed at somewhere already mapped
  10999. mmap shared not fixed
  11000. mmap shared fixed at somewhere currently unmapped
  11001. mmap shared fixed at somewhere already mapped
  11002. For private mappings, we should verify that changes cannot be read()
  11003. back from the file, nor mmap's back from the file at a different
  11004. address. (There have been systems where private was not correctly
  11005. implemented like the infamous i386 svr4.0, and systems where the
  11006. VM page cache was not coherent with the file system buffer cache
  11007. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11008. For shared mappings, we should conversely verify that changes get
  11009. propagated back to all the places they're supposed to be.
  11010. Grep wants private fixed already mapped.
  11011. The main things grep needs to know about mmap are:
  11012. * does it exist and is it safe to write into the mmap'd area
  11013. * how to use it (BSD variants) */
  11014. #include <fcntl.h>
  11015. #include <sys/mman.h>
  11016. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11017. char *malloc ();
  11018. #endif
  11019. /* This mess was copied from the GNU getpagesize.h. */
  11020. #ifndef HAVE_GETPAGESIZE
  11021. /* Assume that all systems that can run configure have sys/param.h. */
  11022. # ifndef HAVE_SYS_PARAM_H
  11023. # define HAVE_SYS_PARAM_H 1
  11024. # endif
  11025. # ifdef _SC_PAGESIZE
  11026. # define getpagesize() sysconf(_SC_PAGESIZE)
  11027. # else /* no _SC_PAGESIZE */
  11028. # ifdef HAVE_SYS_PARAM_H
  11029. # include <sys/param.h>
  11030. # ifdef EXEC_PAGESIZE
  11031. # define getpagesize() EXEC_PAGESIZE
  11032. # else /* no EXEC_PAGESIZE */
  11033. # ifdef NBPG
  11034. # define getpagesize() NBPG * CLSIZE
  11035. # ifndef CLSIZE
  11036. # define CLSIZE 1
  11037. # endif /* no CLSIZE */
  11038. # else /* no NBPG */
  11039. # ifdef NBPC
  11040. # define getpagesize() NBPC
  11041. # else /* no NBPC */
  11042. # ifdef PAGESIZE
  11043. # define getpagesize() PAGESIZE
  11044. # endif /* PAGESIZE */
  11045. # endif /* no NBPC */
  11046. # endif /* no NBPG */
  11047. # endif /* no EXEC_PAGESIZE */
  11048. # else /* no HAVE_SYS_PARAM_H */
  11049. # define getpagesize() 8192 /* punt totally */
  11050. # endif /* no HAVE_SYS_PARAM_H */
  11051. # endif /* no _SC_PAGESIZE */
  11052. #endif /* no HAVE_GETPAGESIZE */
  11053. int
  11054. main ()
  11055. {
  11056. char *data, *data2, *data3;
  11057. int i, pagesize;
  11058. int fd;
  11059. pagesize = getpagesize ();
  11060. /* First, make a file with some known garbage in it. */
  11061. data = (char *) malloc (pagesize);
  11062. if (!data)
  11063. return 1;
  11064. for (i = 0; i < pagesize; ++i)
  11065. *(data + i) = rand ();
  11066. umask (0);
  11067. fd = creat ("conftest.mmap", 0600);
  11068. if (fd < 0)
  11069. return 1;
  11070. if (write (fd, data, pagesize) != pagesize)
  11071. return 1;
  11072. close (fd);
  11073. /* Next, try to mmap the file at a fixed address which already has
  11074. something else allocated at it. If we can, also make sure that
  11075. we see the same garbage. */
  11076. fd = open ("conftest.mmap", O_RDWR);
  11077. if (fd < 0)
  11078. return 1;
  11079. data2 = (char *) malloc (2 * pagesize);
  11080. if (!data2)
  11081. return 1;
  11082. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  11083. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11084. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11085. return 1;
  11086. for (i = 0; i < pagesize; ++i)
  11087. if (*(data + i) != *(data2 + i))
  11088. return 1;
  11089. /* Finally, make sure that changes to the mapped area do not
  11090. percolate back to the file as seen by read(). (This is a bug on
  11091. some variants of i386 svr4.0.) */
  11092. for (i = 0; i < pagesize; ++i)
  11093. *(data2 + i) = *(data2 + i) + 1;
  11094. data3 = (char *) malloc (pagesize);
  11095. if (!data3)
  11096. return 1;
  11097. if (read (fd, data3, pagesize) != pagesize)
  11098. return 1;
  11099. for (i = 0; i < pagesize; ++i)
  11100. if (*(data + i) != *(data3 + i))
  11101. return 1;
  11102. close (fd);
  11103. return 0;
  11104. }
  11105. _ACEOF
  11106. rm -f conftest$ac_exeext
  11107. if { (ac_try="$ac_link"
  11108. case "(($ac_try" in
  11109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11110. *) ac_try_echo=$ac_try;;
  11111. esac
  11112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11113. $as_echo "$ac_try_echo") >&5
  11114. (eval "$ac_link") 2>&5
  11115. ac_status=$?
  11116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11117. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11118. { (case "(($ac_try" in
  11119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11120. *) ac_try_echo=$ac_try;;
  11121. esac
  11122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11123. $as_echo "$ac_try_echo") >&5
  11124. (eval "$ac_try") 2>&5
  11125. ac_status=$?
  11126. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11127. (exit $ac_status); }; }; then
  11128. ac_cv_func_mmap_fixed_mapped=yes
  11129. else
  11130. $as_echo "$as_me: program exited with status $ac_status" >&5
  11131. $as_echo "$as_me: failed program was:" >&5
  11132. sed 's/^/| /' conftest.$ac_ext >&5
  11133. ( exit $ac_status )
  11134. ac_cv_func_mmap_fixed_mapped=no
  11135. fi
  11136. rm -rf conftest.dSYM
  11137. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11138. fi
  11139. fi
  11140. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11141. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11142. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11143. cat >>confdefs.h <<\_ACEOF
  11144. #define HAVE_MMAP 1
  11145. _ACEOF
  11146. fi
  11147. rm -f conftest.mmap
  11148. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  11149. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  11150. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. gt_cv_int_divbyzero_sigfpe=
  11154. case "$host_os" in
  11155. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  11156. # On MacOS X 10.2 or newer, just assume the same as when cross-
  11157. # compiling. If we were to perform the real test, 1 Crash Report
  11158. # dialog window would pop up.
  11159. case "$host_cpu" in
  11160. i[34567]86 | x86_64)
  11161. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  11162. esac
  11163. ;;
  11164. esac
  11165. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  11166. if test "$cross_compiling" = yes; then
  11167. # Guess based on the CPU.
  11168. case "$host_cpu" in
  11169. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  11170. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  11171. *)
  11172. gt_cv_int_divbyzero_sigfpe="guessing no";;
  11173. esac
  11174. else
  11175. cat >conftest.$ac_ext <<_ACEOF
  11176. /* confdefs.h. */
  11177. _ACEOF
  11178. cat confdefs.h >>conftest.$ac_ext
  11179. cat >>conftest.$ac_ext <<_ACEOF
  11180. /* end confdefs.h. */
  11181. #include <stdlib.h>
  11182. #include <signal.h>
  11183. static void
  11184. sigfpe_handler (int sig)
  11185. {
  11186. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  11187. exit (sig != SIGFPE);
  11188. }
  11189. int x = 1;
  11190. int y = 0;
  11191. int z;
  11192. int nan;
  11193. int main ()
  11194. {
  11195. signal (SIGFPE, sigfpe_handler);
  11196. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  11197. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  11198. signal (SIGTRAP, sigfpe_handler);
  11199. #endif
  11200. /* Linux/SPARC yields signal SIGILL. */
  11201. #if defined (__sparc__) && defined (__linux__)
  11202. signal (SIGILL, sigfpe_handler);
  11203. #endif
  11204. z = x / y;
  11205. nan = y / y;
  11206. exit (1);
  11207. }
  11208. _ACEOF
  11209. rm -f conftest$ac_exeext
  11210. if { (ac_try="$ac_link"
  11211. case "(($ac_try" in
  11212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11213. *) ac_try_echo=$ac_try;;
  11214. esac
  11215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11216. $as_echo "$ac_try_echo") >&5
  11217. (eval "$ac_link") 2>&5
  11218. ac_status=$?
  11219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11220. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11221. { (case "(($ac_try" in
  11222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11223. *) ac_try_echo=$ac_try;;
  11224. esac
  11225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11226. $as_echo "$ac_try_echo") >&5
  11227. (eval "$ac_try") 2>&5
  11228. ac_status=$?
  11229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11230. (exit $ac_status); }; }; then
  11231. gt_cv_int_divbyzero_sigfpe=yes
  11232. else
  11233. $as_echo "$as_me: program exited with status $ac_status" >&5
  11234. $as_echo "$as_me: failed program was:" >&5
  11235. sed 's/^/| /' conftest.$ac_ext >&5
  11236. ( exit $ac_status )
  11237. gt_cv_int_divbyzero_sigfpe=no
  11238. fi
  11239. rm -rf conftest.dSYM
  11240. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11241. fi
  11242. fi
  11243. fi
  11244. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  11245. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  11246. case "$gt_cv_int_divbyzero_sigfpe" in
  11247. *yes) value=1;;
  11248. *) value=0;;
  11249. esac
  11250. cat >>confdefs.h <<_ACEOF
  11251. #define INTDIV0_RAISES_SIGFPE $value
  11252. _ACEOF
  11253. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11254. $as_echo_n "checking for inttypes.h... " >&6; }
  11255. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11256. $as_echo_n "(cached) " >&6
  11257. else
  11258. cat >conftest.$ac_ext <<_ACEOF
  11259. /* confdefs.h. */
  11260. _ACEOF
  11261. cat confdefs.h >>conftest.$ac_ext
  11262. cat >>conftest.$ac_ext <<_ACEOF
  11263. /* end confdefs.h. */
  11264. #include <sys/types.h>
  11265. #include <inttypes.h>
  11266. int
  11267. main ()
  11268. {
  11269. uintmax_t i = (uintmax_t) -1; return !i;
  11270. ;
  11271. return 0;
  11272. }
  11273. _ACEOF
  11274. rm -f conftest.$ac_objext
  11275. if { (ac_try="$ac_compile"
  11276. case "(($ac_try" in
  11277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11278. *) ac_try_echo=$ac_try;;
  11279. esac
  11280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11281. $as_echo "$ac_try_echo") >&5
  11282. (eval "$ac_compile") 2>conftest.er1
  11283. ac_status=$?
  11284. grep -v '^ *+' conftest.er1 >conftest.err
  11285. rm -f conftest.er1
  11286. cat conftest.err >&5
  11287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11288. (exit $ac_status); } && {
  11289. test -z "$ac_cxx_werror_flag" ||
  11290. test ! -s conftest.err
  11291. } && test -s conftest.$ac_objext; then
  11292. gl_cv_header_inttypes_h=yes
  11293. else
  11294. $as_echo "$as_me: failed program was:" >&5
  11295. sed 's/^/| /' conftest.$ac_ext >&5
  11296. gl_cv_header_inttypes_h=no
  11297. fi
  11298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11299. fi
  11300. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11301. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11302. if test $gl_cv_header_inttypes_h = yes; then
  11303. cat >>confdefs.h <<_ACEOF
  11304. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11305. _ACEOF
  11306. fi
  11307. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11308. $as_echo_n "checking for unsigned long long int... " >&6; }
  11309. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11310. $as_echo_n "(cached) " >&6
  11311. else
  11312. cat >conftest.$ac_ext <<_ACEOF
  11313. /* confdefs.h. */
  11314. _ACEOF
  11315. cat confdefs.h >>conftest.$ac_ext
  11316. cat >>conftest.$ac_ext <<_ACEOF
  11317. /* end confdefs.h. */
  11318. /* Test preprocessor. */
  11319. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11320. error in preprocessor;
  11321. #endif
  11322. #if ! (18446744073709551615ULL <= -1ull)
  11323. error in preprocessor;
  11324. #endif
  11325. /* Test literals. */
  11326. long long int ll = 9223372036854775807ll;
  11327. long long int nll = -9223372036854775807LL;
  11328. unsigned long long int ull = 18446744073709551615ULL;
  11329. /* Test constant expressions. */
  11330. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11331. ? 1 : -1)];
  11332. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11333. ? 1 : -1)];
  11334. int i = 63;
  11335. int
  11336. main ()
  11337. {
  11338. /* Test availability of runtime routines for shift and division. */
  11339. long long int llmax = 9223372036854775807ll;
  11340. unsigned long long int ullmax = 18446744073709551615ull;
  11341. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11342. | (llmax / ll) | (llmax % ll)
  11343. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11344. | (ullmax / ull) | (ullmax % ull));
  11345. ;
  11346. return 0;
  11347. }
  11348. _ACEOF
  11349. rm -f conftest.$ac_objext conftest$ac_exeext
  11350. if { (ac_try="$ac_link"
  11351. case "(($ac_try" in
  11352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11353. *) ac_try_echo=$ac_try;;
  11354. esac
  11355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11356. $as_echo "$ac_try_echo") >&5
  11357. (eval "$ac_link") 2>conftest.er1
  11358. ac_status=$?
  11359. grep -v '^ *+' conftest.er1 >conftest.err
  11360. rm -f conftest.er1
  11361. cat conftest.err >&5
  11362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11363. (exit $ac_status); } && {
  11364. test -z "$ac_cxx_werror_flag" ||
  11365. test ! -s conftest.err
  11366. } && test -s conftest$ac_exeext && {
  11367. test "$cross_compiling" = yes ||
  11368. $as_test_x conftest$ac_exeext
  11369. }; then
  11370. ac_cv_type_unsigned_long_long_int=yes
  11371. else
  11372. $as_echo "$as_me: failed program was:" >&5
  11373. sed 's/^/| /' conftest.$ac_ext >&5
  11374. ac_cv_type_unsigned_long_long_int=no
  11375. fi
  11376. rm -rf conftest.dSYM
  11377. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11378. conftest$ac_exeext conftest.$ac_ext
  11379. fi
  11380. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11381. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11382. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11383. cat >>confdefs.h <<\_ACEOF
  11384. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11385. _ACEOF
  11386. fi
  11387. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11388. test $ac_cv_type_unsigned_long_long_int = yes \
  11389. && ac_type='unsigned long long' \
  11390. || ac_type='unsigned long'
  11391. cat >>confdefs.h <<_ACEOF
  11392. #define uintmax_t $ac_type
  11393. _ACEOF
  11394. else
  11395. cat >>confdefs.h <<\_ACEOF
  11396. #define HAVE_UINTMAX_T 1
  11397. _ACEOF
  11398. fi
  11399. for ac_header in inttypes.h
  11400. do
  11401. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11402. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11403. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11404. $as_echo_n "checking for $ac_header... " >&6; }
  11405. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11406. $as_echo_n "(cached) " >&6
  11407. fi
  11408. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11409. $as_echo "$as_val"'`
  11410. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11411. $as_echo "$ac_res" >&6; }
  11412. else
  11413. # Is the header compilable?
  11414. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11415. $as_echo_n "checking $ac_header usability... " >&6; }
  11416. cat >conftest.$ac_ext <<_ACEOF
  11417. /* confdefs.h. */
  11418. _ACEOF
  11419. cat confdefs.h >>conftest.$ac_ext
  11420. cat >>conftest.$ac_ext <<_ACEOF
  11421. /* end confdefs.h. */
  11422. $ac_includes_default
  11423. #include <$ac_header>
  11424. _ACEOF
  11425. rm -f conftest.$ac_objext
  11426. if { (ac_try="$ac_compile"
  11427. case "(($ac_try" in
  11428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11429. *) ac_try_echo=$ac_try;;
  11430. esac
  11431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11432. $as_echo "$ac_try_echo") >&5
  11433. (eval "$ac_compile") 2>conftest.er1
  11434. ac_status=$?
  11435. grep -v '^ *+' conftest.er1 >conftest.err
  11436. rm -f conftest.er1
  11437. cat conftest.err >&5
  11438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11439. (exit $ac_status); } && {
  11440. test -z "$ac_cxx_werror_flag" ||
  11441. test ! -s conftest.err
  11442. } && test -s conftest.$ac_objext; then
  11443. ac_header_compiler=yes
  11444. else
  11445. $as_echo "$as_me: failed program was:" >&5
  11446. sed 's/^/| /' conftest.$ac_ext >&5
  11447. ac_header_compiler=no
  11448. fi
  11449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11450. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11451. $as_echo "$ac_header_compiler" >&6; }
  11452. # Is the header present?
  11453. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11454. $as_echo_n "checking $ac_header presence... " >&6; }
  11455. cat >conftest.$ac_ext <<_ACEOF
  11456. /* confdefs.h. */
  11457. _ACEOF
  11458. cat confdefs.h >>conftest.$ac_ext
  11459. cat >>conftest.$ac_ext <<_ACEOF
  11460. /* end confdefs.h. */
  11461. #include <$ac_header>
  11462. _ACEOF
  11463. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11464. case "(($ac_try" in
  11465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11466. *) ac_try_echo=$ac_try;;
  11467. esac
  11468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11469. $as_echo "$ac_try_echo") >&5
  11470. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11471. ac_status=$?
  11472. grep -v '^ *+' conftest.er1 >conftest.err
  11473. rm -f conftest.er1
  11474. cat conftest.err >&5
  11475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11476. (exit $ac_status); } >/dev/null && {
  11477. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11478. test ! -s conftest.err
  11479. }; then
  11480. ac_header_preproc=yes
  11481. else
  11482. $as_echo "$as_me: failed program was:" >&5
  11483. sed 's/^/| /' conftest.$ac_ext >&5
  11484. ac_header_preproc=no
  11485. fi
  11486. rm -f conftest.err conftest.$ac_ext
  11487. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11488. $as_echo "$ac_header_preproc" >&6; }
  11489. # So? What about this header?
  11490. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11491. yes:no: )
  11492. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11493. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11494. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11495. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11496. ac_header_preproc=yes
  11497. ;;
  11498. no:yes:* )
  11499. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11500. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11501. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11502. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11503. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11504. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11505. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11506. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11507. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11508. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11509. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11510. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11511. ( cat <<\_ASBOX
  11512. ## ----------------------------------------------- ##
  11513. ## Report this to t-tujikawa@users.sourceforge.net ##
  11514. ## ----------------------------------------------- ##
  11515. _ASBOX
  11516. ) | sed "s/^/$as_me: WARNING: /" >&2
  11517. ;;
  11518. esac
  11519. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11520. $as_echo_n "checking for $ac_header... " >&6; }
  11521. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11522. $as_echo_n "(cached) " >&6
  11523. else
  11524. eval "$as_ac_Header=\$ac_header_preproc"
  11525. fi
  11526. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11527. $as_echo "$as_val"'`
  11528. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11529. $as_echo "$ac_res" >&6; }
  11530. fi
  11531. as_val=`eval 'as_val=${'$as_ac_Header'}
  11532. $as_echo "$as_val"'`
  11533. if test "x$as_val" = x""yes; then
  11534. cat >>confdefs.h <<_ACEOF
  11535. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11536. _ACEOF
  11537. fi
  11538. done
  11539. if test $ac_cv_header_inttypes_h = yes; then
  11540. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11541. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11542. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11543. $as_echo_n "(cached) " >&6
  11544. else
  11545. cat >conftest.$ac_ext <<_ACEOF
  11546. /* confdefs.h. */
  11547. _ACEOF
  11548. cat confdefs.h >>conftest.$ac_ext
  11549. cat >>conftest.$ac_ext <<_ACEOF
  11550. /* end confdefs.h. */
  11551. #include <inttypes.h>
  11552. #ifdef PRId32
  11553. char *p = PRId32;
  11554. #endif
  11555. int
  11556. main ()
  11557. {
  11558. ;
  11559. return 0;
  11560. }
  11561. _ACEOF
  11562. rm -f conftest.$ac_objext
  11563. if { (ac_try="$ac_compile"
  11564. case "(($ac_try" in
  11565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11566. *) ac_try_echo=$ac_try;;
  11567. esac
  11568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11569. $as_echo "$ac_try_echo") >&5
  11570. (eval "$ac_compile") 2>conftest.er1
  11571. ac_status=$?
  11572. grep -v '^ *+' conftest.er1 >conftest.err
  11573. rm -f conftest.er1
  11574. cat conftest.err >&5
  11575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11576. (exit $ac_status); } && {
  11577. test -z "$ac_cxx_werror_flag" ||
  11578. test ! -s conftest.err
  11579. } && test -s conftest.$ac_objext; then
  11580. gt_cv_inttypes_pri_broken=no
  11581. else
  11582. $as_echo "$as_me: failed program was:" >&5
  11583. sed 's/^/| /' conftest.$ac_ext >&5
  11584. gt_cv_inttypes_pri_broken=yes
  11585. fi
  11586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11587. fi
  11588. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11589. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11590. fi
  11591. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11592. cat >>confdefs.h <<_ACEOF
  11593. #define PRI_MACROS_BROKEN 1
  11594. _ACEOF
  11595. PRI_MACROS_BROKEN=1
  11596. else
  11597. PRI_MACROS_BROKEN=0
  11598. fi
  11599. # Check whether --enable-threads was given.
  11600. if test "${enable_threads+set}" = set; then
  11601. enableval=$enable_threads; gl_use_threads=$enableval
  11602. else
  11603. case "$host_os" in
  11604. osf*) gl_use_threads=no ;;
  11605. *) gl_use_threads=yes ;;
  11606. esac
  11607. fi
  11608. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11609. # For using <pthread.h>:
  11610. case "$host_os" in
  11611. osf*)
  11612. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11613. # groks <pthread.h>. cc also understands the flag -pthread, but
  11614. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11615. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11616. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11617. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11618. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11619. ;;
  11620. esac
  11621. # Some systems optimize for single-threaded programs by default, and
  11622. # need special flags to disable these optimizations. For example, the
  11623. # definition of 'errno' in <errno.h>.
  11624. case "$host_os" in
  11625. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11626. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11627. esac
  11628. fi
  11629. if test "X$prefix" = "XNONE"; then
  11630. acl_final_prefix="$ac_default_prefix"
  11631. else
  11632. acl_final_prefix="$prefix"
  11633. fi
  11634. if test "X$exec_prefix" = "XNONE"; then
  11635. acl_final_exec_prefix='${prefix}'
  11636. else
  11637. acl_final_exec_prefix="$exec_prefix"
  11638. fi
  11639. acl_save_prefix="$prefix"
  11640. prefix="$acl_final_prefix"
  11641. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11642. prefix="$acl_save_prefix"
  11643. # Check whether --with-gnu-ld was given.
  11644. if test "${with_gnu_ld+set}" = set; then
  11645. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11646. else
  11647. with_gnu_ld=no
  11648. fi
  11649. # Prepare PATH_SEPARATOR.
  11650. # The user is always right.
  11651. if test "${PATH_SEPARATOR+set}" != set; then
  11652. echo "#! /bin/sh" >conf$$.sh
  11653. echo "exit 0" >>conf$$.sh
  11654. chmod +x conf$$.sh
  11655. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11656. PATH_SEPARATOR=';'
  11657. else
  11658. PATH_SEPARATOR=:
  11659. fi
  11660. rm -f conf$$.sh
  11661. fi
  11662. ac_prog=ld
  11663. if test "$GCC" = yes; then
  11664. # Check if gcc -print-prog-name=ld gives a path.
  11665. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11666. $as_echo_n "checking for ld used by GCC... " >&6; }
  11667. case $host in
  11668. *-*-mingw*)
  11669. # gcc leaves a trailing carriage return which upsets mingw
  11670. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11671. *)
  11672. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11673. esac
  11674. case $ac_prog in
  11675. # Accept absolute paths.
  11676. [\\/]* | [A-Za-z]:[\\/]*)
  11677. re_direlt='/[^/][^/]*/\.\./'
  11678. # Canonicalize the path of ld
  11679. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11680. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11681. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11682. done
  11683. test -z "$LD" && LD="$ac_prog"
  11684. ;;
  11685. "")
  11686. # If it fails, then pretend we aren't using GCC.
  11687. ac_prog=ld
  11688. ;;
  11689. *)
  11690. # If it is relative, then search for the first ld in PATH.
  11691. with_gnu_ld=unknown
  11692. ;;
  11693. esac
  11694. elif test "$with_gnu_ld" = yes; then
  11695. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11696. $as_echo_n "checking for GNU ld... " >&6; }
  11697. else
  11698. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11699. $as_echo_n "checking for non-GNU ld... " >&6; }
  11700. fi
  11701. if test "${acl_cv_path_LD+set}" = set; then
  11702. $as_echo_n "(cached) " >&6
  11703. else
  11704. if test -z "$LD"; then
  11705. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11706. for ac_dir in $PATH; do
  11707. test -z "$ac_dir" && ac_dir=.
  11708. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11709. acl_cv_path_LD="$ac_dir/$ac_prog"
  11710. # Check to see if the program is GNU ld. I'd rather use --version,
  11711. # but apparently some GNU ld's only accept -v.
  11712. # Break only if it was the GNU/non-GNU ld that we prefer.
  11713. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11714. *GNU* | *'with BFD'*)
  11715. test "$with_gnu_ld" != no && break ;;
  11716. *)
  11717. test "$with_gnu_ld" != yes && break ;;
  11718. esac
  11719. fi
  11720. done
  11721. IFS="$ac_save_ifs"
  11722. else
  11723. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11724. fi
  11725. fi
  11726. LD="$acl_cv_path_LD"
  11727. if test -n "$LD"; then
  11728. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11729. $as_echo "$LD" >&6; }
  11730. else
  11731. { $as_echo "$as_me:$LINENO: result: no" >&5
  11732. $as_echo "no" >&6; }
  11733. fi
  11734. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11735. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11736. { (exit 1); exit 1; }; }
  11737. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11738. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11739. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11740. $as_echo_n "(cached) " >&6
  11741. else
  11742. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11743. case `$LD -v 2>&1 </dev/null` in
  11744. *GNU* | *'with BFD'*)
  11745. acl_cv_prog_gnu_ld=yes ;;
  11746. *)
  11747. acl_cv_prog_gnu_ld=no ;;
  11748. esac
  11749. fi
  11750. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11751. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11752. with_gnu_ld=$acl_cv_prog_gnu_ld
  11753. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11754. $as_echo_n "checking for shared library run path origin... " >&6; }
  11755. if test "${acl_cv_rpath+set}" = set; then
  11756. $as_echo_n "(cached) " >&6
  11757. else
  11758. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11759. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11760. . ./conftest.sh
  11761. rm -f ./conftest.sh
  11762. acl_cv_rpath=done
  11763. fi
  11764. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11765. $as_echo "$acl_cv_rpath" >&6; }
  11766. wl="$acl_cv_wl"
  11767. acl_libext="$acl_cv_libext"
  11768. acl_shlibext="$acl_cv_shlibext"
  11769. acl_libname_spec="$acl_cv_libname_spec"
  11770. acl_library_names_spec="$acl_cv_library_names_spec"
  11771. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11772. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11773. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11774. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11775. # Check whether --enable-rpath was given.
  11776. if test "${enable_rpath+set}" = set; then
  11777. enableval=$enable_rpath; :
  11778. else
  11779. enable_rpath=yes
  11780. fi
  11781. acl_libdirstem=lib
  11782. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11783. if test -n "$searchpath"; then
  11784. acl_save_IFS="${IFS= }"; IFS=":"
  11785. for searchdir in $searchpath; do
  11786. if test -d "$searchdir"; then
  11787. case "$searchdir" in
  11788. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11789. *) searchdir=`cd "$searchdir" && pwd`
  11790. case "$searchdir" in
  11791. */lib64 ) acl_libdirstem=lib64 ;;
  11792. esac ;;
  11793. esac
  11794. fi
  11795. done
  11796. IFS="$acl_save_IFS"
  11797. fi
  11798. gl_threads_api=none
  11799. LIBTHREAD=
  11800. LTLIBTHREAD=
  11801. LIBMULTITHREAD=
  11802. LTLIBMULTITHREAD=
  11803. if test "$gl_use_threads" != no; then
  11804. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11805. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11806. gl_have_weak=no
  11807. cat >conftest.$ac_ext <<_ACEOF
  11808. /* confdefs.h. */
  11809. _ACEOF
  11810. cat confdefs.h >>conftest.$ac_ext
  11811. cat >>conftest.$ac_ext <<_ACEOF
  11812. /* end confdefs.h. */
  11813. extern void xyzzy ();
  11814. #pragma weak xyzzy
  11815. int
  11816. main ()
  11817. {
  11818. xyzzy();
  11819. ;
  11820. return 0;
  11821. }
  11822. _ACEOF
  11823. rm -f conftest.$ac_objext conftest$ac_exeext
  11824. if { (ac_try="$ac_link"
  11825. case "(($ac_try" in
  11826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11827. *) ac_try_echo=$ac_try;;
  11828. esac
  11829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11830. $as_echo "$ac_try_echo") >&5
  11831. (eval "$ac_link") 2>conftest.er1
  11832. ac_status=$?
  11833. grep -v '^ *+' conftest.er1 >conftest.err
  11834. rm -f conftest.er1
  11835. cat conftest.err >&5
  11836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11837. (exit $ac_status); } && {
  11838. test -z "$ac_cxx_werror_flag" ||
  11839. test ! -s conftest.err
  11840. } && test -s conftest$ac_exeext && {
  11841. test "$cross_compiling" = yes ||
  11842. $as_test_x conftest$ac_exeext
  11843. }; then
  11844. gl_have_weak=yes
  11845. else
  11846. $as_echo "$as_me: failed program was:" >&5
  11847. sed 's/^/| /' conftest.$ac_ext >&5
  11848. fi
  11849. rm -rf conftest.dSYM
  11850. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11851. conftest$ac_exeext conftest.$ac_ext
  11852. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11853. $as_echo "$gl_have_weak" >&6; }
  11854. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11855. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11856. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11857. if test "${ac_cv_header_pthread_h+set}" = set; then
  11858. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11859. $as_echo_n "checking for pthread.h... " >&6; }
  11860. if test "${ac_cv_header_pthread_h+set}" = set; then
  11861. $as_echo_n "(cached) " >&6
  11862. fi
  11863. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11864. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11865. else
  11866. # Is the header compilable?
  11867. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11868. $as_echo_n "checking pthread.h usability... " >&6; }
  11869. cat >conftest.$ac_ext <<_ACEOF
  11870. /* confdefs.h. */
  11871. _ACEOF
  11872. cat confdefs.h >>conftest.$ac_ext
  11873. cat >>conftest.$ac_ext <<_ACEOF
  11874. /* end confdefs.h. */
  11875. $ac_includes_default
  11876. #include <pthread.h>
  11877. _ACEOF
  11878. rm -f conftest.$ac_objext
  11879. if { (ac_try="$ac_compile"
  11880. case "(($ac_try" in
  11881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11882. *) ac_try_echo=$ac_try;;
  11883. esac
  11884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11885. $as_echo "$ac_try_echo") >&5
  11886. (eval "$ac_compile") 2>conftest.er1
  11887. ac_status=$?
  11888. grep -v '^ *+' conftest.er1 >conftest.err
  11889. rm -f conftest.er1
  11890. cat conftest.err >&5
  11891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11892. (exit $ac_status); } && {
  11893. test -z "$ac_cxx_werror_flag" ||
  11894. test ! -s conftest.err
  11895. } && test -s conftest.$ac_objext; then
  11896. ac_header_compiler=yes
  11897. else
  11898. $as_echo "$as_me: failed program was:" >&5
  11899. sed 's/^/| /' conftest.$ac_ext >&5
  11900. ac_header_compiler=no
  11901. fi
  11902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11903. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11904. $as_echo "$ac_header_compiler" >&6; }
  11905. # Is the header present?
  11906. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11907. $as_echo_n "checking pthread.h presence... " >&6; }
  11908. cat >conftest.$ac_ext <<_ACEOF
  11909. /* confdefs.h. */
  11910. _ACEOF
  11911. cat confdefs.h >>conftest.$ac_ext
  11912. cat >>conftest.$ac_ext <<_ACEOF
  11913. /* end confdefs.h. */
  11914. #include <pthread.h>
  11915. _ACEOF
  11916. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11917. case "(($ac_try" in
  11918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11919. *) ac_try_echo=$ac_try;;
  11920. esac
  11921. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11922. $as_echo "$ac_try_echo") >&5
  11923. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11924. ac_status=$?
  11925. grep -v '^ *+' conftest.er1 >conftest.err
  11926. rm -f conftest.er1
  11927. cat conftest.err >&5
  11928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); } >/dev/null && {
  11930. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11931. test ! -s conftest.err
  11932. }; then
  11933. ac_header_preproc=yes
  11934. else
  11935. $as_echo "$as_me: failed program was:" >&5
  11936. sed 's/^/| /' conftest.$ac_ext >&5
  11937. ac_header_preproc=no
  11938. fi
  11939. rm -f conftest.err conftest.$ac_ext
  11940. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11941. $as_echo "$ac_header_preproc" >&6; }
  11942. # So? What about this header?
  11943. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11944. yes:no: )
  11945. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11946. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11947. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11948. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11949. ac_header_preproc=yes
  11950. ;;
  11951. no:yes:* )
  11952. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11953. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11954. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11955. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11956. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11957. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11958. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11959. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11960. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11961. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11962. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11963. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11964. ( cat <<\_ASBOX
  11965. ## ----------------------------------------------- ##
  11966. ## Report this to t-tujikawa@users.sourceforge.net ##
  11967. ## ----------------------------------------------- ##
  11968. _ASBOX
  11969. ) | sed "s/^/$as_me: WARNING: /" >&2
  11970. ;;
  11971. esac
  11972. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11973. $as_echo_n "checking for pthread.h... " >&6; }
  11974. if test "${ac_cv_header_pthread_h+set}" = set; then
  11975. $as_echo_n "(cached) " >&6
  11976. else
  11977. ac_cv_header_pthread_h=$ac_header_preproc
  11978. fi
  11979. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11980. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11981. fi
  11982. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11983. gl_have_pthread_h=yes
  11984. else
  11985. gl_have_pthread_h=no
  11986. fi
  11987. if test "$gl_have_pthread_h" = yes; then
  11988. # Other possible tests:
  11989. # -lpthreads (FSU threads, PCthreads)
  11990. # -lgthreads
  11991. gl_have_pthread=
  11992. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11993. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11994. # the second one only in libpthread, and lock.c needs it.
  11995. cat >conftest.$ac_ext <<_ACEOF
  11996. /* confdefs.h. */
  11997. _ACEOF
  11998. cat confdefs.h >>conftest.$ac_ext
  11999. cat >>conftest.$ac_ext <<_ACEOF
  12000. /* end confdefs.h. */
  12001. #include <pthread.h>
  12002. int
  12003. main ()
  12004. {
  12005. pthread_mutex_lock((pthread_mutex_t*)0);
  12006. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  12007. ;
  12008. return 0;
  12009. }
  12010. _ACEOF
  12011. rm -f conftest.$ac_objext conftest$ac_exeext
  12012. if { (ac_try="$ac_link"
  12013. case "(($ac_try" in
  12014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12015. *) ac_try_echo=$ac_try;;
  12016. esac
  12017. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12018. $as_echo "$ac_try_echo") >&5
  12019. (eval "$ac_link") 2>conftest.er1
  12020. ac_status=$?
  12021. grep -v '^ *+' conftest.er1 >conftest.err
  12022. rm -f conftest.er1
  12023. cat conftest.err >&5
  12024. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12025. (exit $ac_status); } && {
  12026. test -z "$ac_cxx_werror_flag" ||
  12027. test ! -s conftest.err
  12028. } && test -s conftest$ac_exeext && {
  12029. test "$cross_compiling" = yes ||
  12030. $as_test_x conftest$ac_exeext
  12031. }; then
  12032. gl_have_pthread=yes
  12033. else
  12034. $as_echo "$as_me: failed program was:" >&5
  12035. sed 's/^/| /' conftest.$ac_ext >&5
  12036. fi
  12037. rm -rf conftest.dSYM
  12038. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12039. conftest$ac_exeext conftest.$ac_ext
  12040. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  12041. # since it is defined as a macro on OSF/1.)
  12042. if test -n "$gl_have_pthread"; then
  12043. # The program links fine without libpthread. But it may actually
  12044. # need to link with libpthread in order to create multiple threads.
  12045. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12046. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12047. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12048. $as_echo_n "(cached) " >&6
  12049. else
  12050. ac_check_lib_save_LIBS=$LIBS
  12051. LIBS="-lpthread $LIBS"
  12052. cat >conftest.$ac_ext <<_ACEOF
  12053. /* confdefs.h. */
  12054. _ACEOF
  12055. cat confdefs.h >>conftest.$ac_ext
  12056. cat >>conftest.$ac_ext <<_ACEOF
  12057. /* end confdefs.h. */
  12058. /* Override any GCC internal prototype to avoid an error.
  12059. Use char because int might match the return type of a GCC
  12060. builtin and then its argument prototype would still apply. */
  12061. #ifdef __cplusplus
  12062. extern "C"
  12063. #endif
  12064. char pthread_kill ();
  12065. int
  12066. main ()
  12067. {
  12068. return pthread_kill ();
  12069. ;
  12070. return 0;
  12071. }
  12072. _ACEOF
  12073. rm -f conftest.$ac_objext conftest$ac_exeext
  12074. if { (ac_try="$ac_link"
  12075. case "(($ac_try" in
  12076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12077. *) ac_try_echo=$ac_try;;
  12078. esac
  12079. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12080. $as_echo "$ac_try_echo") >&5
  12081. (eval "$ac_link") 2>conftest.er1
  12082. ac_status=$?
  12083. grep -v '^ *+' conftest.er1 >conftest.err
  12084. rm -f conftest.er1
  12085. cat conftest.err >&5
  12086. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12087. (exit $ac_status); } && {
  12088. test -z "$ac_cxx_werror_flag" ||
  12089. test ! -s conftest.err
  12090. } && test -s conftest$ac_exeext && {
  12091. test "$cross_compiling" = yes ||
  12092. $as_test_x conftest$ac_exeext
  12093. }; then
  12094. ac_cv_lib_pthread_pthread_kill=yes
  12095. else
  12096. $as_echo "$as_me: failed program was:" >&5
  12097. sed 's/^/| /' conftest.$ac_ext >&5
  12098. ac_cv_lib_pthread_pthread_kill=no
  12099. fi
  12100. rm -rf conftest.dSYM
  12101. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12102. conftest$ac_exeext conftest.$ac_ext
  12103. LIBS=$ac_check_lib_save_LIBS
  12104. fi
  12105. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12106. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12107. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12108. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12109. # On Solaris and HP-UX, most pthread functions exist also in libc.
  12110. # Therefore pthread_in_use() needs to actually try to create a
  12111. # thread: pthread_create from libc will fail, whereas
  12112. # pthread_create will actually create a thread.
  12113. case "$host_os" in
  12114. solaris* | hpux*)
  12115. cat >>confdefs.h <<\_ACEOF
  12116. #define PTHREAD_IN_USE_DETECTION_HARD 1
  12117. _ACEOF
  12118. esac
  12119. fi
  12120. else
  12121. # Some library is needed. Try libpthread and libc_r.
  12122. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12123. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12124. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12125. $as_echo_n "(cached) " >&6
  12126. else
  12127. ac_check_lib_save_LIBS=$LIBS
  12128. LIBS="-lpthread $LIBS"
  12129. cat >conftest.$ac_ext <<_ACEOF
  12130. /* confdefs.h. */
  12131. _ACEOF
  12132. cat confdefs.h >>conftest.$ac_ext
  12133. cat >>conftest.$ac_ext <<_ACEOF
  12134. /* end confdefs.h. */
  12135. /* Override any GCC internal prototype to avoid an error.
  12136. Use char because int might match the return type of a GCC
  12137. builtin and then its argument prototype would still apply. */
  12138. #ifdef __cplusplus
  12139. extern "C"
  12140. #endif
  12141. char pthread_kill ();
  12142. int
  12143. main ()
  12144. {
  12145. return pthread_kill ();
  12146. ;
  12147. return 0;
  12148. }
  12149. _ACEOF
  12150. rm -f conftest.$ac_objext conftest$ac_exeext
  12151. if { (ac_try="$ac_link"
  12152. case "(($ac_try" in
  12153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12154. *) ac_try_echo=$ac_try;;
  12155. esac
  12156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12157. $as_echo "$ac_try_echo") >&5
  12158. (eval "$ac_link") 2>conftest.er1
  12159. ac_status=$?
  12160. grep -v '^ *+' conftest.er1 >conftest.err
  12161. rm -f conftest.er1
  12162. cat conftest.err >&5
  12163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12164. (exit $ac_status); } && {
  12165. test -z "$ac_cxx_werror_flag" ||
  12166. test ! -s conftest.err
  12167. } && test -s conftest$ac_exeext && {
  12168. test "$cross_compiling" = yes ||
  12169. $as_test_x conftest$ac_exeext
  12170. }; then
  12171. ac_cv_lib_pthread_pthread_kill=yes
  12172. else
  12173. $as_echo "$as_me: failed program was:" >&5
  12174. sed 's/^/| /' conftest.$ac_ext >&5
  12175. ac_cv_lib_pthread_pthread_kill=no
  12176. fi
  12177. rm -rf conftest.dSYM
  12178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12179. conftest$ac_exeext conftest.$ac_ext
  12180. LIBS=$ac_check_lib_save_LIBS
  12181. fi
  12182. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12183. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12184. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12185. gl_have_pthread=yes
  12186. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  12187. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12188. fi
  12189. if test -z "$gl_have_pthread"; then
  12190. # For FreeBSD 4.
  12191. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  12192. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  12193. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  12194. $as_echo_n "(cached) " >&6
  12195. else
  12196. ac_check_lib_save_LIBS=$LIBS
  12197. LIBS="-lc_r $LIBS"
  12198. cat >conftest.$ac_ext <<_ACEOF
  12199. /* confdefs.h. */
  12200. _ACEOF
  12201. cat confdefs.h >>conftest.$ac_ext
  12202. cat >>conftest.$ac_ext <<_ACEOF
  12203. /* end confdefs.h. */
  12204. /* Override any GCC internal prototype to avoid an error.
  12205. Use char because int might match the return type of a GCC
  12206. builtin and then its argument prototype would still apply. */
  12207. #ifdef __cplusplus
  12208. extern "C"
  12209. #endif
  12210. char pthread_kill ();
  12211. int
  12212. main ()
  12213. {
  12214. return pthread_kill ();
  12215. ;
  12216. return 0;
  12217. }
  12218. _ACEOF
  12219. rm -f conftest.$ac_objext conftest$ac_exeext
  12220. if { (ac_try="$ac_link"
  12221. case "(($ac_try" in
  12222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12223. *) ac_try_echo=$ac_try;;
  12224. esac
  12225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12226. $as_echo "$ac_try_echo") >&5
  12227. (eval "$ac_link") 2>conftest.er1
  12228. ac_status=$?
  12229. grep -v '^ *+' conftest.er1 >conftest.err
  12230. rm -f conftest.er1
  12231. cat conftest.err >&5
  12232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12233. (exit $ac_status); } && {
  12234. test -z "$ac_cxx_werror_flag" ||
  12235. test ! -s conftest.err
  12236. } && test -s conftest$ac_exeext && {
  12237. test "$cross_compiling" = yes ||
  12238. $as_test_x conftest$ac_exeext
  12239. }; then
  12240. ac_cv_lib_c_r_pthread_kill=yes
  12241. else
  12242. $as_echo "$as_me: failed program was:" >&5
  12243. sed 's/^/| /' conftest.$ac_ext >&5
  12244. ac_cv_lib_c_r_pthread_kill=no
  12245. fi
  12246. rm -rf conftest.dSYM
  12247. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12248. conftest$ac_exeext conftest.$ac_ext
  12249. LIBS=$ac_check_lib_save_LIBS
  12250. fi
  12251. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12252. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12253. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12254. gl_have_pthread=yes
  12255. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12256. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12257. fi
  12258. fi
  12259. fi
  12260. if test -n "$gl_have_pthread"; then
  12261. gl_threads_api=posix
  12262. cat >>confdefs.h <<\_ACEOF
  12263. #define USE_POSIX_THREADS 1
  12264. _ACEOF
  12265. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12266. if test $gl_have_weak = yes; then
  12267. cat >>confdefs.h <<\_ACEOF
  12268. #define USE_POSIX_THREADS_WEAK 1
  12269. _ACEOF
  12270. LIBTHREAD=
  12271. LTLIBTHREAD=
  12272. fi
  12273. fi
  12274. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12275. # pthread_rwlock_* functions.
  12276. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12277. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12278. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12279. $as_echo_n "(cached) " >&6
  12280. else
  12281. ac_cv_type_pthread_rwlock_t=no
  12282. cat >conftest.$ac_ext <<_ACEOF
  12283. /* confdefs.h. */
  12284. _ACEOF
  12285. cat confdefs.h >>conftest.$ac_ext
  12286. cat >>conftest.$ac_ext <<_ACEOF
  12287. /* end confdefs.h. */
  12288. #include <pthread.h>
  12289. int
  12290. main ()
  12291. {
  12292. if (sizeof (pthread_rwlock_t))
  12293. return 0;
  12294. ;
  12295. return 0;
  12296. }
  12297. _ACEOF
  12298. rm -f conftest.$ac_objext
  12299. if { (ac_try="$ac_compile"
  12300. case "(($ac_try" in
  12301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12302. *) ac_try_echo=$ac_try;;
  12303. esac
  12304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12305. $as_echo "$ac_try_echo") >&5
  12306. (eval "$ac_compile") 2>conftest.er1
  12307. ac_status=$?
  12308. grep -v '^ *+' conftest.er1 >conftest.err
  12309. rm -f conftest.er1
  12310. cat conftest.err >&5
  12311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12312. (exit $ac_status); } && {
  12313. test -z "$ac_cxx_werror_flag" ||
  12314. test ! -s conftest.err
  12315. } && test -s conftest.$ac_objext; then
  12316. cat >conftest.$ac_ext <<_ACEOF
  12317. /* confdefs.h. */
  12318. _ACEOF
  12319. cat confdefs.h >>conftest.$ac_ext
  12320. cat >>conftest.$ac_ext <<_ACEOF
  12321. /* end confdefs.h. */
  12322. #include <pthread.h>
  12323. int
  12324. main ()
  12325. {
  12326. if (sizeof ((pthread_rwlock_t)))
  12327. return 0;
  12328. ;
  12329. return 0;
  12330. }
  12331. _ACEOF
  12332. rm -f conftest.$ac_objext
  12333. if { (ac_try="$ac_compile"
  12334. case "(($ac_try" in
  12335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12336. *) ac_try_echo=$ac_try;;
  12337. esac
  12338. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12339. $as_echo "$ac_try_echo") >&5
  12340. (eval "$ac_compile") 2>conftest.er1
  12341. ac_status=$?
  12342. grep -v '^ *+' conftest.er1 >conftest.err
  12343. rm -f conftest.er1
  12344. cat conftest.err >&5
  12345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12346. (exit $ac_status); } && {
  12347. test -z "$ac_cxx_werror_flag" ||
  12348. test ! -s conftest.err
  12349. } && test -s conftest.$ac_objext; then
  12350. :
  12351. else
  12352. $as_echo "$as_me: failed program was:" >&5
  12353. sed 's/^/| /' conftest.$ac_ext >&5
  12354. ac_cv_type_pthread_rwlock_t=yes
  12355. fi
  12356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12357. else
  12358. $as_echo "$as_me: failed program was:" >&5
  12359. sed 's/^/| /' conftest.$ac_ext >&5
  12360. fi
  12361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12362. fi
  12363. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12364. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12365. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12366. cat >>confdefs.h <<\_ACEOF
  12367. #define HAVE_PTHREAD_RWLOCK 1
  12368. _ACEOF
  12369. fi
  12370. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12371. cat >conftest.$ac_ext <<_ACEOF
  12372. /* confdefs.h. */
  12373. _ACEOF
  12374. cat confdefs.h >>conftest.$ac_ext
  12375. cat >>conftest.$ac_ext <<_ACEOF
  12376. /* end confdefs.h. */
  12377. #include <pthread.h>
  12378. int
  12379. main ()
  12380. {
  12381. #if __FreeBSD__ == 4
  12382. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12383. #else
  12384. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12385. return !x;
  12386. #endif
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. rm -f conftest.$ac_objext
  12392. if { (ac_try="$ac_compile"
  12393. case "(($ac_try" in
  12394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12395. *) ac_try_echo=$ac_try;;
  12396. esac
  12397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12398. $as_echo "$ac_try_echo") >&5
  12399. (eval "$ac_compile") 2>conftest.er1
  12400. ac_status=$?
  12401. grep -v '^ *+' conftest.er1 >conftest.err
  12402. rm -f conftest.er1
  12403. cat conftest.err >&5
  12404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); } && {
  12406. test -z "$ac_cxx_werror_flag" ||
  12407. test ! -s conftest.err
  12408. } && test -s conftest.$ac_objext; then
  12409. cat >>confdefs.h <<\_ACEOF
  12410. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12411. _ACEOF
  12412. else
  12413. $as_echo "$as_me: failed program was:" >&5
  12414. sed 's/^/| /' conftest.$ac_ext >&5
  12415. fi
  12416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12417. fi
  12418. fi
  12419. fi
  12420. if test -z "$gl_have_pthread"; then
  12421. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12422. gl_have_solaristhread=
  12423. gl_save_LIBS="$LIBS"
  12424. LIBS="$LIBS -lthread"
  12425. cat >conftest.$ac_ext <<_ACEOF
  12426. /* confdefs.h. */
  12427. _ACEOF
  12428. cat confdefs.h >>conftest.$ac_ext
  12429. cat >>conftest.$ac_ext <<_ACEOF
  12430. /* end confdefs.h. */
  12431. #include <thread.h>
  12432. #include <synch.h>
  12433. int
  12434. main ()
  12435. {
  12436. thr_self();
  12437. ;
  12438. return 0;
  12439. }
  12440. _ACEOF
  12441. rm -f conftest.$ac_objext conftest$ac_exeext
  12442. if { (ac_try="$ac_link"
  12443. case "(($ac_try" in
  12444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12445. *) ac_try_echo=$ac_try;;
  12446. esac
  12447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12448. $as_echo "$ac_try_echo") >&5
  12449. (eval "$ac_link") 2>conftest.er1
  12450. ac_status=$?
  12451. grep -v '^ *+' conftest.er1 >conftest.err
  12452. rm -f conftest.er1
  12453. cat conftest.err >&5
  12454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12455. (exit $ac_status); } && {
  12456. test -z "$ac_cxx_werror_flag" ||
  12457. test ! -s conftest.err
  12458. } && test -s conftest$ac_exeext && {
  12459. test "$cross_compiling" = yes ||
  12460. $as_test_x conftest$ac_exeext
  12461. }; then
  12462. gl_have_solaristhread=yes
  12463. else
  12464. $as_echo "$as_me: failed program was:" >&5
  12465. sed 's/^/| /' conftest.$ac_ext >&5
  12466. fi
  12467. rm -rf conftest.dSYM
  12468. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12469. conftest$ac_exeext conftest.$ac_ext
  12470. LIBS="$gl_save_LIBS"
  12471. if test -n "$gl_have_solaristhread"; then
  12472. gl_threads_api=solaris
  12473. LIBTHREAD=-lthread
  12474. LTLIBTHREAD=-lthread
  12475. LIBMULTITHREAD="$LIBTHREAD"
  12476. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12477. cat >>confdefs.h <<\_ACEOF
  12478. #define USE_SOLARIS_THREADS 1
  12479. _ACEOF
  12480. if test $gl_have_weak = yes; then
  12481. cat >>confdefs.h <<\_ACEOF
  12482. #define USE_SOLARIS_THREADS_WEAK 1
  12483. _ACEOF
  12484. LIBTHREAD=
  12485. LTLIBTHREAD=
  12486. fi
  12487. fi
  12488. fi
  12489. fi
  12490. if test "$gl_use_threads" = pth; then
  12491. gl_save_CPPFLAGS="$CPPFLAGS"
  12492. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12493. $as_echo_n "checking how to link with libpth... " >&6; }
  12494. if test "${ac_cv_libpth_libs+set}" = set; then
  12495. $as_echo_n "(cached) " >&6
  12496. else
  12497. use_additional=yes
  12498. acl_save_prefix="$prefix"
  12499. prefix="$acl_final_prefix"
  12500. acl_save_exec_prefix="$exec_prefix"
  12501. exec_prefix="$acl_final_exec_prefix"
  12502. eval additional_includedir=\"$includedir\"
  12503. eval additional_libdir=\"$libdir\"
  12504. exec_prefix="$acl_save_exec_prefix"
  12505. prefix="$acl_save_prefix"
  12506. # Check whether --with-libpth-prefix was given.
  12507. if test "${with_libpth_prefix+set}" = set; then
  12508. withval=$with_libpth_prefix;
  12509. if test "X$withval" = "Xno"; then
  12510. use_additional=no
  12511. else
  12512. if test "X$withval" = "X"; then
  12513. acl_save_prefix="$prefix"
  12514. prefix="$acl_final_prefix"
  12515. acl_save_exec_prefix="$exec_prefix"
  12516. exec_prefix="$acl_final_exec_prefix"
  12517. eval additional_includedir=\"$includedir\"
  12518. eval additional_libdir=\"$libdir\"
  12519. exec_prefix="$acl_save_exec_prefix"
  12520. prefix="$acl_save_prefix"
  12521. else
  12522. additional_includedir="$withval/include"
  12523. additional_libdir="$withval/$acl_libdirstem"
  12524. fi
  12525. fi
  12526. fi
  12527. LIBPTH=
  12528. LTLIBPTH=
  12529. INCPTH=
  12530. LIBPTH_PREFIX=
  12531. rpathdirs=
  12532. ltrpathdirs=
  12533. names_already_handled=
  12534. names_next_round='pth '
  12535. while test -n "$names_next_round"; do
  12536. names_this_round="$names_next_round"
  12537. names_next_round=
  12538. for name in $names_this_round; do
  12539. already_handled=
  12540. for n in $names_already_handled; do
  12541. if test "$n" = "$name"; then
  12542. already_handled=yes
  12543. break
  12544. fi
  12545. done
  12546. if test -z "$already_handled"; then
  12547. names_already_handled="$names_already_handled $name"
  12548. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12549. eval value=\"\$HAVE_LIB$uppername\"
  12550. if test -n "$value"; then
  12551. if test "$value" = yes; then
  12552. eval value=\"\$LIB$uppername\"
  12553. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12554. eval value=\"\$LTLIB$uppername\"
  12555. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12556. else
  12557. :
  12558. fi
  12559. else
  12560. found_dir=
  12561. found_la=
  12562. found_so=
  12563. found_a=
  12564. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12565. if test -n "$acl_shlibext"; then
  12566. shrext=".$acl_shlibext" # typically: shrext=.so
  12567. else
  12568. shrext=
  12569. fi
  12570. if test $use_additional = yes; then
  12571. dir="$additional_libdir"
  12572. if test -n "$acl_shlibext"; then
  12573. if test -f "$dir/$libname$shrext"; then
  12574. found_dir="$dir"
  12575. found_so="$dir/$libname$shrext"
  12576. else
  12577. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12578. ver=`(cd "$dir" && \
  12579. for f in "$libname$shrext".*; do echo "$f"; done \
  12580. | sed -e "s,^$libname$shrext\\\\.,," \
  12581. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12582. | sed 1q ) 2>/dev/null`
  12583. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12584. found_dir="$dir"
  12585. found_so="$dir/$libname$shrext.$ver"
  12586. fi
  12587. else
  12588. eval library_names=\"$acl_library_names_spec\"
  12589. for f in $library_names; do
  12590. if test -f "$dir/$f"; then
  12591. found_dir="$dir"
  12592. found_so="$dir/$f"
  12593. break
  12594. fi
  12595. done
  12596. fi
  12597. fi
  12598. fi
  12599. if test "X$found_dir" = "X"; then
  12600. if test -f "$dir/$libname.$acl_libext"; then
  12601. found_dir="$dir"
  12602. found_a="$dir/$libname.$acl_libext"
  12603. fi
  12604. fi
  12605. if test "X$found_dir" != "X"; then
  12606. if test -f "$dir/$libname.la"; then
  12607. found_la="$dir/$libname.la"
  12608. fi
  12609. fi
  12610. fi
  12611. if test "X$found_dir" = "X"; then
  12612. for x in $LDFLAGS $LTLIBPTH; do
  12613. acl_save_prefix="$prefix"
  12614. prefix="$acl_final_prefix"
  12615. acl_save_exec_prefix="$exec_prefix"
  12616. exec_prefix="$acl_final_exec_prefix"
  12617. eval x=\"$x\"
  12618. exec_prefix="$acl_save_exec_prefix"
  12619. prefix="$acl_save_prefix"
  12620. case "$x" in
  12621. -L*)
  12622. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12623. if test -n "$acl_shlibext"; then
  12624. if test -f "$dir/$libname$shrext"; then
  12625. found_dir="$dir"
  12626. found_so="$dir/$libname$shrext"
  12627. else
  12628. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12629. ver=`(cd "$dir" && \
  12630. for f in "$libname$shrext".*; do echo "$f"; done \
  12631. | sed -e "s,^$libname$shrext\\\\.,," \
  12632. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12633. | sed 1q ) 2>/dev/null`
  12634. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12635. found_dir="$dir"
  12636. found_so="$dir/$libname$shrext.$ver"
  12637. fi
  12638. else
  12639. eval library_names=\"$acl_library_names_spec\"
  12640. for f in $library_names; do
  12641. if test -f "$dir/$f"; then
  12642. found_dir="$dir"
  12643. found_so="$dir/$f"
  12644. break
  12645. fi
  12646. done
  12647. fi
  12648. fi
  12649. fi
  12650. if test "X$found_dir" = "X"; then
  12651. if test -f "$dir/$libname.$acl_libext"; then
  12652. found_dir="$dir"
  12653. found_a="$dir/$libname.$acl_libext"
  12654. fi
  12655. fi
  12656. if test "X$found_dir" != "X"; then
  12657. if test -f "$dir/$libname.la"; then
  12658. found_la="$dir/$libname.la"
  12659. fi
  12660. fi
  12661. ;;
  12662. esac
  12663. if test "X$found_dir" != "X"; then
  12664. break
  12665. fi
  12666. done
  12667. fi
  12668. if test "X$found_dir" != "X"; then
  12669. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12670. if test "X$found_so" != "X"; then
  12671. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12672. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12673. else
  12674. haveit=
  12675. for x in $ltrpathdirs; do
  12676. if test "X$x" = "X$found_dir"; then
  12677. haveit=yes
  12678. break
  12679. fi
  12680. done
  12681. if test -z "$haveit"; then
  12682. ltrpathdirs="$ltrpathdirs $found_dir"
  12683. fi
  12684. if test "$acl_hardcode_direct" = yes; then
  12685. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12686. else
  12687. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12688. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12689. haveit=
  12690. for x in $rpathdirs; do
  12691. if test "X$x" = "X$found_dir"; then
  12692. haveit=yes
  12693. break
  12694. fi
  12695. done
  12696. if test -z "$haveit"; then
  12697. rpathdirs="$rpathdirs $found_dir"
  12698. fi
  12699. else
  12700. haveit=
  12701. for x in $LDFLAGS $LIBPTH; do
  12702. acl_save_prefix="$prefix"
  12703. prefix="$acl_final_prefix"
  12704. acl_save_exec_prefix="$exec_prefix"
  12705. exec_prefix="$acl_final_exec_prefix"
  12706. eval x=\"$x\"
  12707. exec_prefix="$acl_save_exec_prefix"
  12708. prefix="$acl_save_prefix"
  12709. if test "X$x" = "X-L$found_dir"; then
  12710. haveit=yes
  12711. break
  12712. fi
  12713. done
  12714. if test -z "$haveit"; then
  12715. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12716. fi
  12717. if test "$acl_hardcode_minus_L" != no; then
  12718. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12719. else
  12720. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12721. fi
  12722. fi
  12723. fi
  12724. fi
  12725. else
  12726. if test "X$found_a" != "X"; then
  12727. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12728. else
  12729. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12730. fi
  12731. fi
  12732. additional_includedir=
  12733. case "$found_dir" in
  12734. */$acl_libdirstem | */$acl_libdirstem/)
  12735. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12736. LIBPTH_PREFIX="$basedir"
  12737. additional_includedir="$basedir/include"
  12738. ;;
  12739. esac
  12740. if test "X$additional_includedir" != "X"; then
  12741. if test "X$additional_includedir" != "X/usr/include"; then
  12742. haveit=
  12743. if test "X$additional_includedir" = "X/usr/local/include"; then
  12744. if test -n "$GCC"; then
  12745. case $host_os in
  12746. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12747. esac
  12748. fi
  12749. fi
  12750. if test -z "$haveit"; then
  12751. for x in $CPPFLAGS $INCPTH; do
  12752. acl_save_prefix="$prefix"
  12753. prefix="$acl_final_prefix"
  12754. acl_save_exec_prefix="$exec_prefix"
  12755. exec_prefix="$acl_final_exec_prefix"
  12756. eval x=\"$x\"
  12757. exec_prefix="$acl_save_exec_prefix"
  12758. prefix="$acl_save_prefix"
  12759. if test "X$x" = "X-I$additional_includedir"; then
  12760. haveit=yes
  12761. break
  12762. fi
  12763. done
  12764. if test -z "$haveit"; then
  12765. if test -d "$additional_includedir"; then
  12766. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12767. fi
  12768. fi
  12769. fi
  12770. fi
  12771. fi
  12772. if test -n "$found_la"; then
  12773. save_libdir="$libdir"
  12774. case "$found_la" in
  12775. */* | *\\*) . "$found_la" ;;
  12776. *) . "./$found_la" ;;
  12777. esac
  12778. libdir="$save_libdir"
  12779. for dep in $dependency_libs; do
  12780. case "$dep" in
  12781. -L*)
  12782. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12783. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12784. haveit=
  12785. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12786. if test -n "$GCC"; then
  12787. case $host_os in
  12788. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12789. esac
  12790. fi
  12791. fi
  12792. if test -z "$haveit"; then
  12793. haveit=
  12794. for x in $LDFLAGS $LIBPTH; do
  12795. acl_save_prefix="$prefix"
  12796. prefix="$acl_final_prefix"
  12797. acl_save_exec_prefix="$exec_prefix"
  12798. exec_prefix="$acl_final_exec_prefix"
  12799. eval x=\"$x\"
  12800. exec_prefix="$acl_save_exec_prefix"
  12801. prefix="$acl_save_prefix"
  12802. if test "X$x" = "X-L$additional_libdir"; then
  12803. haveit=yes
  12804. break
  12805. fi
  12806. done
  12807. if test -z "$haveit"; then
  12808. if test -d "$additional_libdir"; then
  12809. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12810. fi
  12811. fi
  12812. haveit=
  12813. for x in $LDFLAGS $LTLIBPTH; do
  12814. acl_save_prefix="$prefix"
  12815. prefix="$acl_final_prefix"
  12816. acl_save_exec_prefix="$exec_prefix"
  12817. exec_prefix="$acl_final_exec_prefix"
  12818. eval x=\"$x\"
  12819. exec_prefix="$acl_save_exec_prefix"
  12820. prefix="$acl_save_prefix"
  12821. if test "X$x" = "X-L$additional_libdir"; then
  12822. haveit=yes
  12823. break
  12824. fi
  12825. done
  12826. if test -z "$haveit"; then
  12827. if test -d "$additional_libdir"; then
  12828. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12829. fi
  12830. fi
  12831. fi
  12832. fi
  12833. ;;
  12834. -R*)
  12835. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12836. if test "$enable_rpath" != no; then
  12837. haveit=
  12838. for x in $rpathdirs; do
  12839. if test "X$x" = "X$dir"; then
  12840. haveit=yes
  12841. break
  12842. fi
  12843. done
  12844. if test -z "$haveit"; then
  12845. rpathdirs="$rpathdirs $dir"
  12846. fi
  12847. haveit=
  12848. for x in $ltrpathdirs; do
  12849. if test "X$x" = "X$dir"; then
  12850. haveit=yes
  12851. break
  12852. fi
  12853. done
  12854. if test -z "$haveit"; then
  12855. ltrpathdirs="$ltrpathdirs $dir"
  12856. fi
  12857. fi
  12858. ;;
  12859. -l*)
  12860. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12861. ;;
  12862. *.la)
  12863. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12864. ;;
  12865. *)
  12866. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12867. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12868. ;;
  12869. esac
  12870. done
  12871. fi
  12872. else
  12873. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12874. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12875. fi
  12876. fi
  12877. fi
  12878. done
  12879. done
  12880. if test "X$rpathdirs" != "X"; then
  12881. if test -n "$acl_hardcode_libdir_separator"; then
  12882. alldirs=
  12883. for found_dir in $rpathdirs; do
  12884. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12885. done
  12886. acl_save_libdir="$libdir"
  12887. libdir="$alldirs"
  12888. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12889. libdir="$acl_save_libdir"
  12890. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12891. else
  12892. for found_dir in $rpathdirs; do
  12893. acl_save_libdir="$libdir"
  12894. libdir="$found_dir"
  12895. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12896. libdir="$acl_save_libdir"
  12897. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12898. done
  12899. fi
  12900. fi
  12901. if test "X$ltrpathdirs" != "X"; then
  12902. for found_dir in $ltrpathdirs; do
  12903. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12904. done
  12905. fi
  12906. ac_cv_libpth_libs="$LIBPTH"
  12907. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12908. ac_cv_libpth_cppflags="$INCPTH"
  12909. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12910. fi
  12911. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12912. $as_echo "$ac_cv_libpth_libs" >&6; }
  12913. LIBPTH="$ac_cv_libpth_libs"
  12914. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12915. INCPTH="$ac_cv_libpth_cppflags"
  12916. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12917. for element in $INCPTH; do
  12918. haveit=
  12919. for x in $CPPFLAGS; do
  12920. acl_save_prefix="$prefix"
  12921. prefix="$acl_final_prefix"
  12922. acl_save_exec_prefix="$exec_prefix"
  12923. exec_prefix="$acl_final_exec_prefix"
  12924. eval x=\"$x\"
  12925. exec_prefix="$acl_save_exec_prefix"
  12926. prefix="$acl_save_prefix"
  12927. if test "X$x" = "X$element"; then
  12928. haveit=yes
  12929. break
  12930. fi
  12931. done
  12932. if test -z "$haveit"; then
  12933. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12934. fi
  12935. done
  12936. HAVE_LIBPTH=yes
  12937. gl_have_pth=
  12938. gl_save_LIBS="$LIBS"
  12939. LIBS="$LIBS -lpth"
  12940. cat >conftest.$ac_ext <<_ACEOF
  12941. /* confdefs.h. */
  12942. _ACEOF
  12943. cat confdefs.h >>conftest.$ac_ext
  12944. cat >>conftest.$ac_ext <<_ACEOF
  12945. /* end confdefs.h. */
  12946. #include <pth.h>
  12947. int
  12948. main ()
  12949. {
  12950. pth_self();
  12951. ;
  12952. return 0;
  12953. }
  12954. _ACEOF
  12955. rm -f conftest.$ac_objext conftest$ac_exeext
  12956. if { (ac_try="$ac_link"
  12957. case "(($ac_try" in
  12958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12959. *) ac_try_echo=$ac_try;;
  12960. esac
  12961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12962. $as_echo "$ac_try_echo") >&5
  12963. (eval "$ac_link") 2>conftest.er1
  12964. ac_status=$?
  12965. grep -v '^ *+' conftest.er1 >conftest.err
  12966. rm -f conftest.er1
  12967. cat conftest.err >&5
  12968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12969. (exit $ac_status); } && {
  12970. test -z "$ac_cxx_werror_flag" ||
  12971. test ! -s conftest.err
  12972. } && test -s conftest$ac_exeext && {
  12973. test "$cross_compiling" = yes ||
  12974. $as_test_x conftest$ac_exeext
  12975. }; then
  12976. gl_have_pth=yes
  12977. else
  12978. $as_echo "$as_me: failed program was:" >&5
  12979. sed 's/^/| /' conftest.$ac_ext >&5
  12980. fi
  12981. rm -rf conftest.dSYM
  12982. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12983. conftest$ac_exeext conftest.$ac_ext
  12984. LIBS="$gl_save_LIBS"
  12985. if test -n "$gl_have_pth"; then
  12986. gl_threads_api=pth
  12987. LIBTHREAD="$LIBPTH"
  12988. LTLIBTHREAD="$LTLIBPTH"
  12989. LIBMULTITHREAD="$LIBTHREAD"
  12990. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12991. cat >>confdefs.h <<\_ACEOF
  12992. #define USE_PTH_THREADS 1
  12993. _ACEOF
  12994. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12995. if test $gl_have_weak = yes; then
  12996. cat >>confdefs.h <<\_ACEOF
  12997. #define USE_PTH_THREADS_WEAK 1
  12998. _ACEOF
  12999. LIBTHREAD=
  13000. LTLIBTHREAD=
  13001. fi
  13002. fi
  13003. else
  13004. CPPFLAGS="$gl_save_CPPFLAGS"
  13005. fi
  13006. fi
  13007. if test -z "$gl_have_pthread"; then
  13008. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  13009. if { case "$host_os" in
  13010. mingw*) true;;
  13011. *) false;;
  13012. esac
  13013. }; then
  13014. gl_threads_api=win32
  13015. cat >>confdefs.h <<\_ACEOF
  13016. #define USE_WIN32_THREADS 1
  13017. _ACEOF
  13018. fi
  13019. fi
  13020. fi
  13021. fi
  13022. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  13023. $as_echo_n "checking for multithread API to use... " >&6; }
  13024. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  13025. $as_echo "$gl_threads_api" >&6; }
  13026. use_additional=yes
  13027. acl_save_prefix="$prefix"
  13028. prefix="$acl_final_prefix"
  13029. acl_save_exec_prefix="$exec_prefix"
  13030. exec_prefix="$acl_final_exec_prefix"
  13031. eval additional_includedir=\"$includedir\"
  13032. eval additional_libdir=\"$libdir\"
  13033. exec_prefix="$acl_save_exec_prefix"
  13034. prefix="$acl_save_prefix"
  13035. # Check whether --with-libiconv-prefix was given.
  13036. if test "${with_libiconv_prefix+set}" = set; then
  13037. withval=$with_libiconv_prefix;
  13038. if test "X$withval" = "Xno"; then
  13039. use_additional=no
  13040. else
  13041. if test "X$withval" = "X"; then
  13042. acl_save_prefix="$prefix"
  13043. prefix="$acl_final_prefix"
  13044. acl_save_exec_prefix="$exec_prefix"
  13045. exec_prefix="$acl_final_exec_prefix"
  13046. eval additional_includedir=\"$includedir\"
  13047. eval additional_libdir=\"$libdir\"
  13048. exec_prefix="$acl_save_exec_prefix"
  13049. prefix="$acl_save_prefix"
  13050. else
  13051. additional_includedir="$withval/include"
  13052. additional_libdir="$withval/$acl_libdirstem"
  13053. fi
  13054. fi
  13055. fi
  13056. LIBICONV=
  13057. LTLIBICONV=
  13058. INCICONV=
  13059. LIBICONV_PREFIX=
  13060. rpathdirs=
  13061. ltrpathdirs=
  13062. names_already_handled=
  13063. names_next_round='iconv '
  13064. while test -n "$names_next_round"; do
  13065. names_this_round="$names_next_round"
  13066. names_next_round=
  13067. for name in $names_this_round; do
  13068. already_handled=
  13069. for n in $names_already_handled; do
  13070. if test "$n" = "$name"; then
  13071. already_handled=yes
  13072. break
  13073. fi
  13074. done
  13075. if test -z "$already_handled"; then
  13076. names_already_handled="$names_already_handled $name"
  13077. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13078. eval value=\"\$HAVE_LIB$uppername\"
  13079. if test -n "$value"; then
  13080. if test "$value" = yes; then
  13081. eval value=\"\$LIB$uppername\"
  13082. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13083. eval value=\"\$LTLIB$uppername\"
  13084. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13085. else
  13086. :
  13087. fi
  13088. else
  13089. found_dir=
  13090. found_la=
  13091. found_so=
  13092. found_a=
  13093. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13094. if test -n "$acl_shlibext"; then
  13095. shrext=".$acl_shlibext" # typically: shrext=.so
  13096. else
  13097. shrext=
  13098. fi
  13099. if test $use_additional = yes; then
  13100. dir="$additional_libdir"
  13101. if test -n "$acl_shlibext"; then
  13102. if test -f "$dir/$libname$shrext"; then
  13103. found_dir="$dir"
  13104. found_so="$dir/$libname$shrext"
  13105. else
  13106. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13107. ver=`(cd "$dir" && \
  13108. for f in "$libname$shrext".*; do echo "$f"; done \
  13109. | sed -e "s,^$libname$shrext\\\\.,," \
  13110. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13111. | sed 1q ) 2>/dev/null`
  13112. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13113. found_dir="$dir"
  13114. found_so="$dir/$libname$shrext.$ver"
  13115. fi
  13116. else
  13117. eval library_names=\"$acl_library_names_spec\"
  13118. for f in $library_names; do
  13119. if test -f "$dir/$f"; then
  13120. found_dir="$dir"
  13121. found_so="$dir/$f"
  13122. break
  13123. fi
  13124. done
  13125. fi
  13126. fi
  13127. fi
  13128. if test "X$found_dir" = "X"; then
  13129. if test -f "$dir/$libname.$acl_libext"; then
  13130. found_dir="$dir"
  13131. found_a="$dir/$libname.$acl_libext"
  13132. fi
  13133. fi
  13134. if test "X$found_dir" != "X"; then
  13135. if test -f "$dir/$libname.la"; then
  13136. found_la="$dir/$libname.la"
  13137. fi
  13138. fi
  13139. fi
  13140. if test "X$found_dir" = "X"; then
  13141. for x in $LDFLAGS $LTLIBICONV; do
  13142. acl_save_prefix="$prefix"
  13143. prefix="$acl_final_prefix"
  13144. acl_save_exec_prefix="$exec_prefix"
  13145. exec_prefix="$acl_final_exec_prefix"
  13146. eval x=\"$x\"
  13147. exec_prefix="$acl_save_exec_prefix"
  13148. prefix="$acl_save_prefix"
  13149. case "$x" in
  13150. -L*)
  13151. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13152. if test -n "$acl_shlibext"; then
  13153. if test -f "$dir/$libname$shrext"; then
  13154. found_dir="$dir"
  13155. found_so="$dir/$libname$shrext"
  13156. else
  13157. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13158. ver=`(cd "$dir" && \
  13159. for f in "$libname$shrext".*; do echo "$f"; done \
  13160. | sed -e "s,^$libname$shrext\\\\.,," \
  13161. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13162. | sed 1q ) 2>/dev/null`
  13163. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13164. found_dir="$dir"
  13165. found_so="$dir/$libname$shrext.$ver"
  13166. fi
  13167. else
  13168. eval library_names=\"$acl_library_names_spec\"
  13169. for f in $library_names; do
  13170. if test -f "$dir/$f"; then
  13171. found_dir="$dir"
  13172. found_so="$dir/$f"
  13173. break
  13174. fi
  13175. done
  13176. fi
  13177. fi
  13178. fi
  13179. if test "X$found_dir" = "X"; then
  13180. if test -f "$dir/$libname.$acl_libext"; then
  13181. found_dir="$dir"
  13182. found_a="$dir/$libname.$acl_libext"
  13183. fi
  13184. fi
  13185. if test "X$found_dir" != "X"; then
  13186. if test -f "$dir/$libname.la"; then
  13187. found_la="$dir/$libname.la"
  13188. fi
  13189. fi
  13190. ;;
  13191. esac
  13192. if test "X$found_dir" != "X"; then
  13193. break
  13194. fi
  13195. done
  13196. fi
  13197. if test "X$found_dir" != "X"; then
  13198. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13199. if test "X$found_so" != "X"; then
  13200. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13201. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13202. else
  13203. haveit=
  13204. for x in $ltrpathdirs; do
  13205. if test "X$x" = "X$found_dir"; then
  13206. haveit=yes
  13207. break
  13208. fi
  13209. done
  13210. if test -z "$haveit"; then
  13211. ltrpathdirs="$ltrpathdirs $found_dir"
  13212. fi
  13213. if test "$acl_hardcode_direct" = yes; then
  13214. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13215. else
  13216. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13217. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13218. haveit=
  13219. for x in $rpathdirs; do
  13220. if test "X$x" = "X$found_dir"; then
  13221. haveit=yes
  13222. break
  13223. fi
  13224. done
  13225. if test -z "$haveit"; then
  13226. rpathdirs="$rpathdirs $found_dir"
  13227. fi
  13228. else
  13229. haveit=
  13230. for x in $LDFLAGS $LIBICONV; do
  13231. acl_save_prefix="$prefix"
  13232. prefix="$acl_final_prefix"
  13233. acl_save_exec_prefix="$exec_prefix"
  13234. exec_prefix="$acl_final_exec_prefix"
  13235. eval x=\"$x\"
  13236. exec_prefix="$acl_save_exec_prefix"
  13237. prefix="$acl_save_prefix"
  13238. if test "X$x" = "X-L$found_dir"; then
  13239. haveit=yes
  13240. break
  13241. fi
  13242. done
  13243. if test -z "$haveit"; then
  13244. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13245. fi
  13246. if test "$acl_hardcode_minus_L" != no; then
  13247. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13248. else
  13249. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13250. fi
  13251. fi
  13252. fi
  13253. fi
  13254. else
  13255. if test "X$found_a" != "X"; then
  13256. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13257. else
  13258. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13259. fi
  13260. fi
  13261. additional_includedir=
  13262. case "$found_dir" in
  13263. */$acl_libdirstem | */$acl_libdirstem/)
  13264. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13265. LIBICONV_PREFIX="$basedir"
  13266. additional_includedir="$basedir/include"
  13267. ;;
  13268. esac
  13269. if test "X$additional_includedir" != "X"; then
  13270. if test "X$additional_includedir" != "X/usr/include"; then
  13271. haveit=
  13272. if test "X$additional_includedir" = "X/usr/local/include"; then
  13273. if test -n "$GCC"; then
  13274. case $host_os in
  13275. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13276. esac
  13277. fi
  13278. fi
  13279. if test -z "$haveit"; then
  13280. for x in $CPPFLAGS $INCICONV; do
  13281. acl_save_prefix="$prefix"
  13282. prefix="$acl_final_prefix"
  13283. acl_save_exec_prefix="$exec_prefix"
  13284. exec_prefix="$acl_final_exec_prefix"
  13285. eval x=\"$x\"
  13286. exec_prefix="$acl_save_exec_prefix"
  13287. prefix="$acl_save_prefix"
  13288. if test "X$x" = "X-I$additional_includedir"; then
  13289. haveit=yes
  13290. break
  13291. fi
  13292. done
  13293. if test -z "$haveit"; then
  13294. if test -d "$additional_includedir"; then
  13295. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13296. fi
  13297. fi
  13298. fi
  13299. fi
  13300. fi
  13301. if test -n "$found_la"; then
  13302. save_libdir="$libdir"
  13303. case "$found_la" in
  13304. */* | *\\*) . "$found_la" ;;
  13305. *) . "./$found_la" ;;
  13306. esac
  13307. libdir="$save_libdir"
  13308. for dep in $dependency_libs; do
  13309. case "$dep" in
  13310. -L*)
  13311. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13312. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13313. haveit=
  13314. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13315. if test -n "$GCC"; then
  13316. case $host_os in
  13317. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13318. esac
  13319. fi
  13320. fi
  13321. if test -z "$haveit"; then
  13322. haveit=
  13323. for x in $LDFLAGS $LIBICONV; do
  13324. acl_save_prefix="$prefix"
  13325. prefix="$acl_final_prefix"
  13326. acl_save_exec_prefix="$exec_prefix"
  13327. exec_prefix="$acl_final_exec_prefix"
  13328. eval x=\"$x\"
  13329. exec_prefix="$acl_save_exec_prefix"
  13330. prefix="$acl_save_prefix"
  13331. if test "X$x" = "X-L$additional_libdir"; then
  13332. haveit=yes
  13333. break
  13334. fi
  13335. done
  13336. if test -z "$haveit"; then
  13337. if test -d "$additional_libdir"; then
  13338. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13339. fi
  13340. fi
  13341. haveit=
  13342. for x in $LDFLAGS $LTLIBICONV; do
  13343. acl_save_prefix="$prefix"
  13344. prefix="$acl_final_prefix"
  13345. acl_save_exec_prefix="$exec_prefix"
  13346. exec_prefix="$acl_final_exec_prefix"
  13347. eval x=\"$x\"
  13348. exec_prefix="$acl_save_exec_prefix"
  13349. prefix="$acl_save_prefix"
  13350. if test "X$x" = "X-L$additional_libdir"; then
  13351. haveit=yes
  13352. break
  13353. fi
  13354. done
  13355. if test -z "$haveit"; then
  13356. if test -d "$additional_libdir"; then
  13357. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13358. fi
  13359. fi
  13360. fi
  13361. fi
  13362. ;;
  13363. -R*)
  13364. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13365. if test "$enable_rpath" != no; then
  13366. haveit=
  13367. for x in $rpathdirs; do
  13368. if test "X$x" = "X$dir"; then
  13369. haveit=yes
  13370. break
  13371. fi
  13372. done
  13373. if test -z "$haveit"; then
  13374. rpathdirs="$rpathdirs $dir"
  13375. fi
  13376. haveit=
  13377. for x in $ltrpathdirs; do
  13378. if test "X$x" = "X$dir"; then
  13379. haveit=yes
  13380. break
  13381. fi
  13382. done
  13383. if test -z "$haveit"; then
  13384. ltrpathdirs="$ltrpathdirs $dir"
  13385. fi
  13386. fi
  13387. ;;
  13388. -l*)
  13389. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13390. ;;
  13391. *.la)
  13392. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13393. ;;
  13394. *)
  13395. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13396. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13397. ;;
  13398. esac
  13399. done
  13400. fi
  13401. else
  13402. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13403. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13404. fi
  13405. fi
  13406. fi
  13407. done
  13408. done
  13409. if test "X$rpathdirs" != "X"; then
  13410. if test -n "$acl_hardcode_libdir_separator"; then
  13411. alldirs=
  13412. for found_dir in $rpathdirs; do
  13413. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13414. done
  13415. acl_save_libdir="$libdir"
  13416. libdir="$alldirs"
  13417. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13418. libdir="$acl_save_libdir"
  13419. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13420. else
  13421. for found_dir in $rpathdirs; do
  13422. acl_save_libdir="$libdir"
  13423. libdir="$found_dir"
  13424. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13425. libdir="$acl_save_libdir"
  13426. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13427. done
  13428. fi
  13429. fi
  13430. if test "X$ltrpathdirs" != "X"; then
  13431. for found_dir in $ltrpathdirs; do
  13432. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13433. done
  13434. fi
  13435. cat >conftest.$ac_ext <<_ACEOF
  13436. /* confdefs.h. */
  13437. _ACEOF
  13438. cat confdefs.h >>conftest.$ac_ext
  13439. cat >>conftest.$ac_ext <<_ACEOF
  13440. /* end confdefs.h. */
  13441. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13442. int
  13443. main ()
  13444. {
  13445. ;
  13446. return 0;
  13447. }
  13448. _ACEOF
  13449. rm -f conftest.$ac_objext conftest$ac_exeext
  13450. if { (ac_try="$ac_link"
  13451. case "(($ac_try" in
  13452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13453. *) ac_try_echo=$ac_try;;
  13454. esac
  13455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13456. $as_echo "$ac_try_echo") >&5
  13457. (eval "$ac_link") 2>conftest.er1
  13458. ac_status=$?
  13459. grep -v '^ *+' conftest.er1 >conftest.err
  13460. rm -f conftest.er1
  13461. cat conftest.err >&5
  13462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13463. (exit $ac_status); } && {
  13464. test -z "$ac_cxx_werror_flag" ||
  13465. test ! -s conftest.err
  13466. } && test -s conftest$ac_exeext && {
  13467. test "$cross_compiling" = yes ||
  13468. $as_test_x conftest$ac_exeext
  13469. }; then
  13470. cat >>confdefs.h <<\_ACEOF
  13471. #define HAVE_BUILTIN_EXPECT 1
  13472. _ACEOF
  13473. else
  13474. $as_echo "$as_me: failed program was:" >&5
  13475. sed 's/^/| /' conftest.$ac_ext >&5
  13476. fi
  13477. rm -rf conftest.dSYM
  13478. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13479. conftest$ac_exeext conftest.$ac_ext
  13480. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13481. do
  13482. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13483. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13484. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13485. $as_echo_n "checking for $ac_header... " >&6; }
  13486. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13487. $as_echo_n "(cached) " >&6
  13488. fi
  13489. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13490. $as_echo "$as_val"'`
  13491. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13492. $as_echo "$ac_res" >&6; }
  13493. else
  13494. # Is the header compilable?
  13495. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13496. $as_echo_n "checking $ac_header usability... " >&6; }
  13497. cat >conftest.$ac_ext <<_ACEOF
  13498. /* confdefs.h. */
  13499. _ACEOF
  13500. cat confdefs.h >>conftest.$ac_ext
  13501. cat >>conftest.$ac_ext <<_ACEOF
  13502. /* end confdefs.h. */
  13503. $ac_includes_default
  13504. #include <$ac_header>
  13505. _ACEOF
  13506. rm -f conftest.$ac_objext
  13507. if { (ac_try="$ac_compile"
  13508. case "(($ac_try" in
  13509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13510. *) ac_try_echo=$ac_try;;
  13511. esac
  13512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13513. $as_echo "$ac_try_echo") >&5
  13514. (eval "$ac_compile") 2>conftest.er1
  13515. ac_status=$?
  13516. grep -v '^ *+' conftest.er1 >conftest.err
  13517. rm -f conftest.er1
  13518. cat conftest.err >&5
  13519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13520. (exit $ac_status); } && {
  13521. test -z "$ac_cxx_werror_flag" ||
  13522. test ! -s conftest.err
  13523. } && test -s conftest.$ac_objext; then
  13524. ac_header_compiler=yes
  13525. else
  13526. $as_echo "$as_me: failed program was:" >&5
  13527. sed 's/^/| /' conftest.$ac_ext >&5
  13528. ac_header_compiler=no
  13529. fi
  13530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13531. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13532. $as_echo "$ac_header_compiler" >&6; }
  13533. # Is the header present?
  13534. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13535. $as_echo_n "checking $ac_header presence... " >&6; }
  13536. cat >conftest.$ac_ext <<_ACEOF
  13537. /* confdefs.h. */
  13538. _ACEOF
  13539. cat confdefs.h >>conftest.$ac_ext
  13540. cat >>conftest.$ac_ext <<_ACEOF
  13541. /* end confdefs.h. */
  13542. #include <$ac_header>
  13543. _ACEOF
  13544. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13545. case "(($ac_try" in
  13546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13547. *) ac_try_echo=$ac_try;;
  13548. esac
  13549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13550. $as_echo "$ac_try_echo") >&5
  13551. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13552. ac_status=$?
  13553. grep -v '^ *+' conftest.er1 >conftest.err
  13554. rm -f conftest.er1
  13555. cat conftest.err >&5
  13556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13557. (exit $ac_status); } >/dev/null && {
  13558. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13559. test ! -s conftest.err
  13560. }; then
  13561. ac_header_preproc=yes
  13562. else
  13563. $as_echo "$as_me: failed program was:" >&5
  13564. sed 's/^/| /' conftest.$ac_ext >&5
  13565. ac_header_preproc=no
  13566. fi
  13567. rm -f conftest.err conftest.$ac_ext
  13568. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13569. $as_echo "$ac_header_preproc" >&6; }
  13570. # So? What about this header?
  13571. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13572. yes:no: )
  13573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13574. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13576. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13577. ac_header_preproc=yes
  13578. ;;
  13579. no:yes:* )
  13580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13581. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13583. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13585. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13587. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13589. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13590. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13591. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13592. ( cat <<\_ASBOX
  13593. ## ----------------------------------------------- ##
  13594. ## Report this to t-tujikawa@users.sourceforge.net ##
  13595. ## ----------------------------------------------- ##
  13596. _ASBOX
  13597. ) | sed "s/^/$as_me: WARNING: /" >&2
  13598. ;;
  13599. esac
  13600. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13601. $as_echo_n "checking for $ac_header... " >&6; }
  13602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13603. $as_echo_n "(cached) " >&6
  13604. else
  13605. eval "$as_ac_Header=\$ac_header_preproc"
  13606. fi
  13607. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13608. $as_echo "$as_val"'`
  13609. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13610. $as_echo "$ac_res" >&6; }
  13611. fi
  13612. as_val=`eval 'as_val=${'$as_ac_Header'}
  13613. $as_echo "$as_val"'`
  13614. if test "x$as_val" = x""yes; then
  13615. cat >>confdefs.h <<_ACEOF
  13616. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13617. _ACEOF
  13618. fi
  13619. done
  13620. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13621. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13622. argz_next __fsetlocking
  13623. do
  13624. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13625. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13626. $as_echo_n "checking for $ac_func... " >&6; }
  13627. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13628. $as_echo_n "(cached) " >&6
  13629. else
  13630. cat >conftest.$ac_ext <<_ACEOF
  13631. /* confdefs.h. */
  13632. _ACEOF
  13633. cat confdefs.h >>conftest.$ac_ext
  13634. cat >>conftest.$ac_ext <<_ACEOF
  13635. /* end confdefs.h. */
  13636. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13638. #define $ac_func innocuous_$ac_func
  13639. /* System header to define __stub macros and hopefully few prototypes,
  13640. which can conflict with char $ac_func (); below.
  13641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13642. <limits.h> exists even on freestanding compilers. */
  13643. #ifdef __STDC__
  13644. # include <limits.h>
  13645. #else
  13646. # include <assert.h>
  13647. #endif
  13648. #undef $ac_func
  13649. /* Override any GCC internal prototype to avoid an error.
  13650. Use char because int might match the return type of a GCC
  13651. builtin and then its argument prototype would still apply. */
  13652. #ifdef __cplusplus
  13653. extern "C"
  13654. #endif
  13655. char $ac_func ();
  13656. /* The GNU C library defines this for functions which it implements
  13657. to always fail with ENOSYS. Some functions are actually named
  13658. something starting with __ and the normal name is an alias. */
  13659. #if defined __stub_$ac_func || defined __stub___$ac_func
  13660. choke me
  13661. #endif
  13662. int
  13663. main ()
  13664. {
  13665. return $ac_func ();
  13666. ;
  13667. return 0;
  13668. }
  13669. _ACEOF
  13670. rm -f conftest.$ac_objext conftest$ac_exeext
  13671. if { (ac_try="$ac_link"
  13672. case "(($ac_try" in
  13673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13674. *) ac_try_echo=$ac_try;;
  13675. esac
  13676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13677. $as_echo "$ac_try_echo") >&5
  13678. (eval "$ac_link") 2>conftest.er1
  13679. ac_status=$?
  13680. grep -v '^ *+' conftest.er1 >conftest.err
  13681. rm -f conftest.er1
  13682. cat conftest.err >&5
  13683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13684. (exit $ac_status); } && {
  13685. test -z "$ac_cxx_werror_flag" ||
  13686. test ! -s conftest.err
  13687. } && test -s conftest$ac_exeext && {
  13688. test "$cross_compiling" = yes ||
  13689. $as_test_x conftest$ac_exeext
  13690. }; then
  13691. eval "$as_ac_var=yes"
  13692. else
  13693. $as_echo "$as_me: failed program was:" >&5
  13694. sed 's/^/| /' conftest.$ac_ext >&5
  13695. eval "$as_ac_var=no"
  13696. fi
  13697. rm -rf conftest.dSYM
  13698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13699. conftest$ac_exeext conftest.$ac_ext
  13700. fi
  13701. ac_res=`eval 'as_val=${'$as_ac_var'}
  13702. $as_echo "$as_val"'`
  13703. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13704. $as_echo "$ac_res" >&6; }
  13705. as_val=`eval 'as_val=${'$as_ac_var'}
  13706. $as_echo "$as_val"'`
  13707. if test "x$as_val" = x""yes; then
  13708. cat >>confdefs.h <<_ACEOF
  13709. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13710. _ACEOF
  13711. fi
  13712. done
  13713. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13714. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13715. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13716. $as_echo_n "(cached) " >&6
  13717. else
  13718. cat >conftest.$ac_ext <<_ACEOF
  13719. /* confdefs.h. */
  13720. _ACEOF
  13721. cat confdefs.h >>conftest.$ac_ext
  13722. cat >>conftest.$ac_ext <<_ACEOF
  13723. /* end confdefs.h. */
  13724. #include <stdio.h>
  13725. int
  13726. main ()
  13727. {
  13728. #ifndef feof_unlocked
  13729. char *p = (char *) feof_unlocked;
  13730. #endif
  13731. ;
  13732. return 0;
  13733. }
  13734. _ACEOF
  13735. rm -f conftest.$ac_objext
  13736. if { (ac_try="$ac_compile"
  13737. case "(($ac_try" in
  13738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13739. *) ac_try_echo=$ac_try;;
  13740. esac
  13741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13742. $as_echo "$ac_try_echo") >&5
  13743. (eval "$ac_compile") 2>conftest.er1
  13744. ac_status=$?
  13745. grep -v '^ *+' conftest.er1 >conftest.err
  13746. rm -f conftest.er1
  13747. cat conftest.err >&5
  13748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13749. (exit $ac_status); } && {
  13750. test -z "$ac_cxx_werror_flag" ||
  13751. test ! -s conftest.err
  13752. } && test -s conftest.$ac_objext; then
  13753. ac_cv_have_decl_feof_unlocked=yes
  13754. else
  13755. $as_echo "$as_me: failed program was:" >&5
  13756. sed 's/^/| /' conftest.$ac_ext >&5
  13757. ac_cv_have_decl_feof_unlocked=no
  13758. fi
  13759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13760. fi
  13761. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13762. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13763. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13764. gt_value=1
  13765. else
  13766. gt_value=0
  13767. fi
  13768. cat >>confdefs.h <<_ACEOF
  13769. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13770. _ACEOF
  13771. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13772. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13773. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. cat >conftest.$ac_ext <<_ACEOF
  13777. /* confdefs.h. */
  13778. _ACEOF
  13779. cat confdefs.h >>conftest.$ac_ext
  13780. cat >>conftest.$ac_ext <<_ACEOF
  13781. /* end confdefs.h. */
  13782. #include <stdio.h>
  13783. int
  13784. main ()
  13785. {
  13786. #ifndef fgets_unlocked
  13787. char *p = (char *) fgets_unlocked;
  13788. #endif
  13789. ;
  13790. return 0;
  13791. }
  13792. _ACEOF
  13793. rm -f conftest.$ac_objext
  13794. if { (ac_try="$ac_compile"
  13795. case "(($ac_try" in
  13796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13797. *) ac_try_echo=$ac_try;;
  13798. esac
  13799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13800. $as_echo "$ac_try_echo") >&5
  13801. (eval "$ac_compile") 2>conftest.er1
  13802. ac_status=$?
  13803. grep -v '^ *+' conftest.er1 >conftest.err
  13804. rm -f conftest.er1
  13805. cat conftest.err >&5
  13806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13807. (exit $ac_status); } && {
  13808. test -z "$ac_cxx_werror_flag" ||
  13809. test ! -s conftest.err
  13810. } && test -s conftest.$ac_objext; then
  13811. ac_cv_have_decl_fgets_unlocked=yes
  13812. else
  13813. $as_echo "$as_me: failed program was:" >&5
  13814. sed 's/^/| /' conftest.$ac_ext >&5
  13815. ac_cv_have_decl_fgets_unlocked=no
  13816. fi
  13817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13818. fi
  13819. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13820. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13821. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13822. gt_value=1
  13823. else
  13824. gt_value=0
  13825. fi
  13826. cat >>confdefs.h <<_ACEOF
  13827. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13828. _ACEOF
  13829. am_save_CPPFLAGS="$CPPFLAGS"
  13830. for element in $INCICONV; do
  13831. haveit=
  13832. for x in $CPPFLAGS; do
  13833. acl_save_prefix="$prefix"
  13834. prefix="$acl_final_prefix"
  13835. acl_save_exec_prefix="$exec_prefix"
  13836. exec_prefix="$acl_final_exec_prefix"
  13837. eval x=\"$x\"
  13838. exec_prefix="$acl_save_exec_prefix"
  13839. prefix="$acl_save_prefix"
  13840. if test "X$x" = "X$element"; then
  13841. haveit=yes
  13842. break
  13843. fi
  13844. done
  13845. if test -z "$haveit"; then
  13846. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13847. fi
  13848. done
  13849. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13850. $as_echo_n "checking for iconv... " >&6; }
  13851. if test "${am_cv_func_iconv+set}" = set; then
  13852. $as_echo_n "(cached) " >&6
  13853. else
  13854. am_cv_func_iconv="no, consider installing GNU libiconv"
  13855. am_cv_lib_iconv=no
  13856. cat >conftest.$ac_ext <<_ACEOF
  13857. /* confdefs.h. */
  13858. _ACEOF
  13859. cat confdefs.h >>conftest.$ac_ext
  13860. cat >>conftest.$ac_ext <<_ACEOF
  13861. /* end confdefs.h. */
  13862. #include <stdlib.h>
  13863. #include <iconv.h>
  13864. int
  13865. main ()
  13866. {
  13867. iconv_t cd = iconv_open("","");
  13868. iconv(cd,NULL,NULL,NULL,NULL);
  13869. iconv_close(cd);
  13870. ;
  13871. return 0;
  13872. }
  13873. _ACEOF
  13874. rm -f conftest.$ac_objext conftest$ac_exeext
  13875. if { (ac_try="$ac_link"
  13876. case "(($ac_try" in
  13877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13878. *) ac_try_echo=$ac_try;;
  13879. esac
  13880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13881. $as_echo "$ac_try_echo") >&5
  13882. (eval "$ac_link") 2>conftest.er1
  13883. ac_status=$?
  13884. grep -v '^ *+' conftest.er1 >conftest.err
  13885. rm -f conftest.er1
  13886. cat conftest.err >&5
  13887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13888. (exit $ac_status); } && {
  13889. test -z "$ac_cxx_werror_flag" ||
  13890. test ! -s conftest.err
  13891. } && test -s conftest$ac_exeext && {
  13892. test "$cross_compiling" = yes ||
  13893. $as_test_x conftest$ac_exeext
  13894. }; then
  13895. am_cv_func_iconv=yes
  13896. else
  13897. $as_echo "$as_me: failed program was:" >&5
  13898. sed 's/^/| /' conftest.$ac_ext >&5
  13899. fi
  13900. rm -rf conftest.dSYM
  13901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13902. conftest$ac_exeext conftest.$ac_ext
  13903. if test "$am_cv_func_iconv" != yes; then
  13904. am_save_LIBS="$LIBS"
  13905. LIBS="$LIBS $LIBICONV"
  13906. cat >conftest.$ac_ext <<_ACEOF
  13907. /* confdefs.h. */
  13908. _ACEOF
  13909. cat confdefs.h >>conftest.$ac_ext
  13910. cat >>conftest.$ac_ext <<_ACEOF
  13911. /* end confdefs.h. */
  13912. #include <stdlib.h>
  13913. #include <iconv.h>
  13914. int
  13915. main ()
  13916. {
  13917. iconv_t cd = iconv_open("","");
  13918. iconv(cd,NULL,NULL,NULL,NULL);
  13919. iconv_close(cd);
  13920. ;
  13921. return 0;
  13922. }
  13923. _ACEOF
  13924. rm -f conftest.$ac_objext conftest$ac_exeext
  13925. if { (ac_try="$ac_link"
  13926. case "(($ac_try" in
  13927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13928. *) ac_try_echo=$ac_try;;
  13929. esac
  13930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13931. $as_echo "$ac_try_echo") >&5
  13932. (eval "$ac_link") 2>conftest.er1
  13933. ac_status=$?
  13934. grep -v '^ *+' conftest.er1 >conftest.err
  13935. rm -f conftest.er1
  13936. cat conftest.err >&5
  13937. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13938. (exit $ac_status); } && {
  13939. test -z "$ac_cxx_werror_flag" ||
  13940. test ! -s conftest.err
  13941. } && test -s conftest$ac_exeext && {
  13942. test "$cross_compiling" = yes ||
  13943. $as_test_x conftest$ac_exeext
  13944. }; then
  13945. am_cv_lib_iconv=yes
  13946. am_cv_func_iconv=yes
  13947. else
  13948. $as_echo "$as_me: failed program was:" >&5
  13949. sed 's/^/| /' conftest.$ac_ext >&5
  13950. fi
  13951. rm -rf conftest.dSYM
  13952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13953. conftest$ac_exeext conftest.$ac_ext
  13954. LIBS="$am_save_LIBS"
  13955. fi
  13956. fi
  13957. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13958. $as_echo "$am_cv_func_iconv" >&6; }
  13959. if test "$am_cv_func_iconv" = yes; then
  13960. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13961. $as_echo_n "checking for working iconv... " >&6; }
  13962. if test "${am_cv_func_iconv_works+set}" = set; then
  13963. $as_echo_n "(cached) " >&6
  13964. else
  13965. am_save_LIBS="$LIBS"
  13966. if test $am_cv_lib_iconv = yes; then
  13967. LIBS="$LIBS $LIBICONV"
  13968. fi
  13969. if test "$cross_compiling" = yes; then
  13970. case "$host_os" in
  13971. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13972. *) am_cv_func_iconv_works="guessing yes" ;;
  13973. esac
  13974. else
  13975. cat >conftest.$ac_ext <<_ACEOF
  13976. /* confdefs.h. */
  13977. _ACEOF
  13978. cat confdefs.h >>conftest.$ac_ext
  13979. cat >>conftest.$ac_ext <<_ACEOF
  13980. /* end confdefs.h. */
  13981. #include <iconv.h>
  13982. #include <string.h>
  13983. int main ()
  13984. {
  13985. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13986. returns. */
  13987. {
  13988. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13989. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13990. {
  13991. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13992. char buf[10];
  13993. const char *inptr = input;
  13994. size_t inbytesleft = strlen (input);
  13995. char *outptr = buf;
  13996. size_t outbytesleft = sizeof (buf);
  13997. size_t res = iconv (cd_utf8_to_88591,
  13998. (char **) &inptr, &inbytesleft,
  13999. &outptr, &outbytesleft);
  14000. if (res == 0)
  14001. return 1;
  14002. }
  14003. }
  14004. #if 0 /* This bug could be worked around by the caller. */
  14005. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  14006. {
  14007. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  14008. if (cd_88591_to_utf8 != (iconv_t)(-1))
  14009. {
  14010. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  14011. char buf[50];
  14012. const char *inptr = input;
  14013. size_t inbytesleft = strlen (input);
  14014. char *outptr = buf;
  14015. size_t outbytesleft = sizeof (buf);
  14016. size_t res = iconv (cd_88591_to_utf8,
  14017. (char **) &inptr, &inbytesleft,
  14018. &outptr, &outbytesleft);
  14019. if ((int)res > 0)
  14020. return 1;
  14021. }
  14022. }
  14023. #endif
  14024. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  14025. provided. */
  14026. if (/* Try standardized names. */
  14027. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  14028. /* Try IRIX, OSF/1 names. */
  14029. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  14030. /* Try AIX names. */
  14031. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  14032. /* Try HP-UX names. */
  14033. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  14034. return 1;
  14035. return 0;
  14036. }
  14037. _ACEOF
  14038. rm -f conftest$ac_exeext
  14039. if { (ac_try="$ac_link"
  14040. case "(($ac_try" in
  14041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14042. *) ac_try_echo=$ac_try;;
  14043. esac
  14044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14045. $as_echo "$ac_try_echo") >&5
  14046. (eval "$ac_link") 2>&5
  14047. ac_status=$?
  14048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14050. { (case "(($ac_try" in
  14051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14052. *) ac_try_echo=$ac_try;;
  14053. esac
  14054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14055. $as_echo "$ac_try_echo") >&5
  14056. (eval "$ac_try") 2>&5
  14057. ac_status=$?
  14058. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14059. (exit $ac_status); }; }; then
  14060. am_cv_func_iconv_works=yes
  14061. else
  14062. $as_echo "$as_me: program exited with status $ac_status" >&5
  14063. $as_echo "$as_me: failed program was:" >&5
  14064. sed 's/^/| /' conftest.$ac_ext >&5
  14065. ( exit $ac_status )
  14066. am_cv_func_iconv_works=no
  14067. fi
  14068. rm -rf conftest.dSYM
  14069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14070. fi
  14071. LIBS="$am_save_LIBS"
  14072. fi
  14073. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  14074. $as_echo "$am_cv_func_iconv_works" >&6; }
  14075. case "$am_cv_func_iconv_works" in
  14076. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  14077. *) am_func_iconv=yes ;;
  14078. esac
  14079. else
  14080. am_func_iconv=no am_cv_lib_iconv=no
  14081. fi
  14082. if test "$am_func_iconv" = yes; then
  14083. cat >>confdefs.h <<\_ACEOF
  14084. #define HAVE_ICONV 1
  14085. _ACEOF
  14086. fi
  14087. if test "$am_cv_lib_iconv" = yes; then
  14088. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  14089. $as_echo_n "checking how to link with libiconv... " >&6; }
  14090. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  14091. $as_echo "$LIBICONV" >&6; }
  14092. else
  14093. CPPFLAGS="$am_save_CPPFLAGS"
  14094. LIBICONV=
  14095. LTLIBICONV=
  14096. fi
  14097. if test "$am_cv_func_iconv" = yes; then
  14098. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  14099. $as_echo_n "checking for iconv declaration... " >&6; }
  14100. if test "${am_cv_proto_iconv+set}" = set; then
  14101. $as_echo_n "(cached) " >&6
  14102. else
  14103. cat >conftest.$ac_ext <<_ACEOF
  14104. /* confdefs.h. */
  14105. _ACEOF
  14106. cat confdefs.h >>conftest.$ac_ext
  14107. cat >>conftest.$ac_ext <<_ACEOF
  14108. /* end confdefs.h. */
  14109. #include <stdlib.h>
  14110. #include <iconv.h>
  14111. extern
  14112. #ifdef __cplusplus
  14113. "C"
  14114. #endif
  14115. #if defined(__STDC__) || defined(__cplusplus)
  14116. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  14117. #else
  14118. size_t iconv();
  14119. #endif
  14120. int
  14121. main ()
  14122. {
  14123. ;
  14124. return 0;
  14125. }
  14126. _ACEOF
  14127. rm -f conftest.$ac_objext
  14128. if { (ac_try="$ac_compile"
  14129. case "(($ac_try" in
  14130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14131. *) ac_try_echo=$ac_try;;
  14132. esac
  14133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14134. $as_echo "$ac_try_echo") >&5
  14135. (eval "$ac_compile") 2>conftest.er1
  14136. ac_status=$?
  14137. grep -v '^ *+' conftest.er1 >conftest.err
  14138. rm -f conftest.er1
  14139. cat conftest.err >&5
  14140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14141. (exit $ac_status); } && {
  14142. test -z "$ac_cxx_werror_flag" ||
  14143. test ! -s conftest.err
  14144. } && test -s conftest.$ac_objext; then
  14145. am_cv_proto_iconv_arg1=""
  14146. else
  14147. $as_echo "$as_me: failed program was:" >&5
  14148. sed 's/^/| /' conftest.$ac_ext >&5
  14149. am_cv_proto_iconv_arg1="const"
  14150. fi
  14151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14152. 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);"
  14153. fi
  14154. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  14155. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  14156. }$am_cv_proto_iconv" >&5
  14157. $as_echo "${ac_t:-
  14158. }$am_cv_proto_iconv" >&6; }
  14159. cat >>confdefs.h <<_ACEOF
  14160. #define ICONV_CONST $am_cv_proto_iconv_arg1
  14161. _ACEOF
  14162. fi
  14163. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  14164. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  14165. if test "${gt_cv_nl_locale_name+set}" = set; then
  14166. $as_echo_n "(cached) " >&6
  14167. else
  14168. cat >conftest.$ac_ext <<_ACEOF
  14169. /* confdefs.h. */
  14170. _ACEOF
  14171. cat confdefs.h >>conftest.$ac_ext
  14172. cat >>conftest.$ac_ext <<_ACEOF
  14173. /* end confdefs.h. */
  14174. #include <langinfo.h>
  14175. #include <locale.h>
  14176. int
  14177. main ()
  14178. {
  14179. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  14180. return !cs;
  14181. ;
  14182. return 0;
  14183. }
  14184. _ACEOF
  14185. rm -f conftest.$ac_objext conftest$ac_exeext
  14186. if { (ac_try="$ac_link"
  14187. case "(($ac_try" in
  14188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14189. *) ac_try_echo=$ac_try;;
  14190. esac
  14191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14192. $as_echo "$ac_try_echo") >&5
  14193. (eval "$ac_link") 2>conftest.er1
  14194. ac_status=$?
  14195. grep -v '^ *+' conftest.er1 >conftest.err
  14196. rm -f conftest.er1
  14197. cat conftest.err >&5
  14198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14199. (exit $ac_status); } && {
  14200. test -z "$ac_cxx_werror_flag" ||
  14201. test ! -s conftest.err
  14202. } && test -s conftest$ac_exeext && {
  14203. test "$cross_compiling" = yes ||
  14204. $as_test_x conftest$ac_exeext
  14205. }; then
  14206. gt_cv_nl_locale_name=yes
  14207. else
  14208. $as_echo "$as_me: failed program was:" >&5
  14209. sed 's/^/| /' conftest.$ac_ext >&5
  14210. gt_cv_nl_locale_name=no
  14211. fi
  14212. rm -rf conftest.dSYM
  14213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14214. conftest$ac_exeext conftest.$ac_ext
  14215. fi
  14216. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  14217. $as_echo "$gt_cv_nl_locale_name" >&6; }
  14218. if test $gt_cv_nl_locale_name = yes; then
  14219. cat >>confdefs.h <<\_ACEOF
  14220. #define HAVE_NL_LOCALE_NAME 1
  14221. _ACEOF
  14222. fi
  14223. for ac_prog in bison
  14224. do
  14225. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14226. set dummy $ac_prog; ac_word=$2
  14227. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14228. $as_echo_n "checking for $ac_word... " >&6; }
  14229. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  14230. $as_echo_n "(cached) " >&6
  14231. else
  14232. if test -n "$INTLBISON"; then
  14233. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  14234. else
  14235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14236. for as_dir in $PATH
  14237. do
  14238. IFS=$as_save_IFS
  14239. test -z "$as_dir" && as_dir=.
  14240. for ac_exec_ext in '' $ac_executable_extensions; do
  14241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14242. ac_cv_prog_INTLBISON="$ac_prog"
  14243. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14244. break 2
  14245. fi
  14246. done
  14247. done
  14248. IFS=$as_save_IFS
  14249. fi
  14250. fi
  14251. INTLBISON=$ac_cv_prog_INTLBISON
  14252. if test -n "$INTLBISON"; then
  14253. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14254. $as_echo "$INTLBISON" >&6; }
  14255. else
  14256. { $as_echo "$as_me:$LINENO: result: no" >&5
  14257. $as_echo "no" >&6; }
  14258. fi
  14259. test -n "$INTLBISON" && break
  14260. done
  14261. if test -z "$INTLBISON"; then
  14262. ac_verc_fail=yes
  14263. else
  14264. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14265. $as_echo_n "checking version of bison... " >&6; }
  14266. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14267. case $ac_prog_version in
  14268. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14269. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14270. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14271. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14272. esac
  14273. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14274. $as_echo "$ac_prog_version" >&6; }
  14275. fi
  14276. if test $ac_verc_fail = yes; then
  14277. INTLBISON=:
  14278. fi
  14279. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14280. $as_echo_n "checking for long long int... " >&6; }
  14281. if test "${ac_cv_type_long_long_int+set}" = set; then
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. cat >conftest.$ac_ext <<_ACEOF
  14285. /* confdefs.h. */
  14286. _ACEOF
  14287. cat confdefs.h >>conftest.$ac_ext
  14288. cat >>conftest.$ac_ext <<_ACEOF
  14289. /* end confdefs.h. */
  14290. /* Test preprocessor. */
  14291. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14292. error in preprocessor;
  14293. #endif
  14294. #if ! (18446744073709551615ULL <= -1ull)
  14295. error in preprocessor;
  14296. #endif
  14297. /* Test literals. */
  14298. long long int ll = 9223372036854775807ll;
  14299. long long int nll = -9223372036854775807LL;
  14300. unsigned long long int ull = 18446744073709551615ULL;
  14301. /* Test constant expressions. */
  14302. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14303. ? 1 : -1)];
  14304. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14305. ? 1 : -1)];
  14306. int i = 63;
  14307. int
  14308. main ()
  14309. {
  14310. /* Test availability of runtime routines for shift and division. */
  14311. long long int llmax = 9223372036854775807ll;
  14312. unsigned long long int ullmax = 18446744073709551615ull;
  14313. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14314. | (llmax / ll) | (llmax % ll)
  14315. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14316. | (ullmax / ull) | (ullmax % ull));
  14317. ;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. rm -f conftest.$ac_objext conftest$ac_exeext
  14322. if { (ac_try="$ac_link"
  14323. case "(($ac_try" in
  14324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14325. *) ac_try_echo=$ac_try;;
  14326. esac
  14327. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14328. $as_echo "$ac_try_echo") >&5
  14329. (eval "$ac_link") 2>conftest.er1
  14330. ac_status=$?
  14331. grep -v '^ *+' conftest.er1 >conftest.err
  14332. rm -f conftest.er1
  14333. cat conftest.err >&5
  14334. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14335. (exit $ac_status); } && {
  14336. test -z "$ac_cxx_werror_flag" ||
  14337. test ! -s conftest.err
  14338. } && test -s conftest$ac_exeext && {
  14339. test "$cross_compiling" = yes ||
  14340. $as_test_x conftest$ac_exeext
  14341. }; then
  14342. if test "$cross_compiling" = yes; then
  14343. ac_cv_type_long_long_int=yes
  14344. else
  14345. cat >conftest.$ac_ext <<_ACEOF
  14346. /* confdefs.h. */
  14347. _ACEOF
  14348. cat confdefs.h >>conftest.$ac_ext
  14349. cat >>conftest.$ac_ext <<_ACEOF
  14350. /* end confdefs.h. */
  14351. #include <limits.h>
  14352. #ifndef LLONG_MAX
  14353. # define HALF \
  14354. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14355. # define LLONG_MAX (HALF - 1 + HALF)
  14356. #endif
  14357. int
  14358. main ()
  14359. {
  14360. long long int n = 1;
  14361. int i;
  14362. for (i = 0; ; i++)
  14363. {
  14364. long long int m = n << i;
  14365. if (m >> i != n)
  14366. return 1;
  14367. if (LLONG_MAX / 2 < m)
  14368. break;
  14369. }
  14370. return 0;
  14371. ;
  14372. return 0;
  14373. }
  14374. _ACEOF
  14375. rm -f conftest$ac_exeext
  14376. if { (ac_try="$ac_link"
  14377. case "(($ac_try" in
  14378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14379. *) ac_try_echo=$ac_try;;
  14380. esac
  14381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14382. $as_echo "$ac_try_echo") >&5
  14383. (eval "$ac_link") 2>&5
  14384. ac_status=$?
  14385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14386. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14387. { (case "(($ac_try" in
  14388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14389. *) ac_try_echo=$ac_try;;
  14390. esac
  14391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14392. $as_echo "$ac_try_echo") >&5
  14393. (eval "$ac_try") 2>&5
  14394. ac_status=$?
  14395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14396. (exit $ac_status); }; }; then
  14397. ac_cv_type_long_long_int=yes
  14398. else
  14399. $as_echo "$as_me: program exited with status $ac_status" >&5
  14400. $as_echo "$as_me: failed program was:" >&5
  14401. sed 's/^/| /' conftest.$ac_ext >&5
  14402. ( exit $ac_status )
  14403. ac_cv_type_long_long_int=no
  14404. fi
  14405. rm -rf conftest.dSYM
  14406. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14407. fi
  14408. else
  14409. $as_echo "$as_me: failed program was:" >&5
  14410. sed 's/^/| /' conftest.$ac_ext >&5
  14411. ac_cv_type_long_long_int=no
  14412. fi
  14413. rm -rf conftest.dSYM
  14414. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14415. conftest$ac_exeext conftest.$ac_ext
  14416. fi
  14417. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14418. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14419. if test $ac_cv_type_long_long_int = yes; then
  14420. cat >>confdefs.h <<\_ACEOF
  14421. #define HAVE_LONG_LONG_INT 1
  14422. _ACEOF
  14423. fi
  14424. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14425. $as_echo_n "checking for wchar_t... " >&6; }
  14426. if test "${gt_cv_c_wchar_t+set}" = set; then
  14427. $as_echo_n "(cached) " >&6
  14428. else
  14429. cat >conftest.$ac_ext <<_ACEOF
  14430. /* confdefs.h. */
  14431. _ACEOF
  14432. cat confdefs.h >>conftest.$ac_ext
  14433. cat >>conftest.$ac_ext <<_ACEOF
  14434. /* end confdefs.h. */
  14435. #include <stddef.h>
  14436. wchar_t foo = (wchar_t)'\0';
  14437. int
  14438. main ()
  14439. {
  14440. ;
  14441. return 0;
  14442. }
  14443. _ACEOF
  14444. rm -f conftest.$ac_objext
  14445. if { (ac_try="$ac_compile"
  14446. case "(($ac_try" in
  14447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14448. *) ac_try_echo=$ac_try;;
  14449. esac
  14450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14451. $as_echo "$ac_try_echo") >&5
  14452. (eval "$ac_compile") 2>conftest.er1
  14453. ac_status=$?
  14454. grep -v '^ *+' conftest.er1 >conftest.err
  14455. rm -f conftest.er1
  14456. cat conftest.err >&5
  14457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14458. (exit $ac_status); } && {
  14459. test -z "$ac_cxx_werror_flag" ||
  14460. test ! -s conftest.err
  14461. } && test -s conftest.$ac_objext; then
  14462. gt_cv_c_wchar_t=yes
  14463. else
  14464. $as_echo "$as_me: failed program was:" >&5
  14465. sed 's/^/| /' conftest.$ac_ext >&5
  14466. gt_cv_c_wchar_t=no
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14469. fi
  14470. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14471. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14472. if test $gt_cv_c_wchar_t = yes; then
  14473. cat >>confdefs.h <<\_ACEOF
  14474. #define HAVE_WCHAR_T 1
  14475. _ACEOF
  14476. fi
  14477. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14478. $as_echo_n "checking for wint_t... " >&6; }
  14479. if test "${gt_cv_c_wint_t+set}" = set; then
  14480. $as_echo_n "(cached) " >&6
  14481. else
  14482. cat >conftest.$ac_ext <<_ACEOF
  14483. /* confdefs.h. */
  14484. _ACEOF
  14485. cat confdefs.h >>conftest.$ac_ext
  14486. cat >>conftest.$ac_ext <<_ACEOF
  14487. /* end confdefs.h. */
  14488. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14489. <wchar.h>.
  14490. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14491. before <wchar.h>. */
  14492. #include <stddef.h>
  14493. #include <stdio.h>
  14494. #include <time.h>
  14495. #include <wchar.h>
  14496. wint_t foo = (wchar_t)'\0';
  14497. int
  14498. main ()
  14499. {
  14500. ;
  14501. return 0;
  14502. }
  14503. _ACEOF
  14504. rm -f conftest.$ac_objext
  14505. if { (ac_try="$ac_compile"
  14506. case "(($ac_try" in
  14507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14508. *) ac_try_echo=$ac_try;;
  14509. esac
  14510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14511. $as_echo "$ac_try_echo") >&5
  14512. (eval "$ac_compile") 2>conftest.er1
  14513. ac_status=$?
  14514. grep -v '^ *+' conftest.er1 >conftest.err
  14515. rm -f conftest.er1
  14516. cat conftest.err >&5
  14517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14518. (exit $ac_status); } && {
  14519. test -z "$ac_cxx_werror_flag" ||
  14520. test ! -s conftest.err
  14521. } && test -s conftest.$ac_objext; then
  14522. gt_cv_c_wint_t=yes
  14523. else
  14524. $as_echo "$as_me: failed program was:" >&5
  14525. sed 's/^/| /' conftest.$ac_ext >&5
  14526. gt_cv_c_wint_t=no
  14527. fi
  14528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14529. fi
  14530. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14531. $as_echo "$gt_cv_c_wint_t" >&6; }
  14532. if test $gt_cv_c_wint_t = yes; then
  14533. cat >>confdefs.h <<\_ACEOF
  14534. #define HAVE_WINT_T 1
  14535. _ACEOF
  14536. fi
  14537. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14538. $as_echo_n "checking for intmax_t... " >&6; }
  14539. if test "${gt_cv_c_intmax_t+set}" = set; then
  14540. $as_echo_n "(cached) " >&6
  14541. else
  14542. cat >conftest.$ac_ext <<_ACEOF
  14543. /* confdefs.h. */
  14544. _ACEOF
  14545. cat confdefs.h >>conftest.$ac_ext
  14546. cat >>conftest.$ac_ext <<_ACEOF
  14547. /* end confdefs.h. */
  14548. #include <stddef.h>
  14549. #include <stdlib.h>
  14550. #if HAVE_STDINT_H_WITH_UINTMAX
  14551. #include <stdint.h>
  14552. #endif
  14553. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14554. #include <inttypes.h>
  14555. #endif
  14556. int
  14557. main ()
  14558. {
  14559. intmax_t x = -1;
  14560. return !x;
  14561. ;
  14562. return 0;
  14563. }
  14564. _ACEOF
  14565. rm -f conftest.$ac_objext
  14566. if { (ac_try="$ac_compile"
  14567. case "(($ac_try" in
  14568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14569. *) ac_try_echo=$ac_try;;
  14570. esac
  14571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14572. $as_echo "$ac_try_echo") >&5
  14573. (eval "$ac_compile") 2>conftest.er1
  14574. ac_status=$?
  14575. grep -v '^ *+' conftest.er1 >conftest.err
  14576. rm -f conftest.er1
  14577. cat conftest.err >&5
  14578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14579. (exit $ac_status); } && {
  14580. test -z "$ac_cxx_werror_flag" ||
  14581. test ! -s conftest.err
  14582. } && test -s conftest.$ac_objext; then
  14583. gt_cv_c_intmax_t=yes
  14584. else
  14585. $as_echo "$as_me: failed program was:" >&5
  14586. sed 's/^/| /' conftest.$ac_ext >&5
  14587. gt_cv_c_intmax_t=no
  14588. fi
  14589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14590. fi
  14591. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14592. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14593. if test $gt_cv_c_intmax_t = yes; then
  14594. cat >>confdefs.h <<\_ACEOF
  14595. #define HAVE_INTMAX_T 1
  14596. _ACEOF
  14597. fi
  14598. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14599. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14600. if test "${gt_cv_func_printf_posix+set}" = set; then
  14601. $as_echo_n "(cached) " >&6
  14602. else
  14603. if test "$cross_compiling" = yes; then
  14604. cat >conftest.$ac_ext <<_ACEOF
  14605. /* confdefs.h. */
  14606. _ACEOF
  14607. cat confdefs.h >>conftest.$ac_ext
  14608. cat >>conftest.$ac_ext <<_ACEOF
  14609. /* end confdefs.h. */
  14610. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14611. notposix
  14612. #endif
  14613. _ACEOF
  14614. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14615. $EGREP "notposix" >/dev/null 2>&1; then
  14616. gt_cv_func_printf_posix="guessing no"
  14617. else
  14618. gt_cv_func_printf_posix="guessing yes"
  14619. fi
  14620. rm -f conftest*
  14621. else
  14622. cat >conftest.$ac_ext <<_ACEOF
  14623. /* confdefs.h. */
  14624. _ACEOF
  14625. cat confdefs.h >>conftest.$ac_ext
  14626. cat >>conftest.$ac_ext <<_ACEOF
  14627. /* end confdefs.h. */
  14628. #include <stdio.h>
  14629. #include <string.h>
  14630. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14631. dollar expansion (possibly an autoconf bug). */
  14632. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14633. static char buf[100];
  14634. int main ()
  14635. {
  14636. sprintf (buf, format, 33, 55);
  14637. return (strcmp (buf, "55 33") != 0);
  14638. }
  14639. _ACEOF
  14640. rm -f conftest$ac_exeext
  14641. if { (ac_try="$ac_link"
  14642. case "(($ac_try" in
  14643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14644. *) ac_try_echo=$ac_try;;
  14645. esac
  14646. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14647. $as_echo "$ac_try_echo") >&5
  14648. (eval "$ac_link") 2>&5
  14649. ac_status=$?
  14650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14651. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14652. { (case "(($ac_try" in
  14653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14654. *) ac_try_echo=$ac_try;;
  14655. esac
  14656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14657. $as_echo "$ac_try_echo") >&5
  14658. (eval "$ac_try") 2>&5
  14659. ac_status=$?
  14660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14661. (exit $ac_status); }; }; then
  14662. gt_cv_func_printf_posix=yes
  14663. else
  14664. $as_echo "$as_me: program exited with status $ac_status" >&5
  14665. $as_echo "$as_me: failed program was:" >&5
  14666. sed 's/^/| /' conftest.$ac_ext >&5
  14667. ( exit $ac_status )
  14668. gt_cv_func_printf_posix=no
  14669. fi
  14670. rm -rf conftest.dSYM
  14671. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14672. fi
  14673. fi
  14674. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14675. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14676. case $gt_cv_func_printf_posix in
  14677. *yes)
  14678. cat >>confdefs.h <<\_ACEOF
  14679. #define HAVE_POSIX_PRINTF 1
  14680. _ACEOF
  14681. ;;
  14682. esac
  14683. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14684. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14685. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14686. $as_echo_n "(cached) " >&6
  14687. else
  14688. cat >conftest.$ac_ext <<_ACEOF
  14689. /* confdefs.h. */
  14690. _ACEOF
  14691. cat confdefs.h >>conftest.$ac_ext
  14692. cat >>conftest.$ac_ext <<_ACEOF
  14693. /* end confdefs.h. */
  14694. #include <features.h>
  14695. #ifdef __GNU_LIBRARY__
  14696. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14697. Lucky GNU user
  14698. #endif
  14699. #endif
  14700. _ACEOF
  14701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14702. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14703. ac_cv_gnu_library_2_1=yes
  14704. else
  14705. ac_cv_gnu_library_2_1=no
  14706. fi
  14707. rm -f conftest*
  14708. fi
  14709. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14710. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14711. GLIBC21="$ac_cv_gnu_library_2_1"
  14712. for ac_header in stdint.h
  14713. do
  14714. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14716. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14717. $as_echo_n "checking for $ac_header... " >&6; }
  14718. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14719. $as_echo_n "(cached) " >&6
  14720. fi
  14721. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14722. $as_echo "$as_val"'`
  14723. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14724. $as_echo "$ac_res" >&6; }
  14725. else
  14726. # Is the header compilable?
  14727. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14728. $as_echo_n "checking $ac_header usability... " >&6; }
  14729. cat >conftest.$ac_ext <<_ACEOF
  14730. /* confdefs.h. */
  14731. _ACEOF
  14732. cat confdefs.h >>conftest.$ac_ext
  14733. cat >>conftest.$ac_ext <<_ACEOF
  14734. /* end confdefs.h. */
  14735. $ac_includes_default
  14736. #include <$ac_header>
  14737. _ACEOF
  14738. rm -f conftest.$ac_objext
  14739. if { (ac_try="$ac_compile"
  14740. case "(($ac_try" in
  14741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14742. *) ac_try_echo=$ac_try;;
  14743. esac
  14744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14745. $as_echo "$ac_try_echo") >&5
  14746. (eval "$ac_compile") 2>conftest.er1
  14747. ac_status=$?
  14748. grep -v '^ *+' conftest.er1 >conftest.err
  14749. rm -f conftest.er1
  14750. cat conftest.err >&5
  14751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14752. (exit $ac_status); } && {
  14753. test -z "$ac_cxx_werror_flag" ||
  14754. test ! -s conftest.err
  14755. } && test -s conftest.$ac_objext; then
  14756. ac_header_compiler=yes
  14757. else
  14758. $as_echo "$as_me: failed program was:" >&5
  14759. sed 's/^/| /' conftest.$ac_ext >&5
  14760. ac_header_compiler=no
  14761. fi
  14762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14763. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14764. $as_echo "$ac_header_compiler" >&6; }
  14765. # Is the header present?
  14766. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14767. $as_echo_n "checking $ac_header presence... " >&6; }
  14768. cat >conftest.$ac_ext <<_ACEOF
  14769. /* confdefs.h. */
  14770. _ACEOF
  14771. cat confdefs.h >>conftest.$ac_ext
  14772. cat >>conftest.$ac_ext <<_ACEOF
  14773. /* end confdefs.h. */
  14774. #include <$ac_header>
  14775. _ACEOF
  14776. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14777. case "(($ac_try" in
  14778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14779. *) ac_try_echo=$ac_try;;
  14780. esac
  14781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14782. $as_echo "$ac_try_echo") >&5
  14783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14784. ac_status=$?
  14785. grep -v '^ *+' conftest.er1 >conftest.err
  14786. rm -f conftest.er1
  14787. cat conftest.err >&5
  14788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14789. (exit $ac_status); } >/dev/null && {
  14790. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14791. test ! -s conftest.err
  14792. }; then
  14793. ac_header_preproc=yes
  14794. else
  14795. $as_echo "$as_me: failed program was:" >&5
  14796. sed 's/^/| /' conftest.$ac_ext >&5
  14797. ac_header_preproc=no
  14798. fi
  14799. rm -f conftest.err conftest.$ac_ext
  14800. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14801. $as_echo "$ac_header_preproc" >&6; }
  14802. # So? What about this header?
  14803. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14804. yes:no: )
  14805. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14806. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14807. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14808. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14809. ac_header_preproc=yes
  14810. ;;
  14811. no:yes:* )
  14812. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14813. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14814. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14815. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14816. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14817. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14818. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14819. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14820. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14821. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14822. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14823. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14824. ( cat <<\_ASBOX
  14825. ## ----------------------------------------------- ##
  14826. ## Report this to t-tujikawa@users.sourceforge.net ##
  14827. ## ----------------------------------------------- ##
  14828. _ASBOX
  14829. ) | sed "s/^/$as_me: WARNING: /" >&2
  14830. ;;
  14831. esac
  14832. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14833. $as_echo_n "checking for $ac_header... " >&6; }
  14834. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14835. $as_echo_n "(cached) " >&6
  14836. else
  14837. eval "$as_ac_Header=\$ac_header_preproc"
  14838. fi
  14839. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14840. $as_echo "$as_val"'`
  14841. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14842. $as_echo "$ac_res" >&6; }
  14843. fi
  14844. as_val=`eval 'as_val=${'$as_ac_Header'}
  14845. $as_echo "$as_val"'`
  14846. if test "x$as_val" = x""yes; then
  14847. cat >>confdefs.h <<_ACEOF
  14848. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14849. _ACEOF
  14850. fi
  14851. done
  14852. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14853. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14854. if test "${gl_cv_size_max+set}" = set; then
  14855. $as_echo_n "(cached) " >&6
  14856. else
  14857. gl_cv_size_max=
  14858. cat >conftest.$ac_ext <<_ACEOF
  14859. /* confdefs.h. */
  14860. _ACEOF
  14861. cat confdefs.h >>conftest.$ac_ext
  14862. cat >>conftest.$ac_ext <<_ACEOF
  14863. /* end confdefs.h. */
  14864. #include <limits.h>
  14865. #if HAVE_STDINT_H
  14866. #include <stdint.h>
  14867. #endif
  14868. #ifdef SIZE_MAX
  14869. Found it
  14870. #endif
  14871. _ACEOF
  14872. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14873. $EGREP "Found it" >/dev/null 2>&1; then
  14874. gl_cv_size_max=yes
  14875. fi
  14876. rm -f conftest*
  14877. if test -z "$gl_cv_size_max"; then
  14878. if test "$cross_compiling" = yes; then
  14879. # Depending upon the size, compute the lo and hi bounds.
  14880. cat >conftest.$ac_ext <<_ACEOF
  14881. /* confdefs.h. */
  14882. _ACEOF
  14883. cat confdefs.h >>conftest.$ac_ext
  14884. cat >>conftest.$ac_ext <<_ACEOF
  14885. /* end confdefs.h. */
  14886. #include <stddef.h>
  14887. #include <limits.h>
  14888. int
  14889. main ()
  14890. {
  14891. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14892. test_array [0] = 0
  14893. ;
  14894. return 0;
  14895. }
  14896. _ACEOF
  14897. rm -f conftest.$ac_objext
  14898. if { (ac_try="$ac_compile"
  14899. case "(($ac_try" in
  14900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14901. *) ac_try_echo=$ac_try;;
  14902. esac
  14903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14904. $as_echo "$ac_try_echo") >&5
  14905. (eval "$ac_compile") 2>conftest.er1
  14906. ac_status=$?
  14907. grep -v '^ *+' conftest.er1 >conftest.err
  14908. rm -f conftest.er1
  14909. cat conftest.err >&5
  14910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14911. (exit $ac_status); } && {
  14912. test -z "$ac_cxx_werror_flag" ||
  14913. test ! -s conftest.err
  14914. } && test -s conftest.$ac_objext; then
  14915. ac_lo=0 ac_mid=0
  14916. while :; do
  14917. cat >conftest.$ac_ext <<_ACEOF
  14918. /* confdefs.h. */
  14919. _ACEOF
  14920. cat confdefs.h >>conftest.$ac_ext
  14921. cat >>conftest.$ac_ext <<_ACEOF
  14922. /* end confdefs.h. */
  14923. #include <stddef.h>
  14924. #include <limits.h>
  14925. int
  14926. main ()
  14927. {
  14928. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14929. test_array [0] = 0
  14930. ;
  14931. return 0;
  14932. }
  14933. _ACEOF
  14934. rm -f conftest.$ac_objext
  14935. if { (ac_try="$ac_compile"
  14936. case "(($ac_try" in
  14937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14938. *) ac_try_echo=$ac_try;;
  14939. esac
  14940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14941. $as_echo "$ac_try_echo") >&5
  14942. (eval "$ac_compile") 2>conftest.er1
  14943. ac_status=$?
  14944. grep -v '^ *+' conftest.er1 >conftest.err
  14945. rm -f conftest.er1
  14946. cat conftest.err >&5
  14947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14948. (exit $ac_status); } && {
  14949. test -z "$ac_cxx_werror_flag" ||
  14950. test ! -s conftest.err
  14951. } && test -s conftest.$ac_objext; then
  14952. ac_hi=$ac_mid; break
  14953. else
  14954. $as_echo "$as_me: failed program was:" >&5
  14955. sed 's/^/| /' conftest.$ac_ext >&5
  14956. ac_lo=`expr $ac_mid + 1`
  14957. if test $ac_lo -le $ac_mid; then
  14958. ac_lo= ac_hi=
  14959. break
  14960. fi
  14961. ac_mid=`expr 2 '*' $ac_mid + 1`
  14962. fi
  14963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14964. done
  14965. else
  14966. $as_echo "$as_me: failed program was:" >&5
  14967. sed 's/^/| /' conftest.$ac_ext >&5
  14968. cat >conftest.$ac_ext <<_ACEOF
  14969. /* confdefs.h. */
  14970. _ACEOF
  14971. cat confdefs.h >>conftest.$ac_ext
  14972. cat >>conftest.$ac_ext <<_ACEOF
  14973. /* end confdefs.h. */
  14974. #include <stddef.h>
  14975. #include <limits.h>
  14976. int
  14977. main ()
  14978. {
  14979. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14980. test_array [0] = 0
  14981. ;
  14982. return 0;
  14983. }
  14984. _ACEOF
  14985. rm -f conftest.$ac_objext
  14986. if { (ac_try="$ac_compile"
  14987. case "(($ac_try" in
  14988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14989. *) ac_try_echo=$ac_try;;
  14990. esac
  14991. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14992. $as_echo "$ac_try_echo") >&5
  14993. (eval "$ac_compile") 2>conftest.er1
  14994. ac_status=$?
  14995. grep -v '^ *+' conftest.er1 >conftest.err
  14996. rm -f conftest.er1
  14997. cat conftest.err >&5
  14998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14999. (exit $ac_status); } && {
  15000. test -z "$ac_cxx_werror_flag" ||
  15001. test ! -s conftest.err
  15002. } && test -s conftest.$ac_objext; then
  15003. ac_hi=-1 ac_mid=-1
  15004. while :; do
  15005. cat >conftest.$ac_ext <<_ACEOF
  15006. /* confdefs.h. */
  15007. _ACEOF
  15008. cat confdefs.h >>conftest.$ac_ext
  15009. cat >>conftest.$ac_ext <<_ACEOF
  15010. /* end confdefs.h. */
  15011. #include <stddef.h>
  15012. #include <limits.h>
  15013. int
  15014. main ()
  15015. {
  15016. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  15017. test_array [0] = 0
  15018. ;
  15019. return 0;
  15020. }
  15021. _ACEOF
  15022. rm -f conftest.$ac_objext
  15023. if { (ac_try="$ac_compile"
  15024. case "(($ac_try" in
  15025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15026. *) ac_try_echo=$ac_try;;
  15027. esac
  15028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15029. $as_echo "$ac_try_echo") >&5
  15030. (eval "$ac_compile") 2>conftest.er1
  15031. ac_status=$?
  15032. grep -v '^ *+' conftest.er1 >conftest.err
  15033. rm -f conftest.er1
  15034. cat conftest.err >&5
  15035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15036. (exit $ac_status); } && {
  15037. test -z "$ac_cxx_werror_flag" ||
  15038. test ! -s conftest.err
  15039. } && test -s conftest.$ac_objext; then
  15040. ac_lo=$ac_mid; break
  15041. else
  15042. $as_echo "$as_me: failed program was:" >&5
  15043. sed 's/^/| /' conftest.$ac_ext >&5
  15044. ac_hi=`expr '(' $ac_mid ')' - 1`
  15045. if test $ac_mid -le $ac_hi; then
  15046. ac_lo= ac_hi=
  15047. break
  15048. fi
  15049. ac_mid=`expr 2 '*' $ac_mid`
  15050. fi
  15051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15052. done
  15053. else
  15054. $as_echo "$as_me: failed program was:" >&5
  15055. sed 's/^/| /' conftest.$ac_ext >&5
  15056. ac_lo= ac_hi=
  15057. fi
  15058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15059. fi
  15060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15061. # Binary search between lo and hi bounds.
  15062. while test "x$ac_lo" != "x$ac_hi"; do
  15063. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15064. cat >conftest.$ac_ext <<_ACEOF
  15065. /* confdefs.h. */
  15066. _ACEOF
  15067. cat confdefs.h >>conftest.$ac_ext
  15068. cat >>conftest.$ac_ext <<_ACEOF
  15069. /* end confdefs.h. */
  15070. #include <stddef.h>
  15071. #include <limits.h>
  15072. int
  15073. main ()
  15074. {
  15075. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  15076. test_array [0] = 0
  15077. ;
  15078. return 0;
  15079. }
  15080. _ACEOF
  15081. rm -f conftest.$ac_objext
  15082. if { (ac_try="$ac_compile"
  15083. case "(($ac_try" in
  15084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15085. *) ac_try_echo=$ac_try;;
  15086. esac
  15087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15088. $as_echo "$ac_try_echo") >&5
  15089. (eval "$ac_compile") 2>conftest.er1
  15090. ac_status=$?
  15091. grep -v '^ *+' conftest.er1 >conftest.err
  15092. rm -f conftest.er1
  15093. cat conftest.err >&5
  15094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15095. (exit $ac_status); } && {
  15096. test -z "$ac_cxx_werror_flag" ||
  15097. test ! -s conftest.err
  15098. } && test -s conftest.$ac_objext; then
  15099. ac_hi=$ac_mid
  15100. else
  15101. $as_echo "$as_me: failed program was:" >&5
  15102. sed 's/^/| /' conftest.$ac_ext >&5
  15103. ac_lo=`expr '(' $ac_mid ')' + 1`
  15104. fi
  15105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15106. done
  15107. case $ac_lo in
  15108. ?*) size_t_bits_minus_1=$ac_lo;;
  15109. '') size_t_bits_minus_1= ;;
  15110. esac
  15111. else
  15112. cat >conftest.$ac_ext <<_ACEOF
  15113. /* confdefs.h. */
  15114. _ACEOF
  15115. cat confdefs.h >>conftest.$ac_ext
  15116. cat >>conftest.$ac_ext <<_ACEOF
  15117. /* end confdefs.h. */
  15118. #include <stddef.h>
  15119. #include <limits.h>
  15120. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15121. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15122. #include <stdio.h>
  15123. #include <stdlib.h>
  15124. int
  15125. main ()
  15126. {
  15127. FILE *f = fopen ("conftest.val", "w");
  15128. if (! f)
  15129. return 1;
  15130. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  15131. {
  15132. long int i = longval ();
  15133. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15134. return 1;
  15135. fprintf (f, "%ld", i);
  15136. }
  15137. else
  15138. {
  15139. unsigned long int i = ulongval ();
  15140. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15141. return 1;
  15142. fprintf (f, "%lu", i);
  15143. }
  15144. /* Do not output a trailing newline, as this causes \r\n confusion
  15145. on some platforms. */
  15146. return ferror (f) || fclose (f) != 0;
  15147. ;
  15148. return 0;
  15149. }
  15150. _ACEOF
  15151. rm -f conftest$ac_exeext
  15152. if { (ac_try="$ac_link"
  15153. case "(($ac_try" in
  15154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15155. *) ac_try_echo=$ac_try;;
  15156. esac
  15157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15158. $as_echo "$ac_try_echo") >&5
  15159. (eval "$ac_link") 2>&5
  15160. ac_status=$?
  15161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15162. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15163. { (case "(($ac_try" in
  15164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15165. *) ac_try_echo=$ac_try;;
  15166. esac
  15167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15168. $as_echo "$ac_try_echo") >&5
  15169. (eval "$ac_try") 2>&5
  15170. ac_status=$?
  15171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15172. (exit $ac_status); }; }; then
  15173. size_t_bits_minus_1=`cat conftest.val`
  15174. else
  15175. $as_echo "$as_me: program exited with status $ac_status" >&5
  15176. $as_echo "$as_me: failed program was:" >&5
  15177. sed 's/^/| /' conftest.$ac_ext >&5
  15178. ( exit $ac_status )
  15179. size_t_bits_minus_1=
  15180. fi
  15181. rm -rf conftest.dSYM
  15182. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15183. fi
  15184. rm -f conftest.val
  15185. if test "$cross_compiling" = yes; then
  15186. # Depending upon the size, compute the lo and hi bounds.
  15187. cat >conftest.$ac_ext <<_ACEOF
  15188. /* confdefs.h. */
  15189. _ACEOF
  15190. cat confdefs.h >>conftest.$ac_ext
  15191. cat >>conftest.$ac_ext <<_ACEOF
  15192. /* end confdefs.h. */
  15193. #include <stddef.h>
  15194. int
  15195. main ()
  15196. {
  15197. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  15198. test_array [0] = 0
  15199. ;
  15200. return 0;
  15201. }
  15202. _ACEOF
  15203. rm -f conftest.$ac_objext
  15204. if { (ac_try="$ac_compile"
  15205. case "(($ac_try" in
  15206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15207. *) ac_try_echo=$ac_try;;
  15208. esac
  15209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15210. $as_echo "$ac_try_echo") >&5
  15211. (eval "$ac_compile") 2>conftest.er1
  15212. ac_status=$?
  15213. grep -v '^ *+' conftest.er1 >conftest.err
  15214. rm -f conftest.er1
  15215. cat conftest.err >&5
  15216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15217. (exit $ac_status); } && {
  15218. test -z "$ac_cxx_werror_flag" ||
  15219. test ! -s conftest.err
  15220. } && test -s conftest.$ac_objext; then
  15221. ac_lo=0 ac_mid=0
  15222. while :; do
  15223. cat >conftest.$ac_ext <<_ACEOF
  15224. /* confdefs.h. */
  15225. _ACEOF
  15226. cat confdefs.h >>conftest.$ac_ext
  15227. cat >>conftest.$ac_ext <<_ACEOF
  15228. /* end confdefs.h. */
  15229. #include <stddef.h>
  15230. int
  15231. main ()
  15232. {
  15233. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15234. test_array [0] = 0
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. rm -f conftest.$ac_objext
  15240. if { (ac_try="$ac_compile"
  15241. case "(($ac_try" in
  15242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15243. *) ac_try_echo=$ac_try;;
  15244. esac
  15245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15246. $as_echo "$ac_try_echo") >&5
  15247. (eval "$ac_compile") 2>conftest.er1
  15248. ac_status=$?
  15249. grep -v '^ *+' conftest.er1 >conftest.err
  15250. rm -f conftest.er1
  15251. cat conftest.err >&5
  15252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15253. (exit $ac_status); } && {
  15254. test -z "$ac_cxx_werror_flag" ||
  15255. test ! -s conftest.err
  15256. } && test -s conftest.$ac_objext; then
  15257. ac_hi=$ac_mid; break
  15258. else
  15259. $as_echo "$as_me: failed program was:" >&5
  15260. sed 's/^/| /' conftest.$ac_ext >&5
  15261. ac_lo=`expr $ac_mid + 1`
  15262. if test $ac_lo -le $ac_mid; then
  15263. ac_lo= ac_hi=
  15264. break
  15265. fi
  15266. ac_mid=`expr 2 '*' $ac_mid + 1`
  15267. fi
  15268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15269. done
  15270. else
  15271. $as_echo "$as_me: failed program was:" >&5
  15272. sed 's/^/| /' conftest.$ac_ext >&5
  15273. cat >conftest.$ac_ext <<_ACEOF
  15274. /* confdefs.h. */
  15275. _ACEOF
  15276. cat confdefs.h >>conftest.$ac_ext
  15277. cat >>conftest.$ac_ext <<_ACEOF
  15278. /* end confdefs.h. */
  15279. #include <stddef.h>
  15280. int
  15281. main ()
  15282. {
  15283. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15284. test_array [0] = 0
  15285. ;
  15286. return 0;
  15287. }
  15288. _ACEOF
  15289. rm -f conftest.$ac_objext
  15290. if { (ac_try="$ac_compile"
  15291. case "(($ac_try" in
  15292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15293. *) ac_try_echo=$ac_try;;
  15294. esac
  15295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15296. $as_echo "$ac_try_echo") >&5
  15297. (eval "$ac_compile") 2>conftest.er1
  15298. ac_status=$?
  15299. grep -v '^ *+' conftest.er1 >conftest.err
  15300. rm -f conftest.er1
  15301. cat conftest.err >&5
  15302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15303. (exit $ac_status); } && {
  15304. test -z "$ac_cxx_werror_flag" ||
  15305. test ! -s conftest.err
  15306. } && test -s conftest.$ac_objext; then
  15307. ac_hi=-1 ac_mid=-1
  15308. while :; do
  15309. cat >conftest.$ac_ext <<_ACEOF
  15310. /* confdefs.h. */
  15311. _ACEOF
  15312. cat confdefs.h >>conftest.$ac_ext
  15313. cat >>conftest.$ac_ext <<_ACEOF
  15314. /* end confdefs.h. */
  15315. #include <stddef.h>
  15316. int
  15317. main ()
  15318. {
  15319. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15320. test_array [0] = 0
  15321. ;
  15322. return 0;
  15323. }
  15324. _ACEOF
  15325. rm -f conftest.$ac_objext
  15326. if { (ac_try="$ac_compile"
  15327. case "(($ac_try" in
  15328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15329. *) ac_try_echo=$ac_try;;
  15330. esac
  15331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15332. $as_echo "$ac_try_echo") >&5
  15333. (eval "$ac_compile") 2>conftest.er1
  15334. ac_status=$?
  15335. grep -v '^ *+' conftest.er1 >conftest.err
  15336. rm -f conftest.er1
  15337. cat conftest.err >&5
  15338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15339. (exit $ac_status); } && {
  15340. test -z "$ac_cxx_werror_flag" ||
  15341. test ! -s conftest.err
  15342. } && test -s conftest.$ac_objext; then
  15343. ac_lo=$ac_mid; break
  15344. else
  15345. $as_echo "$as_me: failed program was:" >&5
  15346. sed 's/^/| /' conftest.$ac_ext >&5
  15347. ac_hi=`expr '(' $ac_mid ')' - 1`
  15348. if test $ac_mid -le $ac_hi; then
  15349. ac_lo= ac_hi=
  15350. break
  15351. fi
  15352. ac_mid=`expr 2 '*' $ac_mid`
  15353. fi
  15354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15355. done
  15356. else
  15357. $as_echo "$as_me: failed program was:" >&5
  15358. sed 's/^/| /' conftest.$ac_ext >&5
  15359. ac_lo= ac_hi=
  15360. fi
  15361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15362. fi
  15363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15364. # Binary search between lo and hi bounds.
  15365. while test "x$ac_lo" != "x$ac_hi"; do
  15366. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15367. cat >conftest.$ac_ext <<_ACEOF
  15368. /* confdefs.h. */
  15369. _ACEOF
  15370. cat confdefs.h >>conftest.$ac_ext
  15371. cat >>conftest.$ac_ext <<_ACEOF
  15372. /* end confdefs.h. */
  15373. #include <stddef.h>
  15374. int
  15375. main ()
  15376. {
  15377. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15378. test_array [0] = 0
  15379. ;
  15380. return 0;
  15381. }
  15382. _ACEOF
  15383. rm -f conftest.$ac_objext
  15384. if { (ac_try="$ac_compile"
  15385. case "(($ac_try" in
  15386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15387. *) ac_try_echo=$ac_try;;
  15388. esac
  15389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15390. $as_echo "$ac_try_echo") >&5
  15391. (eval "$ac_compile") 2>conftest.er1
  15392. ac_status=$?
  15393. grep -v '^ *+' conftest.er1 >conftest.err
  15394. rm -f conftest.er1
  15395. cat conftest.err >&5
  15396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15397. (exit $ac_status); } && {
  15398. test -z "$ac_cxx_werror_flag" ||
  15399. test ! -s conftest.err
  15400. } && test -s conftest.$ac_objext; then
  15401. ac_hi=$ac_mid
  15402. else
  15403. $as_echo "$as_me: failed program was:" >&5
  15404. sed 's/^/| /' conftest.$ac_ext >&5
  15405. ac_lo=`expr '(' $ac_mid ')' + 1`
  15406. fi
  15407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15408. done
  15409. case $ac_lo in
  15410. ?*) fits_in_uint=$ac_lo;;
  15411. '') fits_in_uint= ;;
  15412. esac
  15413. else
  15414. cat >conftest.$ac_ext <<_ACEOF
  15415. /* confdefs.h. */
  15416. _ACEOF
  15417. cat confdefs.h >>conftest.$ac_ext
  15418. cat >>conftest.$ac_ext <<_ACEOF
  15419. /* end confdefs.h. */
  15420. #include <stddef.h>
  15421. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15422. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15423. #include <stdio.h>
  15424. #include <stdlib.h>
  15425. int
  15426. main ()
  15427. {
  15428. FILE *f = fopen ("conftest.val", "w");
  15429. if (! f)
  15430. return 1;
  15431. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15432. {
  15433. long int i = longval ();
  15434. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15435. return 1;
  15436. fprintf (f, "%ld", i);
  15437. }
  15438. else
  15439. {
  15440. unsigned long int i = ulongval ();
  15441. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15442. return 1;
  15443. fprintf (f, "%lu", i);
  15444. }
  15445. /* Do not output a trailing newline, as this causes \r\n confusion
  15446. on some platforms. */
  15447. return ferror (f) || fclose (f) != 0;
  15448. ;
  15449. return 0;
  15450. }
  15451. _ACEOF
  15452. rm -f conftest$ac_exeext
  15453. if { (ac_try="$ac_link"
  15454. case "(($ac_try" in
  15455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15456. *) ac_try_echo=$ac_try;;
  15457. esac
  15458. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15459. $as_echo "$ac_try_echo") >&5
  15460. (eval "$ac_link") 2>&5
  15461. ac_status=$?
  15462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15463. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15464. { (case "(($ac_try" in
  15465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15466. *) ac_try_echo=$ac_try;;
  15467. esac
  15468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15469. $as_echo "$ac_try_echo") >&5
  15470. (eval "$ac_try") 2>&5
  15471. ac_status=$?
  15472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15473. (exit $ac_status); }; }; then
  15474. fits_in_uint=`cat conftest.val`
  15475. else
  15476. $as_echo "$as_me: program exited with status $ac_status" >&5
  15477. $as_echo "$as_me: failed program was:" >&5
  15478. sed 's/^/| /' conftest.$ac_ext >&5
  15479. ( exit $ac_status )
  15480. fits_in_uint=
  15481. fi
  15482. rm -rf conftest.dSYM
  15483. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15484. fi
  15485. rm -f conftest.val
  15486. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15487. if test $fits_in_uint = 1; then
  15488. cat >conftest.$ac_ext <<_ACEOF
  15489. /* confdefs.h. */
  15490. _ACEOF
  15491. cat confdefs.h >>conftest.$ac_ext
  15492. cat >>conftest.$ac_ext <<_ACEOF
  15493. /* end confdefs.h. */
  15494. #include <stddef.h>
  15495. extern size_t foo;
  15496. extern unsigned long foo;
  15497. int
  15498. main ()
  15499. {
  15500. ;
  15501. return 0;
  15502. }
  15503. _ACEOF
  15504. rm -f conftest.$ac_objext
  15505. if { (ac_try="$ac_compile"
  15506. case "(($ac_try" in
  15507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15508. *) ac_try_echo=$ac_try;;
  15509. esac
  15510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15511. $as_echo "$ac_try_echo") >&5
  15512. (eval "$ac_compile") 2>conftest.er1
  15513. ac_status=$?
  15514. grep -v '^ *+' conftest.er1 >conftest.err
  15515. rm -f conftest.er1
  15516. cat conftest.err >&5
  15517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15518. (exit $ac_status); } && {
  15519. test -z "$ac_cxx_werror_flag" ||
  15520. test ! -s conftest.err
  15521. } && test -s conftest.$ac_objext; then
  15522. fits_in_uint=0
  15523. else
  15524. $as_echo "$as_me: failed program was:" >&5
  15525. sed 's/^/| /' conftest.$ac_ext >&5
  15526. fi
  15527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15528. fi
  15529. if test $fits_in_uint = 1; then
  15530. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15531. else
  15532. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15533. fi
  15534. else
  15535. gl_cv_size_max='((size_t)~(size_t)0)'
  15536. fi
  15537. fi
  15538. fi
  15539. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15540. $as_echo "$gl_cv_size_max" >&6; }
  15541. if test "$gl_cv_size_max" != yes; then
  15542. cat >>confdefs.h <<_ACEOF
  15543. #define SIZE_MAX $gl_cv_size_max
  15544. _ACEOF
  15545. fi
  15546. for ac_header in stdint.h
  15547. do
  15548. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15549. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15550. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15551. $as_echo_n "checking for $ac_header... " >&6; }
  15552. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15553. $as_echo_n "(cached) " >&6
  15554. fi
  15555. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15556. $as_echo "$as_val"'`
  15557. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15558. $as_echo "$ac_res" >&6; }
  15559. else
  15560. # Is the header compilable?
  15561. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15562. $as_echo_n "checking $ac_header usability... " >&6; }
  15563. cat >conftest.$ac_ext <<_ACEOF
  15564. /* confdefs.h. */
  15565. _ACEOF
  15566. cat confdefs.h >>conftest.$ac_ext
  15567. cat >>conftest.$ac_ext <<_ACEOF
  15568. /* end confdefs.h. */
  15569. $ac_includes_default
  15570. #include <$ac_header>
  15571. _ACEOF
  15572. rm -f conftest.$ac_objext
  15573. if { (ac_try="$ac_compile"
  15574. case "(($ac_try" in
  15575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15576. *) ac_try_echo=$ac_try;;
  15577. esac
  15578. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15579. $as_echo "$ac_try_echo") >&5
  15580. (eval "$ac_compile") 2>conftest.er1
  15581. ac_status=$?
  15582. grep -v '^ *+' conftest.er1 >conftest.err
  15583. rm -f conftest.er1
  15584. cat conftest.err >&5
  15585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15586. (exit $ac_status); } && {
  15587. test -z "$ac_cxx_werror_flag" ||
  15588. test ! -s conftest.err
  15589. } && test -s conftest.$ac_objext; then
  15590. ac_header_compiler=yes
  15591. else
  15592. $as_echo "$as_me: failed program was:" >&5
  15593. sed 's/^/| /' conftest.$ac_ext >&5
  15594. ac_header_compiler=no
  15595. fi
  15596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15597. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15598. $as_echo "$ac_header_compiler" >&6; }
  15599. # Is the header present?
  15600. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15601. $as_echo_n "checking $ac_header presence... " >&6; }
  15602. cat >conftest.$ac_ext <<_ACEOF
  15603. /* confdefs.h. */
  15604. _ACEOF
  15605. cat confdefs.h >>conftest.$ac_ext
  15606. cat >>conftest.$ac_ext <<_ACEOF
  15607. /* end confdefs.h. */
  15608. #include <$ac_header>
  15609. _ACEOF
  15610. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15611. case "(($ac_try" in
  15612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15613. *) ac_try_echo=$ac_try;;
  15614. esac
  15615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15616. $as_echo "$ac_try_echo") >&5
  15617. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15618. ac_status=$?
  15619. grep -v '^ *+' conftest.er1 >conftest.err
  15620. rm -f conftest.er1
  15621. cat conftest.err >&5
  15622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15623. (exit $ac_status); } >/dev/null && {
  15624. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15625. test ! -s conftest.err
  15626. }; then
  15627. ac_header_preproc=yes
  15628. else
  15629. $as_echo "$as_me: failed program was:" >&5
  15630. sed 's/^/| /' conftest.$ac_ext >&5
  15631. ac_header_preproc=no
  15632. fi
  15633. rm -f conftest.err conftest.$ac_ext
  15634. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15635. $as_echo "$ac_header_preproc" >&6; }
  15636. # So? What about this header?
  15637. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15638. yes:no: )
  15639. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15640. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15641. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15642. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15643. ac_header_preproc=yes
  15644. ;;
  15645. no:yes:* )
  15646. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15647. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15648. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15649. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15650. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15651. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15652. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15653. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15654. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15655. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15656. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15657. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15658. ( cat <<\_ASBOX
  15659. ## ----------------------------------------------- ##
  15660. ## Report this to t-tujikawa@users.sourceforge.net ##
  15661. ## ----------------------------------------------- ##
  15662. _ASBOX
  15663. ) | sed "s/^/$as_me: WARNING: /" >&2
  15664. ;;
  15665. esac
  15666. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15667. $as_echo_n "checking for $ac_header... " >&6; }
  15668. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15669. $as_echo_n "(cached) " >&6
  15670. else
  15671. eval "$as_ac_Header=\$ac_header_preproc"
  15672. fi
  15673. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15674. $as_echo "$as_val"'`
  15675. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15676. $as_echo "$ac_res" >&6; }
  15677. fi
  15678. as_val=`eval 'as_val=${'$as_ac_Header'}
  15679. $as_echo "$as_val"'`
  15680. if test "x$as_val" = x""yes; then
  15681. cat >>confdefs.h <<_ACEOF
  15682. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15683. _ACEOF
  15684. fi
  15685. done
  15686. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15687. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15688. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15689. $as_echo_n "(cached) " >&6
  15690. else
  15691. gt_save_LIBS="$LIBS"
  15692. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15693. cat >conftest.$ac_ext <<_ACEOF
  15694. /* confdefs.h. */
  15695. _ACEOF
  15696. cat confdefs.h >>conftest.$ac_ext
  15697. cat >>conftest.$ac_ext <<_ACEOF
  15698. /* end confdefs.h. */
  15699. #include <CoreFoundation/CFPreferences.h>
  15700. int
  15701. main ()
  15702. {
  15703. CFPreferencesCopyAppValue(NULL, NULL)
  15704. ;
  15705. return 0;
  15706. }
  15707. _ACEOF
  15708. rm -f conftest.$ac_objext conftest$ac_exeext
  15709. if { (ac_try="$ac_link"
  15710. case "(($ac_try" in
  15711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15712. *) ac_try_echo=$ac_try;;
  15713. esac
  15714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15715. $as_echo "$ac_try_echo") >&5
  15716. (eval "$ac_link") 2>conftest.er1
  15717. ac_status=$?
  15718. grep -v '^ *+' conftest.er1 >conftest.err
  15719. rm -f conftest.er1
  15720. cat conftest.err >&5
  15721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15722. (exit $ac_status); } && {
  15723. test -z "$ac_cxx_werror_flag" ||
  15724. test ! -s conftest.err
  15725. } && test -s conftest$ac_exeext && {
  15726. test "$cross_compiling" = yes ||
  15727. $as_test_x conftest$ac_exeext
  15728. }; then
  15729. gt_cv_func_CFPreferencesCopyAppValue=yes
  15730. else
  15731. $as_echo "$as_me: failed program was:" >&5
  15732. sed 's/^/| /' conftest.$ac_ext >&5
  15733. gt_cv_func_CFPreferencesCopyAppValue=no
  15734. fi
  15735. rm -rf conftest.dSYM
  15736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15737. conftest$ac_exeext conftest.$ac_ext
  15738. LIBS="$gt_save_LIBS"
  15739. fi
  15740. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15741. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15742. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15743. cat >>confdefs.h <<\_ACEOF
  15744. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15745. _ACEOF
  15746. fi
  15747. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15748. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15749. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15750. $as_echo_n "(cached) " >&6
  15751. else
  15752. gt_save_LIBS="$LIBS"
  15753. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15754. cat >conftest.$ac_ext <<_ACEOF
  15755. /* confdefs.h. */
  15756. _ACEOF
  15757. cat confdefs.h >>conftest.$ac_ext
  15758. cat >>conftest.$ac_ext <<_ACEOF
  15759. /* end confdefs.h. */
  15760. #include <CoreFoundation/CFLocale.h>
  15761. int
  15762. main ()
  15763. {
  15764. CFLocaleCopyCurrent();
  15765. ;
  15766. return 0;
  15767. }
  15768. _ACEOF
  15769. rm -f conftest.$ac_objext conftest$ac_exeext
  15770. if { (ac_try="$ac_link"
  15771. case "(($ac_try" in
  15772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15773. *) ac_try_echo=$ac_try;;
  15774. esac
  15775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15776. $as_echo "$ac_try_echo") >&5
  15777. (eval "$ac_link") 2>conftest.er1
  15778. ac_status=$?
  15779. grep -v '^ *+' conftest.er1 >conftest.err
  15780. rm -f conftest.er1
  15781. cat conftest.err >&5
  15782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15783. (exit $ac_status); } && {
  15784. test -z "$ac_cxx_werror_flag" ||
  15785. test ! -s conftest.err
  15786. } && test -s conftest$ac_exeext && {
  15787. test "$cross_compiling" = yes ||
  15788. $as_test_x conftest$ac_exeext
  15789. }; then
  15790. gt_cv_func_CFLocaleCopyCurrent=yes
  15791. else
  15792. $as_echo "$as_me: failed program was:" >&5
  15793. sed 's/^/| /' conftest.$ac_ext >&5
  15794. gt_cv_func_CFLocaleCopyCurrent=no
  15795. fi
  15796. rm -rf conftest.dSYM
  15797. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15798. conftest$ac_exeext conftest.$ac_ext
  15799. LIBS="$gt_save_LIBS"
  15800. fi
  15801. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15802. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15803. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15804. cat >>confdefs.h <<\_ACEOF
  15805. #define HAVE_CFLOCALECOPYCURRENT 1
  15806. _ACEOF
  15807. fi
  15808. INTL_MACOSX_LIBS=
  15809. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15810. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15811. fi
  15812. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15813. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15814. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15815. $as_echo_n "(cached) " >&6
  15816. else
  15817. ac_cv_type_ptrdiff_t=no
  15818. cat >conftest.$ac_ext <<_ACEOF
  15819. /* confdefs.h. */
  15820. _ACEOF
  15821. cat confdefs.h >>conftest.$ac_ext
  15822. cat >>conftest.$ac_ext <<_ACEOF
  15823. /* end confdefs.h. */
  15824. $ac_includes_default
  15825. int
  15826. main ()
  15827. {
  15828. if (sizeof (ptrdiff_t))
  15829. return 0;
  15830. ;
  15831. return 0;
  15832. }
  15833. _ACEOF
  15834. rm -f conftest.$ac_objext
  15835. if { (ac_try="$ac_compile"
  15836. case "(($ac_try" in
  15837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15838. *) ac_try_echo=$ac_try;;
  15839. esac
  15840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15841. $as_echo "$ac_try_echo") >&5
  15842. (eval "$ac_compile") 2>conftest.er1
  15843. ac_status=$?
  15844. grep -v '^ *+' conftest.er1 >conftest.err
  15845. rm -f conftest.er1
  15846. cat conftest.err >&5
  15847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15848. (exit $ac_status); } && {
  15849. test -z "$ac_cxx_werror_flag" ||
  15850. test ! -s conftest.err
  15851. } && test -s conftest.$ac_objext; then
  15852. cat >conftest.$ac_ext <<_ACEOF
  15853. /* confdefs.h. */
  15854. _ACEOF
  15855. cat confdefs.h >>conftest.$ac_ext
  15856. cat >>conftest.$ac_ext <<_ACEOF
  15857. /* end confdefs.h. */
  15858. $ac_includes_default
  15859. int
  15860. main ()
  15861. {
  15862. if (sizeof ((ptrdiff_t)))
  15863. return 0;
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. rm -f conftest.$ac_objext
  15869. if { (ac_try="$ac_compile"
  15870. case "(($ac_try" in
  15871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15872. *) ac_try_echo=$ac_try;;
  15873. esac
  15874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15875. $as_echo "$ac_try_echo") >&5
  15876. (eval "$ac_compile") 2>conftest.er1
  15877. ac_status=$?
  15878. grep -v '^ *+' conftest.er1 >conftest.err
  15879. rm -f conftest.er1
  15880. cat conftest.err >&5
  15881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15882. (exit $ac_status); } && {
  15883. test -z "$ac_cxx_werror_flag" ||
  15884. test ! -s conftest.err
  15885. } && test -s conftest.$ac_objext; then
  15886. :
  15887. else
  15888. $as_echo "$as_me: failed program was:" >&5
  15889. sed 's/^/| /' conftest.$ac_ext >&5
  15890. ac_cv_type_ptrdiff_t=yes
  15891. fi
  15892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15893. else
  15894. $as_echo "$as_me: failed program was:" >&5
  15895. sed 's/^/| /' conftest.$ac_ext >&5
  15896. fi
  15897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15898. fi
  15899. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15900. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15901. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15902. :
  15903. else
  15904. cat >>confdefs.h <<\_ACEOF
  15905. #define ptrdiff_t long
  15906. _ACEOF
  15907. fi
  15908. for ac_header in stddef.h stdlib.h string.h
  15909. do
  15910. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15912. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15913. $as_echo_n "checking for $ac_header... " >&6; }
  15914. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15915. $as_echo_n "(cached) " >&6
  15916. fi
  15917. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15918. $as_echo "$as_val"'`
  15919. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15920. $as_echo "$ac_res" >&6; }
  15921. else
  15922. # Is the header compilable?
  15923. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15924. $as_echo_n "checking $ac_header usability... " >&6; }
  15925. cat >conftest.$ac_ext <<_ACEOF
  15926. /* confdefs.h. */
  15927. _ACEOF
  15928. cat confdefs.h >>conftest.$ac_ext
  15929. cat >>conftest.$ac_ext <<_ACEOF
  15930. /* end confdefs.h. */
  15931. $ac_includes_default
  15932. #include <$ac_header>
  15933. _ACEOF
  15934. rm -f conftest.$ac_objext
  15935. if { (ac_try="$ac_compile"
  15936. case "(($ac_try" in
  15937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15938. *) ac_try_echo=$ac_try;;
  15939. esac
  15940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15941. $as_echo "$ac_try_echo") >&5
  15942. (eval "$ac_compile") 2>conftest.er1
  15943. ac_status=$?
  15944. grep -v '^ *+' conftest.er1 >conftest.err
  15945. rm -f conftest.er1
  15946. cat conftest.err >&5
  15947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15948. (exit $ac_status); } && {
  15949. test -z "$ac_cxx_werror_flag" ||
  15950. test ! -s conftest.err
  15951. } && test -s conftest.$ac_objext; then
  15952. ac_header_compiler=yes
  15953. else
  15954. $as_echo "$as_me: failed program was:" >&5
  15955. sed 's/^/| /' conftest.$ac_ext >&5
  15956. ac_header_compiler=no
  15957. fi
  15958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15959. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15960. $as_echo "$ac_header_compiler" >&6; }
  15961. # Is the header present?
  15962. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15963. $as_echo_n "checking $ac_header presence... " >&6; }
  15964. cat >conftest.$ac_ext <<_ACEOF
  15965. /* confdefs.h. */
  15966. _ACEOF
  15967. cat confdefs.h >>conftest.$ac_ext
  15968. cat >>conftest.$ac_ext <<_ACEOF
  15969. /* end confdefs.h. */
  15970. #include <$ac_header>
  15971. _ACEOF
  15972. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15973. case "(($ac_try" in
  15974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15975. *) ac_try_echo=$ac_try;;
  15976. esac
  15977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15978. $as_echo "$ac_try_echo") >&5
  15979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15980. ac_status=$?
  15981. grep -v '^ *+' conftest.er1 >conftest.err
  15982. rm -f conftest.er1
  15983. cat conftest.err >&5
  15984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15985. (exit $ac_status); } >/dev/null && {
  15986. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15987. test ! -s conftest.err
  15988. }; then
  15989. ac_header_preproc=yes
  15990. else
  15991. $as_echo "$as_me: failed program was:" >&5
  15992. sed 's/^/| /' conftest.$ac_ext >&5
  15993. ac_header_preproc=no
  15994. fi
  15995. rm -f conftest.err conftest.$ac_ext
  15996. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15997. $as_echo "$ac_header_preproc" >&6; }
  15998. # So? What about this header?
  15999. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16000. yes:no: )
  16001. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16002. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16003. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16004. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16005. ac_header_preproc=yes
  16006. ;;
  16007. no:yes:* )
  16008. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16009. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16010. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16011. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16012. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16013. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16015. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16016. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16017. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16018. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16019. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16020. ( cat <<\_ASBOX
  16021. ## ----------------------------------------------- ##
  16022. ## Report this to t-tujikawa@users.sourceforge.net ##
  16023. ## ----------------------------------------------- ##
  16024. _ASBOX
  16025. ) | sed "s/^/$as_me: WARNING: /" >&2
  16026. ;;
  16027. esac
  16028. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16029. $as_echo_n "checking for $ac_header... " >&6; }
  16030. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16031. $as_echo_n "(cached) " >&6
  16032. else
  16033. eval "$as_ac_Header=\$ac_header_preproc"
  16034. fi
  16035. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16036. $as_echo "$as_val"'`
  16037. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16038. $as_echo "$ac_res" >&6; }
  16039. fi
  16040. as_val=`eval 'as_val=${'$as_ac_Header'}
  16041. $as_echo "$as_val"'`
  16042. if test "x$as_val" = x""yes; then
  16043. cat >>confdefs.h <<_ACEOF
  16044. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16045. _ACEOF
  16046. fi
  16047. done
  16048. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  16049. do
  16050. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16051. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16052. $as_echo_n "checking for $ac_func... " >&6; }
  16053. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16054. $as_echo_n "(cached) " >&6
  16055. else
  16056. cat >conftest.$ac_ext <<_ACEOF
  16057. /* confdefs.h. */
  16058. _ACEOF
  16059. cat confdefs.h >>conftest.$ac_ext
  16060. cat >>conftest.$ac_ext <<_ACEOF
  16061. /* end confdefs.h. */
  16062. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16063. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16064. #define $ac_func innocuous_$ac_func
  16065. /* System header to define __stub macros and hopefully few prototypes,
  16066. which can conflict with char $ac_func (); below.
  16067. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16068. <limits.h> exists even on freestanding compilers. */
  16069. #ifdef __STDC__
  16070. # include <limits.h>
  16071. #else
  16072. # include <assert.h>
  16073. #endif
  16074. #undef $ac_func
  16075. /* Override any GCC internal prototype to avoid an error.
  16076. Use char because int might match the return type of a GCC
  16077. builtin and then its argument prototype would still apply. */
  16078. #ifdef __cplusplus
  16079. extern "C"
  16080. #endif
  16081. char $ac_func ();
  16082. /* The GNU C library defines this for functions which it implements
  16083. to always fail with ENOSYS. Some functions are actually named
  16084. something starting with __ and the normal name is an alias. */
  16085. #if defined __stub_$ac_func || defined __stub___$ac_func
  16086. choke me
  16087. #endif
  16088. int
  16089. main ()
  16090. {
  16091. return $ac_func ();
  16092. ;
  16093. return 0;
  16094. }
  16095. _ACEOF
  16096. rm -f conftest.$ac_objext conftest$ac_exeext
  16097. if { (ac_try="$ac_link"
  16098. case "(($ac_try" in
  16099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16100. *) ac_try_echo=$ac_try;;
  16101. esac
  16102. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16103. $as_echo "$ac_try_echo") >&5
  16104. (eval "$ac_link") 2>conftest.er1
  16105. ac_status=$?
  16106. grep -v '^ *+' conftest.er1 >conftest.err
  16107. rm -f conftest.er1
  16108. cat conftest.err >&5
  16109. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16110. (exit $ac_status); } && {
  16111. test -z "$ac_cxx_werror_flag" ||
  16112. test ! -s conftest.err
  16113. } && test -s conftest$ac_exeext && {
  16114. test "$cross_compiling" = yes ||
  16115. $as_test_x conftest$ac_exeext
  16116. }; then
  16117. eval "$as_ac_var=yes"
  16118. else
  16119. $as_echo "$as_me: failed program was:" >&5
  16120. sed 's/^/| /' conftest.$ac_ext >&5
  16121. eval "$as_ac_var=no"
  16122. fi
  16123. rm -rf conftest.dSYM
  16124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16125. conftest$ac_exeext conftest.$ac_ext
  16126. fi
  16127. ac_res=`eval 'as_val=${'$as_ac_var'}
  16128. $as_echo "$as_val"'`
  16129. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16130. $as_echo "$ac_res" >&6; }
  16131. as_val=`eval 'as_val=${'$as_ac_var'}
  16132. $as_echo "$as_val"'`
  16133. if test "x$as_val" = x""yes; then
  16134. cat >>confdefs.h <<_ACEOF
  16135. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16136. _ACEOF
  16137. fi
  16138. done
  16139. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  16140. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  16141. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  16142. $as_echo_n "(cached) " >&6
  16143. else
  16144. cat >conftest.$ac_ext <<_ACEOF
  16145. /* confdefs.h. */
  16146. _ACEOF
  16147. cat confdefs.h >>conftest.$ac_ext
  16148. cat >>conftest.$ac_ext <<_ACEOF
  16149. /* end confdefs.h. */
  16150. #include <stdio.h>
  16151. int
  16152. main ()
  16153. {
  16154. #ifndef _snprintf
  16155. char *p = (char *) _snprintf;
  16156. #endif
  16157. ;
  16158. return 0;
  16159. }
  16160. _ACEOF
  16161. rm -f conftest.$ac_objext
  16162. if { (ac_try="$ac_compile"
  16163. case "(($ac_try" in
  16164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16165. *) ac_try_echo=$ac_try;;
  16166. esac
  16167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16168. $as_echo "$ac_try_echo") >&5
  16169. (eval "$ac_compile") 2>conftest.er1
  16170. ac_status=$?
  16171. grep -v '^ *+' conftest.er1 >conftest.err
  16172. rm -f conftest.er1
  16173. cat conftest.err >&5
  16174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16175. (exit $ac_status); } && {
  16176. test -z "$ac_cxx_werror_flag" ||
  16177. test ! -s conftest.err
  16178. } && test -s conftest.$ac_objext; then
  16179. ac_cv_have_decl__snprintf=yes
  16180. else
  16181. $as_echo "$as_me: failed program was:" >&5
  16182. sed 's/^/| /' conftest.$ac_ext >&5
  16183. ac_cv_have_decl__snprintf=no
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16186. fi
  16187. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  16188. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  16189. if test $ac_cv_have_decl__snprintf = yes; then
  16190. gt_value=1
  16191. else
  16192. gt_value=0
  16193. fi
  16194. cat >>confdefs.h <<_ACEOF
  16195. #define HAVE_DECL__SNPRINTF $gt_value
  16196. _ACEOF
  16197. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  16198. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  16199. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  16200. $as_echo_n "(cached) " >&6
  16201. else
  16202. cat >conftest.$ac_ext <<_ACEOF
  16203. /* confdefs.h. */
  16204. _ACEOF
  16205. cat confdefs.h >>conftest.$ac_ext
  16206. cat >>conftest.$ac_ext <<_ACEOF
  16207. /* end confdefs.h. */
  16208. #include <stdio.h>
  16209. int
  16210. main ()
  16211. {
  16212. #ifndef _snwprintf
  16213. char *p = (char *) _snwprintf;
  16214. #endif
  16215. ;
  16216. return 0;
  16217. }
  16218. _ACEOF
  16219. rm -f conftest.$ac_objext
  16220. if { (ac_try="$ac_compile"
  16221. case "(($ac_try" in
  16222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16223. *) ac_try_echo=$ac_try;;
  16224. esac
  16225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16226. $as_echo "$ac_try_echo") >&5
  16227. (eval "$ac_compile") 2>conftest.er1
  16228. ac_status=$?
  16229. grep -v '^ *+' conftest.er1 >conftest.err
  16230. rm -f conftest.er1
  16231. cat conftest.err >&5
  16232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16233. (exit $ac_status); } && {
  16234. test -z "$ac_cxx_werror_flag" ||
  16235. test ! -s conftest.err
  16236. } && test -s conftest.$ac_objext; then
  16237. ac_cv_have_decl__snwprintf=yes
  16238. else
  16239. $as_echo "$as_me: failed program was:" >&5
  16240. sed 's/^/| /' conftest.$ac_ext >&5
  16241. ac_cv_have_decl__snwprintf=no
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16244. fi
  16245. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  16246. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16247. if test $ac_cv_have_decl__snwprintf = yes; then
  16248. gt_value=1
  16249. else
  16250. gt_value=0
  16251. fi
  16252. cat >>confdefs.h <<_ACEOF
  16253. #define HAVE_DECL__SNWPRINTF $gt_value
  16254. _ACEOF
  16255. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16256. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16257. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16258. $as_echo_n "(cached) " >&6
  16259. else
  16260. cat >conftest.$ac_ext <<_ACEOF
  16261. /* confdefs.h. */
  16262. _ACEOF
  16263. cat confdefs.h >>conftest.$ac_ext
  16264. cat >>conftest.$ac_ext <<_ACEOF
  16265. /* end confdefs.h. */
  16266. #include <stdio.h>
  16267. int
  16268. main ()
  16269. {
  16270. #ifndef getc_unlocked
  16271. char *p = (char *) getc_unlocked;
  16272. #endif
  16273. ;
  16274. return 0;
  16275. }
  16276. _ACEOF
  16277. rm -f conftest.$ac_objext
  16278. if { (ac_try="$ac_compile"
  16279. case "(($ac_try" in
  16280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16281. *) ac_try_echo=$ac_try;;
  16282. esac
  16283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16284. $as_echo "$ac_try_echo") >&5
  16285. (eval "$ac_compile") 2>conftest.er1
  16286. ac_status=$?
  16287. grep -v '^ *+' conftest.er1 >conftest.err
  16288. rm -f conftest.er1
  16289. cat conftest.err >&5
  16290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16291. (exit $ac_status); } && {
  16292. test -z "$ac_cxx_werror_flag" ||
  16293. test ! -s conftest.err
  16294. } && test -s conftest.$ac_objext; then
  16295. ac_cv_have_decl_getc_unlocked=yes
  16296. else
  16297. $as_echo "$as_me: failed program was:" >&5
  16298. sed 's/^/| /' conftest.$ac_ext >&5
  16299. ac_cv_have_decl_getc_unlocked=no
  16300. fi
  16301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16302. fi
  16303. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16304. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16305. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16306. gt_value=1
  16307. else
  16308. gt_value=0
  16309. fi
  16310. cat >>confdefs.h <<_ACEOF
  16311. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16312. _ACEOF
  16313. case $gt_cv_func_printf_posix in
  16314. *yes) HAVE_POSIX_PRINTF=1 ;;
  16315. *) HAVE_POSIX_PRINTF=0 ;;
  16316. esac
  16317. if test "$ac_cv_func_asprintf" = yes; then
  16318. HAVE_ASPRINTF=1
  16319. else
  16320. HAVE_ASPRINTF=0
  16321. fi
  16322. if test "$ac_cv_func_snprintf" = yes; then
  16323. HAVE_SNPRINTF=1
  16324. else
  16325. HAVE_SNPRINTF=0
  16326. fi
  16327. if test "$ac_cv_func_wprintf" = yes; then
  16328. HAVE_WPRINTF=1
  16329. else
  16330. HAVE_WPRINTF=0
  16331. fi
  16332. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16333. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16334. if test "${am_cv_langinfo_codeset+set}" = set; then
  16335. $as_echo_n "(cached) " >&6
  16336. else
  16337. cat >conftest.$ac_ext <<_ACEOF
  16338. /* confdefs.h. */
  16339. _ACEOF
  16340. cat confdefs.h >>conftest.$ac_ext
  16341. cat >>conftest.$ac_ext <<_ACEOF
  16342. /* end confdefs.h. */
  16343. #include <langinfo.h>
  16344. int
  16345. main ()
  16346. {
  16347. char* cs = nl_langinfo(CODESET); return !cs;
  16348. ;
  16349. return 0;
  16350. }
  16351. _ACEOF
  16352. rm -f conftest.$ac_objext conftest$ac_exeext
  16353. if { (ac_try="$ac_link"
  16354. case "(($ac_try" in
  16355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16356. *) ac_try_echo=$ac_try;;
  16357. esac
  16358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16359. $as_echo "$ac_try_echo") >&5
  16360. (eval "$ac_link") 2>conftest.er1
  16361. ac_status=$?
  16362. grep -v '^ *+' conftest.er1 >conftest.err
  16363. rm -f conftest.er1
  16364. cat conftest.err >&5
  16365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16366. (exit $ac_status); } && {
  16367. test -z "$ac_cxx_werror_flag" ||
  16368. test ! -s conftest.err
  16369. } && test -s conftest$ac_exeext && {
  16370. test "$cross_compiling" = yes ||
  16371. $as_test_x conftest$ac_exeext
  16372. }; then
  16373. am_cv_langinfo_codeset=yes
  16374. else
  16375. $as_echo "$as_me: failed program was:" >&5
  16376. sed 's/^/| /' conftest.$ac_ext >&5
  16377. am_cv_langinfo_codeset=no
  16378. fi
  16379. rm -rf conftest.dSYM
  16380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16381. conftest$ac_exeext conftest.$ac_ext
  16382. fi
  16383. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16384. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16385. if test $am_cv_langinfo_codeset = yes; then
  16386. cat >>confdefs.h <<\_ACEOF
  16387. #define HAVE_LANGINFO_CODESET 1
  16388. _ACEOF
  16389. fi
  16390. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16391. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16392. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16393. $as_echo_n "(cached) " >&6
  16394. else
  16395. cat >conftest.$ac_ext <<_ACEOF
  16396. /* confdefs.h. */
  16397. _ACEOF
  16398. cat confdefs.h >>conftest.$ac_ext
  16399. cat >>conftest.$ac_ext <<_ACEOF
  16400. /* end confdefs.h. */
  16401. #include <locale.h>
  16402. int
  16403. main ()
  16404. {
  16405. return LC_MESSAGES
  16406. ;
  16407. return 0;
  16408. }
  16409. _ACEOF
  16410. rm -f conftest.$ac_objext conftest$ac_exeext
  16411. if { (ac_try="$ac_link"
  16412. case "(($ac_try" in
  16413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16414. *) ac_try_echo=$ac_try;;
  16415. esac
  16416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16417. $as_echo "$ac_try_echo") >&5
  16418. (eval "$ac_link") 2>conftest.er1
  16419. ac_status=$?
  16420. grep -v '^ *+' conftest.er1 >conftest.err
  16421. rm -f conftest.er1
  16422. cat conftest.err >&5
  16423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16424. (exit $ac_status); } && {
  16425. test -z "$ac_cxx_werror_flag" ||
  16426. test ! -s conftest.err
  16427. } && test -s conftest$ac_exeext && {
  16428. test "$cross_compiling" = yes ||
  16429. $as_test_x conftest$ac_exeext
  16430. }; then
  16431. gt_cv_val_LC_MESSAGES=yes
  16432. else
  16433. $as_echo "$as_me: failed program was:" >&5
  16434. sed 's/^/| /' conftest.$ac_ext >&5
  16435. gt_cv_val_LC_MESSAGES=no
  16436. fi
  16437. rm -rf conftest.dSYM
  16438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16439. conftest$ac_exeext conftest.$ac_ext
  16440. fi
  16441. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16442. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16443. if test $gt_cv_val_LC_MESSAGES = yes; then
  16444. cat >>confdefs.h <<\_ACEOF
  16445. #define HAVE_LC_MESSAGES 1
  16446. _ACEOF
  16447. fi
  16448. if test "$enable_shared" = yes; then
  16449. case "$host_os" in
  16450. mingw* | cygwin*) is_woe32dll=yes ;;
  16451. *) is_woe32dll=no ;;
  16452. esac
  16453. else
  16454. is_woe32dll=no
  16455. fi
  16456. WOE32DLL=$is_woe32dll
  16457. case "$host_os" in
  16458. mingw* | cygwin*) is_woe32=yes ;;
  16459. *) is_woe32=no ;;
  16460. esac
  16461. WOE32=$is_woe32
  16462. if test $WOE32 = yes; then
  16463. if test -n "$ac_tool_prefix"; then
  16464. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16465. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16466. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16467. $as_echo_n "checking for $ac_word... " >&6; }
  16468. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16469. $as_echo_n "(cached) " >&6
  16470. else
  16471. if test -n "$WINDRES"; then
  16472. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16473. else
  16474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16475. for as_dir in $PATH
  16476. do
  16477. IFS=$as_save_IFS
  16478. test -z "$as_dir" && as_dir=.
  16479. for ac_exec_ext in '' $ac_executable_extensions; do
  16480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16481. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16482. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16483. break 2
  16484. fi
  16485. done
  16486. done
  16487. IFS=$as_save_IFS
  16488. fi
  16489. fi
  16490. WINDRES=$ac_cv_prog_WINDRES
  16491. if test -n "$WINDRES"; then
  16492. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16493. $as_echo "$WINDRES" >&6; }
  16494. else
  16495. { $as_echo "$as_me:$LINENO: result: no" >&5
  16496. $as_echo "no" >&6; }
  16497. fi
  16498. fi
  16499. if test -z "$ac_cv_prog_WINDRES"; then
  16500. ac_ct_WINDRES=$WINDRES
  16501. # Extract the first word of "windres", so it can be a program name with args.
  16502. set dummy windres; ac_word=$2
  16503. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16504. $as_echo_n "checking for $ac_word... " >&6; }
  16505. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16506. $as_echo_n "(cached) " >&6
  16507. else
  16508. if test -n "$ac_ct_WINDRES"; then
  16509. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16510. else
  16511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16512. for as_dir in $PATH
  16513. do
  16514. IFS=$as_save_IFS
  16515. test -z "$as_dir" && as_dir=.
  16516. for ac_exec_ext in '' $ac_executable_extensions; do
  16517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16518. ac_cv_prog_ac_ct_WINDRES="windres"
  16519. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16520. break 2
  16521. fi
  16522. done
  16523. done
  16524. IFS=$as_save_IFS
  16525. fi
  16526. fi
  16527. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16528. if test -n "$ac_ct_WINDRES"; then
  16529. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16530. $as_echo "$ac_ct_WINDRES" >&6; }
  16531. else
  16532. { $as_echo "$as_me:$LINENO: result: no" >&5
  16533. $as_echo "no" >&6; }
  16534. fi
  16535. if test "x$ac_ct_WINDRES" = x; then
  16536. WINDRES=""
  16537. else
  16538. case $cross_compiling:$ac_tool_warned in
  16539. yes:)
  16540. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16542. ac_tool_warned=yes ;;
  16543. esac
  16544. WINDRES=$ac_ct_WINDRES
  16545. fi
  16546. else
  16547. WINDRES="$ac_cv_prog_WINDRES"
  16548. fi
  16549. fi
  16550. case "$host_os" in
  16551. hpux*) LTLIBC="" ;;
  16552. *) LTLIBC="-lc" ;;
  16553. esac
  16554. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16555. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16556. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16557. $as_echo_n "(cached) " >&6
  16558. else
  16559. gt_save_LIBS="$LIBS"
  16560. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16561. cat >conftest.$ac_ext <<_ACEOF
  16562. /* confdefs.h. */
  16563. _ACEOF
  16564. cat confdefs.h >>conftest.$ac_ext
  16565. cat >>conftest.$ac_ext <<_ACEOF
  16566. /* end confdefs.h. */
  16567. #include <CoreFoundation/CFPreferences.h>
  16568. int
  16569. main ()
  16570. {
  16571. CFPreferencesCopyAppValue(NULL, NULL)
  16572. ;
  16573. return 0;
  16574. }
  16575. _ACEOF
  16576. rm -f conftest.$ac_objext conftest$ac_exeext
  16577. if { (ac_try="$ac_link"
  16578. case "(($ac_try" in
  16579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16580. *) ac_try_echo=$ac_try;;
  16581. esac
  16582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16583. $as_echo "$ac_try_echo") >&5
  16584. (eval "$ac_link") 2>conftest.er1
  16585. ac_status=$?
  16586. grep -v '^ *+' conftest.er1 >conftest.err
  16587. rm -f conftest.er1
  16588. cat conftest.err >&5
  16589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16590. (exit $ac_status); } && {
  16591. test -z "$ac_cxx_werror_flag" ||
  16592. test ! -s conftest.err
  16593. } && test -s conftest$ac_exeext && {
  16594. test "$cross_compiling" = yes ||
  16595. $as_test_x conftest$ac_exeext
  16596. }; then
  16597. gt_cv_func_CFPreferencesCopyAppValue=yes
  16598. else
  16599. $as_echo "$as_me: failed program was:" >&5
  16600. sed 's/^/| /' conftest.$ac_ext >&5
  16601. gt_cv_func_CFPreferencesCopyAppValue=no
  16602. fi
  16603. rm -rf conftest.dSYM
  16604. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16605. conftest$ac_exeext conftest.$ac_ext
  16606. LIBS="$gt_save_LIBS"
  16607. fi
  16608. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16609. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16610. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16611. cat >>confdefs.h <<\_ACEOF
  16612. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16613. _ACEOF
  16614. fi
  16615. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16616. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16617. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16618. $as_echo_n "(cached) " >&6
  16619. else
  16620. gt_save_LIBS="$LIBS"
  16621. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16622. cat >conftest.$ac_ext <<_ACEOF
  16623. /* confdefs.h. */
  16624. _ACEOF
  16625. cat confdefs.h >>conftest.$ac_ext
  16626. cat >>conftest.$ac_ext <<_ACEOF
  16627. /* end confdefs.h. */
  16628. #include <CoreFoundation/CFLocale.h>
  16629. int
  16630. main ()
  16631. {
  16632. CFLocaleCopyCurrent();
  16633. ;
  16634. return 0;
  16635. }
  16636. _ACEOF
  16637. rm -f conftest.$ac_objext conftest$ac_exeext
  16638. if { (ac_try="$ac_link"
  16639. case "(($ac_try" in
  16640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16641. *) ac_try_echo=$ac_try;;
  16642. esac
  16643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16644. $as_echo "$ac_try_echo") >&5
  16645. (eval "$ac_link") 2>conftest.er1
  16646. ac_status=$?
  16647. grep -v '^ *+' conftest.er1 >conftest.err
  16648. rm -f conftest.er1
  16649. cat conftest.err >&5
  16650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16651. (exit $ac_status); } && {
  16652. test -z "$ac_cxx_werror_flag" ||
  16653. test ! -s conftest.err
  16654. } && test -s conftest$ac_exeext && {
  16655. test "$cross_compiling" = yes ||
  16656. $as_test_x conftest$ac_exeext
  16657. }; then
  16658. gt_cv_func_CFLocaleCopyCurrent=yes
  16659. else
  16660. $as_echo "$as_me: failed program was:" >&5
  16661. sed 's/^/| /' conftest.$ac_ext >&5
  16662. gt_cv_func_CFLocaleCopyCurrent=no
  16663. fi
  16664. rm -rf conftest.dSYM
  16665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16666. conftest$ac_exeext conftest.$ac_ext
  16667. LIBS="$gt_save_LIBS"
  16668. fi
  16669. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16670. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16671. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16672. cat >>confdefs.h <<\_ACEOF
  16673. #define HAVE_CFLOCALECOPYCURRENT 1
  16674. _ACEOF
  16675. fi
  16676. INTL_MACOSX_LIBS=
  16677. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16678. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16679. fi
  16680. BUILD_INCLUDED_LIBINTL=no
  16681. USE_INCLUDED_LIBINTL=no
  16682. LIBINTL=
  16683. LTLIBINTL=
  16684. POSUB=
  16685. case " $gt_needs " in
  16686. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16687. *" need-ngettext "*) gt_api_version=2 ;;
  16688. *) gt_api_version=1 ;;
  16689. esac
  16690. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16691. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16692. if test "$USE_NLS" = "yes"; then
  16693. gt_use_preinstalled_gnugettext=no
  16694. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16695. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16696. # Check whether --with-included-gettext was given.
  16697. if test "${with_included_gettext+set}" = set; then
  16698. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16699. else
  16700. nls_cv_force_use_gnu_gettext=no
  16701. fi
  16702. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16703. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16704. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16705. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16706. if test $gt_api_version -ge 3; then
  16707. gt_revision_test_code='
  16708. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16709. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16710. #endif
  16711. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16712. '
  16713. else
  16714. gt_revision_test_code=
  16715. fi
  16716. if test $gt_api_version -ge 2; then
  16717. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16718. else
  16719. gt_expression_test_code=
  16720. fi
  16721. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16722. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16723. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16724. $as_echo_n "(cached) " >&6
  16725. else
  16726. cat >conftest.$ac_ext <<_ACEOF
  16727. /* confdefs.h. */
  16728. _ACEOF
  16729. cat confdefs.h >>conftest.$ac_ext
  16730. cat >>conftest.$ac_ext <<_ACEOF
  16731. /* end confdefs.h. */
  16732. #include <libintl.h>
  16733. $gt_revision_test_code
  16734. extern int _nl_msg_cat_cntr;
  16735. extern int *_nl_domain_bindings;
  16736. int
  16737. main ()
  16738. {
  16739. bindtextdomain ("", "");
  16740. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. rm -f conftest.$ac_objext conftest$ac_exeext
  16746. if { (ac_try="$ac_link"
  16747. case "(($ac_try" in
  16748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16749. *) ac_try_echo=$ac_try;;
  16750. esac
  16751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16752. $as_echo "$ac_try_echo") >&5
  16753. (eval "$ac_link") 2>conftest.er1
  16754. ac_status=$?
  16755. grep -v '^ *+' conftest.er1 >conftest.err
  16756. rm -f conftest.er1
  16757. cat conftest.err >&5
  16758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16759. (exit $ac_status); } && {
  16760. test -z "$ac_cxx_werror_flag" ||
  16761. test ! -s conftest.err
  16762. } && test -s conftest$ac_exeext && {
  16763. test "$cross_compiling" = yes ||
  16764. $as_test_x conftest$ac_exeext
  16765. }; then
  16766. eval "$gt_func_gnugettext_libc=yes"
  16767. else
  16768. $as_echo "$as_me: failed program was:" >&5
  16769. sed 's/^/| /' conftest.$ac_ext >&5
  16770. eval "$gt_func_gnugettext_libc=no"
  16771. fi
  16772. rm -rf conftest.dSYM
  16773. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16774. conftest$ac_exeext conftest.$ac_ext
  16775. fi
  16776. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16777. $as_echo "$as_val"'`
  16778. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16779. $as_echo "$ac_res" >&6; }
  16780. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16781. use_additional=yes
  16782. acl_save_prefix="$prefix"
  16783. prefix="$acl_final_prefix"
  16784. acl_save_exec_prefix="$exec_prefix"
  16785. exec_prefix="$acl_final_exec_prefix"
  16786. eval additional_includedir=\"$includedir\"
  16787. eval additional_libdir=\"$libdir\"
  16788. exec_prefix="$acl_save_exec_prefix"
  16789. prefix="$acl_save_prefix"
  16790. # Check whether --with-libintl-prefix was given.
  16791. if test "${with_libintl_prefix+set}" = set; then
  16792. withval=$with_libintl_prefix;
  16793. if test "X$withval" = "Xno"; then
  16794. use_additional=no
  16795. else
  16796. if test "X$withval" = "X"; then
  16797. acl_save_prefix="$prefix"
  16798. prefix="$acl_final_prefix"
  16799. acl_save_exec_prefix="$exec_prefix"
  16800. exec_prefix="$acl_final_exec_prefix"
  16801. eval additional_includedir=\"$includedir\"
  16802. eval additional_libdir=\"$libdir\"
  16803. exec_prefix="$acl_save_exec_prefix"
  16804. prefix="$acl_save_prefix"
  16805. else
  16806. additional_includedir="$withval/include"
  16807. additional_libdir="$withval/$acl_libdirstem"
  16808. fi
  16809. fi
  16810. fi
  16811. LIBINTL=
  16812. LTLIBINTL=
  16813. INCINTL=
  16814. LIBINTL_PREFIX=
  16815. rpathdirs=
  16816. ltrpathdirs=
  16817. names_already_handled=
  16818. names_next_round='intl '
  16819. while test -n "$names_next_round"; do
  16820. names_this_round="$names_next_round"
  16821. names_next_round=
  16822. for name in $names_this_round; do
  16823. already_handled=
  16824. for n in $names_already_handled; do
  16825. if test "$n" = "$name"; then
  16826. already_handled=yes
  16827. break
  16828. fi
  16829. done
  16830. if test -z "$already_handled"; then
  16831. names_already_handled="$names_already_handled $name"
  16832. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16833. eval value=\"\$HAVE_LIB$uppername\"
  16834. if test -n "$value"; then
  16835. if test "$value" = yes; then
  16836. eval value=\"\$LIB$uppername\"
  16837. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16838. eval value=\"\$LTLIB$uppername\"
  16839. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16840. else
  16841. :
  16842. fi
  16843. else
  16844. found_dir=
  16845. found_la=
  16846. found_so=
  16847. found_a=
  16848. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16849. if test -n "$acl_shlibext"; then
  16850. shrext=".$acl_shlibext" # typically: shrext=.so
  16851. else
  16852. shrext=
  16853. fi
  16854. if test $use_additional = yes; then
  16855. dir="$additional_libdir"
  16856. if test -n "$acl_shlibext"; then
  16857. if test -f "$dir/$libname$shrext"; then
  16858. found_dir="$dir"
  16859. found_so="$dir/$libname$shrext"
  16860. else
  16861. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16862. ver=`(cd "$dir" && \
  16863. for f in "$libname$shrext".*; do echo "$f"; done \
  16864. | sed -e "s,^$libname$shrext\\\\.,," \
  16865. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16866. | sed 1q ) 2>/dev/null`
  16867. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16868. found_dir="$dir"
  16869. found_so="$dir/$libname$shrext.$ver"
  16870. fi
  16871. else
  16872. eval library_names=\"$acl_library_names_spec\"
  16873. for f in $library_names; do
  16874. if test -f "$dir/$f"; then
  16875. found_dir="$dir"
  16876. found_so="$dir/$f"
  16877. break
  16878. fi
  16879. done
  16880. fi
  16881. fi
  16882. fi
  16883. if test "X$found_dir" = "X"; then
  16884. if test -f "$dir/$libname.$acl_libext"; then
  16885. found_dir="$dir"
  16886. found_a="$dir/$libname.$acl_libext"
  16887. fi
  16888. fi
  16889. if test "X$found_dir" != "X"; then
  16890. if test -f "$dir/$libname.la"; then
  16891. found_la="$dir/$libname.la"
  16892. fi
  16893. fi
  16894. fi
  16895. if test "X$found_dir" = "X"; then
  16896. for x in $LDFLAGS $LTLIBINTL; do
  16897. acl_save_prefix="$prefix"
  16898. prefix="$acl_final_prefix"
  16899. acl_save_exec_prefix="$exec_prefix"
  16900. exec_prefix="$acl_final_exec_prefix"
  16901. eval x=\"$x\"
  16902. exec_prefix="$acl_save_exec_prefix"
  16903. prefix="$acl_save_prefix"
  16904. case "$x" in
  16905. -L*)
  16906. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16907. if test -n "$acl_shlibext"; then
  16908. if test -f "$dir/$libname$shrext"; then
  16909. found_dir="$dir"
  16910. found_so="$dir/$libname$shrext"
  16911. else
  16912. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16913. ver=`(cd "$dir" && \
  16914. for f in "$libname$shrext".*; do echo "$f"; done \
  16915. | sed -e "s,^$libname$shrext\\\\.,," \
  16916. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16917. | sed 1q ) 2>/dev/null`
  16918. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16919. found_dir="$dir"
  16920. found_so="$dir/$libname$shrext.$ver"
  16921. fi
  16922. else
  16923. eval library_names=\"$acl_library_names_spec\"
  16924. for f in $library_names; do
  16925. if test -f "$dir/$f"; then
  16926. found_dir="$dir"
  16927. found_so="$dir/$f"
  16928. break
  16929. fi
  16930. done
  16931. fi
  16932. fi
  16933. fi
  16934. if test "X$found_dir" = "X"; then
  16935. if test -f "$dir/$libname.$acl_libext"; then
  16936. found_dir="$dir"
  16937. found_a="$dir/$libname.$acl_libext"
  16938. fi
  16939. fi
  16940. if test "X$found_dir" != "X"; then
  16941. if test -f "$dir/$libname.la"; then
  16942. found_la="$dir/$libname.la"
  16943. fi
  16944. fi
  16945. ;;
  16946. esac
  16947. if test "X$found_dir" != "X"; then
  16948. break
  16949. fi
  16950. done
  16951. fi
  16952. if test "X$found_dir" != "X"; then
  16953. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16954. if test "X$found_so" != "X"; then
  16955. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16956. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16957. else
  16958. haveit=
  16959. for x in $ltrpathdirs; do
  16960. if test "X$x" = "X$found_dir"; then
  16961. haveit=yes
  16962. break
  16963. fi
  16964. done
  16965. if test -z "$haveit"; then
  16966. ltrpathdirs="$ltrpathdirs $found_dir"
  16967. fi
  16968. if test "$acl_hardcode_direct" = yes; then
  16969. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16970. else
  16971. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16972. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16973. haveit=
  16974. for x in $rpathdirs; do
  16975. if test "X$x" = "X$found_dir"; then
  16976. haveit=yes
  16977. break
  16978. fi
  16979. done
  16980. if test -z "$haveit"; then
  16981. rpathdirs="$rpathdirs $found_dir"
  16982. fi
  16983. else
  16984. haveit=
  16985. for x in $LDFLAGS $LIBINTL; do
  16986. acl_save_prefix="$prefix"
  16987. prefix="$acl_final_prefix"
  16988. acl_save_exec_prefix="$exec_prefix"
  16989. exec_prefix="$acl_final_exec_prefix"
  16990. eval x=\"$x\"
  16991. exec_prefix="$acl_save_exec_prefix"
  16992. prefix="$acl_save_prefix"
  16993. if test "X$x" = "X-L$found_dir"; then
  16994. haveit=yes
  16995. break
  16996. fi
  16997. done
  16998. if test -z "$haveit"; then
  16999. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  17000. fi
  17001. if test "$acl_hardcode_minus_L" != no; then
  17002. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17003. else
  17004. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17005. fi
  17006. fi
  17007. fi
  17008. fi
  17009. else
  17010. if test "X$found_a" != "X"; then
  17011. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  17012. else
  17013. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  17014. fi
  17015. fi
  17016. additional_includedir=
  17017. case "$found_dir" in
  17018. */$acl_libdirstem | */$acl_libdirstem/)
  17019. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17020. LIBINTL_PREFIX="$basedir"
  17021. additional_includedir="$basedir/include"
  17022. ;;
  17023. esac
  17024. if test "X$additional_includedir" != "X"; then
  17025. if test "X$additional_includedir" != "X/usr/include"; then
  17026. haveit=
  17027. if test "X$additional_includedir" = "X/usr/local/include"; then
  17028. if test -n "$GCC"; then
  17029. case $host_os in
  17030. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17031. esac
  17032. fi
  17033. fi
  17034. if test -z "$haveit"; then
  17035. for x in $CPPFLAGS $INCINTL; do
  17036. acl_save_prefix="$prefix"
  17037. prefix="$acl_final_prefix"
  17038. acl_save_exec_prefix="$exec_prefix"
  17039. exec_prefix="$acl_final_exec_prefix"
  17040. eval x=\"$x\"
  17041. exec_prefix="$acl_save_exec_prefix"
  17042. prefix="$acl_save_prefix"
  17043. if test "X$x" = "X-I$additional_includedir"; then
  17044. haveit=yes
  17045. break
  17046. fi
  17047. done
  17048. if test -z "$haveit"; then
  17049. if test -d "$additional_includedir"; then
  17050. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  17051. fi
  17052. fi
  17053. fi
  17054. fi
  17055. fi
  17056. if test -n "$found_la"; then
  17057. save_libdir="$libdir"
  17058. case "$found_la" in
  17059. */* | *\\*) . "$found_la" ;;
  17060. *) . "./$found_la" ;;
  17061. esac
  17062. libdir="$save_libdir"
  17063. for dep in $dependency_libs; do
  17064. case "$dep" in
  17065. -L*)
  17066. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17067. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17068. haveit=
  17069. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17070. if test -n "$GCC"; then
  17071. case $host_os in
  17072. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17073. esac
  17074. fi
  17075. fi
  17076. if test -z "$haveit"; then
  17077. haveit=
  17078. for x in $LDFLAGS $LIBINTL; do
  17079. acl_save_prefix="$prefix"
  17080. prefix="$acl_final_prefix"
  17081. acl_save_exec_prefix="$exec_prefix"
  17082. exec_prefix="$acl_final_exec_prefix"
  17083. eval x=\"$x\"
  17084. exec_prefix="$acl_save_exec_prefix"
  17085. prefix="$acl_save_prefix"
  17086. if test "X$x" = "X-L$additional_libdir"; then
  17087. haveit=yes
  17088. break
  17089. fi
  17090. done
  17091. if test -z "$haveit"; then
  17092. if test -d "$additional_libdir"; then
  17093. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  17094. fi
  17095. fi
  17096. haveit=
  17097. for x in $LDFLAGS $LTLIBINTL; do
  17098. acl_save_prefix="$prefix"
  17099. prefix="$acl_final_prefix"
  17100. acl_save_exec_prefix="$exec_prefix"
  17101. exec_prefix="$acl_final_exec_prefix"
  17102. eval x=\"$x\"
  17103. exec_prefix="$acl_save_exec_prefix"
  17104. prefix="$acl_save_prefix"
  17105. if test "X$x" = "X-L$additional_libdir"; then
  17106. haveit=yes
  17107. break
  17108. fi
  17109. done
  17110. if test -z "$haveit"; then
  17111. if test -d "$additional_libdir"; then
  17112. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  17113. fi
  17114. fi
  17115. fi
  17116. fi
  17117. ;;
  17118. -R*)
  17119. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17120. if test "$enable_rpath" != no; then
  17121. haveit=
  17122. for x in $rpathdirs; do
  17123. if test "X$x" = "X$dir"; then
  17124. haveit=yes
  17125. break
  17126. fi
  17127. done
  17128. if test -z "$haveit"; then
  17129. rpathdirs="$rpathdirs $dir"
  17130. fi
  17131. haveit=
  17132. for x in $ltrpathdirs; do
  17133. if test "X$x" = "X$dir"; then
  17134. haveit=yes
  17135. break
  17136. fi
  17137. done
  17138. if test -z "$haveit"; then
  17139. ltrpathdirs="$ltrpathdirs $dir"
  17140. fi
  17141. fi
  17142. ;;
  17143. -l*)
  17144. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17145. ;;
  17146. *.la)
  17147. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17148. ;;
  17149. *)
  17150. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  17151. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  17152. ;;
  17153. esac
  17154. done
  17155. fi
  17156. else
  17157. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17158. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  17159. fi
  17160. fi
  17161. fi
  17162. done
  17163. done
  17164. if test "X$rpathdirs" != "X"; then
  17165. if test -n "$acl_hardcode_libdir_separator"; then
  17166. alldirs=
  17167. for found_dir in $rpathdirs; do
  17168. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17169. done
  17170. acl_save_libdir="$libdir"
  17171. libdir="$alldirs"
  17172. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17173. libdir="$acl_save_libdir"
  17174. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17175. else
  17176. for found_dir in $rpathdirs; do
  17177. acl_save_libdir="$libdir"
  17178. libdir="$found_dir"
  17179. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17180. libdir="$acl_save_libdir"
  17181. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17182. done
  17183. fi
  17184. fi
  17185. if test "X$ltrpathdirs" != "X"; then
  17186. for found_dir in $ltrpathdirs; do
  17187. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  17188. done
  17189. fi
  17190. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  17191. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  17192. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  17193. $as_echo_n "(cached) " >&6
  17194. else
  17195. gt_save_CPPFLAGS="$CPPFLAGS"
  17196. CPPFLAGS="$CPPFLAGS $INCINTL"
  17197. gt_save_LIBS="$LIBS"
  17198. LIBS="$LIBS $LIBINTL"
  17199. cat >conftest.$ac_ext <<_ACEOF
  17200. /* confdefs.h. */
  17201. _ACEOF
  17202. cat confdefs.h >>conftest.$ac_ext
  17203. cat >>conftest.$ac_ext <<_ACEOF
  17204. /* end confdefs.h. */
  17205. #include <libintl.h>
  17206. $gt_revision_test_code
  17207. extern int _nl_msg_cat_cntr;
  17208. extern
  17209. #ifdef __cplusplus
  17210. "C"
  17211. #endif
  17212. const char *_nl_expand_alias (const char *);
  17213. int
  17214. main ()
  17215. {
  17216. bindtextdomain ("", "");
  17217. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17218. ;
  17219. return 0;
  17220. }
  17221. _ACEOF
  17222. rm -f conftest.$ac_objext conftest$ac_exeext
  17223. if { (ac_try="$ac_link"
  17224. case "(($ac_try" in
  17225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17226. *) ac_try_echo=$ac_try;;
  17227. esac
  17228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17229. $as_echo "$ac_try_echo") >&5
  17230. (eval "$ac_link") 2>conftest.er1
  17231. ac_status=$?
  17232. grep -v '^ *+' conftest.er1 >conftest.err
  17233. rm -f conftest.er1
  17234. cat conftest.err >&5
  17235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17236. (exit $ac_status); } && {
  17237. test -z "$ac_cxx_werror_flag" ||
  17238. test ! -s conftest.err
  17239. } && test -s conftest$ac_exeext && {
  17240. test "$cross_compiling" = yes ||
  17241. $as_test_x conftest$ac_exeext
  17242. }; then
  17243. eval "$gt_func_gnugettext_libintl=yes"
  17244. else
  17245. $as_echo "$as_me: failed program was:" >&5
  17246. sed 's/^/| /' conftest.$ac_ext >&5
  17247. eval "$gt_func_gnugettext_libintl=no"
  17248. fi
  17249. rm -rf conftest.dSYM
  17250. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17251. conftest$ac_exeext conftest.$ac_ext
  17252. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17253. LIBS="$LIBS $LIBICONV"
  17254. cat >conftest.$ac_ext <<_ACEOF
  17255. /* confdefs.h. */
  17256. _ACEOF
  17257. cat confdefs.h >>conftest.$ac_ext
  17258. cat >>conftest.$ac_ext <<_ACEOF
  17259. /* end confdefs.h. */
  17260. #include <libintl.h>
  17261. $gt_revision_test_code
  17262. extern int _nl_msg_cat_cntr;
  17263. extern
  17264. #ifdef __cplusplus
  17265. "C"
  17266. #endif
  17267. const char *_nl_expand_alias (const char *);
  17268. int
  17269. main ()
  17270. {
  17271. bindtextdomain ("", "");
  17272. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17273. ;
  17274. return 0;
  17275. }
  17276. _ACEOF
  17277. rm -f conftest.$ac_objext conftest$ac_exeext
  17278. if { (ac_try="$ac_link"
  17279. case "(($ac_try" in
  17280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17281. *) ac_try_echo=$ac_try;;
  17282. esac
  17283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17284. $as_echo "$ac_try_echo") >&5
  17285. (eval "$ac_link") 2>conftest.er1
  17286. ac_status=$?
  17287. grep -v '^ *+' conftest.er1 >conftest.err
  17288. rm -f conftest.er1
  17289. cat conftest.err >&5
  17290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17291. (exit $ac_status); } && {
  17292. test -z "$ac_cxx_werror_flag" ||
  17293. test ! -s conftest.err
  17294. } && test -s conftest$ac_exeext && {
  17295. test "$cross_compiling" = yes ||
  17296. $as_test_x conftest$ac_exeext
  17297. }; then
  17298. LIBINTL="$LIBINTL $LIBICONV"
  17299. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17300. eval "$gt_func_gnugettext_libintl=yes"
  17301. else
  17302. $as_echo "$as_me: failed program was:" >&5
  17303. sed 's/^/| /' conftest.$ac_ext >&5
  17304. fi
  17305. rm -rf conftest.dSYM
  17306. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17307. conftest$ac_exeext conftest.$ac_ext
  17308. fi
  17309. CPPFLAGS="$gt_save_CPPFLAGS"
  17310. LIBS="$gt_save_LIBS"
  17311. fi
  17312. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17313. $as_echo "$as_val"'`
  17314. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17315. $as_echo "$ac_res" >&6; }
  17316. fi
  17317. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17318. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17319. && test "$PACKAGE" != gettext-runtime \
  17320. && test "$PACKAGE" != gettext-tools; }; then
  17321. gt_use_preinstalled_gnugettext=yes
  17322. else
  17323. LIBINTL=
  17324. LTLIBINTL=
  17325. INCINTL=
  17326. fi
  17327. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17328. nls_cv_use_gnu_gettext=yes
  17329. fi
  17330. fi
  17331. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17332. BUILD_INCLUDED_LIBINTL=yes
  17333. USE_INCLUDED_LIBINTL=yes
  17334. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17335. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17336. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17337. fi
  17338. CATOBJEXT=
  17339. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17340. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17341. CATOBJEXT=.gmo
  17342. fi
  17343. if test -n "$INTL_MACOSX_LIBS"; then
  17344. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17345. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17346. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17347. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17348. fi
  17349. fi
  17350. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17351. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17352. cat >>confdefs.h <<\_ACEOF
  17353. #define ENABLE_NLS 1
  17354. _ACEOF
  17355. else
  17356. USE_NLS=no
  17357. fi
  17358. fi
  17359. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17360. $as_echo_n "checking whether to use NLS... " >&6; }
  17361. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17362. $as_echo "$USE_NLS" >&6; }
  17363. if test "$USE_NLS" = "yes"; then
  17364. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17365. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17366. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17367. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17368. gt_source="external libintl"
  17369. else
  17370. gt_source="libc"
  17371. fi
  17372. else
  17373. gt_source="included intl directory"
  17374. fi
  17375. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17376. $as_echo "$gt_source" >&6; }
  17377. fi
  17378. if test "$USE_NLS" = "yes"; then
  17379. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17380. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17381. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17382. $as_echo_n "checking how to link with libintl... " >&6; }
  17383. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17384. $as_echo "$LIBINTL" >&6; }
  17385. for element in $INCINTL; do
  17386. haveit=
  17387. for x in $CPPFLAGS; do
  17388. acl_save_prefix="$prefix"
  17389. prefix="$acl_final_prefix"
  17390. acl_save_exec_prefix="$exec_prefix"
  17391. exec_prefix="$acl_final_exec_prefix"
  17392. eval x=\"$x\"
  17393. exec_prefix="$acl_save_exec_prefix"
  17394. prefix="$acl_save_prefix"
  17395. if test "X$x" = "X$element"; then
  17396. haveit=yes
  17397. break
  17398. fi
  17399. done
  17400. if test -z "$haveit"; then
  17401. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17402. fi
  17403. done
  17404. fi
  17405. cat >>confdefs.h <<\_ACEOF
  17406. #define HAVE_GETTEXT 1
  17407. _ACEOF
  17408. cat >>confdefs.h <<\_ACEOF
  17409. #define HAVE_DCGETTEXT 1
  17410. _ACEOF
  17411. fi
  17412. POSUB=po
  17413. fi
  17414. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17415. BUILD_INCLUDED_LIBINTL=yes
  17416. fi
  17417. nls_cv_header_intl=
  17418. nls_cv_header_libgt=
  17419. DATADIRNAME=share
  17420. INSTOBJEXT=.mo
  17421. GENCAT=gencat
  17422. INTLOBJS=
  17423. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17424. INTLOBJS="\$(GETTOBJS)"
  17425. fi
  17426. INTL_LIBTOOL_SUFFIX_PREFIX=
  17427. INTLLIBS="$LIBINTL"
  17428. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17429. $as_echo_n "checking for error_at_line... " >&6; }
  17430. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17431. $as_echo_n "(cached) " >&6
  17432. else
  17433. cat >conftest.$ac_ext <<_ACEOF
  17434. /* confdefs.h. */
  17435. _ACEOF
  17436. cat confdefs.h >>conftest.$ac_ext
  17437. cat >>conftest.$ac_ext <<_ACEOF
  17438. /* end confdefs.h. */
  17439. #include <error.h>
  17440. int
  17441. main ()
  17442. {
  17443. error_at_line (0, 0, "", 0, "an error occurred");
  17444. ;
  17445. return 0;
  17446. }
  17447. _ACEOF
  17448. rm -f conftest.$ac_objext conftest$ac_exeext
  17449. if { (ac_try="$ac_link"
  17450. case "(($ac_try" in
  17451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17452. *) ac_try_echo=$ac_try;;
  17453. esac
  17454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17455. $as_echo "$ac_try_echo") >&5
  17456. (eval "$ac_link") 2>conftest.er1
  17457. ac_status=$?
  17458. grep -v '^ *+' conftest.er1 >conftest.err
  17459. rm -f conftest.er1
  17460. cat conftest.err >&5
  17461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17462. (exit $ac_status); } && {
  17463. test -z "$ac_cxx_werror_flag" ||
  17464. test ! -s conftest.err
  17465. } && test -s conftest$ac_exeext && {
  17466. test "$cross_compiling" = yes ||
  17467. $as_test_x conftest$ac_exeext
  17468. }; then
  17469. ac_cv_lib_error_at_line=yes
  17470. else
  17471. $as_echo "$as_me: failed program was:" >&5
  17472. sed 's/^/| /' conftest.$ac_ext >&5
  17473. ac_cv_lib_error_at_line=no
  17474. fi
  17475. rm -rf conftest.dSYM
  17476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17477. conftest$ac_exeext conftest.$ac_ext
  17478. fi
  17479. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17480. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17481. if test $ac_cv_lib_error_at_line = no; then
  17482. case " $LIBOBJS " in
  17483. *" error.$ac_objext "* ) ;;
  17484. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17485. ;;
  17486. esac
  17487. fi
  17488. if test $ac_cv_c_compiler_gnu = yes; then
  17489. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17490. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17491. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17492. $as_echo_n "(cached) " >&6
  17493. else
  17494. ac_pattern="Autoconf.*'x'"
  17495. cat >conftest.$ac_ext <<_ACEOF
  17496. /* confdefs.h. */
  17497. _ACEOF
  17498. cat confdefs.h >>conftest.$ac_ext
  17499. cat >>conftest.$ac_ext <<_ACEOF
  17500. /* end confdefs.h. */
  17501. #include <sgtty.h>
  17502. Autoconf TIOCGETP
  17503. _ACEOF
  17504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17505. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17506. ac_cv_prog_gcc_traditional=yes
  17507. else
  17508. ac_cv_prog_gcc_traditional=no
  17509. fi
  17510. rm -f conftest*
  17511. if test $ac_cv_prog_gcc_traditional = no; then
  17512. cat >conftest.$ac_ext <<_ACEOF
  17513. /* confdefs.h. */
  17514. _ACEOF
  17515. cat confdefs.h >>conftest.$ac_ext
  17516. cat >>conftest.$ac_ext <<_ACEOF
  17517. /* end confdefs.h. */
  17518. #include <termio.h>
  17519. Autoconf TCGETA
  17520. _ACEOF
  17521. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17522. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17523. ac_cv_prog_gcc_traditional=yes
  17524. fi
  17525. rm -f conftest*
  17526. fi
  17527. fi
  17528. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17529. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17530. if test $ac_cv_prog_gcc_traditional = yes; then
  17531. CC="$CC -traditional"
  17532. fi
  17533. fi
  17534. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17535. $as_echo_n "checking for working memcmp... " >&6; }
  17536. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17537. $as_echo_n "(cached) " >&6
  17538. else
  17539. if test "$cross_compiling" = yes; then
  17540. ac_cv_func_memcmp_working=no
  17541. else
  17542. cat >conftest.$ac_ext <<_ACEOF
  17543. /* confdefs.h. */
  17544. _ACEOF
  17545. cat confdefs.h >>conftest.$ac_ext
  17546. cat >>conftest.$ac_ext <<_ACEOF
  17547. /* end confdefs.h. */
  17548. $ac_includes_default
  17549. int
  17550. main ()
  17551. {
  17552. /* Some versions of memcmp are not 8-bit clean. */
  17553. char c0 = '\100', c1 = '\200', c2 = '\201';
  17554. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17555. return 1;
  17556. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17557. or more and with at least one buffer not starting on a 4-byte boundary.
  17558. William Lewis provided this test program. */
  17559. {
  17560. char foo[21];
  17561. char bar[21];
  17562. int i;
  17563. for (i = 0; i < 4; i++)
  17564. {
  17565. char *a = foo + i;
  17566. char *b = bar + i;
  17567. strcpy (a, "--------01111111");
  17568. strcpy (b, "--------10000000");
  17569. if (memcmp (a, b, 16) >= 0)
  17570. return 1;
  17571. }
  17572. return 0;
  17573. }
  17574. ;
  17575. return 0;
  17576. }
  17577. _ACEOF
  17578. rm -f conftest$ac_exeext
  17579. if { (ac_try="$ac_link"
  17580. case "(($ac_try" in
  17581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17582. *) ac_try_echo=$ac_try;;
  17583. esac
  17584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17585. $as_echo "$ac_try_echo") >&5
  17586. (eval "$ac_link") 2>&5
  17587. ac_status=$?
  17588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17589. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17590. { (case "(($ac_try" in
  17591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17592. *) ac_try_echo=$ac_try;;
  17593. esac
  17594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17595. $as_echo "$ac_try_echo") >&5
  17596. (eval "$ac_try") 2>&5
  17597. ac_status=$?
  17598. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17599. (exit $ac_status); }; }; then
  17600. ac_cv_func_memcmp_working=yes
  17601. else
  17602. $as_echo "$as_me: program exited with status $ac_status" >&5
  17603. $as_echo "$as_me: failed program was:" >&5
  17604. sed 's/^/| /' conftest.$ac_ext >&5
  17605. ( exit $ac_status )
  17606. ac_cv_func_memcmp_working=no
  17607. fi
  17608. rm -rf conftest.dSYM
  17609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17610. fi
  17611. fi
  17612. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17613. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17614. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17615. *" memcmp.$ac_objext "* ) ;;
  17616. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17617. ;;
  17618. esac
  17619. for ac_header in $ac_header_list
  17620. do
  17621. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17622. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17623. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17624. $as_echo_n "checking for $ac_header... " >&6; }
  17625. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17626. $as_echo_n "(cached) " >&6
  17627. fi
  17628. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17629. $as_echo "$as_val"'`
  17630. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17631. $as_echo "$ac_res" >&6; }
  17632. else
  17633. # Is the header compilable?
  17634. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17635. $as_echo_n "checking $ac_header usability... " >&6; }
  17636. cat >conftest.$ac_ext <<_ACEOF
  17637. /* confdefs.h. */
  17638. _ACEOF
  17639. cat confdefs.h >>conftest.$ac_ext
  17640. cat >>conftest.$ac_ext <<_ACEOF
  17641. /* end confdefs.h. */
  17642. $ac_includes_default
  17643. #include <$ac_header>
  17644. _ACEOF
  17645. rm -f conftest.$ac_objext
  17646. if { (ac_try="$ac_compile"
  17647. case "(($ac_try" in
  17648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17649. *) ac_try_echo=$ac_try;;
  17650. esac
  17651. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17652. $as_echo "$ac_try_echo") >&5
  17653. (eval "$ac_compile") 2>conftest.er1
  17654. ac_status=$?
  17655. grep -v '^ *+' conftest.er1 >conftest.err
  17656. rm -f conftest.er1
  17657. cat conftest.err >&5
  17658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17659. (exit $ac_status); } && {
  17660. test -z "$ac_cxx_werror_flag" ||
  17661. test ! -s conftest.err
  17662. } && test -s conftest.$ac_objext; then
  17663. ac_header_compiler=yes
  17664. else
  17665. $as_echo "$as_me: failed program was:" >&5
  17666. sed 's/^/| /' conftest.$ac_ext >&5
  17667. ac_header_compiler=no
  17668. fi
  17669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17670. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17671. $as_echo "$ac_header_compiler" >&6; }
  17672. # Is the header present?
  17673. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17674. $as_echo_n "checking $ac_header presence... " >&6; }
  17675. cat >conftest.$ac_ext <<_ACEOF
  17676. /* confdefs.h. */
  17677. _ACEOF
  17678. cat confdefs.h >>conftest.$ac_ext
  17679. cat >>conftest.$ac_ext <<_ACEOF
  17680. /* end confdefs.h. */
  17681. #include <$ac_header>
  17682. _ACEOF
  17683. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17684. case "(($ac_try" in
  17685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17686. *) ac_try_echo=$ac_try;;
  17687. esac
  17688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17689. $as_echo "$ac_try_echo") >&5
  17690. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17691. ac_status=$?
  17692. grep -v '^ *+' conftest.er1 >conftest.err
  17693. rm -f conftest.er1
  17694. cat conftest.err >&5
  17695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17696. (exit $ac_status); } >/dev/null && {
  17697. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17698. test ! -s conftest.err
  17699. }; then
  17700. ac_header_preproc=yes
  17701. else
  17702. $as_echo "$as_me: failed program was:" >&5
  17703. sed 's/^/| /' conftest.$ac_ext >&5
  17704. ac_header_preproc=no
  17705. fi
  17706. rm -f conftest.err conftest.$ac_ext
  17707. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17708. $as_echo "$ac_header_preproc" >&6; }
  17709. # So? What about this header?
  17710. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17711. yes:no: )
  17712. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17713. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17714. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17715. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17716. ac_header_preproc=yes
  17717. ;;
  17718. no:yes:* )
  17719. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17720. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17721. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17722. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17723. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17724. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17725. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17726. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17727. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17728. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17729. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17730. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17731. ( cat <<\_ASBOX
  17732. ## ----------------------------------------------- ##
  17733. ## Report this to t-tujikawa@users.sourceforge.net ##
  17734. ## ----------------------------------------------- ##
  17735. _ASBOX
  17736. ) | sed "s/^/$as_me: WARNING: /" >&2
  17737. ;;
  17738. esac
  17739. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17740. $as_echo_n "checking for $ac_header... " >&6; }
  17741. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17742. $as_echo_n "(cached) " >&6
  17743. else
  17744. eval "$as_ac_Header=\$ac_header_preproc"
  17745. fi
  17746. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17747. $as_echo "$as_val"'`
  17748. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17749. $as_echo "$ac_res" >&6; }
  17750. fi
  17751. as_val=`eval 'as_val=${'$as_ac_Header'}
  17752. $as_echo "$as_val"'`
  17753. if test "x$as_val" = x""yes; then
  17754. cat >>confdefs.h <<_ACEOF
  17755. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17756. _ACEOF
  17757. fi
  17758. done
  17759. for ac_func in $ac_func_list
  17760. do
  17761. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17762. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17763. $as_echo_n "checking for $ac_func... " >&6; }
  17764. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17765. $as_echo_n "(cached) " >&6
  17766. else
  17767. cat >conftest.$ac_ext <<_ACEOF
  17768. /* confdefs.h. */
  17769. _ACEOF
  17770. cat confdefs.h >>conftest.$ac_ext
  17771. cat >>conftest.$ac_ext <<_ACEOF
  17772. /* end confdefs.h. */
  17773. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17774. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17775. #define $ac_func innocuous_$ac_func
  17776. /* System header to define __stub macros and hopefully few prototypes,
  17777. which can conflict with char $ac_func (); below.
  17778. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17779. <limits.h> exists even on freestanding compilers. */
  17780. #ifdef __STDC__
  17781. # include <limits.h>
  17782. #else
  17783. # include <assert.h>
  17784. #endif
  17785. #undef $ac_func
  17786. /* Override any GCC internal prototype to avoid an error.
  17787. Use char because int might match the return type of a GCC
  17788. builtin and then its argument prototype would still apply. */
  17789. #ifdef __cplusplus
  17790. extern "C"
  17791. #endif
  17792. char $ac_func ();
  17793. /* The GNU C library defines this for functions which it implements
  17794. to always fail with ENOSYS. Some functions are actually named
  17795. something starting with __ and the normal name is an alias. */
  17796. #if defined __stub_$ac_func || defined __stub___$ac_func
  17797. choke me
  17798. #endif
  17799. int
  17800. main ()
  17801. {
  17802. return $ac_func ();
  17803. ;
  17804. return 0;
  17805. }
  17806. _ACEOF
  17807. rm -f conftest.$ac_objext conftest$ac_exeext
  17808. if { (ac_try="$ac_link"
  17809. case "(($ac_try" in
  17810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17811. *) ac_try_echo=$ac_try;;
  17812. esac
  17813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17814. $as_echo "$ac_try_echo") >&5
  17815. (eval "$ac_link") 2>conftest.er1
  17816. ac_status=$?
  17817. grep -v '^ *+' conftest.er1 >conftest.err
  17818. rm -f conftest.er1
  17819. cat conftest.err >&5
  17820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17821. (exit $ac_status); } && {
  17822. test -z "$ac_cxx_werror_flag" ||
  17823. test ! -s conftest.err
  17824. } && test -s conftest$ac_exeext && {
  17825. test "$cross_compiling" = yes ||
  17826. $as_test_x conftest$ac_exeext
  17827. }; then
  17828. eval "$as_ac_var=yes"
  17829. else
  17830. $as_echo "$as_me: failed program was:" >&5
  17831. sed 's/^/| /' conftest.$ac_ext >&5
  17832. eval "$as_ac_var=no"
  17833. fi
  17834. rm -rf conftest.dSYM
  17835. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17836. conftest$ac_exeext conftest.$ac_ext
  17837. fi
  17838. ac_res=`eval 'as_val=${'$as_ac_var'}
  17839. $as_echo "$as_val"'`
  17840. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17841. $as_echo "$ac_res" >&6; }
  17842. as_val=`eval 'as_val=${'$as_ac_var'}
  17843. $as_echo "$as_val"'`
  17844. if test "x$as_val" = x""yes; then
  17845. cat >>confdefs.h <<_ACEOF
  17846. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17847. _ACEOF
  17848. fi
  17849. done
  17850. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17851. $as_echo_n "checking for working mktime... " >&6; }
  17852. if test "${ac_cv_func_working_mktime+set}" = set; then
  17853. $as_echo_n "(cached) " >&6
  17854. else
  17855. if test "$cross_compiling" = yes; then
  17856. ac_cv_func_working_mktime=no
  17857. else
  17858. cat >conftest.$ac_ext <<_ACEOF
  17859. /* confdefs.h. */
  17860. _ACEOF
  17861. cat confdefs.h >>conftest.$ac_ext
  17862. cat >>conftest.$ac_ext <<_ACEOF
  17863. /* end confdefs.h. */
  17864. /* Test program from Paul Eggert and Tony Leneis. */
  17865. #ifdef TIME_WITH_SYS_TIME
  17866. # include <sys/time.h>
  17867. # include <time.h>
  17868. #else
  17869. # ifdef HAVE_SYS_TIME_H
  17870. # include <sys/time.h>
  17871. # else
  17872. # include <time.h>
  17873. # endif
  17874. #endif
  17875. #include <limits.h>
  17876. #include <stdlib.h>
  17877. #ifdef HAVE_UNISTD_H
  17878. # include <unistd.h>
  17879. #endif
  17880. #ifndef HAVE_ALARM
  17881. # define alarm(X) /* empty */
  17882. #endif
  17883. /* Work around redefinition to rpl_putenv by other config tests. */
  17884. #undef putenv
  17885. static time_t time_t_max;
  17886. static time_t time_t_min;
  17887. /* Values we'll use to set the TZ environment variable. */
  17888. static char *tz_strings[] = {
  17889. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17890. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17891. };
  17892. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17893. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17894. Based on a problem report from Andreas Jaeger. */
  17895. static int
  17896. spring_forward_gap ()
  17897. {
  17898. /* glibc (up to about 1998-10-07) failed this test. */
  17899. struct tm tm;
  17900. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17901. instead of "TZ=America/Vancouver" in order to detect the bug even
  17902. on systems that don't support the Olson extension, or don't have the
  17903. full zoneinfo tables installed. */
  17904. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17905. tm.tm_year = 98;
  17906. tm.tm_mon = 3;
  17907. tm.tm_mday = 5;
  17908. tm.tm_hour = 2;
  17909. tm.tm_min = 0;
  17910. tm.tm_sec = 0;
  17911. tm.tm_isdst = -1;
  17912. return mktime (&tm) != (time_t) -1;
  17913. }
  17914. static int
  17915. mktime_test1 (now)
  17916. time_t now;
  17917. {
  17918. struct tm *lt;
  17919. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17920. }
  17921. static int
  17922. mktime_test (now)
  17923. time_t now;
  17924. {
  17925. return (mktime_test1 (now)
  17926. && mktime_test1 ((time_t) (time_t_max - now))
  17927. && mktime_test1 ((time_t) (time_t_min + now)));
  17928. }
  17929. static int
  17930. irix_6_4_bug ()
  17931. {
  17932. /* Based on code from Ariel Faigon. */
  17933. struct tm tm;
  17934. tm.tm_year = 96;
  17935. tm.tm_mon = 3;
  17936. tm.tm_mday = 0;
  17937. tm.tm_hour = 0;
  17938. tm.tm_min = 0;
  17939. tm.tm_sec = 0;
  17940. tm.tm_isdst = -1;
  17941. mktime (&tm);
  17942. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17943. }
  17944. static int
  17945. bigtime_test (j)
  17946. int j;
  17947. {
  17948. struct tm tm;
  17949. time_t now;
  17950. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17951. now = mktime (&tm);
  17952. if (now != (time_t) -1)
  17953. {
  17954. struct tm *lt = localtime (&now);
  17955. if (! (lt
  17956. && lt->tm_year == tm.tm_year
  17957. && lt->tm_mon == tm.tm_mon
  17958. && lt->tm_mday == tm.tm_mday
  17959. && lt->tm_hour == tm.tm_hour
  17960. && lt->tm_min == tm.tm_min
  17961. && lt->tm_sec == tm.tm_sec
  17962. && lt->tm_yday == tm.tm_yday
  17963. && lt->tm_wday == tm.tm_wday
  17964. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17965. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17966. return 0;
  17967. }
  17968. return 1;
  17969. }
  17970. static int
  17971. year_2050_test ()
  17972. {
  17973. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17974. ignoring leap seconds. */
  17975. unsigned long int answer = 2527315200UL;
  17976. struct tm tm;
  17977. time_t t;
  17978. tm.tm_year = 2050 - 1900;
  17979. tm.tm_mon = 2 - 1;
  17980. tm.tm_mday = 1;
  17981. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17982. tm.tm_isdst = -1;
  17983. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17984. instead of "TZ=America/Vancouver" in order to detect the bug even
  17985. on systems that don't support the Olson extension, or don't have the
  17986. full zoneinfo tables installed. */
  17987. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17988. t = mktime (&tm);
  17989. /* Check that the result is either a failure, or close enough
  17990. to the correct answer that we can assume the discrepancy is
  17991. due to leap seconds. */
  17992. return (t == (time_t) -1
  17993. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17994. }
  17995. int
  17996. main ()
  17997. {
  17998. time_t t, delta;
  17999. int i, j;
  18000. /* This test makes some buggy mktime implementations loop.
  18001. Give up after 60 seconds; a mktime slower than that
  18002. isn't worth using anyway. */
  18003. alarm (60);
  18004. for (;;)
  18005. {
  18006. t = (time_t_max << 1) + 1;
  18007. if (t <= time_t_max)
  18008. break;
  18009. time_t_max = t;
  18010. }
  18011. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  18012. delta = time_t_max / 997; /* a suitable prime number */
  18013. for (i = 0; i < N_STRINGS; i++)
  18014. {
  18015. if (tz_strings[i])
  18016. putenv (tz_strings[i]);
  18017. for (t = 0; t <= time_t_max - delta; t += delta)
  18018. if (! mktime_test (t))
  18019. return 1;
  18020. if (! (mktime_test ((time_t) 1)
  18021. && mktime_test ((time_t) (60 * 60))
  18022. && mktime_test ((time_t) (60 * 60 * 24))))
  18023. return 1;
  18024. for (j = 1; ; j <<= 1)
  18025. if (! bigtime_test (j))
  18026. return 1;
  18027. else if (INT_MAX / 2 < j)
  18028. break;
  18029. if (! bigtime_test (INT_MAX))
  18030. return 1;
  18031. }
  18032. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  18033. }
  18034. _ACEOF
  18035. rm -f conftest$ac_exeext
  18036. if { (ac_try="$ac_link"
  18037. case "(($ac_try" in
  18038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18039. *) ac_try_echo=$ac_try;;
  18040. esac
  18041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18042. $as_echo "$ac_try_echo") >&5
  18043. (eval "$ac_link") 2>&5
  18044. ac_status=$?
  18045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18046. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18047. { (case "(($ac_try" in
  18048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18049. *) ac_try_echo=$ac_try;;
  18050. esac
  18051. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18052. $as_echo "$ac_try_echo") >&5
  18053. (eval "$ac_try") 2>&5
  18054. ac_status=$?
  18055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18056. (exit $ac_status); }; }; then
  18057. ac_cv_func_working_mktime=yes
  18058. else
  18059. $as_echo "$as_me: program exited with status $ac_status" >&5
  18060. $as_echo "$as_me: failed program was:" >&5
  18061. sed 's/^/| /' conftest.$ac_ext >&5
  18062. ( exit $ac_status )
  18063. ac_cv_func_working_mktime=no
  18064. fi
  18065. rm -rf conftest.dSYM
  18066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18067. fi
  18068. fi
  18069. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  18070. $as_echo "$ac_cv_func_working_mktime" >&6; }
  18071. if test $ac_cv_func_working_mktime = no; then
  18072. case " $LIBOBJS " in
  18073. *" mktime.$ac_objext "* ) ;;
  18074. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  18075. ;;
  18076. esac
  18077. fi
  18078. for ac_header in stdlib.h unistd.h
  18079. do
  18080. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18081. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18082. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18083. $as_echo_n "checking for $ac_header... " >&6; }
  18084. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18085. $as_echo_n "(cached) " >&6
  18086. fi
  18087. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18088. $as_echo "$as_val"'`
  18089. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18090. $as_echo "$ac_res" >&6; }
  18091. else
  18092. # Is the header compilable?
  18093. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18094. $as_echo_n "checking $ac_header usability... " >&6; }
  18095. cat >conftest.$ac_ext <<_ACEOF
  18096. /* confdefs.h. */
  18097. _ACEOF
  18098. cat confdefs.h >>conftest.$ac_ext
  18099. cat >>conftest.$ac_ext <<_ACEOF
  18100. /* end confdefs.h. */
  18101. $ac_includes_default
  18102. #include <$ac_header>
  18103. _ACEOF
  18104. rm -f conftest.$ac_objext
  18105. if { (ac_try="$ac_compile"
  18106. case "(($ac_try" in
  18107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18108. *) ac_try_echo=$ac_try;;
  18109. esac
  18110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18111. $as_echo "$ac_try_echo") >&5
  18112. (eval "$ac_compile") 2>conftest.er1
  18113. ac_status=$?
  18114. grep -v '^ *+' conftest.er1 >conftest.err
  18115. rm -f conftest.er1
  18116. cat conftest.err >&5
  18117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18118. (exit $ac_status); } && {
  18119. test -z "$ac_cxx_werror_flag" ||
  18120. test ! -s conftest.err
  18121. } && test -s conftest.$ac_objext; then
  18122. ac_header_compiler=yes
  18123. else
  18124. $as_echo "$as_me: failed program was:" >&5
  18125. sed 's/^/| /' conftest.$ac_ext >&5
  18126. ac_header_compiler=no
  18127. fi
  18128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18129. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18130. $as_echo "$ac_header_compiler" >&6; }
  18131. # Is the header present?
  18132. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18133. $as_echo_n "checking $ac_header presence... " >&6; }
  18134. cat >conftest.$ac_ext <<_ACEOF
  18135. /* confdefs.h. */
  18136. _ACEOF
  18137. cat confdefs.h >>conftest.$ac_ext
  18138. cat >>conftest.$ac_ext <<_ACEOF
  18139. /* end confdefs.h. */
  18140. #include <$ac_header>
  18141. _ACEOF
  18142. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18143. case "(($ac_try" in
  18144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18145. *) ac_try_echo=$ac_try;;
  18146. esac
  18147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18148. $as_echo "$ac_try_echo") >&5
  18149. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18150. ac_status=$?
  18151. grep -v '^ *+' conftest.er1 >conftest.err
  18152. rm -f conftest.er1
  18153. cat conftest.err >&5
  18154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18155. (exit $ac_status); } >/dev/null && {
  18156. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18157. test ! -s conftest.err
  18158. }; then
  18159. ac_header_preproc=yes
  18160. else
  18161. $as_echo "$as_me: failed program was:" >&5
  18162. sed 's/^/| /' conftest.$ac_ext >&5
  18163. ac_header_preproc=no
  18164. fi
  18165. rm -f conftest.err conftest.$ac_ext
  18166. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18167. $as_echo "$ac_header_preproc" >&6; }
  18168. # So? What about this header?
  18169. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18170. yes:no: )
  18171. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18172. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18173. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18174. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18175. ac_header_preproc=yes
  18176. ;;
  18177. no:yes:* )
  18178. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18179. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18180. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18181. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18183. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18185. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18186. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18187. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18188. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18189. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18190. ( cat <<\_ASBOX
  18191. ## ----------------------------------------------- ##
  18192. ## Report this to t-tujikawa@users.sourceforge.net ##
  18193. ## ----------------------------------------------- ##
  18194. _ASBOX
  18195. ) | sed "s/^/$as_me: WARNING: /" >&2
  18196. ;;
  18197. esac
  18198. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18199. $as_echo_n "checking for $ac_header... " >&6; }
  18200. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18201. $as_echo_n "(cached) " >&6
  18202. else
  18203. eval "$as_ac_Header=\$ac_header_preproc"
  18204. fi
  18205. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18206. $as_echo "$as_val"'`
  18207. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18208. $as_echo "$ac_res" >&6; }
  18209. fi
  18210. as_val=`eval 'as_val=${'$as_ac_Header'}
  18211. $as_echo "$as_val"'`
  18212. if test "x$as_val" = x""yes; then
  18213. cat >>confdefs.h <<_ACEOF
  18214. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18215. _ACEOF
  18216. fi
  18217. done
  18218. for ac_func in getpagesize
  18219. do
  18220. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18221. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18222. $as_echo_n "checking for $ac_func... " >&6; }
  18223. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18224. $as_echo_n "(cached) " >&6
  18225. else
  18226. cat >conftest.$ac_ext <<_ACEOF
  18227. /* confdefs.h. */
  18228. _ACEOF
  18229. cat confdefs.h >>conftest.$ac_ext
  18230. cat >>conftest.$ac_ext <<_ACEOF
  18231. /* end confdefs.h. */
  18232. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18233. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18234. #define $ac_func innocuous_$ac_func
  18235. /* System header to define __stub macros and hopefully few prototypes,
  18236. which can conflict with char $ac_func (); below.
  18237. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18238. <limits.h> exists even on freestanding compilers. */
  18239. #ifdef __STDC__
  18240. # include <limits.h>
  18241. #else
  18242. # include <assert.h>
  18243. #endif
  18244. #undef $ac_func
  18245. /* Override any GCC internal prototype to avoid an error.
  18246. Use char because int might match the return type of a GCC
  18247. builtin and then its argument prototype would still apply. */
  18248. #ifdef __cplusplus
  18249. extern "C"
  18250. #endif
  18251. char $ac_func ();
  18252. /* The GNU C library defines this for functions which it implements
  18253. to always fail with ENOSYS. Some functions are actually named
  18254. something starting with __ and the normal name is an alias. */
  18255. #if defined __stub_$ac_func || defined __stub___$ac_func
  18256. choke me
  18257. #endif
  18258. int
  18259. main ()
  18260. {
  18261. return $ac_func ();
  18262. ;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. rm -f conftest.$ac_objext conftest$ac_exeext
  18267. if { (ac_try="$ac_link"
  18268. case "(($ac_try" in
  18269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18270. *) ac_try_echo=$ac_try;;
  18271. esac
  18272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18273. $as_echo "$ac_try_echo") >&5
  18274. (eval "$ac_link") 2>conftest.er1
  18275. ac_status=$?
  18276. grep -v '^ *+' conftest.er1 >conftest.err
  18277. rm -f conftest.er1
  18278. cat conftest.err >&5
  18279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18280. (exit $ac_status); } && {
  18281. test -z "$ac_cxx_werror_flag" ||
  18282. test ! -s conftest.err
  18283. } && test -s conftest$ac_exeext && {
  18284. test "$cross_compiling" = yes ||
  18285. $as_test_x conftest$ac_exeext
  18286. }; then
  18287. eval "$as_ac_var=yes"
  18288. else
  18289. $as_echo "$as_me: failed program was:" >&5
  18290. sed 's/^/| /' conftest.$ac_ext >&5
  18291. eval "$as_ac_var=no"
  18292. fi
  18293. rm -rf conftest.dSYM
  18294. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18295. conftest$ac_exeext conftest.$ac_ext
  18296. fi
  18297. ac_res=`eval 'as_val=${'$as_ac_var'}
  18298. $as_echo "$as_val"'`
  18299. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18300. $as_echo "$ac_res" >&6; }
  18301. as_val=`eval 'as_val=${'$as_ac_var'}
  18302. $as_echo "$as_val"'`
  18303. if test "x$as_val" = x""yes; then
  18304. cat >>confdefs.h <<_ACEOF
  18305. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18306. _ACEOF
  18307. fi
  18308. done
  18309. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18310. $as_echo_n "checking for working mmap... " >&6; }
  18311. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18312. $as_echo_n "(cached) " >&6
  18313. else
  18314. if test "$cross_compiling" = yes; then
  18315. ac_cv_func_mmap_fixed_mapped=no
  18316. else
  18317. cat >conftest.$ac_ext <<_ACEOF
  18318. /* confdefs.h. */
  18319. _ACEOF
  18320. cat confdefs.h >>conftest.$ac_ext
  18321. cat >>conftest.$ac_ext <<_ACEOF
  18322. /* end confdefs.h. */
  18323. $ac_includes_default
  18324. /* malloc might have been renamed as rpl_malloc. */
  18325. #undef malloc
  18326. /* Thanks to Mike Haertel and Jim Avera for this test.
  18327. Here is a matrix of mmap possibilities:
  18328. mmap private not fixed
  18329. mmap private fixed at somewhere currently unmapped
  18330. mmap private fixed at somewhere already mapped
  18331. mmap shared not fixed
  18332. mmap shared fixed at somewhere currently unmapped
  18333. mmap shared fixed at somewhere already mapped
  18334. For private mappings, we should verify that changes cannot be read()
  18335. back from the file, nor mmap's back from the file at a different
  18336. address. (There have been systems where private was not correctly
  18337. implemented like the infamous i386 svr4.0, and systems where the
  18338. VM page cache was not coherent with the file system buffer cache
  18339. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18340. For shared mappings, we should conversely verify that changes get
  18341. propagated back to all the places they're supposed to be.
  18342. Grep wants private fixed already mapped.
  18343. The main things grep needs to know about mmap are:
  18344. * does it exist and is it safe to write into the mmap'd area
  18345. * how to use it (BSD variants) */
  18346. #include <fcntl.h>
  18347. #include <sys/mman.h>
  18348. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18349. char *malloc ();
  18350. #endif
  18351. /* This mess was copied from the GNU getpagesize.h. */
  18352. #ifndef HAVE_GETPAGESIZE
  18353. /* Assume that all systems that can run configure have sys/param.h. */
  18354. # ifndef HAVE_SYS_PARAM_H
  18355. # define HAVE_SYS_PARAM_H 1
  18356. # endif
  18357. # ifdef _SC_PAGESIZE
  18358. # define getpagesize() sysconf(_SC_PAGESIZE)
  18359. # else /* no _SC_PAGESIZE */
  18360. # ifdef HAVE_SYS_PARAM_H
  18361. # include <sys/param.h>
  18362. # ifdef EXEC_PAGESIZE
  18363. # define getpagesize() EXEC_PAGESIZE
  18364. # else /* no EXEC_PAGESIZE */
  18365. # ifdef NBPG
  18366. # define getpagesize() NBPG * CLSIZE
  18367. # ifndef CLSIZE
  18368. # define CLSIZE 1
  18369. # endif /* no CLSIZE */
  18370. # else /* no NBPG */
  18371. # ifdef NBPC
  18372. # define getpagesize() NBPC
  18373. # else /* no NBPC */
  18374. # ifdef PAGESIZE
  18375. # define getpagesize() PAGESIZE
  18376. # endif /* PAGESIZE */
  18377. # endif /* no NBPC */
  18378. # endif /* no NBPG */
  18379. # endif /* no EXEC_PAGESIZE */
  18380. # else /* no HAVE_SYS_PARAM_H */
  18381. # define getpagesize() 8192 /* punt totally */
  18382. # endif /* no HAVE_SYS_PARAM_H */
  18383. # endif /* no _SC_PAGESIZE */
  18384. #endif /* no HAVE_GETPAGESIZE */
  18385. int
  18386. main ()
  18387. {
  18388. char *data, *data2, *data3;
  18389. int i, pagesize;
  18390. int fd;
  18391. pagesize = getpagesize ();
  18392. /* First, make a file with some known garbage in it. */
  18393. data = (char *) malloc (pagesize);
  18394. if (!data)
  18395. return 1;
  18396. for (i = 0; i < pagesize; ++i)
  18397. *(data + i) = rand ();
  18398. umask (0);
  18399. fd = creat ("conftest.mmap", 0600);
  18400. if (fd < 0)
  18401. return 1;
  18402. if (write (fd, data, pagesize) != pagesize)
  18403. return 1;
  18404. close (fd);
  18405. /* Next, try to mmap the file at a fixed address which already has
  18406. something else allocated at it. If we can, also make sure that
  18407. we see the same garbage. */
  18408. fd = open ("conftest.mmap", O_RDWR);
  18409. if (fd < 0)
  18410. return 1;
  18411. data2 = (char *) malloc (2 * pagesize);
  18412. if (!data2)
  18413. return 1;
  18414. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18415. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18416. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18417. return 1;
  18418. for (i = 0; i < pagesize; ++i)
  18419. if (*(data + i) != *(data2 + i))
  18420. return 1;
  18421. /* Finally, make sure that changes to the mapped area do not
  18422. percolate back to the file as seen by read(). (This is a bug on
  18423. some variants of i386 svr4.0.) */
  18424. for (i = 0; i < pagesize; ++i)
  18425. *(data2 + i) = *(data2 + i) + 1;
  18426. data3 = (char *) malloc (pagesize);
  18427. if (!data3)
  18428. return 1;
  18429. if (read (fd, data3, pagesize) != pagesize)
  18430. return 1;
  18431. for (i = 0; i < pagesize; ++i)
  18432. if (*(data + i) != *(data3 + i))
  18433. return 1;
  18434. close (fd);
  18435. return 0;
  18436. }
  18437. _ACEOF
  18438. rm -f conftest$ac_exeext
  18439. if { (ac_try="$ac_link"
  18440. case "(($ac_try" in
  18441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18442. *) ac_try_echo=$ac_try;;
  18443. esac
  18444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18445. $as_echo "$ac_try_echo") >&5
  18446. (eval "$ac_link") 2>&5
  18447. ac_status=$?
  18448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18449. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18450. { (case "(($ac_try" in
  18451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18452. *) ac_try_echo=$ac_try;;
  18453. esac
  18454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18455. $as_echo "$ac_try_echo") >&5
  18456. (eval "$ac_try") 2>&5
  18457. ac_status=$?
  18458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18459. (exit $ac_status); }; }; then
  18460. ac_cv_func_mmap_fixed_mapped=yes
  18461. else
  18462. $as_echo "$as_me: program exited with status $ac_status" >&5
  18463. $as_echo "$as_me: failed program was:" >&5
  18464. sed 's/^/| /' conftest.$ac_ext >&5
  18465. ( exit $ac_status )
  18466. ac_cv_func_mmap_fixed_mapped=no
  18467. fi
  18468. rm -rf conftest.dSYM
  18469. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18470. fi
  18471. fi
  18472. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18473. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18474. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18475. cat >>confdefs.h <<\_ACEOF
  18476. #define HAVE_MMAP 1
  18477. _ACEOF
  18478. fi
  18479. rm -f conftest.mmap
  18480. for ac_header in sys/select.h sys/socket.h
  18481. do
  18482. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18483. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18484. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18485. $as_echo_n "checking for $ac_header... " >&6; }
  18486. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18487. $as_echo_n "(cached) " >&6
  18488. fi
  18489. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18490. $as_echo "$as_val"'`
  18491. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18492. $as_echo "$ac_res" >&6; }
  18493. else
  18494. # Is the header compilable?
  18495. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18496. $as_echo_n "checking $ac_header usability... " >&6; }
  18497. cat >conftest.$ac_ext <<_ACEOF
  18498. /* confdefs.h. */
  18499. _ACEOF
  18500. cat confdefs.h >>conftest.$ac_ext
  18501. cat >>conftest.$ac_ext <<_ACEOF
  18502. /* end confdefs.h. */
  18503. $ac_includes_default
  18504. #include <$ac_header>
  18505. _ACEOF
  18506. rm -f conftest.$ac_objext
  18507. if { (ac_try="$ac_compile"
  18508. case "(($ac_try" in
  18509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18510. *) ac_try_echo=$ac_try;;
  18511. esac
  18512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18513. $as_echo "$ac_try_echo") >&5
  18514. (eval "$ac_compile") 2>conftest.er1
  18515. ac_status=$?
  18516. grep -v '^ *+' conftest.er1 >conftest.err
  18517. rm -f conftest.er1
  18518. cat conftest.err >&5
  18519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18520. (exit $ac_status); } && {
  18521. test -z "$ac_cxx_werror_flag" ||
  18522. test ! -s conftest.err
  18523. } && test -s conftest.$ac_objext; then
  18524. ac_header_compiler=yes
  18525. else
  18526. $as_echo "$as_me: failed program was:" >&5
  18527. sed 's/^/| /' conftest.$ac_ext >&5
  18528. ac_header_compiler=no
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18531. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18532. $as_echo "$ac_header_compiler" >&6; }
  18533. # Is the header present?
  18534. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18535. $as_echo_n "checking $ac_header presence... " >&6; }
  18536. cat >conftest.$ac_ext <<_ACEOF
  18537. /* confdefs.h. */
  18538. _ACEOF
  18539. cat confdefs.h >>conftest.$ac_ext
  18540. cat >>conftest.$ac_ext <<_ACEOF
  18541. /* end confdefs.h. */
  18542. #include <$ac_header>
  18543. _ACEOF
  18544. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18545. case "(($ac_try" in
  18546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18547. *) ac_try_echo=$ac_try;;
  18548. esac
  18549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18550. $as_echo "$ac_try_echo") >&5
  18551. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18552. ac_status=$?
  18553. grep -v '^ *+' conftest.er1 >conftest.err
  18554. rm -f conftest.er1
  18555. cat conftest.err >&5
  18556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18557. (exit $ac_status); } >/dev/null && {
  18558. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18559. test ! -s conftest.err
  18560. }; then
  18561. ac_header_preproc=yes
  18562. else
  18563. $as_echo "$as_me: failed program was:" >&5
  18564. sed 's/^/| /' conftest.$ac_ext >&5
  18565. ac_header_preproc=no
  18566. fi
  18567. rm -f conftest.err conftest.$ac_ext
  18568. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18569. $as_echo "$ac_header_preproc" >&6; }
  18570. # So? What about this header?
  18571. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18572. yes:no: )
  18573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18574. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18576. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18577. ac_header_preproc=yes
  18578. ;;
  18579. no:yes:* )
  18580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18581. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18583. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18585. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18587. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18589. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18590. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18591. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18592. ( cat <<\_ASBOX
  18593. ## ----------------------------------------------- ##
  18594. ## Report this to t-tujikawa@users.sourceforge.net ##
  18595. ## ----------------------------------------------- ##
  18596. _ASBOX
  18597. ) | sed "s/^/$as_me: WARNING: /" >&2
  18598. ;;
  18599. esac
  18600. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18601. $as_echo_n "checking for $ac_header... " >&6; }
  18602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18603. $as_echo_n "(cached) " >&6
  18604. else
  18605. eval "$as_ac_Header=\$ac_header_preproc"
  18606. fi
  18607. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18608. $as_echo "$as_val"'`
  18609. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18610. $as_echo "$ac_res" >&6; }
  18611. fi
  18612. as_val=`eval 'as_val=${'$as_ac_Header'}
  18613. $as_echo "$as_val"'`
  18614. if test "x$as_val" = x""yes; then
  18615. cat >>confdefs.h <<_ACEOF
  18616. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18617. _ACEOF
  18618. fi
  18619. done
  18620. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18621. $as_echo_n "checking types of arguments for select... " >&6; }
  18622. if test "${ac_cv_func_select_args+set}" = set; then
  18623. $as_echo_n "(cached) " >&6
  18624. else
  18625. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18626. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18627. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18628. cat >conftest.$ac_ext <<_ACEOF
  18629. /* confdefs.h. */
  18630. _ACEOF
  18631. cat confdefs.h >>conftest.$ac_ext
  18632. cat >>conftest.$ac_ext <<_ACEOF
  18633. /* end confdefs.h. */
  18634. $ac_includes_default
  18635. #ifdef HAVE_SYS_SELECT_H
  18636. # include <sys/select.h>
  18637. #endif
  18638. #ifdef HAVE_SYS_SOCKET_H
  18639. # include <sys/socket.h>
  18640. #endif
  18641. int
  18642. main ()
  18643. {
  18644. extern int select ($ac_arg1,
  18645. $ac_arg234, $ac_arg234, $ac_arg234,
  18646. $ac_arg5);
  18647. ;
  18648. return 0;
  18649. }
  18650. _ACEOF
  18651. rm -f conftest.$ac_objext
  18652. if { (ac_try="$ac_compile"
  18653. case "(($ac_try" in
  18654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18655. *) ac_try_echo=$ac_try;;
  18656. esac
  18657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18658. $as_echo "$ac_try_echo") >&5
  18659. (eval "$ac_compile") 2>conftest.er1
  18660. ac_status=$?
  18661. grep -v '^ *+' conftest.er1 >conftest.err
  18662. rm -f conftest.er1
  18663. cat conftest.err >&5
  18664. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18665. (exit $ac_status); } && {
  18666. test -z "$ac_cxx_werror_flag" ||
  18667. test ! -s conftest.err
  18668. } && test -s conftest.$ac_objext; then
  18669. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18670. else
  18671. $as_echo "$as_me: failed program was:" >&5
  18672. sed 's/^/| /' conftest.$ac_ext >&5
  18673. fi
  18674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18675. done
  18676. done
  18677. done
  18678. # Provide a safe default value.
  18679. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18680. fi
  18681. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18682. $as_echo "$ac_cv_func_select_args" >&6; }
  18683. ac_save_IFS=$IFS; IFS=','
  18684. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18685. IFS=$ac_save_IFS
  18686. shift
  18687. cat >>confdefs.h <<_ACEOF
  18688. #define SELECT_TYPE_ARG1 $1
  18689. _ACEOF
  18690. cat >>confdefs.h <<_ACEOF
  18691. #define SELECT_TYPE_ARG234 ($2)
  18692. _ACEOF
  18693. cat >>confdefs.h <<_ACEOF
  18694. #define SELECT_TYPE_ARG5 ($3)
  18695. _ACEOF
  18696. rm -f conftest*
  18697. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18698. $as_echo_n "checking return type of signal handlers... " >&6; }
  18699. if test "${ac_cv_type_signal+set}" = set; then
  18700. $as_echo_n "(cached) " >&6
  18701. else
  18702. cat >conftest.$ac_ext <<_ACEOF
  18703. /* confdefs.h. */
  18704. _ACEOF
  18705. cat confdefs.h >>conftest.$ac_ext
  18706. cat >>conftest.$ac_ext <<_ACEOF
  18707. /* end confdefs.h. */
  18708. #include <sys/types.h>
  18709. #include <signal.h>
  18710. int
  18711. main ()
  18712. {
  18713. return *(signal (0, 0)) (0) == 1;
  18714. ;
  18715. return 0;
  18716. }
  18717. _ACEOF
  18718. rm -f conftest.$ac_objext
  18719. if { (ac_try="$ac_compile"
  18720. case "(($ac_try" in
  18721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18722. *) ac_try_echo=$ac_try;;
  18723. esac
  18724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18725. $as_echo "$ac_try_echo") >&5
  18726. (eval "$ac_compile") 2>conftest.er1
  18727. ac_status=$?
  18728. grep -v '^ *+' conftest.er1 >conftest.err
  18729. rm -f conftest.er1
  18730. cat conftest.err >&5
  18731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18732. (exit $ac_status); } && {
  18733. test -z "$ac_cxx_werror_flag" ||
  18734. test ! -s conftest.err
  18735. } && test -s conftest.$ac_objext; then
  18736. ac_cv_type_signal=int
  18737. else
  18738. $as_echo "$as_me: failed program was:" >&5
  18739. sed 's/^/| /' conftest.$ac_ext >&5
  18740. ac_cv_type_signal=void
  18741. fi
  18742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18743. fi
  18744. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18745. $as_echo "$ac_cv_type_signal" >&6; }
  18746. cat >>confdefs.h <<_ACEOF
  18747. #define RETSIGTYPE $ac_cv_type_signal
  18748. _ACEOF
  18749. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18750. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18751. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18752. $as_echo_n "(cached) " >&6
  18753. else
  18754. rm -f conftest.sym conftest.file
  18755. echo >conftest.file
  18756. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18757. if test "$cross_compiling" = yes; then
  18758. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18759. else
  18760. cat >conftest.$ac_ext <<_ACEOF
  18761. /* confdefs.h. */
  18762. _ACEOF
  18763. cat confdefs.h >>conftest.$ac_ext
  18764. cat >>conftest.$ac_ext <<_ACEOF
  18765. /* end confdefs.h. */
  18766. $ac_includes_default
  18767. int
  18768. main ()
  18769. {
  18770. struct stat sbuf;
  18771. /* Linux will dereference the symlink and fail.
  18772. That is better in the sense that it means we will not
  18773. have to compile and use the lstat wrapper. */
  18774. return lstat ("conftest.sym/", &sbuf) == 0;
  18775. ;
  18776. return 0;
  18777. }
  18778. _ACEOF
  18779. rm -f conftest$ac_exeext
  18780. if { (ac_try="$ac_link"
  18781. case "(($ac_try" in
  18782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18783. *) ac_try_echo=$ac_try;;
  18784. esac
  18785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18786. $as_echo "$ac_try_echo") >&5
  18787. (eval "$ac_link") 2>&5
  18788. ac_status=$?
  18789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18790. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18791. { (case "(($ac_try" in
  18792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18793. *) ac_try_echo=$ac_try;;
  18794. esac
  18795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18796. $as_echo "$ac_try_echo") >&5
  18797. (eval "$ac_try") 2>&5
  18798. ac_status=$?
  18799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18800. (exit $ac_status); }; }; then
  18801. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18802. else
  18803. $as_echo "$as_me: program exited with status $ac_status" >&5
  18804. $as_echo "$as_me: failed program was:" >&5
  18805. sed 's/^/| /' conftest.$ac_ext >&5
  18806. ( exit $ac_status )
  18807. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18808. fi
  18809. rm -rf conftest.dSYM
  18810. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18811. fi
  18812. else
  18813. # If the `ln -s' command failed, then we probably don't even
  18814. # have an lstat function.
  18815. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18816. fi
  18817. rm -f conftest.sym conftest.file
  18818. fi
  18819. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18820. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18821. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18822. cat >>confdefs.h <<_ACEOF
  18823. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18824. _ACEOF
  18825. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18826. case " $LIBOBJS " in
  18827. *" lstat.$ac_objext "* ) ;;
  18828. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18829. ;;
  18830. esac
  18831. fi
  18832. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18833. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18834. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18835. $as_echo_n "(cached) " >&6
  18836. else
  18837. if test "$cross_compiling" = yes; then
  18838. ac_cv_func_stat_empty_string_bug=yes
  18839. else
  18840. cat >conftest.$ac_ext <<_ACEOF
  18841. /* confdefs.h. */
  18842. _ACEOF
  18843. cat confdefs.h >>conftest.$ac_ext
  18844. cat >>conftest.$ac_ext <<_ACEOF
  18845. /* end confdefs.h. */
  18846. $ac_includes_default
  18847. int
  18848. main ()
  18849. {
  18850. struct stat sbuf;
  18851. return stat ("", &sbuf) == 0;
  18852. ;
  18853. return 0;
  18854. }
  18855. _ACEOF
  18856. rm -f conftest$ac_exeext
  18857. if { (ac_try="$ac_link"
  18858. case "(($ac_try" in
  18859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18860. *) ac_try_echo=$ac_try;;
  18861. esac
  18862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18863. $as_echo "$ac_try_echo") >&5
  18864. (eval "$ac_link") 2>&5
  18865. ac_status=$?
  18866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18867. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18868. { (case "(($ac_try" in
  18869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18870. *) ac_try_echo=$ac_try;;
  18871. esac
  18872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18873. $as_echo "$ac_try_echo") >&5
  18874. (eval "$ac_try") 2>&5
  18875. ac_status=$?
  18876. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18877. (exit $ac_status); }; }; then
  18878. ac_cv_func_stat_empty_string_bug=no
  18879. else
  18880. $as_echo "$as_me: program exited with status $ac_status" >&5
  18881. $as_echo "$as_me: failed program was:" >&5
  18882. sed 's/^/| /' conftest.$ac_ext >&5
  18883. ( exit $ac_status )
  18884. ac_cv_func_stat_empty_string_bug=yes
  18885. fi
  18886. rm -rf conftest.dSYM
  18887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18888. fi
  18889. fi
  18890. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18891. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18892. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18893. case " $LIBOBJS " in
  18894. *" stat.$ac_objext "* ) ;;
  18895. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18896. ;;
  18897. esac
  18898. cat >>confdefs.h <<_ACEOF
  18899. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18900. _ACEOF
  18901. fi
  18902. for ac_func in strftime
  18903. do
  18904. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18905. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18906. $as_echo_n "checking for $ac_func... " >&6; }
  18907. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18908. $as_echo_n "(cached) " >&6
  18909. else
  18910. cat >conftest.$ac_ext <<_ACEOF
  18911. /* confdefs.h. */
  18912. _ACEOF
  18913. cat confdefs.h >>conftest.$ac_ext
  18914. cat >>conftest.$ac_ext <<_ACEOF
  18915. /* end confdefs.h. */
  18916. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18917. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18918. #define $ac_func innocuous_$ac_func
  18919. /* System header to define __stub macros and hopefully few prototypes,
  18920. which can conflict with char $ac_func (); below.
  18921. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18922. <limits.h> exists even on freestanding compilers. */
  18923. #ifdef __STDC__
  18924. # include <limits.h>
  18925. #else
  18926. # include <assert.h>
  18927. #endif
  18928. #undef $ac_func
  18929. /* Override any GCC internal prototype to avoid an error.
  18930. Use char because int might match the return type of a GCC
  18931. builtin and then its argument prototype would still apply. */
  18932. #ifdef __cplusplus
  18933. extern "C"
  18934. #endif
  18935. char $ac_func ();
  18936. /* The GNU C library defines this for functions which it implements
  18937. to always fail with ENOSYS. Some functions are actually named
  18938. something starting with __ and the normal name is an alias. */
  18939. #if defined __stub_$ac_func || defined __stub___$ac_func
  18940. choke me
  18941. #endif
  18942. int
  18943. main ()
  18944. {
  18945. return $ac_func ();
  18946. ;
  18947. return 0;
  18948. }
  18949. _ACEOF
  18950. rm -f conftest.$ac_objext conftest$ac_exeext
  18951. if { (ac_try="$ac_link"
  18952. case "(($ac_try" in
  18953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18954. *) ac_try_echo=$ac_try;;
  18955. esac
  18956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18957. $as_echo "$ac_try_echo") >&5
  18958. (eval "$ac_link") 2>conftest.er1
  18959. ac_status=$?
  18960. grep -v '^ *+' conftest.er1 >conftest.err
  18961. rm -f conftest.er1
  18962. cat conftest.err >&5
  18963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18964. (exit $ac_status); } && {
  18965. test -z "$ac_cxx_werror_flag" ||
  18966. test ! -s conftest.err
  18967. } && test -s conftest$ac_exeext && {
  18968. test "$cross_compiling" = yes ||
  18969. $as_test_x conftest$ac_exeext
  18970. }; then
  18971. eval "$as_ac_var=yes"
  18972. else
  18973. $as_echo "$as_me: failed program was:" >&5
  18974. sed 's/^/| /' conftest.$ac_ext >&5
  18975. eval "$as_ac_var=no"
  18976. fi
  18977. rm -rf conftest.dSYM
  18978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18979. conftest$ac_exeext conftest.$ac_ext
  18980. fi
  18981. ac_res=`eval 'as_val=${'$as_ac_var'}
  18982. $as_echo "$as_val"'`
  18983. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18984. $as_echo "$ac_res" >&6; }
  18985. as_val=`eval 'as_val=${'$as_ac_var'}
  18986. $as_echo "$as_val"'`
  18987. if test "x$as_val" = x""yes; then
  18988. cat >>confdefs.h <<_ACEOF
  18989. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18990. _ACEOF
  18991. else
  18992. # strftime is in -lintl on SCO UNIX.
  18993. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18994. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18995. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18996. $as_echo_n "(cached) " >&6
  18997. else
  18998. ac_check_lib_save_LIBS=$LIBS
  18999. LIBS="-lintl $LIBS"
  19000. cat >conftest.$ac_ext <<_ACEOF
  19001. /* confdefs.h. */
  19002. _ACEOF
  19003. cat confdefs.h >>conftest.$ac_ext
  19004. cat >>conftest.$ac_ext <<_ACEOF
  19005. /* end confdefs.h. */
  19006. /* Override any GCC internal prototype to avoid an error.
  19007. Use char because int might match the return type of a GCC
  19008. builtin and then its argument prototype would still apply. */
  19009. #ifdef __cplusplus
  19010. extern "C"
  19011. #endif
  19012. char strftime ();
  19013. int
  19014. main ()
  19015. {
  19016. return strftime ();
  19017. ;
  19018. return 0;
  19019. }
  19020. _ACEOF
  19021. rm -f conftest.$ac_objext conftest$ac_exeext
  19022. if { (ac_try="$ac_link"
  19023. case "(($ac_try" in
  19024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19025. *) ac_try_echo=$ac_try;;
  19026. esac
  19027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19028. $as_echo "$ac_try_echo") >&5
  19029. (eval "$ac_link") 2>conftest.er1
  19030. ac_status=$?
  19031. grep -v '^ *+' conftest.er1 >conftest.err
  19032. rm -f conftest.er1
  19033. cat conftest.err >&5
  19034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19035. (exit $ac_status); } && {
  19036. test -z "$ac_cxx_werror_flag" ||
  19037. test ! -s conftest.err
  19038. } && test -s conftest$ac_exeext && {
  19039. test "$cross_compiling" = yes ||
  19040. $as_test_x conftest$ac_exeext
  19041. }; then
  19042. ac_cv_lib_intl_strftime=yes
  19043. else
  19044. $as_echo "$as_me: failed program was:" >&5
  19045. sed 's/^/| /' conftest.$ac_ext >&5
  19046. ac_cv_lib_intl_strftime=no
  19047. fi
  19048. rm -rf conftest.dSYM
  19049. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19050. conftest$ac_exeext conftest.$ac_ext
  19051. LIBS=$ac_check_lib_save_LIBS
  19052. fi
  19053. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  19054. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  19055. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  19056. cat >>confdefs.h <<\_ACEOF
  19057. #define HAVE_STRFTIME 1
  19058. _ACEOF
  19059. LIBS="-lintl $LIBS"
  19060. fi
  19061. fi
  19062. done
  19063. for ac_func in vprintf
  19064. do
  19065. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19066. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19067. $as_echo_n "checking for $ac_func... " >&6; }
  19068. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19069. $as_echo_n "(cached) " >&6
  19070. else
  19071. cat >conftest.$ac_ext <<_ACEOF
  19072. /* confdefs.h. */
  19073. _ACEOF
  19074. cat confdefs.h >>conftest.$ac_ext
  19075. cat >>conftest.$ac_ext <<_ACEOF
  19076. /* end confdefs.h. */
  19077. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19078. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19079. #define $ac_func innocuous_$ac_func
  19080. /* System header to define __stub macros and hopefully few prototypes,
  19081. which can conflict with char $ac_func (); below.
  19082. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19083. <limits.h> exists even on freestanding compilers. */
  19084. #ifdef __STDC__
  19085. # include <limits.h>
  19086. #else
  19087. # include <assert.h>
  19088. #endif
  19089. #undef $ac_func
  19090. /* Override any GCC internal prototype to avoid an error.
  19091. Use char because int might match the return type of a GCC
  19092. builtin and then its argument prototype would still apply. */
  19093. #ifdef __cplusplus
  19094. extern "C"
  19095. #endif
  19096. char $ac_func ();
  19097. /* The GNU C library defines this for functions which it implements
  19098. to always fail with ENOSYS. Some functions are actually named
  19099. something starting with __ and the normal name is an alias. */
  19100. #if defined __stub_$ac_func || defined __stub___$ac_func
  19101. choke me
  19102. #endif
  19103. int
  19104. main ()
  19105. {
  19106. return $ac_func ();
  19107. ;
  19108. return 0;
  19109. }
  19110. _ACEOF
  19111. rm -f conftest.$ac_objext conftest$ac_exeext
  19112. if { (ac_try="$ac_link"
  19113. case "(($ac_try" in
  19114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19115. *) ac_try_echo=$ac_try;;
  19116. esac
  19117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19118. $as_echo "$ac_try_echo") >&5
  19119. (eval "$ac_link") 2>conftest.er1
  19120. ac_status=$?
  19121. grep -v '^ *+' conftest.er1 >conftest.err
  19122. rm -f conftest.er1
  19123. cat conftest.err >&5
  19124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19125. (exit $ac_status); } && {
  19126. test -z "$ac_cxx_werror_flag" ||
  19127. test ! -s conftest.err
  19128. } && test -s conftest$ac_exeext && {
  19129. test "$cross_compiling" = yes ||
  19130. $as_test_x conftest$ac_exeext
  19131. }; then
  19132. eval "$as_ac_var=yes"
  19133. else
  19134. $as_echo "$as_me: failed program was:" >&5
  19135. sed 's/^/| /' conftest.$ac_ext >&5
  19136. eval "$as_ac_var=no"
  19137. fi
  19138. rm -rf conftest.dSYM
  19139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19140. conftest$ac_exeext conftest.$ac_ext
  19141. fi
  19142. ac_res=`eval 'as_val=${'$as_ac_var'}
  19143. $as_echo "$as_val"'`
  19144. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19145. $as_echo "$ac_res" >&6; }
  19146. as_val=`eval 'as_val=${'$as_ac_var'}
  19147. $as_echo "$as_val"'`
  19148. if test "x$as_val" = x""yes; then
  19149. cat >>confdefs.h <<_ACEOF
  19150. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19151. _ACEOF
  19152. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  19153. $as_echo_n "checking for _doprnt... " >&6; }
  19154. if test "${ac_cv_func__doprnt+set}" = set; then
  19155. $as_echo_n "(cached) " >&6
  19156. else
  19157. cat >conftest.$ac_ext <<_ACEOF
  19158. /* confdefs.h. */
  19159. _ACEOF
  19160. cat confdefs.h >>conftest.$ac_ext
  19161. cat >>conftest.$ac_ext <<_ACEOF
  19162. /* end confdefs.h. */
  19163. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  19164. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19165. #define _doprnt innocuous__doprnt
  19166. /* System header to define __stub macros and hopefully few prototypes,
  19167. which can conflict with char _doprnt (); below.
  19168. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19169. <limits.h> exists even on freestanding compilers. */
  19170. #ifdef __STDC__
  19171. # include <limits.h>
  19172. #else
  19173. # include <assert.h>
  19174. #endif
  19175. #undef _doprnt
  19176. /* Override any GCC internal prototype to avoid an error.
  19177. Use char because int might match the return type of a GCC
  19178. builtin and then its argument prototype would still apply. */
  19179. #ifdef __cplusplus
  19180. extern "C"
  19181. #endif
  19182. char _doprnt ();
  19183. /* The GNU C library defines this for functions which it implements
  19184. to always fail with ENOSYS. Some functions are actually named
  19185. something starting with __ and the normal name is an alias. */
  19186. #if defined __stub__doprnt || defined __stub____doprnt
  19187. choke me
  19188. #endif
  19189. int
  19190. main ()
  19191. {
  19192. return _doprnt ();
  19193. ;
  19194. return 0;
  19195. }
  19196. _ACEOF
  19197. rm -f conftest.$ac_objext conftest$ac_exeext
  19198. if { (ac_try="$ac_link"
  19199. case "(($ac_try" in
  19200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19201. *) ac_try_echo=$ac_try;;
  19202. esac
  19203. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19204. $as_echo "$ac_try_echo") >&5
  19205. (eval "$ac_link") 2>conftest.er1
  19206. ac_status=$?
  19207. grep -v '^ *+' conftest.er1 >conftest.err
  19208. rm -f conftest.er1
  19209. cat conftest.err >&5
  19210. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19211. (exit $ac_status); } && {
  19212. test -z "$ac_cxx_werror_flag" ||
  19213. test ! -s conftest.err
  19214. } && test -s conftest$ac_exeext && {
  19215. test "$cross_compiling" = yes ||
  19216. $as_test_x conftest$ac_exeext
  19217. }; then
  19218. ac_cv_func__doprnt=yes
  19219. else
  19220. $as_echo "$as_me: failed program was:" >&5
  19221. sed 's/^/| /' conftest.$ac_ext >&5
  19222. ac_cv_func__doprnt=no
  19223. fi
  19224. rm -rf conftest.dSYM
  19225. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19226. conftest$ac_exeext conftest.$ac_ext
  19227. fi
  19228. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  19229. $as_echo "$ac_cv_func__doprnt" >&6; }
  19230. if test "x$ac_cv_func__doprnt" = x""yes; then
  19231. cat >>confdefs.h <<\_ACEOF
  19232. #define HAVE_DOPRNT 1
  19233. _ACEOF
  19234. fi
  19235. fi
  19236. done
  19237. for ac_func in __argz_count \
  19238. __argz_next \
  19239. __argz_stringify \
  19240. atexit \
  19241. daemon \
  19242. ftruncate \
  19243. getcwd \
  19244. gethostbyaddr \
  19245. gethostbyname \
  19246. getpagesize \
  19247. inet_ntoa \
  19248. memchr \
  19249. memmove \
  19250. mempcpy \
  19251. memset \
  19252. mkdir \
  19253. munmap \
  19254. nl_langinfo \
  19255. posix_memalign \
  19256. putenv \
  19257. rmdir \
  19258. select \
  19259. setlocale \
  19260. sleep \
  19261. socket \
  19262. stpcpy \
  19263. strcasecmp \
  19264. strchr \
  19265. strcspn \
  19266. strdup \
  19267. strerror \
  19268. strncasecmp \
  19269. strstr \
  19270. strtol \
  19271. strtoul \
  19272. strtoull \
  19273. tzset \
  19274. unsetenv \
  19275. usleep
  19276. do
  19277. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19278. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19279. $as_echo_n "checking for $ac_func... " >&6; }
  19280. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19281. $as_echo_n "(cached) " >&6
  19282. else
  19283. cat >conftest.$ac_ext <<_ACEOF
  19284. /* confdefs.h. */
  19285. _ACEOF
  19286. cat confdefs.h >>conftest.$ac_ext
  19287. cat >>conftest.$ac_ext <<_ACEOF
  19288. /* end confdefs.h. */
  19289. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19290. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19291. #define $ac_func innocuous_$ac_func
  19292. /* System header to define __stub macros and hopefully few prototypes,
  19293. which can conflict with char $ac_func (); below.
  19294. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19295. <limits.h> exists even on freestanding compilers. */
  19296. #ifdef __STDC__
  19297. # include <limits.h>
  19298. #else
  19299. # include <assert.h>
  19300. #endif
  19301. #undef $ac_func
  19302. /* Override any GCC internal prototype to avoid an error.
  19303. Use char because int might match the return type of a GCC
  19304. builtin and then its argument prototype would still apply. */
  19305. #ifdef __cplusplus
  19306. extern "C"
  19307. #endif
  19308. char $ac_func ();
  19309. /* The GNU C library defines this for functions which it implements
  19310. to always fail with ENOSYS. Some functions are actually named
  19311. something starting with __ and the normal name is an alias. */
  19312. #if defined __stub_$ac_func || defined __stub___$ac_func
  19313. choke me
  19314. #endif
  19315. int
  19316. main ()
  19317. {
  19318. return $ac_func ();
  19319. ;
  19320. return 0;
  19321. }
  19322. _ACEOF
  19323. rm -f conftest.$ac_objext conftest$ac_exeext
  19324. if { (ac_try="$ac_link"
  19325. case "(($ac_try" in
  19326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19327. *) ac_try_echo=$ac_try;;
  19328. esac
  19329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19330. $as_echo "$ac_try_echo") >&5
  19331. (eval "$ac_link") 2>conftest.er1
  19332. ac_status=$?
  19333. grep -v '^ *+' conftest.er1 >conftest.err
  19334. rm -f conftest.er1
  19335. cat conftest.err >&5
  19336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); } && {
  19338. test -z "$ac_cxx_werror_flag" ||
  19339. test ! -s conftest.err
  19340. } && test -s conftest$ac_exeext && {
  19341. test "$cross_compiling" = yes ||
  19342. $as_test_x conftest$ac_exeext
  19343. }; then
  19344. eval "$as_ac_var=yes"
  19345. else
  19346. $as_echo "$as_me: failed program was:" >&5
  19347. sed 's/^/| /' conftest.$ac_ext >&5
  19348. eval "$as_ac_var=no"
  19349. fi
  19350. rm -rf conftest.dSYM
  19351. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19352. conftest$ac_exeext conftest.$ac_ext
  19353. fi
  19354. ac_res=`eval 'as_val=${'$as_ac_var'}
  19355. $as_echo "$as_val"'`
  19356. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19357. $as_echo "$ac_res" >&6; }
  19358. as_val=`eval 'as_val=${'$as_ac_var'}
  19359. $as_echo "$as_val"'`
  19360. if test "x$as_val" = x""yes; then
  19361. cat >>confdefs.h <<_ACEOF
  19362. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19363. _ACEOF
  19364. fi
  19365. done
  19366. if test "x$enable_epoll" = "xyes"; then
  19367. for ac_func in epoll_create
  19368. do
  19369. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19370. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19371. $as_echo_n "checking for $ac_func... " >&6; }
  19372. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19373. $as_echo_n "(cached) " >&6
  19374. else
  19375. cat >conftest.$ac_ext <<_ACEOF
  19376. /* confdefs.h. */
  19377. _ACEOF
  19378. cat confdefs.h >>conftest.$ac_ext
  19379. cat >>conftest.$ac_ext <<_ACEOF
  19380. /* end confdefs.h. */
  19381. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19382. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19383. #define $ac_func innocuous_$ac_func
  19384. /* System header to define __stub macros and hopefully few prototypes,
  19385. which can conflict with char $ac_func (); below.
  19386. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19387. <limits.h> exists even on freestanding compilers. */
  19388. #ifdef __STDC__
  19389. # include <limits.h>
  19390. #else
  19391. # include <assert.h>
  19392. #endif
  19393. #undef $ac_func
  19394. /* Override any GCC internal prototype to avoid an error.
  19395. Use char because int might match the return type of a GCC
  19396. builtin and then its argument prototype would still apply. */
  19397. #ifdef __cplusplus
  19398. extern "C"
  19399. #endif
  19400. char $ac_func ();
  19401. /* The GNU C library defines this for functions which it implements
  19402. to always fail with ENOSYS. Some functions are actually named
  19403. something starting with __ and the normal name is an alias. */
  19404. #if defined __stub_$ac_func || defined __stub___$ac_func
  19405. choke me
  19406. #endif
  19407. int
  19408. main ()
  19409. {
  19410. return $ac_func ();
  19411. ;
  19412. return 0;
  19413. }
  19414. _ACEOF
  19415. rm -f conftest.$ac_objext conftest$ac_exeext
  19416. if { (ac_try="$ac_link"
  19417. case "(($ac_try" in
  19418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19419. *) ac_try_echo=$ac_try;;
  19420. esac
  19421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19422. $as_echo "$ac_try_echo") >&5
  19423. (eval "$ac_link") 2>conftest.er1
  19424. ac_status=$?
  19425. grep -v '^ *+' conftest.er1 >conftest.err
  19426. rm -f conftest.er1
  19427. cat conftest.err >&5
  19428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19429. (exit $ac_status); } && {
  19430. test -z "$ac_cxx_werror_flag" ||
  19431. test ! -s conftest.err
  19432. } && test -s conftest$ac_exeext && {
  19433. test "$cross_compiling" = yes ||
  19434. $as_test_x conftest$ac_exeext
  19435. }; then
  19436. eval "$as_ac_var=yes"
  19437. else
  19438. $as_echo "$as_me: failed program was:" >&5
  19439. sed 's/^/| /' conftest.$ac_ext >&5
  19440. eval "$as_ac_var=no"
  19441. fi
  19442. rm -rf conftest.dSYM
  19443. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19444. conftest$ac_exeext conftest.$ac_ext
  19445. fi
  19446. ac_res=`eval 'as_val=${'$as_ac_var'}
  19447. $as_echo "$as_val"'`
  19448. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19449. $as_echo "$ac_res" >&6; }
  19450. as_val=`eval 'as_val=${'$as_ac_var'}
  19451. $as_echo "$as_val"'`
  19452. if test "x$as_val" = x""yes; then
  19453. cat >>confdefs.h <<_ACEOF
  19454. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19455. _ACEOF
  19456. have_epoll=yes
  19457. fi
  19458. done
  19459. if test "x$have_epoll" = "xyes"; then
  19460. cat >>confdefs.h <<\_ACEOF
  19461. #define HAVE_EPOLL 1
  19462. _ACEOF
  19463. fi
  19464. fi
  19465. if test "x$have_epoll" = "xyes"; then
  19466. HAVE_EPOLL_TRUE=
  19467. HAVE_EPOLL_FALSE='#'
  19468. else
  19469. HAVE_EPOLL_TRUE='#'
  19470. HAVE_EPOLL_FALSE=
  19471. fi
  19472. for ac_func in posix_fallocate
  19473. do
  19474. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19475. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19476. $as_echo_n "checking for $ac_func... " >&6; }
  19477. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19478. $as_echo_n "(cached) " >&6
  19479. else
  19480. cat >conftest.$ac_ext <<_ACEOF
  19481. /* confdefs.h. */
  19482. _ACEOF
  19483. cat confdefs.h >>conftest.$ac_ext
  19484. cat >>conftest.$ac_ext <<_ACEOF
  19485. /* end confdefs.h. */
  19486. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19487. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19488. #define $ac_func innocuous_$ac_func
  19489. /* System header to define __stub macros and hopefully few prototypes,
  19490. which can conflict with char $ac_func (); below.
  19491. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19492. <limits.h> exists even on freestanding compilers. */
  19493. #ifdef __STDC__
  19494. # include <limits.h>
  19495. #else
  19496. # include <assert.h>
  19497. #endif
  19498. #undef $ac_func
  19499. /* Override any GCC internal prototype to avoid an error.
  19500. Use char because int might match the return type of a GCC
  19501. builtin and then its argument prototype would still apply. */
  19502. #ifdef __cplusplus
  19503. extern "C"
  19504. #endif
  19505. char $ac_func ();
  19506. /* The GNU C library defines this for functions which it implements
  19507. to always fail with ENOSYS. Some functions are actually named
  19508. something starting with __ and the normal name is an alias. */
  19509. #if defined __stub_$ac_func || defined __stub___$ac_func
  19510. choke me
  19511. #endif
  19512. int
  19513. main ()
  19514. {
  19515. return $ac_func ();
  19516. ;
  19517. return 0;
  19518. }
  19519. _ACEOF
  19520. rm -f conftest.$ac_objext conftest$ac_exeext
  19521. if { (ac_try="$ac_link"
  19522. case "(($ac_try" in
  19523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19524. *) ac_try_echo=$ac_try;;
  19525. esac
  19526. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19527. $as_echo "$ac_try_echo") >&5
  19528. (eval "$ac_link") 2>conftest.er1
  19529. ac_status=$?
  19530. grep -v '^ *+' conftest.er1 >conftest.err
  19531. rm -f conftest.er1
  19532. cat conftest.err >&5
  19533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19534. (exit $ac_status); } && {
  19535. test -z "$ac_cxx_werror_flag" ||
  19536. test ! -s conftest.err
  19537. } && test -s conftest$ac_exeext && {
  19538. test "$cross_compiling" = yes ||
  19539. $as_test_x conftest$ac_exeext
  19540. }; then
  19541. eval "$as_ac_var=yes"
  19542. else
  19543. $as_echo "$as_me: failed program was:" >&5
  19544. sed 's/^/| /' conftest.$ac_ext >&5
  19545. eval "$as_ac_var=no"
  19546. fi
  19547. rm -rf conftest.dSYM
  19548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19549. conftest$ac_exeext conftest.$ac_ext
  19550. fi
  19551. ac_res=`eval 'as_val=${'$as_ac_var'}
  19552. $as_echo "$as_val"'`
  19553. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19554. $as_echo "$ac_res" >&6; }
  19555. as_val=`eval 'as_val=${'$as_ac_var'}
  19556. $as_echo "$as_val"'`
  19557. if test "x$as_val" = x""yes; then
  19558. cat >>confdefs.h <<_ACEOF
  19559. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19560. _ACEOF
  19561. have_posix_fallocate=yes
  19562. fi
  19563. done
  19564. if test "x$have_posix_fallocate" = "xyes"; then
  19565. HAVE_POSIX_FALLOCATE_TRUE=
  19566. HAVE_POSIX_FALLOCATE_FALSE='#'
  19567. else
  19568. HAVE_POSIX_FALLOCATE_TRUE='#'
  19569. HAVE_POSIX_FALLOCATE_FALSE=
  19570. fi
  19571. for ac_func in asctime_r
  19572. do
  19573. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19574. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19575. $as_echo_n "checking for $ac_func... " >&6; }
  19576. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19577. $as_echo_n "(cached) " >&6
  19578. else
  19579. cat >conftest.$ac_ext <<_ACEOF
  19580. /* confdefs.h. */
  19581. _ACEOF
  19582. cat confdefs.h >>conftest.$ac_ext
  19583. cat >>conftest.$ac_ext <<_ACEOF
  19584. /* end confdefs.h. */
  19585. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19586. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19587. #define $ac_func innocuous_$ac_func
  19588. /* System header to define __stub macros and hopefully few prototypes,
  19589. which can conflict with char $ac_func (); below.
  19590. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19591. <limits.h> exists even on freestanding compilers. */
  19592. #ifdef __STDC__
  19593. # include <limits.h>
  19594. #else
  19595. # include <assert.h>
  19596. #endif
  19597. #undef $ac_func
  19598. /* Override any GCC internal prototype to avoid an error.
  19599. Use char because int might match the return type of a GCC
  19600. builtin and then its argument prototype would still apply. */
  19601. #ifdef __cplusplus
  19602. extern "C"
  19603. #endif
  19604. char $ac_func ();
  19605. /* The GNU C library defines this for functions which it implements
  19606. to always fail with ENOSYS. Some functions are actually named
  19607. something starting with __ and the normal name is an alias. */
  19608. #if defined __stub_$ac_func || defined __stub___$ac_func
  19609. choke me
  19610. #endif
  19611. int
  19612. main ()
  19613. {
  19614. return $ac_func ();
  19615. ;
  19616. return 0;
  19617. }
  19618. _ACEOF
  19619. rm -f conftest.$ac_objext conftest$ac_exeext
  19620. if { (ac_try="$ac_link"
  19621. case "(($ac_try" in
  19622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19623. *) ac_try_echo=$ac_try;;
  19624. esac
  19625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19626. $as_echo "$ac_try_echo") >&5
  19627. (eval "$ac_link") 2>conftest.er1
  19628. ac_status=$?
  19629. grep -v '^ *+' conftest.er1 >conftest.err
  19630. rm -f conftest.er1
  19631. cat conftest.err >&5
  19632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19633. (exit $ac_status); } && {
  19634. test -z "$ac_cxx_werror_flag" ||
  19635. test ! -s conftest.err
  19636. } && test -s conftest$ac_exeext && {
  19637. test "$cross_compiling" = yes ||
  19638. $as_test_x conftest$ac_exeext
  19639. }; then
  19640. eval "$as_ac_var=yes"
  19641. else
  19642. $as_echo "$as_me: failed program was:" >&5
  19643. sed 's/^/| /' conftest.$ac_ext >&5
  19644. eval "$as_ac_var=no"
  19645. fi
  19646. rm -rf conftest.dSYM
  19647. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19648. conftest$ac_exeext conftest.$ac_ext
  19649. fi
  19650. ac_res=`eval 'as_val=${'$as_ac_var'}
  19651. $as_echo "$as_val"'`
  19652. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19653. $as_echo "$ac_res" >&6; }
  19654. as_val=`eval 'as_val=${'$as_ac_var'}
  19655. $as_echo "$as_val"'`
  19656. if test "x$as_val" = x""yes; then
  19657. cat >>confdefs.h <<_ACEOF
  19658. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19659. _ACEOF
  19660. if true; then
  19661. HAVE_ASCTIME_R_TRUE=
  19662. HAVE_ASCTIME_R_FALSE='#'
  19663. else
  19664. HAVE_ASCTIME_R_TRUE='#'
  19665. HAVE_ASCTIME_R_FALSE=
  19666. fi
  19667. else
  19668. if false; then
  19669. HAVE_ASCTIME_R_TRUE=
  19670. HAVE_ASCTIME_R_FALSE='#'
  19671. else
  19672. HAVE_ASCTIME_R_TRUE='#'
  19673. HAVE_ASCTIME_R_FALSE=
  19674. fi
  19675. fi
  19676. done
  19677. for ac_func in basename
  19678. do
  19679. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19680. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19681. $as_echo_n "checking for $ac_func... " >&6; }
  19682. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19683. $as_echo_n "(cached) " >&6
  19684. else
  19685. cat >conftest.$ac_ext <<_ACEOF
  19686. /* confdefs.h. */
  19687. _ACEOF
  19688. cat confdefs.h >>conftest.$ac_ext
  19689. cat >>conftest.$ac_ext <<_ACEOF
  19690. /* end confdefs.h. */
  19691. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19693. #define $ac_func innocuous_$ac_func
  19694. /* System header to define __stub macros and hopefully few prototypes,
  19695. which can conflict with char $ac_func (); below.
  19696. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19697. <limits.h> exists even on freestanding compilers. */
  19698. #ifdef __STDC__
  19699. # include <limits.h>
  19700. #else
  19701. # include <assert.h>
  19702. #endif
  19703. #undef $ac_func
  19704. /* Override any GCC internal prototype to avoid an error.
  19705. Use char because int might match the return type of a GCC
  19706. builtin and then its argument prototype would still apply. */
  19707. #ifdef __cplusplus
  19708. extern "C"
  19709. #endif
  19710. char $ac_func ();
  19711. /* The GNU C library defines this for functions which it implements
  19712. to always fail with ENOSYS. Some functions are actually named
  19713. something starting with __ and the normal name is an alias. */
  19714. #if defined __stub_$ac_func || defined __stub___$ac_func
  19715. choke me
  19716. #endif
  19717. int
  19718. main ()
  19719. {
  19720. return $ac_func ();
  19721. ;
  19722. return 0;
  19723. }
  19724. _ACEOF
  19725. rm -f conftest.$ac_objext conftest$ac_exeext
  19726. if { (ac_try="$ac_link"
  19727. case "(($ac_try" in
  19728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19729. *) ac_try_echo=$ac_try;;
  19730. esac
  19731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19732. $as_echo "$ac_try_echo") >&5
  19733. (eval "$ac_link") 2>conftest.er1
  19734. ac_status=$?
  19735. grep -v '^ *+' conftest.er1 >conftest.err
  19736. rm -f conftest.er1
  19737. cat conftest.err >&5
  19738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19739. (exit $ac_status); } && {
  19740. test -z "$ac_cxx_werror_flag" ||
  19741. test ! -s conftest.err
  19742. } && test -s conftest$ac_exeext && {
  19743. test "$cross_compiling" = yes ||
  19744. $as_test_x conftest$ac_exeext
  19745. }; then
  19746. eval "$as_ac_var=yes"
  19747. else
  19748. $as_echo "$as_me: failed program was:" >&5
  19749. sed 's/^/| /' conftest.$ac_ext >&5
  19750. eval "$as_ac_var=no"
  19751. fi
  19752. rm -rf conftest.dSYM
  19753. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19754. conftest$ac_exeext conftest.$ac_ext
  19755. fi
  19756. ac_res=`eval 'as_val=${'$as_ac_var'}
  19757. $as_echo "$as_val"'`
  19758. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19759. $as_echo "$ac_res" >&6; }
  19760. as_val=`eval 'as_val=${'$as_ac_var'}
  19761. $as_echo "$as_val"'`
  19762. if test "x$as_val" = x""yes; then
  19763. cat >>confdefs.h <<_ACEOF
  19764. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19765. _ACEOF
  19766. if true; then
  19767. HAVE_BASENAME_TRUE=
  19768. HAVE_BASENAME_FALSE='#'
  19769. else
  19770. HAVE_BASENAME_TRUE='#'
  19771. HAVE_BASENAME_FALSE=
  19772. fi
  19773. else
  19774. if false; then
  19775. HAVE_BASENAME_TRUE=
  19776. HAVE_BASENAME_FALSE='#'
  19777. else
  19778. HAVE_BASENAME_TRUE='#'
  19779. HAVE_BASENAME_FALSE=
  19780. fi
  19781. fi
  19782. done
  19783. for ac_func in gai_strerror
  19784. do
  19785. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19786. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19787. $as_echo_n "checking for $ac_func... " >&6; }
  19788. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19789. $as_echo_n "(cached) " >&6
  19790. else
  19791. cat >conftest.$ac_ext <<_ACEOF
  19792. /* confdefs.h. */
  19793. _ACEOF
  19794. cat confdefs.h >>conftest.$ac_ext
  19795. cat >>conftest.$ac_ext <<_ACEOF
  19796. /* end confdefs.h. */
  19797. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19798. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19799. #define $ac_func innocuous_$ac_func
  19800. /* System header to define __stub macros and hopefully few prototypes,
  19801. which can conflict with char $ac_func (); below.
  19802. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19803. <limits.h> exists even on freestanding compilers. */
  19804. #ifdef __STDC__
  19805. # include <limits.h>
  19806. #else
  19807. # include <assert.h>
  19808. #endif
  19809. #undef $ac_func
  19810. /* Override any GCC internal prototype to avoid an error.
  19811. Use char because int might match the return type of a GCC
  19812. builtin and then its argument prototype would still apply. */
  19813. #ifdef __cplusplus
  19814. extern "C"
  19815. #endif
  19816. char $ac_func ();
  19817. /* The GNU C library defines this for functions which it implements
  19818. to always fail with ENOSYS. Some functions are actually named
  19819. something starting with __ and the normal name is an alias. */
  19820. #if defined __stub_$ac_func || defined __stub___$ac_func
  19821. choke me
  19822. #endif
  19823. int
  19824. main ()
  19825. {
  19826. return $ac_func ();
  19827. ;
  19828. return 0;
  19829. }
  19830. _ACEOF
  19831. rm -f conftest.$ac_objext conftest$ac_exeext
  19832. if { (ac_try="$ac_link"
  19833. case "(($ac_try" in
  19834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19835. *) ac_try_echo=$ac_try;;
  19836. esac
  19837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19838. $as_echo "$ac_try_echo") >&5
  19839. (eval "$ac_link") 2>conftest.er1
  19840. ac_status=$?
  19841. grep -v '^ *+' conftest.er1 >conftest.err
  19842. rm -f conftest.er1
  19843. cat conftest.err >&5
  19844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19845. (exit $ac_status); } && {
  19846. test -z "$ac_cxx_werror_flag" ||
  19847. test ! -s conftest.err
  19848. } && test -s conftest$ac_exeext && {
  19849. test "$cross_compiling" = yes ||
  19850. $as_test_x conftest$ac_exeext
  19851. }; then
  19852. eval "$as_ac_var=yes"
  19853. else
  19854. $as_echo "$as_me: failed program was:" >&5
  19855. sed 's/^/| /' conftest.$ac_ext >&5
  19856. eval "$as_ac_var=no"
  19857. fi
  19858. rm -rf conftest.dSYM
  19859. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19860. conftest$ac_exeext conftest.$ac_ext
  19861. fi
  19862. ac_res=`eval 'as_val=${'$as_ac_var'}
  19863. $as_echo "$as_val"'`
  19864. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19865. $as_echo "$ac_res" >&6; }
  19866. as_val=`eval 'as_val=${'$as_ac_var'}
  19867. $as_echo "$as_val"'`
  19868. if test "x$as_val" = x""yes; then
  19869. cat >>confdefs.h <<_ACEOF
  19870. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19871. _ACEOF
  19872. if true; then
  19873. HAVE_GAI_STRERROR_TRUE=
  19874. HAVE_GAI_STRERROR_FALSE='#'
  19875. else
  19876. HAVE_GAI_STRERROR_TRUE='#'
  19877. HAVE_GAI_STRERROR_FALSE=
  19878. fi
  19879. else
  19880. if false; then
  19881. HAVE_GAI_STRERROR_TRUE=
  19882. HAVE_GAI_STRERROR_FALSE='#'
  19883. else
  19884. HAVE_GAI_STRERROR_TRUE='#'
  19885. HAVE_GAI_STRERROR_FALSE=
  19886. fi
  19887. fi
  19888. done
  19889. for ac_func in getaddrinfo
  19890. do
  19891. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19892. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19893. $as_echo_n "checking for $ac_func... " >&6; }
  19894. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19895. $as_echo_n "(cached) " >&6
  19896. else
  19897. cat >conftest.$ac_ext <<_ACEOF
  19898. /* confdefs.h. */
  19899. _ACEOF
  19900. cat confdefs.h >>conftest.$ac_ext
  19901. cat >>conftest.$ac_ext <<_ACEOF
  19902. /* end confdefs.h. */
  19903. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19905. #define $ac_func innocuous_$ac_func
  19906. /* System header to define __stub macros and hopefully few prototypes,
  19907. which can conflict with char $ac_func (); below.
  19908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19909. <limits.h> exists even on freestanding compilers. */
  19910. #ifdef __STDC__
  19911. # include <limits.h>
  19912. #else
  19913. # include <assert.h>
  19914. #endif
  19915. #undef $ac_func
  19916. /* Override any GCC internal prototype to avoid an error.
  19917. Use char because int might match the return type of a GCC
  19918. builtin and then its argument prototype would still apply. */
  19919. #ifdef __cplusplus
  19920. extern "C"
  19921. #endif
  19922. char $ac_func ();
  19923. /* The GNU C library defines this for functions which it implements
  19924. to always fail with ENOSYS. Some functions are actually named
  19925. something starting with __ and the normal name is an alias. */
  19926. #if defined __stub_$ac_func || defined __stub___$ac_func
  19927. choke me
  19928. #endif
  19929. int
  19930. main ()
  19931. {
  19932. return $ac_func ();
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. rm -f conftest.$ac_objext conftest$ac_exeext
  19938. if { (ac_try="$ac_link"
  19939. case "(($ac_try" in
  19940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19941. *) ac_try_echo=$ac_try;;
  19942. esac
  19943. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19944. $as_echo "$ac_try_echo") >&5
  19945. (eval "$ac_link") 2>conftest.er1
  19946. ac_status=$?
  19947. grep -v '^ *+' conftest.er1 >conftest.err
  19948. rm -f conftest.er1
  19949. cat conftest.err >&5
  19950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19951. (exit $ac_status); } && {
  19952. test -z "$ac_cxx_werror_flag" ||
  19953. test ! -s conftest.err
  19954. } && test -s conftest$ac_exeext && {
  19955. test "$cross_compiling" = yes ||
  19956. $as_test_x conftest$ac_exeext
  19957. }; then
  19958. eval "$as_ac_var=yes"
  19959. else
  19960. $as_echo "$as_me: failed program was:" >&5
  19961. sed 's/^/| /' conftest.$ac_ext >&5
  19962. eval "$as_ac_var=no"
  19963. fi
  19964. rm -rf conftest.dSYM
  19965. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19966. conftest$ac_exeext conftest.$ac_ext
  19967. fi
  19968. ac_res=`eval 'as_val=${'$as_ac_var'}
  19969. $as_echo "$as_val"'`
  19970. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19971. $as_echo "$ac_res" >&6; }
  19972. as_val=`eval 'as_val=${'$as_ac_var'}
  19973. $as_echo "$as_val"'`
  19974. if test "x$as_val" = x""yes; then
  19975. cat >>confdefs.h <<_ACEOF
  19976. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19977. _ACEOF
  19978. if true; then
  19979. HAVE_GETADDRINFO_TRUE=
  19980. HAVE_GETADDRINFO_FALSE='#'
  19981. else
  19982. HAVE_GETADDRINFO_TRUE='#'
  19983. HAVE_GETADDRINFO_FALSE=
  19984. fi
  19985. else
  19986. if false; then
  19987. HAVE_GETADDRINFO_TRUE=
  19988. HAVE_GETADDRINFO_FALSE='#'
  19989. else
  19990. HAVE_GETADDRINFO_TRUE='#'
  19991. HAVE_GETADDRINFO_FALSE=
  19992. fi
  19993. fi
  19994. done
  19995. for ac_func in gettimeofday
  19996. do
  19997. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19998. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19999. $as_echo_n "checking for $ac_func... " >&6; }
  20000. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20001. $as_echo_n "(cached) " >&6
  20002. else
  20003. cat >conftest.$ac_ext <<_ACEOF
  20004. /* confdefs.h. */
  20005. _ACEOF
  20006. cat confdefs.h >>conftest.$ac_ext
  20007. cat >>conftest.$ac_ext <<_ACEOF
  20008. /* end confdefs.h. */
  20009. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20010. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20011. #define $ac_func innocuous_$ac_func
  20012. /* System header to define __stub macros and hopefully few prototypes,
  20013. which can conflict with char $ac_func (); below.
  20014. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20015. <limits.h> exists even on freestanding compilers. */
  20016. #ifdef __STDC__
  20017. # include <limits.h>
  20018. #else
  20019. # include <assert.h>
  20020. #endif
  20021. #undef $ac_func
  20022. /* Override any GCC internal prototype to avoid an error.
  20023. Use char because int might match the return type of a GCC
  20024. builtin and then its argument prototype would still apply. */
  20025. #ifdef __cplusplus
  20026. extern "C"
  20027. #endif
  20028. char $ac_func ();
  20029. /* The GNU C library defines this for functions which it implements
  20030. to always fail with ENOSYS. Some functions are actually named
  20031. something starting with __ and the normal name is an alias. */
  20032. #if defined __stub_$ac_func || defined __stub___$ac_func
  20033. choke me
  20034. #endif
  20035. int
  20036. main ()
  20037. {
  20038. return $ac_func ();
  20039. ;
  20040. return 0;
  20041. }
  20042. _ACEOF
  20043. rm -f conftest.$ac_objext conftest$ac_exeext
  20044. if { (ac_try="$ac_link"
  20045. case "(($ac_try" in
  20046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20047. *) ac_try_echo=$ac_try;;
  20048. esac
  20049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20050. $as_echo "$ac_try_echo") >&5
  20051. (eval "$ac_link") 2>conftest.er1
  20052. ac_status=$?
  20053. grep -v '^ *+' conftest.er1 >conftest.err
  20054. rm -f conftest.er1
  20055. cat conftest.err >&5
  20056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20057. (exit $ac_status); } && {
  20058. test -z "$ac_cxx_werror_flag" ||
  20059. test ! -s conftest.err
  20060. } && test -s conftest$ac_exeext && {
  20061. test "$cross_compiling" = yes ||
  20062. $as_test_x conftest$ac_exeext
  20063. }; then
  20064. eval "$as_ac_var=yes"
  20065. else
  20066. $as_echo "$as_me: failed program was:" >&5
  20067. sed 's/^/| /' conftest.$ac_ext >&5
  20068. eval "$as_ac_var=no"
  20069. fi
  20070. rm -rf conftest.dSYM
  20071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20072. conftest$ac_exeext conftest.$ac_ext
  20073. fi
  20074. ac_res=`eval 'as_val=${'$as_ac_var'}
  20075. $as_echo "$as_val"'`
  20076. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20077. $as_echo "$ac_res" >&6; }
  20078. as_val=`eval 'as_val=${'$as_ac_var'}
  20079. $as_echo "$as_val"'`
  20080. if test "x$as_val" = x""yes; then
  20081. cat >>confdefs.h <<_ACEOF
  20082. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20083. _ACEOF
  20084. if true; then
  20085. HAVE_GETTIMEOFDAY_TRUE=
  20086. HAVE_GETTIMEOFDAY_FALSE='#'
  20087. else
  20088. HAVE_GETTIMEOFDAY_TRUE='#'
  20089. HAVE_GETTIMEOFDAY_FALSE=
  20090. fi
  20091. else
  20092. if false; then
  20093. HAVE_GETTIMEOFDAY_TRUE=
  20094. HAVE_GETTIMEOFDAY_FALSE='#'
  20095. else
  20096. HAVE_GETTIMEOFDAY_TRUE='#'
  20097. HAVE_GETTIMEOFDAY_FALSE=
  20098. fi
  20099. fi
  20100. done
  20101. for ac_func in inet_aton
  20102. do
  20103. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20104. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20105. $as_echo_n "checking for $ac_func... " >&6; }
  20106. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20107. $as_echo_n "(cached) " >&6
  20108. else
  20109. cat >conftest.$ac_ext <<_ACEOF
  20110. /* confdefs.h. */
  20111. _ACEOF
  20112. cat confdefs.h >>conftest.$ac_ext
  20113. cat >>conftest.$ac_ext <<_ACEOF
  20114. /* end confdefs.h. */
  20115. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20116. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20117. #define $ac_func innocuous_$ac_func
  20118. /* System header to define __stub macros and hopefully few prototypes,
  20119. which can conflict with char $ac_func (); below.
  20120. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20121. <limits.h> exists even on freestanding compilers. */
  20122. #ifdef __STDC__
  20123. # include <limits.h>
  20124. #else
  20125. # include <assert.h>
  20126. #endif
  20127. #undef $ac_func
  20128. /* Override any GCC internal prototype to avoid an error.
  20129. Use char because int might match the return type of a GCC
  20130. builtin and then its argument prototype would still apply. */
  20131. #ifdef __cplusplus
  20132. extern "C"
  20133. #endif
  20134. char $ac_func ();
  20135. /* The GNU C library defines this for functions which it implements
  20136. to always fail with ENOSYS. Some functions are actually named
  20137. something starting with __ and the normal name is an alias. */
  20138. #if defined __stub_$ac_func || defined __stub___$ac_func
  20139. choke me
  20140. #endif
  20141. int
  20142. main ()
  20143. {
  20144. return $ac_func ();
  20145. ;
  20146. return 0;
  20147. }
  20148. _ACEOF
  20149. rm -f conftest.$ac_objext conftest$ac_exeext
  20150. if { (ac_try="$ac_link"
  20151. case "(($ac_try" in
  20152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20153. *) ac_try_echo=$ac_try;;
  20154. esac
  20155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20156. $as_echo "$ac_try_echo") >&5
  20157. (eval "$ac_link") 2>conftest.er1
  20158. ac_status=$?
  20159. grep -v '^ *+' conftest.er1 >conftest.err
  20160. rm -f conftest.er1
  20161. cat conftest.err >&5
  20162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20163. (exit $ac_status); } && {
  20164. test -z "$ac_cxx_werror_flag" ||
  20165. test ! -s conftest.err
  20166. } && test -s conftest$ac_exeext && {
  20167. test "$cross_compiling" = yes ||
  20168. $as_test_x conftest$ac_exeext
  20169. }; then
  20170. eval "$as_ac_var=yes"
  20171. else
  20172. $as_echo "$as_me: failed program was:" >&5
  20173. sed 's/^/| /' conftest.$ac_ext >&5
  20174. eval "$as_ac_var=no"
  20175. fi
  20176. rm -rf conftest.dSYM
  20177. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20178. conftest$ac_exeext conftest.$ac_ext
  20179. fi
  20180. ac_res=`eval 'as_val=${'$as_ac_var'}
  20181. $as_echo "$as_val"'`
  20182. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20183. $as_echo "$ac_res" >&6; }
  20184. as_val=`eval 'as_val=${'$as_ac_var'}
  20185. $as_echo "$as_val"'`
  20186. if test "x$as_val" = x""yes; then
  20187. cat >>confdefs.h <<_ACEOF
  20188. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20189. _ACEOF
  20190. if true; then
  20191. HAVE_INET_ATON_TRUE=
  20192. HAVE_INET_ATON_FALSE='#'
  20193. else
  20194. HAVE_INET_ATON_TRUE='#'
  20195. HAVE_INET_ATON_FALSE=
  20196. fi
  20197. else
  20198. if false; then
  20199. HAVE_INET_ATON_TRUE=
  20200. HAVE_INET_ATON_FALSE='#'
  20201. else
  20202. HAVE_INET_ATON_TRUE='#'
  20203. HAVE_INET_ATON_FALSE=
  20204. fi
  20205. fi
  20206. done
  20207. for ac_func in localtime_r
  20208. do
  20209. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20210. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20211. $as_echo_n "checking for $ac_func... " >&6; }
  20212. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20213. $as_echo_n "(cached) " >&6
  20214. else
  20215. cat >conftest.$ac_ext <<_ACEOF
  20216. /* confdefs.h. */
  20217. _ACEOF
  20218. cat confdefs.h >>conftest.$ac_ext
  20219. cat >>conftest.$ac_ext <<_ACEOF
  20220. /* end confdefs.h. */
  20221. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20222. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20223. #define $ac_func innocuous_$ac_func
  20224. /* System header to define __stub macros and hopefully few prototypes,
  20225. which can conflict with char $ac_func (); below.
  20226. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20227. <limits.h> exists even on freestanding compilers. */
  20228. #ifdef __STDC__
  20229. # include <limits.h>
  20230. #else
  20231. # include <assert.h>
  20232. #endif
  20233. #undef $ac_func
  20234. /* Override any GCC internal prototype to avoid an error.
  20235. Use char because int might match the return type of a GCC
  20236. builtin and then its argument prototype would still apply. */
  20237. #ifdef __cplusplus
  20238. extern "C"
  20239. #endif
  20240. char $ac_func ();
  20241. /* The GNU C library defines this for functions which it implements
  20242. to always fail with ENOSYS. Some functions are actually named
  20243. something starting with __ and the normal name is an alias. */
  20244. #if defined __stub_$ac_func || defined __stub___$ac_func
  20245. choke me
  20246. #endif
  20247. int
  20248. main ()
  20249. {
  20250. return $ac_func ();
  20251. ;
  20252. return 0;
  20253. }
  20254. _ACEOF
  20255. rm -f conftest.$ac_objext conftest$ac_exeext
  20256. if { (ac_try="$ac_link"
  20257. case "(($ac_try" in
  20258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20259. *) ac_try_echo=$ac_try;;
  20260. esac
  20261. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20262. $as_echo "$ac_try_echo") >&5
  20263. (eval "$ac_link") 2>conftest.er1
  20264. ac_status=$?
  20265. grep -v '^ *+' conftest.er1 >conftest.err
  20266. rm -f conftest.er1
  20267. cat conftest.err >&5
  20268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20269. (exit $ac_status); } && {
  20270. test -z "$ac_cxx_werror_flag" ||
  20271. test ! -s conftest.err
  20272. } && test -s conftest$ac_exeext && {
  20273. test "$cross_compiling" = yes ||
  20274. $as_test_x conftest$ac_exeext
  20275. }; then
  20276. eval "$as_ac_var=yes"
  20277. else
  20278. $as_echo "$as_me: failed program was:" >&5
  20279. sed 's/^/| /' conftest.$ac_ext >&5
  20280. eval "$as_ac_var=no"
  20281. fi
  20282. rm -rf conftest.dSYM
  20283. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20284. conftest$ac_exeext conftest.$ac_ext
  20285. fi
  20286. ac_res=`eval 'as_val=${'$as_ac_var'}
  20287. $as_echo "$as_val"'`
  20288. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20289. $as_echo "$ac_res" >&6; }
  20290. as_val=`eval 'as_val=${'$as_ac_var'}
  20291. $as_echo "$as_val"'`
  20292. if test "x$as_val" = x""yes; then
  20293. cat >>confdefs.h <<_ACEOF
  20294. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20295. _ACEOF
  20296. if true; then
  20297. HAVE_LOCALTIME_R_TRUE=
  20298. HAVE_LOCALTIME_R_FALSE='#'
  20299. else
  20300. HAVE_LOCALTIME_R_TRUE='#'
  20301. HAVE_LOCALTIME_R_FALSE=
  20302. fi
  20303. else
  20304. if false; then
  20305. HAVE_LOCALTIME_R_TRUE=
  20306. HAVE_LOCALTIME_R_FALSE='#'
  20307. else
  20308. HAVE_LOCALTIME_R_TRUE='#'
  20309. HAVE_LOCALTIME_R_FALSE=
  20310. fi
  20311. fi
  20312. done
  20313. for ac_func in strptime
  20314. do
  20315. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20316. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20317. $as_echo_n "checking for $ac_func... " >&6; }
  20318. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20319. $as_echo_n "(cached) " >&6
  20320. else
  20321. cat >conftest.$ac_ext <<_ACEOF
  20322. /* confdefs.h. */
  20323. _ACEOF
  20324. cat confdefs.h >>conftest.$ac_ext
  20325. cat >>conftest.$ac_ext <<_ACEOF
  20326. /* end confdefs.h. */
  20327. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20328. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20329. #define $ac_func innocuous_$ac_func
  20330. /* System header to define __stub macros and hopefully few prototypes,
  20331. which can conflict with char $ac_func (); below.
  20332. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20333. <limits.h> exists even on freestanding compilers. */
  20334. #ifdef __STDC__
  20335. # include <limits.h>
  20336. #else
  20337. # include <assert.h>
  20338. #endif
  20339. #undef $ac_func
  20340. /* Override any GCC internal prototype to avoid an error.
  20341. Use char because int might match the return type of a GCC
  20342. builtin and then its argument prototype would still apply. */
  20343. #ifdef __cplusplus
  20344. extern "C"
  20345. #endif
  20346. char $ac_func ();
  20347. /* The GNU C library defines this for functions which it implements
  20348. to always fail with ENOSYS. Some functions are actually named
  20349. something starting with __ and the normal name is an alias. */
  20350. #if defined __stub_$ac_func || defined __stub___$ac_func
  20351. choke me
  20352. #endif
  20353. int
  20354. main ()
  20355. {
  20356. return $ac_func ();
  20357. ;
  20358. return 0;
  20359. }
  20360. _ACEOF
  20361. rm -f conftest.$ac_objext conftest$ac_exeext
  20362. if { (ac_try="$ac_link"
  20363. case "(($ac_try" in
  20364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20365. *) ac_try_echo=$ac_try;;
  20366. esac
  20367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20368. $as_echo "$ac_try_echo") >&5
  20369. (eval "$ac_link") 2>conftest.er1
  20370. ac_status=$?
  20371. grep -v '^ *+' conftest.er1 >conftest.err
  20372. rm -f conftest.er1
  20373. cat conftest.err >&5
  20374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20375. (exit $ac_status); } && {
  20376. test -z "$ac_cxx_werror_flag" ||
  20377. test ! -s conftest.err
  20378. } && test -s conftest$ac_exeext && {
  20379. test "$cross_compiling" = yes ||
  20380. $as_test_x conftest$ac_exeext
  20381. }; then
  20382. eval "$as_ac_var=yes"
  20383. else
  20384. $as_echo "$as_me: failed program was:" >&5
  20385. sed 's/^/| /' conftest.$ac_ext >&5
  20386. eval "$as_ac_var=no"
  20387. fi
  20388. rm -rf conftest.dSYM
  20389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20390. conftest$ac_exeext conftest.$ac_ext
  20391. fi
  20392. ac_res=`eval 'as_val=${'$as_ac_var'}
  20393. $as_echo "$as_val"'`
  20394. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20395. $as_echo "$ac_res" >&6; }
  20396. as_val=`eval 'as_val=${'$as_ac_var'}
  20397. $as_echo "$as_val"'`
  20398. if test "x$as_val" = x""yes; then
  20399. cat >>confdefs.h <<_ACEOF
  20400. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20401. _ACEOF
  20402. if true; then
  20403. HAVE_STRPTIME_TRUE=
  20404. HAVE_STRPTIME_FALSE='#'
  20405. else
  20406. HAVE_STRPTIME_TRUE='#'
  20407. HAVE_STRPTIME_FALSE=
  20408. fi
  20409. else
  20410. if false; then
  20411. HAVE_STRPTIME_TRUE=
  20412. HAVE_STRPTIME_FALSE='#'
  20413. else
  20414. HAVE_STRPTIME_TRUE='#'
  20415. HAVE_STRPTIME_FALSE=
  20416. fi
  20417. fi
  20418. done
  20419. for ac_func in timegm
  20420. do
  20421. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20422. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20423. $as_echo_n "checking for $ac_func... " >&6; }
  20424. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20425. $as_echo_n "(cached) " >&6
  20426. else
  20427. cat >conftest.$ac_ext <<_ACEOF
  20428. /* confdefs.h. */
  20429. _ACEOF
  20430. cat confdefs.h >>conftest.$ac_ext
  20431. cat >>conftest.$ac_ext <<_ACEOF
  20432. /* end confdefs.h. */
  20433. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20435. #define $ac_func innocuous_$ac_func
  20436. /* System header to define __stub macros and hopefully few prototypes,
  20437. which can conflict with char $ac_func (); below.
  20438. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20439. <limits.h> exists even on freestanding compilers. */
  20440. #ifdef __STDC__
  20441. # include <limits.h>
  20442. #else
  20443. # include <assert.h>
  20444. #endif
  20445. #undef $ac_func
  20446. /* Override any GCC internal prototype to avoid an error.
  20447. Use char because int might match the return type of a GCC
  20448. builtin and then its argument prototype would still apply. */
  20449. #ifdef __cplusplus
  20450. extern "C"
  20451. #endif
  20452. char $ac_func ();
  20453. /* The GNU C library defines this for functions which it implements
  20454. to always fail with ENOSYS. Some functions are actually named
  20455. something starting with __ and the normal name is an alias. */
  20456. #if defined __stub_$ac_func || defined __stub___$ac_func
  20457. choke me
  20458. #endif
  20459. int
  20460. main ()
  20461. {
  20462. return $ac_func ();
  20463. ;
  20464. return 0;
  20465. }
  20466. _ACEOF
  20467. rm -f conftest.$ac_objext conftest$ac_exeext
  20468. if { (ac_try="$ac_link"
  20469. case "(($ac_try" in
  20470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20471. *) ac_try_echo=$ac_try;;
  20472. esac
  20473. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20474. $as_echo "$ac_try_echo") >&5
  20475. (eval "$ac_link") 2>conftest.er1
  20476. ac_status=$?
  20477. grep -v '^ *+' conftest.er1 >conftest.err
  20478. rm -f conftest.er1
  20479. cat conftest.err >&5
  20480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20481. (exit $ac_status); } && {
  20482. test -z "$ac_cxx_werror_flag" ||
  20483. test ! -s conftest.err
  20484. } && test -s conftest$ac_exeext && {
  20485. test "$cross_compiling" = yes ||
  20486. $as_test_x conftest$ac_exeext
  20487. }; then
  20488. eval "$as_ac_var=yes"
  20489. else
  20490. $as_echo "$as_me: failed program was:" >&5
  20491. sed 's/^/| /' conftest.$ac_ext >&5
  20492. eval "$as_ac_var=no"
  20493. fi
  20494. rm -rf conftest.dSYM
  20495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20496. conftest$ac_exeext conftest.$ac_ext
  20497. fi
  20498. ac_res=`eval 'as_val=${'$as_ac_var'}
  20499. $as_echo "$as_val"'`
  20500. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20501. $as_echo "$ac_res" >&6; }
  20502. as_val=`eval 'as_val=${'$as_ac_var'}
  20503. $as_echo "$as_val"'`
  20504. if test "x$as_val" = x""yes; then
  20505. cat >>confdefs.h <<_ACEOF
  20506. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20507. _ACEOF
  20508. if true; then
  20509. HAVE_TIMEGM_TRUE=
  20510. HAVE_TIMEGM_FALSE='#'
  20511. else
  20512. HAVE_TIMEGM_TRUE='#'
  20513. HAVE_TIMEGM_FALSE=
  20514. fi
  20515. else
  20516. if false; then
  20517. HAVE_TIMEGM_TRUE=
  20518. HAVE_TIMEGM_FALSE='#'
  20519. else
  20520. HAVE_TIMEGM_TRUE='#'
  20521. HAVE_TIMEGM_FALSE=
  20522. fi
  20523. fi
  20524. done
  20525. case "$target" in
  20526. *mingw*)
  20527. if true; then
  20528. HAVE_GETADDRINFO_TRUE=
  20529. HAVE_GETADDRINFO_FALSE='#'
  20530. else
  20531. HAVE_GETADDRINFO_TRUE='#'
  20532. HAVE_GETADDRINFO_FALSE=
  20533. fi
  20534. if false; then
  20535. HAVE_GAI_STRERROR_TRUE=
  20536. HAVE_GAI_STRERROR_FALSE='#'
  20537. else
  20538. HAVE_GAI_STRERROR_TRUE='#'
  20539. HAVE_GAI_STRERROR_FALSE=
  20540. fi
  20541. ;;
  20542. esac
  20543. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20544. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20545. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20546. $as_echo_n "(cached) " >&6
  20547. else
  20548. cat >conftest.$ac_ext <<_ACEOF
  20549. /* confdefs.h. */
  20550. _ACEOF
  20551. cat confdefs.h >>conftest.$ac_ext
  20552. cat >>conftest.$ac_ext <<_ACEOF
  20553. /* end confdefs.h. */
  20554. #include <netinet/in.h>
  20555. int
  20556. main ()
  20557. {
  20558. static struct sockaddr_in ac_aggr;
  20559. if (ac_aggr.sin_len)
  20560. return 0;
  20561. ;
  20562. return 0;
  20563. }
  20564. _ACEOF
  20565. rm -f conftest.$ac_objext
  20566. if { (ac_try="$ac_compile"
  20567. case "(($ac_try" in
  20568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20569. *) ac_try_echo=$ac_try;;
  20570. esac
  20571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20572. $as_echo "$ac_try_echo") >&5
  20573. (eval "$ac_compile") 2>conftest.er1
  20574. ac_status=$?
  20575. grep -v '^ *+' conftest.er1 >conftest.err
  20576. rm -f conftest.er1
  20577. cat conftest.err >&5
  20578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20579. (exit $ac_status); } && {
  20580. test -z "$ac_cxx_werror_flag" ||
  20581. test ! -s conftest.err
  20582. } && test -s conftest.$ac_objext; then
  20583. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20584. else
  20585. $as_echo "$as_me: failed program was:" >&5
  20586. sed 's/^/| /' conftest.$ac_ext >&5
  20587. cat >conftest.$ac_ext <<_ACEOF
  20588. /* confdefs.h. */
  20589. _ACEOF
  20590. cat confdefs.h >>conftest.$ac_ext
  20591. cat >>conftest.$ac_ext <<_ACEOF
  20592. /* end confdefs.h. */
  20593. #include <netinet/in.h>
  20594. int
  20595. main ()
  20596. {
  20597. static struct sockaddr_in ac_aggr;
  20598. if (sizeof ac_aggr.sin_len)
  20599. return 0;
  20600. ;
  20601. return 0;
  20602. }
  20603. _ACEOF
  20604. rm -f conftest.$ac_objext
  20605. if { (ac_try="$ac_compile"
  20606. case "(($ac_try" in
  20607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20608. *) ac_try_echo=$ac_try;;
  20609. esac
  20610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20611. $as_echo "$ac_try_echo") >&5
  20612. (eval "$ac_compile") 2>conftest.er1
  20613. ac_status=$?
  20614. grep -v '^ *+' conftest.er1 >conftest.err
  20615. rm -f conftest.er1
  20616. cat conftest.err >&5
  20617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20618. (exit $ac_status); } && {
  20619. test -z "$ac_cxx_werror_flag" ||
  20620. test ! -s conftest.err
  20621. } && test -s conftest.$ac_objext; then
  20622. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20623. else
  20624. $as_echo "$as_me: failed program was:" >&5
  20625. sed 's/^/| /' conftest.$ac_ext >&5
  20626. ac_cv_member_struct_sockaddr_in_sin_len=no
  20627. fi
  20628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20629. fi
  20630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20631. fi
  20632. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20633. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20634. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20635. cat >>confdefs.h <<\_ACEOF
  20636. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20637. _ACEOF
  20638. fi
  20639. # Check struct option.name is assignable from const char*. struct
  20640. # option.name in opensolaris is of type char*. In Linux, it is const
  20641. # char*
  20642. { $as_echo "$as_me:$LINENO: checking whether struct option.name is assignable from const char*" >&5
  20643. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  20644. cat >conftest.$ac_ext <<_ACEOF
  20645. /* confdefs.h. */
  20646. _ACEOF
  20647. cat confdefs.h >>conftest.$ac_ext
  20648. cat >>conftest.$ac_ext <<_ACEOF
  20649. /* end confdefs.h. */
  20650. #include <unistd.h>
  20651. #include <getopt.h>
  20652. int
  20653. main ()
  20654. {
  20655. const char* s = "const char";
  20656. option op;
  20657. op.name = s;
  20658. ;
  20659. return 0;
  20660. }
  20661. _ACEOF
  20662. rm -f conftest.$ac_objext
  20663. if { (ac_try="$ac_compile"
  20664. case "(($ac_try" in
  20665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20666. *) ac_try_echo=$ac_try;;
  20667. esac
  20668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20669. $as_echo "$ac_try_echo") >&5
  20670. (eval "$ac_compile") 2>conftest.er1
  20671. ac_status=$?
  20672. grep -v '^ *+' conftest.er1 >conftest.err
  20673. rm -f conftest.er1
  20674. cat conftest.err >&5
  20675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20676. (exit $ac_status); } && {
  20677. test -z "$ac_cxx_werror_flag" ||
  20678. test ! -s conftest.err
  20679. } && test -s conftest.$ac_objext; then
  20680. have_option_const_name=yes
  20681. else
  20682. $as_echo "$as_me: failed program was:" >&5
  20683. sed 's/^/| /' conftest.$ac_ext >&5
  20684. have_option_const_name=no
  20685. fi
  20686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20687. { $as_echo "$as_me:$LINENO: result: $have_option_const_name" >&5
  20688. $as_echo "$have_option_const_name" >&6; }
  20689. if test "x$have_option_const_name" = "xyes"; then
  20690. cat >>confdefs.h <<\_ACEOF
  20691. #define HAVE_OPTION_CONST_NAME 1
  20692. _ACEOF
  20693. fi
  20694. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20695. cat >confcache <<\_ACEOF
  20696. # This file is a shell script that caches the results of configure
  20697. # tests run on this system so they can be shared between configure
  20698. # scripts and configure runs, see configure's option --config-cache.
  20699. # It is not useful on other systems. If it contains results you don't
  20700. # want to keep, you may remove or edit it.
  20701. #
  20702. # config.status only pays attention to the cache file if you give it
  20703. # the --recheck option to rerun configure.
  20704. #
  20705. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20706. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20707. # following values.
  20708. _ACEOF
  20709. # The following way of writing the cache mishandles newlines in values,
  20710. # but we know of no workaround that is simple, portable, and efficient.
  20711. # So, we kill variables containing newlines.
  20712. # Ultrix sh set writes to stderr and can't be redirected directly,
  20713. # and sets the high bit in the cache file unless we assign to the vars.
  20714. (
  20715. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20716. eval ac_val=\$$ac_var
  20717. case $ac_val in #(
  20718. *${as_nl}*)
  20719. case $ac_var in #(
  20720. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20721. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20722. esac
  20723. case $ac_var in #(
  20724. _ | IFS | as_nl) ;; #(
  20725. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20726. *) $as_unset $ac_var ;;
  20727. esac ;;
  20728. esac
  20729. done
  20730. (set) 2>&1 |
  20731. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20732. *${as_nl}ac_space=\ *)
  20733. # `set' does not quote correctly, so add quotes (double-quote
  20734. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20735. sed -n \
  20736. "s/'/'\\\\''/g;
  20737. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20738. ;; #(
  20739. *)
  20740. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20741. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20742. ;;
  20743. esac |
  20744. sort
  20745. ) |
  20746. sed '
  20747. /^ac_cv_env_/b end
  20748. t clear
  20749. :clear
  20750. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20751. t end
  20752. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20753. :end' >>confcache
  20754. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20755. if test -w "$cache_file"; then
  20756. test "x$cache_file" != "x/dev/null" &&
  20757. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20758. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20759. cat confcache >$cache_file
  20760. else
  20761. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20762. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20763. fi
  20764. fi
  20765. rm -f confcache
  20766. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20767. # Let make expand exec_prefix.
  20768. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20769. DEFS=-DHAVE_CONFIG_H
  20770. ac_libobjs=
  20771. ac_ltlibobjs=
  20772. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20773. # 1. Remove the extension, and $U if already installed.
  20774. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20775. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20776. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20777. # will be set to the directory where LIBOBJS objects are built.
  20778. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20779. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20780. done
  20781. LIBOBJS=$ac_libobjs
  20782. LTLIBOBJS=$ac_ltlibobjs
  20783. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20784. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20785. Usually this means the macro was only invoked conditionally." >&5
  20786. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20787. Usually this means the macro was only invoked conditionally." >&2;}
  20788. { (exit 1); exit 1; }; }
  20789. fi
  20790. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20791. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20792. Usually this means the macro was only invoked conditionally." >&5
  20793. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20794. Usually this means the macro was only invoked conditionally." >&2;}
  20795. { (exit 1); exit 1; }; }
  20796. fi
  20797. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20798. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20799. Usually this means the macro was only invoked conditionally." >&5
  20800. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20801. Usually this means the macro was only invoked conditionally." >&2;}
  20802. { (exit 1); exit 1; }; }
  20803. fi
  20804. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20805. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20806. Usually this means the macro was only invoked conditionally." >&5
  20807. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20808. Usually this means the macro was only invoked conditionally." >&2;}
  20809. { (exit 1); exit 1; }; }
  20810. fi
  20811. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20812. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20813. Usually this means the macro was only invoked conditionally." >&5
  20814. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20815. Usually this means the macro was only invoked conditionally." >&2;}
  20816. { (exit 1); exit 1; }; }
  20817. fi
  20818. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20819. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20820. Usually this means the macro was only invoked conditionally." >&5
  20821. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20822. Usually this means the macro was only invoked conditionally." >&2;}
  20823. { (exit 1); exit 1; }; }
  20824. fi
  20825. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20826. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20827. Usually this means the macro was only invoked conditionally." >&5
  20828. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20829. Usually this means the macro was only invoked conditionally." >&2;}
  20830. { (exit 1); exit 1; }; }
  20831. fi
  20832. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20833. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20834. Usually this means the macro was only invoked conditionally." >&5
  20835. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20836. Usually this means the macro was only invoked conditionally." >&2;}
  20837. { (exit 1); exit 1; }; }
  20838. fi
  20839. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20840. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20841. Usually this means the macro was only invoked conditionally." >&5
  20842. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20843. Usually this means the macro was only invoked conditionally." >&2;}
  20844. { (exit 1); exit 1; }; }
  20845. fi
  20846. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20847. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20848. Usually this means the macro was only invoked conditionally." >&5
  20849. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20850. Usually this means the macro was only invoked conditionally." >&2;}
  20851. { (exit 1); exit 1; }; }
  20852. fi
  20853. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20854. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20855. Usually this means the macro was only invoked conditionally." >&5
  20856. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20857. Usually this means the macro was only invoked conditionally." >&2;}
  20858. { (exit 1); exit 1; }; }
  20859. fi
  20860. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20861. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20862. Usually this means the macro was only invoked conditionally." >&5
  20863. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20864. Usually this means the macro was only invoked conditionally." >&2;}
  20865. { (exit 1); exit 1; }; }
  20866. fi
  20867. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20868. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20869. Usually this means the macro was only invoked conditionally." >&5
  20870. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20871. Usually this means the macro was only invoked conditionally." >&2;}
  20872. { (exit 1); exit 1; }; }
  20873. fi
  20874. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20875. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20876. Usually this means the macro was only invoked conditionally." >&5
  20877. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20878. Usually this means the macro was only invoked conditionally." >&2;}
  20879. { (exit 1); exit 1; }; }
  20880. fi
  20881. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20882. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20883. Usually this means the macro was only invoked conditionally." >&5
  20884. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20885. Usually this means the macro was only invoked conditionally." >&2;}
  20886. { (exit 1); exit 1; }; }
  20887. fi
  20888. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20889. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20890. Usually this means the macro was only invoked conditionally." >&5
  20891. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20892. Usually this means the macro was only invoked conditionally." >&2;}
  20893. { (exit 1); exit 1; }; }
  20894. fi
  20895. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20896. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20897. Usually this means the macro was only invoked conditionally." >&5
  20898. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  20899. Usually this means the macro was only invoked conditionally." >&2;}
  20900. { (exit 1); exit 1; }; }
  20901. fi
  20902. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  20903. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20904. Usually this means the macro was only invoked conditionally." >&5
  20905. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20906. Usually this means the macro was only invoked conditionally." >&2;}
  20907. { (exit 1); exit 1; }; }
  20908. fi
  20909. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20910. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20911. Usually this means the macro was only invoked conditionally." >&5
  20912. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20913. Usually this means the macro was only invoked conditionally." >&2;}
  20914. { (exit 1); exit 1; }; }
  20915. fi
  20916. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20917. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20918. Usually this means the macro was only invoked conditionally." >&5
  20919. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20920. Usually this means the macro was only invoked conditionally." >&2;}
  20921. { (exit 1); exit 1; }; }
  20922. fi
  20923. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20924. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20925. Usually this means the macro was only invoked conditionally." >&5
  20926. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20927. Usually this means the macro was only invoked conditionally." >&2;}
  20928. { (exit 1); exit 1; }; }
  20929. fi
  20930. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20931. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20932. Usually this means the macro was only invoked conditionally." >&5
  20933. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20934. Usually this means the macro was only invoked conditionally." >&2;}
  20935. { (exit 1); exit 1; }; }
  20936. fi
  20937. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20938. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20939. Usually this means the macro was only invoked conditionally." >&5
  20940. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20941. Usually this means the macro was only invoked conditionally." >&2;}
  20942. { (exit 1); exit 1; }; }
  20943. fi
  20944. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20945. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20946. Usually this means the macro was only invoked conditionally." >&5
  20947. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20948. Usually this means the macro was only invoked conditionally." >&2;}
  20949. { (exit 1); exit 1; }; }
  20950. fi
  20951. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20952. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20953. Usually this means the macro was only invoked conditionally." >&5
  20954. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20955. Usually this means the macro was only invoked conditionally." >&2;}
  20956. { (exit 1); exit 1; }; }
  20957. fi
  20958. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20959. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20960. Usually this means the macro was only invoked conditionally." >&5
  20961. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20962. Usually this means the macro was only invoked conditionally." >&2;}
  20963. { (exit 1); exit 1; }; }
  20964. fi
  20965. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20966. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20967. Usually this means the macro was only invoked conditionally." >&5
  20968. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20969. Usually this means the macro was only invoked conditionally." >&2;}
  20970. { (exit 1); exit 1; }; }
  20971. fi
  20972. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20973. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20974. Usually this means the macro was only invoked conditionally." >&5
  20975. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20976. Usually this means the macro was only invoked conditionally." >&2;}
  20977. { (exit 1); exit 1; }; }
  20978. fi
  20979. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20980. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20981. Usually this means the macro was only invoked conditionally." >&5
  20982. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20983. Usually this means the macro was only invoked conditionally." >&2;}
  20984. { (exit 1); exit 1; }; }
  20985. fi
  20986. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20987. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20988. Usually this means the macro was only invoked conditionally." >&5
  20989. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20990. Usually this means the macro was only invoked conditionally." >&2;}
  20991. { (exit 1); exit 1; }; }
  20992. fi
  20993. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20994. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20995. Usually this means the macro was only invoked conditionally." >&5
  20996. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20997. Usually this means the macro was only invoked conditionally." >&2;}
  20998. { (exit 1); exit 1; }; }
  20999. fi
  21000. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21001. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21002. Usually this means the macro was only invoked conditionally." >&5
  21003. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21004. Usually this means the macro was only invoked conditionally." >&2;}
  21005. { (exit 1); exit 1; }; }
  21006. fi
  21007. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21008. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21009. Usually this means the macro was only invoked conditionally." >&5
  21010. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21011. Usually this means the macro was only invoked conditionally." >&2;}
  21012. { (exit 1); exit 1; }; }
  21013. fi
  21014. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21015. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21016. Usually this means the macro was only invoked conditionally." >&5
  21017. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21018. Usually this means the macro was only invoked conditionally." >&2;}
  21019. { (exit 1); exit 1; }; }
  21020. fi
  21021. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21022. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21023. Usually this means the macro was only invoked conditionally." >&5
  21024. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21025. Usually this means the macro was only invoked conditionally." >&2;}
  21026. { (exit 1); exit 1; }; }
  21027. fi
  21028. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21029. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21030. Usually this means the macro was only invoked conditionally." >&5
  21031. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21032. Usually this means the macro was only invoked conditionally." >&2;}
  21033. { (exit 1); exit 1; }; }
  21034. fi
  21035. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21036. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21037. Usually this means the macro was only invoked conditionally." >&5
  21038. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21039. Usually this means the macro was only invoked conditionally." >&2;}
  21040. { (exit 1); exit 1; }; }
  21041. fi
  21042. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21043. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21044. Usually this means the macro was only invoked conditionally." >&5
  21045. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21046. Usually this means the macro was only invoked conditionally." >&2;}
  21047. { (exit 1); exit 1; }; }
  21048. fi
  21049. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21050. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21051. Usually this means the macro was only invoked conditionally." >&5
  21052. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21053. Usually this means the macro was only invoked conditionally." >&2;}
  21054. { (exit 1); exit 1; }; }
  21055. fi
  21056. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21057. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21058. Usually this means the macro was only invoked conditionally." >&5
  21059. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21060. Usually this means the macro was only invoked conditionally." >&2;}
  21061. { (exit 1); exit 1; }; }
  21062. fi
  21063. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21064. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21065. Usually this means the macro was only invoked conditionally." >&5
  21066. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21067. Usually this means the macro was only invoked conditionally." >&2;}
  21068. { (exit 1); exit 1; }; }
  21069. fi
  21070. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21071. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21072. Usually this means the macro was only invoked conditionally." >&5
  21073. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21074. Usually this means the macro was only invoked conditionally." >&2;}
  21075. { (exit 1); exit 1; }; }
  21076. fi
  21077. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21078. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21079. Usually this means the macro was only invoked conditionally." >&5
  21080. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21081. Usually this means the macro was only invoked conditionally." >&2;}
  21082. { (exit 1); exit 1; }; }
  21083. fi
  21084. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  21085. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21086. Usually this means the macro was only invoked conditionally." >&5
  21087. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21088. Usually this means the macro was only invoked conditionally." >&2;}
  21089. { (exit 1); exit 1; }; }
  21090. fi
  21091. : ${CONFIG_STATUS=./config.status}
  21092. ac_write_fail=0
  21093. ac_clean_files_save=$ac_clean_files
  21094. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21095. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21096. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21097. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21098. #! $SHELL
  21099. # Generated by $as_me.
  21100. # Run this file to recreate the current configuration.
  21101. # Compiler output produced by configure, useful for debugging
  21102. # configure, is in config.log if it exists.
  21103. debug=false
  21104. ac_cs_recheck=false
  21105. ac_cs_silent=false
  21106. SHELL=\${CONFIG_SHELL-$SHELL}
  21107. _ACEOF
  21108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21109. ## --------------------- ##
  21110. ## M4sh Initialization. ##
  21111. ## --------------------- ##
  21112. # Be more Bourne compatible
  21113. DUALCASE=1; export DUALCASE # for MKS sh
  21114. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21115. emulate sh
  21116. NULLCMD=:
  21117. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21118. # is contrary to our usage. Disable this feature.
  21119. alias -g '${1+"$@"}'='"$@"'
  21120. setopt NO_GLOB_SUBST
  21121. else
  21122. case `(set -o) 2>/dev/null` in
  21123. *posix*) set -o posix ;;
  21124. esac
  21125. fi
  21126. # PATH needs CR
  21127. # Avoid depending upon Character Ranges.
  21128. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21129. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21130. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21131. as_cr_digits='0123456789'
  21132. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21133. as_nl='
  21134. '
  21135. export as_nl
  21136. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21137. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21138. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21139. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21140. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21141. as_echo='printf %s\n'
  21142. as_echo_n='printf %s'
  21143. else
  21144. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21145. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21146. as_echo_n='/usr/ucb/echo -n'
  21147. else
  21148. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21149. as_echo_n_body='eval
  21150. arg=$1;
  21151. case $arg in
  21152. *"$as_nl"*)
  21153. expr "X$arg" : "X\\(.*\\)$as_nl";
  21154. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21155. esac;
  21156. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21157. '
  21158. export as_echo_n_body
  21159. as_echo_n='sh -c $as_echo_n_body as_echo'
  21160. fi
  21161. export as_echo_body
  21162. as_echo='sh -c $as_echo_body as_echo'
  21163. fi
  21164. # The user is always right.
  21165. if test "${PATH_SEPARATOR+set}" != set; then
  21166. PATH_SEPARATOR=:
  21167. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21168. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21169. PATH_SEPARATOR=';'
  21170. }
  21171. fi
  21172. # Support unset when possible.
  21173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21174. as_unset=unset
  21175. else
  21176. as_unset=false
  21177. fi
  21178. # IFS
  21179. # We need space, tab and new line, in precisely that order. Quoting is
  21180. # there to prevent editors from complaining about space-tab.
  21181. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21182. # splitting by setting IFS to empty value.)
  21183. IFS=" "" $as_nl"
  21184. # Find who we are. Look in the path if we contain no directory separator.
  21185. case $0 in
  21186. *[\\/]* ) as_myself=$0 ;;
  21187. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21188. for as_dir in $PATH
  21189. do
  21190. IFS=$as_save_IFS
  21191. test -z "$as_dir" && as_dir=.
  21192. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21193. done
  21194. IFS=$as_save_IFS
  21195. ;;
  21196. esac
  21197. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21198. # in which case we are not to be found in the path.
  21199. if test "x$as_myself" = x; then
  21200. as_myself=$0
  21201. fi
  21202. if test ! -f "$as_myself"; then
  21203. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21204. { (exit 1); exit 1; }
  21205. fi
  21206. # Work around bugs in pre-3.0 UWIN ksh.
  21207. for as_var in ENV MAIL MAILPATH
  21208. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21209. done
  21210. PS1='$ '
  21211. PS2='> '
  21212. PS4='+ '
  21213. # NLS nuisances.
  21214. LC_ALL=C
  21215. export LC_ALL
  21216. LANGUAGE=C
  21217. export LANGUAGE
  21218. # Required to use basename.
  21219. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21220. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21221. as_expr=expr
  21222. else
  21223. as_expr=false
  21224. fi
  21225. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21226. as_basename=basename
  21227. else
  21228. as_basename=false
  21229. fi
  21230. # Name of the executable.
  21231. as_me=`$as_basename -- "$0" ||
  21232. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21233. X"$0" : 'X\(//\)$' \| \
  21234. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21235. $as_echo X/"$0" |
  21236. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21237. s//\1/
  21238. q
  21239. }
  21240. /^X\/\(\/\/\)$/{
  21241. s//\1/
  21242. q
  21243. }
  21244. /^X\/\(\/\).*/{
  21245. s//\1/
  21246. q
  21247. }
  21248. s/.*/./; q'`
  21249. # CDPATH.
  21250. $as_unset CDPATH
  21251. as_lineno_1=$LINENO
  21252. as_lineno_2=$LINENO
  21253. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21254. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21255. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21256. # uniformly replaced by the line number. The first 'sed' inserts a
  21257. # line-number line after each line using $LINENO; the second 'sed'
  21258. # does the real work. The second script uses 'N' to pair each
  21259. # line-number line with the line containing $LINENO, and appends
  21260. # trailing '-' during substitution so that $LINENO is not a special
  21261. # case at line end.
  21262. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21263. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21264. # E. McMahon (1931-1989) for sed's syntax. :-)
  21265. sed -n '
  21266. p
  21267. /[$]LINENO/=
  21268. ' <$as_myself |
  21269. sed '
  21270. s/[$]LINENO.*/&-/
  21271. t lineno
  21272. b
  21273. :lineno
  21274. N
  21275. :loop
  21276. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21277. t loop
  21278. s/-\n.*//
  21279. ' >$as_me.lineno &&
  21280. chmod +x "$as_me.lineno" ||
  21281. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21282. { (exit 1); exit 1; }; }
  21283. # Don't try to exec as it changes $[0], causing all sort of problems
  21284. # (the dirname of $[0] is not the place where we might find the
  21285. # original and so on. Autoconf is especially sensitive to this).
  21286. . "./$as_me.lineno"
  21287. # Exit status is that of the last command.
  21288. exit
  21289. }
  21290. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21291. as_dirname=dirname
  21292. else
  21293. as_dirname=false
  21294. fi
  21295. ECHO_C= ECHO_N= ECHO_T=
  21296. case `echo -n x` in
  21297. -n*)
  21298. case `echo 'x\c'` in
  21299. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21300. *) ECHO_C='\c';;
  21301. esac;;
  21302. *)
  21303. ECHO_N='-n';;
  21304. esac
  21305. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21306. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21307. as_expr=expr
  21308. else
  21309. as_expr=false
  21310. fi
  21311. rm -f conf$$ conf$$.exe conf$$.file
  21312. if test -d conf$$.dir; then
  21313. rm -f conf$$.dir/conf$$.file
  21314. else
  21315. rm -f conf$$.dir
  21316. mkdir conf$$.dir 2>/dev/null
  21317. fi
  21318. if (echo >conf$$.file) 2>/dev/null; then
  21319. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21320. as_ln_s='ln -s'
  21321. # ... but there are two gotchas:
  21322. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21323. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21324. # In both cases, we have to default to `cp -p'.
  21325. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21326. as_ln_s='cp -p'
  21327. elif ln conf$$.file conf$$ 2>/dev/null; then
  21328. as_ln_s=ln
  21329. else
  21330. as_ln_s='cp -p'
  21331. fi
  21332. else
  21333. as_ln_s='cp -p'
  21334. fi
  21335. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21336. rmdir conf$$.dir 2>/dev/null
  21337. if mkdir -p . 2>/dev/null; then
  21338. as_mkdir_p=:
  21339. else
  21340. test -d ./-p && rmdir ./-p
  21341. as_mkdir_p=false
  21342. fi
  21343. if test -x / >/dev/null 2>&1; then
  21344. as_test_x='test -x'
  21345. else
  21346. if ls -dL / >/dev/null 2>&1; then
  21347. as_ls_L_option=L
  21348. else
  21349. as_ls_L_option=
  21350. fi
  21351. as_test_x='
  21352. eval sh -c '\''
  21353. if test -d "$1"; then
  21354. test -d "$1/.";
  21355. else
  21356. case $1 in
  21357. -*)set "./$1";;
  21358. esac;
  21359. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21360. ???[sx]*):;;*)false;;esac;fi
  21361. '\'' sh
  21362. '
  21363. fi
  21364. as_executable_p=$as_test_x
  21365. # Sed expression to map a string onto a valid CPP name.
  21366. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21367. # Sed expression to map a string onto a valid variable name.
  21368. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21369. exec 6>&1
  21370. # Save the log message, to keep $[0] and so on meaningful, and to
  21371. # report actual input values of CONFIG_FILES etc. instead of their
  21372. # values after options handling.
  21373. ac_log="
  21374. This file was extended by aria2 $as_me 1.5.1, which was
  21375. generated by GNU Autoconf 2.63. Invocation command line was
  21376. CONFIG_FILES = $CONFIG_FILES
  21377. CONFIG_HEADERS = $CONFIG_HEADERS
  21378. CONFIG_LINKS = $CONFIG_LINKS
  21379. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21380. $ $0 $@
  21381. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21382. "
  21383. _ACEOF
  21384. case $ac_config_files in *"
  21385. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21386. esac
  21387. case $ac_config_headers in *"
  21388. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21389. esac
  21390. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21391. # Files that config.status was made for.
  21392. config_files="$ac_config_files"
  21393. config_headers="$ac_config_headers"
  21394. config_commands="$ac_config_commands"
  21395. _ACEOF
  21396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21397. ac_cs_usage="\
  21398. \`$as_me' instantiates files from templates according to the
  21399. current configuration.
  21400. Usage: $0 [OPTION]... [FILE]...
  21401. -h, --help print this help, then exit
  21402. -V, --version print version number and configuration settings, then exit
  21403. -q, --quiet, --silent
  21404. do not print progress messages
  21405. -d, --debug don't remove temporary files
  21406. --recheck update $as_me by reconfiguring in the same conditions
  21407. --file=FILE[:TEMPLATE]
  21408. instantiate the configuration file FILE
  21409. --header=FILE[:TEMPLATE]
  21410. instantiate the configuration header FILE
  21411. Configuration files:
  21412. $config_files
  21413. Configuration headers:
  21414. $config_headers
  21415. Configuration commands:
  21416. $config_commands
  21417. Report bugs to <bug-autoconf@gnu.org>."
  21418. _ACEOF
  21419. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21420. ac_cs_version="\\
  21421. aria2 config.status 1.5.1
  21422. configured by $0, generated by GNU Autoconf 2.63,
  21423. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21424. Copyright (C) 2008 Free Software Foundation, Inc.
  21425. This config.status script is free software; the Free Software Foundation
  21426. gives unlimited permission to copy, distribute and modify it."
  21427. ac_pwd='$ac_pwd'
  21428. srcdir='$srcdir'
  21429. INSTALL='$INSTALL'
  21430. MKDIR_P='$MKDIR_P'
  21431. AWK='$AWK'
  21432. test -n "\$AWK" || AWK=awk
  21433. _ACEOF
  21434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21435. # The default lists apply if the user does not specify any file.
  21436. ac_need_defaults=:
  21437. while test $# != 0
  21438. do
  21439. case $1 in
  21440. --*=*)
  21441. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21442. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21443. ac_shift=:
  21444. ;;
  21445. *)
  21446. ac_option=$1
  21447. ac_optarg=$2
  21448. ac_shift=shift
  21449. ;;
  21450. esac
  21451. case $ac_option in
  21452. # Handling of the options.
  21453. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21454. ac_cs_recheck=: ;;
  21455. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21456. $as_echo "$ac_cs_version"; exit ;;
  21457. --debug | --debu | --deb | --de | --d | -d )
  21458. debug=: ;;
  21459. --file | --fil | --fi | --f )
  21460. $ac_shift
  21461. case $ac_optarg in
  21462. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21463. esac
  21464. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21465. ac_need_defaults=false;;
  21466. --header | --heade | --head | --hea )
  21467. $ac_shift
  21468. case $ac_optarg in
  21469. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21470. esac
  21471. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21472. ac_need_defaults=false;;
  21473. --he | --h)
  21474. # Conflict between --help and --header
  21475. { $as_echo "$as_me: error: ambiguous option: $1
  21476. Try \`$0 --help' for more information." >&2
  21477. { (exit 1); exit 1; }; };;
  21478. --help | --hel | -h )
  21479. $as_echo "$ac_cs_usage"; exit ;;
  21480. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21481. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21482. ac_cs_silent=: ;;
  21483. # This is an error.
  21484. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21485. Try \`$0 --help' for more information." >&2
  21486. { (exit 1); exit 1; }; } ;;
  21487. *) ac_config_targets="$ac_config_targets $1"
  21488. ac_need_defaults=false ;;
  21489. esac
  21490. shift
  21491. done
  21492. ac_configure_extra_args=
  21493. if $ac_cs_silent; then
  21494. exec 6>/dev/null
  21495. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21496. fi
  21497. _ACEOF
  21498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21499. if \$ac_cs_recheck; then
  21500. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21501. shift
  21502. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21503. CONFIG_SHELL='$SHELL'
  21504. export CONFIG_SHELL
  21505. exec "\$@"
  21506. fi
  21507. _ACEOF
  21508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21509. exec 5>>config.log
  21510. {
  21511. echo
  21512. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21513. ## Running $as_me. ##
  21514. _ASBOX
  21515. $as_echo "$ac_log"
  21516. } >&5
  21517. _ACEOF
  21518. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21519. #
  21520. # INIT-COMMANDS
  21521. #
  21522. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21523. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21524. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21525. # from automake < 1.5.
  21526. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21527. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21528. LINGUAS="${LINGUAS-%UNSET%}"
  21529. _ACEOF
  21530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21531. # Handling of arguments.
  21532. for ac_config_target in $ac_config_targets
  21533. do
  21534. case $ac_config_target in
  21535. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21536. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21537. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21538. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21539. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21540. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21541. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21542. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21543. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21544. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21545. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21546. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21547. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21548. { (exit 1); exit 1; }; };;
  21549. esac
  21550. done
  21551. # If the user did not use the arguments to specify the items to instantiate,
  21552. # then the envvar interface is used. Set only those that are not.
  21553. # We use the long form for the default assignment because of an extremely
  21554. # bizarre bug on SunOS 4.1.3.
  21555. if $ac_need_defaults; then
  21556. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21557. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21558. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21559. fi
  21560. # Have a temporary directory for convenience. Make it in the build tree
  21561. # simply because there is no reason against having it here, and in addition,
  21562. # creating and moving files from /tmp can sometimes cause problems.
  21563. # Hook for its removal unless debugging.
  21564. # Note that there is a small window in which the directory will not be cleaned:
  21565. # after its creation but before its name has been assigned to `$tmp'.
  21566. $debug ||
  21567. {
  21568. tmp=
  21569. trap 'exit_status=$?
  21570. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21571. ' 0
  21572. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21573. }
  21574. # Create a (secure) tmp directory for tmp files.
  21575. {
  21576. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21577. test -n "$tmp" && test -d "$tmp"
  21578. } ||
  21579. {
  21580. tmp=./conf$$-$RANDOM
  21581. (umask 077 && mkdir "$tmp")
  21582. } ||
  21583. {
  21584. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21585. { (exit 1); exit 1; }
  21586. }
  21587. # Set up the scripts for CONFIG_FILES section.
  21588. # No need to generate them if there are no CONFIG_FILES.
  21589. # This happens for instance with `./config.status config.h'.
  21590. if test -n "$CONFIG_FILES"; then
  21591. ac_cr=' '
  21592. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21593. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21594. ac_cs_awk_cr='\\r'
  21595. else
  21596. ac_cs_awk_cr=$ac_cr
  21597. fi
  21598. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21599. _ACEOF
  21600. {
  21601. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21602. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21603. echo "_ACEOF"
  21604. } >conf$$subs.sh ||
  21605. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21606. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21607. { (exit 1); exit 1; }; }
  21608. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21609. ac_delim='%!_!# '
  21610. for ac_last_try in false false false false false :; do
  21611. . ./conf$$subs.sh ||
  21612. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21613. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21614. { (exit 1); exit 1; }; }
  21615. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21616. if test $ac_delim_n = $ac_delim_num; then
  21617. break
  21618. elif $ac_last_try; then
  21619. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21620. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21621. { (exit 1); exit 1; }; }
  21622. else
  21623. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21624. fi
  21625. done
  21626. rm -f conf$$subs.sh
  21627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21628. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21629. _ACEOF
  21630. sed -n '
  21631. h
  21632. s/^/S["/; s/!.*/"]=/
  21633. p
  21634. g
  21635. s/^[^!]*!//
  21636. :repl
  21637. t repl
  21638. s/'"$ac_delim"'$//
  21639. t delim
  21640. :nl
  21641. h
  21642. s/\(.\{148\}\).*/\1/
  21643. t more1
  21644. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21645. p
  21646. n
  21647. b repl
  21648. :more1
  21649. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21650. p
  21651. g
  21652. s/.\{148\}//
  21653. t nl
  21654. :delim
  21655. h
  21656. s/\(.\{148\}\).*/\1/
  21657. t more2
  21658. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21659. p
  21660. b
  21661. :more2
  21662. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21663. p
  21664. g
  21665. s/.\{148\}//
  21666. t delim
  21667. ' <conf$$subs.awk | sed '
  21668. /^[^""]/{
  21669. N
  21670. s/\n//
  21671. }
  21672. ' >>$CONFIG_STATUS || ac_write_fail=1
  21673. rm -f conf$$subs.awk
  21674. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21675. _ACAWK
  21676. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21677. for (key in S) S_is_set[key] = 1
  21678. FS = ""
  21679. }
  21680. {
  21681. line = $ 0
  21682. nfields = split(line, field, "@")
  21683. substed = 0
  21684. len = length(field[1])
  21685. for (i = 2; i < nfields; i++) {
  21686. key = field[i]
  21687. keylen = length(key)
  21688. if (S_is_set[key]) {
  21689. value = S[key]
  21690. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21691. len += length(value) + length(field[++i])
  21692. substed = 1
  21693. } else
  21694. len += 1 + keylen
  21695. }
  21696. print line
  21697. }
  21698. _ACAWK
  21699. _ACEOF
  21700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21701. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21702. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21703. else
  21704. cat
  21705. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21706. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21707. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21708. { (exit 1); exit 1; }; }
  21709. _ACEOF
  21710. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21711. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21712. # trailing colons and then remove the whole line if VPATH becomes empty
  21713. # (actually we leave an empty line to preserve line numbers).
  21714. if test "x$srcdir" = x.; then
  21715. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21716. s/:*\$(srcdir):*/:/
  21717. s/:*\${srcdir}:*/:/
  21718. s/:*@srcdir@:*/:/
  21719. s/^\([^=]*=[ ]*\):*/\1/
  21720. s/:*$//
  21721. s/^[^=]*=[ ]*$//
  21722. }'
  21723. fi
  21724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21725. fi # test -n "$CONFIG_FILES"
  21726. # Set up the scripts for CONFIG_HEADERS section.
  21727. # No need to generate them if there are no CONFIG_HEADERS.
  21728. # This happens for instance with `./config.status Makefile'.
  21729. if test -n "$CONFIG_HEADERS"; then
  21730. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21731. BEGIN {
  21732. _ACEOF
  21733. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21734. # here-document in config.status, that substitutes the proper values into
  21735. # config.h.in to produce config.h.
  21736. # Create a delimiter string that does not exist in confdefs.h, to ease
  21737. # handling of long lines.
  21738. ac_delim='%!_!# '
  21739. for ac_last_try in false false :; do
  21740. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21741. if test -z "$ac_t"; then
  21742. break
  21743. elif $ac_last_try; then
  21744. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21745. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21746. { (exit 1); exit 1; }; }
  21747. else
  21748. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21749. fi
  21750. done
  21751. # For the awk script, D is an array of macro values keyed by name,
  21752. # likewise P contains macro parameters if any. Preserve backslash
  21753. # newline sequences.
  21754. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21755. sed -n '
  21756. s/.\{148\}/&'"$ac_delim"'/g
  21757. t rset
  21758. :rset
  21759. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21760. t def
  21761. d
  21762. :def
  21763. s/\\$//
  21764. t bsnl
  21765. s/["\\]/\\&/g
  21766. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21767. D["\1"]=" \3"/p
  21768. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21769. d
  21770. :bsnl
  21771. s/["\\]/\\&/g
  21772. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21773. D["\1"]=" \3\\\\\\n"\\/p
  21774. t cont
  21775. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21776. t cont
  21777. d
  21778. :cont
  21779. n
  21780. s/.\{148\}/&'"$ac_delim"'/g
  21781. t clear
  21782. :clear
  21783. s/\\$//
  21784. t bsnlc
  21785. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21786. d
  21787. :bsnlc
  21788. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21789. b cont
  21790. ' <confdefs.h | sed '
  21791. s/'"$ac_delim"'/"\\\
  21792. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21794. for (key in D) D_is_set[key] = 1
  21795. FS = ""
  21796. }
  21797. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21798. line = \$ 0
  21799. split(line, arg, " ")
  21800. if (arg[1] == "#") {
  21801. defundef = arg[2]
  21802. mac1 = arg[3]
  21803. } else {
  21804. defundef = substr(arg[1], 2)
  21805. mac1 = arg[2]
  21806. }
  21807. split(mac1, mac2, "(") #)
  21808. macro = mac2[1]
  21809. prefix = substr(line, 1, index(line, defundef) - 1)
  21810. if (D_is_set[macro]) {
  21811. # Preserve the white space surrounding the "#".
  21812. print prefix "define", macro P[macro] D[macro]
  21813. next
  21814. } else {
  21815. # Replace #undef with comments. This is necessary, for example,
  21816. # in the case of _POSIX_SOURCE, which is predefined and required
  21817. # on some systems where configure will not decide to define it.
  21818. if (defundef == "undef") {
  21819. print "/*", prefix defundef, macro, "*/"
  21820. next
  21821. }
  21822. }
  21823. }
  21824. { print }
  21825. _ACAWK
  21826. _ACEOF
  21827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21828. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21829. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21830. { (exit 1); exit 1; }; }
  21831. fi # test -n "$CONFIG_HEADERS"
  21832. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21833. shift
  21834. for ac_tag
  21835. do
  21836. case $ac_tag in
  21837. :[FHLC]) ac_mode=$ac_tag; continue;;
  21838. esac
  21839. case $ac_mode$ac_tag in
  21840. :[FHL]*:*);;
  21841. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21842. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21843. { (exit 1); exit 1; }; };;
  21844. :[FH]-) ac_tag=-:-;;
  21845. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21846. esac
  21847. ac_save_IFS=$IFS
  21848. IFS=:
  21849. set x $ac_tag
  21850. IFS=$ac_save_IFS
  21851. shift
  21852. ac_file=$1
  21853. shift
  21854. case $ac_mode in
  21855. :L) ac_source=$1;;
  21856. :[FH])
  21857. ac_file_inputs=
  21858. for ac_f
  21859. do
  21860. case $ac_f in
  21861. -) ac_f="$tmp/stdin";;
  21862. *) # Look for the file first in the build tree, then in the source tree
  21863. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21864. # because $ac_f cannot contain `:'.
  21865. test -f "$ac_f" ||
  21866. case $ac_f in
  21867. [\\/$]*) false;;
  21868. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21869. esac ||
  21870. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21871. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21872. { (exit 1); exit 1; }; };;
  21873. esac
  21874. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21875. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21876. done
  21877. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21878. # use $as_me), people would be surprised to read:
  21879. # /* config.h. Generated by config.status. */
  21880. configure_input='Generated from '`
  21881. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21882. `' by configure.'
  21883. if test x"$ac_file" != x-; then
  21884. configure_input="$ac_file. $configure_input"
  21885. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21886. $as_echo "$as_me: creating $ac_file" >&6;}
  21887. fi
  21888. # Neutralize special characters interpreted by sed in replacement strings.
  21889. case $configure_input in #(
  21890. *\&* | *\|* | *\\* )
  21891. ac_sed_conf_input=`$as_echo "$configure_input" |
  21892. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21893. *) ac_sed_conf_input=$configure_input;;
  21894. esac
  21895. case $ac_tag in
  21896. *:-:* | *:-) cat >"$tmp/stdin" \
  21897. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21898. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21899. { (exit 1); exit 1; }; } ;;
  21900. esac
  21901. ;;
  21902. esac
  21903. ac_dir=`$as_dirname -- "$ac_file" ||
  21904. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21905. X"$ac_file" : 'X\(//\)[^/]' \| \
  21906. X"$ac_file" : 'X\(//\)$' \| \
  21907. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21908. $as_echo X"$ac_file" |
  21909. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21910. s//\1/
  21911. q
  21912. }
  21913. /^X\(\/\/\)[^/].*/{
  21914. s//\1/
  21915. q
  21916. }
  21917. /^X\(\/\/\)$/{
  21918. s//\1/
  21919. q
  21920. }
  21921. /^X\(\/\).*/{
  21922. s//\1/
  21923. q
  21924. }
  21925. s/.*/./; q'`
  21926. { as_dir="$ac_dir"
  21927. case $as_dir in #(
  21928. -*) as_dir=./$as_dir;;
  21929. esac
  21930. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21931. as_dirs=
  21932. while :; do
  21933. case $as_dir in #(
  21934. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21935. *) as_qdir=$as_dir;;
  21936. esac
  21937. as_dirs="'$as_qdir' $as_dirs"
  21938. as_dir=`$as_dirname -- "$as_dir" ||
  21939. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21940. X"$as_dir" : 'X\(//\)[^/]' \| \
  21941. X"$as_dir" : 'X\(//\)$' \| \
  21942. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21943. $as_echo X"$as_dir" |
  21944. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21945. s//\1/
  21946. q
  21947. }
  21948. /^X\(\/\/\)[^/].*/{
  21949. s//\1/
  21950. q
  21951. }
  21952. /^X\(\/\/\)$/{
  21953. s//\1/
  21954. q
  21955. }
  21956. /^X\(\/\).*/{
  21957. s//\1/
  21958. q
  21959. }
  21960. s/.*/./; q'`
  21961. test -d "$as_dir" && break
  21962. done
  21963. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21964. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21965. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21966. { (exit 1); exit 1; }; }; }
  21967. ac_builddir=.
  21968. case "$ac_dir" in
  21969. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21970. *)
  21971. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21972. # A ".." for each directory in $ac_dir_suffix.
  21973. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21974. case $ac_top_builddir_sub in
  21975. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21976. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21977. esac ;;
  21978. esac
  21979. ac_abs_top_builddir=$ac_pwd
  21980. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21981. # for backward compatibility:
  21982. ac_top_builddir=$ac_top_build_prefix
  21983. case $srcdir in
  21984. .) # We are building in place.
  21985. ac_srcdir=.
  21986. ac_top_srcdir=$ac_top_builddir_sub
  21987. ac_abs_top_srcdir=$ac_pwd ;;
  21988. [\\/]* | ?:[\\/]* ) # Absolute name.
  21989. ac_srcdir=$srcdir$ac_dir_suffix;
  21990. ac_top_srcdir=$srcdir
  21991. ac_abs_top_srcdir=$srcdir ;;
  21992. *) # Relative name.
  21993. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21994. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21995. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21996. esac
  21997. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21998. case $ac_mode in
  21999. :F)
  22000. #
  22001. # CONFIG_FILE
  22002. #
  22003. case $INSTALL in
  22004. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22005. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22006. esac
  22007. ac_MKDIR_P=$MKDIR_P
  22008. case $MKDIR_P in
  22009. [\\/$]* | ?:[\\/]* ) ;;
  22010. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22011. esac
  22012. _ACEOF
  22013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22014. # If the template does not know about datarootdir, expand it.
  22015. # FIXME: This hack should be removed a few years after 2.60.
  22016. ac_datarootdir_hack=; ac_datarootdir_seen=
  22017. ac_sed_dataroot='
  22018. /datarootdir/ {
  22019. p
  22020. q
  22021. }
  22022. /@datadir@/p
  22023. /@docdir@/p
  22024. /@infodir@/p
  22025. /@localedir@/p
  22026. /@mandir@/p
  22027. '
  22028. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22029. *datarootdir*) ac_datarootdir_seen=yes;;
  22030. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22031. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22032. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22033. _ACEOF
  22034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22035. ac_datarootdir_hack='
  22036. s&@datadir@&$datadir&g
  22037. s&@docdir@&$docdir&g
  22038. s&@infodir@&$infodir&g
  22039. s&@localedir@&$localedir&g
  22040. s&@mandir@&$mandir&g
  22041. s&\\\${datarootdir}&$datarootdir&g' ;;
  22042. esac
  22043. _ACEOF
  22044. # Neutralize VPATH when `$srcdir' = `.'.
  22045. # Shell code in configure.ac might set extrasub.
  22046. # FIXME: do we really want to maintain this feature?
  22047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22048. ac_sed_extra="$ac_vpsub
  22049. $extrasub
  22050. _ACEOF
  22051. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22052. :t
  22053. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22054. s|@configure_input@|$ac_sed_conf_input|;t t
  22055. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22056. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22057. s&@srcdir@&$ac_srcdir&;t t
  22058. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22059. s&@top_srcdir@&$ac_top_srcdir&;t t
  22060. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22061. s&@builddir@&$ac_builddir&;t t
  22062. s&@abs_builddir@&$ac_abs_builddir&;t t
  22063. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22064. s&@INSTALL@&$ac_INSTALL&;t t
  22065. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22066. $ac_datarootdir_hack
  22067. "
  22068. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  22069. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22070. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22071. { (exit 1); exit 1; }; }
  22072. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22073. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22074. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22075. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22076. which seems to be undefined. Please make sure it is defined." >&5
  22077. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22078. which seems to be undefined. Please make sure it is defined." >&2;}
  22079. rm -f "$tmp/stdin"
  22080. case $ac_file in
  22081. -) cat "$tmp/out" && rm -f "$tmp/out";;
  22082. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  22083. esac \
  22084. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22085. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22086. { (exit 1); exit 1; }; }
  22087. ;;
  22088. :H)
  22089. #
  22090. # CONFIG_HEADER
  22091. #
  22092. if test x"$ac_file" != x-; then
  22093. {
  22094. $as_echo "/* $configure_input */" \
  22095. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22096. } >"$tmp/config.h" \
  22097. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22098. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22099. { (exit 1); exit 1; }; }
  22100. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  22101. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22102. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22103. else
  22104. rm -f "$ac_file"
  22105. mv "$tmp/config.h" "$ac_file" \
  22106. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22107. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22108. { (exit 1); exit 1; }; }
  22109. fi
  22110. else
  22111. $as_echo "/* $configure_input */" \
  22112. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22113. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  22114. $as_echo "$as_me: error: could not create -" >&2;}
  22115. { (exit 1); exit 1; }; }
  22116. fi
  22117. # Compute "$ac_file"'s index in $config_headers.
  22118. _am_arg="$ac_file"
  22119. _am_stamp_count=1
  22120. for _am_header in $config_headers :; do
  22121. case $_am_header in
  22122. $_am_arg | $_am_arg:* )
  22123. break ;;
  22124. * )
  22125. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22126. esac
  22127. done
  22128. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22129. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22130. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22131. X"$_am_arg" : 'X\(//\)$' \| \
  22132. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22133. $as_echo X"$_am_arg" |
  22134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22135. s//\1/
  22136. q
  22137. }
  22138. /^X\(\/\/\)[^/].*/{
  22139. s//\1/
  22140. q
  22141. }
  22142. /^X\(\/\/\)$/{
  22143. s//\1/
  22144. q
  22145. }
  22146. /^X\(\/\).*/{
  22147. s//\1/
  22148. q
  22149. }
  22150. s/.*/./; q'`/stamp-h$_am_stamp_count
  22151. ;;
  22152. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22153. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22154. ;;
  22155. esac
  22156. case $ac_file$ac_mode in
  22157. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22158. # are listed without --file. Let's play safe and only enable the eval
  22159. # if we detect the quoting.
  22160. case $CONFIG_FILES in
  22161. *\'*) eval set x "$CONFIG_FILES" ;;
  22162. *) set x $CONFIG_FILES ;;
  22163. esac
  22164. shift
  22165. for mf
  22166. do
  22167. # Strip MF so we end up with the name of the file.
  22168. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22169. # Check whether this is an Automake generated Makefile or not.
  22170. # We used to match only the files named `Makefile.in', but
  22171. # some people rename them; so instead we look at the file content.
  22172. # Grep'ing the first line is not enough: some people post-process
  22173. # each Makefile.in and add a new line on top of each file to say so.
  22174. # Grep'ing the whole file is not good either: AIX grep has a line
  22175. # limit of 2048, but all sed's we know have understand at least 4000.
  22176. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22177. dirpart=`$as_dirname -- "$mf" ||
  22178. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22179. X"$mf" : 'X\(//\)[^/]' \| \
  22180. X"$mf" : 'X\(//\)$' \| \
  22181. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22182. $as_echo X"$mf" |
  22183. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22184. s//\1/
  22185. q
  22186. }
  22187. /^X\(\/\/\)[^/].*/{
  22188. s//\1/
  22189. q
  22190. }
  22191. /^X\(\/\/\)$/{
  22192. s//\1/
  22193. q
  22194. }
  22195. /^X\(\/\).*/{
  22196. s//\1/
  22197. q
  22198. }
  22199. s/.*/./; q'`
  22200. else
  22201. continue
  22202. fi
  22203. # Extract the definition of DEPDIR, am__include, and am__quote
  22204. # from the Makefile without running `make'.
  22205. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22206. test -z "$DEPDIR" && continue
  22207. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22208. test -z "am__include" && continue
  22209. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22210. # When using ansi2knr, U may be empty or an underscore; expand it
  22211. U=`sed -n 's/^U = //p' < "$mf"`
  22212. # Find all dependency output files, they are included files with
  22213. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22214. # simplest approach to changing $(DEPDIR) to its actual value in the
  22215. # expansion.
  22216. for file in `sed -n "
  22217. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22218. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22219. # Make sure the directory exists.
  22220. test -f "$dirpart/$file" && continue
  22221. fdir=`$as_dirname -- "$file" ||
  22222. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22223. X"$file" : 'X\(//\)[^/]' \| \
  22224. X"$file" : 'X\(//\)$' \| \
  22225. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22226. $as_echo X"$file" |
  22227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22228. s//\1/
  22229. q
  22230. }
  22231. /^X\(\/\/\)[^/].*/{
  22232. s//\1/
  22233. q
  22234. }
  22235. /^X\(\/\/\)$/{
  22236. s//\1/
  22237. q
  22238. }
  22239. /^X\(\/\).*/{
  22240. s//\1/
  22241. q
  22242. }
  22243. s/.*/./; q'`
  22244. { as_dir=$dirpart/$fdir
  22245. case $as_dir in #(
  22246. -*) as_dir=./$as_dir;;
  22247. esac
  22248. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22249. as_dirs=
  22250. while :; do
  22251. case $as_dir in #(
  22252. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22253. *) as_qdir=$as_dir;;
  22254. esac
  22255. as_dirs="'$as_qdir' $as_dirs"
  22256. as_dir=`$as_dirname -- "$as_dir" ||
  22257. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22258. X"$as_dir" : 'X\(//\)[^/]' \| \
  22259. X"$as_dir" : 'X\(//\)$' \| \
  22260. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22261. $as_echo X"$as_dir" |
  22262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22263. s//\1/
  22264. q
  22265. }
  22266. /^X\(\/\/\)[^/].*/{
  22267. s//\1/
  22268. q
  22269. }
  22270. /^X\(\/\/\)$/{
  22271. s//\1/
  22272. q
  22273. }
  22274. /^X\(\/\).*/{
  22275. s//\1/
  22276. q
  22277. }
  22278. s/.*/./; q'`
  22279. test -d "$as_dir" && break
  22280. done
  22281. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22282. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22283. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22284. { (exit 1); exit 1; }; }; }
  22285. # echo "creating $dirpart/$file"
  22286. echo '# dummy' > "$dirpart/$file"
  22287. done
  22288. done
  22289. ;;
  22290. "po-directories":C)
  22291. for ac_file in $CONFIG_FILES; do
  22292. # Support "outfile[:infile[:infile...]]"
  22293. case "$ac_file" in
  22294. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  22295. esac
  22296. # PO directories have a Makefile.in generated from Makefile.in.in.
  22297. case "$ac_file" in */Makefile.in)
  22298. # Adjust a relative srcdir.
  22299. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  22300. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  22301. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22302. # In autoconf-2.13 it is called $ac_given_srcdir.
  22303. # In autoconf-2.50 it is called $srcdir.
  22304. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22305. case "$ac_given_srcdir" in
  22306. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22307. /*) top_srcdir="$ac_given_srcdir" ;;
  22308. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22309. esac
  22310. # Treat a directory as a PO directory if and only if it has a
  22311. # POTFILES.in file. This allows packages to have multiple PO
  22312. # directories under different names or in different locations.
  22313. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22314. rm -f "$ac_dir/POTFILES"
  22315. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22316. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22317. POMAKEFILEDEPS="POTFILES.in"
  22318. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22319. # on $ac_dir but don't depend on user-specified configuration
  22320. # parameters.
  22321. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22322. # The LINGUAS file contains the set of available languages.
  22323. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22324. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22325. fi
  22326. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22327. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22328. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22329. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22330. else
  22331. # The set of available languages was given in configure.in.
  22332. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22333. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22334. fi
  22335. # Compute POFILES
  22336. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22337. # Compute UPDATEPOFILES
  22338. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22339. # Compute DUMMYPOFILES
  22340. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22341. # Compute GMOFILES
  22342. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22343. case "$ac_given_srcdir" in
  22344. .) srcdirpre= ;;
  22345. *) srcdirpre='$(srcdir)/' ;;
  22346. esac
  22347. POFILES=
  22348. UPDATEPOFILES=
  22349. DUMMYPOFILES=
  22350. GMOFILES=
  22351. for lang in $ALL_LINGUAS; do
  22352. POFILES="$POFILES $srcdirpre$lang.po"
  22353. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22354. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22355. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22356. done
  22357. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22358. # environment variable.
  22359. INST_LINGUAS=
  22360. if test -n "$ALL_LINGUAS"; then
  22361. for presentlang in $ALL_LINGUAS; do
  22362. useit=no
  22363. if test "%UNSET%" != "$LINGUAS"; then
  22364. desiredlanguages="$LINGUAS"
  22365. else
  22366. desiredlanguages="$ALL_LINGUAS"
  22367. fi
  22368. for desiredlang in $desiredlanguages; do
  22369. # Use the presentlang catalog if desiredlang is
  22370. # a. equal to presentlang, or
  22371. # b. a variant of presentlang (because in this case,
  22372. # presentlang can be used as a fallback for messages
  22373. # which are not translated in the desiredlang catalog).
  22374. case "$desiredlang" in
  22375. "$presentlang"*) useit=yes;;
  22376. esac
  22377. done
  22378. if test $useit = yes; then
  22379. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22380. fi
  22381. done
  22382. fi
  22383. CATALOGS=
  22384. if test -n "$INST_LINGUAS"; then
  22385. for lang in $INST_LINGUAS; do
  22386. CATALOGS="$CATALOGS $lang.gmo"
  22387. done
  22388. fi
  22389. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22390. 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"
  22391. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22392. if test -f "$f"; then
  22393. case "$f" in
  22394. *.orig | *.bak | *~) ;;
  22395. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22396. esac
  22397. fi
  22398. done
  22399. fi
  22400. ;;
  22401. esac
  22402. done ;;
  22403. esac
  22404. done # for ac_tag
  22405. { (exit 0); exit 0; }
  22406. _ACEOF
  22407. chmod +x $CONFIG_STATUS
  22408. ac_clean_files=$ac_clean_files_save
  22409. test $ac_write_fail = 0 ||
  22410. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22411. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22412. { (exit 1); exit 1; }; }
  22413. # configure is writing to config.log, and then calls config.status.
  22414. # config.status does its own redirection, appending to config.log.
  22415. # Unfortunately, on DOS this fails, as config.log is still kept open
  22416. # by configure, so config.status won't be able to write to it; its
  22417. # output is simply discarded. So we exec the FD to /dev/null,
  22418. # effectively closing config.log, so it can be properly (re)opened and
  22419. # appended to by config.status. When coming back to configure, we
  22420. # need to make the FD available again.
  22421. if test "$no_create" != yes; then
  22422. ac_cs_success=:
  22423. ac_config_status_args=
  22424. test "$silent" = yes &&
  22425. ac_config_status_args="$ac_config_status_args --quiet"
  22426. exec 5>/dev/null
  22427. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22428. exec 5>>config.log
  22429. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22430. # would make configure fail if this is the last instruction.
  22431. $ac_cs_success || { (exit 1); exit 1; }
  22432. fi
  22433. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22434. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22435. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22436. fi
  22437. echo " "
  22438. echo "Build: $build"
  22439. echo "Target: $target"
  22440. echo "Install prefix: $prefix"
  22441. echo "CFLAGS: $CFLAGS"
  22442. echo "CPPFLAGS: $CPPFLAGS"
  22443. echo "LDFLAGS: $LDFLAGS"
  22444. echo "LIBS: $LIBS"
  22445. echo "SQLite3: $have_sqlite3"
  22446. echo "GnuTLS: $have_libgnutls"
  22447. echo "OpenSSL: $have_openssl"
  22448. echo "CA Bundle: $ca_bundle"
  22449. echo "LibXML2: $have_libxml2"
  22450. echo "LibExpat: $have_libexpat"
  22451. echo "LibCares: $have_libcares"
  22452. echo "Libz: $have_libz"
  22453. echo "Epoll: $have_epoll"
  22454. echo "Bittorrent: $enable_bittorrent"
  22455. echo "Metalink: $enable_metalink"
  22456. echo "XML-RPC: $enable_xml_rpc"