configure 699 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.5.0.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 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.0'
  518. PACKAGE_STRING='aria2 1.5.0'
  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.0 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.0:";;
  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.0
  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.0, 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.0'
  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. for ac_func in sqlite3_open_v2
  5714. do
  5715. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5716. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5717. $as_echo_n "checking for $ac_func... " >&6; }
  5718. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. cat >conftest.$ac_ext <<_ACEOF
  5722. /* confdefs.h. */
  5723. _ACEOF
  5724. cat confdefs.h >>conftest.$ac_ext
  5725. cat >>conftest.$ac_ext <<_ACEOF
  5726. /* end confdefs.h. */
  5727. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5728. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5729. #define $ac_func innocuous_$ac_func
  5730. /* System header to define __stub macros and hopefully few prototypes,
  5731. which can conflict with char $ac_func (); below.
  5732. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5733. <limits.h> exists even on freestanding compilers. */
  5734. #ifdef __STDC__
  5735. # include <limits.h>
  5736. #else
  5737. # include <assert.h>
  5738. #endif
  5739. #undef $ac_func
  5740. /* Override any GCC internal prototype to avoid an error.
  5741. Use char because int might match the return type of a GCC
  5742. builtin and then its argument prototype would still apply. */
  5743. #ifdef __cplusplus
  5744. extern "C"
  5745. #endif
  5746. char $ac_func ();
  5747. /* The GNU C library defines this for functions which it implements
  5748. to always fail with ENOSYS. Some functions are actually named
  5749. something starting with __ and the normal name is an alias. */
  5750. #if defined __stub_$ac_func || defined __stub___$ac_func
  5751. choke me
  5752. #endif
  5753. int
  5754. main ()
  5755. {
  5756. return $ac_func ();
  5757. ;
  5758. return 0;
  5759. }
  5760. _ACEOF
  5761. rm -f conftest.$ac_objext conftest$ac_exeext
  5762. if { (ac_try="$ac_link"
  5763. case "(($ac_try" in
  5764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5765. *) ac_try_echo=$ac_try;;
  5766. esac
  5767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5768. $as_echo "$ac_try_echo") >&5
  5769. (eval "$ac_link") 2>conftest.er1
  5770. ac_status=$?
  5771. grep -v '^ *+' conftest.er1 >conftest.err
  5772. rm -f conftest.er1
  5773. cat conftest.err >&5
  5774. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5775. (exit $ac_status); } && {
  5776. test -z "$ac_cxx_werror_flag" ||
  5777. test ! -s conftest.err
  5778. } && test -s conftest$ac_exeext && {
  5779. test "$cross_compiling" = yes ||
  5780. $as_test_x conftest$ac_exeext
  5781. }; then
  5782. eval "$as_ac_var=yes"
  5783. else
  5784. $as_echo "$as_me: failed program was:" >&5
  5785. sed 's/^/| /' conftest.$ac_ext >&5
  5786. eval "$as_ac_var=no"
  5787. fi
  5788. rm -rf conftest.dSYM
  5789. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5790. conftest$ac_exeext conftest.$ac_ext
  5791. fi
  5792. ac_res=`eval 'as_val=${'$as_ac_var'}
  5793. $as_echo "$as_val"'`
  5794. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5795. $as_echo "$ac_res" >&6; }
  5796. as_val=`eval 'as_val=${'$as_ac_var'}
  5797. $as_echo "$as_val"'`
  5798. if test "x$as_val" = x""yes; then
  5799. cat >>confdefs.h <<_ACEOF
  5800. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5801. _ACEOF
  5802. fi
  5803. done
  5804. cat >>confdefs.h <<\_ACEOF
  5805. #define HAVE_SQLITE3 1
  5806. _ACEOF
  5807. fi
  5808. LIBS=$LIBS_save
  5809. CPPFLAGS=$CPPFLAGS_save
  5810. fi
  5811. if test "x$with_gnutls" = "xyes"; then
  5812. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5813. # First check the presence of libgnutls using pkg-config.
  5814. pkg_failed=no
  5815. { $as_echo "$as_me:$LINENO: checking for LIBGNUTLS" >&5
  5816. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5817. if test -n "$PKG_CONFIG"; then
  5818. if test -n "$LIBGNUTLS_CFLAGS"; then
  5819. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5820. else
  5821. if test -n "$PKG_CONFIG" && \
  5822. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5823. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5824. ac_status=$?
  5825. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5826. (exit $ac_status); }; then
  5827. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5828. else
  5829. pkg_failed=yes
  5830. fi
  5831. fi
  5832. else
  5833. pkg_failed=untried
  5834. fi
  5835. if test -n "$PKG_CONFIG"; then
  5836. if test -n "$LIBGNUTLS_LIBS"; then
  5837. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5838. else
  5839. if test -n "$PKG_CONFIG" && \
  5840. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5841. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5842. ac_status=$?
  5843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5844. (exit $ac_status); }; then
  5845. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5846. else
  5847. pkg_failed=yes
  5848. fi
  5849. fi
  5850. else
  5851. pkg_failed=untried
  5852. fi
  5853. if test $pkg_failed = yes; then
  5854. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5855. _pkg_short_errors_supported=yes
  5856. else
  5857. _pkg_short_errors_supported=no
  5858. fi
  5859. if test $_pkg_short_errors_supported = yes; then
  5860. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5861. else
  5862. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5863. fi
  5864. # Put the nasty error message in config.log where it belongs
  5865. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5866. { $as_echo "$as_me:$LINENO: result: no" >&5
  5867. $as_echo "no" >&6; }
  5868. have_libgnutls=no
  5869. elif test $pkg_failed = untried; then
  5870. have_libgnutls=no
  5871. else
  5872. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5873. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5874. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5875. $as_echo "yes" >&6; }
  5876. have_libgnutls=yes
  5877. fi
  5878. # If no libgnutls found by pkg-config, fall back to old macro
  5879. if test "x$have_libgnutls" = "xno"; then
  5880. { $as_echo "$as_me:$LINENO: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5881. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5882. # Check whether --with-libgnutls-prefix was given.
  5883. if test "${with_libgnutls_prefix+set}" = set; then
  5884. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5885. else
  5886. libgnutls_config_prefix=""
  5887. fi
  5888. if test x$libgnutls_config_prefix != x ; then
  5889. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5890. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5891. fi
  5892. fi
  5893. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5894. set dummy libgnutls-config; ac_word=$2
  5895. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. case $LIBGNUTLS_CONFIG in
  5901. [\\/]* | ?:[\\/]*)
  5902. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5903. ;;
  5904. *)
  5905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5906. for as_dir in $PATH
  5907. do
  5908. IFS=$as_save_IFS
  5909. test -z "$as_dir" && as_dir=.
  5910. for ac_exec_ext in '' $ac_executable_extensions; do
  5911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5912. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5913. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5914. break 2
  5915. fi
  5916. done
  5917. done
  5918. IFS=$as_save_IFS
  5919. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5920. ;;
  5921. esac
  5922. fi
  5923. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5924. if test -n "$LIBGNUTLS_CONFIG"; then
  5925. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5926. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5927. else
  5928. { $as_echo "$as_me:$LINENO: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. min_libgnutls_version=1.2.9
  5932. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5933. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5934. no_libgnutls=""
  5935. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5936. no_libgnutls=yes
  5937. else
  5938. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5939. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5940. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5941. ac_save_CFLAGS="$CFLAGS"
  5942. ac_save_LIBS="$LIBS"
  5943. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5944. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5945. rm -f conf.libgnutlstest
  5946. if test "$cross_compiling" = yes; then
  5947. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5948. else
  5949. cat >conftest.$ac_ext <<_ACEOF
  5950. /* confdefs.h. */
  5951. _ACEOF
  5952. cat confdefs.h >>conftest.$ac_ext
  5953. cat >>conftest.$ac_ext <<_ACEOF
  5954. /* end confdefs.h. */
  5955. #include <stdio.h>
  5956. #include <stdlib.h>
  5957. #include <string.h>
  5958. #include <gnutls/gnutls.h>
  5959. int
  5960. main ()
  5961. {
  5962. system ("touch conf.libgnutlstest");
  5963. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5964. {
  5965. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5966. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5967. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5968. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5969. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5970. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5971. printf("*** required on your system.\n");
  5972. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5973. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5974. printf("*** before re-running configure\n");
  5975. }
  5976. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5977. {
  5978. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5979. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5980. }
  5981. else
  5982. {
  5983. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5984. {
  5985. return 0;
  5986. }
  5987. else
  5988. {
  5989. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5990. gnutls_check_version(NULL) );
  5991. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5992. "$min_libgnutls_version" );
  5993. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5994. printf("*** \n");
  5995. printf("*** If you have already installed a sufficiently new version, this error\n");
  5996. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5997. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5998. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5999. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  6000. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  6001. printf("*** so that the correct libraries are found at run-time))\n");
  6002. }
  6003. }
  6004. return 1;
  6005. }
  6006. _ACEOF
  6007. rm -f conftest$ac_exeext
  6008. if { (ac_try="$ac_link"
  6009. case "(($ac_try" in
  6010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6011. *) ac_try_echo=$ac_try;;
  6012. esac
  6013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6014. $as_echo "$ac_try_echo") >&5
  6015. (eval "$ac_link") 2>&5
  6016. ac_status=$?
  6017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6019. { (case "(($ac_try" in
  6020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6021. *) ac_try_echo=$ac_try;;
  6022. esac
  6023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6024. $as_echo "$ac_try_echo") >&5
  6025. (eval "$ac_try") 2>&5
  6026. ac_status=$?
  6027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); }; }; then
  6029. :
  6030. else
  6031. $as_echo "$as_me: program exited with status $ac_status" >&5
  6032. $as_echo "$as_me: failed program was:" >&5
  6033. sed 's/^/| /' conftest.$ac_ext >&5
  6034. ( exit $ac_status )
  6035. no_libgnutls=yes
  6036. fi
  6037. rm -rf conftest.dSYM
  6038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6039. fi
  6040. CFLAGS="$ac_save_CFLAGS"
  6041. LIBS="$ac_save_LIBS"
  6042. fi
  6043. if test "x$no_libgnutls" = x ; then
  6044. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6045. $as_echo "yes" >&6; }
  6046. have_libgnutls=yes
  6047. else
  6048. if test -f conf.libgnutlstest ; then
  6049. :
  6050. else
  6051. { $as_echo "$as_me:$LINENO: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  6055. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  6056. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  6057. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  6058. echo "*** full path to libgnutls-config."
  6059. else
  6060. if test -f conf.libgnutlstest ; then
  6061. :
  6062. else
  6063. echo "*** Could not run libgnutls test program, checking why..."
  6064. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  6065. LIBS="$LIBS $LIBGNUTLS_LIBS"
  6066. cat >conftest.$ac_ext <<_ACEOF
  6067. /* confdefs.h. */
  6068. _ACEOF
  6069. cat confdefs.h >>conftest.$ac_ext
  6070. cat >>conftest.$ac_ext <<_ACEOF
  6071. /* end confdefs.h. */
  6072. #include <stdio.h>
  6073. #include <stdlib.h>
  6074. #include <string.h>
  6075. #include <gnutls/gnutls.h>
  6076. int
  6077. main ()
  6078. {
  6079. return !!gnutls_check_version(NULL);
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. rm -f conftest.$ac_objext conftest$ac_exeext
  6085. if { (ac_try="$ac_link"
  6086. case "(($ac_try" in
  6087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6088. *) ac_try_echo=$ac_try;;
  6089. esac
  6090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6091. $as_echo "$ac_try_echo") >&5
  6092. (eval "$ac_link") 2>conftest.er1
  6093. ac_status=$?
  6094. grep -v '^ *+' conftest.er1 >conftest.err
  6095. rm -f conftest.er1
  6096. cat conftest.err >&5
  6097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6098. (exit $ac_status); } && {
  6099. test -z "$ac_cxx_werror_flag" ||
  6100. test ! -s conftest.err
  6101. } && test -s conftest$ac_exeext && {
  6102. test "$cross_compiling" = yes ||
  6103. $as_test_x conftest$ac_exeext
  6104. }; then
  6105. echo "*** The test program compiled, but did not run. This usually means"
  6106. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  6107. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  6108. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  6109. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  6110. echo "*** is required on your system"
  6111. echo "***"
  6112. echo "*** If you have an old version installed, it is best to remove it, although"
  6113. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  6114. echo "***"
  6115. else
  6116. $as_echo "$as_me: failed program was:" >&5
  6117. sed 's/^/| /' conftest.$ac_ext >&5
  6118. echo "*** The test program failed to compile or link. See the file config.log for the"
  6119. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  6120. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  6121. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  6122. fi
  6123. rm -rf conftest.dSYM
  6124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6125. conftest$ac_exeext conftest.$ac_ext
  6126. CFLAGS="$ac_save_CFLAGS"
  6127. LIBS="$ac_save_LIBS"
  6128. fi
  6129. fi
  6130. LIBGNUTLS_CFLAGS=""
  6131. LIBGNUTLS_LIBS=""
  6132. :
  6133. fi
  6134. rm -f conf.libgnutlstest
  6135. fi
  6136. if test "x$have_libgnutls" = "xyes"; then
  6137. cat >>confdefs.h <<\_ACEOF
  6138. #define HAVE_LIBGNUTLS 1
  6139. _ACEOF
  6140. fi
  6141. fi
  6142. if test "x$have_libgnutls" = "xyes"; then
  6143. # Check whether --with-libgcrypt-prefix was given.
  6144. if test "${with_libgcrypt_prefix+set}" = set; then
  6145. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  6146. else
  6147. libgcrypt_config_prefix=""
  6148. fi
  6149. if test x$libgcrypt_config_prefix != x ; then
  6150. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  6151. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  6152. fi
  6153. fi
  6154. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  6155. set dummy libgcrypt-config; ac_word=$2
  6156. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. case $LIBGCRYPT_CONFIG in
  6162. [\\/]* | ?:[\\/]*)
  6163. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6164. ;;
  6165. *)
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6174. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6181. ;;
  6182. esac
  6183. fi
  6184. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6185. if test -n "$LIBGCRYPT_CONFIG"; then
  6186. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  6187. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6188. else
  6189. { $as_echo "$as_me:$LINENO: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. tmp=1.2.2
  6193. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6194. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6195. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6196. else
  6197. req_libgcrypt_api=0
  6198. min_libgcrypt_version="$tmp"
  6199. fi
  6200. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6201. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6202. ok=no
  6203. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6204. req_major=`echo $min_libgcrypt_version | \
  6205. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6206. req_minor=`echo $min_libgcrypt_version | \
  6207. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6208. req_micro=`echo $min_libgcrypt_version | \
  6209. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6210. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6211. major=`echo $libgcrypt_config_version | \
  6212. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6213. minor=`echo $libgcrypt_config_version | \
  6214. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6215. micro=`echo $libgcrypt_config_version | \
  6216. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6217. if test "$major" -gt "$req_major"; then
  6218. ok=yes
  6219. else
  6220. if test "$major" -eq "$req_major"; then
  6221. if test "$minor" -gt "$req_minor"; then
  6222. ok=yes
  6223. else
  6224. if test "$minor" -eq "$req_minor"; then
  6225. if test "$micro" -ge "$req_micro"; then
  6226. ok=yes
  6227. fi
  6228. fi
  6229. fi
  6230. fi
  6231. fi
  6232. fi
  6233. if test $ok = yes; then
  6234. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  6235. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6236. else
  6237. { $as_echo "$as_me:$LINENO: result: no" >&5
  6238. $as_echo "no" >&6; }
  6239. fi
  6240. if test $ok = yes; then
  6241. # If we have a recent libgcrypt, we should also check that the
  6242. # API is compatible
  6243. if test "$req_libgcrypt_api" -gt 0 ; then
  6244. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6245. if test "$tmp" -gt 0 ; then
  6246. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6247. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6248. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6249. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6250. $as_echo "okay" >&6; }
  6251. else
  6252. ok=no
  6253. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6254. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6255. fi
  6256. fi
  6257. fi
  6258. fi
  6259. if test $ok = yes; then
  6260. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6261. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6262. have_libgcrypt=yes
  6263. else
  6264. LIBGCRYPT_CFLAGS=""
  6265. LIBGCRYPT_LIBS=""
  6266. :
  6267. fi
  6268. if test "x$have_libgcrypt" = "xyes"; then
  6269. cat >>confdefs.h <<\_ACEOF
  6270. #define HAVE_LIBGCRYPT 1
  6271. _ACEOF
  6272. fi
  6273. fi
  6274. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6275. # Check whether --with-openssl-prefix was given.
  6276. if test "${with_openssl_prefix+set}" = set; then
  6277. withval=$with_openssl_prefix; openssl_prefix=$withval
  6278. else
  6279. openssl_prefix=""
  6280. fi
  6281. if test "x$openssl_prefix" = "x"; then
  6282. openssl_prefix="/usr/local"
  6283. fi
  6284. LIBS_save=$LIBS
  6285. CPPFLAGS_save=$CPPFLAGS
  6286. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6287. if test -x $PKG_CONFIG; then
  6288. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6289. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6290. $PKG_CONFIG --exists openssl
  6291. if test "$?" = "0"; then
  6292. # Use pkg-config to detect LIBS and CFLAGS
  6293. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6294. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6295. LIBS="$OPENSSL_LIBS $LIBS"
  6296. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6297. have_openssl=yes
  6298. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6299. $as_echo "yes" >&6; }
  6300. else
  6301. { $as_echo "$as_me:$LINENO: result: no" >&5
  6302. $as_echo "no" >&6; }
  6303. fi
  6304. fi
  6305. if test "x$have_openssl" != "xyes"; then
  6306. openssl_prefix_lib=$openssl_prefix/lib
  6307. openssl_prefix_include=$openssl_prefix/include
  6308. LIBS="-L$openssl_prefix_lib $LIBS"
  6309. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6310. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6311. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6312. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. ac_check_lib_save_LIBS=$LIBS
  6316. LIBS="-lssl $LIBS"
  6317. cat >conftest.$ac_ext <<_ACEOF
  6318. /* confdefs.h. */
  6319. _ACEOF
  6320. cat confdefs.h >>conftest.$ac_ext
  6321. cat >>conftest.$ac_ext <<_ACEOF
  6322. /* end confdefs.h. */
  6323. /* Override any GCC internal prototype to avoid an error.
  6324. Use char because int might match the return type of a GCC
  6325. builtin and then its argument prototype would still apply. */
  6326. #ifdef __cplusplus
  6327. extern "C"
  6328. #endif
  6329. char SSL_library_init ();
  6330. int
  6331. main ()
  6332. {
  6333. return SSL_library_init ();
  6334. ;
  6335. return 0;
  6336. }
  6337. _ACEOF
  6338. rm -f conftest.$ac_objext conftest$ac_exeext
  6339. if { (ac_try="$ac_link"
  6340. case "(($ac_try" in
  6341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6342. *) ac_try_echo=$ac_try;;
  6343. esac
  6344. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6345. $as_echo "$ac_try_echo") >&5
  6346. (eval "$ac_link") 2>conftest.er1
  6347. ac_status=$?
  6348. grep -v '^ *+' conftest.er1 >conftest.err
  6349. rm -f conftest.er1
  6350. cat conftest.err >&5
  6351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6352. (exit $ac_status); } && {
  6353. test -z "$ac_cxx_werror_flag" ||
  6354. test ! -s conftest.err
  6355. } && test -s conftest$ac_exeext && {
  6356. test "$cross_compiling" = yes ||
  6357. $as_test_x conftest$ac_exeext
  6358. }; then
  6359. ac_cv_lib_ssl_SSL_library_init=yes
  6360. else
  6361. $as_echo "$as_me: failed program was:" >&5
  6362. sed 's/^/| /' conftest.$ac_ext >&5
  6363. ac_cv_lib_ssl_SSL_library_init=no
  6364. fi
  6365. rm -rf conftest.dSYM
  6366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6367. conftest$ac_exeext conftest.$ac_ext
  6368. LIBS=$ac_check_lib_save_LIBS
  6369. fi
  6370. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6371. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6372. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6373. have_openssl=yes LIBS="-lssl $LIBS"
  6374. fi
  6375. if test "x$have_openssl" = "xyes"; then
  6376. have_openssl=no
  6377. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6378. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6379. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. ac_check_lib_save_LIBS=$LIBS
  6383. LIBS="-lcrypto $LIBS"
  6384. cat >conftest.$ac_ext <<_ACEOF
  6385. /* confdefs.h. */
  6386. _ACEOF
  6387. cat confdefs.h >>conftest.$ac_ext
  6388. cat >>conftest.$ac_ext <<_ACEOF
  6389. /* end confdefs.h. */
  6390. int
  6391. main ()
  6392. {
  6393. return main ();
  6394. ;
  6395. return 0;
  6396. }
  6397. _ACEOF
  6398. rm -f conftest.$ac_objext conftest$ac_exeext
  6399. if { (ac_try="$ac_link"
  6400. case "(($ac_try" in
  6401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6402. *) ac_try_echo=$ac_try;;
  6403. esac
  6404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6405. $as_echo "$ac_try_echo") >&5
  6406. (eval "$ac_link") 2>conftest.er1
  6407. ac_status=$?
  6408. grep -v '^ *+' conftest.er1 >conftest.err
  6409. rm -f conftest.er1
  6410. cat conftest.err >&5
  6411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6412. (exit $ac_status); } && {
  6413. test -z "$ac_cxx_werror_flag" ||
  6414. test ! -s conftest.err
  6415. } && test -s conftest$ac_exeext && {
  6416. test "$cross_compiling" = yes ||
  6417. $as_test_x conftest$ac_exeext
  6418. }; then
  6419. ac_cv_lib_crypto_main=yes
  6420. else
  6421. $as_echo "$as_me: failed program was:" >&5
  6422. sed 's/^/| /' conftest.$ac_ext >&5
  6423. ac_cv_lib_crypto_main=no
  6424. fi
  6425. rm -rf conftest.dSYM
  6426. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6427. conftest$ac_exeext conftest.$ac_ext
  6428. LIBS=$ac_check_lib_save_LIBS
  6429. fi
  6430. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6431. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6432. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6433. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6434. fi
  6435. if test "x$have_openssl" = "xyes"; then
  6436. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6437. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6438. fi
  6439. fi
  6440. fi
  6441. if test "x$have_openssl" = "xyes"; then
  6442. cat >>confdefs.h <<\_ACEOF
  6443. #define HAVE_LIBSSL 1
  6444. _ACEOF
  6445. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6446. for ac_func in EVP_DigestInit_ex
  6447. do
  6448. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6449. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6450. $as_echo_n "checking for $ac_func... " >&6; }
  6451. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6452. $as_echo_n "(cached) " >&6
  6453. else
  6454. cat >conftest.$ac_ext <<_ACEOF
  6455. /* confdefs.h. */
  6456. _ACEOF
  6457. cat confdefs.h >>conftest.$ac_ext
  6458. cat >>conftest.$ac_ext <<_ACEOF
  6459. /* end confdefs.h. */
  6460. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6461. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6462. #define $ac_func innocuous_$ac_func
  6463. /* System header to define __stub macros and hopefully few prototypes,
  6464. which can conflict with char $ac_func (); below.
  6465. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6466. <limits.h> exists even on freestanding compilers. */
  6467. #ifdef __STDC__
  6468. # include <limits.h>
  6469. #else
  6470. # include <assert.h>
  6471. #endif
  6472. #undef $ac_func
  6473. /* Override any GCC internal prototype to avoid an error.
  6474. Use char because int might match the return type of a GCC
  6475. builtin and then its argument prototype would still apply. */
  6476. #ifdef __cplusplus
  6477. extern "C"
  6478. #endif
  6479. char $ac_func ();
  6480. /* The GNU C library defines this for functions which it implements
  6481. to always fail with ENOSYS. Some functions are actually named
  6482. something starting with __ and the normal name is an alias. */
  6483. #if defined __stub_$ac_func || defined __stub___$ac_func
  6484. choke me
  6485. #endif
  6486. int
  6487. main ()
  6488. {
  6489. return $ac_func ();
  6490. ;
  6491. return 0;
  6492. }
  6493. _ACEOF
  6494. rm -f conftest.$ac_objext conftest$ac_exeext
  6495. if { (ac_try="$ac_link"
  6496. case "(($ac_try" in
  6497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6498. *) ac_try_echo=$ac_try;;
  6499. esac
  6500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6501. $as_echo "$ac_try_echo") >&5
  6502. (eval "$ac_link") 2>conftest.er1
  6503. ac_status=$?
  6504. grep -v '^ *+' conftest.er1 >conftest.err
  6505. rm -f conftest.er1
  6506. cat conftest.err >&5
  6507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508. (exit $ac_status); } && {
  6509. test -z "$ac_cxx_werror_flag" ||
  6510. test ! -s conftest.err
  6511. } && test -s conftest$ac_exeext && {
  6512. test "$cross_compiling" = yes ||
  6513. $as_test_x conftest$ac_exeext
  6514. }; then
  6515. eval "$as_ac_var=yes"
  6516. else
  6517. $as_echo "$as_me: failed program was:" >&5
  6518. sed 's/^/| /' conftest.$ac_ext >&5
  6519. eval "$as_ac_var=no"
  6520. fi
  6521. rm -rf conftest.dSYM
  6522. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6523. conftest$ac_exeext conftest.$ac_ext
  6524. fi
  6525. ac_res=`eval 'as_val=${'$as_ac_var'}
  6526. $as_echo "$as_val"'`
  6527. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6528. $as_echo "$ac_res" >&6; }
  6529. as_val=`eval 'as_val=${'$as_ac_var'}
  6530. $as_echo "$as_val"'`
  6531. if test "x$as_val" = x""yes; then
  6532. cat >>confdefs.h <<_ACEOF
  6533. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6534. _ACEOF
  6535. have_digestinit_ex=yes
  6536. fi
  6537. done
  6538. if test "x$have_digestinit_ex" = "x"; then
  6539. cat >>confdefs.h <<\_ACEOF
  6540. #define HAVE_OLD_LIBSSL 1
  6541. _ACEOF
  6542. fi
  6543. # search for sha256 support
  6544. for ac_func in EVP_sha256
  6545. do
  6546. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6547. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6548. $as_echo_n "checking for $ac_func... " >&6; }
  6549. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6550. $as_echo_n "(cached) " >&6
  6551. else
  6552. cat >conftest.$ac_ext <<_ACEOF
  6553. /* confdefs.h. */
  6554. _ACEOF
  6555. cat confdefs.h >>conftest.$ac_ext
  6556. cat >>conftest.$ac_ext <<_ACEOF
  6557. /* end confdefs.h. */
  6558. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6559. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6560. #define $ac_func innocuous_$ac_func
  6561. /* System header to define __stub macros and hopefully few prototypes,
  6562. which can conflict with char $ac_func (); below.
  6563. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6564. <limits.h> exists even on freestanding compilers. */
  6565. #ifdef __STDC__
  6566. # include <limits.h>
  6567. #else
  6568. # include <assert.h>
  6569. #endif
  6570. #undef $ac_func
  6571. /* Override any GCC internal prototype to avoid an error.
  6572. Use char because int might match the return type of a GCC
  6573. builtin and then its argument prototype would still apply. */
  6574. #ifdef __cplusplus
  6575. extern "C"
  6576. #endif
  6577. char $ac_func ();
  6578. /* The GNU C library defines this for functions which it implements
  6579. to always fail with ENOSYS. Some functions are actually named
  6580. something starting with __ and the normal name is an alias. */
  6581. #if defined __stub_$ac_func || defined __stub___$ac_func
  6582. choke me
  6583. #endif
  6584. int
  6585. main ()
  6586. {
  6587. return $ac_func ();
  6588. ;
  6589. return 0;
  6590. }
  6591. _ACEOF
  6592. rm -f conftest.$ac_objext conftest$ac_exeext
  6593. if { (ac_try="$ac_link"
  6594. case "(($ac_try" in
  6595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6596. *) ac_try_echo=$ac_try;;
  6597. esac
  6598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6599. $as_echo "$ac_try_echo") >&5
  6600. (eval "$ac_link") 2>conftest.er1
  6601. ac_status=$?
  6602. grep -v '^ *+' conftest.er1 >conftest.err
  6603. rm -f conftest.er1
  6604. cat conftest.err >&5
  6605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6606. (exit $ac_status); } && {
  6607. test -z "$ac_cxx_werror_flag" ||
  6608. test ! -s conftest.err
  6609. } && test -s conftest$ac_exeext && {
  6610. test "$cross_compiling" = yes ||
  6611. $as_test_x conftest$ac_exeext
  6612. }; then
  6613. eval "$as_ac_var=yes"
  6614. else
  6615. $as_echo "$as_me: failed program was:" >&5
  6616. sed 's/^/| /' conftest.$ac_ext >&5
  6617. eval "$as_ac_var=no"
  6618. fi
  6619. rm -rf conftest.dSYM
  6620. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6621. conftest$ac_exeext conftest.$ac_ext
  6622. fi
  6623. ac_res=`eval 'as_val=${'$as_ac_var'}
  6624. $as_echo "$as_val"'`
  6625. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6626. $as_echo "$ac_res" >&6; }
  6627. as_val=`eval 'as_val=${'$as_ac_var'}
  6628. $as_echo "$as_val"'`
  6629. if test "x$as_val" = x""yes; then
  6630. cat >>confdefs.h <<_ACEOF
  6631. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6632. _ACEOF
  6633. fi
  6634. done
  6635. fi
  6636. LIBS=$LIBS_save
  6637. CPPFLAGS=$CPPFLAGS_save
  6638. fi
  6639. if test "x$with_libcares" = "xyes"; then
  6640. # Check whether --with-libcares-prefix was given.
  6641. if test "${with_libcares_prefix+set}" = set; then
  6642. withval=$with_libcares_prefix; libcares_prefix=$withval
  6643. else
  6644. libcares_prefix=""
  6645. fi
  6646. if test "x$libcares_prefix" = "x"; then
  6647. libcares_prefix="/usr"
  6648. fi
  6649. libcares_prefix_lib=$libcares_prefix/lib
  6650. libcares_prefix_include=$libcares_prefix/include
  6651. LIBS_save=$LIBS
  6652. CPPFLAGS_save=$CPPFLAGS
  6653. LIBS="-L$libcares_prefix_lib $LIBS"
  6654. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6655. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6656. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6657. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. ac_check_lib_save_LIBS=$LIBS
  6661. LIBS="-lcares $LIBS"
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. /* Override any GCC internal prototype to avoid an error.
  6669. Use char because int might match the return type of a GCC
  6670. builtin and then its argument prototype would still apply. */
  6671. #ifdef __cplusplus
  6672. extern "C"
  6673. #endif
  6674. char ares_init ();
  6675. int
  6676. main ()
  6677. {
  6678. return ares_init ();
  6679. ;
  6680. return 0;
  6681. }
  6682. _ACEOF
  6683. rm -f conftest.$ac_objext conftest$ac_exeext
  6684. if { (ac_try="$ac_link"
  6685. case "(($ac_try" in
  6686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6687. *) ac_try_echo=$ac_try;;
  6688. esac
  6689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6690. $as_echo "$ac_try_echo") >&5
  6691. (eval "$ac_link") 2>conftest.er1
  6692. ac_status=$?
  6693. grep -v '^ *+' conftest.er1 >conftest.err
  6694. rm -f conftest.er1
  6695. cat conftest.err >&5
  6696. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6697. (exit $ac_status); } && {
  6698. test -z "$ac_cxx_werror_flag" ||
  6699. test ! -s conftest.err
  6700. } && test -s conftest$ac_exeext && {
  6701. test "$cross_compiling" = yes ||
  6702. $as_test_x conftest$ac_exeext
  6703. }; then
  6704. ac_cv_lib_cares_ares_init=yes
  6705. else
  6706. $as_echo "$as_me: failed program was:" >&5
  6707. sed 's/^/| /' conftest.$ac_ext >&5
  6708. ac_cv_lib_cares_ares_init=no
  6709. fi
  6710. rm -rf conftest.dSYM
  6711. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6712. conftest$ac_exeext conftest.$ac_ext
  6713. LIBS=$ac_check_lib_save_LIBS
  6714. fi
  6715. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6716. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6717. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6718. have_libcares=yes
  6719. fi
  6720. if test "x$have_libcares" != "xyes"; then
  6721. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6722. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6723. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. ac_check_lib_save_LIBS=$LIBS
  6727. LIBS="-lcares -lrt $LIBS"
  6728. cat >conftest.$ac_ext <<_ACEOF
  6729. /* confdefs.h. */
  6730. _ACEOF
  6731. cat confdefs.h >>conftest.$ac_ext
  6732. cat >>conftest.$ac_ext <<_ACEOF
  6733. /* end confdefs.h. */
  6734. /* Override any GCC internal prototype to avoid an error.
  6735. Use char because int might match the return type of a GCC
  6736. builtin and then its argument prototype would still apply. */
  6737. #ifdef __cplusplus
  6738. extern "C"
  6739. #endif
  6740. char ares_init ();
  6741. int
  6742. main ()
  6743. {
  6744. return ares_init ();
  6745. ;
  6746. return 0;
  6747. }
  6748. _ACEOF
  6749. rm -f conftest.$ac_objext conftest$ac_exeext
  6750. if { (ac_try="$ac_link"
  6751. case "(($ac_try" in
  6752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6753. *) ac_try_echo=$ac_try;;
  6754. esac
  6755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6756. $as_echo "$ac_try_echo") >&5
  6757. (eval "$ac_link") 2>conftest.er1
  6758. ac_status=$?
  6759. grep -v '^ *+' conftest.er1 >conftest.err
  6760. rm -f conftest.er1
  6761. cat conftest.err >&5
  6762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6763. (exit $ac_status); } && {
  6764. test -z "$ac_cxx_werror_flag" ||
  6765. test ! -s conftest.err
  6766. } && test -s conftest$ac_exeext && {
  6767. test "$cross_compiling" = yes ||
  6768. $as_test_x conftest$ac_exeext
  6769. }; then
  6770. ac_cv_lib_cares_ares_init=yes
  6771. else
  6772. $as_echo "$as_me: failed program was:" >&5
  6773. sed 's/^/| /' conftest.$ac_ext >&5
  6774. ac_cv_lib_cares_ares_init=no
  6775. fi
  6776. rm -rf conftest.dSYM
  6777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6778. conftest$ac_exeext conftest.$ac_ext
  6779. LIBS=$ac_check_lib_save_LIBS
  6780. fi
  6781. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6782. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6783. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6784. have_libcares=yes need_librt=yes
  6785. fi
  6786. fi
  6787. if test "x$have_libcares" = "xyes"; then
  6788. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6789. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6790. cat >conftest.$ac_ext <<_ACEOF
  6791. /* confdefs.h. */
  6792. _ACEOF
  6793. cat confdefs.h >>conftest.$ac_ext
  6794. cat >>conftest.$ac_ext <<_ACEOF
  6795. /* end confdefs.h. */
  6796. #include <ares.h>
  6797. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6798. int
  6799. main ()
  6800. {
  6801. ares_channel channel;
  6802. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6803. ;
  6804. return 0;
  6805. }
  6806. _ACEOF
  6807. rm -f conftest.$ac_objext
  6808. if { (ac_try="$ac_compile"
  6809. case "(($ac_try" in
  6810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6811. *) ac_try_echo=$ac_try;;
  6812. esac
  6813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6814. $as_echo "$ac_try_echo") >&5
  6815. (eval "$ac_compile") 2>conftest.er1
  6816. ac_status=$?
  6817. grep -v '^ *+' conftest.er1 >conftest.err
  6818. rm -f conftest.er1
  6819. cat conftest.err >&5
  6820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } && {
  6822. test -z "$ac_cxx_werror_flag" ||
  6823. test ! -s conftest.err
  6824. } && test -s conftest.$ac_objext; then
  6825. have_libcares1_5=yes
  6826. else
  6827. $as_echo "$as_me: failed program was:" >&5
  6828. sed 's/^/| /' conftest.$ac_ext >&5
  6829. have_libcares1_5=no
  6830. fi
  6831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6832. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6833. $as_echo "$have_libcares1_5" >&6; }
  6834. if test "x$have_libcares1_5" = "xyes"; then
  6835. cat >>confdefs.h <<\_ACEOF
  6836. #define HAVE_LIBCARES1_5 1
  6837. _ACEOF
  6838. fi
  6839. cat >>confdefs.h <<\_ACEOF
  6840. #define HAVE_LIBCARES 1
  6841. _ACEOF
  6842. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6843. if test "x$need_librt" = "xyes"; then
  6844. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6845. fi
  6846. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6847. fi
  6848. LIBS=$LIBS_save
  6849. CPPFLAGS=$CPPFLAGS_save
  6850. fi
  6851. # Check availability of libz
  6852. if test "x$with_libz" = "xyes"; then
  6853. # Check whether --with-libz-prefix was given.
  6854. if test "${with_libz_prefix+set}" = set; then
  6855. withval=$with_libz_prefix; libz_prefix=$withval
  6856. else
  6857. libz_prefix=""
  6858. fi
  6859. if test "x$libz_prefix" = "x"; then
  6860. libz_prefix="/usr"
  6861. fi
  6862. libz_prefix_lib=$libz_prefix/lib
  6863. libz_prefix_include=$libz_prefix/include
  6864. LIBS_save=$LIBS
  6865. CPPFLAGS_save=$CPPFLAGS
  6866. LIBS="-L$libz_prefix_lib $LIBS"
  6867. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6868. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6869. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6870. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. ac_check_lib_save_LIBS=$LIBS
  6874. LIBS="-lz $LIBS"
  6875. cat >conftest.$ac_ext <<_ACEOF
  6876. /* confdefs.h. */
  6877. _ACEOF
  6878. cat confdefs.h >>conftest.$ac_ext
  6879. cat >>conftest.$ac_ext <<_ACEOF
  6880. /* end confdefs.h. */
  6881. /* Override any GCC internal prototype to avoid an error.
  6882. Use char because int might match the return type of a GCC
  6883. builtin and then its argument prototype would still apply. */
  6884. #ifdef __cplusplus
  6885. extern "C"
  6886. #endif
  6887. char zlibVersion ();
  6888. int
  6889. main ()
  6890. {
  6891. return zlibVersion ();
  6892. ;
  6893. return 0;
  6894. }
  6895. _ACEOF
  6896. rm -f conftest.$ac_objext conftest$ac_exeext
  6897. if { (ac_try="$ac_link"
  6898. case "(($ac_try" in
  6899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6900. *) ac_try_echo=$ac_try;;
  6901. esac
  6902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6903. $as_echo "$ac_try_echo") >&5
  6904. (eval "$ac_link") 2>conftest.er1
  6905. ac_status=$?
  6906. grep -v '^ *+' conftest.er1 >conftest.err
  6907. rm -f conftest.er1
  6908. cat conftest.err >&5
  6909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6910. (exit $ac_status); } && {
  6911. test -z "$ac_cxx_werror_flag" ||
  6912. test ! -s conftest.err
  6913. } && test -s conftest$ac_exeext && {
  6914. test "$cross_compiling" = yes ||
  6915. $as_test_x conftest$ac_exeext
  6916. }; then
  6917. ac_cv_lib_z_zlibVersion=yes
  6918. else
  6919. $as_echo "$as_me: failed program was:" >&5
  6920. sed 's/^/| /' conftest.$ac_ext >&5
  6921. ac_cv_lib_z_zlibVersion=no
  6922. fi
  6923. rm -rf conftest.dSYM
  6924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6925. conftest$ac_exeext conftest.$ac_ext
  6926. LIBS=$ac_check_lib_save_LIBS
  6927. fi
  6928. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6929. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6930. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6931. have_libz=yes
  6932. fi
  6933. if test "x$have_libz" = "xyes"; then
  6934. cat >>confdefs.h <<\_ACEOF
  6935. #define HAVE_LIBZ 1
  6936. _ACEOF
  6937. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6938. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6939. fi
  6940. LIBS=$LIBS_save
  6941. CPPFLAGS=$CPPFLAGS_save
  6942. fi
  6943. # Define variables based on the result of the checks for libraries.
  6944. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6945. cat >>confdefs.h <<\_ACEOF
  6946. #define ENABLE_SSL 1
  6947. _ACEOF
  6948. if true; then
  6949. ENABLE_SSL_TRUE=
  6950. ENABLE_SSL_FALSE='#'
  6951. else
  6952. ENABLE_SSL_TRUE='#'
  6953. ENABLE_SSL_FALSE=
  6954. fi
  6955. else
  6956. if false; then
  6957. ENABLE_SSL_TRUE=
  6958. ENABLE_SSL_FALSE='#'
  6959. else
  6960. ENABLE_SSL_TRUE='#'
  6961. ENABLE_SSL_FALSE=
  6962. fi
  6963. fi
  6964. if test "x$have_libgnutls" = "xyes" ; then
  6965. HAVE_LIBGNUTLS_TRUE=
  6966. HAVE_LIBGNUTLS_FALSE='#'
  6967. else
  6968. HAVE_LIBGNUTLS_TRUE='#'
  6969. HAVE_LIBGNUTLS_FALSE=
  6970. fi
  6971. if test "x$have_openssl" = "xyes" ; then
  6972. HAVE_LIBSSL_TRUE=
  6973. HAVE_LIBSSL_FALSE='#'
  6974. else
  6975. HAVE_LIBSSL_TRUE='#'
  6976. HAVE_LIBSSL_FALSE=
  6977. fi
  6978. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6979. cat >>confdefs.h <<\_ACEOF
  6980. #define ENABLE_MESSAGE_DIGEST 1
  6981. _ACEOF
  6982. if true; then
  6983. ENABLE_MESSAGE_DIGEST_TRUE=
  6984. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6985. else
  6986. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6987. ENABLE_MESSAGE_DIGEST_FALSE=
  6988. fi
  6989. enable_message_digest=yes
  6990. else
  6991. if false; then
  6992. ENABLE_MESSAGE_DIGEST_TRUE=
  6993. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6994. else
  6995. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6996. ENABLE_MESSAGE_DIGEST_FALSE=
  6997. fi
  6998. fi
  6999. if test "x$enable_bittorrent" = "xyes" &&
  7000. test "x$enable_message_digest" = "xyes"; then
  7001. cat >>confdefs.h <<\_ACEOF
  7002. #define ENABLE_BITTORRENT 1
  7003. _ACEOF
  7004. if true; then
  7005. ENABLE_BITTORRENT_TRUE=
  7006. ENABLE_BITTORRENT_FALSE='#'
  7007. else
  7008. ENABLE_BITTORRENT_TRUE='#'
  7009. ENABLE_BITTORRENT_FALSE=
  7010. fi
  7011. else
  7012. enable_bittorrent=no
  7013. if false; then
  7014. ENABLE_BITTORRENT_TRUE=
  7015. ENABLE_BITTORRENT_FALSE='#'
  7016. else
  7017. ENABLE_BITTORRENT_TRUE='#'
  7018. ENABLE_BITTORRENT_FALSE=
  7019. fi
  7020. fi
  7021. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  7022. test "x$enable_metalink" = "xyes"; then
  7023. cat >>confdefs.h <<\_ACEOF
  7024. #define ENABLE_METALINK 1
  7025. _ACEOF
  7026. if true; then
  7027. ENABLE_METALINK_TRUE=
  7028. ENABLE_METALINK_FALSE='#'
  7029. else
  7030. ENABLE_METALINK_TRUE='#'
  7031. ENABLE_METALINK_FALSE=
  7032. fi
  7033. else
  7034. enable_metalink=no
  7035. if false; then
  7036. ENABLE_METALINK_TRUE=
  7037. ENABLE_METALINK_FALSE='#'
  7038. else
  7039. ENABLE_METALINK_TRUE='#'
  7040. ENABLE_METALINK_FALSE=
  7041. fi
  7042. fi
  7043. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  7044. ENABLE_METALINK_LIBXML2_TRUE=
  7045. ENABLE_METALINK_LIBXML2_FALSE='#'
  7046. else
  7047. ENABLE_METALINK_LIBXML2_TRUE='#'
  7048. ENABLE_METALINK_LIBXML2_FALSE=
  7049. fi
  7050. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  7051. ENABLE_METALINK_LIBEXPAT_TRUE=
  7052. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  7053. else
  7054. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  7055. ENABLE_METALINK_LIBEXPAT_FALSE=
  7056. fi
  7057. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  7058. enable_xml_rpc=yes
  7059. fi
  7060. if test "x$enable_xml_rpc" = "xyes"; then
  7061. cat >>confdefs.h <<\_ACEOF
  7062. #define ENABLE_XML_RPC 1
  7063. _ACEOF
  7064. fi
  7065. if test "x$enable_xml_rpc" = "xyes"; then
  7066. ENABLE_XML_RPC_TRUE=
  7067. ENABLE_XML_RPC_FALSE='#'
  7068. else
  7069. ENABLE_XML_RPC_TRUE='#'
  7070. ENABLE_XML_RPC_FALSE=
  7071. fi
  7072. if test "x$have_libxml2" = "xyes"; then
  7073. HAVE_LIBXML2_TRUE=
  7074. HAVE_LIBXML2_FALSE='#'
  7075. else
  7076. HAVE_LIBXML2_TRUE='#'
  7077. HAVE_LIBXML2_FALSE=
  7078. fi
  7079. if test "x$have_libexpat" = "xyes"; then
  7080. HAVE_LIBEXPAT_TRUE=
  7081. HAVE_LIBEXPAT_FALSE='#'
  7082. else
  7083. HAVE_LIBEXPAT_TRUE='#'
  7084. HAVE_LIBEXPAT_FALSE=
  7085. fi
  7086. if test "x$have_libcares" = "xyes"; then
  7087. cat >>confdefs.h <<\_ACEOF
  7088. #define ENABLE_ASYNC_DNS 1
  7089. _ACEOF
  7090. if true; then
  7091. ENABLE_ASYNC_DNS_TRUE=
  7092. ENABLE_ASYNC_DNS_FALSE='#'
  7093. else
  7094. ENABLE_ASYNC_DNS_TRUE='#'
  7095. ENABLE_ASYNC_DNS_FALSE=
  7096. fi
  7097. else
  7098. if false; then
  7099. ENABLE_ASYNC_DNS_TRUE=
  7100. ENABLE_ASYNC_DNS_FALSE='#'
  7101. else
  7102. ENABLE_ASYNC_DNS_TRUE='#'
  7103. ENABLE_ASYNC_DNS_FALSE=
  7104. fi
  7105. fi
  7106. # Set conditional for libz
  7107. if test "x$have_libz" = "xyes"; then
  7108. HAVE_LIBZ_TRUE=
  7109. HAVE_LIBZ_FALSE='#'
  7110. else
  7111. HAVE_LIBZ_TRUE='#'
  7112. HAVE_LIBZ_FALSE=
  7113. fi
  7114. # Set conditional for sqlite3
  7115. if test "x$have_sqlite3" = "xyes"; then
  7116. HAVE_SQLITE3_TRUE=
  7117. HAVE_SQLITE3_FALSE='#'
  7118. else
  7119. HAVE_SQLITE3_TRUE='#'
  7120. HAVE_SQLITE3_FALSE=
  7121. fi
  7122. # Checks for header files.
  7123. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  7124. # for constant arguments. Useless!
  7125. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  7126. $as_echo_n "checking for working alloca.h... " >&6; }
  7127. if test "${ac_cv_working_alloca_h+set}" = set; then
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. cat >conftest.$ac_ext <<_ACEOF
  7131. /* confdefs.h. */
  7132. _ACEOF
  7133. cat confdefs.h >>conftest.$ac_ext
  7134. cat >>conftest.$ac_ext <<_ACEOF
  7135. /* end confdefs.h. */
  7136. #include <alloca.h>
  7137. int
  7138. main ()
  7139. {
  7140. char *p = (char *) alloca (2 * sizeof (int));
  7141. if (p) return 0;
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. rm -f conftest.$ac_objext conftest$ac_exeext
  7147. if { (ac_try="$ac_link"
  7148. case "(($ac_try" in
  7149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7150. *) ac_try_echo=$ac_try;;
  7151. esac
  7152. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7153. $as_echo "$ac_try_echo") >&5
  7154. (eval "$ac_link") 2>conftest.er1
  7155. ac_status=$?
  7156. grep -v '^ *+' conftest.er1 >conftest.err
  7157. rm -f conftest.er1
  7158. cat conftest.err >&5
  7159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } && {
  7161. test -z "$ac_cxx_werror_flag" ||
  7162. test ! -s conftest.err
  7163. } && test -s conftest$ac_exeext && {
  7164. test "$cross_compiling" = yes ||
  7165. $as_test_x conftest$ac_exeext
  7166. }; then
  7167. ac_cv_working_alloca_h=yes
  7168. else
  7169. $as_echo "$as_me: failed program was:" >&5
  7170. sed 's/^/| /' conftest.$ac_ext >&5
  7171. ac_cv_working_alloca_h=no
  7172. fi
  7173. rm -rf conftest.dSYM
  7174. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7175. conftest$ac_exeext conftest.$ac_ext
  7176. fi
  7177. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  7178. $as_echo "$ac_cv_working_alloca_h" >&6; }
  7179. if test $ac_cv_working_alloca_h = yes; then
  7180. cat >>confdefs.h <<\_ACEOF
  7181. #define HAVE_ALLOCA_H 1
  7182. _ACEOF
  7183. fi
  7184. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  7185. $as_echo_n "checking for alloca... " >&6; }
  7186. if test "${ac_cv_func_alloca_works+set}" = set; then
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. cat >conftest.$ac_ext <<_ACEOF
  7190. /* confdefs.h. */
  7191. _ACEOF
  7192. cat confdefs.h >>conftest.$ac_ext
  7193. cat >>conftest.$ac_ext <<_ACEOF
  7194. /* end confdefs.h. */
  7195. #ifdef __GNUC__
  7196. # define alloca __builtin_alloca
  7197. #else
  7198. # ifdef _MSC_VER
  7199. # include <malloc.h>
  7200. # define alloca _alloca
  7201. # else
  7202. # ifdef HAVE_ALLOCA_H
  7203. # include <alloca.h>
  7204. # else
  7205. # ifdef _AIX
  7206. #pragma alloca
  7207. # else
  7208. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7209. char *alloca ();
  7210. # endif
  7211. # endif
  7212. # endif
  7213. # endif
  7214. #endif
  7215. int
  7216. main ()
  7217. {
  7218. char *p = (char *) alloca (1);
  7219. if (p) return 0;
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. rm -f conftest.$ac_objext conftest$ac_exeext
  7225. if { (ac_try="$ac_link"
  7226. case "(($ac_try" in
  7227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7228. *) ac_try_echo=$ac_try;;
  7229. esac
  7230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7231. $as_echo "$ac_try_echo") >&5
  7232. (eval "$ac_link") 2>conftest.er1
  7233. ac_status=$?
  7234. grep -v '^ *+' conftest.er1 >conftest.err
  7235. rm -f conftest.er1
  7236. cat conftest.err >&5
  7237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); } && {
  7239. test -z "$ac_cxx_werror_flag" ||
  7240. test ! -s conftest.err
  7241. } && test -s conftest$ac_exeext && {
  7242. test "$cross_compiling" = yes ||
  7243. $as_test_x conftest$ac_exeext
  7244. }; then
  7245. ac_cv_func_alloca_works=yes
  7246. else
  7247. $as_echo "$as_me: failed program was:" >&5
  7248. sed 's/^/| /' conftest.$ac_ext >&5
  7249. ac_cv_func_alloca_works=no
  7250. fi
  7251. rm -rf conftest.dSYM
  7252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7253. conftest$ac_exeext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7256. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7257. if test $ac_cv_func_alloca_works = yes; then
  7258. cat >>confdefs.h <<\_ACEOF
  7259. #define HAVE_ALLOCA 1
  7260. _ACEOF
  7261. else
  7262. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7263. # that cause trouble. Some versions do not even contain alloca or
  7264. # contain a buggy version. If you still want to use their alloca,
  7265. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7266. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7267. cat >>confdefs.h <<\_ACEOF
  7268. #define C_ALLOCA 1
  7269. _ACEOF
  7270. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7271. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7272. if test "${ac_cv_os_cray+set}" = set; then
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. cat >conftest.$ac_ext <<_ACEOF
  7276. /* confdefs.h. */
  7277. _ACEOF
  7278. cat confdefs.h >>conftest.$ac_ext
  7279. cat >>conftest.$ac_ext <<_ACEOF
  7280. /* end confdefs.h. */
  7281. #if defined CRAY && ! defined CRAY2
  7282. webecray
  7283. #else
  7284. wenotbecray
  7285. #endif
  7286. _ACEOF
  7287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7288. $EGREP "webecray" >/dev/null 2>&1; then
  7289. ac_cv_os_cray=yes
  7290. else
  7291. ac_cv_os_cray=no
  7292. fi
  7293. rm -f conftest*
  7294. fi
  7295. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7296. $as_echo "$ac_cv_os_cray" >&6; }
  7297. if test $ac_cv_os_cray = yes; then
  7298. for ac_func in _getb67 GETB67 getb67; do
  7299. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7300. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7301. $as_echo_n "checking for $ac_func... " >&6; }
  7302. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. cat >conftest.$ac_ext <<_ACEOF
  7306. /* confdefs.h. */
  7307. _ACEOF
  7308. cat confdefs.h >>conftest.$ac_ext
  7309. cat >>conftest.$ac_ext <<_ACEOF
  7310. /* end confdefs.h. */
  7311. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7312. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7313. #define $ac_func innocuous_$ac_func
  7314. /* System header to define __stub macros and hopefully few prototypes,
  7315. which can conflict with char $ac_func (); below.
  7316. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7317. <limits.h> exists even on freestanding compilers. */
  7318. #ifdef __STDC__
  7319. # include <limits.h>
  7320. #else
  7321. # include <assert.h>
  7322. #endif
  7323. #undef $ac_func
  7324. /* Override any GCC internal prototype to avoid an error.
  7325. Use char because int might match the return type of a GCC
  7326. builtin and then its argument prototype would still apply. */
  7327. #ifdef __cplusplus
  7328. extern "C"
  7329. #endif
  7330. char $ac_func ();
  7331. /* The GNU C library defines this for functions which it implements
  7332. to always fail with ENOSYS. Some functions are actually named
  7333. something starting with __ and the normal name is an alias. */
  7334. #if defined __stub_$ac_func || defined __stub___$ac_func
  7335. choke me
  7336. #endif
  7337. int
  7338. main ()
  7339. {
  7340. return $ac_func ();
  7341. ;
  7342. return 0;
  7343. }
  7344. _ACEOF
  7345. rm -f conftest.$ac_objext conftest$ac_exeext
  7346. if { (ac_try="$ac_link"
  7347. case "(($ac_try" in
  7348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349. *) ac_try_echo=$ac_try;;
  7350. esac
  7351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7352. $as_echo "$ac_try_echo") >&5
  7353. (eval "$ac_link") 2>conftest.er1
  7354. ac_status=$?
  7355. grep -v '^ *+' conftest.er1 >conftest.err
  7356. rm -f conftest.er1
  7357. cat conftest.err >&5
  7358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7359. (exit $ac_status); } && {
  7360. test -z "$ac_cxx_werror_flag" ||
  7361. test ! -s conftest.err
  7362. } && test -s conftest$ac_exeext && {
  7363. test "$cross_compiling" = yes ||
  7364. $as_test_x conftest$ac_exeext
  7365. }; then
  7366. eval "$as_ac_var=yes"
  7367. else
  7368. $as_echo "$as_me: failed program was:" >&5
  7369. sed 's/^/| /' conftest.$ac_ext >&5
  7370. eval "$as_ac_var=no"
  7371. fi
  7372. rm -rf conftest.dSYM
  7373. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7374. conftest$ac_exeext conftest.$ac_ext
  7375. fi
  7376. ac_res=`eval 'as_val=${'$as_ac_var'}
  7377. $as_echo "$as_val"'`
  7378. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7379. $as_echo "$ac_res" >&6; }
  7380. as_val=`eval 'as_val=${'$as_ac_var'}
  7381. $as_echo "$as_val"'`
  7382. if test "x$as_val" = x""yes; then
  7383. cat >>confdefs.h <<_ACEOF
  7384. #define CRAY_STACKSEG_END $ac_func
  7385. _ACEOF
  7386. break
  7387. fi
  7388. done
  7389. fi
  7390. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7391. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7392. if test "${ac_cv_c_stack_direction+set}" = set; then
  7393. $as_echo_n "(cached) " >&6
  7394. else
  7395. if test "$cross_compiling" = yes; then
  7396. ac_cv_c_stack_direction=0
  7397. else
  7398. cat >conftest.$ac_ext <<_ACEOF
  7399. /* confdefs.h. */
  7400. _ACEOF
  7401. cat confdefs.h >>conftest.$ac_ext
  7402. cat >>conftest.$ac_ext <<_ACEOF
  7403. /* end confdefs.h. */
  7404. $ac_includes_default
  7405. int
  7406. find_stack_direction ()
  7407. {
  7408. static char *addr = 0;
  7409. auto char dummy;
  7410. if (addr == 0)
  7411. {
  7412. addr = &dummy;
  7413. return find_stack_direction ();
  7414. }
  7415. else
  7416. return (&dummy > addr) ? 1 : -1;
  7417. }
  7418. int
  7419. main ()
  7420. {
  7421. return find_stack_direction () < 0;
  7422. }
  7423. _ACEOF
  7424. rm -f conftest$ac_exeext
  7425. if { (ac_try="$ac_link"
  7426. case "(($ac_try" in
  7427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7428. *) ac_try_echo=$ac_try;;
  7429. esac
  7430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7431. $as_echo "$ac_try_echo") >&5
  7432. (eval "$ac_link") 2>&5
  7433. ac_status=$?
  7434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7436. { (case "(($ac_try" in
  7437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7438. *) ac_try_echo=$ac_try;;
  7439. esac
  7440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7441. $as_echo "$ac_try_echo") >&5
  7442. (eval "$ac_try") 2>&5
  7443. ac_status=$?
  7444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. (exit $ac_status); }; }; then
  7446. ac_cv_c_stack_direction=1
  7447. else
  7448. $as_echo "$as_me: program exited with status $ac_status" >&5
  7449. $as_echo "$as_me: failed program was:" >&5
  7450. sed 's/^/| /' conftest.$ac_ext >&5
  7451. ( exit $ac_status )
  7452. ac_cv_c_stack_direction=-1
  7453. fi
  7454. rm -rf conftest.dSYM
  7455. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7456. fi
  7457. fi
  7458. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7459. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7460. cat >>confdefs.h <<_ACEOF
  7461. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7462. _ACEOF
  7463. fi
  7464. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7465. $as_echo_n "checking for ANSI C header files... " >&6; }
  7466. if test "${ac_cv_header_stdc+set}" = set; then
  7467. $as_echo_n "(cached) " >&6
  7468. else
  7469. cat >conftest.$ac_ext <<_ACEOF
  7470. /* confdefs.h. */
  7471. _ACEOF
  7472. cat confdefs.h >>conftest.$ac_ext
  7473. cat >>conftest.$ac_ext <<_ACEOF
  7474. /* end confdefs.h. */
  7475. #include <stdlib.h>
  7476. #include <stdarg.h>
  7477. #include <string.h>
  7478. #include <float.h>
  7479. int
  7480. main ()
  7481. {
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. rm -f conftest.$ac_objext
  7487. if { (ac_try="$ac_compile"
  7488. case "(($ac_try" in
  7489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7490. *) ac_try_echo=$ac_try;;
  7491. esac
  7492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7493. $as_echo "$ac_try_echo") >&5
  7494. (eval "$ac_compile") 2>conftest.er1
  7495. ac_status=$?
  7496. grep -v '^ *+' conftest.er1 >conftest.err
  7497. rm -f conftest.er1
  7498. cat conftest.err >&5
  7499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. (exit $ac_status); } && {
  7501. test -z "$ac_cxx_werror_flag" ||
  7502. test ! -s conftest.err
  7503. } && test -s conftest.$ac_objext; then
  7504. ac_cv_header_stdc=yes
  7505. else
  7506. $as_echo "$as_me: failed program was:" >&5
  7507. sed 's/^/| /' conftest.$ac_ext >&5
  7508. ac_cv_header_stdc=no
  7509. fi
  7510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7511. if test $ac_cv_header_stdc = yes; then
  7512. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7513. cat >conftest.$ac_ext <<_ACEOF
  7514. /* confdefs.h. */
  7515. _ACEOF
  7516. cat confdefs.h >>conftest.$ac_ext
  7517. cat >>conftest.$ac_ext <<_ACEOF
  7518. /* end confdefs.h. */
  7519. #include <string.h>
  7520. _ACEOF
  7521. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7522. $EGREP "memchr" >/dev/null 2>&1; then
  7523. :
  7524. else
  7525. ac_cv_header_stdc=no
  7526. fi
  7527. rm -f conftest*
  7528. fi
  7529. if test $ac_cv_header_stdc = yes; then
  7530. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7531. cat >conftest.$ac_ext <<_ACEOF
  7532. /* confdefs.h. */
  7533. _ACEOF
  7534. cat confdefs.h >>conftest.$ac_ext
  7535. cat >>conftest.$ac_ext <<_ACEOF
  7536. /* end confdefs.h. */
  7537. #include <stdlib.h>
  7538. _ACEOF
  7539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7540. $EGREP "free" >/dev/null 2>&1; then
  7541. :
  7542. else
  7543. ac_cv_header_stdc=no
  7544. fi
  7545. rm -f conftest*
  7546. fi
  7547. if test $ac_cv_header_stdc = yes; then
  7548. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7549. if test "$cross_compiling" = yes; then
  7550. :
  7551. else
  7552. cat >conftest.$ac_ext <<_ACEOF
  7553. /* confdefs.h. */
  7554. _ACEOF
  7555. cat confdefs.h >>conftest.$ac_ext
  7556. cat >>conftest.$ac_ext <<_ACEOF
  7557. /* end confdefs.h. */
  7558. #include <ctype.h>
  7559. #include <stdlib.h>
  7560. #if ((' ' & 0x0FF) == 0x020)
  7561. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7562. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7563. #else
  7564. # define ISLOWER(c) \
  7565. (('a' <= (c) && (c) <= 'i') \
  7566. || ('j' <= (c) && (c) <= 'r') \
  7567. || ('s' <= (c) && (c) <= 'z'))
  7568. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7569. #endif
  7570. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7571. int
  7572. main ()
  7573. {
  7574. int i;
  7575. for (i = 0; i < 256; i++)
  7576. if (XOR (islower (i), ISLOWER (i))
  7577. || toupper (i) != TOUPPER (i))
  7578. return 2;
  7579. return 0;
  7580. }
  7581. _ACEOF
  7582. rm -f conftest$ac_exeext
  7583. if { (ac_try="$ac_link"
  7584. case "(($ac_try" in
  7585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7586. *) ac_try_echo=$ac_try;;
  7587. esac
  7588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7589. $as_echo "$ac_try_echo") >&5
  7590. (eval "$ac_link") 2>&5
  7591. ac_status=$?
  7592. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7593. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7594. { (case "(($ac_try" in
  7595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7596. *) ac_try_echo=$ac_try;;
  7597. esac
  7598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7599. $as_echo "$ac_try_echo") >&5
  7600. (eval "$ac_try") 2>&5
  7601. ac_status=$?
  7602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7603. (exit $ac_status); }; }; then
  7604. :
  7605. else
  7606. $as_echo "$as_me: program exited with status $ac_status" >&5
  7607. $as_echo "$as_me: failed program was:" >&5
  7608. sed 's/^/| /' conftest.$ac_ext >&5
  7609. ( exit $ac_status )
  7610. ac_cv_header_stdc=no
  7611. fi
  7612. rm -rf conftest.dSYM
  7613. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7614. fi
  7615. fi
  7616. fi
  7617. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7618. $as_echo "$ac_cv_header_stdc" >&6; }
  7619. if test $ac_cv_header_stdc = yes; then
  7620. cat >>confdefs.h <<\_ACEOF
  7621. #define STDC_HEADERS 1
  7622. _ACEOF
  7623. fi
  7624. case "$target" in
  7625. *mingw*)
  7626. for ac_header in winsock2.h \
  7627. ws2tcpip.h
  7628. do
  7629. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7630. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7631. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7632. $as_echo_n "checking for $ac_header... " >&6; }
  7633. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7634. $as_echo_n "(cached) " >&6
  7635. fi
  7636. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7637. $as_echo "$as_val"'`
  7638. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7639. $as_echo "$ac_res" >&6; }
  7640. else
  7641. # Is the header compilable?
  7642. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7643. $as_echo_n "checking $ac_header usability... " >&6; }
  7644. cat >conftest.$ac_ext <<_ACEOF
  7645. /* confdefs.h. */
  7646. _ACEOF
  7647. cat confdefs.h >>conftest.$ac_ext
  7648. cat >>conftest.$ac_ext <<_ACEOF
  7649. /* end confdefs.h. */
  7650. $ac_includes_default
  7651. #include <$ac_header>
  7652. _ACEOF
  7653. rm -f conftest.$ac_objext
  7654. if { (ac_try="$ac_compile"
  7655. case "(($ac_try" in
  7656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7657. *) ac_try_echo=$ac_try;;
  7658. esac
  7659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7660. $as_echo "$ac_try_echo") >&5
  7661. (eval "$ac_compile") 2>conftest.er1
  7662. ac_status=$?
  7663. grep -v '^ *+' conftest.er1 >conftest.err
  7664. rm -f conftest.er1
  7665. cat conftest.err >&5
  7666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. (exit $ac_status); } && {
  7668. test -z "$ac_cxx_werror_flag" ||
  7669. test ! -s conftest.err
  7670. } && test -s conftest.$ac_objext; then
  7671. ac_header_compiler=yes
  7672. else
  7673. $as_echo "$as_me: failed program was:" >&5
  7674. sed 's/^/| /' conftest.$ac_ext >&5
  7675. ac_header_compiler=no
  7676. fi
  7677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7678. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7679. $as_echo "$ac_header_compiler" >&6; }
  7680. # Is the header present?
  7681. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7682. $as_echo_n "checking $ac_header presence... " >&6; }
  7683. cat >conftest.$ac_ext <<_ACEOF
  7684. /* confdefs.h. */
  7685. _ACEOF
  7686. cat confdefs.h >>conftest.$ac_ext
  7687. cat >>conftest.$ac_ext <<_ACEOF
  7688. /* end confdefs.h. */
  7689. #include <$ac_header>
  7690. _ACEOF
  7691. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7692. case "(($ac_try" in
  7693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7694. *) ac_try_echo=$ac_try;;
  7695. esac
  7696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7697. $as_echo "$ac_try_echo") >&5
  7698. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7699. ac_status=$?
  7700. grep -v '^ *+' conftest.er1 >conftest.err
  7701. rm -f conftest.er1
  7702. cat conftest.err >&5
  7703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7704. (exit $ac_status); } >/dev/null && {
  7705. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7706. test ! -s conftest.err
  7707. }; then
  7708. ac_header_preproc=yes
  7709. else
  7710. $as_echo "$as_me: failed program was:" >&5
  7711. sed 's/^/| /' conftest.$ac_ext >&5
  7712. ac_header_preproc=no
  7713. fi
  7714. rm -f conftest.err conftest.$ac_ext
  7715. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7716. $as_echo "$ac_header_preproc" >&6; }
  7717. # So? What about this header?
  7718. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7719. yes:no: )
  7720. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7721. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7722. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7723. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7724. ac_header_preproc=yes
  7725. ;;
  7726. no:yes:* )
  7727. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7728. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7729. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7730. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7732. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7733. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7734. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7736. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7738. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7739. ( cat <<\_ASBOX
  7740. ## ----------------------------------------------- ##
  7741. ## Report this to t-tujikawa@users.sourceforge.net ##
  7742. ## ----------------------------------------------- ##
  7743. _ASBOX
  7744. ) | sed "s/^/$as_me: WARNING: /" >&2
  7745. ;;
  7746. esac
  7747. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7748. $as_echo_n "checking for $ac_header... " >&6; }
  7749. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7750. $as_echo_n "(cached) " >&6
  7751. else
  7752. eval "$as_ac_Header=\$ac_header_preproc"
  7753. fi
  7754. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7755. $as_echo "$as_val"'`
  7756. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7757. $as_echo "$ac_res" >&6; }
  7758. fi
  7759. as_val=`eval 'as_val=${'$as_ac_Header'}
  7760. $as_echo "$as_val"'`
  7761. if test "x$as_val" = x""yes; then
  7762. cat >>confdefs.h <<_ACEOF
  7763. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7764. _ACEOF
  7765. fi
  7766. done
  7767. ;;
  7768. esac
  7769. for ac_header in argz.h \
  7770. arpa/inet.h \
  7771. fcntl.h \
  7772. float.h \
  7773. inttypes.h \
  7774. io.h \
  7775. langinfo.h \
  7776. libintl.h \
  7777. limits.h \
  7778. locale.h \
  7779. malloc.h \
  7780. netdb.h \
  7781. netinet/in.h \
  7782. stddef.h \
  7783. stdint.h \
  7784. stdio_ext.h \
  7785. stdlib.h \
  7786. string.h \
  7787. strings.h \
  7788. sys/ioctl.h \
  7789. sys/param.h \
  7790. sys/socket.h \
  7791. sys/time.h \
  7792. termios.h \
  7793. unistd.h \
  7794. wchar.h
  7795. do
  7796. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7797. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7798. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7799. $as_echo_n "checking for $ac_header... " >&6; }
  7800. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7801. $as_echo_n "(cached) " >&6
  7802. fi
  7803. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7804. $as_echo "$as_val"'`
  7805. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7806. $as_echo "$ac_res" >&6; }
  7807. else
  7808. # Is the header compilable?
  7809. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7810. $as_echo_n "checking $ac_header usability... " >&6; }
  7811. cat >conftest.$ac_ext <<_ACEOF
  7812. /* confdefs.h. */
  7813. _ACEOF
  7814. cat confdefs.h >>conftest.$ac_ext
  7815. cat >>conftest.$ac_ext <<_ACEOF
  7816. /* end confdefs.h. */
  7817. $ac_includes_default
  7818. #include <$ac_header>
  7819. _ACEOF
  7820. rm -f conftest.$ac_objext
  7821. if { (ac_try="$ac_compile"
  7822. case "(($ac_try" in
  7823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7824. *) ac_try_echo=$ac_try;;
  7825. esac
  7826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7827. $as_echo "$ac_try_echo") >&5
  7828. (eval "$ac_compile") 2>conftest.er1
  7829. ac_status=$?
  7830. grep -v '^ *+' conftest.er1 >conftest.err
  7831. rm -f conftest.er1
  7832. cat conftest.err >&5
  7833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834. (exit $ac_status); } && {
  7835. test -z "$ac_cxx_werror_flag" ||
  7836. test ! -s conftest.err
  7837. } && test -s conftest.$ac_objext; then
  7838. ac_header_compiler=yes
  7839. else
  7840. $as_echo "$as_me: failed program was:" >&5
  7841. sed 's/^/| /' conftest.$ac_ext >&5
  7842. ac_header_compiler=no
  7843. fi
  7844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7845. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7846. $as_echo "$ac_header_compiler" >&6; }
  7847. # Is the header present?
  7848. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7849. $as_echo_n "checking $ac_header presence... " >&6; }
  7850. cat >conftest.$ac_ext <<_ACEOF
  7851. /* confdefs.h. */
  7852. _ACEOF
  7853. cat confdefs.h >>conftest.$ac_ext
  7854. cat >>conftest.$ac_ext <<_ACEOF
  7855. /* end confdefs.h. */
  7856. #include <$ac_header>
  7857. _ACEOF
  7858. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7859. case "(($ac_try" in
  7860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7861. *) ac_try_echo=$ac_try;;
  7862. esac
  7863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7864. $as_echo "$ac_try_echo") >&5
  7865. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } >/dev/null && {
  7872. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7873. test ! -s conftest.err
  7874. }; then
  7875. ac_header_preproc=yes
  7876. else
  7877. $as_echo "$as_me: failed program was:" >&5
  7878. sed 's/^/| /' conftest.$ac_ext >&5
  7879. ac_header_preproc=no
  7880. fi
  7881. rm -f conftest.err conftest.$ac_ext
  7882. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7883. $as_echo "$ac_header_preproc" >&6; }
  7884. # So? What about this header?
  7885. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7886. yes:no: )
  7887. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7888. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7889. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7890. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7891. ac_header_preproc=yes
  7892. ;;
  7893. no:yes:* )
  7894. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7895. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7896. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7897. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7898. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7899. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7900. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7901. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7902. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7903. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7904. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7905. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7906. ( cat <<\_ASBOX
  7907. ## ----------------------------------------------- ##
  7908. ## Report this to t-tujikawa@users.sourceforge.net ##
  7909. ## ----------------------------------------------- ##
  7910. _ASBOX
  7911. ) | sed "s/^/$as_me: WARNING: /" >&2
  7912. ;;
  7913. esac
  7914. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7915. $as_echo_n "checking for $ac_header... " >&6; }
  7916. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. eval "$as_ac_Header=\$ac_header_preproc"
  7920. fi
  7921. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7922. $as_echo "$as_val"'`
  7923. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7924. $as_echo "$ac_res" >&6; }
  7925. fi
  7926. as_val=`eval 'as_val=${'$as_ac_Header'}
  7927. $as_echo "$as_val"'`
  7928. if test "x$as_val" = x""yes; then
  7929. cat >>confdefs.h <<_ACEOF
  7930. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7931. _ACEOF
  7932. fi
  7933. done
  7934. # Checks for typedefs, structures, and compiler characteristics.
  7935. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7936. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7937. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7938. $as_echo_n "(cached) " >&6
  7939. else
  7940. cat >conftest.$ac_ext <<_ACEOF
  7941. /* confdefs.h. */
  7942. _ACEOF
  7943. cat confdefs.h >>conftest.$ac_ext
  7944. cat >>conftest.$ac_ext <<_ACEOF
  7945. /* end confdefs.h. */
  7946. #include <stdbool.h>
  7947. #ifndef bool
  7948. "error: bool is not defined"
  7949. #endif
  7950. #ifndef false
  7951. "error: false is not defined"
  7952. #endif
  7953. #if false
  7954. "error: false is not 0"
  7955. #endif
  7956. #ifndef true
  7957. "error: true is not defined"
  7958. #endif
  7959. #if true != 1
  7960. "error: true is not 1"
  7961. #endif
  7962. #ifndef __bool_true_false_are_defined
  7963. "error: __bool_true_false_are_defined is not defined"
  7964. #endif
  7965. struct s { _Bool s: 1; _Bool t; } s;
  7966. char a[true == 1 ? 1 : -1];
  7967. char b[false == 0 ? 1 : -1];
  7968. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7969. char d[(bool) 0.5 == true ? 1 : -1];
  7970. bool e = &s;
  7971. char f[(_Bool) 0.0 == false ? 1 : -1];
  7972. char g[true];
  7973. char h[sizeof (_Bool)];
  7974. char i[sizeof s.t];
  7975. enum { j = false, k = true, l = false * true, m = true * 256 };
  7976. /* The following fails for
  7977. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7978. _Bool n[m];
  7979. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7980. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7981. # if defined __xlc__ || defined __GNUC__
  7982. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7983. reported by James Lemley on 2005-10-05; see
  7984. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7985. This test is not quite right, since xlc is allowed to
  7986. reject this program, as the initializer for xlcbug is
  7987. not one of the forms that C requires support for.
  7988. However, doing the test right would require a runtime
  7989. test, and that would make cross-compilation harder.
  7990. Let us hope that IBM fixes the xlc bug, and also adds
  7991. support for this kind of constant expression. In the
  7992. meantime, this test will reject xlc, which is OK, since
  7993. our stdbool.h substitute should suffice. We also test
  7994. this with GCC, where it should work, to detect more
  7995. quickly whether someone messes up the test in the
  7996. future. */
  7997. char digs[] = "0123456789";
  7998. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7999. # endif
  8000. /* Catch a bug in an HP-UX C compiler. See
  8001. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  8002. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  8003. */
  8004. _Bool q = true;
  8005. _Bool *pq = &q;
  8006. int
  8007. main ()
  8008. {
  8009. *pq |= q;
  8010. *pq |= ! q;
  8011. /* Refer to every declared value, to avoid compiler optimizations. */
  8012. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  8013. + !m + !n + !o + !p + !q + !pq);
  8014. ;
  8015. return 0;
  8016. }
  8017. _ACEOF
  8018. rm -f conftest.$ac_objext
  8019. if { (ac_try="$ac_compile"
  8020. case "(($ac_try" in
  8021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8022. *) ac_try_echo=$ac_try;;
  8023. esac
  8024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8025. $as_echo "$ac_try_echo") >&5
  8026. (eval "$ac_compile") 2>conftest.er1
  8027. ac_status=$?
  8028. grep -v '^ *+' conftest.er1 >conftest.err
  8029. rm -f conftest.er1
  8030. cat conftest.err >&5
  8031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8032. (exit $ac_status); } && {
  8033. test -z "$ac_cxx_werror_flag" ||
  8034. test ! -s conftest.err
  8035. } && test -s conftest.$ac_objext; then
  8036. ac_cv_header_stdbool_h=yes
  8037. else
  8038. $as_echo "$as_me: failed program was:" >&5
  8039. sed 's/^/| /' conftest.$ac_ext >&5
  8040. ac_cv_header_stdbool_h=no
  8041. fi
  8042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8043. fi
  8044. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  8045. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  8046. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  8047. $as_echo_n "checking for _Bool... " >&6; }
  8048. if test "${ac_cv_type__Bool+set}" = set; then
  8049. $as_echo_n "(cached) " >&6
  8050. else
  8051. ac_cv_type__Bool=no
  8052. cat >conftest.$ac_ext <<_ACEOF
  8053. /* confdefs.h. */
  8054. _ACEOF
  8055. cat confdefs.h >>conftest.$ac_ext
  8056. cat >>conftest.$ac_ext <<_ACEOF
  8057. /* end confdefs.h. */
  8058. $ac_includes_default
  8059. int
  8060. main ()
  8061. {
  8062. if (sizeof (_Bool))
  8063. return 0;
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. rm -f conftest.$ac_objext
  8069. if { (ac_try="$ac_compile"
  8070. case "(($ac_try" in
  8071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8072. *) ac_try_echo=$ac_try;;
  8073. esac
  8074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8075. $as_echo "$ac_try_echo") >&5
  8076. (eval "$ac_compile") 2>conftest.er1
  8077. ac_status=$?
  8078. grep -v '^ *+' conftest.er1 >conftest.err
  8079. rm -f conftest.er1
  8080. cat conftest.err >&5
  8081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8082. (exit $ac_status); } && {
  8083. test -z "$ac_cxx_werror_flag" ||
  8084. test ! -s conftest.err
  8085. } && test -s conftest.$ac_objext; then
  8086. cat >conftest.$ac_ext <<_ACEOF
  8087. /* confdefs.h. */
  8088. _ACEOF
  8089. cat confdefs.h >>conftest.$ac_ext
  8090. cat >>conftest.$ac_ext <<_ACEOF
  8091. /* end confdefs.h. */
  8092. $ac_includes_default
  8093. int
  8094. main ()
  8095. {
  8096. if (sizeof ((_Bool)))
  8097. return 0;
  8098. ;
  8099. return 0;
  8100. }
  8101. _ACEOF
  8102. rm -f conftest.$ac_objext
  8103. if { (ac_try="$ac_compile"
  8104. case "(($ac_try" in
  8105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8106. *) ac_try_echo=$ac_try;;
  8107. esac
  8108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8109. $as_echo "$ac_try_echo") >&5
  8110. (eval "$ac_compile") 2>conftest.er1
  8111. ac_status=$?
  8112. grep -v '^ *+' conftest.er1 >conftest.err
  8113. rm -f conftest.er1
  8114. cat conftest.err >&5
  8115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); } && {
  8117. test -z "$ac_cxx_werror_flag" ||
  8118. test ! -s conftest.err
  8119. } && test -s conftest.$ac_objext; then
  8120. :
  8121. else
  8122. $as_echo "$as_me: failed program was:" >&5
  8123. sed 's/^/| /' conftest.$ac_ext >&5
  8124. ac_cv_type__Bool=yes
  8125. fi
  8126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8127. else
  8128. $as_echo "$as_me: failed program was:" >&5
  8129. sed 's/^/| /' conftest.$ac_ext >&5
  8130. fi
  8131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8132. fi
  8133. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  8134. $as_echo "$ac_cv_type__Bool" >&6; }
  8135. if test "x$ac_cv_type__Bool" = x""yes; then
  8136. cat >>confdefs.h <<_ACEOF
  8137. #define HAVE__BOOL 1
  8138. _ACEOF
  8139. fi
  8140. if test $ac_cv_header_stdbool_h = yes; then
  8141. cat >>confdefs.h <<\_ACEOF
  8142. #define HAVE_STDBOOL_H 1
  8143. _ACEOF
  8144. fi
  8145. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8146. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8147. if test "${ac_cv_c_const+set}" = set; then
  8148. $as_echo_n "(cached) " >&6
  8149. else
  8150. cat >conftest.$ac_ext <<_ACEOF
  8151. /* confdefs.h. */
  8152. _ACEOF
  8153. cat confdefs.h >>conftest.$ac_ext
  8154. cat >>conftest.$ac_ext <<_ACEOF
  8155. /* end confdefs.h. */
  8156. int
  8157. main ()
  8158. {
  8159. /* FIXME: Include the comments suggested by Paul. */
  8160. #ifndef __cplusplus
  8161. /* Ultrix mips cc rejects this. */
  8162. typedef int charset[2];
  8163. const charset cs;
  8164. /* SunOS 4.1.1 cc rejects this. */
  8165. char const *const *pcpcc;
  8166. char **ppc;
  8167. /* NEC SVR4.0.2 mips cc rejects this. */
  8168. struct point {int x, y;};
  8169. static struct point const zero = {0,0};
  8170. /* AIX XL C 1.02.0.0 rejects this.
  8171. It does not let you subtract one const X* pointer from another in
  8172. an arm of an if-expression whose if-part is not a constant
  8173. expression */
  8174. const char *g = "string";
  8175. pcpcc = &g + (g ? g-g : 0);
  8176. /* HPUX 7.0 cc rejects these. */
  8177. ++pcpcc;
  8178. ppc = (char**) pcpcc;
  8179. pcpcc = (char const *const *) ppc;
  8180. { /* SCO 3.2v4 cc rejects this. */
  8181. char *t;
  8182. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8183. *t++ = 0;
  8184. if (s) return 0;
  8185. }
  8186. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8187. int x[] = {25, 17};
  8188. const int *foo = &x[0];
  8189. ++foo;
  8190. }
  8191. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8192. typedef const int *iptr;
  8193. iptr p = 0;
  8194. ++p;
  8195. }
  8196. { /* AIX XL C 1.02.0.0 rejects this saying
  8197. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8198. struct s { int j; const int *ap[3]; };
  8199. struct s *b; b->j = 5;
  8200. }
  8201. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8202. const int foo = 10;
  8203. if (!foo) return 0;
  8204. }
  8205. return !cs[0] && !zero.x;
  8206. #endif
  8207. ;
  8208. return 0;
  8209. }
  8210. _ACEOF
  8211. rm -f conftest.$ac_objext
  8212. if { (ac_try="$ac_compile"
  8213. case "(($ac_try" in
  8214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8215. *) ac_try_echo=$ac_try;;
  8216. esac
  8217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8218. $as_echo "$ac_try_echo") >&5
  8219. (eval "$ac_compile") 2>conftest.er1
  8220. ac_status=$?
  8221. grep -v '^ *+' conftest.er1 >conftest.err
  8222. rm -f conftest.er1
  8223. cat conftest.err >&5
  8224. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8225. (exit $ac_status); } && {
  8226. test -z "$ac_cxx_werror_flag" ||
  8227. test ! -s conftest.err
  8228. } && test -s conftest.$ac_objext; then
  8229. ac_cv_c_const=yes
  8230. else
  8231. $as_echo "$as_me: failed program was:" >&5
  8232. sed 's/^/| /' conftest.$ac_ext >&5
  8233. ac_cv_c_const=no
  8234. fi
  8235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8236. fi
  8237. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8238. $as_echo "$ac_cv_c_const" >&6; }
  8239. if test $ac_cv_c_const = no; then
  8240. cat >>confdefs.h <<\_ACEOF
  8241. #define const /**/
  8242. _ACEOF
  8243. fi
  8244. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8245. $as_echo_n "checking for inline... " >&6; }
  8246. if test "${ac_cv_c_inline+set}" = set; then
  8247. $as_echo_n "(cached) " >&6
  8248. else
  8249. ac_cv_c_inline=no
  8250. for ac_kw in inline __inline__ __inline; do
  8251. cat >conftest.$ac_ext <<_ACEOF
  8252. /* confdefs.h. */
  8253. _ACEOF
  8254. cat confdefs.h >>conftest.$ac_ext
  8255. cat >>conftest.$ac_ext <<_ACEOF
  8256. /* end confdefs.h. */
  8257. #ifndef __cplusplus
  8258. typedef int foo_t;
  8259. static $ac_kw foo_t static_foo () {return 0; }
  8260. $ac_kw foo_t foo () {return 0; }
  8261. #endif
  8262. _ACEOF
  8263. rm -f conftest.$ac_objext
  8264. if { (ac_try="$ac_compile"
  8265. case "(($ac_try" in
  8266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8267. *) ac_try_echo=$ac_try;;
  8268. esac
  8269. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8270. $as_echo "$ac_try_echo") >&5
  8271. (eval "$ac_compile") 2>conftest.er1
  8272. ac_status=$?
  8273. grep -v '^ *+' conftest.er1 >conftest.err
  8274. rm -f conftest.er1
  8275. cat conftest.err >&5
  8276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8277. (exit $ac_status); } && {
  8278. test -z "$ac_cxx_werror_flag" ||
  8279. test ! -s conftest.err
  8280. } && test -s conftest.$ac_objext; then
  8281. ac_cv_c_inline=$ac_kw
  8282. else
  8283. $as_echo "$as_me: failed program was:" >&5
  8284. sed 's/^/| /' conftest.$ac_ext >&5
  8285. fi
  8286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8287. test "$ac_cv_c_inline" != no && break
  8288. done
  8289. fi
  8290. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8291. $as_echo "$ac_cv_c_inline" >&6; }
  8292. case $ac_cv_c_inline in
  8293. inline | yes) ;;
  8294. *)
  8295. case $ac_cv_c_inline in
  8296. no) ac_val=;;
  8297. *) ac_val=$ac_cv_c_inline;;
  8298. esac
  8299. cat >>confdefs.h <<_ACEOF
  8300. #ifndef __cplusplus
  8301. #define inline $ac_val
  8302. #endif
  8303. _ACEOF
  8304. ;;
  8305. esac
  8306. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8307. $as_echo_n "checking for int16_t... " >&6; }
  8308. if test "${ac_cv_c_int16_t+set}" = set; then
  8309. $as_echo_n "(cached) " >&6
  8310. else
  8311. ac_cv_c_int16_t=no
  8312. for ac_type in 'int16_t' 'int' 'long int' \
  8313. 'long long int' 'short int' 'signed char'; do
  8314. cat >conftest.$ac_ext <<_ACEOF
  8315. /* confdefs.h. */
  8316. _ACEOF
  8317. cat confdefs.h >>conftest.$ac_ext
  8318. cat >>conftest.$ac_ext <<_ACEOF
  8319. /* end confdefs.h. */
  8320. $ac_includes_default
  8321. int
  8322. main ()
  8323. {
  8324. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8325. test_array [0] = 0
  8326. ;
  8327. return 0;
  8328. }
  8329. _ACEOF
  8330. rm -f conftest.$ac_objext
  8331. if { (ac_try="$ac_compile"
  8332. case "(($ac_try" in
  8333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8334. *) ac_try_echo=$ac_try;;
  8335. esac
  8336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8337. $as_echo "$ac_try_echo") >&5
  8338. (eval "$ac_compile") 2>conftest.er1
  8339. ac_status=$?
  8340. grep -v '^ *+' conftest.er1 >conftest.err
  8341. rm -f conftest.er1
  8342. cat conftest.err >&5
  8343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344. (exit $ac_status); } && {
  8345. test -z "$ac_cxx_werror_flag" ||
  8346. test ! -s conftest.err
  8347. } && test -s conftest.$ac_objext; then
  8348. cat >conftest.$ac_ext <<_ACEOF
  8349. /* confdefs.h. */
  8350. _ACEOF
  8351. cat confdefs.h >>conftest.$ac_ext
  8352. cat >>conftest.$ac_ext <<_ACEOF
  8353. /* end confdefs.h. */
  8354. $ac_includes_default
  8355. int
  8356. main ()
  8357. {
  8358. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8359. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8360. test_array [0] = 0
  8361. ;
  8362. return 0;
  8363. }
  8364. _ACEOF
  8365. rm -f conftest.$ac_objext
  8366. if { (ac_try="$ac_compile"
  8367. case "(($ac_try" in
  8368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8369. *) ac_try_echo=$ac_try;;
  8370. esac
  8371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8372. $as_echo "$ac_try_echo") >&5
  8373. (eval "$ac_compile") 2>conftest.er1
  8374. ac_status=$?
  8375. grep -v '^ *+' conftest.er1 >conftest.err
  8376. rm -f conftest.er1
  8377. cat conftest.err >&5
  8378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8379. (exit $ac_status); } && {
  8380. test -z "$ac_cxx_werror_flag" ||
  8381. test ! -s conftest.err
  8382. } && test -s conftest.$ac_objext; then
  8383. :
  8384. else
  8385. $as_echo "$as_me: failed program was:" >&5
  8386. sed 's/^/| /' conftest.$ac_ext >&5
  8387. case $ac_type in
  8388. int16_t) ac_cv_c_int16_t=yes ;;
  8389. *) ac_cv_c_int16_t=$ac_type ;;
  8390. esac
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8393. else
  8394. $as_echo "$as_me: failed program was:" >&5
  8395. sed 's/^/| /' conftest.$ac_ext >&5
  8396. fi
  8397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8398. test "$ac_cv_c_int16_t" != no && break
  8399. done
  8400. fi
  8401. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8402. $as_echo "$ac_cv_c_int16_t" >&6; }
  8403. case $ac_cv_c_int16_t in #(
  8404. no|yes) ;; #(
  8405. *)
  8406. cat >>confdefs.h <<_ACEOF
  8407. #define int16_t $ac_cv_c_int16_t
  8408. _ACEOF
  8409. ;;
  8410. esac
  8411. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8412. $as_echo_n "checking for int32_t... " >&6; }
  8413. if test "${ac_cv_c_int32_t+set}" = set; then
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. ac_cv_c_int32_t=no
  8417. for ac_type in 'int32_t' 'int' 'long int' \
  8418. 'long long int' 'short int' 'signed char'; do
  8419. cat >conftest.$ac_ext <<_ACEOF
  8420. /* confdefs.h. */
  8421. _ACEOF
  8422. cat confdefs.h >>conftest.$ac_ext
  8423. cat >>conftest.$ac_ext <<_ACEOF
  8424. /* end confdefs.h. */
  8425. $ac_includes_default
  8426. int
  8427. main ()
  8428. {
  8429. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8430. test_array [0] = 0
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. rm -f conftest.$ac_objext
  8436. if { (ac_try="$ac_compile"
  8437. case "(($ac_try" in
  8438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8439. *) ac_try_echo=$ac_try;;
  8440. esac
  8441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8442. $as_echo "$ac_try_echo") >&5
  8443. (eval "$ac_compile") 2>conftest.er1
  8444. ac_status=$?
  8445. grep -v '^ *+' conftest.er1 >conftest.err
  8446. rm -f conftest.er1
  8447. cat conftest.err >&5
  8448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); } && {
  8450. test -z "$ac_cxx_werror_flag" ||
  8451. test ! -s conftest.err
  8452. } && test -s conftest.$ac_objext; then
  8453. cat >conftest.$ac_ext <<_ACEOF
  8454. /* confdefs.h. */
  8455. _ACEOF
  8456. cat confdefs.h >>conftest.$ac_ext
  8457. cat >>conftest.$ac_ext <<_ACEOF
  8458. /* end confdefs.h. */
  8459. $ac_includes_default
  8460. int
  8461. main ()
  8462. {
  8463. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8464. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8465. test_array [0] = 0
  8466. ;
  8467. return 0;
  8468. }
  8469. _ACEOF
  8470. rm -f conftest.$ac_objext
  8471. if { (ac_try="$ac_compile"
  8472. case "(($ac_try" in
  8473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8474. *) ac_try_echo=$ac_try;;
  8475. esac
  8476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8477. $as_echo "$ac_try_echo") >&5
  8478. (eval "$ac_compile") 2>conftest.er1
  8479. ac_status=$?
  8480. grep -v '^ *+' conftest.er1 >conftest.err
  8481. rm -f conftest.er1
  8482. cat conftest.err >&5
  8483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8484. (exit $ac_status); } && {
  8485. test -z "$ac_cxx_werror_flag" ||
  8486. test ! -s conftest.err
  8487. } && test -s conftest.$ac_objext; then
  8488. :
  8489. else
  8490. $as_echo "$as_me: failed program was:" >&5
  8491. sed 's/^/| /' conftest.$ac_ext >&5
  8492. case $ac_type in
  8493. int32_t) ac_cv_c_int32_t=yes ;;
  8494. *) ac_cv_c_int32_t=$ac_type ;;
  8495. esac
  8496. fi
  8497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8498. else
  8499. $as_echo "$as_me: failed program was:" >&5
  8500. sed 's/^/| /' conftest.$ac_ext >&5
  8501. fi
  8502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8503. test "$ac_cv_c_int32_t" != no && break
  8504. done
  8505. fi
  8506. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8507. $as_echo "$ac_cv_c_int32_t" >&6; }
  8508. case $ac_cv_c_int32_t in #(
  8509. no|yes) ;; #(
  8510. *)
  8511. cat >>confdefs.h <<_ACEOF
  8512. #define int32_t $ac_cv_c_int32_t
  8513. _ACEOF
  8514. ;;
  8515. esac
  8516. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8517. $as_echo_n "checking for int64_t... " >&6; }
  8518. if test "${ac_cv_c_int64_t+set}" = set; then
  8519. $as_echo_n "(cached) " >&6
  8520. else
  8521. ac_cv_c_int64_t=no
  8522. for ac_type in 'int64_t' 'int' 'long int' \
  8523. 'long long int' 'short int' 'signed char'; do
  8524. cat >conftest.$ac_ext <<_ACEOF
  8525. /* confdefs.h. */
  8526. _ACEOF
  8527. cat confdefs.h >>conftest.$ac_ext
  8528. cat >>conftest.$ac_ext <<_ACEOF
  8529. /* end confdefs.h. */
  8530. $ac_includes_default
  8531. int
  8532. main ()
  8533. {
  8534. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8535. test_array [0] = 0
  8536. ;
  8537. return 0;
  8538. }
  8539. _ACEOF
  8540. rm -f conftest.$ac_objext
  8541. if { (ac_try="$ac_compile"
  8542. case "(($ac_try" in
  8543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8544. *) ac_try_echo=$ac_try;;
  8545. esac
  8546. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8547. $as_echo "$ac_try_echo") >&5
  8548. (eval "$ac_compile") 2>conftest.er1
  8549. ac_status=$?
  8550. grep -v '^ *+' conftest.er1 >conftest.err
  8551. rm -f conftest.er1
  8552. cat conftest.err >&5
  8553. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8554. (exit $ac_status); } && {
  8555. test -z "$ac_cxx_werror_flag" ||
  8556. test ! -s conftest.err
  8557. } && test -s conftest.$ac_objext; then
  8558. cat >conftest.$ac_ext <<_ACEOF
  8559. /* confdefs.h. */
  8560. _ACEOF
  8561. cat confdefs.h >>conftest.$ac_ext
  8562. cat >>conftest.$ac_ext <<_ACEOF
  8563. /* end confdefs.h. */
  8564. $ac_includes_default
  8565. int
  8566. main ()
  8567. {
  8568. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8569. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8570. test_array [0] = 0
  8571. ;
  8572. return 0;
  8573. }
  8574. _ACEOF
  8575. rm -f conftest.$ac_objext
  8576. if { (ac_try="$ac_compile"
  8577. case "(($ac_try" in
  8578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8579. *) ac_try_echo=$ac_try;;
  8580. esac
  8581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8582. $as_echo "$ac_try_echo") >&5
  8583. (eval "$ac_compile") 2>conftest.er1
  8584. ac_status=$?
  8585. grep -v '^ *+' conftest.er1 >conftest.err
  8586. rm -f conftest.er1
  8587. cat conftest.err >&5
  8588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); } && {
  8590. test -z "$ac_cxx_werror_flag" ||
  8591. test ! -s conftest.err
  8592. } && test -s conftest.$ac_objext; then
  8593. :
  8594. else
  8595. $as_echo "$as_me: failed program was:" >&5
  8596. sed 's/^/| /' conftest.$ac_ext >&5
  8597. case $ac_type in
  8598. int64_t) ac_cv_c_int64_t=yes ;;
  8599. *) ac_cv_c_int64_t=$ac_type ;;
  8600. esac
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. else
  8604. $as_echo "$as_me: failed program was:" >&5
  8605. sed 's/^/| /' conftest.$ac_ext >&5
  8606. fi
  8607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8608. test "$ac_cv_c_int64_t" != no && break
  8609. done
  8610. fi
  8611. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8612. $as_echo "$ac_cv_c_int64_t" >&6; }
  8613. case $ac_cv_c_int64_t in #(
  8614. no|yes) ;; #(
  8615. *)
  8616. cat >>confdefs.h <<_ACEOF
  8617. #define int64_t $ac_cv_c_int64_t
  8618. _ACEOF
  8619. ;;
  8620. esac
  8621. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8622. $as_echo_n "checking for int8_t... " >&6; }
  8623. if test "${ac_cv_c_int8_t+set}" = set; then
  8624. $as_echo_n "(cached) " >&6
  8625. else
  8626. ac_cv_c_int8_t=no
  8627. for ac_type in 'int8_t' 'int' 'long int' \
  8628. 'long long int' 'short int' 'signed char'; do
  8629. cat >conftest.$ac_ext <<_ACEOF
  8630. /* confdefs.h. */
  8631. _ACEOF
  8632. cat confdefs.h >>conftest.$ac_ext
  8633. cat >>conftest.$ac_ext <<_ACEOF
  8634. /* end confdefs.h. */
  8635. $ac_includes_default
  8636. int
  8637. main ()
  8638. {
  8639. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8640. test_array [0] = 0
  8641. ;
  8642. return 0;
  8643. }
  8644. _ACEOF
  8645. rm -f conftest.$ac_objext
  8646. if { (ac_try="$ac_compile"
  8647. case "(($ac_try" in
  8648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8649. *) ac_try_echo=$ac_try;;
  8650. esac
  8651. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8652. $as_echo "$ac_try_echo") >&5
  8653. (eval "$ac_compile") 2>conftest.er1
  8654. ac_status=$?
  8655. grep -v '^ *+' conftest.er1 >conftest.err
  8656. rm -f conftest.er1
  8657. cat conftest.err >&5
  8658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8659. (exit $ac_status); } && {
  8660. test -z "$ac_cxx_werror_flag" ||
  8661. test ! -s conftest.err
  8662. } && test -s conftest.$ac_objext; then
  8663. cat >conftest.$ac_ext <<_ACEOF
  8664. /* confdefs.h. */
  8665. _ACEOF
  8666. cat confdefs.h >>conftest.$ac_ext
  8667. cat >>conftest.$ac_ext <<_ACEOF
  8668. /* end confdefs.h. */
  8669. $ac_includes_default
  8670. int
  8671. main ()
  8672. {
  8673. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8674. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8675. test_array [0] = 0
  8676. ;
  8677. return 0;
  8678. }
  8679. _ACEOF
  8680. rm -f conftest.$ac_objext
  8681. if { (ac_try="$ac_compile"
  8682. case "(($ac_try" in
  8683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8684. *) ac_try_echo=$ac_try;;
  8685. esac
  8686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8687. $as_echo "$ac_try_echo") >&5
  8688. (eval "$ac_compile") 2>conftest.er1
  8689. ac_status=$?
  8690. grep -v '^ *+' conftest.er1 >conftest.err
  8691. rm -f conftest.er1
  8692. cat conftest.err >&5
  8693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8694. (exit $ac_status); } && {
  8695. test -z "$ac_cxx_werror_flag" ||
  8696. test ! -s conftest.err
  8697. } && test -s conftest.$ac_objext; then
  8698. :
  8699. else
  8700. $as_echo "$as_me: failed program was:" >&5
  8701. sed 's/^/| /' conftest.$ac_ext >&5
  8702. case $ac_type in
  8703. int8_t) ac_cv_c_int8_t=yes ;;
  8704. *) ac_cv_c_int8_t=$ac_type ;;
  8705. esac
  8706. fi
  8707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8708. else
  8709. $as_echo "$as_me: failed program was:" >&5
  8710. sed 's/^/| /' conftest.$ac_ext >&5
  8711. fi
  8712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8713. test "$ac_cv_c_int8_t" != no && break
  8714. done
  8715. fi
  8716. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8717. $as_echo "$ac_cv_c_int8_t" >&6; }
  8718. case $ac_cv_c_int8_t in #(
  8719. no|yes) ;; #(
  8720. *)
  8721. cat >>confdefs.h <<_ACEOF
  8722. #define int8_t $ac_cv_c_int8_t
  8723. _ACEOF
  8724. ;;
  8725. esac
  8726. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8727. $as_echo_n "checking for mode_t... " >&6; }
  8728. if test "${ac_cv_type_mode_t+set}" = set; then
  8729. $as_echo_n "(cached) " >&6
  8730. else
  8731. ac_cv_type_mode_t=no
  8732. cat >conftest.$ac_ext <<_ACEOF
  8733. /* confdefs.h. */
  8734. _ACEOF
  8735. cat confdefs.h >>conftest.$ac_ext
  8736. cat >>conftest.$ac_ext <<_ACEOF
  8737. /* end confdefs.h. */
  8738. $ac_includes_default
  8739. int
  8740. main ()
  8741. {
  8742. if (sizeof (mode_t))
  8743. return 0;
  8744. ;
  8745. return 0;
  8746. }
  8747. _ACEOF
  8748. rm -f conftest.$ac_objext
  8749. if { (ac_try="$ac_compile"
  8750. case "(($ac_try" in
  8751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8752. *) ac_try_echo=$ac_try;;
  8753. esac
  8754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8755. $as_echo "$ac_try_echo") >&5
  8756. (eval "$ac_compile") 2>conftest.er1
  8757. ac_status=$?
  8758. grep -v '^ *+' conftest.er1 >conftest.err
  8759. rm -f conftest.er1
  8760. cat conftest.err >&5
  8761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8762. (exit $ac_status); } && {
  8763. test -z "$ac_cxx_werror_flag" ||
  8764. test ! -s conftest.err
  8765. } && test -s conftest.$ac_objext; then
  8766. cat >conftest.$ac_ext <<_ACEOF
  8767. /* confdefs.h. */
  8768. _ACEOF
  8769. cat confdefs.h >>conftest.$ac_ext
  8770. cat >>conftest.$ac_ext <<_ACEOF
  8771. /* end confdefs.h. */
  8772. $ac_includes_default
  8773. int
  8774. main ()
  8775. {
  8776. if (sizeof ((mode_t)))
  8777. return 0;
  8778. ;
  8779. return 0;
  8780. }
  8781. _ACEOF
  8782. rm -f conftest.$ac_objext
  8783. if { (ac_try="$ac_compile"
  8784. case "(($ac_try" in
  8785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8786. *) ac_try_echo=$ac_try;;
  8787. esac
  8788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8789. $as_echo "$ac_try_echo") >&5
  8790. (eval "$ac_compile") 2>conftest.er1
  8791. ac_status=$?
  8792. grep -v '^ *+' conftest.er1 >conftest.err
  8793. rm -f conftest.er1
  8794. cat conftest.err >&5
  8795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8796. (exit $ac_status); } && {
  8797. test -z "$ac_cxx_werror_flag" ||
  8798. test ! -s conftest.err
  8799. } && test -s conftest.$ac_objext; then
  8800. :
  8801. else
  8802. $as_echo "$as_me: failed program was:" >&5
  8803. sed 's/^/| /' conftest.$ac_ext >&5
  8804. ac_cv_type_mode_t=yes
  8805. fi
  8806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8807. else
  8808. $as_echo "$as_me: failed program was:" >&5
  8809. sed 's/^/| /' conftest.$ac_ext >&5
  8810. fi
  8811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8812. fi
  8813. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8814. $as_echo "$ac_cv_type_mode_t" >&6; }
  8815. if test "x$ac_cv_type_mode_t" = x""yes; then
  8816. :
  8817. else
  8818. cat >>confdefs.h <<_ACEOF
  8819. #define mode_t int
  8820. _ACEOF
  8821. fi
  8822. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8823. $as_echo_n "checking for off_t... " >&6; }
  8824. if test "${ac_cv_type_off_t+set}" = set; then
  8825. $as_echo_n "(cached) " >&6
  8826. else
  8827. ac_cv_type_off_t=no
  8828. cat >conftest.$ac_ext <<_ACEOF
  8829. /* confdefs.h. */
  8830. _ACEOF
  8831. cat confdefs.h >>conftest.$ac_ext
  8832. cat >>conftest.$ac_ext <<_ACEOF
  8833. /* end confdefs.h. */
  8834. $ac_includes_default
  8835. int
  8836. main ()
  8837. {
  8838. if (sizeof (off_t))
  8839. return 0;
  8840. ;
  8841. return 0;
  8842. }
  8843. _ACEOF
  8844. rm -f conftest.$ac_objext
  8845. if { (ac_try="$ac_compile"
  8846. case "(($ac_try" in
  8847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8848. *) ac_try_echo=$ac_try;;
  8849. esac
  8850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8851. $as_echo "$ac_try_echo") >&5
  8852. (eval "$ac_compile") 2>conftest.er1
  8853. ac_status=$?
  8854. grep -v '^ *+' conftest.er1 >conftest.err
  8855. rm -f conftest.er1
  8856. cat conftest.err >&5
  8857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8858. (exit $ac_status); } && {
  8859. test -z "$ac_cxx_werror_flag" ||
  8860. test ! -s conftest.err
  8861. } && test -s conftest.$ac_objext; then
  8862. cat >conftest.$ac_ext <<_ACEOF
  8863. /* confdefs.h. */
  8864. _ACEOF
  8865. cat confdefs.h >>conftest.$ac_ext
  8866. cat >>conftest.$ac_ext <<_ACEOF
  8867. /* end confdefs.h. */
  8868. $ac_includes_default
  8869. int
  8870. main ()
  8871. {
  8872. if (sizeof ((off_t)))
  8873. return 0;
  8874. ;
  8875. return 0;
  8876. }
  8877. _ACEOF
  8878. rm -f conftest.$ac_objext
  8879. if { (ac_try="$ac_compile"
  8880. case "(($ac_try" in
  8881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8882. *) ac_try_echo=$ac_try;;
  8883. esac
  8884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8885. $as_echo "$ac_try_echo") >&5
  8886. (eval "$ac_compile") 2>conftest.er1
  8887. ac_status=$?
  8888. grep -v '^ *+' conftest.er1 >conftest.err
  8889. rm -f conftest.er1
  8890. cat conftest.err >&5
  8891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8892. (exit $ac_status); } && {
  8893. test -z "$ac_cxx_werror_flag" ||
  8894. test ! -s conftest.err
  8895. } && test -s conftest.$ac_objext; then
  8896. :
  8897. else
  8898. $as_echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. ac_cv_type_off_t=yes
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8903. else
  8904. $as_echo "$as_me: failed program was:" >&5
  8905. sed 's/^/| /' conftest.$ac_ext >&5
  8906. fi
  8907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8908. fi
  8909. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8910. $as_echo "$ac_cv_type_off_t" >&6; }
  8911. if test "x$ac_cv_type_off_t" = x""yes; then
  8912. :
  8913. else
  8914. cat >>confdefs.h <<_ACEOF
  8915. #define off_t long int
  8916. _ACEOF
  8917. fi
  8918. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8919. $as_echo_n "checking for size_t... " >&6; }
  8920. if test "${ac_cv_type_size_t+set}" = set; then
  8921. $as_echo_n "(cached) " >&6
  8922. else
  8923. ac_cv_type_size_t=no
  8924. cat >conftest.$ac_ext <<_ACEOF
  8925. /* confdefs.h. */
  8926. _ACEOF
  8927. cat confdefs.h >>conftest.$ac_ext
  8928. cat >>conftest.$ac_ext <<_ACEOF
  8929. /* end confdefs.h. */
  8930. $ac_includes_default
  8931. int
  8932. main ()
  8933. {
  8934. if (sizeof (size_t))
  8935. return 0;
  8936. ;
  8937. return 0;
  8938. }
  8939. _ACEOF
  8940. rm -f conftest.$ac_objext
  8941. if { (ac_try="$ac_compile"
  8942. case "(($ac_try" in
  8943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8944. *) ac_try_echo=$ac_try;;
  8945. esac
  8946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8947. $as_echo "$ac_try_echo") >&5
  8948. (eval "$ac_compile") 2>conftest.er1
  8949. ac_status=$?
  8950. grep -v '^ *+' conftest.er1 >conftest.err
  8951. rm -f conftest.er1
  8952. cat conftest.err >&5
  8953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8954. (exit $ac_status); } && {
  8955. test -z "$ac_cxx_werror_flag" ||
  8956. test ! -s conftest.err
  8957. } && test -s conftest.$ac_objext; then
  8958. cat >conftest.$ac_ext <<_ACEOF
  8959. /* confdefs.h. */
  8960. _ACEOF
  8961. cat confdefs.h >>conftest.$ac_ext
  8962. cat >>conftest.$ac_ext <<_ACEOF
  8963. /* end confdefs.h. */
  8964. $ac_includes_default
  8965. int
  8966. main ()
  8967. {
  8968. if (sizeof ((size_t)))
  8969. return 0;
  8970. ;
  8971. return 0;
  8972. }
  8973. _ACEOF
  8974. rm -f conftest.$ac_objext
  8975. if { (ac_try="$ac_compile"
  8976. case "(($ac_try" in
  8977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8978. *) ac_try_echo=$ac_try;;
  8979. esac
  8980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8981. $as_echo "$ac_try_echo") >&5
  8982. (eval "$ac_compile") 2>conftest.er1
  8983. ac_status=$?
  8984. grep -v '^ *+' conftest.er1 >conftest.err
  8985. rm -f conftest.er1
  8986. cat conftest.err >&5
  8987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8988. (exit $ac_status); } && {
  8989. test -z "$ac_cxx_werror_flag" ||
  8990. test ! -s conftest.err
  8991. } && test -s conftest.$ac_objext; then
  8992. :
  8993. else
  8994. $as_echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996. ac_cv_type_size_t=yes
  8997. fi
  8998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8999. else
  9000. $as_echo "$as_me: failed program was:" >&5
  9001. sed 's/^/| /' conftest.$ac_ext >&5
  9002. fi
  9003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9004. fi
  9005. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  9006. $as_echo "$ac_cv_type_size_t" >&6; }
  9007. if test "x$ac_cv_type_size_t" = x""yes; then
  9008. :
  9009. else
  9010. cat >>confdefs.h <<_ACEOF
  9011. #define size_t unsigned int
  9012. _ACEOF
  9013. fi
  9014. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  9015. $as_echo_n "checking for ssize_t... " >&6; }
  9016. if test "${ac_cv_type_ssize_t+set}" = set; then
  9017. $as_echo_n "(cached) " >&6
  9018. else
  9019. ac_cv_type_ssize_t=no
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. $ac_includes_default
  9027. int
  9028. main ()
  9029. {
  9030. if (sizeof (ssize_t))
  9031. return 0;
  9032. ;
  9033. return 0;
  9034. }
  9035. _ACEOF
  9036. rm -f conftest.$ac_objext
  9037. if { (ac_try="$ac_compile"
  9038. case "(($ac_try" in
  9039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9040. *) ac_try_echo=$ac_try;;
  9041. esac
  9042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9043. $as_echo "$ac_try_echo") >&5
  9044. (eval "$ac_compile") 2>conftest.er1
  9045. ac_status=$?
  9046. grep -v '^ *+' conftest.er1 >conftest.err
  9047. rm -f conftest.er1
  9048. cat conftest.err >&5
  9049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); } && {
  9051. test -z "$ac_cxx_werror_flag" ||
  9052. test ! -s conftest.err
  9053. } && test -s conftest.$ac_objext; then
  9054. cat >conftest.$ac_ext <<_ACEOF
  9055. /* confdefs.h. */
  9056. _ACEOF
  9057. cat confdefs.h >>conftest.$ac_ext
  9058. cat >>conftest.$ac_ext <<_ACEOF
  9059. /* end confdefs.h. */
  9060. $ac_includes_default
  9061. int
  9062. main ()
  9063. {
  9064. if (sizeof ((ssize_t)))
  9065. return 0;
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext
  9071. if { (ac_try="$ac_compile"
  9072. case "(($ac_try" in
  9073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9074. *) ac_try_echo=$ac_try;;
  9075. esac
  9076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9077. $as_echo "$ac_try_echo") >&5
  9078. (eval "$ac_compile") 2>conftest.er1
  9079. ac_status=$?
  9080. grep -v '^ *+' conftest.er1 >conftest.err
  9081. rm -f conftest.er1
  9082. cat conftest.err >&5
  9083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9084. (exit $ac_status); } && {
  9085. test -z "$ac_cxx_werror_flag" ||
  9086. test ! -s conftest.err
  9087. } && test -s conftest.$ac_objext; then
  9088. :
  9089. else
  9090. $as_echo "$as_me: failed program was:" >&5
  9091. sed 's/^/| /' conftest.$ac_ext >&5
  9092. ac_cv_type_ssize_t=yes
  9093. fi
  9094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9095. else
  9096. $as_echo "$as_me: failed program was:" >&5
  9097. sed 's/^/| /' conftest.$ac_ext >&5
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9100. fi
  9101. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  9102. $as_echo "$ac_cv_type_ssize_t" >&6; }
  9103. if test "x$ac_cv_type_ssize_t" = x""yes; then
  9104. :
  9105. else
  9106. cat >>confdefs.h <<_ACEOF
  9107. #define ssize_t int
  9108. _ACEOF
  9109. fi
  9110. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  9111. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  9112. if test "${ac_cv_header_time+set}" = set; then
  9113. $as_echo_n "(cached) " >&6
  9114. else
  9115. cat >conftest.$ac_ext <<_ACEOF
  9116. /* confdefs.h. */
  9117. _ACEOF
  9118. cat confdefs.h >>conftest.$ac_ext
  9119. cat >>conftest.$ac_ext <<_ACEOF
  9120. /* end confdefs.h. */
  9121. #include <sys/types.h>
  9122. #include <sys/time.h>
  9123. #include <time.h>
  9124. int
  9125. main ()
  9126. {
  9127. if ((struct tm *) 0)
  9128. return 0;
  9129. ;
  9130. return 0;
  9131. }
  9132. _ACEOF
  9133. rm -f conftest.$ac_objext
  9134. if { (ac_try="$ac_compile"
  9135. case "(($ac_try" in
  9136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9137. *) ac_try_echo=$ac_try;;
  9138. esac
  9139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9140. $as_echo "$ac_try_echo") >&5
  9141. (eval "$ac_compile") 2>conftest.er1
  9142. ac_status=$?
  9143. grep -v '^ *+' conftest.er1 >conftest.err
  9144. rm -f conftest.er1
  9145. cat conftest.err >&5
  9146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9147. (exit $ac_status); } && {
  9148. test -z "$ac_cxx_werror_flag" ||
  9149. test ! -s conftest.err
  9150. } && test -s conftest.$ac_objext; then
  9151. ac_cv_header_time=yes
  9152. else
  9153. $as_echo "$as_me: failed program was:" >&5
  9154. sed 's/^/| /' conftest.$ac_ext >&5
  9155. ac_cv_header_time=no
  9156. fi
  9157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9158. fi
  9159. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  9160. $as_echo "$ac_cv_header_time" >&6; }
  9161. if test $ac_cv_header_time = yes; then
  9162. cat >>confdefs.h <<\_ACEOF
  9163. #define TIME_WITH_SYS_TIME 1
  9164. _ACEOF
  9165. fi
  9166. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9167. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9168. if test "${ac_cv_struct_tm+set}" = set; then
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. cat >conftest.$ac_ext <<_ACEOF
  9172. /* confdefs.h. */
  9173. _ACEOF
  9174. cat confdefs.h >>conftest.$ac_ext
  9175. cat >>conftest.$ac_ext <<_ACEOF
  9176. /* end confdefs.h. */
  9177. #include <sys/types.h>
  9178. #include <time.h>
  9179. int
  9180. main ()
  9181. {
  9182. struct tm tm;
  9183. int *p = &tm.tm_sec;
  9184. return !p;
  9185. ;
  9186. return 0;
  9187. }
  9188. _ACEOF
  9189. rm -f conftest.$ac_objext
  9190. if { (ac_try="$ac_compile"
  9191. case "(($ac_try" in
  9192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9193. *) ac_try_echo=$ac_try;;
  9194. esac
  9195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9196. $as_echo "$ac_try_echo") >&5
  9197. (eval "$ac_compile") 2>conftest.er1
  9198. ac_status=$?
  9199. grep -v '^ *+' conftest.er1 >conftest.err
  9200. rm -f conftest.er1
  9201. cat conftest.err >&5
  9202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9203. (exit $ac_status); } && {
  9204. test -z "$ac_cxx_werror_flag" ||
  9205. test ! -s conftest.err
  9206. } && test -s conftest.$ac_objext; then
  9207. ac_cv_struct_tm=time.h
  9208. else
  9209. $as_echo "$as_me: failed program was:" >&5
  9210. sed 's/^/| /' conftest.$ac_ext >&5
  9211. ac_cv_struct_tm=sys/time.h
  9212. fi
  9213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9214. fi
  9215. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9216. $as_echo "$ac_cv_struct_tm" >&6; }
  9217. if test $ac_cv_struct_tm = sys/time.h; then
  9218. cat >>confdefs.h <<\_ACEOF
  9219. #define TM_IN_SYS_TIME 1
  9220. _ACEOF
  9221. fi
  9222. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  9223. $as_echo_n "checking for uint16_t... " >&6; }
  9224. if test "${ac_cv_c_uint16_t+set}" = set; then
  9225. $as_echo_n "(cached) " >&6
  9226. else
  9227. ac_cv_c_uint16_t=no
  9228. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  9229. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236. $ac_includes_default
  9237. int
  9238. main ()
  9239. {
  9240. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  9241. test_array [0] = 0
  9242. ;
  9243. return 0;
  9244. }
  9245. _ACEOF
  9246. rm -f conftest.$ac_objext
  9247. if { (ac_try="$ac_compile"
  9248. case "(($ac_try" in
  9249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9250. *) ac_try_echo=$ac_try;;
  9251. esac
  9252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9253. $as_echo "$ac_try_echo") >&5
  9254. (eval "$ac_compile") 2>conftest.er1
  9255. ac_status=$?
  9256. grep -v '^ *+' conftest.er1 >conftest.err
  9257. rm -f conftest.er1
  9258. cat conftest.err >&5
  9259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9260. (exit $ac_status); } && {
  9261. test -z "$ac_cxx_werror_flag" ||
  9262. test ! -s conftest.err
  9263. } && test -s conftest.$ac_objext; then
  9264. case $ac_type in
  9265. uint16_t) ac_cv_c_uint16_t=yes ;;
  9266. *) ac_cv_c_uint16_t=$ac_type ;;
  9267. esac
  9268. else
  9269. $as_echo "$as_me: failed program was:" >&5
  9270. sed 's/^/| /' conftest.$ac_ext >&5
  9271. fi
  9272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9273. test "$ac_cv_c_uint16_t" != no && break
  9274. done
  9275. fi
  9276. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9277. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9278. case $ac_cv_c_uint16_t in #(
  9279. no|yes) ;; #(
  9280. *)
  9281. cat >>confdefs.h <<_ACEOF
  9282. #define uint16_t $ac_cv_c_uint16_t
  9283. _ACEOF
  9284. ;;
  9285. esac
  9286. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9287. $as_echo_n "checking for uint32_t... " >&6; }
  9288. if test "${ac_cv_c_uint32_t+set}" = set; then
  9289. $as_echo_n "(cached) " >&6
  9290. else
  9291. ac_cv_c_uint32_t=no
  9292. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9293. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9294. cat >conftest.$ac_ext <<_ACEOF
  9295. /* confdefs.h. */
  9296. _ACEOF
  9297. cat confdefs.h >>conftest.$ac_ext
  9298. cat >>conftest.$ac_ext <<_ACEOF
  9299. /* end confdefs.h. */
  9300. $ac_includes_default
  9301. int
  9302. main ()
  9303. {
  9304. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9305. test_array [0] = 0
  9306. ;
  9307. return 0;
  9308. }
  9309. _ACEOF
  9310. rm -f conftest.$ac_objext
  9311. if { (ac_try="$ac_compile"
  9312. case "(($ac_try" in
  9313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9314. *) ac_try_echo=$ac_try;;
  9315. esac
  9316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9317. $as_echo "$ac_try_echo") >&5
  9318. (eval "$ac_compile") 2>conftest.er1
  9319. ac_status=$?
  9320. grep -v '^ *+' conftest.er1 >conftest.err
  9321. rm -f conftest.er1
  9322. cat conftest.err >&5
  9323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); } && {
  9325. test -z "$ac_cxx_werror_flag" ||
  9326. test ! -s conftest.err
  9327. } && test -s conftest.$ac_objext; then
  9328. case $ac_type in
  9329. uint32_t) ac_cv_c_uint32_t=yes ;;
  9330. *) ac_cv_c_uint32_t=$ac_type ;;
  9331. esac
  9332. else
  9333. $as_echo "$as_me: failed program was:" >&5
  9334. sed 's/^/| /' conftest.$ac_ext >&5
  9335. fi
  9336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9337. test "$ac_cv_c_uint32_t" != no && break
  9338. done
  9339. fi
  9340. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9341. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9342. case $ac_cv_c_uint32_t in #(
  9343. no|yes) ;; #(
  9344. *)
  9345. cat >>confdefs.h <<\_ACEOF
  9346. #define _UINT32_T 1
  9347. _ACEOF
  9348. cat >>confdefs.h <<_ACEOF
  9349. #define uint32_t $ac_cv_c_uint32_t
  9350. _ACEOF
  9351. ;;
  9352. esac
  9353. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9354. $as_echo_n "checking for uint64_t... " >&6; }
  9355. if test "${ac_cv_c_uint64_t+set}" = set; then
  9356. $as_echo_n "(cached) " >&6
  9357. else
  9358. ac_cv_c_uint64_t=no
  9359. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9360. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9361. cat >conftest.$ac_ext <<_ACEOF
  9362. /* confdefs.h. */
  9363. _ACEOF
  9364. cat confdefs.h >>conftest.$ac_ext
  9365. cat >>conftest.$ac_ext <<_ACEOF
  9366. /* end confdefs.h. */
  9367. $ac_includes_default
  9368. int
  9369. main ()
  9370. {
  9371. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9372. test_array [0] = 0
  9373. ;
  9374. return 0;
  9375. }
  9376. _ACEOF
  9377. rm -f conftest.$ac_objext
  9378. if { (ac_try="$ac_compile"
  9379. case "(($ac_try" in
  9380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9381. *) ac_try_echo=$ac_try;;
  9382. esac
  9383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9384. $as_echo "$ac_try_echo") >&5
  9385. (eval "$ac_compile") 2>conftest.er1
  9386. ac_status=$?
  9387. grep -v '^ *+' conftest.er1 >conftest.err
  9388. rm -f conftest.er1
  9389. cat conftest.err >&5
  9390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9391. (exit $ac_status); } && {
  9392. test -z "$ac_cxx_werror_flag" ||
  9393. test ! -s conftest.err
  9394. } && test -s conftest.$ac_objext; then
  9395. case $ac_type in
  9396. uint64_t) ac_cv_c_uint64_t=yes ;;
  9397. *) ac_cv_c_uint64_t=$ac_type ;;
  9398. esac
  9399. else
  9400. $as_echo "$as_me: failed program was:" >&5
  9401. sed 's/^/| /' conftest.$ac_ext >&5
  9402. fi
  9403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9404. test "$ac_cv_c_uint64_t" != no && break
  9405. done
  9406. fi
  9407. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9408. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9409. case $ac_cv_c_uint64_t in #(
  9410. no|yes) ;; #(
  9411. *)
  9412. cat >>confdefs.h <<\_ACEOF
  9413. #define _UINT64_T 1
  9414. _ACEOF
  9415. cat >>confdefs.h <<_ACEOF
  9416. #define uint64_t $ac_cv_c_uint64_t
  9417. _ACEOF
  9418. ;;
  9419. esac
  9420. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9421. $as_echo_n "checking for uint8_t... " >&6; }
  9422. if test "${ac_cv_c_uint8_t+set}" = set; then
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_cv_c_uint8_t=no
  9426. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9427. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9428. cat >conftest.$ac_ext <<_ACEOF
  9429. /* confdefs.h. */
  9430. _ACEOF
  9431. cat confdefs.h >>conftest.$ac_ext
  9432. cat >>conftest.$ac_ext <<_ACEOF
  9433. /* end confdefs.h. */
  9434. $ac_includes_default
  9435. int
  9436. main ()
  9437. {
  9438. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9439. test_array [0] = 0
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. rm -f conftest.$ac_objext
  9445. if { (ac_try="$ac_compile"
  9446. case "(($ac_try" in
  9447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9448. *) ac_try_echo=$ac_try;;
  9449. esac
  9450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9451. $as_echo "$ac_try_echo") >&5
  9452. (eval "$ac_compile") 2>conftest.er1
  9453. ac_status=$?
  9454. grep -v '^ *+' conftest.er1 >conftest.err
  9455. rm -f conftest.er1
  9456. cat conftest.err >&5
  9457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9458. (exit $ac_status); } && {
  9459. test -z "$ac_cxx_werror_flag" ||
  9460. test ! -s conftest.err
  9461. } && test -s conftest.$ac_objext; then
  9462. case $ac_type in
  9463. uint8_t) ac_cv_c_uint8_t=yes ;;
  9464. *) ac_cv_c_uint8_t=$ac_type ;;
  9465. esac
  9466. else
  9467. $as_echo "$as_me: failed program was:" >&5
  9468. sed 's/^/| /' conftest.$ac_ext >&5
  9469. fi
  9470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9471. test "$ac_cv_c_uint8_t" != no && break
  9472. done
  9473. fi
  9474. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9475. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9476. case $ac_cv_c_uint8_t in #(
  9477. no|yes) ;; #(
  9478. *)
  9479. cat >>confdefs.h <<\_ACEOF
  9480. #define _UINT8_T 1
  9481. _ACEOF
  9482. cat >>confdefs.h <<_ACEOF
  9483. #define uint8_t $ac_cv_c_uint8_t
  9484. _ACEOF
  9485. ;;
  9486. esac
  9487. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9488. $as_echo_n "checking for working volatile... " >&6; }
  9489. if test "${ac_cv_c_volatile+set}" = set; then
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. cat >conftest.$ac_ext <<_ACEOF
  9493. /* confdefs.h. */
  9494. _ACEOF
  9495. cat confdefs.h >>conftest.$ac_ext
  9496. cat >>conftest.$ac_ext <<_ACEOF
  9497. /* end confdefs.h. */
  9498. int
  9499. main ()
  9500. {
  9501. volatile int x;
  9502. int * volatile y = (int *) 0;
  9503. return !x && !y;
  9504. ;
  9505. return 0;
  9506. }
  9507. _ACEOF
  9508. rm -f conftest.$ac_objext
  9509. if { (ac_try="$ac_compile"
  9510. case "(($ac_try" in
  9511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9512. *) ac_try_echo=$ac_try;;
  9513. esac
  9514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9515. $as_echo "$ac_try_echo") >&5
  9516. (eval "$ac_compile") 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } && {
  9523. test -z "$ac_cxx_werror_flag" ||
  9524. test ! -s conftest.err
  9525. } && test -s conftest.$ac_objext; then
  9526. ac_cv_c_volatile=yes
  9527. else
  9528. $as_echo "$as_me: failed program was:" >&5
  9529. sed 's/^/| /' conftest.$ac_ext >&5
  9530. ac_cv_c_volatile=no
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9533. fi
  9534. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9535. $as_echo "$ac_cv_c_volatile" >&6; }
  9536. if test $ac_cv_c_volatile = no; then
  9537. cat >>confdefs.h <<\_ACEOF
  9538. #define volatile /**/
  9539. _ACEOF
  9540. fi
  9541. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9542. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9543. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. ac_cv_type_ptrdiff_t=no
  9547. cat >conftest.$ac_ext <<_ACEOF
  9548. /* confdefs.h. */
  9549. _ACEOF
  9550. cat confdefs.h >>conftest.$ac_ext
  9551. cat >>conftest.$ac_ext <<_ACEOF
  9552. /* end confdefs.h. */
  9553. $ac_includes_default
  9554. int
  9555. main ()
  9556. {
  9557. if (sizeof (ptrdiff_t))
  9558. return 0;
  9559. ;
  9560. return 0;
  9561. }
  9562. _ACEOF
  9563. rm -f conftest.$ac_objext
  9564. if { (ac_try="$ac_compile"
  9565. case "(($ac_try" in
  9566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9567. *) ac_try_echo=$ac_try;;
  9568. esac
  9569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9570. $as_echo "$ac_try_echo") >&5
  9571. (eval "$ac_compile") 2>conftest.er1
  9572. ac_status=$?
  9573. grep -v '^ *+' conftest.er1 >conftest.err
  9574. rm -f conftest.er1
  9575. cat conftest.err >&5
  9576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9577. (exit $ac_status); } && {
  9578. test -z "$ac_cxx_werror_flag" ||
  9579. test ! -s conftest.err
  9580. } && test -s conftest.$ac_objext; then
  9581. cat >conftest.$ac_ext <<_ACEOF
  9582. /* confdefs.h. */
  9583. _ACEOF
  9584. cat confdefs.h >>conftest.$ac_ext
  9585. cat >>conftest.$ac_ext <<_ACEOF
  9586. /* end confdefs.h. */
  9587. $ac_includes_default
  9588. int
  9589. main ()
  9590. {
  9591. if (sizeof ((ptrdiff_t)))
  9592. return 0;
  9593. ;
  9594. return 0;
  9595. }
  9596. _ACEOF
  9597. rm -f conftest.$ac_objext
  9598. if { (ac_try="$ac_compile"
  9599. case "(($ac_try" in
  9600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9601. *) ac_try_echo=$ac_try;;
  9602. esac
  9603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9604. $as_echo "$ac_try_echo") >&5
  9605. (eval "$ac_compile") 2>conftest.er1
  9606. ac_status=$?
  9607. grep -v '^ *+' conftest.er1 >conftest.err
  9608. rm -f conftest.er1
  9609. cat conftest.err >&5
  9610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); } && {
  9612. test -z "$ac_cxx_werror_flag" ||
  9613. test ! -s conftest.err
  9614. } && test -s conftest.$ac_objext; then
  9615. :
  9616. else
  9617. $as_echo "$as_me: failed program was:" >&5
  9618. sed 's/^/| /' conftest.$ac_ext >&5
  9619. ac_cv_type_ptrdiff_t=yes
  9620. fi
  9621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9622. else
  9623. $as_echo "$as_me: failed program was:" >&5
  9624. sed 's/^/| /' conftest.$ac_ext >&5
  9625. fi
  9626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9627. fi
  9628. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9629. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9630. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9631. cat >>confdefs.h <<_ACEOF
  9632. #define HAVE_PTRDIFF_T 1
  9633. _ACEOF
  9634. fi
  9635. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9636. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9637. if test "${ac_cv_c_bigendian+set}" = set; then
  9638. $as_echo_n "(cached) " >&6
  9639. else
  9640. ac_cv_c_bigendian=unknown
  9641. # See if we're dealing with a universal compiler.
  9642. cat >conftest.$ac_ext <<_ACEOF
  9643. /* confdefs.h. */
  9644. _ACEOF
  9645. cat confdefs.h >>conftest.$ac_ext
  9646. cat >>conftest.$ac_ext <<_ACEOF
  9647. /* end confdefs.h. */
  9648. #ifndef __APPLE_CC__
  9649. not a universal capable compiler
  9650. #endif
  9651. typedef int dummy;
  9652. _ACEOF
  9653. rm -f conftest.$ac_objext
  9654. if { (ac_try="$ac_compile"
  9655. case "(($ac_try" in
  9656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9657. *) ac_try_echo=$ac_try;;
  9658. esac
  9659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9660. $as_echo "$ac_try_echo") >&5
  9661. (eval "$ac_compile") 2>conftest.er1
  9662. ac_status=$?
  9663. grep -v '^ *+' conftest.er1 >conftest.err
  9664. rm -f conftest.er1
  9665. cat conftest.err >&5
  9666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9667. (exit $ac_status); } && {
  9668. test -z "$ac_cxx_werror_flag" ||
  9669. test ! -s conftest.err
  9670. } && test -s conftest.$ac_objext; then
  9671. # Check for potential -arch flags. It is not universal unless
  9672. # there are some -arch flags. Note that *ppc* also matches
  9673. # ppc64. This check is also rather less than ideal.
  9674. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9675. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9676. esac
  9677. else
  9678. $as_echo "$as_me: failed program was:" >&5
  9679. sed 's/^/| /' conftest.$ac_ext >&5
  9680. fi
  9681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9682. if test $ac_cv_c_bigendian = unknown; then
  9683. # See if sys/param.h defines the BYTE_ORDER macro.
  9684. cat >conftest.$ac_ext <<_ACEOF
  9685. /* confdefs.h. */
  9686. _ACEOF
  9687. cat confdefs.h >>conftest.$ac_ext
  9688. cat >>conftest.$ac_ext <<_ACEOF
  9689. /* end confdefs.h. */
  9690. #include <sys/types.h>
  9691. #include <sys/param.h>
  9692. int
  9693. main ()
  9694. {
  9695. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9696. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9697. && LITTLE_ENDIAN)
  9698. bogus endian macros
  9699. #endif
  9700. ;
  9701. return 0;
  9702. }
  9703. _ACEOF
  9704. rm -f conftest.$ac_objext
  9705. if { (ac_try="$ac_compile"
  9706. case "(($ac_try" in
  9707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9708. *) ac_try_echo=$ac_try;;
  9709. esac
  9710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9711. $as_echo "$ac_try_echo") >&5
  9712. (eval "$ac_compile") 2>conftest.er1
  9713. ac_status=$?
  9714. grep -v '^ *+' conftest.er1 >conftest.err
  9715. rm -f conftest.er1
  9716. cat conftest.err >&5
  9717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9718. (exit $ac_status); } && {
  9719. test -z "$ac_cxx_werror_flag" ||
  9720. test ! -s conftest.err
  9721. } && test -s conftest.$ac_objext; then
  9722. # It does; now see whether it defined to BIG_ENDIAN or not.
  9723. cat >conftest.$ac_ext <<_ACEOF
  9724. /* confdefs.h. */
  9725. _ACEOF
  9726. cat confdefs.h >>conftest.$ac_ext
  9727. cat >>conftest.$ac_ext <<_ACEOF
  9728. /* end confdefs.h. */
  9729. #include <sys/types.h>
  9730. #include <sys/param.h>
  9731. int
  9732. main ()
  9733. {
  9734. #if BYTE_ORDER != BIG_ENDIAN
  9735. not big endian
  9736. #endif
  9737. ;
  9738. return 0;
  9739. }
  9740. _ACEOF
  9741. rm -f conftest.$ac_objext
  9742. if { (ac_try="$ac_compile"
  9743. case "(($ac_try" in
  9744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9745. *) ac_try_echo=$ac_try;;
  9746. esac
  9747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9748. $as_echo "$ac_try_echo") >&5
  9749. (eval "$ac_compile") 2>conftest.er1
  9750. ac_status=$?
  9751. grep -v '^ *+' conftest.er1 >conftest.err
  9752. rm -f conftest.er1
  9753. cat conftest.err >&5
  9754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9755. (exit $ac_status); } && {
  9756. test -z "$ac_cxx_werror_flag" ||
  9757. test ! -s conftest.err
  9758. } && test -s conftest.$ac_objext; then
  9759. ac_cv_c_bigendian=yes
  9760. else
  9761. $as_echo "$as_me: failed program was:" >&5
  9762. sed 's/^/| /' conftest.$ac_ext >&5
  9763. ac_cv_c_bigendian=no
  9764. fi
  9765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9766. else
  9767. $as_echo "$as_me: failed program was:" >&5
  9768. sed 's/^/| /' conftest.$ac_ext >&5
  9769. fi
  9770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9771. fi
  9772. if test $ac_cv_c_bigendian = unknown; then
  9773. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9774. cat >conftest.$ac_ext <<_ACEOF
  9775. /* confdefs.h. */
  9776. _ACEOF
  9777. cat confdefs.h >>conftest.$ac_ext
  9778. cat >>conftest.$ac_ext <<_ACEOF
  9779. /* end confdefs.h. */
  9780. #include <limits.h>
  9781. int
  9782. main ()
  9783. {
  9784. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9785. bogus endian macros
  9786. #endif
  9787. ;
  9788. return 0;
  9789. }
  9790. _ACEOF
  9791. rm -f conftest.$ac_objext
  9792. if { (ac_try="$ac_compile"
  9793. case "(($ac_try" in
  9794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9795. *) ac_try_echo=$ac_try;;
  9796. esac
  9797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9798. $as_echo "$ac_try_echo") >&5
  9799. (eval "$ac_compile") 2>conftest.er1
  9800. ac_status=$?
  9801. grep -v '^ *+' conftest.er1 >conftest.err
  9802. rm -f conftest.er1
  9803. cat conftest.err >&5
  9804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9805. (exit $ac_status); } && {
  9806. test -z "$ac_cxx_werror_flag" ||
  9807. test ! -s conftest.err
  9808. } && test -s conftest.$ac_objext; then
  9809. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9810. cat >conftest.$ac_ext <<_ACEOF
  9811. /* confdefs.h. */
  9812. _ACEOF
  9813. cat confdefs.h >>conftest.$ac_ext
  9814. cat >>conftest.$ac_ext <<_ACEOF
  9815. /* end confdefs.h. */
  9816. #include <limits.h>
  9817. int
  9818. main ()
  9819. {
  9820. #ifndef _BIG_ENDIAN
  9821. not big endian
  9822. #endif
  9823. ;
  9824. return 0;
  9825. }
  9826. _ACEOF
  9827. rm -f conftest.$ac_objext
  9828. if { (ac_try="$ac_compile"
  9829. case "(($ac_try" in
  9830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9831. *) ac_try_echo=$ac_try;;
  9832. esac
  9833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9834. $as_echo "$ac_try_echo") >&5
  9835. (eval "$ac_compile") 2>conftest.er1
  9836. ac_status=$?
  9837. grep -v '^ *+' conftest.er1 >conftest.err
  9838. rm -f conftest.er1
  9839. cat conftest.err >&5
  9840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9841. (exit $ac_status); } && {
  9842. test -z "$ac_cxx_werror_flag" ||
  9843. test ! -s conftest.err
  9844. } && test -s conftest.$ac_objext; then
  9845. ac_cv_c_bigendian=yes
  9846. else
  9847. $as_echo "$as_me: failed program was:" >&5
  9848. sed 's/^/| /' conftest.$ac_ext >&5
  9849. ac_cv_c_bigendian=no
  9850. fi
  9851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9852. else
  9853. $as_echo "$as_me: failed program was:" >&5
  9854. sed 's/^/| /' conftest.$ac_ext >&5
  9855. fi
  9856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9857. fi
  9858. if test $ac_cv_c_bigendian = unknown; then
  9859. # Compile a test program.
  9860. if test "$cross_compiling" = yes; then
  9861. # Try to guess by grepping values from an object file.
  9862. cat >conftest.$ac_ext <<_ACEOF
  9863. /* confdefs.h. */
  9864. _ACEOF
  9865. cat confdefs.h >>conftest.$ac_ext
  9866. cat >>conftest.$ac_ext <<_ACEOF
  9867. /* end confdefs.h. */
  9868. short int ascii_mm[] =
  9869. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9870. short int ascii_ii[] =
  9871. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9872. int use_ascii (int i) {
  9873. return ascii_mm[i] + ascii_ii[i];
  9874. }
  9875. short int ebcdic_ii[] =
  9876. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9877. short int ebcdic_mm[] =
  9878. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9879. int use_ebcdic (int i) {
  9880. return ebcdic_mm[i] + ebcdic_ii[i];
  9881. }
  9882. extern int foo;
  9883. int
  9884. main ()
  9885. {
  9886. return use_ascii (foo) == use_ebcdic (foo);
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. rm -f conftest.$ac_objext
  9892. if { (ac_try="$ac_compile"
  9893. case "(($ac_try" in
  9894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9895. *) ac_try_echo=$ac_try;;
  9896. esac
  9897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9898. $as_echo "$ac_try_echo") >&5
  9899. (eval "$ac_compile") 2>conftest.er1
  9900. ac_status=$?
  9901. grep -v '^ *+' conftest.er1 >conftest.err
  9902. rm -f conftest.er1
  9903. cat conftest.err >&5
  9904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905. (exit $ac_status); } && {
  9906. test -z "$ac_cxx_werror_flag" ||
  9907. test ! -s conftest.err
  9908. } && test -s conftest.$ac_objext; then
  9909. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9910. ac_cv_c_bigendian=yes
  9911. fi
  9912. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9913. if test "$ac_cv_c_bigendian" = unknown; then
  9914. ac_cv_c_bigendian=no
  9915. else
  9916. # finding both strings is unlikely to happen, but who knows?
  9917. ac_cv_c_bigendian=unknown
  9918. fi
  9919. fi
  9920. else
  9921. $as_echo "$as_me: failed program was:" >&5
  9922. sed 's/^/| /' conftest.$ac_ext >&5
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9925. else
  9926. cat >conftest.$ac_ext <<_ACEOF
  9927. /* confdefs.h. */
  9928. _ACEOF
  9929. cat confdefs.h >>conftest.$ac_ext
  9930. cat >>conftest.$ac_ext <<_ACEOF
  9931. /* end confdefs.h. */
  9932. $ac_includes_default
  9933. int
  9934. main ()
  9935. {
  9936. /* Are we little or big endian? From Harbison&Steele. */
  9937. union
  9938. {
  9939. long int l;
  9940. char c[sizeof (long int)];
  9941. } u;
  9942. u.l = 1;
  9943. return u.c[sizeof (long int) - 1] == 1;
  9944. ;
  9945. return 0;
  9946. }
  9947. _ACEOF
  9948. rm -f conftest$ac_exeext
  9949. if { (ac_try="$ac_link"
  9950. case "(($ac_try" in
  9951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9952. *) ac_try_echo=$ac_try;;
  9953. esac
  9954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9955. $as_echo "$ac_try_echo") >&5
  9956. (eval "$ac_link") 2>&5
  9957. ac_status=$?
  9958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9959. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9960. { (case "(($ac_try" in
  9961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9962. *) ac_try_echo=$ac_try;;
  9963. esac
  9964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9965. $as_echo "$ac_try_echo") >&5
  9966. (eval "$ac_try") 2>&5
  9967. ac_status=$?
  9968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9969. (exit $ac_status); }; }; then
  9970. ac_cv_c_bigendian=no
  9971. else
  9972. $as_echo "$as_me: program exited with status $ac_status" >&5
  9973. $as_echo "$as_me: failed program was:" >&5
  9974. sed 's/^/| /' conftest.$ac_ext >&5
  9975. ( exit $ac_status )
  9976. ac_cv_c_bigendian=yes
  9977. fi
  9978. rm -rf conftest.dSYM
  9979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9980. fi
  9981. fi
  9982. fi
  9983. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9984. $as_echo "$ac_cv_c_bigendian" >&6; }
  9985. case $ac_cv_c_bigendian in #(
  9986. yes)
  9987. cat >>confdefs.h <<\_ACEOF
  9988. #define WORDS_BIGENDIAN 1
  9989. _ACEOF
  9990. ;; #(
  9991. no)
  9992. ;; #(
  9993. universal)
  9994. cat >>confdefs.h <<\_ACEOF
  9995. #define AC_APPLE_UNIVERSAL_BUILD 1
  9996. _ACEOF
  9997. ;; #(
  9998. *)
  9999. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  10000. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  10001. $as_echo "$as_me: error: unknown endianness
  10002. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  10003. { (exit 1); exit 1; }; } ;;
  10004. esac
  10005. # Check whether --enable-largefile was given.
  10006. if test "${enable_largefile+set}" = set; then
  10007. enableval=$enable_largefile;
  10008. fi
  10009. if test "$enable_largefile" != no; then
  10010. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10011. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10012. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10013. $as_echo_n "(cached) " >&6
  10014. else
  10015. ac_cv_sys_largefile_CC=no
  10016. if test "$GCC" != yes; then
  10017. ac_save_CC=$CC
  10018. while :; do
  10019. # IRIX 6.2 and later do not support large files by default,
  10020. # so use the C compiler's -n32 option if that helps.
  10021. cat >conftest.$ac_ext <<_ACEOF
  10022. /* confdefs.h. */
  10023. _ACEOF
  10024. cat confdefs.h >>conftest.$ac_ext
  10025. cat >>conftest.$ac_ext <<_ACEOF
  10026. /* end confdefs.h. */
  10027. #include <sys/types.h>
  10028. /* Check that off_t can represent 2**63 - 1 correctly.
  10029. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10030. since some C++ compilers masquerading as C compilers
  10031. incorrectly reject 9223372036854775807. */
  10032. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10033. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10034. && LARGE_OFF_T % 2147483647 == 1)
  10035. ? 1 : -1];
  10036. int
  10037. main ()
  10038. {
  10039. ;
  10040. return 0;
  10041. }
  10042. _ACEOF
  10043. rm -f conftest.$ac_objext
  10044. if { (ac_try="$ac_compile"
  10045. case "(($ac_try" in
  10046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10047. *) ac_try_echo=$ac_try;;
  10048. esac
  10049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10050. $as_echo "$ac_try_echo") >&5
  10051. (eval "$ac_compile") 2>conftest.er1
  10052. ac_status=$?
  10053. grep -v '^ *+' conftest.er1 >conftest.err
  10054. rm -f conftest.er1
  10055. cat conftest.err >&5
  10056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10057. (exit $ac_status); } && {
  10058. test -z "$ac_cxx_werror_flag" ||
  10059. test ! -s conftest.err
  10060. } && test -s conftest.$ac_objext; then
  10061. break
  10062. else
  10063. $as_echo "$as_me: failed program was:" >&5
  10064. sed 's/^/| /' conftest.$ac_ext >&5
  10065. fi
  10066. rm -f core conftest.err conftest.$ac_objext
  10067. CC="$CC -n32"
  10068. rm -f conftest.$ac_objext
  10069. if { (ac_try="$ac_compile"
  10070. case "(($ac_try" in
  10071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10072. *) ac_try_echo=$ac_try;;
  10073. esac
  10074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10075. $as_echo "$ac_try_echo") >&5
  10076. (eval "$ac_compile") 2>conftest.er1
  10077. ac_status=$?
  10078. grep -v '^ *+' conftest.er1 >conftest.err
  10079. rm -f conftest.er1
  10080. cat conftest.err >&5
  10081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); } && {
  10083. test -z "$ac_cxx_werror_flag" ||
  10084. test ! -s conftest.err
  10085. } && test -s conftest.$ac_objext; then
  10086. ac_cv_sys_largefile_CC=' -n32'; break
  10087. else
  10088. $as_echo "$as_me: failed program was:" >&5
  10089. sed 's/^/| /' conftest.$ac_ext >&5
  10090. fi
  10091. rm -f core conftest.err conftest.$ac_objext
  10092. break
  10093. done
  10094. CC=$ac_save_CC
  10095. rm -f conftest.$ac_ext
  10096. fi
  10097. fi
  10098. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10099. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10100. if test "$ac_cv_sys_largefile_CC" != no; then
  10101. CC=$CC$ac_cv_sys_largefile_CC
  10102. fi
  10103. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10104. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10105. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10106. $as_echo_n "(cached) " >&6
  10107. else
  10108. while :; do
  10109. cat >conftest.$ac_ext <<_ACEOF
  10110. /* confdefs.h. */
  10111. _ACEOF
  10112. cat confdefs.h >>conftest.$ac_ext
  10113. cat >>conftest.$ac_ext <<_ACEOF
  10114. /* end confdefs.h. */
  10115. #include <sys/types.h>
  10116. /* Check that off_t can represent 2**63 - 1 correctly.
  10117. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10118. since some C++ compilers masquerading as C compilers
  10119. incorrectly reject 9223372036854775807. */
  10120. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10121. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10122. && LARGE_OFF_T % 2147483647 == 1)
  10123. ? 1 : -1];
  10124. int
  10125. main ()
  10126. {
  10127. ;
  10128. return 0;
  10129. }
  10130. _ACEOF
  10131. rm -f conftest.$ac_objext
  10132. if { (ac_try="$ac_compile"
  10133. case "(($ac_try" in
  10134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10135. *) ac_try_echo=$ac_try;;
  10136. esac
  10137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10138. $as_echo "$ac_try_echo") >&5
  10139. (eval "$ac_compile") 2>conftest.er1
  10140. ac_status=$?
  10141. grep -v '^ *+' conftest.er1 >conftest.err
  10142. rm -f conftest.er1
  10143. cat conftest.err >&5
  10144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10145. (exit $ac_status); } && {
  10146. test -z "$ac_cxx_werror_flag" ||
  10147. test ! -s conftest.err
  10148. } && test -s conftest.$ac_objext; then
  10149. ac_cv_sys_file_offset_bits=no; break
  10150. else
  10151. $as_echo "$as_me: failed program was:" >&5
  10152. sed 's/^/| /' conftest.$ac_ext >&5
  10153. fi
  10154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10155. cat >conftest.$ac_ext <<_ACEOF
  10156. /* confdefs.h. */
  10157. _ACEOF
  10158. cat confdefs.h >>conftest.$ac_ext
  10159. cat >>conftest.$ac_ext <<_ACEOF
  10160. /* end confdefs.h. */
  10161. #define _FILE_OFFSET_BITS 64
  10162. #include <sys/types.h>
  10163. /* Check that off_t can represent 2**63 - 1 correctly.
  10164. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10165. since some C++ compilers masquerading as C compilers
  10166. incorrectly reject 9223372036854775807. */
  10167. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10168. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10169. && LARGE_OFF_T % 2147483647 == 1)
  10170. ? 1 : -1];
  10171. int
  10172. main ()
  10173. {
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. rm -f conftest.$ac_objext
  10179. if { (ac_try="$ac_compile"
  10180. case "(($ac_try" in
  10181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10182. *) ac_try_echo=$ac_try;;
  10183. esac
  10184. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10185. $as_echo "$ac_try_echo") >&5
  10186. (eval "$ac_compile") 2>conftest.er1
  10187. ac_status=$?
  10188. grep -v '^ *+' conftest.er1 >conftest.err
  10189. rm -f conftest.er1
  10190. cat conftest.err >&5
  10191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10192. (exit $ac_status); } && {
  10193. test -z "$ac_cxx_werror_flag" ||
  10194. test ! -s conftest.err
  10195. } && test -s conftest.$ac_objext; then
  10196. ac_cv_sys_file_offset_bits=64; break
  10197. else
  10198. $as_echo "$as_me: failed program was:" >&5
  10199. sed 's/^/| /' conftest.$ac_ext >&5
  10200. fi
  10201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10202. ac_cv_sys_file_offset_bits=unknown
  10203. break
  10204. done
  10205. fi
  10206. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10207. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10208. case $ac_cv_sys_file_offset_bits in #(
  10209. no | unknown) ;;
  10210. *)
  10211. cat >>confdefs.h <<_ACEOF
  10212. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10213. _ACEOF
  10214. ;;
  10215. esac
  10216. rm -rf conftest*
  10217. if test $ac_cv_sys_file_offset_bits = unknown; then
  10218. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10219. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10220. if test "${ac_cv_sys_large_files+set}" = set; then
  10221. $as_echo_n "(cached) " >&6
  10222. else
  10223. while :; do
  10224. cat >conftest.$ac_ext <<_ACEOF
  10225. /* confdefs.h. */
  10226. _ACEOF
  10227. cat confdefs.h >>conftest.$ac_ext
  10228. cat >>conftest.$ac_ext <<_ACEOF
  10229. /* end confdefs.h. */
  10230. #include <sys/types.h>
  10231. /* Check that off_t can represent 2**63 - 1 correctly.
  10232. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10233. since some C++ compilers masquerading as C compilers
  10234. incorrectly reject 9223372036854775807. */
  10235. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10236. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10237. && LARGE_OFF_T % 2147483647 == 1)
  10238. ? 1 : -1];
  10239. int
  10240. main ()
  10241. {
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. rm -f conftest.$ac_objext
  10247. if { (ac_try="$ac_compile"
  10248. case "(($ac_try" in
  10249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10250. *) ac_try_echo=$ac_try;;
  10251. esac
  10252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10253. $as_echo "$ac_try_echo") >&5
  10254. (eval "$ac_compile") 2>conftest.er1
  10255. ac_status=$?
  10256. grep -v '^ *+' conftest.er1 >conftest.err
  10257. rm -f conftest.er1
  10258. cat conftest.err >&5
  10259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10260. (exit $ac_status); } && {
  10261. test -z "$ac_cxx_werror_flag" ||
  10262. test ! -s conftest.err
  10263. } && test -s conftest.$ac_objext; then
  10264. ac_cv_sys_large_files=no; break
  10265. else
  10266. $as_echo "$as_me: failed program was:" >&5
  10267. sed 's/^/| /' conftest.$ac_ext >&5
  10268. fi
  10269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10270. cat >conftest.$ac_ext <<_ACEOF
  10271. /* confdefs.h. */
  10272. _ACEOF
  10273. cat confdefs.h >>conftest.$ac_ext
  10274. cat >>conftest.$ac_ext <<_ACEOF
  10275. /* end confdefs.h. */
  10276. #define _LARGE_FILES 1
  10277. #include <sys/types.h>
  10278. /* Check that off_t can represent 2**63 - 1 correctly.
  10279. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10280. since some C++ compilers masquerading as C compilers
  10281. incorrectly reject 9223372036854775807. */
  10282. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10283. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10284. && LARGE_OFF_T % 2147483647 == 1)
  10285. ? 1 : -1];
  10286. int
  10287. main ()
  10288. {
  10289. ;
  10290. return 0;
  10291. }
  10292. _ACEOF
  10293. rm -f conftest.$ac_objext
  10294. if { (ac_try="$ac_compile"
  10295. case "(($ac_try" in
  10296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10297. *) ac_try_echo=$ac_try;;
  10298. esac
  10299. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10300. $as_echo "$ac_try_echo") >&5
  10301. (eval "$ac_compile") 2>conftest.er1
  10302. ac_status=$?
  10303. grep -v '^ *+' conftest.er1 >conftest.err
  10304. rm -f conftest.er1
  10305. cat conftest.err >&5
  10306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10307. (exit $ac_status); } && {
  10308. test -z "$ac_cxx_werror_flag" ||
  10309. test ! -s conftest.err
  10310. } && test -s conftest.$ac_objext; then
  10311. ac_cv_sys_large_files=1; break
  10312. else
  10313. $as_echo "$as_me: failed program was:" >&5
  10314. sed 's/^/| /' conftest.$ac_ext >&5
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10317. ac_cv_sys_large_files=unknown
  10318. break
  10319. done
  10320. fi
  10321. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10322. $as_echo "$ac_cv_sys_large_files" >&6; }
  10323. case $ac_cv_sys_large_files in #(
  10324. no | unknown) ;;
  10325. *)
  10326. cat >>confdefs.h <<_ACEOF
  10327. #define _LARGE_FILES $ac_cv_sys_large_files
  10328. _ACEOF
  10329. ;;
  10330. esac
  10331. rm -rf conftest*
  10332. fi
  10333. fi
  10334. # Checks for library functions.
  10335. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10336. $as_echo_n "checking whether NLS is requested... " >&6; }
  10337. # Check whether --enable-nls was given.
  10338. if test "${enable_nls+set}" = set; then
  10339. enableval=$enable_nls; USE_NLS=$enableval
  10340. else
  10341. USE_NLS=yes
  10342. fi
  10343. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10344. $as_echo "$USE_NLS" >&6; }
  10345. GETTEXT_MACRO_VERSION=0.17
  10346. # Prepare PATH_SEPARATOR.
  10347. # The user is always right.
  10348. if test "${PATH_SEPARATOR+set}" != set; then
  10349. echo "#! /bin/sh" >conf$$.sh
  10350. echo "exit 0" >>conf$$.sh
  10351. chmod +x conf$$.sh
  10352. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10353. PATH_SEPARATOR=';'
  10354. else
  10355. PATH_SEPARATOR=:
  10356. fi
  10357. rm -f conf$$.sh
  10358. fi
  10359. # Find out how to test for executable files. Don't use a zero-byte file,
  10360. # as systems may use methods other than mode bits to determine executability.
  10361. cat >conf$$.file <<_ASEOF
  10362. #! /bin/sh
  10363. exit 0
  10364. _ASEOF
  10365. chmod +x conf$$.file
  10366. if test -x conf$$.file >/dev/null 2>&1; then
  10367. ac_executable_p="test -x"
  10368. else
  10369. ac_executable_p="test -f"
  10370. fi
  10371. rm -f conf$$.file
  10372. # Extract the first word of "msgfmt", so it can be a program name with args.
  10373. set dummy msgfmt; ac_word=$2
  10374. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10375. $as_echo_n "checking for $ac_word... " >&6; }
  10376. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. case "$MSGFMT" in
  10380. [\\/]* | ?:[\\/]*)
  10381. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10382. ;;
  10383. *)
  10384. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10385. for ac_dir in $PATH; do
  10386. IFS="$ac_save_IFS"
  10387. test -z "$ac_dir" && ac_dir=.
  10388. for ac_exec_ext in '' $ac_executable_extensions; do
  10389. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10390. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10391. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10392. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10393. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10394. break 2
  10395. fi
  10396. fi
  10397. done
  10398. done
  10399. IFS="$ac_save_IFS"
  10400. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10401. ;;
  10402. esac
  10403. fi
  10404. MSGFMT="$ac_cv_path_MSGFMT"
  10405. if test "$MSGFMT" != ":"; then
  10406. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10407. $as_echo "$MSGFMT" >&6; }
  10408. else
  10409. { $as_echo "$as_me:$LINENO: result: no" >&5
  10410. $as_echo "no" >&6; }
  10411. fi
  10412. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10413. set dummy gmsgfmt; ac_word=$2
  10414. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10415. $as_echo_n "checking for $ac_word... " >&6; }
  10416. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. case $GMSGFMT in
  10420. [\\/]* | ?:[\\/]*)
  10421. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10422. ;;
  10423. *)
  10424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10425. for as_dir in $PATH
  10426. do
  10427. IFS=$as_save_IFS
  10428. test -z "$as_dir" && as_dir=.
  10429. for ac_exec_ext in '' $ac_executable_extensions; do
  10430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10431. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10432. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10433. break 2
  10434. fi
  10435. done
  10436. done
  10437. IFS=$as_save_IFS
  10438. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10439. ;;
  10440. esac
  10441. fi
  10442. GMSGFMT=$ac_cv_path_GMSGFMT
  10443. if test -n "$GMSGFMT"; then
  10444. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10445. $as_echo "$GMSGFMT" >&6; }
  10446. else
  10447. { $as_echo "$as_me:$LINENO: result: no" >&5
  10448. $as_echo "no" >&6; }
  10449. fi
  10450. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10451. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10452. *) MSGFMT_015=$MSGFMT ;;
  10453. esac
  10454. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10455. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10456. *) GMSGFMT_015=$GMSGFMT ;;
  10457. esac
  10458. # Prepare PATH_SEPARATOR.
  10459. # The user is always right.
  10460. if test "${PATH_SEPARATOR+set}" != set; then
  10461. echo "#! /bin/sh" >conf$$.sh
  10462. echo "exit 0" >>conf$$.sh
  10463. chmod +x conf$$.sh
  10464. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10465. PATH_SEPARATOR=';'
  10466. else
  10467. PATH_SEPARATOR=:
  10468. fi
  10469. rm -f conf$$.sh
  10470. fi
  10471. # Find out how to test for executable files. Don't use a zero-byte file,
  10472. # as systems may use methods other than mode bits to determine executability.
  10473. cat >conf$$.file <<_ASEOF
  10474. #! /bin/sh
  10475. exit 0
  10476. _ASEOF
  10477. chmod +x conf$$.file
  10478. if test -x conf$$.file >/dev/null 2>&1; then
  10479. ac_executable_p="test -x"
  10480. else
  10481. ac_executable_p="test -f"
  10482. fi
  10483. rm -f conf$$.file
  10484. # Extract the first word of "xgettext", so it can be a program name with args.
  10485. set dummy xgettext; ac_word=$2
  10486. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10487. $as_echo_n "checking for $ac_word... " >&6; }
  10488. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. case "$XGETTEXT" in
  10492. [\\/]* | ?:[\\/]*)
  10493. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10494. ;;
  10495. *)
  10496. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10497. for ac_dir in $PATH; do
  10498. IFS="$ac_save_IFS"
  10499. test -z "$ac_dir" && ac_dir=.
  10500. for ac_exec_ext in '' $ac_executable_extensions; do
  10501. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10502. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10503. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10504. (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
  10505. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10506. break 2
  10507. fi
  10508. fi
  10509. done
  10510. done
  10511. IFS="$ac_save_IFS"
  10512. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10513. ;;
  10514. esac
  10515. fi
  10516. XGETTEXT="$ac_cv_path_XGETTEXT"
  10517. if test "$XGETTEXT" != ":"; then
  10518. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10519. $as_echo "$XGETTEXT" >&6; }
  10520. else
  10521. { $as_echo "$as_me:$LINENO: result: no" >&5
  10522. $as_echo "no" >&6; }
  10523. fi
  10524. rm -f messages.po
  10525. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10526. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10527. *) XGETTEXT_015=$XGETTEXT ;;
  10528. esac
  10529. # Prepare PATH_SEPARATOR.
  10530. # The user is always right.
  10531. if test "${PATH_SEPARATOR+set}" != set; then
  10532. echo "#! /bin/sh" >conf$$.sh
  10533. echo "exit 0" >>conf$$.sh
  10534. chmod +x conf$$.sh
  10535. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10536. PATH_SEPARATOR=';'
  10537. else
  10538. PATH_SEPARATOR=:
  10539. fi
  10540. rm -f conf$$.sh
  10541. fi
  10542. # Find out how to test for executable files. Don't use a zero-byte file,
  10543. # as systems may use methods other than mode bits to determine executability.
  10544. cat >conf$$.file <<_ASEOF
  10545. #! /bin/sh
  10546. exit 0
  10547. _ASEOF
  10548. chmod +x conf$$.file
  10549. if test -x conf$$.file >/dev/null 2>&1; then
  10550. ac_executable_p="test -x"
  10551. else
  10552. ac_executable_p="test -f"
  10553. fi
  10554. rm -f conf$$.file
  10555. # Extract the first word of "msgmerge", so it can be a program name with args.
  10556. set dummy msgmerge; ac_word=$2
  10557. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10558. $as_echo_n "checking for $ac_word... " >&6; }
  10559. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. case "$MSGMERGE" in
  10563. [\\/]* | ?:[\\/]*)
  10564. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10565. ;;
  10566. *)
  10567. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10568. for ac_dir in $PATH; do
  10569. IFS="$ac_save_IFS"
  10570. test -z "$ac_dir" && ac_dir=.
  10571. for ac_exec_ext in '' $ac_executable_extensions; do
  10572. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10573. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10574. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10575. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10576. break 2
  10577. fi
  10578. fi
  10579. done
  10580. done
  10581. IFS="$ac_save_IFS"
  10582. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10583. ;;
  10584. esac
  10585. fi
  10586. MSGMERGE="$ac_cv_path_MSGMERGE"
  10587. if test "$MSGMERGE" != ":"; then
  10588. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10589. $as_echo "$MSGMERGE" >&6; }
  10590. else
  10591. { $as_echo "$as_me:$LINENO: result: no" >&5
  10592. $as_echo "no" >&6; }
  10593. fi
  10594. test -n "$localedir" || localedir='${datadir}/locale'
  10595. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10596. ac_config_commands="$ac_config_commands po-directories"
  10597. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10598. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10599. if test "${ac_cv_gnu_library_2+set}" = set; then
  10600. $as_echo_n "(cached) " >&6
  10601. else
  10602. cat >conftest.$ac_ext <<_ACEOF
  10603. /* confdefs.h. */
  10604. _ACEOF
  10605. cat confdefs.h >>conftest.$ac_ext
  10606. cat >>conftest.$ac_ext <<_ACEOF
  10607. /* end confdefs.h. */
  10608. #include <features.h>
  10609. #ifdef __GNU_LIBRARY__
  10610. #if (__GLIBC__ >= 2)
  10611. Lucky GNU user
  10612. #endif
  10613. #endif
  10614. _ACEOF
  10615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10616. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10617. ac_cv_gnu_library_2=yes
  10618. else
  10619. ac_cv_gnu_library_2=no
  10620. fi
  10621. rm -f conftest*
  10622. fi
  10623. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10624. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10625. GLIBC2="$ac_cv_gnu_library_2"
  10626. CFLAG_VISIBILITY=
  10627. HAVE_VISIBILITY=0
  10628. if test -n "$GCC"; then
  10629. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10630. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10631. if test "${gl_cv_cc_visibility+set}" = set; then
  10632. $as_echo_n "(cached) " >&6
  10633. else
  10634. gl_save_CFLAGS="$CFLAGS"
  10635. CFLAGS="$CFLAGS -fvisibility=hidden"
  10636. cat >conftest.$ac_ext <<_ACEOF
  10637. /* confdefs.h. */
  10638. _ACEOF
  10639. cat confdefs.h >>conftest.$ac_ext
  10640. cat >>conftest.$ac_ext <<_ACEOF
  10641. /* end confdefs.h. */
  10642. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10643. extern __attribute__((__visibility__("default"))) int exportedvar;
  10644. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10645. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10646. int
  10647. main ()
  10648. {
  10649. ;
  10650. return 0;
  10651. }
  10652. _ACEOF
  10653. rm -f conftest.$ac_objext
  10654. if { (ac_try="$ac_compile"
  10655. case "(($ac_try" in
  10656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10657. *) ac_try_echo=$ac_try;;
  10658. esac
  10659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10660. $as_echo "$ac_try_echo") >&5
  10661. (eval "$ac_compile") 2>conftest.er1
  10662. ac_status=$?
  10663. grep -v '^ *+' conftest.er1 >conftest.err
  10664. rm -f conftest.er1
  10665. cat conftest.err >&5
  10666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10667. (exit $ac_status); } && {
  10668. test -z "$ac_cxx_werror_flag" ||
  10669. test ! -s conftest.err
  10670. } && test -s conftest.$ac_objext; then
  10671. gl_cv_cc_visibility=yes
  10672. else
  10673. $as_echo "$as_me: failed program was:" >&5
  10674. sed 's/^/| /' conftest.$ac_ext >&5
  10675. gl_cv_cc_visibility=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10678. CFLAGS="$gl_save_CFLAGS"
  10679. fi
  10680. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10681. $as_echo "$gl_cv_cc_visibility" >&6; }
  10682. if test $gl_cv_cc_visibility = yes; then
  10683. CFLAG_VISIBILITY="-fvisibility=hidden"
  10684. HAVE_VISIBILITY=1
  10685. fi
  10686. fi
  10687. cat >>confdefs.h <<_ACEOF
  10688. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10689. _ACEOF
  10690. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10691. $as_echo_n "checking for stdint.h... " >&6; }
  10692. if test "${gl_cv_header_stdint_h+set}" = set; then
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. cat >conftest.$ac_ext <<_ACEOF
  10696. /* confdefs.h. */
  10697. _ACEOF
  10698. cat confdefs.h >>conftest.$ac_ext
  10699. cat >>conftest.$ac_ext <<_ACEOF
  10700. /* end confdefs.h. */
  10701. #include <sys/types.h>
  10702. #include <stdint.h>
  10703. int
  10704. main ()
  10705. {
  10706. uintmax_t i = (uintmax_t) -1; return !i;
  10707. ;
  10708. return 0;
  10709. }
  10710. _ACEOF
  10711. rm -f conftest.$ac_objext
  10712. if { (ac_try="$ac_compile"
  10713. case "(($ac_try" in
  10714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10715. *) ac_try_echo=$ac_try;;
  10716. esac
  10717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10718. $as_echo "$ac_try_echo") >&5
  10719. (eval "$ac_compile") 2>conftest.er1
  10720. ac_status=$?
  10721. grep -v '^ *+' conftest.er1 >conftest.err
  10722. rm -f conftest.er1
  10723. cat conftest.err >&5
  10724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10725. (exit $ac_status); } && {
  10726. test -z "$ac_cxx_werror_flag" ||
  10727. test ! -s conftest.err
  10728. } && test -s conftest.$ac_objext; then
  10729. gl_cv_header_stdint_h=yes
  10730. else
  10731. $as_echo "$as_me: failed program was:" >&5
  10732. sed 's/^/| /' conftest.$ac_ext >&5
  10733. gl_cv_header_stdint_h=no
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10736. fi
  10737. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10738. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10739. if test $gl_cv_header_stdint_h = yes; then
  10740. cat >>confdefs.h <<_ACEOF
  10741. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10742. _ACEOF
  10743. fi
  10744. for ac_header in stdlib.h unistd.h
  10745. do
  10746. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10747. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10748. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10749. $as_echo_n "checking for $ac_header... " >&6; }
  10750. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10751. $as_echo_n "(cached) " >&6
  10752. fi
  10753. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10754. $as_echo "$as_val"'`
  10755. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10756. $as_echo "$ac_res" >&6; }
  10757. else
  10758. # Is the header compilable?
  10759. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10760. $as_echo_n "checking $ac_header usability... " >&6; }
  10761. cat >conftest.$ac_ext <<_ACEOF
  10762. /* confdefs.h. */
  10763. _ACEOF
  10764. cat confdefs.h >>conftest.$ac_ext
  10765. cat >>conftest.$ac_ext <<_ACEOF
  10766. /* end confdefs.h. */
  10767. $ac_includes_default
  10768. #include <$ac_header>
  10769. _ACEOF
  10770. rm -f conftest.$ac_objext
  10771. if { (ac_try="$ac_compile"
  10772. case "(($ac_try" in
  10773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10774. *) ac_try_echo=$ac_try;;
  10775. esac
  10776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10777. $as_echo "$ac_try_echo") >&5
  10778. (eval "$ac_compile") 2>conftest.er1
  10779. ac_status=$?
  10780. grep -v '^ *+' conftest.er1 >conftest.err
  10781. rm -f conftest.er1
  10782. cat conftest.err >&5
  10783. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10784. (exit $ac_status); } && {
  10785. test -z "$ac_cxx_werror_flag" ||
  10786. test ! -s conftest.err
  10787. } && test -s conftest.$ac_objext; then
  10788. ac_header_compiler=yes
  10789. else
  10790. $as_echo "$as_me: failed program was:" >&5
  10791. sed 's/^/| /' conftest.$ac_ext >&5
  10792. ac_header_compiler=no
  10793. fi
  10794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10795. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10796. $as_echo "$ac_header_compiler" >&6; }
  10797. # Is the header present?
  10798. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10799. $as_echo_n "checking $ac_header presence... " >&6; }
  10800. cat >conftest.$ac_ext <<_ACEOF
  10801. /* confdefs.h. */
  10802. _ACEOF
  10803. cat confdefs.h >>conftest.$ac_ext
  10804. cat >>conftest.$ac_ext <<_ACEOF
  10805. /* end confdefs.h. */
  10806. #include <$ac_header>
  10807. _ACEOF
  10808. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10809. case "(($ac_try" in
  10810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10811. *) ac_try_echo=$ac_try;;
  10812. esac
  10813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10814. $as_echo "$ac_try_echo") >&5
  10815. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10816. ac_status=$?
  10817. grep -v '^ *+' conftest.er1 >conftest.err
  10818. rm -f conftest.er1
  10819. cat conftest.err >&5
  10820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10821. (exit $ac_status); } >/dev/null && {
  10822. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10823. test ! -s conftest.err
  10824. }; then
  10825. ac_header_preproc=yes
  10826. else
  10827. $as_echo "$as_me: failed program was:" >&5
  10828. sed 's/^/| /' conftest.$ac_ext >&5
  10829. ac_header_preproc=no
  10830. fi
  10831. rm -f conftest.err conftest.$ac_ext
  10832. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10833. $as_echo "$ac_header_preproc" >&6; }
  10834. # So? What about this header?
  10835. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10836. yes:no: )
  10837. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10838. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10839. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10840. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10841. ac_header_preproc=yes
  10842. ;;
  10843. no:yes:* )
  10844. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10845. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10846. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10847. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10848. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10849. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10850. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10851. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10852. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10853. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10854. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10855. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10856. ( cat <<\_ASBOX
  10857. ## ----------------------------------------------- ##
  10858. ## Report this to t-tujikawa@users.sourceforge.net ##
  10859. ## ----------------------------------------------- ##
  10860. _ASBOX
  10861. ) | sed "s/^/$as_me: WARNING: /" >&2
  10862. ;;
  10863. esac
  10864. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10865. $as_echo_n "checking for $ac_header... " >&6; }
  10866. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10867. $as_echo_n "(cached) " >&6
  10868. else
  10869. eval "$as_ac_Header=\$ac_header_preproc"
  10870. fi
  10871. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10872. $as_echo "$as_val"'`
  10873. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10874. $as_echo "$ac_res" >&6; }
  10875. fi
  10876. as_val=`eval 'as_val=${'$as_ac_Header'}
  10877. $as_echo "$as_val"'`
  10878. if test "x$as_val" = x""yes; then
  10879. cat >>confdefs.h <<_ACEOF
  10880. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10881. _ACEOF
  10882. fi
  10883. done
  10884. for ac_func in getpagesize
  10885. do
  10886. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10887. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10888. $as_echo_n "checking for $ac_func... " >&6; }
  10889. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10890. $as_echo_n "(cached) " >&6
  10891. else
  10892. cat >conftest.$ac_ext <<_ACEOF
  10893. /* confdefs.h. */
  10894. _ACEOF
  10895. cat confdefs.h >>conftest.$ac_ext
  10896. cat >>conftest.$ac_ext <<_ACEOF
  10897. /* end confdefs.h. */
  10898. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10899. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10900. #define $ac_func innocuous_$ac_func
  10901. /* System header to define __stub macros and hopefully few prototypes,
  10902. which can conflict with char $ac_func (); below.
  10903. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10904. <limits.h> exists even on freestanding compilers. */
  10905. #ifdef __STDC__
  10906. # include <limits.h>
  10907. #else
  10908. # include <assert.h>
  10909. #endif
  10910. #undef $ac_func
  10911. /* Override any GCC internal prototype to avoid an error.
  10912. Use char because int might match the return type of a GCC
  10913. builtin and then its argument prototype would still apply. */
  10914. #ifdef __cplusplus
  10915. extern "C"
  10916. #endif
  10917. char $ac_func ();
  10918. /* The GNU C library defines this for functions which it implements
  10919. to always fail with ENOSYS. Some functions are actually named
  10920. something starting with __ and the normal name is an alias. */
  10921. #if defined __stub_$ac_func || defined __stub___$ac_func
  10922. choke me
  10923. #endif
  10924. int
  10925. main ()
  10926. {
  10927. return $ac_func ();
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. rm -f conftest.$ac_objext conftest$ac_exeext
  10933. if { (ac_try="$ac_link"
  10934. case "(($ac_try" in
  10935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10936. *) ac_try_echo=$ac_try;;
  10937. esac
  10938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10939. $as_echo "$ac_try_echo") >&5
  10940. (eval "$ac_link") 2>conftest.er1
  10941. ac_status=$?
  10942. grep -v '^ *+' conftest.er1 >conftest.err
  10943. rm -f conftest.er1
  10944. cat conftest.err >&5
  10945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10946. (exit $ac_status); } && {
  10947. test -z "$ac_cxx_werror_flag" ||
  10948. test ! -s conftest.err
  10949. } && test -s conftest$ac_exeext && {
  10950. test "$cross_compiling" = yes ||
  10951. $as_test_x conftest$ac_exeext
  10952. }; then
  10953. eval "$as_ac_var=yes"
  10954. else
  10955. $as_echo "$as_me: failed program was:" >&5
  10956. sed 's/^/| /' conftest.$ac_ext >&5
  10957. eval "$as_ac_var=no"
  10958. fi
  10959. rm -rf conftest.dSYM
  10960. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10961. conftest$ac_exeext conftest.$ac_ext
  10962. fi
  10963. ac_res=`eval 'as_val=${'$as_ac_var'}
  10964. $as_echo "$as_val"'`
  10965. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10966. $as_echo "$ac_res" >&6; }
  10967. as_val=`eval 'as_val=${'$as_ac_var'}
  10968. $as_echo "$as_val"'`
  10969. if test "x$as_val" = x""yes; then
  10970. cat >>confdefs.h <<_ACEOF
  10971. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10972. _ACEOF
  10973. fi
  10974. done
  10975. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10976. $as_echo_n "checking for working mmap... " >&6; }
  10977. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10978. $as_echo_n "(cached) " >&6
  10979. else
  10980. if test "$cross_compiling" = yes; then
  10981. ac_cv_func_mmap_fixed_mapped=no
  10982. else
  10983. cat >conftest.$ac_ext <<_ACEOF
  10984. /* confdefs.h. */
  10985. _ACEOF
  10986. cat confdefs.h >>conftest.$ac_ext
  10987. cat >>conftest.$ac_ext <<_ACEOF
  10988. /* end confdefs.h. */
  10989. $ac_includes_default
  10990. /* malloc might have been renamed as rpl_malloc. */
  10991. #undef malloc
  10992. /* Thanks to Mike Haertel and Jim Avera for this test.
  10993. Here is a matrix of mmap possibilities:
  10994. mmap private not fixed
  10995. mmap private fixed at somewhere currently unmapped
  10996. mmap private fixed at somewhere already mapped
  10997. mmap shared not fixed
  10998. mmap shared fixed at somewhere currently unmapped
  10999. mmap shared fixed at somewhere already mapped
  11000. For private mappings, we should verify that changes cannot be read()
  11001. back from the file, nor mmap's back from the file at a different
  11002. address. (There have been systems where private was not correctly
  11003. implemented like the infamous i386 svr4.0, and systems where the
  11004. VM page cache was not coherent with the file system buffer cache
  11005. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11006. For shared mappings, we should conversely verify that changes get
  11007. propagated back to all the places they're supposed to be.
  11008. Grep wants private fixed already mapped.
  11009. The main things grep needs to know about mmap are:
  11010. * does it exist and is it safe to write into the mmap'd area
  11011. * how to use it (BSD variants) */
  11012. #include <fcntl.h>
  11013. #include <sys/mman.h>
  11014. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11015. char *malloc ();
  11016. #endif
  11017. /* This mess was copied from the GNU getpagesize.h. */
  11018. #ifndef HAVE_GETPAGESIZE
  11019. /* Assume that all systems that can run configure have sys/param.h. */
  11020. # ifndef HAVE_SYS_PARAM_H
  11021. # define HAVE_SYS_PARAM_H 1
  11022. # endif
  11023. # ifdef _SC_PAGESIZE
  11024. # define getpagesize() sysconf(_SC_PAGESIZE)
  11025. # else /* no _SC_PAGESIZE */
  11026. # ifdef HAVE_SYS_PARAM_H
  11027. # include <sys/param.h>
  11028. # ifdef EXEC_PAGESIZE
  11029. # define getpagesize() EXEC_PAGESIZE
  11030. # else /* no EXEC_PAGESIZE */
  11031. # ifdef NBPG
  11032. # define getpagesize() NBPG * CLSIZE
  11033. # ifndef CLSIZE
  11034. # define CLSIZE 1
  11035. # endif /* no CLSIZE */
  11036. # else /* no NBPG */
  11037. # ifdef NBPC
  11038. # define getpagesize() NBPC
  11039. # else /* no NBPC */
  11040. # ifdef PAGESIZE
  11041. # define getpagesize() PAGESIZE
  11042. # endif /* PAGESIZE */
  11043. # endif /* no NBPC */
  11044. # endif /* no NBPG */
  11045. # endif /* no EXEC_PAGESIZE */
  11046. # else /* no HAVE_SYS_PARAM_H */
  11047. # define getpagesize() 8192 /* punt totally */
  11048. # endif /* no HAVE_SYS_PARAM_H */
  11049. # endif /* no _SC_PAGESIZE */
  11050. #endif /* no HAVE_GETPAGESIZE */
  11051. int
  11052. main ()
  11053. {
  11054. char *data, *data2, *data3;
  11055. int i, pagesize;
  11056. int fd;
  11057. pagesize = getpagesize ();
  11058. /* First, make a file with some known garbage in it. */
  11059. data = (char *) malloc (pagesize);
  11060. if (!data)
  11061. return 1;
  11062. for (i = 0; i < pagesize; ++i)
  11063. *(data + i) = rand ();
  11064. umask (0);
  11065. fd = creat ("conftest.mmap", 0600);
  11066. if (fd < 0)
  11067. return 1;
  11068. if (write (fd, data, pagesize) != pagesize)
  11069. return 1;
  11070. close (fd);
  11071. /* Next, try to mmap the file at a fixed address which already has
  11072. something else allocated at it. If we can, also make sure that
  11073. we see the same garbage. */
  11074. fd = open ("conftest.mmap", O_RDWR);
  11075. if (fd < 0)
  11076. return 1;
  11077. data2 = (char *) malloc (2 * pagesize);
  11078. if (!data2)
  11079. return 1;
  11080. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  11081. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11082. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11083. return 1;
  11084. for (i = 0; i < pagesize; ++i)
  11085. if (*(data + i) != *(data2 + i))
  11086. return 1;
  11087. /* Finally, make sure that changes to the mapped area do not
  11088. percolate back to the file as seen by read(). (This is a bug on
  11089. some variants of i386 svr4.0.) */
  11090. for (i = 0; i < pagesize; ++i)
  11091. *(data2 + i) = *(data2 + i) + 1;
  11092. data3 = (char *) malloc (pagesize);
  11093. if (!data3)
  11094. return 1;
  11095. if (read (fd, data3, pagesize) != pagesize)
  11096. return 1;
  11097. for (i = 0; i < pagesize; ++i)
  11098. if (*(data + i) != *(data3 + i))
  11099. return 1;
  11100. close (fd);
  11101. return 0;
  11102. }
  11103. _ACEOF
  11104. rm -f conftest$ac_exeext
  11105. if { (ac_try="$ac_link"
  11106. case "(($ac_try" in
  11107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11108. *) ac_try_echo=$ac_try;;
  11109. esac
  11110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11111. $as_echo "$ac_try_echo") >&5
  11112. (eval "$ac_link") 2>&5
  11113. ac_status=$?
  11114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11115. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11116. { (case "(($ac_try" in
  11117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11118. *) ac_try_echo=$ac_try;;
  11119. esac
  11120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11121. $as_echo "$ac_try_echo") >&5
  11122. (eval "$ac_try") 2>&5
  11123. ac_status=$?
  11124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11125. (exit $ac_status); }; }; then
  11126. ac_cv_func_mmap_fixed_mapped=yes
  11127. else
  11128. $as_echo "$as_me: program exited with status $ac_status" >&5
  11129. $as_echo "$as_me: failed program was:" >&5
  11130. sed 's/^/| /' conftest.$ac_ext >&5
  11131. ( exit $ac_status )
  11132. ac_cv_func_mmap_fixed_mapped=no
  11133. fi
  11134. rm -rf conftest.dSYM
  11135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11136. fi
  11137. fi
  11138. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11139. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11140. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11141. cat >>confdefs.h <<\_ACEOF
  11142. #define HAVE_MMAP 1
  11143. _ACEOF
  11144. fi
  11145. rm -f conftest.mmap
  11146. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  11147. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  11148. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  11149. $as_echo_n "(cached) " >&6
  11150. else
  11151. gt_cv_int_divbyzero_sigfpe=
  11152. case "$host_os" in
  11153. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  11154. # On MacOS X 10.2 or newer, just assume the same as when cross-
  11155. # compiling. If we were to perform the real test, 1 Crash Report
  11156. # dialog window would pop up.
  11157. case "$host_cpu" in
  11158. i[34567]86 | x86_64)
  11159. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  11160. esac
  11161. ;;
  11162. esac
  11163. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  11164. if test "$cross_compiling" = yes; then
  11165. # Guess based on the CPU.
  11166. case "$host_cpu" in
  11167. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  11168. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  11169. *)
  11170. gt_cv_int_divbyzero_sigfpe="guessing no";;
  11171. esac
  11172. else
  11173. cat >conftest.$ac_ext <<_ACEOF
  11174. /* confdefs.h. */
  11175. _ACEOF
  11176. cat confdefs.h >>conftest.$ac_ext
  11177. cat >>conftest.$ac_ext <<_ACEOF
  11178. /* end confdefs.h. */
  11179. #include <stdlib.h>
  11180. #include <signal.h>
  11181. static void
  11182. sigfpe_handler (int sig)
  11183. {
  11184. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  11185. exit (sig != SIGFPE);
  11186. }
  11187. int x = 1;
  11188. int y = 0;
  11189. int z;
  11190. int nan;
  11191. int main ()
  11192. {
  11193. signal (SIGFPE, sigfpe_handler);
  11194. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  11195. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  11196. signal (SIGTRAP, sigfpe_handler);
  11197. #endif
  11198. /* Linux/SPARC yields signal SIGILL. */
  11199. #if defined (__sparc__) && defined (__linux__)
  11200. signal (SIGILL, sigfpe_handler);
  11201. #endif
  11202. z = x / y;
  11203. nan = y / y;
  11204. exit (1);
  11205. }
  11206. _ACEOF
  11207. rm -f conftest$ac_exeext
  11208. if { (ac_try="$ac_link"
  11209. case "(($ac_try" in
  11210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11211. *) ac_try_echo=$ac_try;;
  11212. esac
  11213. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11214. $as_echo "$ac_try_echo") >&5
  11215. (eval "$ac_link") 2>&5
  11216. ac_status=$?
  11217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11218. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11219. { (case "(($ac_try" in
  11220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11221. *) ac_try_echo=$ac_try;;
  11222. esac
  11223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11224. $as_echo "$ac_try_echo") >&5
  11225. (eval "$ac_try") 2>&5
  11226. ac_status=$?
  11227. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11228. (exit $ac_status); }; }; then
  11229. gt_cv_int_divbyzero_sigfpe=yes
  11230. else
  11231. $as_echo "$as_me: program exited with status $ac_status" >&5
  11232. $as_echo "$as_me: failed program was:" >&5
  11233. sed 's/^/| /' conftest.$ac_ext >&5
  11234. ( exit $ac_status )
  11235. gt_cv_int_divbyzero_sigfpe=no
  11236. fi
  11237. rm -rf conftest.dSYM
  11238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11239. fi
  11240. fi
  11241. fi
  11242. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  11243. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  11244. case "$gt_cv_int_divbyzero_sigfpe" in
  11245. *yes) value=1;;
  11246. *) value=0;;
  11247. esac
  11248. cat >>confdefs.h <<_ACEOF
  11249. #define INTDIV0_RAISES_SIGFPE $value
  11250. _ACEOF
  11251. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11252. $as_echo_n "checking for inttypes.h... " >&6; }
  11253. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11254. $as_echo_n "(cached) " >&6
  11255. else
  11256. cat >conftest.$ac_ext <<_ACEOF
  11257. /* confdefs.h. */
  11258. _ACEOF
  11259. cat confdefs.h >>conftest.$ac_ext
  11260. cat >>conftest.$ac_ext <<_ACEOF
  11261. /* end confdefs.h. */
  11262. #include <sys/types.h>
  11263. #include <inttypes.h>
  11264. int
  11265. main ()
  11266. {
  11267. uintmax_t i = (uintmax_t) -1; return !i;
  11268. ;
  11269. return 0;
  11270. }
  11271. _ACEOF
  11272. rm -f conftest.$ac_objext
  11273. if { (ac_try="$ac_compile"
  11274. case "(($ac_try" in
  11275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11276. *) ac_try_echo=$ac_try;;
  11277. esac
  11278. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11279. $as_echo "$ac_try_echo") >&5
  11280. (eval "$ac_compile") 2>conftest.er1
  11281. ac_status=$?
  11282. grep -v '^ *+' conftest.er1 >conftest.err
  11283. rm -f conftest.er1
  11284. cat conftest.err >&5
  11285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11286. (exit $ac_status); } && {
  11287. test -z "$ac_cxx_werror_flag" ||
  11288. test ! -s conftest.err
  11289. } && test -s conftest.$ac_objext; then
  11290. gl_cv_header_inttypes_h=yes
  11291. else
  11292. $as_echo "$as_me: failed program was:" >&5
  11293. sed 's/^/| /' conftest.$ac_ext >&5
  11294. gl_cv_header_inttypes_h=no
  11295. fi
  11296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11297. fi
  11298. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11299. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11300. if test $gl_cv_header_inttypes_h = yes; then
  11301. cat >>confdefs.h <<_ACEOF
  11302. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11303. _ACEOF
  11304. fi
  11305. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11306. $as_echo_n "checking for unsigned long long int... " >&6; }
  11307. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11308. $as_echo_n "(cached) " >&6
  11309. else
  11310. cat >conftest.$ac_ext <<_ACEOF
  11311. /* confdefs.h. */
  11312. _ACEOF
  11313. cat confdefs.h >>conftest.$ac_ext
  11314. cat >>conftest.$ac_ext <<_ACEOF
  11315. /* end confdefs.h. */
  11316. /* Test preprocessor. */
  11317. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11318. error in preprocessor;
  11319. #endif
  11320. #if ! (18446744073709551615ULL <= -1ull)
  11321. error in preprocessor;
  11322. #endif
  11323. /* Test literals. */
  11324. long long int ll = 9223372036854775807ll;
  11325. long long int nll = -9223372036854775807LL;
  11326. unsigned long long int ull = 18446744073709551615ULL;
  11327. /* Test constant expressions. */
  11328. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11329. ? 1 : -1)];
  11330. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11331. ? 1 : -1)];
  11332. int i = 63;
  11333. int
  11334. main ()
  11335. {
  11336. /* Test availability of runtime routines for shift and division. */
  11337. long long int llmax = 9223372036854775807ll;
  11338. unsigned long long int ullmax = 18446744073709551615ull;
  11339. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11340. | (llmax / ll) | (llmax % ll)
  11341. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11342. | (ullmax / ull) | (ullmax % ull));
  11343. ;
  11344. return 0;
  11345. }
  11346. _ACEOF
  11347. rm -f conftest.$ac_objext conftest$ac_exeext
  11348. if { (ac_try="$ac_link"
  11349. case "(($ac_try" in
  11350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11351. *) ac_try_echo=$ac_try;;
  11352. esac
  11353. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11354. $as_echo "$ac_try_echo") >&5
  11355. (eval "$ac_link") 2>conftest.er1
  11356. ac_status=$?
  11357. grep -v '^ *+' conftest.er1 >conftest.err
  11358. rm -f conftest.er1
  11359. cat conftest.err >&5
  11360. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11361. (exit $ac_status); } && {
  11362. test -z "$ac_cxx_werror_flag" ||
  11363. test ! -s conftest.err
  11364. } && test -s conftest$ac_exeext && {
  11365. test "$cross_compiling" = yes ||
  11366. $as_test_x conftest$ac_exeext
  11367. }; then
  11368. ac_cv_type_unsigned_long_long_int=yes
  11369. else
  11370. $as_echo "$as_me: failed program was:" >&5
  11371. sed 's/^/| /' conftest.$ac_ext >&5
  11372. ac_cv_type_unsigned_long_long_int=no
  11373. fi
  11374. rm -rf conftest.dSYM
  11375. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11376. conftest$ac_exeext conftest.$ac_ext
  11377. fi
  11378. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11379. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11380. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11381. cat >>confdefs.h <<\_ACEOF
  11382. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11383. _ACEOF
  11384. fi
  11385. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11386. test $ac_cv_type_unsigned_long_long_int = yes \
  11387. && ac_type='unsigned long long' \
  11388. || ac_type='unsigned long'
  11389. cat >>confdefs.h <<_ACEOF
  11390. #define uintmax_t $ac_type
  11391. _ACEOF
  11392. else
  11393. cat >>confdefs.h <<\_ACEOF
  11394. #define HAVE_UINTMAX_T 1
  11395. _ACEOF
  11396. fi
  11397. for ac_header in inttypes.h
  11398. do
  11399. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11400. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11401. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11402. $as_echo_n "checking for $ac_header... " >&6; }
  11403. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11404. $as_echo_n "(cached) " >&6
  11405. fi
  11406. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11407. $as_echo "$as_val"'`
  11408. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11409. $as_echo "$ac_res" >&6; }
  11410. else
  11411. # Is the header compilable?
  11412. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11413. $as_echo_n "checking $ac_header usability... " >&6; }
  11414. cat >conftest.$ac_ext <<_ACEOF
  11415. /* confdefs.h. */
  11416. _ACEOF
  11417. cat confdefs.h >>conftest.$ac_ext
  11418. cat >>conftest.$ac_ext <<_ACEOF
  11419. /* end confdefs.h. */
  11420. $ac_includes_default
  11421. #include <$ac_header>
  11422. _ACEOF
  11423. rm -f conftest.$ac_objext
  11424. if { (ac_try="$ac_compile"
  11425. case "(($ac_try" in
  11426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11427. *) ac_try_echo=$ac_try;;
  11428. esac
  11429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11430. $as_echo "$ac_try_echo") >&5
  11431. (eval "$ac_compile") 2>conftest.er1
  11432. ac_status=$?
  11433. grep -v '^ *+' conftest.er1 >conftest.err
  11434. rm -f conftest.er1
  11435. cat conftest.err >&5
  11436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11437. (exit $ac_status); } && {
  11438. test -z "$ac_cxx_werror_flag" ||
  11439. test ! -s conftest.err
  11440. } && test -s conftest.$ac_objext; then
  11441. ac_header_compiler=yes
  11442. else
  11443. $as_echo "$as_me: failed program was:" >&5
  11444. sed 's/^/| /' conftest.$ac_ext >&5
  11445. ac_header_compiler=no
  11446. fi
  11447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11448. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11449. $as_echo "$ac_header_compiler" >&6; }
  11450. # Is the header present?
  11451. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11452. $as_echo_n "checking $ac_header presence... " >&6; }
  11453. cat >conftest.$ac_ext <<_ACEOF
  11454. /* confdefs.h. */
  11455. _ACEOF
  11456. cat confdefs.h >>conftest.$ac_ext
  11457. cat >>conftest.$ac_ext <<_ACEOF
  11458. /* end confdefs.h. */
  11459. #include <$ac_header>
  11460. _ACEOF
  11461. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11462. case "(($ac_try" in
  11463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11464. *) ac_try_echo=$ac_try;;
  11465. esac
  11466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11467. $as_echo "$ac_try_echo") >&5
  11468. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11469. ac_status=$?
  11470. grep -v '^ *+' conftest.er1 >conftest.err
  11471. rm -f conftest.er1
  11472. cat conftest.err >&5
  11473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11474. (exit $ac_status); } >/dev/null && {
  11475. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11476. test ! -s conftest.err
  11477. }; then
  11478. ac_header_preproc=yes
  11479. else
  11480. $as_echo "$as_me: failed program was:" >&5
  11481. sed 's/^/| /' conftest.$ac_ext >&5
  11482. ac_header_preproc=no
  11483. fi
  11484. rm -f conftest.err conftest.$ac_ext
  11485. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11486. $as_echo "$ac_header_preproc" >&6; }
  11487. # So? What about this header?
  11488. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11489. yes:no: )
  11490. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11491. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11492. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11493. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11494. ac_header_preproc=yes
  11495. ;;
  11496. no:yes:* )
  11497. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11498. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11499. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11500. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11501. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11502. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11503. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11504. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11505. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11506. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11507. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11508. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11509. ( cat <<\_ASBOX
  11510. ## ----------------------------------------------- ##
  11511. ## Report this to t-tujikawa@users.sourceforge.net ##
  11512. ## ----------------------------------------------- ##
  11513. _ASBOX
  11514. ) | sed "s/^/$as_me: WARNING: /" >&2
  11515. ;;
  11516. esac
  11517. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11518. $as_echo_n "checking for $ac_header... " >&6; }
  11519. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11520. $as_echo_n "(cached) " >&6
  11521. else
  11522. eval "$as_ac_Header=\$ac_header_preproc"
  11523. fi
  11524. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11525. $as_echo "$as_val"'`
  11526. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11527. $as_echo "$ac_res" >&6; }
  11528. fi
  11529. as_val=`eval 'as_val=${'$as_ac_Header'}
  11530. $as_echo "$as_val"'`
  11531. if test "x$as_val" = x""yes; then
  11532. cat >>confdefs.h <<_ACEOF
  11533. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11534. _ACEOF
  11535. fi
  11536. done
  11537. if test $ac_cv_header_inttypes_h = yes; then
  11538. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11539. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11540. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11541. $as_echo_n "(cached) " >&6
  11542. else
  11543. cat >conftest.$ac_ext <<_ACEOF
  11544. /* confdefs.h. */
  11545. _ACEOF
  11546. cat confdefs.h >>conftest.$ac_ext
  11547. cat >>conftest.$ac_ext <<_ACEOF
  11548. /* end confdefs.h. */
  11549. #include <inttypes.h>
  11550. #ifdef PRId32
  11551. char *p = PRId32;
  11552. #endif
  11553. int
  11554. main ()
  11555. {
  11556. ;
  11557. return 0;
  11558. }
  11559. _ACEOF
  11560. rm -f conftest.$ac_objext
  11561. if { (ac_try="$ac_compile"
  11562. case "(($ac_try" in
  11563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11564. *) ac_try_echo=$ac_try;;
  11565. esac
  11566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11567. $as_echo "$ac_try_echo") >&5
  11568. (eval "$ac_compile") 2>conftest.er1
  11569. ac_status=$?
  11570. grep -v '^ *+' conftest.er1 >conftest.err
  11571. rm -f conftest.er1
  11572. cat conftest.err >&5
  11573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11574. (exit $ac_status); } && {
  11575. test -z "$ac_cxx_werror_flag" ||
  11576. test ! -s conftest.err
  11577. } && test -s conftest.$ac_objext; then
  11578. gt_cv_inttypes_pri_broken=no
  11579. else
  11580. $as_echo "$as_me: failed program was:" >&5
  11581. sed 's/^/| /' conftest.$ac_ext >&5
  11582. gt_cv_inttypes_pri_broken=yes
  11583. fi
  11584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11585. fi
  11586. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11587. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11588. fi
  11589. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11590. cat >>confdefs.h <<_ACEOF
  11591. #define PRI_MACROS_BROKEN 1
  11592. _ACEOF
  11593. PRI_MACROS_BROKEN=1
  11594. else
  11595. PRI_MACROS_BROKEN=0
  11596. fi
  11597. # Check whether --enable-threads was given.
  11598. if test "${enable_threads+set}" = set; then
  11599. enableval=$enable_threads; gl_use_threads=$enableval
  11600. else
  11601. case "$host_os" in
  11602. osf*) gl_use_threads=no ;;
  11603. *) gl_use_threads=yes ;;
  11604. esac
  11605. fi
  11606. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11607. # For using <pthread.h>:
  11608. case "$host_os" in
  11609. osf*)
  11610. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11611. # groks <pthread.h>. cc also understands the flag -pthread, but
  11612. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11613. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11614. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11615. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11616. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11617. ;;
  11618. esac
  11619. # Some systems optimize for single-threaded programs by default, and
  11620. # need special flags to disable these optimizations. For example, the
  11621. # definition of 'errno' in <errno.h>.
  11622. case "$host_os" in
  11623. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11624. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11625. esac
  11626. fi
  11627. if test "X$prefix" = "XNONE"; then
  11628. acl_final_prefix="$ac_default_prefix"
  11629. else
  11630. acl_final_prefix="$prefix"
  11631. fi
  11632. if test "X$exec_prefix" = "XNONE"; then
  11633. acl_final_exec_prefix='${prefix}'
  11634. else
  11635. acl_final_exec_prefix="$exec_prefix"
  11636. fi
  11637. acl_save_prefix="$prefix"
  11638. prefix="$acl_final_prefix"
  11639. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11640. prefix="$acl_save_prefix"
  11641. # Check whether --with-gnu-ld was given.
  11642. if test "${with_gnu_ld+set}" = set; then
  11643. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11644. else
  11645. with_gnu_ld=no
  11646. fi
  11647. # Prepare PATH_SEPARATOR.
  11648. # The user is always right.
  11649. if test "${PATH_SEPARATOR+set}" != set; then
  11650. echo "#! /bin/sh" >conf$$.sh
  11651. echo "exit 0" >>conf$$.sh
  11652. chmod +x conf$$.sh
  11653. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11654. PATH_SEPARATOR=';'
  11655. else
  11656. PATH_SEPARATOR=:
  11657. fi
  11658. rm -f conf$$.sh
  11659. fi
  11660. ac_prog=ld
  11661. if test "$GCC" = yes; then
  11662. # Check if gcc -print-prog-name=ld gives a path.
  11663. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11664. $as_echo_n "checking for ld used by GCC... " >&6; }
  11665. case $host in
  11666. *-*-mingw*)
  11667. # gcc leaves a trailing carriage return which upsets mingw
  11668. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11669. *)
  11670. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11671. esac
  11672. case $ac_prog in
  11673. # Accept absolute paths.
  11674. [\\/]* | [A-Za-z]:[\\/]*)
  11675. re_direlt='/[^/][^/]*/\.\./'
  11676. # Canonicalize the path of ld
  11677. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11678. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11679. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11680. done
  11681. test -z "$LD" && LD="$ac_prog"
  11682. ;;
  11683. "")
  11684. # If it fails, then pretend we aren't using GCC.
  11685. ac_prog=ld
  11686. ;;
  11687. *)
  11688. # If it is relative, then search for the first ld in PATH.
  11689. with_gnu_ld=unknown
  11690. ;;
  11691. esac
  11692. elif test "$with_gnu_ld" = yes; then
  11693. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11694. $as_echo_n "checking for GNU ld... " >&6; }
  11695. else
  11696. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11697. $as_echo_n "checking for non-GNU ld... " >&6; }
  11698. fi
  11699. if test "${acl_cv_path_LD+set}" = set; then
  11700. $as_echo_n "(cached) " >&6
  11701. else
  11702. if test -z "$LD"; then
  11703. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11704. for ac_dir in $PATH; do
  11705. test -z "$ac_dir" && ac_dir=.
  11706. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11707. acl_cv_path_LD="$ac_dir/$ac_prog"
  11708. # Check to see if the program is GNU ld. I'd rather use --version,
  11709. # but apparently some GNU ld's only accept -v.
  11710. # Break only if it was the GNU/non-GNU ld that we prefer.
  11711. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11712. *GNU* | *'with BFD'*)
  11713. test "$with_gnu_ld" != no && break ;;
  11714. *)
  11715. test "$with_gnu_ld" != yes && break ;;
  11716. esac
  11717. fi
  11718. done
  11719. IFS="$ac_save_ifs"
  11720. else
  11721. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11722. fi
  11723. fi
  11724. LD="$acl_cv_path_LD"
  11725. if test -n "$LD"; then
  11726. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11727. $as_echo "$LD" >&6; }
  11728. else
  11729. { $as_echo "$as_me:$LINENO: result: no" >&5
  11730. $as_echo "no" >&6; }
  11731. fi
  11732. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11733. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11734. { (exit 1); exit 1; }; }
  11735. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11736. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11737. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11738. $as_echo_n "(cached) " >&6
  11739. else
  11740. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11741. case `$LD -v 2>&1 </dev/null` in
  11742. *GNU* | *'with BFD'*)
  11743. acl_cv_prog_gnu_ld=yes ;;
  11744. *)
  11745. acl_cv_prog_gnu_ld=no ;;
  11746. esac
  11747. fi
  11748. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11749. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11750. with_gnu_ld=$acl_cv_prog_gnu_ld
  11751. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11752. $as_echo_n "checking for shared library run path origin... " >&6; }
  11753. if test "${acl_cv_rpath+set}" = set; then
  11754. $as_echo_n "(cached) " >&6
  11755. else
  11756. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11757. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11758. . ./conftest.sh
  11759. rm -f ./conftest.sh
  11760. acl_cv_rpath=done
  11761. fi
  11762. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11763. $as_echo "$acl_cv_rpath" >&6; }
  11764. wl="$acl_cv_wl"
  11765. acl_libext="$acl_cv_libext"
  11766. acl_shlibext="$acl_cv_shlibext"
  11767. acl_libname_spec="$acl_cv_libname_spec"
  11768. acl_library_names_spec="$acl_cv_library_names_spec"
  11769. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11770. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11771. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11772. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11773. # Check whether --enable-rpath was given.
  11774. if test "${enable_rpath+set}" = set; then
  11775. enableval=$enable_rpath; :
  11776. else
  11777. enable_rpath=yes
  11778. fi
  11779. acl_libdirstem=lib
  11780. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11781. if test -n "$searchpath"; then
  11782. acl_save_IFS="${IFS= }"; IFS=":"
  11783. for searchdir in $searchpath; do
  11784. if test -d "$searchdir"; then
  11785. case "$searchdir" in
  11786. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11787. *) searchdir=`cd "$searchdir" && pwd`
  11788. case "$searchdir" in
  11789. */lib64 ) acl_libdirstem=lib64 ;;
  11790. esac ;;
  11791. esac
  11792. fi
  11793. done
  11794. IFS="$acl_save_IFS"
  11795. fi
  11796. gl_threads_api=none
  11797. LIBTHREAD=
  11798. LTLIBTHREAD=
  11799. LIBMULTITHREAD=
  11800. LTLIBMULTITHREAD=
  11801. if test "$gl_use_threads" != no; then
  11802. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11803. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11804. gl_have_weak=no
  11805. cat >conftest.$ac_ext <<_ACEOF
  11806. /* confdefs.h. */
  11807. _ACEOF
  11808. cat confdefs.h >>conftest.$ac_ext
  11809. cat >>conftest.$ac_ext <<_ACEOF
  11810. /* end confdefs.h. */
  11811. extern void xyzzy ();
  11812. #pragma weak xyzzy
  11813. int
  11814. main ()
  11815. {
  11816. xyzzy();
  11817. ;
  11818. return 0;
  11819. }
  11820. _ACEOF
  11821. rm -f conftest.$ac_objext conftest$ac_exeext
  11822. if { (ac_try="$ac_link"
  11823. case "(($ac_try" in
  11824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11825. *) ac_try_echo=$ac_try;;
  11826. esac
  11827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11828. $as_echo "$ac_try_echo") >&5
  11829. (eval "$ac_link") 2>conftest.er1
  11830. ac_status=$?
  11831. grep -v '^ *+' conftest.er1 >conftest.err
  11832. rm -f conftest.er1
  11833. cat conftest.err >&5
  11834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11835. (exit $ac_status); } && {
  11836. test -z "$ac_cxx_werror_flag" ||
  11837. test ! -s conftest.err
  11838. } && test -s conftest$ac_exeext && {
  11839. test "$cross_compiling" = yes ||
  11840. $as_test_x conftest$ac_exeext
  11841. }; then
  11842. gl_have_weak=yes
  11843. else
  11844. $as_echo "$as_me: failed program was:" >&5
  11845. sed 's/^/| /' conftest.$ac_ext >&5
  11846. fi
  11847. rm -rf conftest.dSYM
  11848. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11849. conftest$ac_exeext conftest.$ac_ext
  11850. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11851. $as_echo "$gl_have_weak" >&6; }
  11852. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11853. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11854. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11855. if test "${ac_cv_header_pthread_h+set}" = set; then
  11856. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11857. $as_echo_n "checking for pthread.h... " >&6; }
  11858. if test "${ac_cv_header_pthread_h+set}" = set; then
  11859. $as_echo_n "(cached) " >&6
  11860. fi
  11861. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11862. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11863. else
  11864. # Is the header compilable?
  11865. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11866. $as_echo_n "checking pthread.h usability... " >&6; }
  11867. cat >conftest.$ac_ext <<_ACEOF
  11868. /* confdefs.h. */
  11869. _ACEOF
  11870. cat confdefs.h >>conftest.$ac_ext
  11871. cat >>conftest.$ac_ext <<_ACEOF
  11872. /* end confdefs.h. */
  11873. $ac_includes_default
  11874. #include <pthread.h>
  11875. _ACEOF
  11876. rm -f conftest.$ac_objext
  11877. if { (ac_try="$ac_compile"
  11878. case "(($ac_try" in
  11879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11880. *) ac_try_echo=$ac_try;;
  11881. esac
  11882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11883. $as_echo "$ac_try_echo") >&5
  11884. (eval "$ac_compile") 2>conftest.er1
  11885. ac_status=$?
  11886. grep -v '^ *+' conftest.er1 >conftest.err
  11887. rm -f conftest.er1
  11888. cat conftest.err >&5
  11889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11890. (exit $ac_status); } && {
  11891. test -z "$ac_cxx_werror_flag" ||
  11892. test ! -s conftest.err
  11893. } && test -s conftest.$ac_objext; then
  11894. ac_header_compiler=yes
  11895. else
  11896. $as_echo "$as_me: failed program was:" >&5
  11897. sed 's/^/| /' conftest.$ac_ext >&5
  11898. ac_header_compiler=no
  11899. fi
  11900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11901. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11902. $as_echo "$ac_header_compiler" >&6; }
  11903. # Is the header present?
  11904. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11905. $as_echo_n "checking pthread.h presence... " >&6; }
  11906. cat >conftest.$ac_ext <<_ACEOF
  11907. /* confdefs.h. */
  11908. _ACEOF
  11909. cat confdefs.h >>conftest.$ac_ext
  11910. cat >>conftest.$ac_ext <<_ACEOF
  11911. /* end confdefs.h. */
  11912. #include <pthread.h>
  11913. _ACEOF
  11914. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11915. case "(($ac_try" in
  11916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11917. *) ac_try_echo=$ac_try;;
  11918. esac
  11919. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11920. $as_echo "$ac_try_echo") >&5
  11921. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11922. ac_status=$?
  11923. grep -v '^ *+' conftest.er1 >conftest.err
  11924. rm -f conftest.er1
  11925. cat conftest.err >&5
  11926. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11927. (exit $ac_status); } >/dev/null && {
  11928. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11929. test ! -s conftest.err
  11930. }; then
  11931. ac_header_preproc=yes
  11932. else
  11933. $as_echo "$as_me: failed program was:" >&5
  11934. sed 's/^/| /' conftest.$ac_ext >&5
  11935. ac_header_preproc=no
  11936. fi
  11937. rm -f conftest.err conftest.$ac_ext
  11938. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11939. $as_echo "$ac_header_preproc" >&6; }
  11940. # So? What about this header?
  11941. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11942. yes:no: )
  11943. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11944. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11945. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11946. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11947. ac_header_preproc=yes
  11948. ;;
  11949. no:yes:* )
  11950. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11951. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11952. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11953. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11954. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11955. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11956. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11957. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11958. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11959. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11960. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11961. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11962. ( cat <<\_ASBOX
  11963. ## ----------------------------------------------- ##
  11964. ## Report this to t-tujikawa@users.sourceforge.net ##
  11965. ## ----------------------------------------------- ##
  11966. _ASBOX
  11967. ) | sed "s/^/$as_me: WARNING: /" >&2
  11968. ;;
  11969. esac
  11970. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11971. $as_echo_n "checking for pthread.h... " >&6; }
  11972. if test "${ac_cv_header_pthread_h+set}" = set; then
  11973. $as_echo_n "(cached) " >&6
  11974. else
  11975. ac_cv_header_pthread_h=$ac_header_preproc
  11976. fi
  11977. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11978. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11979. fi
  11980. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11981. gl_have_pthread_h=yes
  11982. else
  11983. gl_have_pthread_h=no
  11984. fi
  11985. if test "$gl_have_pthread_h" = yes; then
  11986. # Other possible tests:
  11987. # -lpthreads (FSU threads, PCthreads)
  11988. # -lgthreads
  11989. gl_have_pthread=
  11990. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11991. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11992. # the second one only in libpthread, and lock.c needs it.
  11993. cat >conftest.$ac_ext <<_ACEOF
  11994. /* confdefs.h. */
  11995. _ACEOF
  11996. cat confdefs.h >>conftest.$ac_ext
  11997. cat >>conftest.$ac_ext <<_ACEOF
  11998. /* end confdefs.h. */
  11999. #include <pthread.h>
  12000. int
  12001. main ()
  12002. {
  12003. pthread_mutex_lock((pthread_mutex_t*)0);
  12004. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. rm -f conftest.$ac_objext conftest$ac_exeext
  12010. if { (ac_try="$ac_link"
  12011. case "(($ac_try" in
  12012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12013. *) ac_try_echo=$ac_try;;
  12014. esac
  12015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12016. $as_echo "$ac_try_echo") >&5
  12017. (eval "$ac_link") 2>conftest.er1
  12018. ac_status=$?
  12019. grep -v '^ *+' conftest.er1 >conftest.err
  12020. rm -f conftest.er1
  12021. cat conftest.err >&5
  12022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. (exit $ac_status); } && {
  12024. test -z "$ac_cxx_werror_flag" ||
  12025. test ! -s conftest.err
  12026. } && test -s conftest$ac_exeext && {
  12027. test "$cross_compiling" = yes ||
  12028. $as_test_x conftest$ac_exeext
  12029. }; then
  12030. gl_have_pthread=yes
  12031. else
  12032. $as_echo "$as_me: failed program was:" >&5
  12033. sed 's/^/| /' conftest.$ac_ext >&5
  12034. fi
  12035. rm -rf conftest.dSYM
  12036. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12037. conftest$ac_exeext conftest.$ac_ext
  12038. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  12039. # since it is defined as a macro on OSF/1.)
  12040. if test -n "$gl_have_pthread"; then
  12041. # The program links fine without libpthread. But it may actually
  12042. # need to link with libpthread in order to create multiple threads.
  12043. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12044. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12045. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12046. $as_echo_n "(cached) " >&6
  12047. else
  12048. ac_check_lib_save_LIBS=$LIBS
  12049. LIBS="-lpthread $LIBS"
  12050. cat >conftest.$ac_ext <<_ACEOF
  12051. /* confdefs.h. */
  12052. _ACEOF
  12053. cat confdefs.h >>conftest.$ac_ext
  12054. cat >>conftest.$ac_ext <<_ACEOF
  12055. /* end confdefs.h. */
  12056. /* Override any GCC internal prototype to avoid an error.
  12057. Use char because int might match the return type of a GCC
  12058. builtin and then its argument prototype would still apply. */
  12059. #ifdef __cplusplus
  12060. extern "C"
  12061. #endif
  12062. char pthread_kill ();
  12063. int
  12064. main ()
  12065. {
  12066. return pthread_kill ();
  12067. ;
  12068. return 0;
  12069. }
  12070. _ACEOF
  12071. rm -f conftest.$ac_objext conftest$ac_exeext
  12072. if { (ac_try="$ac_link"
  12073. case "(($ac_try" in
  12074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12075. *) ac_try_echo=$ac_try;;
  12076. esac
  12077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12078. $as_echo "$ac_try_echo") >&5
  12079. (eval "$ac_link") 2>conftest.er1
  12080. ac_status=$?
  12081. grep -v '^ *+' conftest.er1 >conftest.err
  12082. rm -f conftest.er1
  12083. cat conftest.err >&5
  12084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12085. (exit $ac_status); } && {
  12086. test -z "$ac_cxx_werror_flag" ||
  12087. test ! -s conftest.err
  12088. } && test -s conftest$ac_exeext && {
  12089. test "$cross_compiling" = yes ||
  12090. $as_test_x conftest$ac_exeext
  12091. }; then
  12092. ac_cv_lib_pthread_pthread_kill=yes
  12093. else
  12094. $as_echo "$as_me: failed program was:" >&5
  12095. sed 's/^/| /' conftest.$ac_ext >&5
  12096. ac_cv_lib_pthread_pthread_kill=no
  12097. fi
  12098. rm -rf conftest.dSYM
  12099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12100. conftest$ac_exeext conftest.$ac_ext
  12101. LIBS=$ac_check_lib_save_LIBS
  12102. fi
  12103. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12104. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12105. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12106. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12107. # On Solaris and HP-UX, most pthread functions exist also in libc.
  12108. # Therefore pthread_in_use() needs to actually try to create a
  12109. # thread: pthread_create from libc will fail, whereas
  12110. # pthread_create will actually create a thread.
  12111. case "$host_os" in
  12112. solaris* | hpux*)
  12113. cat >>confdefs.h <<\_ACEOF
  12114. #define PTHREAD_IN_USE_DETECTION_HARD 1
  12115. _ACEOF
  12116. esac
  12117. fi
  12118. else
  12119. # Some library is needed. Try libpthread and libc_r.
  12120. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12121. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12122. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12123. $as_echo_n "(cached) " >&6
  12124. else
  12125. ac_check_lib_save_LIBS=$LIBS
  12126. LIBS="-lpthread $LIBS"
  12127. cat >conftest.$ac_ext <<_ACEOF
  12128. /* confdefs.h. */
  12129. _ACEOF
  12130. cat confdefs.h >>conftest.$ac_ext
  12131. cat >>conftest.$ac_ext <<_ACEOF
  12132. /* end confdefs.h. */
  12133. /* Override any GCC internal prototype to avoid an error.
  12134. Use char because int might match the return type of a GCC
  12135. builtin and then its argument prototype would still apply. */
  12136. #ifdef __cplusplus
  12137. extern "C"
  12138. #endif
  12139. char pthread_kill ();
  12140. int
  12141. main ()
  12142. {
  12143. return pthread_kill ();
  12144. ;
  12145. return 0;
  12146. }
  12147. _ACEOF
  12148. rm -f conftest.$ac_objext conftest$ac_exeext
  12149. if { (ac_try="$ac_link"
  12150. case "(($ac_try" in
  12151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12152. *) ac_try_echo=$ac_try;;
  12153. esac
  12154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12155. $as_echo "$ac_try_echo") >&5
  12156. (eval "$ac_link") 2>conftest.er1
  12157. ac_status=$?
  12158. grep -v '^ *+' conftest.er1 >conftest.err
  12159. rm -f conftest.er1
  12160. cat conftest.err >&5
  12161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12162. (exit $ac_status); } && {
  12163. test -z "$ac_cxx_werror_flag" ||
  12164. test ! -s conftest.err
  12165. } && test -s conftest$ac_exeext && {
  12166. test "$cross_compiling" = yes ||
  12167. $as_test_x conftest$ac_exeext
  12168. }; then
  12169. ac_cv_lib_pthread_pthread_kill=yes
  12170. else
  12171. $as_echo "$as_me: failed program was:" >&5
  12172. sed 's/^/| /' conftest.$ac_ext >&5
  12173. ac_cv_lib_pthread_pthread_kill=no
  12174. fi
  12175. rm -rf conftest.dSYM
  12176. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12177. conftest$ac_exeext conftest.$ac_ext
  12178. LIBS=$ac_check_lib_save_LIBS
  12179. fi
  12180. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12181. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12182. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12183. gl_have_pthread=yes
  12184. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  12185. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12186. fi
  12187. if test -z "$gl_have_pthread"; then
  12188. # For FreeBSD 4.
  12189. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  12190. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  12191. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  12192. $as_echo_n "(cached) " >&6
  12193. else
  12194. ac_check_lib_save_LIBS=$LIBS
  12195. LIBS="-lc_r $LIBS"
  12196. cat >conftest.$ac_ext <<_ACEOF
  12197. /* confdefs.h. */
  12198. _ACEOF
  12199. cat confdefs.h >>conftest.$ac_ext
  12200. cat >>conftest.$ac_ext <<_ACEOF
  12201. /* end confdefs.h. */
  12202. /* Override any GCC internal prototype to avoid an error.
  12203. Use char because int might match the return type of a GCC
  12204. builtin and then its argument prototype would still apply. */
  12205. #ifdef __cplusplus
  12206. extern "C"
  12207. #endif
  12208. char pthread_kill ();
  12209. int
  12210. main ()
  12211. {
  12212. return pthread_kill ();
  12213. ;
  12214. return 0;
  12215. }
  12216. _ACEOF
  12217. rm -f conftest.$ac_objext conftest$ac_exeext
  12218. if { (ac_try="$ac_link"
  12219. case "(($ac_try" in
  12220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12221. *) ac_try_echo=$ac_try;;
  12222. esac
  12223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12224. $as_echo "$ac_try_echo") >&5
  12225. (eval "$ac_link") 2>conftest.er1
  12226. ac_status=$?
  12227. grep -v '^ *+' conftest.er1 >conftest.err
  12228. rm -f conftest.er1
  12229. cat conftest.err >&5
  12230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12231. (exit $ac_status); } && {
  12232. test -z "$ac_cxx_werror_flag" ||
  12233. test ! -s conftest.err
  12234. } && test -s conftest$ac_exeext && {
  12235. test "$cross_compiling" = yes ||
  12236. $as_test_x conftest$ac_exeext
  12237. }; then
  12238. ac_cv_lib_c_r_pthread_kill=yes
  12239. else
  12240. $as_echo "$as_me: failed program was:" >&5
  12241. sed 's/^/| /' conftest.$ac_ext >&5
  12242. ac_cv_lib_c_r_pthread_kill=no
  12243. fi
  12244. rm -rf conftest.dSYM
  12245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12246. conftest$ac_exeext conftest.$ac_ext
  12247. LIBS=$ac_check_lib_save_LIBS
  12248. fi
  12249. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12250. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12251. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12252. gl_have_pthread=yes
  12253. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12254. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12255. fi
  12256. fi
  12257. fi
  12258. if test -n "$gl_have_pthread"; then
  12259. gl_threads_api=posix
  12260. cat >>confdefs.h <<\_ACEOF
  12261. #define USE_POSIX_THREADS 1
  12262. _ACEOF
  12263. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12264. if test $gl_have_weak = yes; then
  12265. cat >>confdefs.h <<\_ACEOF
  12266. #define USE_POSIX_THREADS_WEAK 1
  12267. _ACEOF
  12268. LIBTHREAD=
  12269. LTLIBTHREAD=
  12270. fi
  12271. fi
  12272. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12273. # pthread_rwlock_* functions.
  12274. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12275. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12276. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12277. $as_echo_n "(cached) " >&6
  12278. else
  12279. ac_cv_type_pthread_rwlock_t=no
  12280. cat >conftest.$ac_ext <<_ACEOF
  12281. /* confdefs.h. */
  12282. _ACEOF
  12283. cat confdefs.h >>conftest.$ac_ext
  12284. cat >>conftest.$ac_ext <<_ACEOF
  12285. /* end confdefs.h. */
  12286. #include <pthread.h>
  12287. int
  12288. main ()
  12289. {
  12290. if (sizeof (pthread_rwlock_t))
  12291. return 0;
  12292. ;
  12293. return 0;
  12294. }
  12295. _ACEOF
  12296. rm -f conftest.$ac_objext
  12297. if { (ac_try="$ac_compile"
  12298. case "(($ac_try" in
  12299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12300. *) ac_try_echo=$ac_try;;
  12301. esac
  12302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12303. $as_echo "$ac_try_echo") >&5
  12304. (eval "$ac_compile") 2>conftest.er1
  12305. ac_status=$?
  12306. grep -v '^ *+' conftest.er1 >conftest.err
  12307. rm -f conftest.er1
  12308. cat conftest.err >&5
  12309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12310. (exit $ac_status); } && {
  12311. test -z "$ac_cxx_werror_flag" ||
  12312. test ! -s conftest.err
  12313. } && test -s conftest.$ac_objext; then
  12314. cat >conftest.$ac_ext <<_ACEOF
  12315. /* confdefs.h. */
  12316. _ACEOF
  12317. cat confdefs.h >>conftest.$ac_ext
  12318. cat >>conftest.$ac_ext <<_ACEOF
  12319. /* end confdefs.h. */
  12320. #include <pthread.h>
  12321. int
  12322. main ()
  12323. {
  12324. if (sizeof ((pthread_rwlock_t)))
  12325. return 0;
  12326. ;
  12327. return 0;
  12328. }
  12329. _ACEOF
  12330. rm -f conftest.$ac_objext
  12331. if { (ac_try="$ac_compile"
  12332. case "(($ac_try" in
  12333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12334. *) ac_try_echo=$ac_try;;
  12335. esac
  12336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12337. $as_echo "$ac_try_echo") >&5
  12338. (eval "$ac_compile") 2>conftest.er1
  12339. ac_status=$?
  12340. grep -v '^ *+' conftest.er1 >conftest.err
  12341. rm -f conftest.er1
  12342. cat conftest.err >&5
  12343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12344. (exit $ac_status); } && {
  12345. test -z "$ac_cxx_werror_flag" ||
  12346. test ! -s conftest.err
  12347. } && test -s conftest.$ac_objext; then
  12348. :
  12349. else
  12350. $as_echo "$as_me: failed program was:" >&5
  12351. sed 's/^/| /' conftest.$ac_ext >&5
  12352. ac_cv_type_pthread_rwlock_t=yes
  12353. fi
  12354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12355. else
  12356. $as_echo "$as_me: failed program was:" >&5
  12357. sed 's/^/| /' conftest.$ac_ext >&5
  12358. fi
  12359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12360. fi
  12361. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12362. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12363. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12364. cat >>confdefs.h <<\_ACEOF
  12365. #define HAVE_PTHREAD_RWLOCK 1
  12366. _ACEOF
  12367. fi
  12368. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12369. cat >conftest.$ac_ext <<_ACEOF
  12370. /* confdefs.h. */
  12371. _ACEOF
  12372. cat confdefs.h >>conftest.$ac_ext
  12373. cat >>conftest.$ac_ext <<_ACEOF
  12374. /* end confdefs.h. */
  12375. #include <pthread.h>
  12376. int
  12377. main ()
  12378. {
  12379. #if __FreeBSD__ == 4
  12380. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12381. #else
  12382. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12383. return !x;
  12384. #endif
  12385. ;
  12386. return 0;
  12387. }
  12388. _ACEOF
  12389. rm -f conftest.$ac_objext
  12390. if { (ac_try="$ac_compile"
  12391. case "(($ac_try" in
  12392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12393. *) ac_try_echo=$ac_try;;
  12394. esac
  12395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12396. $as_echo "$ac_try_echo") >&5
  12397. (eval "$ac_compile") 2>conftest.er1
  12398. ac_status=$?
  12399. grep -v '^ *+' conftest.er1 >conftest.err
  12400. rm -f conftest.er1
  12401. cat conftest.err >&5
  12402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12403. (exit $ac_status); } && {
  12404. test -z "$ac_cxx_werror_flag" ||
  12405. test ! -s conftest.err
  12406. } && test -s conftest.$ac_objext; then
  12407. cat >>confdefs.h <<\_ACEOF
  12408. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12409. _ACEOF
  12410. else
  12411. $as_echo "$as_me: failed program was:" >&5
  12412. sed 's/^/| /' conftest.$ac_ext >&5
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12415. fi
  12416. fi
  12417. fi
  12418. if test -z "$gl_have_pthread"; then
  12419. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12420. gl_have_solaristhread=
  12421. gl_save_LIBS="$LIBS"
  12422. LIBS="$LIBS -lthread"
  12423. cat >conftest.$ac_ext <<_ACEOF
  12424. /* confdefs.h. */
  12425. _ACEOF
  12426. cat confdefs.h >>conftest.$ac_ext
  12427. cat >>conftest.$ac_ext <<_ACEOF
  12428. /* end confdefs.h. */
  12429. #include <thread.h>
  12430. #include <synch.h>
  12431. int
  12432. main ()
  12433. {
  12434. thr_self();
  12435. ;
  12436. return 0;
  12437. }
  12438. _ACEOF
  12439. rm -f conftest.$ac_objext conftest$ac_exeext
  12440. if { (ac_try="$ac_link"
  12441. case "(($ac_try" in
  12442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12443. *) ac_try_echo=$ac_try;;
  12444. esac
  12445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12446. $as_echo "$ac_try_echo") >&5
  12447. (eval "$ac_link") 2>conftest.er1
  12448. ac_status=$?
  12449. grep -v '^ *+' conftest.er1 >conftest.err
  12450. rm -f conftest.er1
  12451. cat conftest.err >&5
  12452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12453. (exit $ac_status); } && {
  12454. test -z "$ac_cxx_werror_flag" ||
  12455. test ! -s conftest.err
  12456. } && test -s conftest$ac_exeext && {
  12457. test "$cross_compiling" = yes ||
  12458. $as_test_x conftest$ac_exeext
  12459. }; then
  12460. gl_have_solaristhread=yes
  12461. else
  12462. $as_echo "$as_me: failed program was:" >&5
  12463. sed 's/^/| /' conftest.$ac_ext >&5
  12464. fi
  12465. rm -rf conftest.dSYM
  12466. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12467. conftest$ac_exeext conftest.$ac_ext
  12468. LIBS="$gl_save_LIBS"
  12469. if test -n "$gl_have_solaristhread"; then
  12470. gl_threads_api=solaris
  12471. LIBTHREAD=-lthread
  12472. LTLIBTHREAD=-lthread
  12473. LIBMULTITHREAD="$LIBTHREAD"
  12474. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12475. cat >>confdefs.h <<\_ACEOF
  12476. #define USE_SOLARIS_THREADS 1
  12477. _ACEOF
  12478. if test $gl_have_weak = yes; then
  12479. cat >>confdefs.h <<\_ACEOF
  12480. #define USE_SOLARIS_THREADS_WEAK 1
  12481. _ACEOF
  12482. LIBTHREAD=
  12483. LTLIBTHREAD=
  12484. fi
  12485. fi
  12486. fi
  12487. fi
  12488. if test "$gl_use_threads" = pth; then
  12489. gl_save_CPPFLAGS="$CPPFLAGS"
  12490. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12491. $as_echo_n "checking how to link with libpth... " >&6; }
  12492. if test "${ac_cv_libpth_libs+set}" = set; then
  12493. $as_echo_n "(cached) " >&6
  12494. else
  12495. use_additional=yes
  12496. acl_save_prefix="$prefix"
  12497. prefix="$acl_final_prefix"
  12498. acl_save_exec_prefix="$exec_prefix"
  12499. exec_prefix="$acl_final_exec_prefix"
  12500. eval additional_includedir=\"$includedir\"
  12501. eval additional_libdir=\"$libdir\"
  12502. exec_prefix="$acl_save_exec_prefix"
  12503. prefix="$acl_save_prefix"
  12504. # Check whether --with-libpth-prefix was given.
  12505. if test "${with_libpth_prefix+set}" = set; then
  12506. withval=$with_libpth_prefix;
  12507. if test "X$withval" = "Xno"; then
  12508. use_additional=no
  12509. else
  12510. if test "X$withval" = "X"; then
  12511. acl_save_prefix="$prefix"
  12512. prefix="$acl_final_prefix"
  12513. acl_save_exec_prefix="$exec_prefix"
  12514. exec_prefix="$acl_final_exec_prefix"
  12515. eval additional_includedir=\"$includedir\"
  12516. eval additional_libdir=\"$libdir\"
  12517. exec_prefix="$acl_save_exec_prefix"
  12518. prefix="$acl_save_prefix"
  12519. else
  12520. additional_includedir="$withval/include"
  12521. additional_libdir="$withval/$acl_libdirstem"
  12522. fi
  12523. fi
  12524. fi
  12525. LIBPTH=
  12526. LTLIBPTH=
  12527. INCPTH=
  12528. LIBPTH_PREFIX=
  12529. rpathdirs=
  12530. ltrpathdirs=
  12531. names_already_handled=
  12532. names_next_round='pth '
  12533. while test -n "$names_next_round"; do
  12534. names_this_round="$names_next_round"
  12535. names_next_round=
  12536. for name in $names_this_round; do
  12537. already_handled=
  12538. for n in $names_already_handled; do
  12539. if test "$n" = "$name"; then
  12540. already_handled=yes
  12541. break
  12542. fi
  12543. done
  12544. if test -z "$already_handled"; then
  12545. names_already_handled="$names_already_handled $name"
  12546. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12547. eval value=\"\$HAVE_LIB$uppername\"
  12548. if test -n "$value"; then
  12549. if test "$value" = yes; then
  12550. eval value=\"\$LIB$uppername\"
  12551. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12552. eval value=\"\$LTLIB$uppername\"
  12553. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12554. else
  12555. :
  12556. fi
  12557. else
  12558. found_dir=
  12559. found_la=
  12560. found_so=
  12561. found_a=
  12562. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12563. if test -n "$acl_shlibext"; then
  12564. shrext=".$acl_shlibext" # typically: shrext=.so
  12565. else
  12566. shrext=
  12567. fi
  12568. if test $use_additional = yes; then
  12569. dir="$additional_libdir"
  12570. if test -n "$acl_shlibext"; then
  12571. if test -f "$dir/$libname$shrext"; then
  12572. found_dir="$dir"
  12573. found_so="$dir/$libname$shrext"
  12574. else
  12575. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12576. ver=`(cd "$dir" && \
  12577. for f in "$libname$shrext".*; do echo "$f"; done \
  12578. | sed -e "s,^$libname$shrext\\\\.,," \
  12579. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12580. | sed 1q ) 2>/dev/null`
  12581. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12582. found_dir="$dir"
  12583. found_so="$dir/$libname$shrext.$ver"
  12584. fi
  12585. else
  12586. eval library_names=\"$acl_library_names_spec\"
  12587. for f in $library_names; do
  12588. if test -f "$dir/$f"; then
  12589. found_dir="$dir"
  12590. found_so="$dir/$f"
  12591. break
  12592. fi
  12593. done
  12594. fi
  12595. fi
  12596. fi
  12597. if test "X$found_dir" = "X"; then
  12598. if test -f "$dir/$libname.$acl_libext"; then
  12599. found_dir="$dir"
  12600. found_a="$dir/$libname.$acl_libext"
  12601. fi
  12602. fi
  12603. if test "X$found_dir" != "X"; then
  12604. if test -f "$dir/$libname.la"; then
  12605. found_la="$dir/$libname.la"
  12606. fi
  12607. fi
  12608. fi
  12609. if test "X$found_dir" = "X"; then
  12610. for x in $LDFLAGS $LTLIBPTH; do
  12611. acl_save_prefix="$prefix"
  12612. prefix="$acl_final_prefix"
  12613. acl_save_exec_prefix="$exec_prefix"
  12614. exec_prefix="$acl_final_exec_prefix"
  12615. eval x=\"$x\"
  12616. exec_prefix="$acl_save_exec_prefix"
  12617. prefix="$acl_save_prefix"
  12618. case "$x" in
  12619. -L*)
  12620. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12621. if test -n "$acl_shlibext"; then
  12622. if test -f "$dir/$libname$shrext"; then
  12623. found_dir="$dir"
  12624. found_so="$dir/$libname$shrext"
  12625. else
  12626. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12627. ver=`(cd "$dir" && \
  12628. for f in "$libname$shrext".*; do echo "$f"; done \
  12629. | sed -e "s,^$libname$shrext\\\\.,," \
  12630. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12631. | sed 1q ) 2>/dev/null`
  12632. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12633. found_dir="$dir"
  12634. found_so="$dir/$libname$shrext.$ver"
  12635. fi
  12636. else
  12637. eval library_names=\"$acl_library_names_spec\"
  12638. for f in $library_names; do
  12639. if test -f "$dir/$f"; then
  12640. found_dir="$dir"
  12641. found_so="$dir/$f"
  12642. break
  12643. fi
  12644. done
  12645. fi
  12646. fi
  12647. fi
  12648. if test "X$found_dir" = "X"; then
  12649. if test -f "$dir/$libname.$acl_libext"; then
  12650. found_dir="$dir"
  12651. found_a="$dir/$libname.$acl_libext"
  12652. fi
  12653. fi
  12654. if test "X$found_dir" != "X"; then
  12655. if test -f "$dir/$libname.la"; then
  12656. found_la="$dir/$libname.la"
  12657. fi
  12658. fi
  12659. ;;
  12660. esac
  12661. if test "X$found_dir" != "X"; then
  12662. break
  12663. fi
  12664. done
  12665. fi
  12666. if test "X$found_dir" != "X"; then
  12667. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12668. if test "X$found_so" != "X"; then
  12669. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12670. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12671. else
  12672. haveit=
  12673. for x in $ltrpathdirs; do
  12674. if test "X$x" = "X$found_dir"; then
  12675. haveit=yes
  12676. break
  12677. fi
  12678. done
  12679. if test -z "$haveit"; then
  12680. ltrpathdirs="$ltrpathdirs $found_dir"
  12681. fi
  12682. if test "$acl_hardcode_direct" = yes; then
  12683. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12684. else
  12685. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12686. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12687. haveit=
  12688. for x in $rpathdirs; do
  12689. if test "X$x" = "X$found_dir"; then
  12690. haveit=yes
  12691. break
  12692. fi
  12693. done
  12694. if test -z "$haveit"; then
  12695. rpathdirs="$rpathdirs $found_dir"
  12696. fi
  12697. else
  12698. haveit=
  12699. for x in $LDFLAGS $LIBPTH; do
  12700. acl_save_prefix="$prefix"
  12701. prefix="$acl_final_prefix"
  12702. acl_save_exec_prefix="$exec_prefix"
  12703. exec_prefix="$acl_final_exec_prefix"
  12704. eval x=\"$x\"
  12705. exec_prefix="$acl_save_exec_prefix"
  12706. prefix="$acl_save_prefix"
  12707. if test "X$x" = "X-L$found_dir"; then
  12708. haveit=yes
  12709. break
  12710. fi
  12711. done
  12712. if test -z "$haveit"; then
  12713. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12714. fi
  12715. if test "$acl_hardcode_minus_L" != no; then
  12716. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12717. else
  12718. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12719. fi
  12720. fi
  12721. fi
  12722. fi
  12723. else
  12724. if test "X$found_a" != "X"; then
  12725. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12726. else
  12727. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12728. fi
  12729. fi
  12730. additional_includedir=
  12731. case "$found_dir" in
  12732. */$acl_libdirstem | */$acl_libdirstem/)
  12733. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12734. LIBPTH_PREFIX="$basedir"
  12735. additional_includedir="$basedir/include"
  12736. ;;
  12737. esac
  12738. if test "X$additional_includedir" != "X"; then
  12739. if test "X$additional_includedir" != "X/usr/include"; then
  12740. haveit=
  12741. if test "X$additional_includedir" = "X/usr/local/include"; then
  12742. if test -n "$GCC"; then
  12743. case $host_os in
  12744. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12745. esac
  12746. fi
  12747. fi
  12748. if test -z "$haveit"; then
  12749. for x in $CPPFLAGS $INCPTH; do
  12750. acl_save_prefix="$prefix"
  12751. prefix="$acl_final_prefix"
  12752. acl_save_exec_prefix="$exec_prefix"
  12753. exec_prefix="$acl_final_exec_prefix"
  12754. eval x=\"$x\"
  12755. exec_prefix="$acl_save_exec_prefix"
  12756. prefix="$acl_save_prefix"
  12757. if test "X$x" = "X-I$additional_includedir"; then
  12758. haveit=yes
  12759. break
  12760. fi
  12761. done
  12762. if test -z "$haveit"; then
  12763. if test -d "$additional_includedir"; then
  12764. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12765. fi
  12766. fi
  12767. fi
  12768. fi
  12769. fi
  12770. if test -n "$found_la"; then
  12771. save_libdir="$libdir"
  12772. case "$found_la" in
  12773. */* | *\\*) . "$found_la" ;;
  12774. *) . "./$found_la" ;;
  12775. esac
  12776. libdir="$save_libdir"
  12777. for dep in $dependency_libs; do
  12778. case "$dep" in
  12779. -L*)
  12780. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12781. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12782. haveit=
  12783. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12784. if test -n "$GCC"; then
  12785. case $host_os in
  12786. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12787. esac
  12788. fi
  12789. fi
  12790. if test -z "$haveit"; then
  12791. haveit=
  12792. for x in $LDFLAGS $LIBPTH; do
  12793. acl_save_prefix="$prefix"
  12794. prefix="$acl_final_prefix"
  12795. acl_save_exec_prefix="$exec_prefix"
  12796. exec_prefix="$acl_final_exec_prefix"
  12797. eval x=\"$x\"
  12798. exec_prefix="$acl_save_exec_prefix"
  12799. prefix="$acl_save_prefix"
  12800. if test "X$x" = "X-L$additional_libdir"; then
  12801. haveit=yes
  12802. break
  12803. fi
  12804. done
  12805. if test -z "$haveit"; then
  12806. if test -d "$additional_libdir"; then
  12807. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12808. fi
  12809. fi
  12810. haveit=
  12811. for x in $LDFLAGS $LTLIBPTH; do
  12812. acl_save_prefix="$prefix"
  12813. prefix="$acl_final_prefix"
  12814. acl_save_exec_prefix="$exec_prefix"
  12815. exec_prefix="$acl_final_exec_prefix"
  12816. eval x=\"$x\"
  12817. exec_prefix="$acl_save_exec_prefix"
  12818. prefix="$acl_save_prefix"
  12819. if test "X$x" = "X-L$additional_libdir"; then
  12820. haveit=yes
  12821. break
  12822. fi
  12823. done
  12824. if test -z "$haveit"; then
  12825. if test -d "$additional_libdir"; then
  12826. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12827. fi
  12828. fi
  12829. fi
  12830. fi
  12831. ;;
  12832. -R*)
  12833. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12834. if test "$enable_rpath" != no; then
  12835. haveit=
  12836. for x in $rpathdirs; do
  12837. if test "X$x" = "X$dir"; then
  12838. haveit=yes
  12839. break
  12840. fi
  12841. done
  12842. if test -z "$haveit"; then
  12843. rpathdirs="$rpathdirs $dir"
  12844. fi
  12845. haveit=
  12846. for x in $ltrpathdirs; do
  12847. if test "X$x" = "X$dir"; then
  12848. haveit=yes
  12849. break
  12850. fi
  12851. done
  12852. if test -z "$haveit"; then
  12853. ltrpathdirs="$ltrpathdirs $dir"
  12854. fi
  12855. fi
  12856. ;;
  12857. -l*)
  12858. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12859. ;;
  12860. *.la)
  12861. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12862. ;;
  12863. *)
  12864. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12865. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12866. ;;
  12867. esac
  12868. done
  12869. fi
  12870. else
  12871. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12872. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12873. fi
  12874. fi
  12875. fi
  12876. done
  12877. done
  12878. if test "X$rpathdirs" != "X"; then
  12879. if test -n "$acl_hardcode_libdir_separator"; then
  12880. alldirs=
  12881. for found_dir in $rpathdirs; do
  12882. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12883. done
  12884. acl_save_libdir="$libdir"
  12885. libdir="$alldirs"
  12886. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12887. libdir="$acl_save_libdir"
  12888. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12889. else
  12890. for found_dir in $rpathdirs; do
  12891. acl_save_libdir="$libdir"
  12892. libdir="$found_dir"
  12893. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12894. libdir="$acl_save_libdir"
  12895. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12896. done
  12897. fi
  12898. fi
  12899. if test "X$ltrpathdirs" != "X"; then
  12900. for found_dir in $ltrpathdirs; do
  12901. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12902. done
  12903. fi
  12904. ac_cv_libpth_libs="$LIBPTH"
  12905. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12906. ac_cv_libpth_cppflags="$INCPTH"
  12907. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12908. fi
  12909. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12910. $as_echo "$ac_cv_libpth_libs" >&6; }
  12911. LIBPTH="$ac_cv_libpth_libs"
  12912. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12913. INCPTH="$ac_cv_libpth_cppflags"
  12914. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12915. for element in $INCPTH; do
  12916. haveit=
  12917. for x in $CPPFLAGS; do
  12918. acl_save_prefix="$prefix"
  12919. prefix="$acl_final_prefix"
  12920. acl_save_exec_prefix="$exec_prefix"
  12921. exec_prefix="$acl_final_exec_prefix"
  12922. eval x=\"$x\"
  12923. exec_prefix="$acl_save_exec_prefix"
  12924. prefix="$acl_save_prefix"
  12925. if test "X$x" = "X$element"; then
  12926. haveit=yes
  12927. break
  12928. fi
  12929. done
  12930. if test -z "$haveit"; then
  12931. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12932. fi
  12933. done
  12934. HAVE_LIBPTH=yes
  12935. gl_have_pth=
  12936. gl_save_LIBS="$LIBS"
  12937. LIBS="$LIBS -lpth"
  12938. cat >conftest.$ac_ext <<_ACEOF
  12939. /* confdefs.h. */
  12940. _ACEOF
  12941. cat confdefs.h >>conftest.$ac_ext
  12942. cat >>conftest.$ac_ext <<_ACEOF
  12943. /* end confdefs.h. */
  12944. #include <pth.h>
  12945. int
  12946. main ()
  12947. {
  12948. pth_self();
  12949. ;
  12950. return 0;
  12951. }
  12952. _ACEOF
  12953. rm -f conftest.$ac_objext conftest$ac_exeext
  12954. if { (ac_try="$ac_link"
  12955. case "(($ac_try" in
  12956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12957. *) ac_try_echo=$ac_try;;
  12958. esac
  12959. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12960. $as_echo "$ac_try_echo") >&5
  12961. (eval "$ac_link") 2>conftest.er1
  12962. ac_status=$?
  12963. grep -v '^ *+' conftest.er1 >conftest.err
  12964. rm -f conftest.er1
  12965. cat conftest.err >&5
  12966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12967. (exit $ac_status); } && {
  12968. test -z "$ac_cxx_werror_flag" ||
  12969. test ! -s conftest.err
  12970. } && test -s conftest$ac_exeext && {
  12971. test "$cross_compiling" = yes ||
  12972. $as_test_x conftest$ac_exeext
  12973. }; then
  12974. gl_have_pth=yes
  12975. else
  12976. $as_echo "$as_me: failed program was:" >&5
  12977. sed 's/^/| /' conftest.$ac_ext >&5
  12978. fi
  12979. rm -rf conftest.dSYM
  12980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12981. conftest$ac_exeext conftest.$ac_ext
  12982. LIBS="$gl_save_LIBS"
  12983. if test -n "$gl_have_pth"; then
  12984. gl_threads_api=pth
  12985. LIBTHREAD="$LIBPTH"
  12986. LTLIBTHREAD="$LTLIBPTH"
  12987. LIBMULTITHREAD="$LIBTHREAD"
  12988. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12989. cat >>confdefs.h <<\_ACEOF
  12990. #define USE_PTH_THREADS 1
  12991. _ACEOF
  12992. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12993. if test $gl_have_weak = yes; then
  12994. cat >>confdefs.h <<\_ACEOF
  12995. #define USE_PTH_THREADS_WEAK 1
  12996. _ACEOF
  12997. LIBTHREAD=
  12998. LTLIBTHREAD=
  12999. fi
  13000. fi
  13001. else
  13002. CPPFLAGS="$gl_save_CPPFLAGS"
  13003. fi
  13004. fi
  13005. if test -z "$gl_have_pthread"; then
  13006. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  13007. if { case "$host_os" in
  13008. mingw*) true;;
  13009. *) false;;
  13010. esac
  13011. }; then
  13012. gl_threads_api=win32
  13013. cat >>confdefs.h <<\_ACEOF
  13014. #define USE_WIN32_THREADS 1
  13015. _ACEOF
  13016. fi
  13017. fi
  13018. fi
  13019. fi
  13020. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  13021. $as_echo_n "checking for multithread API to use... " >&6; }
  13022. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  13023. $as_echo "$gl_threads_api" >&6; }
  13024. use_additional=yes
  13025. acl_save_prefix="$prefix"
  13026. prefix="$acl_final_prefix"
  13027. acl_save_exec_prefix="$exec_prefix"
  13028. exec_prefix="$acl_final_exec_prefix"
  13029. eval additional_includedir=\"$includedir\"
  13030. eval additional_libdir=\"$libdir\"
  13031. exec_prefix="$acl_save_exec_prefix"
  13032. prefix="$acl_save_prefix"
  13033. # Check whether --with-libiconv-prefix was given.
  13034. if test "${with_libiconv_prefix+set}" = set; then
  13035. withval=$with_libiconv_prefix;
  13036. if test "X$withval" = "Xno"; then
  13037. use_additional=no
  13038. else
  13039. if test "X$withval" = "X"; then
  13040. acl_save_prefix="$prefix"
  13041. prefix="$acl_final_prefix"
  13042. acl_save_exec_prefix="$exec_prefix"
  13043. exec_prefix="$acl_final_exec_prefix"
  13044. eval additional_includedir=\"$includedir\"
  13045. eval additional_libdir=\"$libdir\"
  13046. exec_prefix="$acl_save_exec_prefix"
  13047. prefix="$acl_save_prefix"
  13048. else
  13049. additional_includedir="$withval/include"
  13050. additional_libdir="$withval/$acl_libdirstem"
  13051. fi
  13052. fi
  13053. fi
  13054. LIBICONV=
  13055. LTLIBICONV=
  13056. INCICONV=
  13057. LIBICONV_PREFIX=
  13058. rpathdirs=
  13059. ltrpathdirs=
  13060. names_already_handled=
  13061. names_next_round='iconv '
  13062. while test -n "$names_next_round"; do
  13063. names_this_round="$names_next_round"
  13064. names_next_round=
  13065. for name in $names_this_round; do
  13066. already_handled=
  13067. for n in $names_already_handled; do
  13068. if test "$n" = "$name"; then
  13069. already_handled=yes
  13070. break
  13071. fi
  13072. done
  13073. if test -z "$already_handled"; then
  13074. names_already_handled="$names_already_handled $name"
  13075. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13076. eval value=\"\$HAVE_LIB$uppername\"
  13077. if test -n "$value"; then
  13078. if test "$value" = yes; then
  13079. eval value=\"\$LIB$uppername\"
  13080. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13081. eval value=\"\$LTLIB$uppername\"
  13082. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13083. else
  13084. :
  13085. fi
  13086. else
  13087. found_dir=
  13088. found_la=
  13089. found_so=
  13090. found_a=
  13091. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13092. if test -n "$acl_shlibext"; then
  13093. shrext=".$acl_shlibext" # typically: shrext=.so
  13094. else
  13095. shrext=
  13096. fi
  13097. if test $use_additional = yes; then
  13098. dir="$additional_libdir"
  13099. if test -n "$acl_shlibext"; then
  13100. if test -f "$dir/$libname$shrext"; then
  13101. found_dir="$dir"
  13102. found_so="$dir/$libname$shrext"
  13103. else
  13104. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13105. ver=`(cd "$dir" && \
  13106. for f in "$libname$shrext".*; do echo "$f"; done \
  13107. | sed -e "s,^$libname$shrext\\\\.,," \
  13108. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13109. | sed 1q ) 2>/dev/null`
  13110. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13111. found_dir="$dir"
  13112. found_so="$dir/$libname$shrext.$ver"
  13113. fi
  13114. else
  13115. eval library_names=\"$acl_library_names_spec\"
  13116. for f in $library_names; do
  13117. if test -f "$dir/$f"; then
  13118. found_dir="$dir"
  13119. found_so="$dir/$f"
  13120. break
  13121. fi
  13122. done
  13123. fi
  13124. fi
  13125. fi
  13126. if test "X$found_dir" = "X"; then
  13127. if test -f "$dir/$libname.$acl_libext"; then
  13128. found_dir="$dir"
  13129. found_a="$dir/$libname.$acl_libext"
  13130. fi
  13131. fi
  13132. if test "X$found_dir" != "X"; then
  13133. if test -f "$dir/$libname.la"; then
  13134. found_la="$dir/$libname.la"
  13135. fi
  13136. fi
  13137. fi
  13138. if test "X$found_dir" = "X"; then
  13139. for x in $LDFLAGS $LTLIBICONV; do
  13140. acl_save_prefix="$prefix"
  13141. prefix="$acl_final_prefix"
  13142. acl_save_exec_prefix="$exec_prefix"
  13143. exec_prefix="$acl_final_exec_prefix"
  13144. eval x=\"$x\"
  13145. exec_prefix="$acl_save_exec_prefix"
  13146. prefix="$acl_save_prefix"
  13147. case "$x" in
  13148. -L*)
  13149. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13150. if test -n "$acl_shlibext"; then
  13151. if test -f "$dir/$libname$shrext"; then
  13152. found_dir="$dir"
  13153. found_so="$dir/$libname$shrext"
  13154. else
  13155. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13156. ver=`(cd "$dir" && \
  13157. for f in "$libname$shrext".*; do echo "$f"; done \
  13158. | sed -e "s,^$libname$shrext\\\\.,," \
  13159. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13160. | sed 1q ) 2>/dev/null`
  13161. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13162. found_dir="$dir"
  13163. found_so="$dir/$libname$shrext.$ver"
  13164. fi
  13165. else
  13166. eval library_names=\"$acl_library_names_spec\"
  13167. for f in $library_names; do
  13168. if test -f "$dir/$f"; then
  13169. found_dir="$dir"
  13170. found_so="$dir/$f"
  13171. break
  13172. fi
  13173. done
  13174. fi
  13175. fi
  13176. fi
  13177. if test "X$found_dir" = "X"; then
  13178. if test -f "$dir/$libname.$acl_libext"; then
  13179. found_dir="$dir"
  13180. found_a="$dir/$libname.$acl_libext"
  13181. fi
  13182. fi
  13183. if test "X$found_dir" != "X"; then
  13184. if test -f "$dir/$libname.la"; then
  13185. found_la="$dir/$libname.la"
  13186. fi
  13187. fi
  13188. ;;
  13189. esac
  13190. if test "X$found_dir" != "X"; then
  13191. break
  13192. fi
  13193. done
  13194. fi
  13195. if test "X$found_dir" != "X"; then
  13196. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13197. if test "X$found_so" != "X"; then
  13198. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13199. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13200. else
  13201. haveit=
  13202. for x in $ltrpathdirs; do
  13203. if test "X$x" = "X$found_dir"; then
  13204. haveit=yes
  13205. break
  13206. fi
  13207. done
  13208. if test -z "$haveit"; then
  13209. ltrpathdirs="$ltrpathdirs $found_dir"
  13210. fi
  13211. if test "$acl_hardcode_direct" = yes; then
  13212. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13213. else
  13214. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13215. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13216. haveit=
  13217. for x in $rpathdirs; do
  13218. if test "X$x" = "X$found_dir"; then
  13219. haveit=yes
  13220. break
  13221. fi
  13222. done
  13223. if test -z "$haveit"; then
  13224. rpathdirs="$rpathdirs $found_dir"
  13225. fi
  13226. else
  13227. haveit=
  13228. for x in $LDFLAGS $LIBICONV; do
  13229. acl_save_prefix="$prefix"
  13230. prefix="$acl_final_prefix"
  13231. acl_save_exec_prefix="$exec_prefix"
  13232. exec_prefix="$acl_final_exec_prefix"
  13233. eval x=\"$x\"
  13234. exec_prefix="$acl_save_exec_prefix"
  13235. prefix="$acl_save_prefix"
  13236. if test "X$x" = "X-L$found_dir"; then
  13237. haveit=yes
  13238. break
  13239. fi
  13240. done
  13241. if test -z "$haveit"; then
  13242. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13243. fi
  13244. if test "$acl_hardcode_minus_L" != no; then
  13245. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13246. else
  13247. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13248. fi
  13249. fi
  13250. fi
  13251. fi
  13252. else
  13253. if test "X$found_a" != "X"; then
  13254. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13255. else
  13256. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13257. fi
  13258. fi
  13259. additional_includedir=
  13260. case "$found_dir" in
  13261. */$acl_libdirstem | */$acl_libdirstem/)
  13262. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13263. LIBICONV_PREFIX="$basedir"
  13264. additional_includedir="$basedir/include"
  13265. ;;
  13266. esac
  13267. if test "X$additional_includedir" != "X"; then
  13268. if test "X$additional_includedir" != "X/usr/include"; then
  13269. haveit=
  13270. if test "X$additional_includedir" = "X/usr/local/include"; then
  13271. if test -n "$GCC"; then
  13272. case $host_os in
  13273. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13274. esac
  13275. fi
  13276. fi
  13277. if test -z "$haveit"; then
  13278. for x in $CPPFLAGS $INCICONV; do
  13279. acl_save_prefix="$prefix"
  13280. prefix="$acl_final_prefix"
  13281. acl_save_exec_prefix="$exec_prefix"
  13282. exec_prefix="$acl_final_exec_prefix"
  13283. eval x=\"$x\"
  13284. exec_prefix="$acl_save_exec_prefix"
  13285. prefix="$acl_save_prefix"
  13286. if test "X$x" = "X-I$additional_includedir"; then
  13287. haveit=yes
  13288. break
  13289. fi
  13290. done
  13291. if test -z "$haveit"; then
  13292. if test -d "$additional_includedir"; then
  13293. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13294. fi
  13295. fi
  13296. fi
  13297. fi
  13298. fi
  13299. if test -n "$found_la"; then
  13300. save_libdir="$libdir"
  13301. case "$found_la" in
  13302. */* | *\\*) . "$found_la" ;;
  13303. *) . "./$found_la" ;;
  13304. esac
  13305. libdir="$save_libdir"
  13306. for dep in $dependency_libs; do
  13307. case "$dep" in
  13308. -L*)
  13309. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13310. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13311. haveit=
  13312. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13313. if test -n "$GCC"; then
  13314. case $host_os in
  13315. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13316. esac
  13317. fi
  13318. fi
  13319. if test -z "$haveit"; then
  13320. haveit=
  13321. for x in $LDFLAGS $LIBICONV; do
  13322. acl_save_prefix="$prefix"
  13323. prefix="$acl_final_prefix"
  13324. acl_save_exec_prefix="$exec_prefix"
  13325. exec_prefix="$acl_final_exec_prefix"
  13326. eval x=\"$x\"
  13327. exec_prefix="$acl_save_exec_prefix"
  13328. prefix="$acl_save_prefix"
  13329. if test "X$x" = "X-L$additional_libdir"; then
  13330. haveit=yes
  13331. break
  13332. fi
  13333. done
  13334. if test -z "$haveit"; then
  13335. if test -d "$additional_libdir"; then
  13336. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13337. fi
  13338. fi
  13339. haveit=
  13340. for x in $LDFLAGS $LTLIBICONV; do
  13341. acl_save_prefix="$prefix"
  13342. prefix="$acl_final_prefix"
  13343. acl_save_exec_prefix="$exec_prefix"
  13344. exec_prefix="$acl_final_exec_prefix"
  13345. eval x=\"$x\"
  13346. exec_prefix="$acl_save_exec_prefix"
  13347. prefix="$acl_save_prefix"
  13348. if test "X$x" = "X-L$additional_libdir"; then
  13349. haveit=yes
  13350. break
  13351. fi
  13352. done
  13353. if test -z "$haveit"; then
  13354. if test -d "$additional_libdir"; then
  13355. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13356. fi
  13357. fi
  13358. fi
  13359. fi
  13360. ;;
  13361. -R*)
  13362. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13363. if test "$enable_rpath" != no; then
  13364. haveit=
  13365. for x in $rpathdirs; do
  13366. if test "X$x" = "X$dir"; then
  13367. haveit=yes
  13368. break
  13369. fi
  13370. done
  13371. if test -z "$haveit"; then
  13372. rpathdirs="$rpathdirs $dir"
  13373. fi
  13374. haveit=
  13375. for x in $ltrpathdirs; do
  13376. if test "X$x" = "X$dir"; then
  13377. haveit=yes
  13378. break
  13379. fi
  13380. done
  13381. if test -z "$haveit"; then
  13382. ltrpathdirs="$ltrpathdirs $dir"
  13383. fi
  13384. fi
  13385. ;;
  13386. -l*)
  13387. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13388. ;;
  13389. *.la)
  13390. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13391. ;;
  13392. *)
  13393. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13394. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13395. ;;
  13396. esac
  13397. done
  13398. fi
  13399. else
  13400. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13401. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13402. fi
  13403. fi
  13404. fi
  13405. done
  13406. done
  13407. if test "X$rpathdirs" != "X"; then
  13408. if test -n "$acl_hardcode_libdir_separator"; then
  13409. alldirs=
  13410. for found_dir in $rpathdirs; do
  13411. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13412. done
  13413. acl_save_libdir="$libdir"
  13414. libdir="$alldirs"
  13415. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13416. libdir="$acl_save_libdir"
  13417. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13418. else
  13419. for found_dir in $rpathdirs; do
  13420. acl_save_libdir="$libdir"
  13421. libdir="$found_dir"
  13422. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13423. libdir="$acl_save_libdir"
  13424. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13425. done
  13426. fi
  13427. fi
  13428. if test "X$ltrpathdirs" != "X"; then
  13429. for found_dir in $ltrpathdirs; do
  13430. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13431. done
  13432. fi
  13433. cat >conftest.$ac_ext <<_ACEOF
  13434. /* confdefs.h. */
  13435. _ACEOF
  13436. cat confdefs.h >>conftest.$ac_ext
  13437. cat >>conftest.$ac_ext <<_ACEOF
  13438. /* end confdefs.h. */
  13439. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13440. int
  13441. main ()
  13442. {
  13443. ;
  13444. return 0;
  13445. }
  13446. _ACEOF
  13447. rm -f conftest.$ac_objext conftest$ac_exeext
  13448. if { (ac_try="$ac_link"
  13449. case "(($ac_try" in
  13450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13451. *) ac_try_echo=$ac_try;;
  13452. esac
  13453. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13454. $as_echo "$ac_try_echo") >&5
  13455. (eval "$ac_link") 2>conftest.er1
  13456. ac_status=$?
  13457. grep -v '^ *+' conftest.er1 >conftest.err
  13458. rm -f conftest.er1
  13459. cat conftest.err >&5
  13460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13461. (exit $ac_status); } && {
  13462. test -z "$ac_cxx_werror_flag" ||
  13463. test ! -s conftest.err
  13464. } && test -s conftest$ac_exeext && {
  13465. test "$cross_compiling" = yes ||
  13466. $as_test_x conftest$ac_exeext
  13467. }; then
  13468. cat >>confdefs.h <<\_ACEOF
  13469. #define HAVE_BUILTIN_EXPECT 1
  13470. _ACEOF
  13471. else
  13472. $as_echo "$as_me: failed program was:" >&5
  13473. sed 's/^/| /' conftest.$ac_ext >&5
  13474. fi
  13475. rm -rf conftest.dSYM
  13476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13477. conftest$ac_exeext conftest.$ac_ext
  13478. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13479. do
  13480. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13481. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13482. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13483. $as_echo_n "checking for $ac_header... " >&6; }
  13484. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13485. $as_echo_n "(cached) " >&6
  13486. fi
  13487. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13488. $as_echo "$as_val"'`
  13489. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13490. $as_echo "$ac_res" >&6; }
  13491. else
  13492. # Is the header compilable?
  13493. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13494. $as_echo_n "checking $ac_header usability... " >&6; }
  13495. cat >conftest.$ac_ext <<_ACEOF
  13496. /* confdefs.h. */
  13497. _ACEOF
  13498. cat confdefs.h >>conftest.$ac_ext
  13499. cat >>conftest.$ac_ext <<_ACEOF
  13500. /* end confdefs.h. */
  13501. $ac_includes_default
  13502. #include <$ac_header>
  13503. _ACEOF
  13504. rm -f conftest.$ac_objext
  13505. if { (ac_try="$ac_compile"
  13506. case "(($ac_try" in
  13507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13508. *) ac_try_echo=$ac_try;;
  13509. esac
  13510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13511. $as_echo "$ac_try_echo") >&5
  13512. (eval "$ac_compile") 2>conftest.er1
  13513. ac_status=$?
  13514. grep -v '^ *+' conftest.er1 >conftest.err
  13515. rm -f conftest.er1
  13516. cat conftest.err >&5
  13517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13518. (exit $ac_status); } && {
  13519. test -z "$ac_cxx_werror_flag" ||
  13520. test ! -s conftest.err
  13521. } && test -s conftest.$ac_objext; then
  13522. ac_header_compiler=yes
  13523. else
  13524. $as_echo "$as_me: failed program was:" >&5
  13525. sed 's/^/| /' conftest.$ac_ext >&5
  13526. ac_header_compiler=no
  13527. fi
  13528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13529. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13530. $as_echo "$ac_header_compiler" >&6; }
  13531. # Is the header present?
  13532. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13533. $as_echo_n "checking $ac_header presence... " >&6; }
  13534. cat >conftest.$ac_ext <<_ACEOF
  13535. /* confdefs.h. */
  13536. _ACEOF
  13537. cat confdefs.h >>conftest.$ac_ext
  13538. cat >>conftest.$ac_ext <<_ACEOF
  13539. /* end confdefs.h. */
  13540. #include <$ac_header>
  13541. _ACEOF
  13542. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13543. case "(($ac_try" in
  13544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13545. *) ac_try_echo=$ac_try;;
  13546. esac
  13547. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13548. $as_echo "$ac_try_echo") >&5
  13549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13550. ac_status=$?
  13551. grep -v '^ *+' conftest.er1 >conftest.err
  13552. rm -f conftest.er1
  13553. cat conftest.err >&5
  13554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13555. (exit $ac_status); } >/dev/null && {
  13556. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13557. test ! -s conftest.err
  13558. }; then
  13559. ac_header_preproc=yes
  13560. else
  13561. $as_echo "$as_me: failed program was:" >&5
  13562. sed 's/^/| /' conftest.$ac_ext >&5
  13563. ac_header_preproc=no
  13564. fi
  13565. rm -f conftest.err conftest.$ac_ext
  13566. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13567. $as_echo "$ac_header_preproc" >&6; }
  13568. # So? What about this header?
  13569. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13570. yes:no: )
  13571. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13572. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13574. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13575. ac_header_preproc=yes
  13576. ;;
  13577. no:yes:* )
  13578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13579. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13581. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13583. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13585. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13587. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13589. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13590. ( cat <<\_ASBOX
  13591. ## ----------------------------------------------- ##
  13592. ## Report this to t-tujikawa@users.sourceforge.net ##
  13593. ## ----------------------------------------------- ##
  13594. _ASBOX
  13595. ) | sed "s/^/$as_me: WARNING: /" >&2
  13596. ;;
  13597. esac
  13598. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13599. $as_echo_n "checking for $ac_header... " >&6; }
  13600. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. eval "$as_ac_Header=\$ac_header_preproc"
  13604. fi
  13605. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13606. $as_echo "$as_val"'`
  13607. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13608. $as_echo "$ac_res" >&6; }
  13609. fi
  13610. as_val=`eval 'as_val=${'$as_ac_Header'}
  13611. $as_echo "$as_val"'`
  13612. if test "x$as_val" = x""yes; then
  13613. cat >>confdefs.h <<_ACEOF
  13614. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13615. _ACEOF
  13616. fi
  13617. done
  13618. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13619. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13620. argz_next __fsetlocking
  13621. do
  13622. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13623. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13624. $as_echo_n "checking for $ac_func... " >&6; }
  13625. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13626. $as_echo_n "(cached) " >&6
  13627. else
  13628. cat >conftest.$ac_ext <<_ACEOF
  13629. /* confdefs.h. */
  13630. _ACEOF
  13631. cat confdefs.h >>conftest.$ac_ext
  13632. cat >>conftest.$ac_ext <<_ACEOF
  13633. /* end confdefs.h. */
  13634. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13635. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13636. #define $ac_func innocuous_$ac_func
  13637. /* System header to define __stub macros and hopefully few prototypes,
  13638. which can conflict with char $ac_func (); below.
  13639. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13640. <limits.h> exists even on freestanding compilers. */
  13641. #ifdef __STDC__
  13642. # include <limits.h>
  13643. #else
  13644. # include <assert.h>
  13645. #endif
  13646. #undef $ac_func
  13647. /* Override any GCC internal prototype to avoid an error.
  13648. Use char because int might match the return type of a GCC
  13649. builtin and then its argument prototype would still apply. */
  13650. #ifdef __cplusplus
  13651. extern "C"
  13652. #endif
  13653. char $ac_func ();
  13654. /* The GNU C library defines this for functions which it implements
  13655. to always fail with ENOSYS. Some functions are actually named
  13656. something starting with __ and the normal name is an alias. */
  13657. #if defined __stub_$ac_func || defined __stub___$ac_func
  13658. choke me
  13659. #endif
  13660. int
  13661. main ()
  13662. {
  13663. return $ac_func ();
  13664. ;
  13665. return 0;
  13666. }
  13667. _ACEOF
  13668. rm -f conftest.$ac_objext conftest$ac_exeext
  13669. if { (ac_try="$ac_link"
  13670. case "(($ac_try" in
  13671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13672. *) ac_try_echo=$ac_try;;
  13673. esac
  13674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13675. $as_echo "$ac_try_echo") >&5
  13676. (eval "$ac_link") 2>conftest.er1
  13677. ac_status=$?
  13678. grep -v '^ *+' conftest.er1 >conftest.err
  13679. rm -f conftest.er1
  13680. cat conftest.err >&5
  13681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13682. (exit $ac_status); } && {
  13683. test -z "$ac_cxx_werror_flag" ||
  13684. test ! -s conftest.err
  13685. } && test -s conftest$ac_exeext && {
  13686. test "$cross_compiling" = yes ||
  13687. $as_test_x conftest$ac_exeext
  13688. }; then
  13689. eval "$as_ac_var=yes"
  13690. else
  13691. $as_echo "$as_me: failed program was:" >&5
  13692. sed 's/^/| /' conftest.$ac_ext >&5
  13693. eval "$as_ac_var=no"
  13694. fi
  13695. rm -rf conftest.dSYM
  13696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13697. conftest$ac_exeext conftest.$ac_ext
  13698. fi
  13699. ac_res=`eval 'as_val=${'$as_ac_var'}
  13700. $as_echo "$as_val"'`
  13701. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13702. $as_echo "$ac_res" >&6; }
  13703. as_val=`eval 'as_val=${'$as_ac_var'}
  13704. $as_echo "$as_val"'`
  13705. if test "x$as_val" = x""yes; then
  13706. cat >>confdefs.h <<_ACEOF
  13707. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13708. _ACEOF
  13709. fi
  13710. done
  13711. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13712. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13713. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. cat >conftest.$ac_ext <<_ACEOF
  13717. /* confdefs.h. */
  13718. _ACEOF
  13719. cat confdefs.h >>conftest.$ac_ext
  13720. cat >>conftest.$ac_ext <<_ACEOF
  13721. /* end confdefs.h. */
  13722. #include <stdio.h>
  13723. int
  13724. main ()
  13725. {
  13726. #ifndef feof_unlocked
  13727. char *p = (char *) feof_unlocked;
  13728. #endif
  13729. ;
  13730. return 0;
  13731. }
  13732. _ACEOF
  13733. rm -f conftest.$ac_objext
  13734. if { (ac_try="$ac_compile"
  13735. case "(($ac_try" in
  13736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13737. *) ac_try_echo=$ac_try;;
  13738. esac
  13739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13740. $as_echo "$ac_try_echo") >&5
  13741. (eval "$ac_compile") 2>conftest.er1
  13742. ac_status=$?
  13743. grep -v '^ *+' conftest.er1 >conftest.err
  13744. rm -f conftest.er1
  13745. cat conftest.err >&5
  13746. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13747. (exit $ac_status); } && {
  13748. test -z "$ac_cxx_werror_flag" ||
  13749. test ! -s conftest.err
  13750. } && test -s conftest.$ac_objext; then
  13751. ac_cv_have_decl_feof_unlocked=yes
  13752. else
  13753. $as_echo "$as_me: failed program was:" >&5
  13754. sed 's/^/| /' conftest.$ac_ext >&5
  13755. ac_cv_have_decl_feof_unlocked=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13758. fi
  13759. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13760. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13761. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13762. gt_value=1
  13763. else
  13764. gt_value=0
  13765. fi
  13766. cat >>confdefs.h <<_ACEOF
  13767. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13768. _ACEOF
  13769. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13770. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13771. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. cat >conftest.$ac_ext <<_ACEOF
  13775. /* confdefs.h. */
  13776. _ACEOF
  13777. cat confdefs.h >>conftest.$ac_ext
  13778. cat >>conftest.$ac_ext <<_ACEOF
  13779. /* end confdefs.h. */
  13780. #include <stdio.h>
  13781. int
  13782. main ()
  13783. {
  13784. #ifndef fgets_unlocked
  13785. char *p = (char *) fgets_unlocked;
  13786. #endif
  13787. ;
  13788. return 0;
  13789. }
  13790. _ACEOF
  13791. rm -f conftest.$ac_objext
  13792. if { (ac_try="$ac_compile"
  13793. case "(($ac_try" in
  13794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13795. *) ac_try_echo=$ac_try;;
  13796. esac
  13797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13798. $as_echo "$ac_try_echo") >&5
  13799. (eval "$ac_compile") 2>conftest.er1
  13800. ac_status=$?
  13801. grep -v '^ *+' conftest.er1 >conftest.err
  13802. rm -f conftest.er1
  13803. cat conftest.err >&5
  13804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13805. (exit $ac_status); } && {
  13806. test -z "$ac_cxx_werror_flag" ||
  13807. test ! -s conftest.err
  13808. } && test -s conftest.$ac_objext; then
  13809. ac_cv_have_decl_fgets_unlocked=yes
  13810. else
  13811. $as_echo "$as_me: failed program was:" >&5
  13812. sed 's/^/| /' conftest.$ac_ext >&5
  13813. ac_cv_have_decl_fgets_unlocked=no
  13814. fi
  13815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13816. fi
  13817. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13818. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13819. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13820. gt_value=1
  13821. else
  13822. gt_value=0
  13823. fi
  13824. cat >>confdefs.h <<_ACEOF
  13825. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13826. _ACEOF
  13827. am_save_CPPFLAGS="$CPPFLAGS"
  13828. for element in $INCICONV; do
  13829. haveit=
  13830. for x in $CPPFLAGS; do
  13831. acl_save_prefix="$prefix"
  13832. prefix="$acl_final_prefix"
  13833. acl_save_exec_prefix="$exec_prefix"
  13834. exec_prefix="$acl_final_exec_prefix"
  13835. eval x=\"$x\"
  13836. exec_prefix="$acl_save_exec_prefix"
  13837. prefix="$acl_save_prefix"
  13838. if test "X$x" = "X$element"; then
  13839. haveit=yes
  13840. break
  13841. fi
  13842. done
  13843. if test -z "$haveit"; then
  13844. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13845. fi
  13846. done
  13847. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13848. $as_echo_n "checking for iconv... " >&6; }
  13849. if test "${am_cv_func_iconv+set}" = set; then
  13850. $as_echo_n "(cached) " >&6
  13851. else
  13852. am_cv_func_iconv="no, consider installing GNU libiconv"
  13853. am_cv_lib_iconv=no
  13854. cat >conftest.$ac_ext <<_ACEOF
  13855. /* confdefs.h. */
  13856. _ACEOF
  13857. cat confdefs.h >>conftest.$ac_ext
  13858. cat >>conftest.$ac_ext <<_ACEOF
  13859. /* end confdefs.h. */
  13860. #include <stdlib.h>
  13861. #include <iconv.h>
  13862. int
  13863. main ()
  13864. {
  13865. iconv_t cd = iconv_open("","");
  13866. iconv(cd,NULL,NULL,NULL,NULL);
  13867. iconv_close(cd);
  13868. ;
  13869. return 0;
  13870. }
  13871. _ACEOF
  13872. rm -f conftest.$ac_objext conftest$ac_exeext
  13873. if { (ac_try="$ac_link"
  13874. case "(($ac_try" in
  13875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13876. *) ac_try_echo=$ac_try;;
  13877. esac
  13878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13879. $as_echo "$ac_try_echo") >&5
  13880. (eval "$ac_link") 2>conftest.er1
  13881. ac_status=$?
  13882. grep -v '^ *+' conftest.er1 >conftest.err
  13883. rm -f conftest.er1
  13884. cat conftest.err >&5
  13885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13886. (exit $ac_status); } && {
  13887. test -z "$ac_cxx_werror_flag" ||
  13888. test ! -s conftest.err
  13889. } && test -s conftest$ac_exeext && {
  13890. test "$cross_compiling" = yes ||
  13891. $as_test_x conftest$ac_exeext
  13892. }; then
  13893. am_cv_func_iconv=yes
  13894. else
  13895. $as_echo "$as_me: failed program was:" >&5
  13896. sed 's/^/| /' conftest.$ac_ext >&5
  13897. fi
  13898. rm -rf conftest.dSYM
  13899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13900. conftest$ac_exeext conftest.$ac_ext
  13901. if test "$am_cv_func_iconv" != yes; then
  13902. am_save_LIBS="$LIBS"
  13903. LIBS="$LIBS $LIBICONV"
  13904. cat >conftest.$ac_ext <<_ACEOF
  13905. /* confdefs.h. */
  13906. _ACEOF
  13907. cat confdefs.h >>conftest.$ac_ext
  13908. cat >>conftest.$ac_ext <<_ACEOF
  13909. /* end confdefs.h. */
  13910. #include <stdlib.h>
  13911. #include <iconv.h>
  13912. int
  13913. main ()
  13914. {
  13915. iconv_t cd = iconv_open("","");
  13916. iconv(cd,NULL,NULL,NULL,NULL);
  13917. iconv_close(cd);
  13918. ;
  13919. return 0;
  13920. }
  13921. _ACEOF
  13922. rm -f conftest.$ac_objext conftest$ac_exeext
  13923. if { (ac_try="$ac_link"
  13924. case "(($ac_try" in
  13925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13926. *) ac_try_echo=$ac_try;;
  13927. esac
  13928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13929. $as_echo "$ac_try_echo") >&5
  13930. (eval "$ac_link") 2>conftest.er1
  13931. ac_status=$?
  13932. grep -v '^ *+' conftest.er1 >conftest.err
  13933. rm -f conftest.er1
  13934. cat conftest.err >&5
  13935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13936. (exit $ac_status); } && {
  13937. test -z "$ac_cxx_werror_flag" ||
  13938. test ! -s conftest.err
  13939. } && test -s conftest$ac_exeext && {
  13940. test "$cross_compiling" = yes ||
  13941. $as_test_x conftest$ac_exeext
  13942. }; then
  13943. am_cv_lib_iconv=yes
  13944. am_cv_func_iconv=yes
  13945. else
  13946. $as_echo "$as_me: failed program was:" >&5
  13947. sed 's/^/| /' conftest.$ac_ext >&5
  13948. fi
  13949. rm -rf conftest.dSYM
  13950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13951. conftest$ac_exeext conftest.$ac_ext
  13952. LIBS="$am_save_LIBS"
  13953. fi
  13954. fi
  13955. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13956. $as_echo "$am_cv_func_iconv" >&6; }
  13957. if test "$am_cv_func_iconv" = yes; then
  13958. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13959. $as_echo_n "checking for working iconv... " >&6; }
  13960. if test "${am_cv_func_iconv_works+set}" = set; then
  13961. $as_echo_n "(cached) " >&6
  13962. else
  13963. am_save_LIBS="$LIBS"
  13964. if test $am_cv_lib_iconv = yes; then
  13965. LIBS="$LIBS $LIBICONV"
  13966. fi
  13967. if test "$cross_compiling" = yes; then
  13968. case "$host_os" in
  13969. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13970. *) am_cv_func_iconv_works="guessing yes" ;;
  13971. esac
  13972. else
  13973. cat >conftest.$ac_ext <<_ACEOF
  13974. /* confdefs.h. */
  13975. _ACEOF
  13976. cat confdefs.h >>conftest.$ac_ext
  13977. cat >>conftest.$ac_ext <<_ACEOF
  13978. /* end confdefs.h. */
  13979. #include <iconv.h>
  13980. #include <string.h>
  13981. int main ()
  13982. {
  13983. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13984. returns. */
  13985. {
  13986. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13987. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13988. {
  13989. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13990. char buf[10];
  13991. const char *inptr = input;
  13992. size_t inbytesleft = strlen (input);
  13993. char *outptr = buf;
  13994. size_t outbytesleft = sizeof (buf);
  13995. size_t res = iconv (cd_utf8_to_88591,
  13996. (char **) &inptr, &inbytesleft,
  13997. &outptr, &outbytesleft);
  13998. if (res == 0)
  13999. return 1;
  14000. }
  14001. }
  14002. #if 0 /* This bug could be worked around by the caller. */
  14003. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  14004. {
  14005. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  14006. if (cd_88591_to_utf8 != (iconv_t)(-1))
  14007. {
  14008. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  14009. char buf[50];
  14010. const char *inptr = input;
  14011. size_t inbytesleft = strlen (input);
  14012. char *outptr = buf;
  14013. size_t outbytesleft = sizeof (buf);
  14014. size_t res = iconv (cd_88591_to_utf8,
  14015. (char **) &inptr, &inbytesleft,
  14016. &outptr, &outbytesleft);
  14017. if ((int)res > 0)
  14018. return 1;
  14019. }
  14020. }
  14021. #endif
  14022. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  14023. provided. */
  14024. if (/* Try standardized names. */
  14025. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  14026. /* Try IRIX, OSF/1 names. */
  14027. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  14028. /* Try AIX names. */
  14029. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  14030. /* Try HP-UX names. */
  14031. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  14032. return 1;
  14033. return 0;
  14034. }
  14035. _ACEOF
  14036. rm -f conftest$ac_exeext
  14037. if { (ac_try="$ac_link"
  14038. case "(($ac_try" in
  14039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14040. *) ac_try_echo=$ac_try;;
  14041. esac
  14042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14043. $as_echo "$ac_try_echo") >&5
  14044. (eval "$ac_link") 2>&5
  14045. ac_status=$?
  14046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14047. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14048. { (case "(($ac_try" in
  14049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14050. *) ac_try_echo=$ac_try;;
  14051. esac
  14052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14053. $as_echo "$ac_try_echo") >&5
  14054. (eval "$ac_try") 2>&5
  14055. ac_status=$?
  14056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14057. (exit $ac_status); }; }; then
  14058. am_cv_func_iconv_works=yes
  14059. else
  14060. $as_echo "$as_me: program exited with status $ac_status" >&5
  14061. $as_echo "$as_me: failed program was:" >&5
  14062. sed 's/^/| /' conftest.$ac_ext >&5
  14063. ( exit $ac_status )
  14064. am_cv_func_iconv_works=no
  14065. fi
  14066. rm -rf conftest.dSYM
  14067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14068. fi
  14069. LIBS="$am_save_LIBS"
  14070. fi
  14071. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  14072. $as_echo "$am_cv_func_iconv_works" >&6; }
  14073. case "$am_cv_func_iconv_works" in
  14074. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  14075. *) am_func_iconv=yes ;;
  14076. esac
  14077. else
  14078. am_func_iconv=no am_cv_lib_iconv=no
  14079. fi
  14080. if test "$am_func_iconv" = yes; then
  14081. cat >>confdefs.h <<\_ACEOF
  14082. #define HAVE_ICONV 1
  14083. _ACEOF
  14084. fi
  14085. if test "$am_cv_lib_iconv" = yes; then
  14086. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  14087. $as_echo_n "checking how to link with libiconv... " >&6; }
  14088. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  14089. $as_echo "$LIBICONV" >&6; }
  14090. else
  14091. CPPFLAGS="$am_save_CPPFLAGS"
  14092. LIBICONV=
  14093. LTLIBICONV=
  14094. fi
  14095. if test "$am_cv_func_iconv" = yes; then
  14096. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  14097. $as_echo_n "checking for iconv declaration... " >&6; }
  14098. if test "${am_cv_proto_iconv+set}" = set; then
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. cat >conftest.$ac_ext <<_ACEOF
  14102. /* confdefs.h. */
  14103. _ACEOF
  14104. cat confdefs.h >>conftest.$ac_ext
  14105. cat >>conftest.$ac_ext <<_ACEOF
  14106. /* end confdefs.h. */
  14107. #include <stdlib.h>
  14108. #include <iconv.h>
  14109. extern
  14110. #ifdef __cplusplus
  14111. "C"
  14112. #endif
  14113. #if defined(__STDC__) || defined(__cplusplus)
  14114. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  14115. #else
  14116. size_t iconv();
  14117. #endif
  14118. int
  14119. main ()
  14120. {
  14121. ;
  14122. return 0;
  14123. }
  14124. _ACEOF
  14125. rm -f conftest.$ac_objext
  14126. if { (ac_try="$ac_compile"
  14127. case "(($ac_try" in
  14128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14129. *) ac_try_echo=$ac_try;;
  14130. esac
  14131. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14132. $as_echo "$ac_try_echo") >&5
  14133. (eval "$ac_compile") 2>conftest.er1
  14134. ac_status=$?
  14135. grep -v '^ *+' conftest.er1 >conftest.err
  14136. rm -f conftest.er1
  14137. cat conftest.err >&5
  14138. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14139. (exit $ac_status); } && {
  14140. test -z "$ac_cxx_werror_flag" ||
  14141. test ! -s conftest.err
  14142. } && test -s conftest.$ac_objext; then
  14143. am_cv_proto_iconv_arg1=""
  14144. else
  14145. $as_echo "$as_me: failed program was:" >&5
  14146. sed 's/^/| /' conftest.$ac_ext >&5
  14147. am_cv_proto_iconv_arg1="const"
  14148. fi
  14149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14150. 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);"
  14151. fi
  14152. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  14153. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  14154. }$am_cv_proto_iconv" >&5
  14155. $as_echo "${ac_t:-
  14156. }$am_cv_proto_iconv" >&6; }
  14157. cat >>confdefs.h <<_ACEOF
  14158. #define ICONV_CONST $am_cv_proto_iconv_arg1
  14159. _ACEOF
  14160. fi
  14161. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  14162. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  14163. if test "${gt_cv_nl_locale_name+set}" = set; then
  14164. $as_echo_n "(cached) " >&6
  14165. else
  14166. cat >conftest.$ac_ext <<_ACEOF
  14167. /* confdefs.h. */
  14168. _ACEOF
  14169. cat confdefs.h >>conftest.$ac_ext
  14170. cat >>conftest.$ac_ext <<_ACEOF
  14171. /* end confdefs.h. */
  14172. #include <langinfo.h>
  14173. #include <locale.h>
  14174. int
  14175. main ()
  14176. {
  14177. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  14178. return !cs;
  14179. ;
  14180. return 0;
  14181. }
  14182. _ACEOF
  14183. rm -f conftest.$ac_objext conftest$ac_exeext
  14184. if { (ac_try="$ac_link"
  14185. case "(($ac_try" in
  14186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14187. *) ac_try_echo=$ac_try;;
  14188. esac
  14189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14190. $as_echo "$ac_try_echo") >&5
  14191. (eval "$ac_link") 2>conftest.er1
  14192. ac_status=$?
  14193. grep -v '^ *+' conftest.er1 >conftest.err
  14194. rm -f conftest.er1
  14195. cat conftest.err >&5
  14196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14197. (exit $ac_status); } && {
  14198. test -z "$ac_cxx_werror_flag" ||
  14199. test ! -s conftest.err
  14200. } && test -s conftest$ac_exeext && {
  14201. test "$cross_compiling" = yes ||
  14202. $as_test_x conftest$ac_exeext
  14203. }; then
  14204. gt_cv_nl_locale_name=yes
  14205. else
  14206. $as_echo "$as_me: failed program was:" >&5
  14207. sed 's/^/| /' conftest.$ac_ext >&5
  14208. gt_cv_nl_locale_name=no
  14209. fi
  14210. rm -rf conftest.dSYM
  14211. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14212. conftest$ac_exeext conftest.$ac_ext
  14213. fi
  14214. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  14215. $as_echo "$gt_cv_nl_locale_name" >&6; }
  14216. if test $gt_cv_nl_locale_name = yes; then
  14217. cat >>confdefs.h <<\_ACEOF
  14218. #define HAVE_NL_LOCALE_NAME 1
  14219. _ACEOF
  14220. fi
  14221. for ac_prog in bison
  14222. do
  14223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14224. set dummy $ac_prog; ac_word=$2
  14225. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14226. $as_echo_n "checking for $ac_word... " >&6; }
  14227. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  14228. $as_echo_n "(cached) " >&6
  14229. else
  14230. if test -n "$INTLBISON"; then
  14231. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  14232. else
  14233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14234. for as_dir in $PATH
  14235. do
  14236. IFS=$as_save_IFS
  14237. test -z "$as_dir" && as_dir=.
  14238. for ac_exec_ext in '' $ac_executable_extensions; do
  14239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14240. ac_cv_prog_INTLBISON="$ac_prog"
  14241. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14242. break 2
  14243. fi
  14244. done
  14245. done
  14246. IFS=$as_save_IFS
  14247. fi
  14248. fi
  14249. INTLBISON=$ac_cv_prog_INTLBISON
  14250. if test -n "$INTLBISON"; then
  14251. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14252. $as_echo "$INTLBISON" >&6; }
  14253. else
  14254. { $as_echo "$as_me:$LINENO: result: no" >&5
  14255. $as_echo "no" >&6; }
  14256. fi
  14257. test -n "$INTLBISON" && break
  14258. done
  14259. if test -z "$INTLBISON"; then
  14260. ac_verc_fail=yes
  14261. else
  14262. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14263. $as_echo_n "checking version of bison... " >&6; }
  14264. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14265. case $ac_prog_version in
  14266. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14267. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14268. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14269. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14270. esac
  14271. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14272. $as_echo "$ac_prog_version" >&6; }
  14273. fi
  14274. if test $ac_verc_fail = yes; then
  14275. INTLBISON=:
  14276. fi
  14277. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14278. $as_echo_n "checking for long long int... " >&6; }
  14279. if test "${ac_cv_type_long_long_int+set}" = set; then
  14280. $as_echo_n "(cached) " >&6
  14281. else
  14282. cat >conftest.$ac_ext <<_ACEOF
  14283. /* confdefs.h. */
  14284. _ACEOF
  14285. cat confdefs.h >>conftest.$ac_ext
  14286. cat >>conftest.$ac_ext <<_ACEOF
  14287. /* end confdefs.h. */
  14288. /* Test preprocessor. */
  14289. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14290. error in preprocessor;
  14291. #endif
  14292. #if ! (18446744073709551615ULL <= -1ull)
  14293. error in preprocessor;
  14294. #endif
  14295. /* Test literals. */
  14296. long long int ll = 9223372036854775807ll;
  14297. long long int nll = -9223372036854775807LL;
  14298. unsigned long long int ull = 18446744073709551615ULL;
  14299. /* Test constant expressions. */
  14300. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14301. ? 1 : -1)];
  14302. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14303. ? 1 : -1)];
  14304. int i = 63;
  14305. int
  14306. main ()
  14307. {
  14308. /* Test availability of runtime routines for shift and division. */
  14309. long long int llmax = 9223372036854775807ll;
  14310. unsigned long long int ullmax = 18446744073709551615ull;
  14311. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14312. | (llmax / ll) | (llmax % ll)
  14313. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14314. | (ullmax / ull) | (ullmax % ull));
  14315. ;
  14316. return 0;
  14317. }
  14318. _ACEOF
  14319. rm -f conftest.$ac_objext conftest$ac_exeext
  14320. if { (ac_try="$ac_link"
  14321. case "(($ac_try" in
  14322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14323. *) ac_try_echo=$ac_try;;
  14324. esac
  14325. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14326. $as_echo "$ac_try_echo") >&5
  14327. (eval "$ac_link") 2>conftest.er1
  14328. ac_status=$?
  14329. grep -v '^ *+' conftest.er1 >conftest.err
  14330. rm -f conftest.er1
  14331. cat conftest.err >&5
  14332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14333. (exit $ac_status); } && {
  14334. test -z "$ac_cxx_werror_flag" ||
  14335. test ! -s conftest.err
  14336. } && test -s conftest$ac_exeext && {
  14337. test "$cross_compiling" = yes ||
  14338. $as_test_x conftest$ac_exeext
  14339. }; then
  14340. if test "$cross_compiling" = yes; then
  14341. ac_cv_type_long_long_int=yes
  14342. else
  14343. cat >conftest.$ac_ext <<_ACEOF
  14344. /* confdefs.h. */
  14345. _ACEOF
  14346. cat confdefs.h >>conftest.$ac_ext
  14347. cat >>conftest.$ac_ext <<_ACEOF
  14348. /* end confdefs.h. */
  14349. #include <limits.h>
  14350. #ifndef LLONG_MAX
  14351. # define HALF \
  14352. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14353. # define LLONG_MAX (HALF - 1 + HALF)
  14354. #endif
  14355. int
  14356. main ()
  14357. {
  14358. long long int n = 1;
  14359. int i;
  14360. for (i = 0; ; i++)
  14361. {
  14362. long long int m = n << i;
  14363. if (m >> i != n)
  14364. return 1;
  14365. if (LLONG_MAX / 2 < m)
  14366. break;
  14367. }
  14368. return 0;
  14369. ;
  14370. return 0;
  14371. }
  14372. _ACEOF
  14373. rm -f conftest$ac_exeext
  14374. if { (ac_try="$ac_link"
  14375. case "(($ac_try" in
  14376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14377. *) ac_try_echo=$ac_try;;
  14378. esac
  14379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14380. $as_echo "$ac_try_echo") >&5
  14381. (eval "$ac_link") 2>&5
  14382. ac_status=$?
  14383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14384. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14385. { (case "(($ac_try" in
  14386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14387. *) ac_try_echo=$ac_try;;
  14388. esac
  14389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14390. $as_echo "$ac_try_echo") >&5
  14391. (eval "$ac_try") 2>&5
  14392. ac_status=$?
  14393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14394. (exit $ac_status); }; }; then
  14395. ac_cv_type_long_long_int=yes
  14396. else
  14397. $as_echo "$as_me: program exited with status $ac_status" >&5
  14398. $as_echo "$as_me: failed program was:" >&5
  14399. sed 's/^/| /' conftest.$ac_ext >&5
  14400. ( exit $ac_status )
  14401. ac_cv_type_long_long_int=no
  14402. fi
  14403. rm -rf conftest.dSYM
  14404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14405. fi
  14406. else
  14407. $as_echo "$as_me: failed program was:" >&5
  14408. sed 's/^/| /' conftest.$ac_ext >&5
  14409. ac_cv_type_long_long_int=no
  14410. fi
  14411. rm -rf conftest.dSYM
  14412. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14413. conftest$ac_exeext conftest.$ac_ext
  14414. fi
  14415. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14416. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14417. if test $ac_cv_type_long_long_int = yes; then
  14418. cat >>confdefs.h <<\_ACEOF
  14419. #define HAVE_LONG_LONG_INT 1
  14420. _ACEOF
  14421. fi
  14422. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14423. $as_echo_n "checking for wchar_t... " >&6; }
  14424. if test "${gt_cv_c_wchar_t+set}" = set; then
  14425. $as_echo_n "(cached) " >&6
  14426. else
  14427. cat >conftest.$ac_ext <<_ACEOF
  14428. /* confdefs.h. */
  14429. _ACEOF
  14430. cat confdefs.h >>conftest.$ac_ext
  14431. cat >>conftest.$ac_ext <<_ACEOF
  14432. /* end confdefs.h. */
  14433. #include <stddef.h>
  14434. wchar_t foo = (wchar_t)'\0';
  14435. int
  14436. main ()
  14437. {
  14438. ;
  14439. return 0;
  14440. }
  14441. _ACEOF
  14442. rm -f conftest.$ac_objext
  14443. if { (ac_try="$ac_compile"
  14444. case "(($ac_try" in
  14445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14446. *) ac_try_echo=$ac_try;;
  14447. esac
  14448. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14449. $as_echo "$ac_try_echo") >&5
  14450. (eval "$ac_compile") 2>conftest.er1
  14451. ac_status=$?
  14452. grep -v '^ *+' conftest.er1 >conftest.err
  14453. rm -f conftest.er1
  14454. cat conftest.err >&5
  14455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14456. (exit $ac_status); } && {
  14457. test -z "$ac_cxx_werror_flag" ||
  14458. test ! -s conftest.err
  14459. } && test -s conftest.$ac_objext; then
  14460. gt_cv_c_wchar_t=yes
  14461. else
  14462. $as_echo "$as_me: failed program was:" >&5
  14463. sed 's/^/| /' conftest.$ac_ext >&5
  14464. gt_cv_c_wchar_t=no
  14465. fi
  14466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14467. fi
  14468. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14469. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14470. if test $gt_cv_c_wchar_t = yes; then
  14471. cat >>confdefs.h <<\_ACEOF
  14472. #define HAVE_WCHAR_T 1
  14473. _ACEOF
  14474. fi
  14475. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14476. $as_echo_n "checking for wint_t... " >&6; }
  14477. if test "${gt_cv_c_wint_t+set}" = set; then
  14478. $as_echo_n "(cached) " >&6
  14479. else
  14480. cat >conftest.$ac_ext <<_ACEOF
  14481. /* confdefs.h. */
  14482. _ACEOF
  14483. cat confdefs.h >>conftest.$ac_ext
  14484. cat >>conftest.$ac_ext <<_ACEOF
  14485. /* end confdefs.h. */
  14486. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14487. <wchar.h>.
  14488. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14489. before <wchar.h>. */
  14490. #include <stddef.h>
  14491. #include <stdio.h>
  14492. #include <time.h>
  14493. #include <wchar.h>
  14494. wint_t foo = (wchar_t)'\0';
  14495. int
  14496. main ()
  14497. {
  14498. ;
  14499. return 0;
  14500. }
  14501. _ACEOF
  14502. rm -f conftest.$ac_objext
  14503. if { (ac_try="$ac_compile"
  14504. case "(($ac_try" in
  14505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14506. *) ac_try_echo=$ac_try;;
  14507. esac
  14508. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14509. $as_echo "$ac_try_echo") >&5
  14510. (eval "$ac_compile") 2>conftest.er1
  14511. ac_status=$?
  14512. grep -v '^ *+' conftest.er1 >conftest.err
  14513. rm -f conftest.er1
  14514. cat conftest.err >&5
  14515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14516. (exit $ac_status); } && {
  14517. test -z "$ac_cxx_werror_flag" ||
  14518. test ! -s conftest.err
  14519. } && test -s conftest.$ac_objext; then
  14520. gt_cv_c_wint_t=yes
  14521. else
  14522. $as_echo "$as_me: failed program was:" >&5
  14523. sed 's/^/| /' conftest.$ac_ext >&5
  14524. gt_cv_c_wint_t=no
  14525. fi
  14526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14527. fi
  14528. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14529. $as_echo "$gt_cv_c_wint_t" >&6; }
  14530. if test $gt_cv_c_wint_t = yes; then
  14531. cat >>confdefs.h <<\_ACEOF
  14532. #define HAVE_WINT_T 1
  14533. _ACEOF
  14534. fi
  14535. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14536. $as_echo_n "checking for intmax_t... " >&6; }
  14537. if test "${gt_cv_c_intmax_t+set}" = set; then
  14538. $as_echo_n "(cached) " >&6
  14539. else
  14540. cat >conftest.$ac_ext <<_ACEOF
  14541. /* confdefs.h. */
  14542. _ACEOF
  14543. cat confdefs.h >>conftest.$ac_ext
  14544. cat >>conftest.$ac_ext <<_ACEOF
  14545. /* end confdefs.h. */
  14546. #include <stddef.h>
  14547. #include <stdlib.h>
  14548. #if HAVE_STDINT_H_WITH_UINTMAX
  14549. #include <stdint.h>
  14550. #endif
  14551. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14552. #include <inttypes.h>
  14553. #endif
  14554. int
  14555. main ()
  14556. {
  14557. intmax_t x = -1;
  14558. return !x;
  14559. ;
  14560. return 0;
  14561. }
  14562. _ACEOF
  14563. rm -f conftest.$ac_objext
  14564. if { (ac_try="$ac_compile"
  14565. case "(($ac_try" in
  14566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14567. *) ac_try_echo=$ac_try;;
  14568. esac
  14569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14570. $as_echo "$ac_try_echo") >&5
  14571. (eval "$ac_compile") 2>conftest.er1
  14572. ac_status=$?
  14573. grep -v '^ *+' conftest.er1 >conftest.err
  14574. rm -f conftest.er1
  14575. cat conftest.err >&5
  14576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14577. (exit $ac_status); } && {
  14578. test -z "$ac_cxx_werror_flag" ||
  14579. test ! -s conftest.err
  14580. } && test -s conftest.$ac_objext; then
  14581. gt_cv_c_intmax_t=yes
  14582. else
  14583. $as_echo "$as_me: failed program was:" >&5
  14584. sed 's/^/| /' conftest.$ac_ext >&5
  14585. gt_cv_c_intmax_t=no
  14586. fi
  14587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14588. fi
  14589. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14590. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14591. if test $gt_cv_c_intmax_t = yes; then
  14592. cat >>confdefs.h <<\_ACEOF
  14593. #define HAVE_INTMAX_T 1
  14594. _ACEOF
  14595. fi
  14596. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14597. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14598. if test "${gt_cv_func_printf_posix+set}" = set; then
  14599. $as_echo_n "(cached) " >&6
  14600. else
  14601. if test "$cross_compiling" = yes; then
  14602. cat >conftest.$ac_ext <<_ACEOF
  14603. /* confdefs.h. */
  14604. _ACEOF
  14605. cat confdefs.h >>conftest.$ac_ext
  14606. cat >>conftest.$ac_ext <<_ACEOF
  14607. /* end confdefs.h. */
  14608. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14609. notposix
  14610. #endif
  14611. _ACEOF
  14612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14613. $EGREP "notposix" >/dev/null 2>&1; then
  14614. gt_cv_func_printf_posix="guessing no"
  14615. else
  14616. gt_cv_func_printf_posix="guessing yes"
  14617. fi
  14618. rm -f conftest*
  14619. else
  14620. cat >conftest.$ac_ext <<_ACEOF
  14621. /* confdefs.h. */
  14622. _ACEOF
  14623. cat confdefs.h >>conftest.$ac_ext
  14624. cat >>conftest.$ac_ext <<_ACEOF
  14625. /* end confdefs.h. */
  14626. #include <stdio.h>
  14627. #include <string.h>
  14628. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14629. dollar expansion (possibly an autoconf bug). */
  14630. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14631. static char buf[100];
  14632. int main ()
  14633. {
  14634. sprintf (buf, format, 33, 55);
  14635. return (strcmp (buf, "55 33") != 0);
  14636. }
  14637. _ACEOF
  14638. rm -f conftest$ac_exeext
  14639. if { (ac_try="$ac_link"
  14640. case "(($ac_try" in
  14641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14642. *) ac_try_echo=$ac_try;;
  14643. esac
  14644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14645. $as_echo "$ac_try_echo") >&5
  14646. (eval "$ac_link") 2>&5
  14647. ac_status=$?
  14648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14649. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14650. { (case "(($ac_try" in
  14651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14652. *) ac_try_echo=$ac_try;;
  14653. esac
  14654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14655. $as_echo "$ac_try_echo") >&5
  14656. (eval "$ac_try") 2>&5
  14657. ac_status=$?
  14658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14659. (exit $ac_status); }; }; then
  14660. gt_cv_func_printf_posix=yes
  14661. else
  14662. $as_echo "$as_me: program exited with status $ac_status" >&5
  14663. $as_echo "$as_me: failed program was:" >&5
  14664. sed 's/^/| /' conftest.$ac_ext >&5
  14665. ( exit $ac_status )
  14666. gt_cv_func_printf_posix=no
  14667. fi
  14668. rm -rf conftest.dSYM
  14669. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14670. fi
  14671. fi
  14672. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14673. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14674. case $gt_cv_func_printf_posix in
  14675. *yes)
  14676. cat >>confdefs.h <<\_ACEOF
  14677. #define HAVE_POSIX_PRINTF 1
  14678. _ACEOF
  14679. ;;
  14680. esac
  14681. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14682. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14683. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14684. $as_echo_n "(cached) " >&6
  14685. else
  14686. cat >conftest.$ac_ext <<_ACEOF
  14687. /* confdefs.h. */
  14688. _ACEOF
  14689. cat confdefs.h >>conftest.$ac_ext
  14690. cat >>conftest.$ac_ext <<_ACEOF
  14691. /* end confdefs.h. */
  14692. #include <features.h>
  14693. #ifdef __GNU_LIBRARY__
  14694. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14695. Lucky GNU user
  14696. #endif
  14697. #endif
  14698. _ACEOF
  14699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14700. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14701. ac_cv_gnu_library_2_1=yes
  14702. else
  14703. ac_cv_gnu_library_2_1=no
  14704. fi
  14705. rm -f conftest*
  14706. fi
  14707. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14708. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14709. GLIBC21="$ac_cv_gnu_library_2_1"
  14710. for ac_header in stdint.h
  14711. do
  14712. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14713. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14714. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14715. $as_echo_n "checking for $ac_header... " >&6; }
  14716. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14717. $as_echo_n "(cached) " >&6
  14718. fi
  14719. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14720. $as_echo "$as_val"'`
  14721. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14722. $as_echo "$ac_res" >&6; }
  14723. else
  14724. # Is the header compilable?
  14725. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14726. $as_echo_n "checking $ac_header usability... " >&6; }
  14727. cat >conftest.$ac_ext <<_ACEOF
  14728. /* confdefs.h. */
  14729. _ACEOF
  14730. cat confdefs.h >>conftest.$ac_ext
  14731. cat >>conftest.$ac_ext <<_ACEOF
  14732. /* end confdefs.h. */
  14733. $ac_includes_default
  14734. #include <$ac_header>
  14735. _ACEOF
  14736. rm -f conftest.$ac_objext
  14737. if { (ac_try="$ac_compile"
  14738. case "(($ac_try" in
  14739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14740. *) ac_try_echo=$ac_try;;
  14741. esac
  14742. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14743. $as_echo "$ac_try_echo") >&5
  14744. (eval "$ac_compile") 2>conftest.er1
  14745. ac_status=$?
  14746. grep -v '^ *+' conftest.er1 >conftest.err
  14747. rm -f conftest.er1
  14748. cat conftest.err >&5
  14749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14750. (exit $ac_status); } && {
  14751. test -z "$ac_cxx_werror_flag" ||
  14752. test ! -s conftest.err
  14753. } && test -s conftest.$ac_objext; then
  14754. ac_header_compiler=yes
  14755. else
  14756. $as_echo "$as_me: failed program was:" >&5
  14757. sed 's/^/| /' conftest.$ac_ext >&5
  14758. ac_header_compiler=no
  14759. fi
  14760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14761. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14762. $as_echo "$ac_header_compiler" >&6; }
  14763. # Is the header present?
  14764. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14765. $as_echo_n "checking $ac_header presence... " >&6; }
  14766. cat >conftest.$ac_ext <<_ACEOF
  14767. /* confdefs.h. */
  14768. _ACEOF
  14769. cat confdefs.h >>conftest.$ac_ext
  14770. cat >>conftest.$ac_ext <<_ACEOF
  14771. /* end confdefs.h. */
  14772. #include <$ac_header>
  14773. _ACEOF
  14774. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14775. case "(($ac_try" in
  14776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14777. *) ac_try_echo=$ac_try;;
  14778. esac
  14779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14780. $as_echo "$ac_try_echo") >&5
  14781. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14782. ac_status=$?
  14783. grep -v '^ *+' conftest.er1 >conftest.err
  14784. rm -f conftest.er1
  14785. cat conftest.err >&5
  14786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14787. (exit $ac_status); } >/dev/null && {
  14788. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14789. test ! -s conftest.err
  14790. }; then
  14791. ac_header_preproc=yes
  14792. else
  14793. $as_echo "$as_me: failed program was:" >&5
  14794. sed 's/^/| /' conftest.$ac_ext >&5
  14795. ac_header_preproc=no
  14796. fi
  14797. rm -f conftest.err conftest.$ac_ext
  14798. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14799. $as_echo "$ac_header_preproc" >&6; }
  14800. # So? What about this header?
  14801. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14802. yes:no: )
  14803. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14804. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14805. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14806. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14807. ac_header_preproc=yes
  14808. ;;
  14809. no:yes:* )
  14810. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14811. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14812. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14813. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14814. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14815. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14816. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14817. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14818. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14819. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14820. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14821. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14822. ( cat <<\_ASBOX
  14823. ## ----------------------------------------------- ##
  14824. ## Report this to t-tujikawa@users.sourceforge.net ##
  14825. ## ----------------------------------------------- ##
  14826. _ASBOX
  14827. ) | sed "s/^/$as_me: WARNING: /" >&2
  14828. ;;
  14829. esac
  14830. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14831. $as_echo_n "checking for $ac_header... " >&6; }
  14832. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14833. $as_echo_n "(cached) " >&6
  14834. else
  14835. eval "$as_ac_Header=\$ac_header_preproc"
  14836. fi
  14837. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14838. $as_echo "$as_val"'`
  14839. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14840. $as_echo "$ac_res" >&6; }
  14841. fi
  14842. as_val=`eval 'as_val=${'$as_ac_Header'}
  14843. $as_echo "$as_val"'`
  14844. if test "x$as_val" = x""yes; then
  14845. cat >>confdefs.h <<_ACEOF
  14846. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14847. _ACEOF
  14848. fi
  14849. done
  14850. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14851. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14852. if test "${gl_cv_size_max+set}" = set; then
  14853. $as_echo_n "(cached) " >&6
  14854. else
  14855. gl_cv_size_max=
  14856. cat >conftest.$ac_ext <<_ACEOF
  14857. /* confdefs.h. */
  14858. _ACEOF
  14859. cat confdefs.h >>conftest.$ac_ext
  14860. cat >>conftest.$ac_ext <<_ACEOF
  14861. /* end confdefs.h. */
  14862. #include <limits.h>
  14863. #if HAVE_STDINT_H
  14864. #include <stdint.h>
  14865. #endif
  14866. #ifdef SIZE_MAX
  14867. Found it
  14868. #endif
  14869. _ACEOF
  14870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14871. $EGREP "Found it" >/dev/null 2>&1; then
  14872. gl_cv_size_max=yes
  14873. fi
  14874. rm -f conftest*
  14875. if test -z "$gl_cv_size_max"; then
  14876. if test "$cross_compiling" = yes; then
  14877. # Depending upon the size, compute the lo and hi bounds.
  14878. cat >conftest.$ac_ext <<_ACEOF
  14879. /* confdefs.h. */
  14880. _ACEOF
  14881. cat confdefs.h >>conftest.$ac_ext
  14882. cat >>conftest.$ac_ext <<_ACEOF
  14883. /* end confdefs.h. */
  14884. #include <stddef.h>
  14885. #include <limits.h>
  14886. int
  14887. main ()
  14888. {
  14889. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14890. test_array [0] = 0
  14891. ;
  14892. return 0;
  14893. }
  14894. _ACEOF
  14895. rm -f conftest.$ac_objext
  14896. if { (ac_try="$ac_compile"
  14897. case "(($ac_try" in
  14898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14899. *) ac_try_echo=$ac_try;;
  14900. esac
  14901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14902. $as_echo "$ac_try_echo") >&5
  14903. (eval "$ac_compile") 2>conftest.er1
  14904. ac_status=$?
  14905. grep -v '^ *+' conftest.er1 >conftest.err
  14906. rm -f conftest.er1
  14907. cat conftest.err >&5
  14908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14909. (exit $ac_status); } && {
  14910. test -z "$ac_cxx_werror_flag" ||
  14911. test ! -s conftest.err
  14912. } && test -s conftest.$ac_objext; then
  14913. ac_lo=0 ac_mid=0
  14914. while :; do
  14915. cat >conftest.$ac_ext <<_ACEOF
  14916. /* confdefs.h. */
  14917. _ACEOF
  14918. cat confdefs.h >>conftest.$ac_ext
  14919. cat >>conftest.$ac_ext <<_ACEOF
  14920. /* end confdefs.h. */
  14921. #include <stddef.h>
  14922. #include <limits.h>
  14923. int
  14924. main ()
  14925. {
  14926. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14927. test_array [0] = 0
  14928. ;
  14929. return 0;
  14930. }
  14931. _ACEOF
  14932. rm -f conftest.$ac_objext
  14933. if { (ac_try="$ac_compile"
  14934. case "(($ac_try" in
  14935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14936. *) ac_try_echo=$ac_try;;
  14937. esac
  14938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14939. $as_echo "$ac_try_echo") >&5
  14940. (eval "$ac_compile") 2>conftest.er1
  14941. ac_status=$?
  14942. grep -v '^ *+' conftest.er1 >conftest.err
  14943. rm -f conftest.er1
  14944. cat conftest.err >&5
  14945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14946. (exit $ac_status); } && {
  14947. test -z "$ac_cxx_werror_flag" ||
  14948. test ! -s conftest.err
  14949. } && test -s conftest.$ac_objext; then
  14950. ac_hi=$ac_mid; break
  14951. else
  14952. $as_echo "$as_me: failed program was:" >&5
  14953. sed 's/^/| /' conftest.$ac_ext >&5
  14954. ac_lo=`expr $ac_mid + 1`
  14955. if test $ac_lo -le $ac_mid; then
  14956. ac_lo= ac_hi=
  14957. break
  14958. fi
  14959. ac_mid=`expr 2 '*' $ac_mid + 1`
  14960. fi
  14961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14962. done
  14963. else
  14964. $as_echo "$as_me: failed program was:" >&5
  14965. sed 's/^/| /' conftest.$ac_ext >&5
  14966. cat >conftest.$ac_ext <<_ACEOF
  14967. /* confdefs.h. */
  14968. _ACEOF
  14969. cat confdefs.h >>conftest.$ac_ext
  14970. cat >>conftest.$ac_ext <<_ACEOF
  14971. /* end confdefs.h. */
  14972. #include <stddef.h>
  14973. #include <limits.h>
  14974. int
  14975. main ()
  14976. {
  14977. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14978. test_array [0] = 0
  14979. ;
  14980. return 0;
  14981. }
  14982. _ACEOF
  14983. rm -f conftest.$ac_objext
  14984. if { (ac_try="$ac_compile"
  14985. case "(($ac_try" in
  14986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14987. *) ac_try_echo=$ac_try;;
  14988. esac
  14989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14990. $as_echo "$ac_try_echo") >&5
  14991. (eval "$ac_compile") 2>conftest.er1
  14992. ac_status=$?
  14993. grep -v '^ *+' conftest.er1 >conftest.err
  14994. rm -f conftest.er1
  14995. cat conftest.err >&5
  14996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14997. (exit $ac_status); } && {
  14998. test -z "$ac_cxx_werror_flag" ||
  14999. test ! -s conftest.err
  15000. } && test -s conftest.$ac_objext; then
  15001. ac_hi=-1 ac_mid=-1
  15002. while :; do
  15003. cat >conftest.$ac_ext <<_ACEOF
  15004. /* confdefs.h. */
  15005. _ACEOF
  15006. cat confdefs.h >>conftest.$ac_ext
  15007. cat >>conftest.$ac_ext <<_ACEOF
  15008. /* end confdefs.h. */
  15009. #include <stddef.h>
  15010. #include <limits.h>
  15011. int
  15012. main ()
  15013. {
  15014. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  15015. test_array [0] = 0
  15016. ;
  15017. return 0;
  15018. }
  15019. _ACEOF
  15020. rm -f conftest.$ac_objext
  15021. if { (ac_try="$ac_compile"
  15022. case "(($ac_try" in
  15023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15024. *) ac_try_echo=$ac_try;;
  15025. esac
  15026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15027. $as_echo "$ac_try_echo") >&5
  15028. (eval "$ac_compile") 2>conftest.er1
  15029. ac_status=$?
  15030. grep -v '^ *+' conftest.er1 >conftest.err
  15031. rm -f conftest.er1
  15032. cat conftest.err >&5
  15033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15034. (exit $ac_status); } && {
  15035. test -z "$ac_cxx_werror_flag" ||
  15036. test ! -s conftest.err
  15037. } && test -s conftest.$ac_objext; then
  15038. ac_lo=$ac_mid; break
  15039. else
  15040. $as_echo "$as_me: failed program was:" >&5
  15041. sed 's/^/| /' conftest.$ac_ext >&5
  15042. ac_hi=`expr '(' $ac_mid ')' - 1`
  15043. if test $ac_mid -le $ac_hi; then
  15044. ac_lo= ac_hi=
  15045. break
  15046. fi
  15047. ac_mid=`expr 2 '*' $ac_mid`
  15048. fi
  15049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15050. done
  15051. else
  15052. $as_echo "$as_me: failed program was:" >&5
  15053. sed 's/^/| /' conftest.$ac_ext >&5
  15054. ac_lo= ac_hi=
  15055. fi
  15056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15057. fi
  15058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15059. # Binary search between lo and hi bounds.
  15060. while test "x$ac_lo" != "x$ac_hi"; do
  15061. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15062. cat >conftest.$ac_ext <<_ACEOF
  15063. /* confdefs.h. */
  15064. _ACEOF
  15065. cat confdefs.h >>conftest.$ac_ext
  15066. cat >>conftest.$ac_ext <<_ACEOF
  15067. /* end confdefs.h. */
  15068. #include <stddef.h>
  15069. #include <limits.h>
  15070. int
  15071. main ()
  15072. {
  15073. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  15074. test_array [0] = 0
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. rm -f conftest.$ac_objext
  15080. if { (ac_try="$ac_compile"
  15081. case "(($ac_try" in
  15082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15083. *) ac_try_echo=$ac_try;;
  15084. esac
  15085. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15086. $as_echo "$ac_try_echo") >&5
  15087. (eval "$ac_compile") 2>conftest.er1
  15088. ac_status=$?
  15089. grep -v '^ *+' conftest.er1 >conftest.err
  15090. rm -f conftest.er1
  15091. cat conftest.err >&5
  15092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15093. (exit $ac_status); } && {
  15094. test -z "$ac_cxx_werror_flag" ||
  15095. test ! -s conftest.err
  15096. } && test -s conftest.$ac_objext; then
  15097. ac_hi=$ac_mid
  15098. else
  15099. $as_echo "$as_me: failed program was:" >&5
  15100. sed 's/^/| /' conftest.$ac_ext >&5
  15101. ac_lo=`expr '(' $ac_mid ')' + 1`
  15102. fi
  15103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15104. done
  15105. case $ac_lo in
  15106. ?*) size_t_bits_minus_1=$ac_lo;;
  15107. '') size_t_bits_minus_1= ;;
  15108. esac
  15109. else
  15110. cat >conftest.$ac_ext <<_ACEOF
  15111. /* confdefs.h. */
  15112. _ACEOF
  15113. cat confdefs.h >>conftest.$ac_ext
  15114. cat >>conftest.$ac_ext <<_ACEOF
  15115. /* end confdefs.h. */
  15116. #include <stddef.h>
  15117. #include <limits.h>
  15118. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15119. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15120. #include <stdio.h>
  15121. #include <stdlib.h>
  15122. int
  15123. main ()
  15124. {
  15125. FILE *f = fopen ("conftest.val", "w");
  15126. if (! f)
  15127. return 1;
  15128. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  15129. {
  15130. long int i = longval ();
  15131. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15132. return 1;
  15133. fprintf (f, "%ld", i);
  15134. }
  15135. else
  15136. {
  15137. unsigned long int i = ulongval ();
  15138. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15139. return 1;
  15140. fprintf (f, "%lu", i);
  15141. }
  15142. /* Do not output a trailing newline, as this causes \r\n confusion
  15143. on some platforms. */
  15144. return ferror (f) || fclose (f) != 0;
  15145. ;
  15146. return 0;
  15147. }
  15148. _ACEOF
  15149. rm -f conftest$ac_exeext
  15150. if { (ac_try="$ac_link"
  15151. case "(($ac_try" in
  15152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15153. *) ac_try_echo=$ac_try;;
  15154. esac
  15155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15156. $as_echo "$ac_try_echo") >&5
  15157. (eval "$ac_link") 2>&5
  15158. ac_status=$?
  15159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15160. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15161. { (case "(($ac_try" in
  15162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15163. *) ac_try_echo=$ac_try;;
  15164. esac
  15165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15166. $as_echo "$ac_try_echo") >&5
  15167. (eval "$ac_try") 2>&5
  15168. ac_status=$?
  15169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15170. (exit $ac_status); }; }; then
  15171. size_t_bits_minus_1=`cat conftest.val`
  15172. else
  15173. $as_echo "$as_me: program exited with status $ac_status" >&5
  15174. $as_echo "$as_me: failed program was:" >&5
  15175. sed 's/^/| /' conftest.$ac_ext >&5
  15176. ( exit $ac_status )
  15177. size_t_bits_minus_1=
  15178. fi
  15179. rm -rf conftest.dSYM
  15180. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15181. fi
  15182. rm -f conftest.val
  15183. if test "$cross_compiling" = yes; then
  15184. # Depending upon the size, compute the lo and hi bounds.
  15185. cat >conftest.$ac_ext <<_ACEOF
  15186. /* confdefs.h. */
  15187. _ACEOF
  15188. cat confdefs.h >>conftest.$ac_ext
  15189. cat >>conftest.$ac_ext <<_ACEOF
  15190. /* end confdefs.h. */
  15191. #include <stddef.h>
  15192. int
  15193. main ()
  15194. {
  15195. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  15196. test_array [0] = 0
  15197. ;
  15198. return 0;
  15199. }
  15200. _ACEOF
  15201. rm -f conftest.$ac_objext
  15202. if { (ac_try="$ac_compile"
  15203. case "(($ac_try" in
  15204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15205. *) ac_try_echo=$ac_try;;
  15206. esac
  15207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15208. $as_echo "$ac_try_echo") >&5
  15209. (eval "$ac_compile") 2>conftest.er1
  15210. ac_status=$?
  15211. grep -v '^ *+' conftest.er1 >conftest.err
  15212. rm -f conftest.er1
  15213. cat conftest.err >&5
  15214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15215. (exit $ac_status); } && {
  15216. test -z "$ac_cxx_werror_flag" ||
  15217. test ! -s conftest.err
  15218. } && test -s conftest.$ac_objext; then
  15219. ac_lo=0 ac_mid=0
  15220. while :; do
  15221. cat >conftest.$ac_ext <<_ACEOF
  15222. /* confdefs.h. */
  15223. _ACEOF
  15224. cat confdefs.h >>conftest.$ac_ext
  15225. cat >>conftest.$ac_ext <<_ACEOF
  15226. /* end confdefs.h. */
  15227. #include <stddef.h>
  15228. int
  15229. main ()
  15230. {
  15231. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15232. test_array [0] = 0
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. rm -f conftest.$ac_objext
  15238. if { (ac_try="$ac_compile"
  15239. case "(($ac_try" in
  15240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15241. *) ac_try_echo=$ac_try;;
  15242. esac
  15243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15244. $as_echo "$ac_try_echo") >&5
  15245. (eval "$ac_compile") 2>conftest.er1
  15246. ac_status=$?
  15247. grep -v '^ *+' conftest.er1 >conftest.err
  15248. rm -f conftest.er1
  15249. cat conftest.err >&5
  15250. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15251. (exit $ac_status); } && {
  15252. test -z "$ac_cxx_werror_flag" ||
  15253. test ! -s conftest.err
  15254. } && test -s conftest.$ac_objext; then
  15255. ac_hi=$ac_mid; break
  15256. else
  15257. $as_echo "$as_me: failed program was:" >&5
  15258. sed 's/^/| /' conftest.$ac_ext >&5
  15259. ac_lo=`expr $ac_mid + 1`
  15260. if test $ac_lo -le $ac_mid; then
  15261. ac_lo= ac_hi=
  15262. break
  15263. fi
  15264. ac_mid=`expr 2 '*' $ac_mid + 1`
  15265. fi
  15266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15267. done
  15268. else
  15269. $as_echo "$as_me: failed program was:" >&5
  15270. sed 's/^/| /' conftest.$ac_ext >&5
  15271. cat >conftest.$ac_ext <<_ACEOF
  15272. /* confdefs.h. */
  15273. _ACEOF
  15274. cat confdefs.h >>conftest.$ac_ext
  15275. cat >>conftest.$ac_ext <<_ACEOF
  15276. /* end confdefs.h. */
  15277. #include <stddef.h>
  15278. int
  15279. main ()
  15280. {
  15281. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15282. test_array [0] = 0
  15283. ;
  15284. return 0;
  15285. }
  15286. _ACEOF
  15287. rm -f conftest.$ac_objext
  15288. if { (ac_try="$ac_compile"
  15289. case "(($ac_try" in
  15290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15291. *) ac_try_echo=$ac_try;;
  15292. esac
  15293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15294. $as_echo "$ac_try_echo") >&5
  15295. (eval "$ac_compile") 2>conftest.er1
  15296. ac_status=$?
  15297. grep -v '^ *+' conftest.er1 >conftest.err
  15298. rm -f conftest.er1
  15299. cat conftest.err >&5
  15300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15301. (exit $ac_status); } && {
  15302. test -z "$ac_cxx_werror_flag" ||
  15303. test ! -s conftest.err
  15304. } && test -s conftest.$ac_objext; then
  15305. ac_hi=-1 ac_mid=-1
  15306. while :; do
  15307. cat >conftest.$ac_ext <<_ACEOF
  15308. /* confdefs.h. */
  15309. _ACEOF
  15310. cat confdefs.h >>conftest.$ac_ext
  15311. cat >>conftest.$ac_ext <<_ACEOF
  15312. /* end confdefs.h. */
  15313. #include <stddef.h>
  15314. int
  15315. main ()
  15316. {
  15317. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15318. test_array [0] = 0
  15319. ;
  15320. return 0;
  15321. }
  15322. _ACEOF
  15323. rm -f conftest.$ac_objext
  15324. if { (ac_try="$ac_compile"
  15325. case "(($ac_try" in
  15326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15327. *) ac_try_echo=$ac_try;;
  15328. esac
  15329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15330. $as_echo "$ac_try_echo") >&5
  15331. (eval "$ac_compile") 2>conftest.er1
  15332. ac_status=$?
  15333. grep -v '^ *+' conftest.er1 >conftest.err
  15334. rm -f conftest.er1
  15335. cat conftest.err >&5
  15336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15337. (exit $ac_status); } && {
  15338. test -z "$ac_cxx_werror_flag" ||
  15339. test ! -s conftest.err
  15340. } && test -s conftest.$ac_objext; then
  15341. ac_lo=$ac_mid; break
  15342. else
  15343. $as_echo "$as_me: failed program was:" >&5
  15344. sed 's/^/| /' conftest.$ac_ext >&5
  15345. ac_hi=`expr '(' $ac_mid ')' - 1`
  15346. if test $ac_mid -le $ac_hi; then
  15347. ac_lo= ac_hi=
  15348. break
  15349. fi
  15350. ac_mid=`expr 2 '*' $ac_mid`
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. done
  15354. else
  15355. $as_echo "$as_me: failed program was:" >&5
  15356. sed 's/^/| /' conftest.$ac_ext >&5
  15357. ac_lo= ac_hi=
  15358. fi
  15359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15360. fi
  15361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15362. # Binary search between lo and hi bounds.
  15363. while test "x$ac_lo" != "x$ac_hi"; do
  15364. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15365. cat >conftest.$ac_ext <<_ACEOF
  15366. /* confdefs.h. */
  15367. _ACEOF
  15368. cat confdefs.h >>conftest.$ac_ext
  15369. cat >>conftest.$ac_ext <<_ACEOF
  15370. /* end confdefs.h. */
  15371. #include <stddef.h>
  15372. int
  15373. main ()
  15374. {
  15375. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15376. test_array [0] = 0
  15377. ;
  15378. return 0;
  15379. }
  15380. _ACEOF
  15381. rm -f conftest.$ac_objext
  15382. if { (ac_try="$ac_compile"
  15383. case "(($ac_try" in
  15384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15385. *) ac_try_echo=$ac_try;;
  15386. esac
  15387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15388. $as_echo "$ac_try_echo") >&5
  15389. (eval "$ac_compile") 2>conftest.er1
  15390. ac_status=$?
  15391. grep -v '^ *+' conftest.er1 >conftest.err
  15392. rm -f conftest.er1
  15393. cat conftest.err >&5
  15394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15395. (exit $ac_status); } && {
  15396. test -z "$ac_cxx_werror_flag" ||
  15397. test ! -s conftest.err
  15398. } && test -s conftest.$ac_objext; then
  15399. ac_hi=$ac_mid
  15400. else
  15401. $as_echo "$as_me: failed program was:" >&5
  15402. sed 's/^/| /' conftest.$ac_ext >&5
  15403. ac_lo=`expr '(' $ac_mid ')' + 1`
  15404. fi
  15405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15406. done
  15407. case $ac_lo in
  15408. ?*) fits_in_uint=$ac_lo;;
  15409. '') fits_in_uint= ;;
  15410. esac
  15411. else
  15412. cat >conftest.$ac_ext <<_ACEOF
  15413. /* confdefs.h. */
  15414. _ACEOF
  15415. cat confdefs.h >>conftest.$ac_ext
  15416. cat >>conftest.$ac_ext <<_ACEOF
  15417. /* end confdefs.h. */
  15418. #include <stddef.h>
  15419. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15420. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15421. #include <stdio.h>
  15422. #include <stdlib.h>
  15423. int
  15424. main ()
  15425. {
  15426. FILE *f = fopen ("conftest.val", "w");
  15427. if (! f)
  15428. return 1;
  15429. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15430. {
  15431. long int i = longval ();
  15432. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15433. return 1;
  15434. fprintf (f, "%ld", i);
  15435. }
  15436. else
  15437. {
  15438. unsigned long int i = ulongval ();
  15439. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15440. return 1;
  15441. fprintf (f, "%lu", i);
  15442. }
  15443. /* Do not output a trailing newline, as this causes \r\n confusion
  15444. on some platforms. */
  15445. return ferror (f) || fclose (f) != 0;
  15446. ;
  15447. return 0;
  15448. }
  15449. _ACEOF
  15450. rm -f conftest$ac_exeext
  15451. if { (ac_try="$ac_link"
  15452. case "(($ac_try" in
  15453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15454. *) ac_try_echo=$ac_try;;
  15455. esac
  15456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15457. $as_echo "$ac_try_echo") >&5
  15458. (eval "$ac_link") 2>&5
  15459. ac_status=$?
  15460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15461. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15462. { (case "(($ac_try" in
  15463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15464. *) ac_try_echo=$ac_try;;
  15465. esac
  15466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15467. $as_echo "$ac_try_echo") >&5
  15468. (eval "$ac_try") 2>&5
  15469. ac_status=$?
  15470. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15471. (exit $ac_status); }; }; then
  15472. fits_in_uint=`cat conftest.val`
  15473. else
  15474. $as_echo "$as_me: program exited with status $ac_status" >&5
  15475. $as_echo "$as_me: failed program was:" >&5
  15476. sed 's/^/| /' conftest.$ac_ext >&5
  15477. ( exit $ac_status )
  15478. fits_in_uint=
  15479. fi
  15480. rm -rf conftest.dSYM
  15481. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15482. fi
  15483. rm -f conftest.val
  15484. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15485. if test $fits_in_uint = 1; then
  15486. cat >conftest.$ac_ext <<_ACEOF
  15487. /* confdefs.h. */
  15488. _ACEOF
  15489. cat confdefs.h >>conftest.$ac_ext
  15490. cat >>conftest.$ac_ext <<_ACEOF
  15491. /* end confdefs.h. */
  15492. #include <stddef.h>
  15493. extern size_t foo;
  15494. extern unsigned long foo;
  15495. int
  15496. main ()
  15497. {
  15498. ;
  15499. return 0;
  15500. }
  15501. _ACEOF
  15502. rm -f conftest.$ac_objext
  15503. if { (ac_try="$ac_compile"
  15504. case "(($ac_try" in
  15505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15506. *) ac_try_echo=$ac_try;;
  15507. esac
  15508. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15509. $as_echo "$ac_try_echo") >&5
  15510. (eval "$ac_compile") 2>conftest.er1
  15511. ac_status=$?
  15512. grep -v '^ *+' conftest.er1 >conftest.err
  15513. rm -f conftest.er1
  15514. cat conftest.err >&5
  15515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15516. (exit $ac_status); } && {
  15517. test -z "$ac_cxx_werror_flag" ||
  15518. test ! -s conftest.err
  15519. } && test -s conftest.$ac_objext; then
  15520. fits_in_uint=0
  15521. else
  15522. $as_echo "$as_me: failed program was:" >&5
  15523. sed 's/^/| /' conftest.$ac_ext >&5
  15524. fi
  15525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15526. fi
  15527. if test $fits_in_uint = 1; then
  15528. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15529. else
  15530. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15531. fi
  15532. else
  15533. gl_cv_size_max='((size_t)~(size_t)0)'
  15534. fi
  15535. fi
  15536. fi
  15537. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15538. $as_echo "$gl_cv_size_max" >&6; }
  15539. if test "$gl_cv_size_max" != yes; then
  15540. cat >>confdefs.h <<_ACEOF
  15541. #define SIZE_MAX $gl_cv_size_max
  15542. _ACEOF
  15543. fi
  15544. for ac_header in stdint.h
  15545. do
  15546. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15548. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15549. $as_echo_n "checking for $ac_header... " >&6; }
  15550. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15551. $as_echo_n "(cached) " >&6
  15552. fi
  15553. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15554. $as_echo "$as_val"'`
  15555. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15556. $as_echo "$ac_res" >&6; }
  15557. else
  15558. # Is the header compilable?
  15559. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15560. $as_echo_n "checking $ac_header usability... " >&6; }
  15561. cat >conftest.$ac_ext <<_ACEOF
  15562. /* confdefs.h. */
  15563. _ACEOF
  15564. cat confdefs.h >>conftest.$ac_ext
  15565. cat >>conftest.$ac_ext <<_ACEOF
  15566. /* end confdefs.h. */
  15567. $ac_includes_default
  15568. #include <$ac_header>
  15569. _ACEOF
  15570. rm -f conftest.$ac_objext
  15571. if { (ac_try="$ac_compile"
  15572. case "(($ac_try" in
  15573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15574. *) ac_try_echo=$ac_try;;
  15575. esac
  15576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15577. $as_echo "$ac_try_echo") >&5
  15578. (eval "$ac_compile") 2>conftest.er1
  15579. ac_status=$?
  15580. grep -v '^ *+' conftest.er1 >conftest.err
  15581. rm -f conftest.er1
  15582. cat conftest.err >&5
  15583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15584. (exit $ac_status); } && {
  15585. test -z "$ac_cxx_werror_flag" ||
  15586. test ! -s conftest.err
  15587. } && test -s conftest.$ac_objext; then
  15588. ac_header_compiler=yes
  15589. else
  15590. $as_echo "$as_me: failed program was:" >&5
  15591. sed 's/^/| /' conftest.$ac_ext >&5
  15592. ac_header_compiler=no
  15593. fi
  15594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15595. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15596. $as_echo "$ac_header_compiler" >&6; }
  15597. # Is the header present?
  15598. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15599. $as_echo_n "checking $ac_header presence... " >&6; }
  15600. cat >conftest.$ac_ext <<_ACEOF
  15601. /* confdefs.h. */
  15602. _ACEOF
  15603. cat confdefs.h >>conftest.$ac_ext
  15604. cat >>conftest.$ac_ext <<_ACEOF
  15605. /* end confdefs.h. */
  15606. #include <$ac_header>
  15607. _ACEOF
  15608. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15609. case "(($ac_try" in
  15610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15611. *) ac_try_echo=$ac_try;;
  15612. esac
  15613. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15614. $as_echo "$ac_try_echo") >&5
  15615. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15616. ac_status=$?
  15617. grep -v '^ *+' conftest.er1 >conftest.err
  15618. rm -f conftest.er1
  15619. cat conftest.err >&5
  15620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15621. (exit $ac_status); } >/dev/null && {
  15622. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15623. test ! -s conftest.err
  15624. }; then
  15625. ac_header_preproc=yes
  15626. else
  15627. $as_echo "$as_me: failed program was:" >&5
  15628. sed 's/^/| /' conftest.$ac_ext >&5
  15629. ac_header_preproc=no
  15630. fi
  15631. rm -f conftest.err conftest.$ac_ext
  15632. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15633. $as_echo "$ac_header_preproc" >&6; }
  15634. # So? What about this header?
  15635. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15636. yes:no: )
  15637. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15638. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15639. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15640. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15641. ac_header_preproc=yes
  15642. ;;
  15643. no:yes:* )
  15644. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15645. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15646. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15647. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15648. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15649. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15650. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15651. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15652. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15653. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15654. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15655. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15656. ( cat <<\_ASBOX
  15657. ## ----------------------------------------------- ##
  15658. ## Report this to t-tujikawa@users.sourceforge.net ##
  15659. ## ----------------------------------------------- ##
  15660. _ASBOX
  15661. ) | sed "s/^/$as_me: WARNING: /" >&2
  15662. ;;
  15663. esac
  15664. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15665. $as_echo_n "checking for $ac_header... " >&6; }
  15666. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15667. $as_echo_n "(cached) " >&6
  15668. else
  15669. eval "$as_ac_Header=\$ac_header_preproc"
  15670. fi
  15671. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15672. $as_echo "$as_val"'`
  15673. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15674. $as_echo "$ac_res" >&6; }
  15675. fi
  15676. as_val=`eval 'as_val=${'$as_ac_Header'}
  15677. $as_echo "$as_val"'`
  15678. if test "x$as_val" = x""yes; then
  15679. cat >>confdefs.h <<_ACEOF
  15680. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15681. _ACEOF
  15682. fi
  15683. done
  15684. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15685. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15686. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15687. $as_echo_n "(cached) " >&6
  15688. else
  15689. gt_save_LIBS="$LIBS"
  15690. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15691. cat >conftest.$ac_ext <<_ACEOF
  15692. /* confdefs.h. */
  15693. _ACEOF
  15694. cat confdefs.h >>conftest.$ac_ext
  15695. cat >>conftest.$ac_ext <<_ACEOF
  15696. /* end confdefs.h. */
  15697. #include <CoreFoundation/CFPreferences.h>
  15698. int
  15699. main ()
  15700. {
  15701. CFPreferencesCopyAppValue(NULL, NULL)
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. rm -f conftest.$ac_objext conftest$ac_exeext
  15707. if { (ac_try="$ac_link"
  15708. case "(($ac_try" in
  15709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15710. *) ac_try_echo=$ac_try;;
  15711. esac
  15712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15713. $as_echo "$ac_try_echo") >&5
  15714. (eval "$ac_link") 2>conftest.er1
  15715. ac_status=$?
  15716. grep -v '^ *+' conftest.er1 >conftest.err
  15717. rm -f conftest.er1
  15718. cat conftest.err >&5
  15719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15720. (exit $ac_status); } && {
  15721. test -z "$ac_cxx_werror_flag" ||
  15722. test ! -s conftest.err
  15723. } && test -s conftest$ac_exeext && {
  15724. test "$cross_compiling" = yes ||
  15725. $as_test_x conftest$ac_exeext
  15726. }; then
  15727. gt_cv_func_CFPreferencesCopyAppValue=yes
  15728. else
  15729. $as_echo "$as_me: failed program was:" >&5
  15730. sed 's/^/| /' conftest.$ac_ext >&5
  15731. gt_cv_func_CFPreferencesCopyAppValue=no
  15732. fi
  15733. rm -rf conftest.dSYM
  15734. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15735. conftest$ac_exeext conftest.$ac_ext
  15736. LIBS="$gt_save_LIBS"
  15737. fi
  15738. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15739. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15740. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15741. cat >>confdefs.h <<\_ACEOF
  15742. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15743. _ACEOF
  15744. fi
  15745. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15746. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15747. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15748. $as_echo_n "(cached) " >&6
  15749. else
  15750. gt_save_LIBS="$LIBS"
  15751. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15752. cat >conftest.$ac_ext <<_ACEOF
  15753. /* confdefs.h. */
  15754. _ACEOF
  15755. cat confdefs.h >>conftest.$ac_ext
  15756. cat >>conftest.$ac_ext <<_ACEOF
  15757. /* end confdefs.h. */
  15758. #include <CoreFoundation/CFLocale.h>
  15759. int
  15760. main ()
  15761. {
  15762. CFLocaleCopyCurrent();
  15763. ;
  15764. return 0;
  15765. }
  15766. _ACEOF
  15767. rm -f conftest.$ac_objext conftest$ac_exeext
  15768. if { (ac_try="$ac_link"
  15769. case "(($ac_try" in
  15770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15771. *) ac_try_echo=$ac_try;;
  15772. esac
  15773. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15774. $as_echo "$ac_try_echo") >&5
  15775. (eval "$ac_link") 2>conftest.er1
  15776. ac_status=$?
  15777. grep -v '^ *+' conftest.er1 >conftest.err
  15778. rm -f conftest.er1
  15779. cat conftest.err >&5
  15780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15781. (exit $ac_status); } && {
  15782. test -z "$ac_cxx_werror_flag" ||
  15783. test ! -s conftest.err
  15784. } && test -s conftest$ac_exeext && {
  15785. test "$cross_compiling" = yes ||
  15786. $as_test_x conftest$ac_exeext
  15787. }; then
  15788. gt_cv_func_CFLocaleCopyCurrent=yes
  15789. else
  15790. $as_echo "$as_me: failed program was:" >&5
  15791. sed 's/^/| /' conftest.$ac_ext >&5
  15792. gt_cv_func_CFLocaleCopyCurrent=no
  15793. fi
  15794. rm -rf conftest.dSYM
  15795. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15796. conftest$ac_exeext conftest.$ac_ext
  15797. LIBS="$gt_save_LIBS"
  15798. fi
  15799. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15800. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15801. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15802. cat >>confdefs.h <<\_ACEOF
  15803. #define HAVE_CFLOCALECOPYCURRENT 1
  15804. _ACEOF
  15805. fi
  15806. INTL_MACOSX_LIBS=
  15807. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15808. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15809. fi
  15810. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15811. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15812. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15813. $as_echo_n "(cached) " >&6
  15814. else
  15815. ac_cv_type_ptrdiff_t=no
  15816. cat >conftest.$ac_ext <<_ACEOF
  15817. /* confdefs.h. */
  15818. _ACEOF
  15819. cat confdefs.h >>conftest.$ac_ext
  15820. cat >>conftest.$ac_ext <<_ACEOF
  15821. /* end confdefs.h. */
  15822. $ac_includes_default
  15823. int
  15824. main ()
  15825. {
  15826. if (sizeof (ptrdiff_t))
  15827. return 0;
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext
  15833. if { (ac_try="$ac_compile"
  15834. case "(($ac_try" in
  15835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15836. *) ac_try_echo=$ac_try;;
  15837. esac
  15838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15839. $as_echo "$ac_try_echo") >&5
  15840. (eval "$ac_compile") 2>conftest.er1
  15841. ac_status=$?
  15842. grep -v '^ *+' conftest.er1 >conftest.err
  15843. rm -f conftest.er1
  15844. cat conftest.err >&5
  15845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15846. (exit $ac_status); } && {
  15847. test -z "$ac_cxx_werror_flag" ||
  15848. test ! -s conftest.err
  15849. } && test -s conftest.$ac_objext; then
  15850. cat >conftest.$ac_ext <<_ACEOF
  15851. /* confdefs.h. */
  15852. _ACEOF
  15853. cat confdefs.h >>conftest.$ac_ext
  15854. cat >>conftest.$ac_ext <<_ACEOF
  15855. /* end confdefs.h. */
  15856. $ac_includes_default
  15857. int
  15858. main ()
  15859. {
  15860. if (sizeof ((ptrdiff_t)))
  15861. return 0;
  15862. ;
  15863. return 0;
  15864. }
  15865. _ACEOF
  15866. rm -f conftest.$ac_objext
  15867. if { (ac_try="$ac_compile"
  15868. case "(($ac_try" in
  15869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15870. *) ac_try_echo=$ac_try;;
  15871. esac
  15872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15873. $as_echo "$ac_try_echo") >&5
  15874. (eval "$ac_compile") 2>conftest.er1
  15875. ac_status=$?
  15876. grep -v '^ *+' conftest.er1 >conftest.err
  15877. rm -f conftest.er1
  15878. cat conftest.err >&5
  15879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15880. (exit $ac_status); } && {
  15881. test -z "$ac_cxx_werror_flag" ||
  15882. test ! -s conftest.err
  15883. } && test -s conftest.$ac_objext; then
  15884. :
  15885. else
  15886. $as_echo "$as_me: failed program was:" >&5
  15887. sed 's/^/| /' conftest.$ac_ext >&5
  15888. ac_cv_type_ptrdiff_t=yes
  15889. fi
  15890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15891. else
  15892. $as_echo "$as_me: failed program was:" >&5
  15893. sed 's/^/| /' conftest.$ac_ext >&5
  15894. fi
  15895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15896. fi
  15897. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15898. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15899. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15900. :
  15901. else
  15902. cat >>confdefs.h <<\_ACEOF
  15903. #define ptrdiff_t long
  15904. _ACEOF
  15905. fi
  15906. for ac_header in stddef.h stdlib.h string.h
  15907. do
  15908. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15909. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15910. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15911. $as_echo_n "checking for $ac_header... " >&6; }
  15912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15913. $as_echo_n "(cached) " >&6
  15914. fi
  15915. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15916. $as_echo "$as_val"'`
  15917. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15918. $as_echo "$ac_res" >&6; }
  15919. else
  15920. # Is the header compilable?
  15921. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15922. $as_echo_n "checking $ac_header usability... " >&6; }
  15923. cat >conftest.$ac_ext <<_ACEOF
  15924. /* confdefs.h. */
  15925. _ACEOF
  15926. cat confdefs.h >>conftest.$ac_ext
  15927. cat >>conftest.$ac_ext <<_ACEOF
  15928. /* end confdefs.h. */
  15929. $ac_includes_default
  15930. #include <$ac_header>
  15931. _ACEOF
  15932. rm -f conftest.$ac_objext
  15933. if { (ac_try="$ac_compile"
  15934. case "(($ac_try" in
  15935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15936. *) ac_try_echo=$ac_try;;
  15937. esac
  15938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15939. $as_echo "$ac_try_echo") >&5
  15940. (eval "$ac_compile") 2>conftest.er1
  15941. ac_status=$?
  15942. grep -v '^ *+' conftest.er1 >conftest.err
  15943. rm -f conftest.er1
  15944. cat conftest.err >&5
  15945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15946. (exit $ac_status); } && {
  15947. test -z "$ac_cxx_werror_flag" ||
  15948. test ! -s conftest.err
  15949. } && test -s conftest.$ac_objext; then
  15950. ac_header_compiler=yes
  15951. else
  15952. $as_echo "$as_me: failed program was:" >&5
  15953. sed 's/^/| /' conftest.$ac_ext >&5
  15954. ac_header_compiler=no
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15957. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15958. $as_echo "$ac_header_compiler" >&6; }
  15959. # Is the header present?
  15960. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15961. $as_echo_n "checking $ac_header presence... " >&6; }
  15962. cat >conftest.$ac_ext <<_ACEOF
  15963. /* confdefs.h. */
  15964. _ACEOF
  15965. cat confdefs.h >>conftest.$ac_ext
  15966. cat >>conftest.$ac_ext <<_ACEOF
  15967. /* end confdefs.h. */
  15968. #include <$ac_header>
  15969. _ACEOF
  15970. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15971. case "(($ac_try" in
  15972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15973. *) ac_try_echo=$ac_try;;
  15974. esac
  15975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15976. $as_echo "$ac_try_echo") >&5
  15977. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15978. ac_status=$?
  15979. grep -v '^ *+' conftest.er1 >conftest.err
  15980. rm -f conftest.er1
  15981. cat conftest.err >&5
  15982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15983. (exit $ac_status); } >/dev/null && {
  15984. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15985. test ! -s conftest.err
  15986. }; then
  15987. ac_header_preproc=yes
  15988. else
  15989. $as_echo "$as_me: failed program was:" >&5
  15990. sed 's/^/| /' conftest.$ac_ext >&5
  15991. ac_header_preproc=no
  15992. fi
  15993. rm -f conftest.err conftest.$ac_ext
  15994. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15995. $as_echo "$ac_header_preproc" >&6; }
  15996. # So? What about this header?
  15997. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15998. yes:no: )
  15999. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16000. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16001. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16002. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16003. ac_header_preproc=yes
  16004. ;;
  16005. no:yes:* )
  16006. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16007. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16008. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16009. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16010. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16011. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16012. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16013. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16015. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16016. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16017. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16018. ( cat <<\_ASBOX
  16019. ## ----------------------------------------------- ##
  16020. ## Report this to t-tujikawa@users.sourceforge.net ##
  16021. ## ----------------------------------------------- ##
  16022. _ASBOX
  16023. ) | sed "s/^/$as_me: WARNING: /" >&2
  16024. ;;
  16025. esac
  16026. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16027. $as_echo_n "checking for $ac_header... " >&6; }
  16028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16029. $as_echo_n "(cached) " >&6
  16030. else
  16031. eval "$as_ac_Header=\$ac_header_preproc"
  16032. fi
  16033. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16034. $as_echo "$as_val"'`
  16035. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16036. $as_echo "$ac_res" >&6; }
  16037. fi
  16038. as_val=`eval 'as_val=${'$as_ac_Header'}
  16039. $as_echo "$as_val"'`
  16040. if test "x$as_val" = x""yes; then
  16041. cat >>confdefs.h <<_ACEOF
  16042. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16043. _ACEOF
  16044. fi
  16045. done
  16046. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  16047. do
  16048. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16049. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16050. $as_echo_n "checking for $ac_func... " >&6; }
  16051. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16052. $as_echo_n "(cached) " >&6
  16053. else
  16054. cat >conftest.$ac_ext <<_ACEOF
  16055. /* confdefs.h. */
  16056. _ACEOF
  16057. cat confdefs.h >>conftest.$ac_ext
  16058. cat >>conftest.$ac_ext <<_ACEOF
  16059. /* end confdefs.h. */
  16060. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16061. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16062. #define $ac_func innocuous_$ac_func
  16063. /* System header to define __stub macros and hopefully few prototypes,
  16064. which can conflict with char $ac_func (); below.
  16065. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16066. <limits.h> exists even on freestanding compilers. */
  16067. #ifdef __STDC__
  16068. # include <limits.h>
  16069. #else
  16070. # include <assert.h>
  16071. #endif
  16072. #undef $ac_func
  16073. /* Override any GCC internal prototype to avoid an error.
  16074. Use char because int might match the return type of a GCC
  16075. builtin and then its argument prototype would still apply. */
  16076. #ifdef __cplusplus
  16077. extern "C"
  16078. #endif
  16079. char $ac_func ();
  16080. /* The GNU C library defines this for functions which it implements
  16081. to always fail with ENOSYS. Some functions are actually named
  16082. something starting with __ and the normal name is an alias. */
  16083. #if defined __stub_$ac_func || defined __stub___$ac_func
  16084. choke me
  16085. #endif
  16086. int
  16087. main ()
  16088. {
  16089. return $ac_func ();
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. rm -f conftest.$ac_objext conftest$ac_exeext
  16095. if { (ac_try="$ac_link"
  16096. case "(($ac_try" in
  16097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16098. *) ac_try_echo=$ac_try;;
  16099. esac
  16100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16101. $as_echo "$ac_try_echo") >&5
  16102. (eval "$ac_link") 2>conftest.er1
  16103. ac_status=$?
  16104. grep -v '^ *+' conftest.er1 >conftest.err
  16105. rm -f conftest.er1
  16106. cat conftest.err >&5
  16107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16108. (exit $ac_status); } && {
  16109. test -z "$ac_cxx_werror_flag" ||
  16110. test ! -s conftest.err
  16111. } && test -s conftest$ac_exeext && {
  16112. test "$cross_compiling" = yes ||
  16113. $as_test_x conftest$ac_exeext
  16114. }; then
  16115. eval "$as_ac_var=yes"
  16116. else
  16117. $as_echo "$as_me: failed program was:" >&5
  16118. sed 's/^/| /' conftest.$ac_ext >&5
  16119. eval "$as_ac_var=no"
  16120. fi
  16121. rm -rf conftest.dSYM
  16122. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16123. conftest$ac_exeext conftest.$ac_ext
  16124. fi
  16125. ac_res=`eval 'as_val=${'$as_ac_var'}
  16126. $as_echo "$as_val"'`
  16127. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16128. $as_echo "$ac_res" >&6; }
  16129. as_val=`eval 'as_val=${'$as_ac_var'}
  16130. $as_echo "$as_val"'`
  16131. if test "x$as_val" = x""yes; then
  16132. cat >>confdefs.h <<_ACEOF
  16133. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16134. _ACEOF
  16135. fi
  16136. done
  16137. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  16138. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  16139. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  16140. $as_echo_n "(cached) " >&6
  16141. else
  16142. cat >conftest.$ac_ext <<_ACEOF
  16143. /* confdefs.h. */
  16144. _ACEOF
  16145. cat confdefs.h >>conftest.$ac_ext
  16146. cat >>conftest.$ac_ext <<_ACEOF
  16147. /* end confdefs.h. */
  16148. #include <stdio.h>
  16149. int
  16150. main ()
  16151. {
  16152. #ifndef _snprintf
  16153. char *p = (char *) _snprintf;
  16154. #endif
  16155. ;
  16156. return 0;
  16157. }
  16158. _ACEOF
  16159. rm -f conftest.$ac_objext
  16160. if { (ac_try="$ac_compile"
  16161. case "(($ac_try" in
  16162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16163. *) ac_try_echo=$ac_try;;
  16164. esac
  16165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16166. $as_echo "$ac_try_echo") >&5
  16167. (eval "$ac_compile") 2>conftest.er1
  16168. ac_status=$?
  16169. grep -v '^ *+' conftest.er1 >conftest.err
  16170. rm -f conftest.er1
  16171. cat conftest.err >&5
  16172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16173. (exit $ac_status); } && {
  16174. test -z "$ac_cxx_werror_flag" ||
  16175. test ! -s conftest.err
  16176. } && test -s conftest.$ac_objext; then
  16177. ac_cv_have_decl__snprintf=yes
  16178. else
  16179. $as_echo "$as_me: failed program was:" >&5
  16180. sed 's/^/| /' conftest.$ac_ext >&5
  16181. ac_cv_have_decl__snprintf=no
  16182. fi
  16183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16184. fi
  16185. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  16186. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  16187. if test $ac_cv_have_decl__snprintf = yes; then
  16188. gt_value=1
  16189. else
  16190. gt_value=0
  16191. fi
  16192. cat >>confdefs.h <<_ACEOF
  16193. #define HAVE_DECL__SNPRINTF $gt_value
  16194. _ACEOF
  16195. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  16196. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  16197. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  16198. $as_echo_n "(cached) " >&6
  16199. else
  16200. cat >conftest.$ac_ext <<_ACEOF
  16201. /* confdefs.h. */
  16202. _ACEOF
  16203. cat confdefs.h >>conftest.$ac_ext
  16204. cat >>conftest.$ac_ext <<_ACEOF
  16205. /* end confdefs.h. */
  16206. #include <stdio.h>
  16207. int
  16208. main ()
  16209. {
  16210. #ifndef _snwprintf
  16211. char *p = (char *) _snwprintf;
  16212. #endif
  16213. ;
  16214. return 0;
  16215. }
  16216. _ACEOF
  16217. rm -f conftest.$ac_objext
  16218. if { (ac_try="$ac_compile"
  16219. case "(($ac_try" in
  16220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16221. *) ac_try_echo=$ac_try;;
  16222. esac
  16223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16224. $as_echo "$ac_try_echo") >&5
  16225. (eval "$ac_compile") 2>conftest.er1
  16226. ac_status=$?
  16227. grep -v '^ *+' conftest.er1 >conftest.err
  16228. rm -f conftest.er1
  16229. cat conftest.err >&5
  16230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16231. (exit $ac_status); } && {
  16232. test -z "$ac_cxx_werror_flag" ||
  16233. test ! -s conftest.err
  16234. } && test -s conftest.$ac_objext; then
  16235. ac_cv_have_decl__snwprintf=yes
  16236. else
  16237. $as_echo "$as_me: failed program was:" >&5
  16238. sed 's/^/| /' conftest.$ac_ext >&5
  16239. ac_cv_have_decl__snwprintf=no
  16240. fi
  16241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16242. fi
  16243. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  16244. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16245. if test $ac_cv_have_decl__snwprintf = yes; then
  16246. gt_value=1
  16247. else
  16248. gt_value=0
  16249. fi
  16250. cat >>confdefs.h <<_ACEOF
  16251. #define HAVE_DECL__SNWPRINTF $gt_value
  16252. _ACEOF
  16253. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16254. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16255. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16256. $as_echo_n "(cached) " >&6
  16257. else
  16258. cat >conftest.$ac_ext <<_ACEOF
  16259. /* confdefs.h. */
  16260. _ACEOF
  16261. cat confdefs.h >>conftest.$ac_ext
  16262. cat >>conftest.$ac_ext <<_ACEOF
  16263. /* end confdefs.h. */
  16264. #include <stdio.h>
  16265. int
  16266. main ()
  16267. {
  16268. #ifndef getc_unlocked
  16269. char *p = (char *) getc_unlocked;
  16270. #endif
  16271. ;
  16272. return 0;
  16273. }
  16274. _ACEOF
  16275. rm -f conftest.$ac_objext
  16276. if { (ac_try="$ac_compile"
  16277. case "(($ac_try" in
  16278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16279. *) ac_try_echo=$ac_try;;
  16280. esac
  16281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16282. $as_echo "$ac_try_echo") >&5
  16283. (eval "$ac_compile") 2>conftest.er1
  16284. ac_status=$?
  16285. grep -v '^ *+' conftest.er1 >conftest.err
  16286. rm -f conftest.er1
  16287. cat conftest.err >&5
  16288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16289. (exit $ac_status); } && {
  16290. test -z "$ac_cxx_werror_flag" ||
  16291. test ! -s conftest.err
  16292. } && test -s conftest.$ac_objext; then
  16293. ac_cv_have_decl_getc_unlocked=yes
  16294. else
  16295. $as_echo "$as_me: failed program was:" >&5
  16296. sed 's/^/| /' conftest.$ac_ext >&5
  16297. ac_cv_have_decl_getc_unlocked=no
  16298. fi
  16299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16300. fi
  16301. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16302. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16303. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16304. gt_value=1
  16305. else
  16306. gt_value=0
  16307. fi
  16308. cat >>confdefs.h <<_ACEOF
  16309. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16310. _ACEOF
  16311. case $gt_cv_func_printf_posix in
  16312. *yes) HAVE_POSIX_PRINTF=1 ;;
  16313. *) HAVE_POSIX_PRINTF=0 ;;
  16314. esac
  16315. if test "$ac_cv_func_asprintf" = yes; then
  16316. HAVE_ASPRINTF=1
  16317. else
  16318. HAVE_ASPRINTF=0
  16319. fi
  16320. if test "$ac_cv_func_snprintf" = yes; then
  16321. HAVE_SNPRINTF=1
  16322. else
  16323. HAVE_SNPRINTF=0
  16324. fi
  16325. if test "$ac_cv_func_wprintf" = yes; then
  16326. HAVE_WPRINTF=1
  16327. else
  16328. HAVE_WPRINTF=0
  16329. fi
  16330. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16331. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16332. if test "${am_cv_langinfo_codeset+set}" = set; then
  16333. $as_echo_n "(cached) " >&6
  16334. else
  16335. cat >conftest.$ac_ext <<_ACEOF
  16336. /* confdefs.h. */
  16337. _ACEOF
  16338. cat confdefs.h >>conftest.$ac_ext
  16339. cat >>conftest.$ac_ext <<_ACEOF
  16340. /* end confdefs.h. */
  16341. #include <langinfo.h>
  16342. int
  16343. main ()
  16344. {
  16345. char* cs = nl_langinfo(CODESET); return !cs;
  16346. ;
  16347. return 0;
  16348. }
  16349. _ACEOF
  16350. rm -f conftest.$ac_objext conftest$ac_exeext
  16351. if { (ac_try="$ac_link"
  16352. case "(($ac_try" in
  16353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16354. *) ac_try_echo=$ac_try;;
  16355. esac
  16356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16357. $as_echo "$ac_try_echo") >&5
  16358. (eval "$ac_link") 2>conftest.er1
  16359. ac_status=$?
  16360. grep -v '^ *+' conftest.er1 >conftest.err
  16361. rm -f conftest.er1
  16362. cat conftest.err >&5
  16363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16364. (exit $ac_status); } && {
  16365. test -z "$ac_cxx_werror_flag" ||
  16366. test ! -s conftest.err
  16367. } && test -s conftest$ac_exeext && {
  16368. test "$cross_compiling" = yes ||
  16369. $as_test_x conftest$ac_exeext
  16370. }; then
  16371. am_cv_langinfo_codeset=yes
  16372. else
  16373. $as_echo "$as_me: failed program was:" >&5
  16374. sed 's/^/| /' conftest.$ac_ext >&5
  16375. am_cv_langinfo_codeset=no
  16376. fi
  16377. rm -rf conftest.dSYM
  16378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16379. conftest$ac_exeext conftest.$ac_ext
  16380. fi
  16381. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16382. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16383. if test $am_cv_langinfo_codeset = yes; then
  16384. cat >>confdefs.h <<\_ACEOF
  16385. #define HAVE_LANGINFO_CODESET 1
  16386. _ACEOF
  16387. fi
  16388. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16389. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16390. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16391. $as_echo_n "(cached) " >&6
  16392. else
  16393. cat >conftest.$ac_ext <<_ACEOF
  16394. /* confdefs.h. */
  16395. _ACEOF
  16396. cat confdefs.h >>conftest.$ac_ext
  16397. cat >>conftest.$ac_ext <<_ACEOF
  16398. /* end confdefs.h. */
  16399. #include <locale.h>
  16400. int
  16401. main ()
  16402. {
  16403. return LC_MESSAGES
  16404. ;
  16405. return 0;
  16406. }
  16407. _ACEOF
  16408. rm -f conftest.$ac_objext conftest$ac_exeext
  16409. if { (ac_try="$ac_link"
  16410. case "(($ac_try" in
  16411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16412. *) ac_try_echo=$ac_try;;
  16413. esac
  16414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16415. $as_echo "$ac_try_echo") >&5
  16416. (eval "$ac_link") 2>conftest.er1
  16417. ac_status=$?
  16418. grep -v '^ *+' conftest.er1 >conftest.err
  16419. rm -f conftest.er1
  16420. cat conftest.err >&5
  16421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16422. (exit $ac_status); } && {
  16423. test -z "$ac_cxx_werror_flag" ||
  16424. test ! -s conftest.err
  16425. } && test -s conftest$ac_exeext && {
  16426. test "$cross_compiling" = yes ||
  16427. $as_test_x conftest$ac_exeext
  16428. }; then
  16429. gt_cv_val_LC_MESSAGES=yes
  16430. else
  16431. $as_echo "$as_me: failed program was:" >&5
  16432. sed 's/^/| /' conftest.$ac_ext >&5
  16433. gt_cv_val_LC_MESSAGES=no
  16434. fi
  16435. rm -rf conftest.dSYM
  16436. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16437. conftest$ac_exeext conftest.$ac_ext
  16438. fi
  16439. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16440. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16441. if test $gt_cv_val_LC_MESSAGES = yes; then
  16442. cat >>confdefs.h <<\_ACEOF
  16443. #define HAVE_LC_MESSAGES 1
  16444. _ACEOF
  16445. fi
  16446. if test "$enable_shared" = yes; then
  16447. case "$host_os" in
  16448. mingw* | cygwin*) is_woe32dll=yes ;;
  16449. *) is_woe32dll=no ;;
  16450. esac
  16451. else
  16452. is_woe32dll=no
  16453. fi
  16454. WOE32DLL=$is_woe32dll
  16455. case "$host_os" in
  16456. mingw* | cygwin*) is_woe32=yes ;;
  16457. *) is_woe32=no ;;
  16458. esac
  16459. WOE32=$is_woe32
  16460. if test $WOE32 = yes; then
  16461. if test -n "$ac_tool_prefix"; then
  16462. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16463. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16464. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16465. $as_echo_n "checking for $ac_word... " >&6; }
  16466. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16467. $as_echo_n "(cached) " >&6
  16468. else
  16469. if test -n "$WINDRES"; then
  16470. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16471. else
  16472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16473. for as_dir in $PATH
  16474. do
  16475. IFS=$as_save_IFS
  16476. test -z "$as_dir" && as_dir=.
  16477. for ac_exec_ext in '' $ac_executable_extensions; do
  16478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16479. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16480. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16481. break 2
  16482. fi
  16483. done
  16484. done
  16485. IFS=$as_save_IFS
  16486. fi
  16487. fi
  16488. WINDRES=$ac_cv_prog_WINDRES
  16489. if test -n "$WINDRES"; then
  16490. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16491. $as_echo "$WINDRES" >&6; }
  16492. else
  16493. { $as_echo "$as_me:$LINENO: result: no" >&5
  16494. $as_echo "no" >&6; }
  16495. fi
  16496. fi
  16497. if test -z "$ac_cv_prog_WINDRES"; then
  16498. ac_ct_WINDRES=$WINDRES
  16499. # Extract the first word of "windres", so it can be a program name with args.
  16500. set dummy windres; ac_word=$2
  16501. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16502. $as_echo_n "checking for $ac_word... " >&6; }
  16503. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16504. $as_echo_n "(cached) " >&6
  16505. else
  16506. if test -n "$ac_ct_WINDRES"; then
  16507. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16508. else
  16509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16510. for as_dir in $PATH
  16511. do
  16512. IFS=$as_save_IFS
  16513. test -z "$as_dir" && as_dir=.
  16514. for ac_exec_ext in '' $ac_executable_extensions; do
  16515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16516. ac_cv_prog_ac_ct_WINDRES="windres"
  16517. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16518. break 2
  16519. fi
  16520. done
  16521. done
  16522. IFS=$as_save_IFS
  16523. fi
  16524. fi
  16525. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16526. if test -n "$ac_ct_WINDRES"; then
  16527. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16528. $as_echo "$ac_ct_WINDRES" >&6; }
  16529. else
  16530. { $as_echo "$as_me:$LINENO: result: no" >&5
  16531. $as_echo "no" >&6; }
  16532. fi
  16533. if test "x$ac_ct_WINDRES" = x; then
  16534. WINDRES=""
  16535. else
  16536. case $cross_compiling:$ac_tool_warned in
  16537. yes:)
  16538. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16540. ac_tool_warned=yes ;;
  16541. esac
  16542. WINDRES=$ac_ct_WINDRES
  16543. fi
  16544. else
  16545. WINDRES="$ac_cv_prog_WINDRES"
  16546. fi
  16547. fi
  16548. case "$host_os" in
  16549. hpux*) LTLIBC="" ;;
  16550. *) LTLIBC="-lc" ;;
  16551. esac
  16552. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16553. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16554. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16555. $as_echo_n "(cached) " >&6
  16556. else
  16557. gt_save_LIBS="$LIBS"
  16558. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16559. cat >conftest.$ac_ext <<_ACEOF
  16560. /* confdefs.h. */
  16561. _ACEOF
  16562. cat confdefs.h >>conftest.$ac_ext
  16563. cat >>conftest.$ac_ext <<_ACEOF
  16564. /* end confdefs.h. */
  16565. #include <CoreFoundation/CFPreferences.h>
  16566. int
  16567. main ()
  16568. {
  16569. CFPreferencesCopyAppValue(NULL, NULL)
  16570. ;
  16571. return 0;
  16572. }
  16573. _ACEOF
  16574. rm -f conftest.$ac_objext conftest$ac_exeext
  16575. if { (ac_try="$ac_link"
  16576. case "(($ac_try" in
  16577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16578. *) ac_try_echo=$ac_try;;
  16579. esac
  16580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16581. $as_echo "$ac_try_echo") >&5
  16582. (eval "$ac_link") 2>conftest.er1
  16583. ac_status=$?
  16584. grep -v '^ *+' conftest.er1 >conftest.err
  16585. rm -f conftest.er1
  16586. cat conftest.err >&5
  16587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16588. (exit $ac_status); } && {
  16589. test -z "$ac_cxx_werror_flag" ||
  16590. test ! -s conftest.err
  16591. } && test -s conftest$ac_exeext && {
  16592. test "$cross_compiling" = yes ||
  16593. $as_test_x conftest$ac_exeext
  16594. }; then
  16595. gt_cv_func_CFPreferencesCopyAppValue=yes
  16596. else
  16597. $as_echo "$as_me: failed program was:" >&5
  16598. sed 's/^/| /' conftest.$ac_ext >&5
  16599. gt_cv_func_CFPreferencesCopyAppValue=no
  16600. fi
  16601. rm -rf conftest.dSYM
  16602. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16603. conftest$ac_exeext conftest.$ac_ext
  16604. LIBS="$gt_save_LIBS"
  16605. fi
  16606. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16607. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16608. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16609. cat >>confdefs.h <<\_ACEOF
  16610. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16611. _ACEOF
  16612. fi
  16613. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16614. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16615. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16616. $as_echo_n "(cached) " >&6
  16617. else
  16618. gt_save_LIBS="$LIBS"
  16619. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16620. cat >conftest.$ac_ext <<_ACEOF
  16621. /* confdefs.h. */
  16622. _ACEOF
  16623. cat confdefs.h >>conftest.$ac_ext
  16624. cat >>conftest.$ac_ext <<_ACEOF
  16625. /* end confdefs.h. */
  16626. #include <CoreFoundation/CFLocale.h>
  16627. int
  16628. main ()
  16629. {
  16630. CFLocaleCopyCurrent();
  16631. ;
  16632. return 0;
  16633. }
  16634. _ACEOF
  16635. rm -f conftest.$ac_objext conftest$ac_exeext
  16636. if { (ac_try="$ac_link"
  16637. case "(($ac_try" in
  16638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16639. *) ac_try_echo=$ac_try;;
  16640. esac
  16641. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16642. $as_echo "$ac_try_echo") >&5
  16643. (eval "$ac_link") 2>conftest.er1
  16644. ac_status=$?
  16645. grep -v '^ *+' conftest.er1 >conftest.err
  16646. rm -f conftest.er1
  16647. cat conftest.err >&5
  16648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16649. (exit $ac_status); } && {
  16650. test -z "$ac_cxx_werror_flag" ||
  16651. test ! -s conftest.err
  16652. } && test -s conftest$ac_exeext && {
  16653. test "$cross_compiling" = yes ||
  16654. $as_test_x conftest$ac_exeext
  16655. }; then
  16656. gt_cv_func_CFLocaleCopyCurrent=yes
  16657. else
  16658. $as_echo "$as_me: failed program was:" >&5
  16659. sed 's/^/| /' conftest.$ac_ext >&5
  16660. gt_cv_func_CFLocaleCopyCurrent=no
  16661. fi
  16662. rm -rf conftest.dSYM
  16663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16664. conftest$ac_exeext conftest.$ac_ext
  16665. LIBS="$gt_save_LIBS"
  16666. fi
  16667. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16668. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16669. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16670. cat >>confdefs.h <<\_ACEOF
  16671. #define HAVE_CFLOCALECOPYCURRENT 1
  16672. _ACEOF
  16673. fi
  16674. INTL_MACOSX_LIBS=
  16675. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16676. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16677. fi
  16678. BUILD_INCLUDED_LIBINTL=no
  16679. USE_INCLUDED_LIBINTL=no
  16680. LIBINTL=
  16681. LTLIBINTL=
  16682. POSUB=
  16683. case " $gt_needs " in
  16684. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16685. *" need-ngettext "*) gt_api_version=2 ;;
  16686. *) gt_api_version=1 ;;
  16687. esac
  16688. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16689. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16690. if test "$USE_NLS" = "yes"; then
  16691. gt_use_preinstalled_gnugettext=no
  16692. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16693. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16694. # Check whether --with-included-gettext was given.
  16695. if test "${with_included_gettext+set}" = set; then
  16696. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16697. else
  16698. nls_cv_force_use_gnu_gettext=no
  16699. fi
  16700. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16701. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16702. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16703. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16704. if test $gt_api_version -ge 3; then
  16705. gt_revision_test_code='
  16706. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16707. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16708. #endif
  16709. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16710. '
  16711. else
  16712. gt_revision_test_code=
  16713. fi
  16714. if test $gt_api_version -ge 2; then
  16715. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16716. else
  16717. gt_expression_test_code=
  16718. fi
  16719. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16720. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16721. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16722. $as_echo_n "(cached) " >&6
  16723. else
  16724. cat >conftest.$ac_ext <<_ACEOF
  16725. /* confdefs.h. */
  16726. _ACEOF
  16727. cat confdefs.h >>conftest.$ac_ext
  16728. cat >>conftest.$ac_ext <<_ACEOF
  16729. /* end confdefs.h. */
  16730. #include <libintl.h>
  16731. $gt_revision_test_code
  16732. extern int _nl_msg_cat_cntr;
  16733. extern int *_nl_domain_bindings;
  16734. int
  16735. main ()
  16736. {
  16737. bindtextdomain ("", "");
  16738. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16739. ;
  16740. return 0;
  16741. }
  16742. _ACEOF
  16743. rm -f conftest.$ac_objext conftest$ac_exeext
  16744. if { (ac_try="$ac_link"
  16745. case "(($ac_try" in
  16746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16747. *) ac_try_echo=$ac_try;;
  16748. esac
  16749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16750. $as_echo "$ac_try_echo") >&5
  16751. (eval "$ac_link") 2>conftest.er1
  16752. ac_status=$?
  16753. grep -v '^ *+' conftest.er1 >conftest.err
  16754. rm -f conftest.er1
  16755. cat conftest.err >&5
  16756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16757. (exit $ac_status); } && {
  16758. test -z "$ac_cxx_werror_flag" ||
  16759. test ! -s conftest.err
  16760. } && test -s conftest$ac_exeext && {
  16761. test "$cross_compiling" = yes ||
  16762. $as_test_x conftest$ac_exeext
  16763. }; then
  16764. eval "$gt_func_gnugettext_libc=yes"
  16765. else
  16766. $as_echo "$as_me: failed program was:" >&5
  16767. sed 's/^/| /' conftest.$ac_ext >&5
  16768. eval "$gt_func_gnugettext_libc=no"
  16769. fi
  16770. rm -rf conftest.dSYM
  16771. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16772. conftest$ac_exeext conftest.$ac_ext
  16773. fi
  16774. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16775. $as_echo "$as_val"'`
  16776. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16777. $as_echo "$ac_res" >&6; }
  16778. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16779. use_additional=yes
  16780. acl_save_prefix="$prefix"
  16781. prefix="$acl_final_prefix"
  16782. acl_save_exec_prefix="$exec_prefix"
  16783. exec_prefix="$acl_final_exec_prefix"
  16784. eval additional_includedir=\"$includedir\"
  16785. eval additional_libdir=\"$libdir\"
  16786. exec_prefix="$acl_save_exec_prefix"
  16787. prefix="$acl_save_prefix"
  16788. # Check whether --with-libintl-prefix was given.
  16789. if test "${with_libintl_prefix+set}" = set; then
  16790. withval=$with_libintl_prefix;
  16791. if test "X$withval" = "Xno"; then
  16792. use_additional=no
  16793. else
  16794. if test "X$withval" = "X"; then
  16795. acl_save_prefix="$prefix"
  16796. prefix="$acl_final_prefix"
  16797. acl_save_exec_prefix="$exec_prefix"
  16798. exec_prefix="$acl_final_exec_prefix"
  16799. eval additional_includedir=\"$includedir\"
  16800. eval additional_libdir=\"$libdir\"
  16801. exec_prefix="$acl_save_exec_prefix"
  16802. prefix="$acl_save_prefix"
  16803. else
  16804. additional_includedir="$withval/include"
  16805. additional_libdir="$withval/$acl_libdirstem"
  16806. fi
  16807. fi
  16808. fi
  16809. LIBINTL=
  16810. LTLIBINTL=
  16811. INCINTL=
  16812. LIBINTL_PREFIX=
  16813. rpathdirs=
  16814. ltrpathdirs=
  16815. names_already_handled=
  16816. names_next_round='intl '
  16817. while test -n "$names_next_round"; do
  16818. names_this_round="$names_next_round"
  16819. names_next_round=
  16820. for name in $names_this_round; do
  16821. already_handled=
  16822. for n in $names_already_handled; do
  16823. if test "$n" = "$name"; then
  16824. already_handled=yes
  16825. break
  16826. fi
  16827. done
  16828. if test -z "$already_handled"; then
  16829. names_already_handled="$names_already_handled $name"
  16830. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16831. eval value=\"\$HAVE_LIB$uppername\"
  16832. if test -n "$value"; then
  16833. if test "$value" = yes; then
  16834. eval value=\"\$LIB$uppername\"
  16835. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16836. eval value=\"\$LTLIB$uppername\"
  16837. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16838. else
  16839. :
  16840. fi
  16841. else
  16842. found_dir=
  16843. found_la=
  16844. found_so=
  16845. found_a=
  16846. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16847. if test -n "$acl_shlibext"; then
  16848. shrext=".$acl_shlibext" # typically: shrext=.so
  16849. else
  16850. shrext=
  16851. fi
  16852. if test $use_additional = yes; then
  16853. dir="$additional_libdir"
  16854. if test -n "$acl_shlibext"; then
  16855. if test -f "$dir/$libname$shrext"; then
  16856. found_dir="$dir"
  16857. found_so="$dir/$libname$shrext"
  16858. else
  16859. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16860. ver=`(cd "$dir" && \
  16861. for f in "$libname$shrext".*; do echo "$f"; done \
  16862. | sed -e "s,^$libname$shrext\\\\.,," \
  16863. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16864. | sed 1q ) 2>/dev/null`
  16865. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16866. found_dir="$dir"
  16867. found_so="$dir/$libname$shrext.$ver"
  16868. fi
  16869. else
  16870. eval library_names=\"$acl_library_names_spec\"
  16871. for f in $library_names; do
  16872. if test -f "$dir/$f"; then
  16873. found_dir="$dir"
  16874. found_so="$dir/$f"
  16875. break
  16876. fi
  16877. done
  16878. fi
  16879. fi
  16880. fi
  16881. if test "X$found_dir" = "X"; then
  16882. if test -f "$dir/$libname.$acl_libext"; then
  16883. found_dir="$dir"
  16884. found_a="$dir/$libname.$acl_libext"
  16885. fi
  16886. fi
  16887. if test "X$found_dir" != "X"; then
  16888. if test -f "$dir/$libname.la"; then
  16889. found_la="$dir/$libname.la"
  16890. fi
  16891. fi
  16892. fi
  16893. if test "X$found_dir" = "X"; then
  16894. for x in $LDFLAGS $LTLIBINTL; do
  16895. acl_save_prefix="$prefix"
  16896. prefix="$acl_final_prefix"
  16897. acl_save_exec_prefix="$exec_prefix"
  16898. exec_prefix="$acl_final_exec_prefix"
  16899. eval x=\"$x\"
  16900. exec_prefix="$acl_save_exec_prefix"
  16901. prefix="$acl_save_prefix"
  16902. case "$x" in
  16903. -L*)
  16904. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16905. if test -n "$acl_shlibext"; then
  16906. if test -f "$dir/$libname$shrext"; then
  16907. found_dir="$dir"
  16908. found_so="$dir/$libname$shrext"
  16909. else
  16910. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16911. ver=`(cd "$dir" && \
  16912. for f in "$libname$shrext".*; do echo "$f"; done \
  16913. | sed -e "s,^$libname$shrext\\\\.,," \
  16914. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16915. | sed 1q ) 2>/dev/null`
  16916. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16917. found_dir="$dir"
  16918. found_so="$dir/$libname$shrext.$ver"
  16919. fi
  16920. else
  16921. eval library_names=\"$acl_library_names_spec\"
  16922. for f in $library_names; do
  16923. if test -f "$dir/$f"; then
  16924. found_dir="$dir"
  16925. found_so="$dir/$f"
  16926. break
  16927. fi
  16928. done
  16929. fi
  16930. fi
  16931. fi
  16932. if test "X$found_dir" = "X"; then
  16933. if test -f "$dir/$libname.$acl_libext"; then
  16934. found_dir="$dir"
  16935. found_a="$dir/$libname.$acl_libext"
  16936. fi
  16937. fi
  16938. if test "X$found_dir" != "X"; then
  16939. if test -f "$dir/$libname.la"; then
  16940. found_la="$dir/$libname.la"
  16941. fi
  16942. fi
  16943. ;;
  16944. esac
  16945. if test "X$found_dir" != "X"; then
  16946. break
  16947. fi
  16948. done
  16949. fi
  16950. if test "X$found_dir" != "X"; then
  16951. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16952. if test "X$found_so" != "X"; then
  16953. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16954. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16955. else
  16956. haveit=
  16957. for x in $ltrpathdirs; do
  16958. if test "X$x" = "X$found_dir"; then
  16959. haveit=yes
  16960. break
  16961. fi
  16962. done
  16963. if test -z "$haveit"; then
  16964. ltrpathdirs="$ltrpathdirs $found_dir"
  16965. fi
  16966. if test "$acl_hardcode_direct" = yes; then
  16967. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16968. else
  16969. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16970. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16971. haveit=
  16972. for x in $rpathdirs; do
  16973. if test "X$x" = "X$found_dir"; then
  16974. haveit=yes
  16975. break
  16976. fi
  16977. done
  16978. if test -z "$haveit"; then
  16979. rpathdirs="$rpathdirs $found_dir"
  16980. fi
  16981. else
  16982. haveit=
  16983. for x in $LDFLAGS $LIBINTL; do
  16984. acl_save_prefix="$prefix"
  16985. prefix="$acl_final_prefix"
  16986. acl_save_exec_prefix="$exec_prefix"
  16987. exec_prefix="$acl_final_exec_prefix"
  16988. eval x=\"$x\"
  16989. exec_prefix="$acl_save_exec_prefix"
  16990. prefix="$acl_save_prefix"
  16991. if test "X$x" = "X-L$found_dir"; then
  16992. haveit=yes
  16993. break
  16994. fi
  16995. done
  16996. if test -z "$haveit"; then
  16997. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16998. fi
  16999. if test "$acl_hardcode_minus_L" != no; then
  17000. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17001. else
  17002. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17003. fi
  17004. fi
  17005. fi
  17006. fi
  17007. else
  17008. if test "X$found_a" != "X"; then
  17009. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  17010. else
  17011. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  17012. fi
  17013. fi
  17014. additional_includedir=
  17015. case "$found_dir" in
  17016. */$acl_libdirstem | */$acl_libdirstem/)
  17017. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17018. LIBINTL_PREFIX="$basedir"
  17019. additional_includedir="$basedir/include"
  17020. ;;
  17021. esac
  17022. if test "X$additional_includedir" != "X"; then
  17023. if test "X$additional_includedir" != "X/usr/include"; then
  17024. haveit=
  17025. if test "X$additional_includedir" = "X/usr/local/include"; then
  17026. if test -n "$GCC"; then
  17027. case $host_os in
  17028. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17029. esac
  17030. fi
  17031. fi
  17032. if test -z "$haveit"; then
  17033. for x in $CPPFLAGS $INCINTL; do
  17034. acl_save_prefix="$prefix"
  17035. prefix="$acl_final_prefix"
  17036. acl_save_exec_prefix="$exec_prefix"
  17037. exec_prefix="$acl_final_exec_prefix"
  17038. eval x=\"$x\"
  17039. exec_prefix="$acl_save_exec_prefix"
  17040. prefix="$acl_save_prefix"
  17041. if test "X$x" = "X-I$additional_includedir"; then
  17042. haveit=yes
  17043. break
  17044. fi
  17045. done
  17046. if test -z "$haveit"; then
  17047. if test -d "$additional_includedir"; then
  17048. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  17049. fi
  17050. fi
  17051. fi
  17052. fi
  17053. fi
  17054. if test -n "$found_la"; then
  17055. save_libdir="$libdir"
  17056. case "$found_la" in
  17057. */* | *\\*) . "$found_la" ;;
  17058. *) . "./$found_la" ;;
  17059. esac
  17060. libdir="$save_libdir"
  17061. for dep in $dependency_libs; do
  17062. case "$dep" in
  17063. -L*)
  17064. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17065. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17066. haveit=
  17067. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17068. if test -n "$GCC"; then
  17069. case $host_os in
  17070. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17071. esac
  17072. fi
  17073. fi
  17074. if test -z "$haveit"; then
  17075. haveit=
  17076. for x in $LDFLAGS $LIBINTL; do
  17077. acl_save_prefix="$prefix"
  17078. prefix="$acl_final_prefix"
  17079. acl_save_exec_prefix="$exec_prefix"
  17080. exec_prefix="$acl_final_exec_prefix"
  17081. eval x=\"$x\"
  17082. exec_prefix="$acl_save_exec_prefix"
  17083. prefix="$acl_save_prefix"
  17084. if test "X$x" = "X-L$additional_libdir"; then
  17085. haveit=yes
  17086. break
  17087. fi
  17088. done
  17089. if test -z "$haveit"; then
  17090. if test -d "$additional_libdir"; then
  17091. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  17092. fi
  17093. fi
  17094. haveit=
  17095. for x in $LDFLAGS $LTLIBINTL; do
  17096. acl_save_prefix="$prefix"
  17097. prefix="$acl_final_prefix"
  17098. acl_save_exec_prefix="$exec_prefix"
  17099. exec_prefix="$acl_final_exec_prefix"
  17100. eval x=\"$x\"
  17101. exec_prefix="$acl_save_exec_prefix"
  17102. prefix="$acl_save_prefix"
  17103. if test "X$x" = "X-L$additional_libdir"; then
  17104. haveit=yes
  17105. break
  17106. fi
  17107. done
  17108. if test -z "$haveit"; then
  17109. if test -d "$additional_libdir"; then
  17110. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  17111. fi
  17112. fi
  17113. fi
  17114. fi
  17115. ;;
  17116. -R*)
  17117. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17118. if test "$enable_rpath" != no; then
  17119. haveit=
  17120. for x in $rpathdirs; do
  17121. if test "X$x" = "X$dir"; then
  17122. haveit=yes
  17123. break
  17124. fi
  17125. done
  17126. if test -z "$haveit"; then
  17127. rpathdirs="$rpathdirs $dir"
  17128. fi
  17129. haveit=
  17130. for x in $ltrpathdirs; do
  17131. if test "X$x" = "X$dir"; then
  17132. haveit=yes
  17133. break
  17134. fi
  17135. done
  17136. if test -z "$haveit"; then
  17137. ltrpathdirs="$ltrpathdirs $dir"
  17138. fi
  17139. fi
  17140. ;;
  17141. -l*)
  17142. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17143. ;;
  17144. *.la)
  17145. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17146. ;;
  17147. *)
  17148. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  17149. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  17150. ;;
  17151. esac
  17152. done
  17153. fi
  17154. else
  17155. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17156. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  17157. fi
  17158. fi
  17159. fi
  17160. done
  17161. done
  17162. if test "X$rpathdirs" != "X"; then
  17163. if test -n "$acl_hardcode_libdir_separator"; then
  17164. alldirs=
  17165. for found_dir in $rpathdirs; do
  17166. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17167. done
  17168. acl_save_libdir="$libdir"
  17169. libdir="$alldirs"
  17170. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17171. libdir="$acl_save_libdir"
  17172. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17173. else
  17174. for found_dir in $rpathdirs; do
  17175. acl_save_libdir="$libdir"
  17176. libdir="$found_dir"
  17177. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17178. libdir="$acl_save_libdir"
  17179. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17180. done
  17181. fi
  17182. fi
  17183. if test "X$ltrpathdirs" != "X"; then
  17184. for found_dir in $ltrpathdirs; do
  17185. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  17186. done
  17187. fi
  17188. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  17189. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  17190. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  17191. $as_echo_n "(cached) " >&6
  17192. else
  17193. gt_save_CPPFLAGS="$CPPFLAGS"
  17194. CPPFLAGS="$CPPFLAGS $INCINTL"
  17195. gt_save_LIBS="$LIBS"
  17196. LIBS="$LIBS $LIBINTL"
  17197. cat >conftest.$ac_ext <<_ACEOF
  17198. /* confdefs.h. */
  17199. _ACEOF
  17200. cat confdefs.h >>conftest.$ac_ext
  17201. cat >>conftest.$ac_ext <<_ACEOF
  17202. /* end confdefs.h. */
  17203. #include <libintl.h>
  17204. $gt_revision_test_code
  17205. extern int _nl_msg_cat_cntr;
  17206. extern
  17207. #ifdef __cplusplus
  17208. "C"
  17209. #endif
  17210. const char *_nl_expand_alias (const char *);
  17211. int
  17212. main ()
  17213. {
  17214. bindtextdomain ("", "");
  17215. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17216. ;
  17217. return 0;
  17218. }
  17219. _ACEOF
  17220. rm -f conftest.$ac_objext conftest$ac_exeext
  17221. if { (ac_try="$ac_link"
  17222. case "(($ac_try" in
  17223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17224. *) ac_try_echo=$ac_try;;
  17225. esac
  17226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17227. $as_echo "$ac_try_echo") >&5
  17228. (eval "$ac_link") 2>conftest.er1
  17229. ac_status=$?
  17230. grep -v '^ *+' conftest.er1 >conftest.err
  17231. rm -f conftest.er1
  17232. cat conftest.err >&5
  17233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17234. (exit $ac_status); } && {
  17235. test -z "$ac_cxx_werror_flag" ||
  17236. test ! -s conftest.err
  17237. } && test -s conftest$ac_exeext && {
  17238. test "$cross_compiling" = yes ||
  17239. $as_test_x conftest$ac_exeext
  17240. }; then
  17241. eval "$gt_func_gnugettext_libintl=yes"
  17242. else
  17243. $as_echo "$as_me: failed program was:" >&5
  17244. sed 's/^/| /' conftest.$ac_ext >&5
  17245. eval "$gt_func_gnugettext_libintl=no"
  17246. fi
  17247. rm -rf conftest.dSYM
  17248. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17249. conftest$ac_exeext conftest.$ac_ext
  17250. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17251. LIBS="$LIBS $LIBICONV"
  17252. cat >conftest.$ac_ext <<_ACEOF
  17253. /* confdefs.h. */
  17254. _ACEOF
  17255. cat confdefs.h >>conftest.$ac_ext
  17256. cat >>conftest.$ac_ext <<_ACEOF
  17257. /* end confdefs.h. */
  17258. #include <libintl.h>
  17259. $gt_revision_test_code
  17260. extern int _nl_msg_cat_cntr;
  17261. extern
  17262. #ifdef __cplusplus
  17263. "C"
  17264. #endif
  17265. const char *_nl_expand_alias (const char *);
  17266. int
  17267. main ()
  17268. {
  17269. bindtextdomain ("", "");
  17270. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17271. ;
  17272. return 0;
  17273. }
  17274. _ACEOF
  17275. rm -f conftest.$ac_objext conftest$ac_exeext
  17276. if { (ac_try="$ac_link"
  17277. case "(($ac_try" in
  17278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17279. *) ac_try_echo=$ac_try;;
  17280. esac
  17281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17282. $as_echo "$ac_try_echo") >&5
  17283. (eval "$ac_link") 2>conftest.er1
  17284. ac_status=$?
  17285. grep -v '^ *+' conftest.er1 >conftest.err
  17286. rm -f conftest.er1
  17287. cat conftest.err >&5
  17288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17289. (exit $ac_status); } && {
  17290. test -z "$ac_cxx_werror_flag" ||
  17291. test ! -s conftest.err
  17292. } && test -s conftest$ac_exeext && {
  17293. test "$cross_compiling" = yes ||
  17294. $as_test_x conftest$ac_exeext
  17295. }; then
  17296. LIBINTL="$LIBINTL $LIBICONV"
  17297. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17298. eval "$gt_func_gnugettext_libintl=yes"
  17299. else
  17300. $as_echo "$as_me: failed program was:" >&5
  17301. sed 's/^/| /' conftest.$ac_ext >&5
  17302. fi
  17303. rm -rf conftest.dSYM
  17304. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17305. conftest$ac_exeext conftest.$ac_ext
  17306. fi
  17307. CPPFLAGS="$gt_save_CPPFLAGS"
  17308. LIBS="$gt_save_LIBS"
  17309. fi
  17310. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17311. $as_echo "$as_val"'`
  17312. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17313. $as_echo "$ac_res" >&6; }
  17314. fi
  17315. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17316. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17317. && test "$PACKAGE" != gettext-runtime \
  17318. && test "$PACKAGE" != gettext-tools; }; then
  17319. gt_use_preinstalled_gnugettext=yes
  17320. else
  17321. LIBINTL=
  17322. LTLIBINTL=
  17323. INCINTL=
  17324. fi
  17325. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17326. nls_cv_use_gnu_gettext=yes
  17327. fi
  17328. fi
  17329. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17330. BUILD_INCLUDED_LIBINTL=yes
  17331. USE_INCLUDED_LIBINTL=yes
  17332. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17333. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17334. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17335. fi
  17336. CATOBJEXT=
  17337. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17338. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17339. CATOBJEXT=.gmo
  17340. fi
  17341. if test -n "$INTL_MACOSX_LIBS"; then
  17342. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17343. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17344. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17345. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17346. fi
  17347. fi
  17348. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17349. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17350. cat >>confdefs.h <<\_ACEOF
  17351. #define ENABLE_NLS 1
  17352. _ACEOF
  17353. else
  17354. USE_NLS=no
  17355. fi
  17356. fi
  17357. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17358. $as_echo_n "checking whether to use NLS... " >&6; }
  17359. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17360. $as_echo "$USE_NLS" >&6; }
  17361. if test "$USE_NLS" = "yes"; then
  17362. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17363. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17364. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17365. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17366. gt_source="external libintl"
  17367. else
  17368. gt_source="libc"
  17369. fi
  17370. else
  17371. gt_source="included intl directory"
  17372. fi
  17373. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17374. $as_echo "$gt_source" >&6; }
  17375. fi
  17376. if test "$USE_NLS" = "yes"; then
  17377. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17378. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17379. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17380. $as_echo_n "checking how to link with libintl... " >&6; }
  17381. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17382. $as_echo "$LIBINTL" >&6; }
  17383. for element in $INCINTL; do
  17384. haveit=
  17385. for x in $CPPFLAGS; do
  17386. acl_save_prefix="$prefix"
  17387. prefix="$acl_final_prefix"
  17388. acl_save_exec_prefix="$exec_prefix"
  17389. exec_prefix="$acl_final_exec_prefix"
  17390. eval x=\"$x\"
  17391. exec_prefix="$acl_save_exec_prefix"
  17392. prefix="$acl_save_prefix"
  17393. if test "X$x" = "X$element"; then
  17394. haveit=yes
  17395. break
  17396. fi
  17397. done
  17398. if test -z "$haveit"; then
  17399. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17400. fi
  17401. done
  17402. fi
  17403. cat >>confdefs.h <<\_ACEOF
  17404. #define HAVE_GETTEXT 1
  17405. _ACEOF
  17406. cat >>confdefs.h <<\_ACEOF
  17407. #define HAVE_DCGETTEXT 1
  17408. _ACEOF
  17409. fi
  17410. POSUB=po
  17411. fi
  17412. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17413. BUILD_INCLUDED_LIBINTL=yes
  17414. fi
  17415. nls_cv_header_intl=
  17416. nls_cv_header_libgt=
  17417. DATADIRNAME=share
  17418. INSTOBJEXT=.mo
  17419. GENCAT=gencat
  17420. INTLOBJS=
  17421. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17422. INTLOBJS="\$(GETTOBJS)"
  17423. fi
  17424. INTL_LIBTOOL_SUFFIX_PREFIX=
  17425. INTLLIBS="$LIBINTL"
  17426. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17427. $as_echo_n "checking for error_at_line... " >&6; }
  17428. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17429. $as_echo_n "(cached) " >&6
  17430. else
  17431. cat >conftest.$ac_ext <<_ACEOF
  17432. /* confdefs.h. */
  17433. _ACEOF
  17434. cat confdefs.h >>conftest.$ac_ext
  17435. cat >>conftest.$ac_ext <<_ACEOF
  17436. /* end confdefs.h. */
  17437. #include <error.h>
  17438. int
  17439. main ()
  17440. {
  17441. error_at_line (0, 0, "", 0, "an error occurred");
  17442. ;
  17443. return 0;
  17444. }
  17445. _ACEOF
  17446. rm -f conftest.$ac_objext conftest$ac_exeext
  17447. if { (ac_try="$ac_link"
  17448. case "(($ac_try" in
  17449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17450. *) ac_try_echo=$ac_try;;
  17451. esac
  17452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17453. $as_echo "$ac_try_echo") >&5
  17454. (eval "$ac_link") 2>conftest.er1
  17455. ac_status=$?
  17456. grep -v '^ *+' conftest.er1 >conftest.err
  17457. rm -f conftest.er1
  17458. cat conftest.err >&5
  17459. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17460. (exit $ac_status); } && {
  17461. test -z "$ac_cxx_werror_flag" ||
  17462. test ! -s conftest.err
  17463. } && test -s conftest$ac_exeext && {
  17464. test "$cross_compiling" = yes ||
  17465. $as_test_x conftest$ac_exeext
  17466. }; then
  17467. ac_cv_lib_error_at_line=yes
  17468. else
  17469. $as_echo "$as_me: failed program was:" >&5
  17470. sed 's/^/| /' conftest.$ac_ext >&5
  17471. ac_cv_lib_error_at_line=no
  17472. fi
  17473. rm -rf conftest.dSYM
  17474. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17475. conftest$ac_exeext conftest.$ac_ext
  17476. fi
  17477. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17478. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17479. if test $ac_cv_lib_error_at_line = no; then
  17480. case " $LIBOBJS " in
  17481. *" error.$ac_objext "* ) ;;
  17482. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17483. ;;
  17484. esac
  17485. fi
  17486. if test $ac_cv_c_compiler_gnu = yes; then
  17487. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17488. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17489. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17490. $as_echo_n "(cached) " >&6
  17491. else
  17492. ac_pattern="Autoconf.*'x'"
  17493. cat >conftest.$ac_ext <<_ACEOF
  17494. /* confdefs.h. */
  17495. _ACEOF
  17496. cat confdefs.h >>conftest.$ac_ext
  17497. cat >>conftest.$ac_ext <<_ACEOF
  17498. /* end confdefs.h. */
  17499. #include <sgtty.h>
  17500. Autoconf TIOCGETP
  17501. _ACEOF
  17502. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17503. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17504. ac_cv_prog_gcc_traditional=yes
  17505. else
  17506. ac_cv_prog_gcc_traditional=no
  17507. fi
  17508. rm -f conftest*
  17509. if test $ac_cv_prog_gcc_traditional = no; then
  17510. cat >conftest.$ac_ext <<_ACEOF
  17511. /* confdefs.h. */
  17512. _ACEOF
  17513. cat confdefs.h >>conftest.$ac_ext
  17514. cat >>conftest.$ac_ext <<_ACEOF
  17515. /* end confdefs.h. */
  17516. #include <termio.h>
  17517. Autoconf TCGETA
  17518. _ACEOF
  17519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17520. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17521. ac_cv_prog_gcc_traditional=yes
  17522. fi
  17523. rm -f conftest*
  17524. fi
  17525. fi
  17526. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17527. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17528. if test $ac_cv_prog_gcc_traditional = yes; then
  17529. CC="$CC -traditional"
  17530. fi
  17531. fi
  17532. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17533. $as_echo_n "checking for working memcmp... " >&6; }
  17534. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17535. $as_echo_n "(cached) " >&6
  17536. else
  17537. if test "$cross_compiling" = yes; then
  17538. ac_cv_func_memcmp_working=no
  17539. else
  17540. cat >conftest.$ac_ext <<_ACEOF
  17541. /* confdefs.h. */
  17542. _ACEOF
  17543. cat confdefs.h >>conftest.$ac_ext
  17544. cat >>conftest.$ac_ext <<_ACEOF
  17545. /* end confdefs.h. */
  17546. $ac_includes_default
  17547. int
  17548. main ()
  17549. {
  17550. /* Some versions of memcmp are not 8-bit clean. */
  17551. char c0 = '\100', c1 = '\200', c2 = '\201';
  17552. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17553. return 1;
  17554. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17555. or more and with at least one buffer not starting on a 4-byte boundary.
  17556. William Lewis provided this test program. */
  17557. {
  17558. char foo[21];
  17559. char bar[21];
  17560. int i;
  17561. for (i = 0; i < 4; i++)
  17562. {
  17563. char *a = foo + i;
  17564. char *b = bar + i;
  17565. strcpy (a, "--------01111111");
  17566. strcpy (b, "--------10000000");
  17567. if (memcmp (a, b, 16) >= 0)
  17568. return 1;
  17569. }
  17570. return 0;
  17571. }
  17572. ;
  17573. return 0;
  17574. }
  17575. _ACEOF
  17576. rm -f conftest$ac_exeext
  17577. if { (ac_try="$ac_link"
  17578. case "(($ac_try" in
  17579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17580. *) ac_try_echo=$ac_try;;
  17581. esac
  17582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17583. $as_echo "$ac_try_echo") >&5
  17584. (eval "$ac_link") 2>&5
  17585. ac_status=$?
  17586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17588. { (case "(($ac_try" in
  17589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17590. *) ac_try_echo=$ac_try;;
  17591. esac
  17592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17593. $as_echo "$ac_try_echo") >&5
  17594. (eval "$ac_try") 2>&5
  17595. ac_status=$?
  17596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17597. (exit $ac_status); }; }; then
  17598. ac_cv_func_memcmp_working=yes
  17599. else
  17600. $as_echo "$as_me: program exited with status $ac_status" >&5
  17601. $as_echo "$as_me: failed program was:" >&5
  17602. sed 's/^/| /' conftest.$ac_ext >&5
  17603. ( exit $ac_status )
  17604. ac_cv_func_memcmp_working=no
  17605. fi
  17606. rm -rf conftest.dSYM
  17607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17608. fi
  17609. fi
  17610. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17611. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17612. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17613. *" memcmp.$ac_objext "* ) ;;
  17614. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17615. ;;
  17616. esac
  17617. for ac_header in $ac_header_list
  17618. do
  17619. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17620. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17621. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17622. $as_echo_n "checking for $ac_header... " >&6; }
  17623. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17624. $as_echo_n "(cached) " >&6
  17625. fi
  17626. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17627. $as_echo "$as_val"'`
  17628. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17629. $as_echo "$ac_res" >&6; }
  17630. else
  17631. # Is the header compilable?
  17632. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17633. $as_echo_n "checking $ac_header usability... " >&6; }
  17634. cat >conftest.$ac_ext <<_ACEOF
  17635. /* confdefs.h. */
  17636. _ACEOF
  17637. cat confdefs.h >>conftest.$ac_ext
  17638. cat >>conftest.$ac_ext <<_ACEOF
  17639. /* end confdefs.h. */
  17640. $ac_includes_default
  17641. #include <$ac_header>
  17642. _ACEOF
  17643. rm -f conftest.$ac_objext
  17644. if { (ac_try="$ac_compile"
  17645. case "(($ac_try" in
  17646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17647. *) ac_try_echo=$ac_try;;
  17648. esac
  17649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17650. $as_echo "$ac_try_echo") >&5
  17651. (eval "$ac_compile") 2>conftest.er1
  17652. ac_status=$?
  17653. grep -v '^ *+' conftest.er1 >conftest.err
  17654. rm -f conftest.er1
  17655. cat conftest.err >&5
  17656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17657. (exit $ac_status); } && {
  17658. test -z "$ac_cxx_werror_flag" ||
  17659. test ! -s conftest.err
  17660. } && test -s conftest.$ac_objext; then
  17661. ac_header_compiler=yes
  17662. else
  17663. $as_echo "$as_me: failed program was:" >&5
  17664. sed 's/^/| /' conftest.$ac_ext >&5
  17665. ac_header_compiler=no
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17668. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17669. $as_echo "$ac_header_compiler" >&6; }
  17670. # Is the header present?
  17671. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17672. $as_echo_n "checking $ac_header presence... " >&6; }
  17673. cat >conftest.$ac_ext <<_ACEOF
  17674. /* confdefs.h. */
  17675. _ACEOF
  17676. cat confdefs.h >>conftest.$ac_ext
  17677. cat >>conftest.$ac_ext <<_ACEOF
  17678. /* end confdefs.h. */
  17679. #include <$ac_header>
  17680. _ACEOF
  17681. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17682. case "(($ac_try" in
  17683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17684. *) ac_try_echo=$ac_try;;
  17685. esac
  17686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17687. $as_echo "$ac_try_echo") >&5
  17688. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17689. ac_status=$?
  17690. grep -v '^ *+' conftest.er1 >conftest.err
  17691. rm -f conftest.er1
  17692. cat conftest.err >&5
  17693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17694. (exit $ac_status); } >/dev/null && {
  17695. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17696. test ! -s conftest.err
  17697. }; then
  17698. ac_header_preproc=yes
  17699. else
  17700. $as_echo "$as_me: failed program was:" >&5
  17701. sed 's/^/| /' conftest.$ac_ext >&5
  17702. ac_header_preproc=no
  17703. fi
  17704. rm -f conftest.err conftest.$ac_ext
  17705. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17706. $as_echo "$ac_header_preproc" >&6; }
  17707. # So? What about this header?
  17708. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17709. yes:no: )
  17710. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17711. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17712. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17713. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17714. ac_header_preproc=yes
  17715. ;;
  17716. no:yes:* )
  17717. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17718. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17719. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17720. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17721. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17722. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17723. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17724. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17725. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17726. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17727. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17728. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17729. ( cat <<\_ASBOX
  17730. ## ----------------------------------------------- ##
  17731. ## Report this to t-tujikawa@users.sourceforge.net ##
  17732. ## ----------------------------------------------- ##
  17733. _ASBOX
  17734. ) | sed "s/^/$as_me: WARNING: /" >&2
  17735. ;;
  17736. esac
  17737. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17738. $as_echo_n "checking for $ac_header... " >&6; }
  17739. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17740. $as_echo_n "(cached) " >&6
  17741. else
  17742. eval "$as_ac_Header=\$ac_header_preproc"
  17743. fi
  17744. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17745. $as_echo "$as_val"'`
  17746. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17747. $as_echo "$ac_res" >&6; }
  17748. fi
  17749. as_val=`eval 'as_val=${'$as_ac_Header'}
  17750. $as_echo "$as_val"'`
  17751. if test "x$as_val" = x""yes; then
  17752. cat >>confdefs.h <<_ACEOF
  17753. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17754. _ACEOF
  17755. fi
  17756. done
  17757. for ac_func in $ac_func_list
  17758. do
  17759. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17760. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17761. $as_echo_n "checking for $ac_func... " >&6; }
  17762. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17763. $as_echo_n "(cached) " >&6
  17764. else
  17765. cat >conftest.$ac_ext <<_ACEOF
  17766. /* confdefs.h. */
  17767. _ACEOF
  17768. cat confdefs.h >>conftest.$ac_ext
  17769. cat >>conftest.$ac_ext <<_ACEOF
  17770. /* end confdefs.h. */
  17771. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17772. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17773. #define $ac_func innocuous_$ac_func
  17774. /* System header to define __stub macros and hopefully few prototypes,
  17775. which can conflict with char $ac_func (); below.
  17776. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17777. <limits.h> exists even on freestanding compilers. */
  17778. #ifdef __STDC__
  17779. # include <limits.h>
  17780. #else
  17781. # include <assert.h>
  17782. #endif
  17783. #undef $ac_func
  17784. /* Override any GCC internal prototype to avoid an error.
  17785. Use char because int might match the return type of a GCC
  17786. builtin and then its argument prototype would still apply. */
  17787. #ifdef __cplusplus
  17788. extern "C"
  17789. #endif
  17790. char $ac_func ();
  17791. /* The GNU C library defines this for functions which it implements
  17792. to always fail with ENOSYS. Some functions are actually named
  17793. something starting with __ and the normal name is an alias. */
  17794. #if defined __stub_$ac_func || defined __stub___$ac_func
  17795. choke me
  17796. #endif
  17797. int
  17798. main ()
  17799. {
  17800. return $ac_func ();
  17801. ;
  17802. return 0;
  17803. }
  17804. _ACEOF
  17805. rm -f conftest.$ac_objext conftest$ac_exeext
  17806. if { (ac_try="$ac_link"
  17807. case "(($ac_try" in
  17808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17809. *) ac_try_echo=$ac_try;;
  17810. esac
  17811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17812. $as_echo "$ac_try_echo") >&5
  17813. (eval "$ac_link") 2>conftest.er1
  17814. ac_status=$?
  17815. grep -v '^ *+' conftest.er1 >conftest.err
  17816. rm -f conftest.er1
  17817. cat conftest.err >&5
  17818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. (exit $ac_status); } && {
  17820. test -z "$ac_cxx_werror_flag" ||
  17821. test ! -s conftest.err
  17822. } && test -s conftest$ac_exeext && {
  17823. test "$cross_compiling" = yes ||
  17824. $as_test_x conftest$ac_exeext
  17825. }; then
  17826. eval "$as_ac_var=yes"
  17827. else
  17828. $as_echo "$as_me: failed program was:" >&5
  17829. sed 's/^/| /' conftest.$ac_ext >&5
  17830. eval "$as_ac_var=no"
  17831. fi
  17832. rm -rf conftest.dSYM
  17833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17834. conftest$ac_exeext conftest.$ac_ext
  17835. fi
  17836. ac_res=`eval 'as_val=${'$as_ac_var'}
  17837. $as_echo "$as_val"'`
  17838. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17839. $as_echo "$ac_res" >&6; }
  17840. as_val=`eval 'as_val=${'$as_ac_var'}
  17841. $as_echo "$as_val"'`
  17842. if test "x$as_val" = x""yes; then
  17843. cat >>confdefs.h <<_ACEOF
  17844. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17845. _ACEOF
  17846. fi
  17847. done
  17848. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17849. $as_echo_n "checking for working mktime... " >&6; }
  17850. if test "${ac_cv_func_working_mktime+set}" = set; then
  17851. $as_echo_n "(cached) " >&6
  17852. else
  17853. if test "$cross_compiling" = yes; then
  17854. ac_cv_func_working_mktime=no
  17855. else
  17856. cat >conftest.$ac_ext <<_ACEOF
  17857. /* confdefs.h. */
  17858. _ACEOF
  17859. cat confdefs.h >>conftest.$ac_ext
  17860. cat >>conftest.$ac_ext <<_ACEOF
  17861. /* end confdefs.h. */
  17862. /* Test program from Paul Eggert and Tony Leneis. */
  17863. #ifdef TIME_WITH_SYS_TIME
  17864. # include <sys/time.h>
  17865. # include <time.h>
  17866. #else
  17867. # ifdef HAVE_SYS_TIME_H
  17868. # include <sys/time.h>
  17869. # else
  17870. # include <time.h>
  17871. # endif
  17872. #endif
  17873. #include <limits.h>
  17874. #include <stdlib.h>
  17875. #ifdef HAVE_UNISTD_H
  17876. # include <unistd.h>
  17877. #endif
  17878. #ifndef HAVE_ALARM
  17879. # define alarm(X) /* empty */
  17880. #endif
  17881. /* Work around redefinition to rpl_putenv by other config tests. */
  17882. #undef putenv
  17883. static time_t time_t_max;
  17884. static time_t time_t_min;
  17885. /* Values we'll use to set the TZ environment variable. */
  17886. static char *tz_strings[] = {
  17887. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17888. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17889. };
  17890. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17891. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17892. Based on a problem report from Andreas Jaeger. */
  17893. static int
  17894. spring_forward_gap ()
  17895. {
  17896. /* glibc (up to about 1998-10-07) failed this test. */
  17897. struct tm tm;
  17898. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17899. instead of "TZ=America/Vancouver" in order to detect the bug even
  17900. on systems that don't support the Olson extension, or don't have the
  17901. full zoneinfo tables installed. */
  17902. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17903. tm.tm_year = 98;
  17904. tm.tm_mon = 3;
  17905. tm.tm_mday = 5;
  17906. tm.tm_hour = 2;
  17907. tm.tm_min = 0;
  17908. tm.tm_sec = 0;
  17909. tm.tm_isdst = -1;
  17910. return mktime (&tm) != (time_t) -1;
  17911. }
  17912. static int
  17913. mktime_test1 (now)
  17914. time_t now;
  17915. {
  17916. struct tm *lt;
  17917. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17918. }
  17919. static int
  17920. mktime_test (now)
  17921. time_t now;
  17922. {
  17923. return (mktime_test1 (now)
  17924. && mktime_test1 ((time_t) (time_t_max - now))
  17925. && mktime_test1 ((time_t) (time_t_min + now)));
  17926. }
  17927. static int
  17928. irix_6_4_bug ()
  17929. {
  17930. /* Based on code from Ariel Faigon. */
  17931. struct tm tm;
  17932. tm.tm_year = 96;
  17933. tm.tm_mon = 3;
  17934. tm.tm_mday = 0;
  17935. tm.tm_hour = 0;
  17936. tm.tm_min = 0;
  17937. tm.tm_sec = 0;
  17938. tm.tm_isdst = -1;
  17939. mktime (&tm);
  17940. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17941. }
  17942. static int
  17943. bigtime_test (j)
  17944. int j;
  17945. {
  17946. struct tm tm;
  17947. time_t now;
  17948. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17949. now = mktime (&tm);
  17950. if (now != (time_t) -1)
  17951. {
  17952. struct tm *lt = localtime (&now);
  17953. if (! (lt
  17954. && lt->tm_year == tm.tm_year
  17955. && lt->tm_mon == tm.tm_mon
  17956. && lt->tm_mday == tm.tm_mday
  17957. && lt->tm_hour == tm.tm_hour
  17958. && lt->tm_min == tm.tm_min
  17959. && lt->tm_sec == tm.tm_sec
  17960. && lt->tm_yday == tm.tm_yday
  17961. && lt->tm_wday == tm.tm_wday
  17962. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17963. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17964. return 0;
  17965. }
  17966. return 1;
  17967. }
  17968. static int
  17969. year_2050_test ()
  17970. {
  17971. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17972. ignoring leap seconds. */
  17973. unsigned long int answer = 2527315200UL;
  17974. struct tm tm;
  17975. time_t t;
  17976. tm.tm_year = 2050 - 1900;
  17977. tm.tm_mon = 2 - 1;
  17978. tm.tm_mday = 1;
  17979. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17980. tm.tm_isdst = -1;
  17981. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17982. instead of "TZ=America/Vancouver" in order to detect the bug even
  17983. on systems that don't support the Olson extension, or don't have the
  17984. full zoneinfo tables installed. */
  17985. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17986. t = mktime (&tm);
  17987. /* Check that the result is either a failure, or close enough
  17988. to the correct answer that we can assume the discrepancy is
  17989. due to leap seconds. */
  17990. return (t == (time_t) -1
  17991. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17992. }
  17993. int
  17994. main ()
  17995. {
  17996. time_t t, delta;
  17997. int i, j;
  17998. /* This test makes some buggy mktime implementations loop.
  17999. Give up after 60 seconds; a mktime slower than that
  18000. isn't worth using anyway. */
  18001. alarm (60);
  18002. for (;;)
  18003. {
  18004. t = (time_t_max << 1) + 1;
  18005. if (t <= time_t_max)
  18006. break;
  18007. time_t_max = t;
  18008. }
  18009. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  18010. delta = time_t_max / 997; /* a suitable prime number */
  18011. for (i = 0; i < N_STRINGS; i++)
  18012. {
  18013. if (tz_strings[i])
  18014. putenv (tz_strings[i]);
  18015. for (t = 0; t <= time_t_max - delta; t += delta)
  18016. if (! mktime_test (t))
  18017. return 1;
  18018. if (! (mktime_test ((time_t) 1)
  18019. && mktime_test ((time_t) (60 * 60))
  18020. && mktime_test ((time_t) (60 * 60 * 24))))
  18021. return 1;
  18022. for (j = 1; ; j <<= 1)
  18023. if (! bigtime_test (j))
  18024. return 1;
  18025. else if (INT_MAX / 2 < j)
  18026. break;
  18027. if (! bigtime_test (INT_MAX))
  18028. return 1;
  18029. }
  18030. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  18031. }
  18032. _ACEOF
  18033. rm -f conftest$ac_exeext
  18034. if { (ac_try="$ac_link"
  18035. case "(($ac_try" in
  18036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18037. *) ac_try_echo=$ac_try;;
  18038. esac
  18039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18040. $as_echo "$ac_try_echo") >&5
  18041. (eval "$ac_link") 2>&5
  18042. ac_status=$?
  18043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18044. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18045. { (case "(($ac_try" in
  18046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18047. *) ac_try_echo=$ac_try;;
  18048. esac
  18049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18050. $as_echo "$ac_try_echo") >&5
  18051. (eval "$ac_try") 2>&5
  18052. ac_status=$?
  18053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18054. (exit $ac_status); }; }; then
  18055. ac_cv_func_working_mktime=yes
  18056. else
  18057. $as_echo "$as_me: program exited with status $ac_status" >&5
  18058. $as_echo "$as_me: failed program was:" >&5
  18059. sed 's/^/| /' conftest.$ac_ext >&5
  18060. ( exit $ac_status )
  18061. ac_cv_func_working_mktime=no
  18062. fi
  18063. rm -rf conftest.dSYM
  18064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18065. fi
  18066. fi
  18067. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  18068. $as_echo "$ac_cv_func_working_mktime" >&6; }
  18069. if test $ac_cv_func_working_mktime = no; then
  18070. case " $LIBOBJS " in
  18071. *" mktime.$ac_objext "* ) ;;
  18072. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  18073. ;;
  18074. esac
  18075. fi
  18076. for ac_header in stdlib.h unistd.h
  18077. do
  18078. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18079. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18080. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18081. $as_echo_n "checking for $ac_header... " >&6; }
  18082. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18083. $as_echo_n "(cached) " >&6
  18084. fi
  18085. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18086. $as_echo "$as_val"'`
  18087. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18088. $as_echo "$ac_res" >&6; }
  18089. else
  18090. # Is the header compilable?
  18091. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18092. $as_echo_n "checking $ac_header usability... " >&6; }
  18093. cat >conftest.$ac_ext <<_ACEOF
  18094. /* confdefs.h. */
  18095. _ACEOF
  18096. cat confdefs.h >>conftest.$ac_ext
  18097. cat >>conftest.$ac_ext <<_ACEOF
  18098. /* end confdefs.h. */
  18099. $ac_includes_default
  18100. #include <$ac_header>
  18101. _ACEOF
  18102. rm -f conftest.$ac_objext
  18103. if { (ac_try="$ac_compile"
  18104. case "(($ac_try" in
  18105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18106. *) ac_try_echo=$ac_try;;
  18107. esac
  18108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18109. $as_echo "$ac_try_echo") >&5
  18110. (eval "$ac_compile") 2>conftest.er1
  18111. ac_status=$?
  18112. grep -v '^ *+' conftest.er1 >conftest.err
  18113. rm -f conftest.er1
  18114. cat conftest.err >&5
  18115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18116. (exit $ac_status); } && {
  18117. test -z "$ac_cxx_werror_flag" ||
  18118. test ! -s conftest.err
  18119. } && test -s conftest.$ac_objext; then
  18120. ac_header_compiler=yes
  18121. else
  18122. $as_echo "$as_me: failed program was:" >&5
  18123. sed 's/^/| /' conftest.$ac_ext >&5
  18124. ac_header_compiler=no
  18125. fi
  18126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18127. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18128. $as_echo "$ac_header_compiler" >&6; }
  18129. # Is the header present?
  18130. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18131. $as_echo_n "checking $ac_header presence... " >&6; }
  18132. cat >conftest.$ac_ext <<_ACEOF
  18133. /* confdefs.h. */
  18134. _ACEOF
  18135. cat confdefs.h >>conftest.$ac_ext
  18136. cat >>conftest.$ac_ext <<_ACEOF
  18137. /* end confdefs.h. */
  18138. #include <$ac_header>
  18139. _ACEOF
  18140. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18141. case "(($ac_try" in
  18142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18143. *) ac_try_echo=$ac_try;;
  18144. esac
  18145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18146. $as_echo "$ac_try_echo") >&5
  18147. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18148. ac_status=$?
  18149. grep -v '^ *+' conftest.er1 >conftest.err
  18150. rm -f conftest.er1
  18151. cat conftest.err >&5
  18152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18153. (exit $ac_status); } >/dev/null && {
  18154. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18155. test ! -s conftest.err
  18156. }; then
  18157. ac_header_preproc=yes
  18158. else
  18159. $as_echo "$as_me: failed program was:" >&5
  18160. sed 's/^/| /' conftest.$ac_ext >&5
  18161. ac_header_preproc=no
  18162. fi
  18163. rm -f conftest.err conftest.$ac_ext
  18164. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18165. $as_echo "$ac_header_preproc" >&6; }
  18166. # So? What about this header?
  18167. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18168. yes:no: )
  18169. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18170. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18171. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18172. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18173. ac_header_preproc=yes
  18174. ;;
  18175. no:yes:* )
  18176. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18177. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18178. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18179. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18180. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18181. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18183. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18185. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18186. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18187. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18188. ( cat <<\_ASBOX
  18189. ## ----------------------------------------------- ##
  18190. ## Report this to t-tujikawa@users.sourceforge.net ##
  18191. ## ----------------------------------------------- ##
  18192. _ASBOX
  18193. ) | sed "s/^/$as_me: WARNING: /" >&2
  18194. ;;
  18195. esac
  18196. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18197. $as_echo_n "checking for $ac_header... " >&6; }
  18198. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18199. $as_echo_n "(cached) " >&6
  18200. else
  18201. eval "$as_ac_Header=\$ac_header_preproc"
  18202. fi
  18203. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18204. $as_echo "$as_val"'`
  18205. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18206. $as_echo "$ac_res" >&6; }
  18207. fi
  18208. as_val=`eval 'as_val=${'$as_ac_Header'}
  18209. $as_echo "$as_val"'`
  18210. if test "x$as_val" = x""yes; then
  18211. cat >>confdefs.h <<_ACEOF
  18212. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18213. _ACEOF
  18214. fi
  18215. done
  18216. for ac_func in getpagesize
  18217. do
  18218. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18219. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18220. $as_echo_n "checking for $ac_func... " >&6; }
  18221. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18222. $as_echo_n "(cached) " >&6
  18223. else
  18224. cat >conftest.$ac_ext <<_ACEOF
  18225. /* confdefs.h. */
  18226. _ACEOF
  18227. cat confdefs.h >>conftest.$ac_ext
  18228. cat >>conftest.$ac_ext <<_ACEOF
  18229. /* end confdefs.h. */
  18230. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18231. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18232. #define $ac_func innocuous_$ac_func
  18233. /* System header to define __stub macros and hopefully few prototypes,
  18234. which can conflict with char $ac_func (); below.
  18235. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18236. <limits.h> exists even on freestanding compilers. */
  18237. #ifdef __STDC__
  18238. # include <limits.h>
  18239. #else
  18240. # include <assert.h>
  18241. #endif
  18242. #undef $ac_func
  18243. /* Override any GCC internal prototype to avoid an error.
  18244. Use char because int might match the return type of a GCC
  18245. builtin and then its argument prototype would still apply. */
  18246. #ifdef __cplusplus
  18247. extern "C"
  18248. #endif
  18249. char $ac_func ();
  18250. /* The GNU C library defines this for functions which it implements
  18251. to always fail with ENOSYS. Some functions are actually named
  18252. something starting with __ and the normal name is an alias. */
  18253. #if defined __stub_$ac_func || defined __stub___$ac_func
  18254. choke me
  18255. #endif
  18256. int
  18257. main ()
  18258. {
  18259. return $ac_func ();
  18260. ;
  18261. return 0;
  18262. }
  18263. _ACEOF
  18264. rm -f conftest.$ac_objext conftest$ac_exeext
  18265. if { (ac_try="$ac_link"
  18266. case "(($ac_try" in
  18267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18268. *) ac_try_echo=$ac_try;;
  18269. esac
  18270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18271. $as_echo "$ac_try_echo") >&5
  18272. (eval "$ac_link") 2>conftest.er1
  18273. ac_status=$?
  18274. grep -v '^ *+' conftest.er1 >conftest.err
  18275. rm -f conftest.er1
  18276. cat conftest.err >&5
  18277. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18278. (exit $ac_status); } && {
  18279. test -z "$ac_cxx_werror_flag" ||
  18280. test ! -s conftest.err
  18281. } && test -s conftest$ac_exeext && {
  18282. test "$cross_compiling" = yes ||
  18283. $as_test_x conftest$ac_exeext
  18284. }; then
  18285. eval "$as_ac_var=yes"
  18286. else
  18287. $as_echo "$as_me: failed program was:" >&5
  18288. sed 's/^/| /' conftest.$ac_ext >&5
  18289. eval "$as_ac_var=no"
  18290. fi
  18291. rm -rf conftest.dSYM
  18292. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18293. conftest$ac_exeext conftest.$ac_ext
  18294. fi
  18295. ac_res=`eval 'as_val=${'$as_ac_var'}
  18296. $as_echo "$as_val"'`
  18297. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18298. $as_echo "$ac_res" >&6; }
  18299. as_val=`eval 'as_val=${'$as_ac_var'}
  18300. $as_echo "$as_val"'`
  18301. if test "x$as_val" = x""yes; then
  18302. cat >>confdefs.h <<_ACEOF
  18303. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18304. _ACEOF
  18305. fi
  18306. done
  18307. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18308. $as_echo_n "checking for working mmap... " >&6; }
  18309. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18310. $as_echo_n "(cached) " >&6
  18311. else
  18312. if test "$cross_compiling" = yes; then
  18313. ac_cv_func_mmap_fixed_mapped=no
  18314. else
  18315. cat >conftest.$ac_ext <<_ACEOF
  18316. /* confdefs.h. */
  18317. _ACEOF
  18318. cat confdefs.h >>conftest.$ac_ext
  18319. cat >>conftest.$ac_ext <<_ACEOF
  18320. /* end confdefs.h. */
  18321. $ac_includes_default
  18322. /* malloc might have been renamed as rpl_malloc. */
  18323. #undef malloc
  18324. /* Thanks to Mike Haertel and Jim Avera for this test.
  18325. Here is a matrix of mmap possibilities:
  18326. mmap private not fixed
  18327. mmap private fixed at somewhere currently unmapped
  18328. mmap private fixed at somewhere already mapped
  18329. mmap shared not fixed
  18330. mmap shared fixed at somewhere currently unmapped
  18331. mmap shared fixed at somewhere already mapped
  18332. For private mappings, we should verify that changes cannot be read()
  18333. back from the file, nor mmap's back from the file at a different
  18334. address. (There have been systems where private was not correctly
  18335. implemented like the infamous i386 svr4.0, and systems where the
  18336. VM page cache was not coherent with the file system buffer cache
  18337. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18338. For shared mappings, we should conversely verify that changes get
  18339. propagated back to all the places they're supposed to be.
  18340. Grep wants private fixed already mapped.
  18341. The main things grep needs to know about mmap are:
  18342. * does it exist and is it safe to write into the mmap'd area
  18343. * how to use it (BSD variants) */
  18344. #include <fcntl.h>
  18345. #include <sys/mman.h>
  18346. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18347. char *malloc ();
  18348. #endif
  18349. /* This mess was copied from the GNU getpagesize.h. */
  18350. #ifndef HAVE_GETPAGESIZE
  18351. /* Assume that all systems that can run configure have sys/param.h. */
  18352. # ifndef HAVE_SYS_PARAM_H
  18353. # define HAVE_SYS_PARAM_H 1
  18354. # endif
  18355. # ifdef _SC_PAGESIZE
  18356. # define getpagesize() sysconf(_SC_PAGESIZE)
  18357. # else /* no _SC_PAGESIZE */
  18358. # ifdef HAVE_SYS_PARAM_H
  18359. # include <sys/param.h>
  18360. # ifdef EXEC_PAGESIZE
  18361. # define getpagesize() EXEC_PAGESIZE
  18362. # else /* no EXEC_PAGESIZE */
  18363. # ifdef NBPG
  18364. # define getpagesize() NBPG * CLSIZE
  18365. # ifndef CLSIZE
  18366. # define CLSIZE 1
  18367. # endif /* no CLSIZE */
  18368. # else /* no NBPG */
  18369. # ifdef NBPC
  18370. # define getpagesize() NBPC
  18371. # else /* no NBPC */
  18372. # ifdef PAGESIZE
  18373. # define getpagesize() PAGESIZE
  18374. # endif /* PAGESIZE */
  18375. # endif /* no NBPC */
  18376. # endif /* no NBPG */
  18377. # endif /* no EXEC_PAGESIZE */
  18378. # else /* no HAVE_SYS_PARAM_H */
  18379. # define getpagesize() 8192 /* punt totally */
  18380. # endif /* no HAVE_SYS_PARAM_H */
  18381. # endif /* no _SC_PAGESIZE */
  18382. #endif /* no HAVE_GETPAGESIZE */
  18383. int
  18384. main ()
  18385. {
  18386. char *data, *data2, *data3;
  18387. int i, pagesize;
  18388. int fd;
  18389. pagesize = getpagesize ();
  18390. /* First, make a file with some known garbage in it. */
  18391. data = (char *) malloc (pagesize);
  18392. if (!data)
  18393. return 1;
  18394. for (i = 0; i < pagesize; ++i)
  18395. *(data + i) = rand ();
  18396. umask (0);
  18397. fd = creat ("conftest.mmap", 0600);
  18398. if (fd < 0)
  18399. return 1;
  18400. if (write (fd, data, pagesize) != pagesize)
  18401. return 1;
  18402. close (fd);
  18403. /* Next, try to mmap the file at a fixed address which already has
  18404. something else allocated at it. If we can, also make sure that
  18405. we see the same garbage. */
  18406. fd = open ("conftest.mmap", O_RDWR);
  18407. if (fd < 0)
  18408. return 1;
  18409. data2 = (char *) malloc (2 * pagesize);
  18410. if (!data2)
  18411. return 1;
  18412. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18413. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18414. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18415. return 1;
  18416. for (i = 0; i < pagesize; ++i)
  18417. if (*(data + i) != *(data2 + i))
  18418. return 1;
  18419. /* Finally, make sure that changes to the mapped area do not
  18420. percolate back to the file as seen by read(). (This is a bug on
  18421. some variants of i386 svr4.0.) */
  18422. for (i = 0; i < pagesize; ++i)
  18423. *(data2 + i) = *(data2 + i) + 1;
  18424. data3 = (char *) malloc (pagesize);
  18425. if (!data3)
  18426. return 1;
  18427. if (read (fd, data3, pagesize) != pagesize)
  18428. return 1;
  18429. for (i = 0; i < pagesize; ++i)
  18430. if (*(data + i) != *(data3 + i))
  18431. return 1;
  18432. close (fd);
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. rm -f conftest$ac_exeext
  18437. if { (ac_try="$ac_link"
  18438. case "(($ac_try" in
  18439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18440. *) ac_try_echo=$ac_try;;
  18441. esac
  18442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18443. $as_echo "$ac_try_echo") >&5
  18444. (eval "$ac_link") 2>&5
  18445. ac_status=$?
  18446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18447. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18448. { (case "(($ac_try" in
  18449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18450. *) ac_try_echo=$ac_try;;
  18451. esac
  18452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18453. $as_echo "$ac_try_echo") >&5
  18454. (eval "$ac_try") 2>&5
  18455. ac_status=$?
  18456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18457. (exit $ac_status); }; }; then
  18458. ac_cv_func_mmap_fixed_mapped=yes
  18459. else
  18460. $as_echo "$as_me: program exited with status $ac_status" >&5
  18461. $as_echo "$as_me: failed program was:" >&5
  18462. sed 's/^/| /' conftest.$ac_ext >&5
  18463. ( exit $ac_status )
  18464. ac_cv_func_mmap_fixed_mapped=no
  18465. fi
  18466. rm -rf conftest.dSYM
  18467. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18468. fi
  18469. fi
  18470. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18471. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18472. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18473. cat >>confdefs.h <<\_ACEOF
  18474. #define HAVE_MMAP 1
  18475. _ACEOF
  18476. fi
  18477. rm -f conftest.mmap
  18478. for ac_header in sys/select.h sys/socket.h
  18479. do
  18480. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18481. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18482. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18483. $as_echo_n "checking for $ac_header... " >&6; }
  18484. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18485. $as_echo_n "(cached) " >&6
  18486. fi
  18487. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18488. $as_echo "$as_val"'`
  18489. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18490. $as_echo "$ac_res" >&6; }
  18491. else
  18492. # Is the header compilable?
  18493. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18494. $as_echo_n "checking $ac_header usability... " >&6; }
  18495. cat >conftest.$ac_ext <<_ACEOF
  18496. /* confdefs.h. */
  18497. _ACEOF
  18498. cat confdefs.h >>conftest.$ac_ext
  18499. cat >>conftest.$ac_ext <<_ACEOF
  18500. /* end confdefs.h. */
  18501. $ac_includes_default
  18502. #include <$ac_header>
  18503. _ACEOF
  18504. rm -f conftest.$ac_objext
  18505. if { (ac_try="$ac_compile"
  18506. case "(($ac_try" in
  18507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18508. *) ac_try_echo=$ac_try;;
  18509. esac
  18510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18511. $as_echo "$ac_try_echo") >&5
  18512. (eval "$ac_compile") 2>conftest.er1
  18513. ac_status=$?
  18514. grep -v '^ *+' conftest.er1 >conftest.err
  18515. rm -f conftest.er1
  18516. cat conftest.err >&5
  18517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18518. (exit $ac_status); } && {
  18519. test -z "$ac_cxx_werror_flag" ||
  18520. test ! -s conftest.err
  18521. } && test -s conftest.$ac_objext; then
  18522. ac_header_compiler=yes
  18523. else
  18524. $as_echo "$as_me: failed program was:" >&5
  18525. sed 's/^/| /' conftest.$ac_ext >&5
  18526. ac_header_compiler=no
  18527. fi
  18528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18529. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18530. $as_echo "$ac_header_compiler" >&6; }
  18531. # Is the header present?
  18532. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18533. $as_echo_n "checking $ac_header presence... " >&6; }
  18534. cat >conftest.$ac_ext <<_ACEOF
  18535. /* confdefs.h. */
  18536. _ACEOF
  18537. cat confdefs.h >>conftest.$ac_ext
  18538. cat >>conftest.$ac_ext <<_ACEOF
  18539. /* end confdefs.h. */
  18540. #include <$ac_header>
  18541. _ACEOF
  18542. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18543. case "(($ac_try" in
  18544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18545. *) ac_try_echo=$ac_try;;
  18546. esac
  18547. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18548. $as_echo "$ac_try_echo") >&5
  18549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18550. ac_status=$?
  18551. grep -v '^ *+' conftest.er1 >conftest.err
  18552. rm -f conftest.er1
  18553. cat conftest.err >&5
  18554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18555. (exit $ac_status); } >/dev/null && {
  18556. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18557. test ! -s conftest.err
  18558. }; then
  18559. ac_header_preproc=yes
  18560. else
  18561. $as_echo "$as_me: failed program was:" >&5
  18562. sed 's/^/| /' conftest.$ac_ext >&5
  18563. ac_header_preproc=no
  18564. fi
  18565. rm -f conftest.err conftest.$ac_ext
  18566. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18567. $as_echo "$ac_header_preproc" >&6; }
  18568. # So? What about this header?
  18569. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18570. yes:no: )
  18571. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18572. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18574. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18575. ac_header_preproc=yes
  18576. ;;
  18577. no:yes:* )
  18578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18579. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18581. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18583. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18585. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18587. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18589. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18590. ( cat <<\_ASBOX
  18591. ## ----------------------------------------------- ##
  18592. ## Report this to t-tujikawa@users.sourceforge.net ##
  18593. ## ----------------------------------------------- ##
  18594. _ASBOX
  18595. ) | sed "s/^/$as_me: WARNING: /" >&2
  18596. ;;
  18597. esac
  18598. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18599. $as_echo_n "checking for $ac_header... " >&6; }
  18600. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18601. $as_echo_n "(cached) " >&6
  18602. else
  18603. eval "$as_ac_Header=\$ac_header_preproc"
  18604. fi
  18605. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18606. $as_echo "$as_val"'`
  18607. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18608. $as_echo "$ac_res" >&6; }
  18609. fi
  18610. as_val=`eval 'as_val=${'$as_ac_Header'}
  18611. $as_echo "$as_val"'`
  18612. if test "x$as_val" = x""yes; then
  18613. cat >>confdefs.h <<_ACEOF
  18614. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18615. _ACEOF
  18616. fi
  18617. done
  18618. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18619. $as_echo_n "checking types of arguments for select... " >&6; }
  18620. if test "${ac_cv_func_select_args+set}" = set; then
  18621. $as_echo_n "(cached) " >&6
  18622. else
  18623. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18624. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18625. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18626. cat >conftest.$ac_ext <<_ACEOF
  18627. /* confdefs.h. */
  18628. _ACEOF
  18629. cat confdefs.h >>conftest.$ac_ext
  18630. cat >>conftest.$ac_ext <<_ACEOF
  18631. /* end confdefs.h. */
  18632. $ac_includes_default
  18633. #ifdef HAVE_SYS_SELECT_H
  18634. # include <sys/select.h>
  18635. #endif
  18636. #ifdef HAVE_SYS_SOCKET_H
  18637. # include <sys/socket.h>
  18638. #endif
  18639. int
  18640. main ()
  18641. {
  18642. extern int select ($ac_arg1,
  18643. $ac_arg234, $ac_arg234, $ac_arg234,
  18644. $ac_arg5);
  18645. ;
  18646. return 0;
  18647. }
  18648. _ACEOF
  18649. rm -f conftest.$ac_objext
  18650. if { (ac_try="$ac_compile"
  18651. case "(($ac_try" in
  18652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18653. *) ac_try_echo=$ac_try;;
  18654. esac
  18655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18656. $as_echo "$ac_try_echo") >&5
  18657. (eval "$ac_compile") 2>conftest.er1
  18658. ac_status=$?
  18659. grep -v '^ *+' conftest.er1 >conftest.err
  18660. rm -f conftest.er1
  18661. cat conftest.err >&5
  18662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18663. (exit $ac_status); } && {
  18664. test -z "$ac_cxx_werror_flag" ||
  18665. test ! -s conftest.err
  18666. } && test -s conftest.$ac_objext; then
  18667. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18668. else
  18669. $as_echo "$as_me: failed program was:" >&5
  18670. sed 's/^/| /' conftest.$ac_ext >&5
  18671. fi
  18672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18673. done
  18674. done
  18675. done
  18676. # Provide a safe default value.
  18677. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18678. fi
  18679. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18680. $as_echo "$ac_cv_func_select_args" >&6; }
  18681. ac_save_IFS=$IFS; IFS=','
  18682. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18683. IFS=$ac_save_IFS
  18684. shift
  18685. cat >>confdefs.h <<_ACEOF
  18686. #define SELECT_TYPE_ARG1 $1
  18687. _ACEOF
  18688. cat >>confdefs.h <<_ACEOF
  18689. #define SELECT_TYPE_ARG234 ($2)
  18690. _ACEOF
  18691. cat >>confdefs.h <<_ACEOF
  18692. #define SELECT_TYPE_ARG5 ($3)
  18693. _ACEOF
  18694. rm -f conftest*
  18695. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18696. $as_echo_n "checking return type of signal handlers... " >&6; }
  18697. if test "${ac_cv_type_signal+set}" = set; then
  18698. $as_echo_n "(cached) " >&6
  18699. else
  18700. cat >conftest.$ac_ext <<_ACEOF
  18701. /* confdefs.h. */
  18702. _ACEOF
  18703. cat confdefs.h >>conftest.$ac_ext
  18704. cat >>conftest.$ac_ext <<_ACEOF
  18705. /* end confdefs.h. */
  18706. #include <sys/types.h>
  18707. #include <signal.h>
  18708. int
  18709. main ()
  18710. {
  18711. return *(signal (0, 0)) (0) == 1;
  18712. ;
  18713. return 0;
  18714. }
  18715. _ACEOF
  18716. rm -f conftest.$ac_objext
  18717. if { (ac_try="$ac_compile"
  18718. case "(($ac_try" in
  18719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18720. *) ac_try_echo=$ac_try;;
  18721. esac
  18722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18723. $as_echo "$ac_try_echo") >&5
  18724. (eval "$ac_compile") 2>conftest.er1
  18725. ac_status=$?
  18726. grep -v '^ *+' conftest.er1 >conftest.err
  18727. rm -f conftest.er1
  18728. cat conftest.err >&5
  18729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18730. (exit $ac_status); } && {
  18731. test -z "$ac_cxx_werror_flag" ||
  18732. test ! -s conftest.err
  18733. } && test -s conftest.$ac_objext; then
  18734. ac_cv_type_signal=int
  18735. else
  18736. $as_echo "$as_me: failed program was:" >&5
  18737. sed 's/^/| /' conftest.$ac_ext >&5
  18738. ac_cv_type_signal=void
  18739. fi
  18740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18741. fi
  18742. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18743. $as_echo "$ac_cv_type_signal" >&6; }
  18744. cat >>confdefs.h <<_ACEOF
  18745. #define RETSIGTYPE $ac_cv_type_signal
  18746. _ACEOF
  18747. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18748. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18749. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18750. $as_echo_n "(cached) " >&6
  18751. else
  18752. rm -f conftest.sym conftest.file
  18753. echo >conftest.file
  18754. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18755. if test "$cross_compiling" = yes; then
  18756. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18757. else
  18758. cat >conftest.$ac_ext <<_ACEOF
  18759. /* confdefs.h. */
  18760. _ACEOF
  18761. cat confdefs.h >>conftest.$ac_ext
  18762. cat >>conftest.$ac_ext <<_ACEOF
  18763. /* end confdefs.h. */
  18764. $ac_includes_default
  18765. int
  18766. main ()
  18767. {
  18768. struct stat sbuf;
  18769. /* Linux will dereference the symlink and fail.
  18770. That is better in the sense that it means we will not
  18771. have to compile and use the lstat wrapper. */
  18772. return lstat ("conftest.sym/", &sbuf) == 0;
  18773. ;
  18774. return 0;
  18775. }
  18776. _ACEOF
  18777. rm -f conftest$ac_exeext
  18778. if { (ac_try="$ac_link"
  18779. case "(($ac_try" in
  18780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18781. *) ac_try_echo=$ac_try;;
  18782. esac
  18783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18784. $as_echo "$ac_try_echo") >&5
  18785. (eval "$ac_link") 2>&5
  18786. ac_status=$?
  18787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18788. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18789. { (case "(($ac_try" in
  18790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18791. *) ac_try_echo=$ac_try;;
  18792. esac
  18793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18794. $as_echo "$ac_try_echo") >&5
  18795. (eval "$ac_try") 2>&5
  18796. ac_status=$?
  18797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18798. (exit $ac_status); }; }; then
  18799. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18800. else
  18801. $as_echo "$as_me: program exited with status $ac_status" >&5
  18802. $as_echo "$as_me: failed program was:" >&5
  18803. sed 's/^/| /' conftest.$ac_ext >&5
  18804. ( exit $ac_status )
  18805. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18806. fi
  18807. rm -rf conftest.dSYM
  18808. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18809. fi
  18810. else
  18811. # If the `ln -s' command failed, then we probably don't even
  18812. # have an lstat function.
  18813. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18814. fi
  18815. rm -f conftest.sym conftest.file
  18816. fi
  18817. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18818. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18819. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18820. cat >>confdefs.h <<_ACEOF
  18821. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18822. _ACEOF
  18823. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18824. case " $LIBOBJS " in
  18825. *" lstat.$ac_objext "* ) ;;
  18826. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18827. ;;
  18828. esac
  18829. fi
  18830. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18831. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18832. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18833. $as_echo_n "(cached) " >&6
  18834. else
  18835. if test "$cross_compiling" = yes; then
  18836. ac_cv_func_stat_empty_string_bug=yes
  18837. else
  18838. cat >conftest.$ac_ext <<_ACEOF
  18839. /* confdefs.h. */
  18840. _ACEOF
  18841. cat confdefs.h >>conftest.$ac_ext
  18842. cat >>conftest.$ac_ext <<_ACEOF
  18843. /* end confdefs.h. */
  18844. $ac_includes_default
  18845. int
  18846. main ()
  18847. {
  18848. struct stat sbuf;
  18849. return stat ("", &sbuf) == 0;
  18850. ;
  18851. return 0;
  18852. }
  18853. _ACEOF
  18854. rm -f conftest$ac_exeext
  18855. if { (ac_try="$ac_link"
  18856. case "(($ac_try" in
  18857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18858. *) ac_try_echo=$ac_try;;
  18859. esac
  18860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18861. $as_echo "$ac_try_echo") >&5
  18862. (eval "$ac_link") 2>&5
  18863. ac_status=$?
  18864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18865. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18866. { (case "(($ac_try" in
  18867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18868. *) ac_try_echo=$ac_try;;
  18869. esac
  18870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18871. $as_echo "$ac_try_echo") >&5
  18872. (eval "$ac_try") 2>&5
  18873. ac_status=$?
  18874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18875. (exit $ac_status); }; }; then
  18876. ac_cv_func_stat_empty_string_bug=no
  18877. else
  18878. $as_echo "$as_me: program exited with status $ac_status" >&5
  18879. $as_echo "$as_me: failed program was:" >&5
  18880. sed 's/^/| /' conftest.$ac_ext >&5
  18881. ( exit $ac_status )
  18882. ac_cv_func_stat_empty_string_bug=yes
  18883. fi
  18884. rm -rf conftest.dSYM
  18885. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18886. fi
  18887. fi
  18888. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18889. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18890. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18891. case " $LIBOBJS " in
  18892. *" stat.$ac_objext "* ) ;;
  18893. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18894. ;;
  18895. esac
  18896. cat >>confdefs.h <<_ACEOF
  18897. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18898. _ACEOF
  18899. fi
  18900. for ac_func in strftime
  18901. do
  18902. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18903. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18904. $as_echo_n "checking for $ac_func... " >&6; }
  18905. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18906. $as_echo_n "(cached) " >&6
  18907. else
  18908. cat >conftest.$ac_ext <<_ACEOF
  18909. /* confdefs.h. */
  18910. _ACEOF
  18911. cat confdefs.h >>conftest.$ac_ext
  18912. cat >>conftest.$ac_ext <<_ACEOF
  18913. /* end confdefs.h. */
  18914. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18916. #define $ac_func innocuous_$ac_func
  18917. /* System header to define __stub macros and hopefully few prototypes,
  18918. which can conflict with char $ac_func (); below.
  18919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18920. <limits.h> exists even on freestanding compilers. */
  18921. #ifdef __STDC__
  18922. # include <limits.h>
  18923. #else
  18924. # include <assert.h>
  18925. #endif
  18926. #undef $ac_func
  18927. /* Override any GCC internal prototype to avoid an error.
  18928. Use char because int might match the return type of a GCC
  18929. builtin and then its argument prototype would still apply. */
  18930. #ifdef __cplusplus
  18931. extern "C"
  18932. #endif
  18933. char $ac_func ();
  18934. /* The GNU C library defines this for functions which it implements
  18935. to always fail with ENOSYS. Some functions are actually named
  18936. something starting with __ and the normal name is an alias. */
  18937. #if defined __stub_$ac_func || defined __stub___$ac_func
  18938. choke me
  18939. #endif
  18940. int
  18941. main ()
  18942. {
  18943. return $ac_func ();
  18944. ;
  18945. return 0;
  18946. }
  18947. _ACEOF
  18948. rm -f conftest.$ac_objext conftest$ac_exeext
  18949. if { (ac_try="$ac_link"
  18950. case "(($ac_try" in
  18951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18952. *) ac_try_echo=$ac_try;;
  18953. esac
  18954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18955. $as_echo "$ac_try_echo") >&5
  18956. (eval "$ac_link") 2>conftest.er1
  18957. ac_status=$?
  18958. grep -v '^ *+' conftest.er1 >conftest.err
  18959. rm -f conftest.er1
  18960. cat conftest.err >&5
  18961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18962. (exit $ac_status); } && {
  18963. test -z "$ac_cxx_werror_flag" ||
  18964. test ! -s conftest.err
  18965. } && test -s conftest$ac_exeext && {
  18966. test "$cross_compiling" = yes ||
  18967. $as_test_x conftest$ac_exeext
  18968. }; then
  18969. eval "$as_ac_var=yes"
  18970. else
  18971. $as_echo "$as_me: failed program was:" >&5
  18972. sed 's/^/| /' conftest.$ac_ext >&5
  18973. eval "$as_ac_var=no"
  18974. fi
  18975. rm -rf conftest.dSYM
  18976. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18977. conftest$ac_exeext conftest.$ac_ext
  18978. fi
  18979. ac_res=`eval 'as_val=${'$as_ac_var'}
  18980. $as_echo "$as_val"'`
  18981. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18982. $as_echo "$ac_res" >&6; }
  18983. as_val=`eval 'as_val=${'$as_ac_var'}
  18984. $as_echo "$as_val"'`
  18985. if test "x$as_val" = x""yes; then
  18986. cat >>confdefs.h <<_ACEOF
  18987. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18988. _ACEOF
  18989. else
  18990. # strftime is in -lintl on SCO UNIX.
  18991. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18992. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18993. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18994. $as_echo_n "(cached) " >&6
  18995. else
  18996. ac_check_lib_save_LIBS=$LIBS
  18997. LIBS="-lintl $LIBS"
  18998. cat >conftest.$ac_ext <<_ACEOF
  18999. /* confdefs.h. */
  19000. _ACEOF
  19001. cat confdefs.h >>conftest.$ac_ext
  19002. cat >>conftest.$ac_ext <<_ACEOF
  19003. /* end confdefs.h. */
  19004. /* Override any GCC internal prototype to avoid an error.
  19005. Use char because int might match the return type of a GCC
  19006. builtin and then its argument prototype would still apply. */
  19007. #ifdef __cplusplus
  19008. extern "C"
  19009. #endif
  19010. char strftime ();
  19011. int
  19012. main ()
  19013. {
  19014. return strftime ();
  19015. ;
  19016. return 0;
  19017. }
  19018. _ACEOF
  19019. rm -f conftest.$ac_objext conftest$ac_exeext
  19020. if { (ac_try="$ac_link"
  19021. case "(($ac_try" in
  19022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19023. *) ac_try_echo=$ac_try;;
  19024. esac
  19025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19026. $as_echo "$ac_try_echo") >&5
  19027. (eval "$ac_link") 2>conftest.er1
  19028. ac_status=$?
  19029. grep -v '^ *+' conftest.er1 >conftest.err
  19030. rm -f conftest.er1
  19031. cat conftest.err >&5
  19032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19033. (exit $ac_status); } && {
  19034. test -z "$ac_cxx_werror_flag" ||
  19035. test ! -s conftest.err
  19036. } && test -s conftest$ac_exeext && {
  19037. test "$cross_compiling" = yes ||
  19038. $as_test_x conftest$ac_exeext
  19039. }; then
  19040. ac_cv_lib_intl_strftime=yes
  19041. else
  19042. $as_echo "$as_me: failed program was:" >&5
  19043. sed 's/^/| /' conftest.$ac_ext >&5
  19044. ac_cv_lib_intl_strftime=no
  19045. fi
  19046. rm -rf conftest.dSYM
  19047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19048. conftest$ac_exeext conftest.$ac_ext
  19049. LIBS=$ac_check_lib_save_LIBS
  19050. fi
  19051. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  19052. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  19053. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  19054. cat >>confdefs.h <<\_ACEOF
  19055. #define HAVE_STRFTIME 1
  19056. _ACEOF
  19057. LIBS="-lintl $LIBS"
  19058. fi
  19059. fi
  19060. done
  19061. for ac_func in vprintf
  19062. do
  19063. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19064. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19065. $as_echo_n "checking for $ac_func... " >&6; }
  19066. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19067. $as_echo_n "(cached) " >&6
  19068. else
  19069. cat >conftest.$ac_ext <<_ACEOF
  19070. /* confdefs.h. */
  19071. _ACEOF
  19072. cat confdefs.h >>conftest.$ac_ext
  19073. cat >>conftest.$ac_ext <<_ACEOF
  19074. /* end confdefs.h. */
  19075. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19076. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19077. #define $ac_func innocuous_$ac_func
  19078. /* System header to define __stub macros and hopefully few prototypes,
  19079. which can conflict with char $ac_func (); below.
  19080. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19081. <limits.h> exists even on freestanding compilers. */
  19082. #ifdef __STDC__
  19083. # include <limits.h>
  19084. #else
  19085. # include <assert.h>
  19086. #endif
  19087. #undef $ac_func
  19088. /* Override any GCC internal prototype to avoid an error.
  19089. Use char because int might match the return type of a GCC
  19090. builtin and then its argument prototype would still apply. */
  19091. #ifdef __cplusplus
  19092. extern "C"
  19093. #endif
  19094. char $ac_func ();
  19095. /* The GNU C library defines this for functions which it implements
  19096. to always fail with ENOSYS. Some functions are actually named
  19097. something starting with __ and the normal name is an alias. */
  19098. #if defined __stub_$ac_func || defined __stub___$ac_func
  19099. choke me
  19100. #endif
  19101. int
  19102. main ()
  19103. {
  19104. return $ac_func ();
  19105. ;
  19106. return 0;
  19107. }
  19108. _ACEOF
  19109. rm -f conftest.$ac_objext conftest$ac_exeext
  19110. if { (ac_try="$ac_link"
  19111. case "(($ac_try" in
  19112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19113. *) ac_try_echo=$ac_try;;
  19114. esac
  19115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19116. $as_echo "$ac_try_echo") >&5
  19117. (eval "$ac_link") 2>conftest.er1
  19118. ac_status=$?
  19119. grep -v '^ *+' conftest.er1 >conftest.err
  19120. rm -f conftest.er1
  19121. cat conftest.err >&5
  19122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19123. (exit $ac_status); } && {
  19124. test -z "$ac_cxx_werror_flag" ||
  19125. test ! -s conftest.err
  19126. } && test -s conftest$ac_exeext && {
  19127. test "$cross_compiling" = yes ||
  19128. $as_test_x conftest$ac_exeext
  19129. }; then
  19130. eval "$as_ac_var=yes"
  19131. else
  19132. $as_echo "$as_me: failed program was:" >&5
  19133. sed 's/^/| /' conftest.$ac_ext >&5
  19134. eval "$as_ac_var=no"
  19135. fi
  19136. rm -rf conftest.dSYM
  19137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19138. conftest$ac_exeext conftest.$ac_ext
  19139. fi
  19140. ac_res=`eval 'as_val=${'$as_ac_var'}
  19141. $as_echo "$as_val"'`
  19142. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19143. $as_echo "$ac_res" >&6; }
  19144. as_val=`eval 'as_val=${'$as_ac_var'}
  19145. $as_echo "$as_val"'`
  19146. if test "x$as_val" = x""yes; then
  19147. cat >>confdefs.h <<_ACEOF
  19148. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19149. _ACEOF
  19150. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  19151. $as_echo_n "checking for _doprnt... " >&6; }
  19152. if test "${ac_cv_func__doprnt+set}" = set; then
  19153. $as_echo_n "(cached) " >&6
  19154. else
  19155. cat >conftest.$ac_ext <<_ACEOF
  19156. /* confdefs.h. */
  19157. _ACEOF
  19158. cat confdefs.h >>conftest.$ac_ext
  19159. cat >>conftest.$ac_ext <<_ACEOF
  19160. /* end confdefs.h. */
  19161. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  19162. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19163. #define _doprnt innocuous__doprnt
  19164. /* System header to define __stub macros and hopefully few prototypes,
  19165. which can conflict with char _doprnt (); below.
  19166. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19167. <limits.h> exists even on freestanding compilers. */
  19168. #ifdef __STDC__
  19169. # include <limits.h>
  19170. #else
  19171. # include <assert.h>
  19172. #endif
  19173. #undef _doprnt
  19174. /* Override any GCC internal prototype to avoid an error.
  19175. Use char because int might match the return type of a GCC
  19176. builtin and then its argument prototype would still apply. */
  19177. #ifdef __cplusplus
  19178. extern "C"
  19179. #endif
  19180. char _doprnt ();
  19181. /* The GNU C library defines this for functions which it implements
  19182. to always fail with ENOSYS. Some functions are actually named
  19183. something starting with __ and the normal name is an alias. */
  19184. #if defined __stub__doprnt || defined __stub____doprnt
  19185. choke me
  19186. #endif
  19187. int
  19188. main ()
  19189. {
  19190. return _doprnt ();
  19191. ;
  19192. return 0;
  19193. }
  19194. _ACEOF
  19195. rm -f conftest.$ac_objext conftest$ac_exeext
  19196. if { (ac_try="$ac_link"
  19197. case "(($ac_try" in
  19198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19199. *) ac_try_echo=$ac_try;;
  19200. esac
  19201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19202. $as_echo "$ac_try_echo") >&5
  19203. (eval "$ac_link") 2>conftest.er1
  19204. ac_status=$?
  19205. grep -v '^ *+' conftest.er1 >conftest.err
  19206. rm -f conftest.er1
  19207. cat conftest.err >&5
  19208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19209. (exit $ac_status); } && {
  19210. test -z "$ac_cxx_werror_flag" ||
  19211. test ! -s conftest.err
  19212. } && test -s conftest$ac_exeext && {
  19213. test "$cross_compiling" = yes ||
  19214. $as_test_x conftest$ac_exeext
  19215. }; then
  19216. ac_cv_func__doprnt=yes
  19217. else
  19218. $as_echo "$as_me: failed program was:" >&5
  19219. sed 's/^/| /' conftest.$ac_ext >&5
  19220. ac_cv_func__doprnt=no
  19221. fi
  19222. rm -rf conftest.dSYM
  19223. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19224. conftest$ac_exeext conftest.$ac_ext
  19225. fi
  19226. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  19227. $as_echo "$ac_cv_func__doprnt" >&6; }
  19228. if test "x$ac_cv_func__doprnt" = x""yes; then
  19229. cat >>confdefs.h <<\_ACEOF
  19230. #define HAVE_DOPRNT 1
  19231. _ACEOF
  19232. fi
  19233. fi
  19234. done
  19235. for ac_func in __argz_count \
  19236. __argz_next \
  19237. __argz_stringify \
  19238. atexit \
  19239. daemon \
  19240. ftruncate \
  19241. getcwd \
  19242. gethostbyaddr \
  19243. gethostbyname \
  19244. getpagesize \
  19245. inet_ntoa \
  19246. memchr \
  19247. memmove \
  19248. mempcpy \
  19249. memset \
  19250. mkdir \
  19251. munmap \
  19252. nl_langinfo \
  19253. posix_memalign \
  19254. putenv \
  19255. rmdir \
  19256. select \
  19257. setlocale \
  19258. sleep \
  19259. socket \
  19260. stpcpy \
  19261. strcasecmp \
  19262. strchr \
  19263. strcspn \
  19264. strdup \
  19265. strerror \
  19266. strncasecmp \
  19267. strstr \
  19268. strtol \
  19269. strtoul \
  19270. strtoull \
  19271. tzset \
  19272. unsetenv \
  19273. usleep
  19274. do
  19275. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19276. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19277. $as_echo_n "checking for $ac_func... " >&6; }
  19278. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19279. $as_echo_n "(cached) " >&6
  19280. else
  19281. cat >conftest.$ac_ext <<_ACEOF
  19282. /* confdefs.h. */
  19283. _ACEOF
  19284. cat confdefs.h >>conftest.$ac_ext
  19285. cat >>conftest.$ac_ext <<_ACEOF
  19286. /* end confdefs.h. */
  19287. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19288. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19289. #define $ac_func innocuous_$ac_func
  19290. /* System header to define __stub macros and hopefully few prototypes,
  19291. which can conflict with char $ac_func (); below.
  19292. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19293. <limits.h> exists even on freestanding compilers. */
  19294. #ifdef __STDC__
  19295. # include <limits.h>
  19296. #else
  19297. # include <assert.h>
  19298. #endif
  19299. #undef $ac_func
  19300. /* Override any GCC internal prototype to avoid an error.
  19301. Use char because int might match the return type of a GCC
  19302. builtin and then its argument prototype would still apply. */
  19303. #ifdef __cplusplus
  19304. extern "C"
  19305. #endif
  19306. char $ac_func ();
  19307. /* The GNU C library defines this for functions which it implements
  19308. to always fail with ENOSYS. Some functions are actually named
  19309. something starting with __ and the normal name is an alias. */
  19310. #if defined __stub_$ac_func || defined __stub___$ac_func
  19311. choke me
  19312. #endif
  19313. int
  19314. main ()
  19315. {
  19316. return $ac_func ();
  19317. ;
  19318. return 0;
  19319. }
  19320. _ACEOF
  19321. rm -f conftest.$ac_objext conftest$ac_exeext
  19322. if { (ac_try="$ac_link"
  19323. case "(($ac_try" in
  19324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19325. *) ac_try_echo=$ac_try;;
  19326. esac
  19327. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19328. $as_echo "$ac_try_echo") >&5
  19329. (eval "$ac_link") 2>conftest.er1
  19330. ac_status=$?
  19331. grep -v '^ *+' conftest.er1 >conftest.err
  19332. rm -f conftest.er1
  19333. cat conftest.err >&5
  19334. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19335. (exit $ac_status); } && {
  19336. test -z "$ac_cxx_werror_flag" ||
  19337. test ! -s conftest.err
  19338. } && test -s conftest$ac_exeext && {
  19339. test "$cross_compiling" = yes ||
  19340. $as_test_x conftest$ac_exeext
  19341. }; then
  19342. eval "$as_ac_var=yes"
  19343. else
  19344. $as_echo "$as_me: failed program was:" >&5
  19345. sed 's/^/| /' conftest.$ac_ext >&5
  19346. eval "$as_ac_var=no"
  19347. fi
  19348. rm -rf conftest.dSYM
  19349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19350. conftest$ac_exeext conftest.$ac_ext
  19351. fi
  19352. ac_res=`eval 'as_val=${'$as_ac_var'}
  19353. $as_echo "$as_val"'`
  19354. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19355. $as_echo "$ac_res" >&6; }
  19356. as_val=`eval 'as_val=${'$as_ac_var'}
  19357. $as_echo "$as_val"'`
  19358. if test "x$as_val" = x""yes; then
  19359. cat >>confdefs.h <<_ACEOF
  19360. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19361. _ACEOF
  19362. fi
  19363. done
  19364. if test "x$enable_epoll" = "xyes"; then
  19365. for ac_func in epoll_create
  19366. do
  19367. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19368. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19369. $as_echo_n "checking for $ac_func... " >&6; }
  19370. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19371. $as_echo_n "(cached) " >&6
  19372. else
  19373. cat >conftest.$ac_ext <<_ACEOF
  19374. /* confdefs.h. */
  19375. _ACEOF
  19376. cat confdefs.h >>conftest.$ac_ext
  19377. cat >>conftest.$ac_ext <<_ACEOF
  19378. /* end confdefs.h. */
  19379. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19380. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19381. #define $ac_func innocuous_$ac_func
  19382. /* System header to define __stub macros and hopefully few prototypes,
  19383. which can conflict with char $ac_func (); below.
  19384. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19385. <limits.h> exists even on freestanding compilers. */
  19386. #ifdef __STDC__
  19387. # include <limits.h>
  19388. #else
  19389. # include <assert.h>
  19390. #endif
  19391. #undef $ac_func
  19392. /* Override any GCC internal prototype to avoid an error.
  19393. Use char because int might match the return type of a GCC
  19394. builtin and then its argument prototype would still apply. */
  19395. #ifdef __cplusplus
  19396. extern "C"
  19397. #endif
  19398. char $ac_func ();
  19399. /* The GNU C library defines this for functions which it implements
  19400. to always fail with ENOSYS. Some functions are actually named
  19401. something starting with __ and the normal name is an alias. */
  19402. #if defined __stub_$ac_func || defined __stub___$ac_func
  19403. choke me
  19404. #endif
  19405. int
  19406. main ()
  19407. {
  19408. return $ac_func ();
  19409. ;
  19410. return 0;
  19411. }
  19412. _ACEOF
  19413. rm -f conftest.$ac_objext conftest$ac_exeext
  19414. if { (ac_try="$ac_link"
  19415. case "(($ac_try" in
  19416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19417. *) ac_try_echo=$ac_try;;
  19418. esac
  19419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19420. $as_echo "$ac_try_echo") >&5
  19421. (eval "$ac_link") 2>conftest.er1
  19422. ac_status=$?
  19423. grep -v '^ *+' conftest.er1 >conftest.err
  19424. rm -f conftest.er1
  19425. cat conftest.err >&5
  19426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19427. (exit $ac_status); } && {
  19428. test -z "$ac_cxx_werror_flag" ||
  19429. test ! -s conftest.err
  19430. } && test -s conftest$ac_exeext && {
  19431. test "$cross_compiling" = yes ||
  19432. $as_test_x conftest$ac_exeext
  19433. }; then
  19434. eval "$as_ac_var=yes"
  19435. else
  19436. $as_echo "$as_me: failed program was:" >&5
  19437. sed 's/^/| /' conftest.$ac_ext >&5
  19438. eval "$as_ac_var=no"
  19439. fi
  19440. rm -rf conftest.dSYM
  19441. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19442. conftest$ac_exeext conftest.$ac_ext
  19443. fi
  19444. ac_res=`eval 'as_val=${'$as_ac_var'}
  19445. $as_echo "$as_val"'`
  19446. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19447. $as_echo "$ac_res" >&6; }
  19448. as_val=`eval 'as_val=${'$as_ac_var'}
  19449. $as_echo "$as_val"'`
  19450. if test "x$as_val" = x""yes; then
  19451. cat >>confdefs.h <<_ACEOF
  19452. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19453. _ACEOF
  19454. have_epoll=yes
  19455. fi
  19456. done
  19457. if test "x$have_epoll" = "xyes"; then
  19458. cat >>confdefs.h <<\_ACEOF
  19459. #define HAVE_EPOLL 1
  19460. _ACEOF
  19461. fi
  19462. fi
  19463. if test "x$have_epoll" = "xyes"; then
  19464. HAVE_EPOLL_TRUE=
  19465. HAVE_EPOLL_FALSE='#'
  19466. else
  19467. HAVE_EPOLL_TRUE='#'
  19468. HAVE_EPOLL_FALSE=
  19469. fi
  19470. for ac_func in posix_fallocate
  19471. do
  19472. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19473. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19474. $as_echo_n "checking for $ac_func... " >&6; }
  19475. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19476. $as_echo_n "(cached) " >&6
  19477. else
  19478. cat >conftest.$ac_ext <<_ACEOF
  19479. /* confdefs.h. */
  19480. _ACEOF
  19481. cat confdefs.h >>conftest.$ac_ext
  19482. cat >>conftest.$ac_ext <<_ACEOF
  19483. /* end confdefs.h. */
  19484. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19486. #define $ac_func innocuous_$ac_func
  19487. /* System header to define __stub macros and hopefully few prototypes,
  19488. which can conflict with char $ac_func (); below.
  19489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19490. <limits.h> exists even on freestanding compilers. */
  19491. #ifdef __STDC__
  19492. # include <limits.h>
  19493. #else
  19494. # include <assert.h>
  19495. #endif
  19496. #undef $ac_func
  19497. /* Override any GCC internal prototype to avoid an error.
  19498. Use char because int might match the return type of a GCC
  19499. builtin and then its argument prototype would still apply. */
  19500. #ifdef __cplusplus
  19501. extern "C"
  19502. #endif
  19503. char $ac_func ();
  19504. /* The GNU C library defines this for functions which it implements
  19505. to always fail with ENOSYS. Some functions are actually named
  19506. something starting with __ and the normal name is an alias. */
  19507. #if defined __stub_$ac_func || defined __stub___$ac_func
  19508. choke me
  19509. #endif
  19510. int
  19511. main ()
  19512. {
  19513. return $ac_func ();
  19514. ;
  19515. return 0;
  19516. }
  19517. _ACEOF
  19518. rm -f conftest.$ac_objext conftest$ac_exeext
  19519. if { (ac_try="$ac_link"
  19520. case "(($ac_try" in
  19521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19522. *) ac_try_echo=$ac_try;;
  19523. esac
  19524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19525. $as_echo "$ac_try_echo") >&5
  19526. (eval "$ac_link") 2>conftest.er1
  19527. ac_status=$?
  19528. grep -v '^ *+' conftest.er1 >conftest.err
  19529. rm -f conftest.er1
  19530. cat conftest.err >&5
  19531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19532. (exit $ac_status); } && {
  19533. test -z "$ac_cxx_werror_flag" ||
  19534. test ! -s conftest.err
  19535. } && test -s conftest$ac_exeext && {
  19536. test "$cross_compiling" = yes ||
  19537. $as_test_x conftest$ac_exeext
  19538. }; then
  19539. eval "$as_ac_var=yes"
  19540. else
  19541. $as_echo "$as_me: failed program was:" >&5
  19542. sed 's/^/| /' conftest.$ac_ext >&5
  19543. eval "$as_ac_var=no"
  19544. fi
  19545. rm -rf conftest.dSYM
  19546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19547. conftest$ac_exeext conftest.$ac_ext
  19548. fi
  19549. ac_res=`eval 'as_val=${'$as_ac_var'}
  19550. $as_echo "$as_val"'`
  19551. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19552. $as_echo "$ac_res" >&6; }
  19553. as_val=`eval 'as_val=${'$as_ac_var'}
  19554. $as_echo "$as_val"'`
  19555. if test "x$as_val" = x""yes; then
  19556. cat >>confdefs.h <<_ACEOF
  19557. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19558. _ACEOF
  19559. have_posix_fallocate=yes
  19560. fi
  19561. done
  19562. if test "x$have_posix_fallocate" = "xyes"; then
  19563. HAVE_POSIX_FALLOCATE_TRUE=
  19564. HAVE_POSIX_FALLOCATE_FALSE='#'
  19565. else
  19566. HAVE_POSIX_FALLOCATE_TRUE='#'
  19567. HAVE_POSIX_FALLOCATE_FALSE=
  19568. fi
  19569. for ac_func in asctime_r
  19570. do
  19571. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19572. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19573. $as_echo_n "checking for $ac_func... " >&6; }
  19574. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19575. $as_echo_n "(cached) " >&6
  19576. else
  19577. cat >conftest.$ac_ext <<_ACEOF
  19578. /* confdefs.h. */
  19579. _ACEOF
  19580. cat confdefs.h >>conftest.$ac_ext
  19581. cat >>conftest.$ac_ext <<_ACEOF
  19582. /* end confdefs.h. */
  19583. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19584. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19585. #define $ac_func innocuous_$ac_func
  19586. /* System header to define __stub macros and hopefully few prototypes,
  19587. which can conflict with char $ac_func (); below.
  19588. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19589. <limits.h> exists even on freestanding compilers. */
  19590. #ifdef __STDC__
  19591. # include <limits.h>
  19592. #else
  19593. # include <assert.h>
  19594. #endif
  19595. #undef $ac_func
  19596. /* Override any GCC internal prototype to avoid an error.
  19597. Use char because int might match the return type of a GCC
  19598. builtin and then its argument prototype would still apply. */
  19599. #ifdef __cplusplus
  19600. extern "C"
  19601. #endif
  19602. char $ac_func ();
  19603. /* The GNU C library defines this for functions which it implements
  19604. to always fail with ENOSYS. Some functions are actually named
  19605. something starting with __ and the normal name is an alias. */
  19606. #if defined __stub_$ac_func || defined __stub___$ac_func
  19607. choke me
  19608. #endif
  19609. int
  19610. main ()
  19611. {
  19612. return $ac_func ();
  19613. ;
  19614. return 0;
  19615. }
  19616. _ACEOF
  19617. rm -f conftest.$ac_objext conftest$ac_exeext
  19618. if { (ac_try="$ac_link"
  19619. case "(($ac_try" in
  19620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19621. *) ac_try_echo=$ac_try;;
  19622. esac
  19623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19624. $as_echo "$ac_try_echo") >&5
  19625. (eval "$ac_link") 2>conftest.er1
  19626. ac_status=$?
  19627. grep -v '^ *+' conftest.er1 >conftest.err
  19628. rm -f conftest.er1
  19629. cat conftest.err >&5
  19630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19631. (exit $ac_status); } && {
  19632. test -z "$ac_cxx_werror_flag" ||
  19633. test ! -s conftest.err
  19634. } && test -s conftest$ac_exeext && {
  19635. test "$cross_compiling" = yes ||
  19636. $as_test_x conftest$ac_exeext
  19637. }; then
  19638. eval "$as_ac_var=yes"
  19639. else
  19640. $as_echo "$as_me: failed program was:" >&5
  19641. sed 's/^/| /' conftest.$ac_ext >&5
  19642. eval "$as_ac_var=no"
  19643. fi
  19644. rm -rf conftest.dSYM
  19645. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19646. conftest$ac_exeext conftest.$ac_ext
  19647. fi
  19648. ac_res=`eval 'as_val=${'$as_ac_var'}
  19649. $as_echo "$as_val"'`
  19650. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19651. $as_echo "$ac_res" >&6; }
  19652. as_val=`eval 'as_val=${'$as_ac_var'}
  19653. $as_echo "$as_val"'`
  19654. if test "x$as_val" = x""yes; then
  19655. cat >>confdefs.h <<_ACEOF
  19656. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19657. _ACEOF
  19658. if true; then
  19659. HAVE_ASCTIME_R_TRUE=
  19660. HAVE_ASCTIME_R_FALSE='#'
  19661. else
  19662. HAVE_ASCTIME_R_TRUE='#'
  19663. HAVE_ASCTIME_R_FALSE=
  19664. fi
  19665. else
  19666. if false; then
  19667. HAVE_ASCTIME_R_TRUE=
  19668. HAVE_ASCTIME_R_FALSE='#'
  19669. else
  19670. HAVE_ASCTIME_R_TRUE='#'
  19671. HAVE_ASCTIME_R_FALSE=
  19672. fi
  19673. fi
  19674. done
  19675. for ac_func in basename
  19676. do
  19677. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19678. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19679. $as_echo_n "checking for $ac_func... " >&6; }
  19680. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19681. $as_echo_n "(cached) " >&6
  19682. else
  19683. cat >conftest.$ac_ext <<_ACEOF
  19684. /* confdefs.h. */
  19685. _ACEOF
  19686. cat confdefs.h >>conftest.$ac_ext
  19687. cat >>conftest.$ac_ext <<_ACEOF
  19688. /* end confdefs.h. */
  19689. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19691. #define $ac_func innocuous_$ac_func
  19692. /* System header to define __stub macros and hopefully few prototypes,
  19693. which can conflict with char $ac_func (); below.
  19694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19695. <limits.h> exists even on freestanding compilers. */
  19696. #ifdef __STDC__
  19697. # include <limits.h>
  19698. #else
  19699. # include <assert.h>
  19700. #endif
  19701. #undef $ac_func
  19702. /* Override any GCC internal prototype to avoid an error.
  19703. Use char because int might match the return type of a GCC
  19704. builtin and then its argument prototype would still apply. */
  19705. #ifdef __cplusplus
  19706. extern "C"
  19707. #endif
  19708. char $ac_func ();
  19709. /* The GNU C library defines this for functions which it implements
  19710. to always fail with ENOSYS. Some functions are actually named
  19711. something starting with __ and the normal name is an alias. */
  19712. #if defined __stub_$ac_func || defined __stub___$ac_func
  19713. choke me
  19714. #endif
  19715. int
  19716. main ()
  19717. {
  19718. return $ac_func ();
  19719. ;
  19720. return 0;
  19721. }
  19722. _ACEOF
  19723. rm -f conftest.$ac_objext conftest$ac_exeext
  19724. if { (ac_try="$ac_link"
  19725. case "(($ac_try" in
  19726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19727. *) ac_try_echo=$ac_try;;
  19728. esac
  19729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19730. $as_echo "$ac_try_echo") >&5
  19731. (eval "$ac_link") 2>conftest.er1
  19732. ac_status=$?
  19733. grep -v '^ *+' conftest.er1 >conftest.err
  19734. rm -f conftest.er1
  19735. cat conftest.err >&5
  19736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19737. (exit $ac_status); } && {
  19738. test -z "$ac_cxx_werror_flag" ||
  19739. test ! -s conftest.err
  19740. } && test -s conftest$ac_exeext && {
  19741. test "$cross_compiling" = yes ||
  19742. $as_test_x conftest$ac_exeext
  19743. }; then
  19744. eval "$as_ac_var=yes"
  19745. else
  19746. $as_echo "$as_me: failed program was:" >&5
  19747. sed 's/^/| /' conftest.$ac_ext >&5
  19748. eval "$as_ac_var=no"
  19749. fi
  19750. rm -rf conftest.dSYM
  19751. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19752. conftest$ac_exeext conftest.$ac_ext
  19753. fi
  19754. ac_res=`eval 'as_val=${'$as_ac_var'}
  19755. $as_echo "$as_val"'`
  19756. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19757. $as_echo "$ac_res" >&6; }
  19758. as_val=`eval 'as_val=${'$as_ac_var'}
  19759. $as_echo "$as_val"'`
  19760. if test "x$as_val" = x""yes; then
  19761. cat >>confdefs.h <<_ACEOF
  19762. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19763. _ACEOF
  19764. if true; then
  19765. HAVE_BASENAME_TRUE=
  19766. HAVE_BASENAME_FALSE='#'
  19767. else
  19768. HAVE_BASENAME_TRUE='#'
  19769. HAVE_BASENAME_FALSE=
  19770. fi
  19771. else
  19772. if false; then
  19773. HAVE_BASENAME_TRUE=
  19774. HAVE_BASENAME_FALSE='#'
  19775. else
  19776. HAVE_BASENAME_TRUE='#'
  19777. HAVE_BASENAME_FALSE=
  19778. fi
  19779. fi
  19780. done
  19781. for ac_func in gai_strerror
  19782. do
  19783. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19784. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19785. $as_echo_n "checking for $ac_func... " >&6; }
  19786. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19787. $as_echo_n "(cached) " >&6
  19788. else
  19789. cat >conftest.$ac_ext <<_ACEOF
  19790. /* confdefs.h. */
  19791. _ACEOF
  19792. cat confdefs.h >>conftest.$ac_ext
  19793. cat >>conftest.$ac_ext <<_ACEOF
  19794. /* end confdefs.h. */
  19795. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19796. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19797. #define $ac_func innocuous_$ac_func
  19798. /* System header to define __stub macros and hopefully few prototypes,
  19799. which can conflict with char $ac_func (); below.
  19800. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19801. <limits.h> exists even on freestanding compilers. */
  19802. #ifdef __STDC__
  19803. # include <limits.h>
  19804. #else
  19805. # include <assert.h>
  19806. #endif
  19807. #undef $ac_func
  19808. /* Override any GCC internal prototype to avoid an error.
  19809. Use char because int might match the return type of a GCC
  19810. builtin and then its argument prototype would still apply. */
  19811. #ifdef __cplusplus
  19812. extern "C"
  19813. #endif
  19814. char $ac_func ();
  19815. /* The GNU C library defines this for functions which it implements
  19816. to always fail with ENOSYS. Some functions are actually named
  19817. something starting with __ and the normal name is an alias. */
  19818. #if defined __stub_$ac_func || defined __stub___$ac_func
  19819. choke me
  19820. #endif
  19821. int
  19822. main ()
  19823. {
  19824. return $ac_func ();
  19825. ;
  19826. return 0;
  19827. }
  19828. _ACEOF
  19829. rm -f conftest.$ac_objext conftest$ac_exeext
  19830. if { (ac_try="$ac_link"
  19831. case "(($ac_try" in
  19832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19833. *) ac_try_echo=$ac_try;;
  19834. esac
  19835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19836. $as_echo "$ac_try_echo") >&5
  19837. (eval "$ac_link") 2>conftest.er1
  19838. ac_status=$?
  19839. grep -v '^ *+' conftest.er1 >conftest.err
  19840. rm -f conftest.er1
  19841. cat conftest.err >&5
  19842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19843. (exit $ac_status); } && {
  19844. test -z "$ac_cxx_werror_flag" ||
  19845. test ! -s conftest.err
  19846. } && test -s conftest$ac_exeext && {
  19847. test "$cross_compiling" = yes ||
  19848. $as_test_x conftest$ac_exeext
  19849. }; then
  19850. eval "$as_ac_var=yes"
  19851. else
  19852. $as_echo "$as_me: failed program was:" >&5
  19853. sed 's/^/| /' conftest.$ac_ext >&5
  19854. eval "$as_ac_var=no"
  19855. fi
  19856. rm -rf conftest.dSYM
  19857. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19858. conftest$ac_exeext conftest.$ac_ext
  19859. fi
  19860. ac_res=`eval 'as_val=${'$as_ac_var'}
  19861. $as_echo "$as_val"'`
  19862. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19863. $as_echo "$ac_res" >&6; }
  19864. as_val=`eval 'as_val=${'$as_ac_var'}
  19865. $as_echo "$as_val"'`
  19866. if test "x$as_val" = x""yes; then
  19867. cat >>confdefs.h <<_ACEOF
  19868. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19869. _ACEOF
  19870. if true; then
  19871. HAVE_GAI_STRERROR_TRUE=
  19872. HAVE_GAI_STRERROR_FALSE='#'
  19873. else
  19874. HAVE_GAI_STRERROR_TRUE='#'
  19875. HAVE_GAI_STRERROR_FALSE=
  19876. fi
  19877. else
  19878. if false; then
  19879. HAVE_GAI_STRERROR_TRUE=
  19880. HAVE_GAI_STRERROR_FALSE='#'
  19881. else
  19882. HAVE_GAI_STRERROR_TRUE='#'
  19883. HAVE_GAI_STRERROR_FALSE=
  19884. fi
  19885. fi
  19886. done
  19887. for ac_func in getaddrinfo
  19888. do
  19889. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19890. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19891. $as_echo_n "checking for $ac_func... " >&6; }
  19892. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19893. $as_echo_n "(cached) " >&6
  19894. else
  19895. cat >conftest.$ac_ext <<_ACEOF
  19896. /* confdefs.h. */
  19897. _ACEOF
  19898. cat confdefs.h >>conftest.$ac_ext
  19899. cat >>conftest.$ac_ext <<_ACEOF
  19900. /* end confdefs.h. */
  19901. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19902. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19903. #define $ac_func innocuous_$ac_func
  19904. /* System header to define __stub macros and hopefully few prototypes,
  19905. which can conflict with char $ac_func (); below.
  19906. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19907. <limits.h> exists even on freestanding compilers. */
  19908. #ifdef __STDC__
  19909. # include <limits.h>
  19910. #else
  19911. # include <assert.h>
  19912. #endif
  19913. #undef $ac_func
  19914. /* Override any GCC internal prototype to avoid an error.
  19915. Use char because int might match the return type of a GCC
  19916. builtin and then its argument prototype would still apply. */
  19917. #ifdef __cplusplus
  19918. extern "C"
  19919. #endif
  19920. char $ac_func ();
  19921. /* The GNU C library defines this for functions which it implements
  19922. to always fail with ENOSYS. Some functions are actually named
  19923. something starting with __ and the normal name is an alias. */
  19924. #if defined __stub_$ac_func || defined __stub___$ac_func
  19925. choke me
  19926. #endif
  19927. int
  19928. main ()
  19929. {
  19930. return $ac_func ();
  19931. ;
  19932. return 0;
  19933. }
  19934. _ACEOF
  19935. rm -f conftest.$ac_objext conftest$ac_exeext
  19936. if { (ac_try="$ac_link"
  19937. case "(($ac_try" in
  19938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19939. *) ac_try_echo=$ac_try;;
  19940. esac
  19941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19942. $as_echo "$ac_try_echo") >&5
  19943. (eval "$ac_link") 2>conftest.er1
  19944. ac_status=$?
  19945. grep -v '^ *+' conftest.er1 >conftest.err
  19946. rm -f conftest.er1
  19947. cat conftest.err >&5
  19948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19949. (exit $ac_status); } && {
  19950. test -z "$ac_cxx_werror_flag" ||
  19951. test ! -s conftest.err
  19952. } && test -s conftest$ac_exeext && {
  19953. test "$cross_compiling" = yes ||
  19954. $as_test_x conftest$ac_exeext
  19955. }; then
  19956. eval "$as_ac_var=yes"
  19957. else
  19958. $as_echo "$as_me: failed program was:" >&5
  19959. sed 's/^/| /' conftest.$ac_ext >&5
  19960. eval "$as_ac_var=no"
  19961. fi
  19962. rm -rf conftest.dSYM
  19963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19964. conftest$ac_exeext conftest.$ac_ext
  19965. fi
  19966. ac_res=`eval 'as_val=${'$as_ac_var'}
  19967. $as_echo "$as_val"'`
  19968. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19969. $as_echo "$ac_res" >&6; }
  19970. as_val=`eval 'as_val=${'$as_ac_var'}
  19971. $as_echo "$as_val"'`
  19972. if test "x$as_val" = x""yes; then
  19973. cat >>confdefs.h <<_ACEOF
  19974. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19975. _ACEOF
  19976. if true; then
  19977. HAVE_GETADDRINFO_TRUE=
  19978. HAVE_GETADDRINFO_FALSE='#'
  19979. else
  19980. HAVE_GETADDRINFO_TRUE='#'
  19981. HAVE_GETADDRINFO_FALSE=
  19982. fi
  19983. else
  19984. if false; then
  19985. HAVE_GETADDRINFO_TRUE=
  19986. HAVE_GETADDRINFO_FALSE='#'
  19987. else
  19988. HAVE_GETADDRINFO_TRUE='#'
  19989. HAVE_GETADDRINFO_FALSE=
  19990. fi
  19991. fi
  19992. done
  19993. for ac_func in gettimeofday
  19994. do
  19995. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19996. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19997. $as_echo_n "checking for $ac_func... " >&6; }
  19998. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19999. $as_echo_n "(cached) " >&6
  20000. else
  20001. cat >conftest.$ac_ext <<_ACEOF
  20002. /* confdefs.h. */
  20003. _ACEOF
  20004. cat confdefs.h >>conftest.$ac_ext
  20005. cat >>conftest.$ac_ext <<_ACEOF
  20006. /* end confdefs.h. */
  20007. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20008. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20009. #define $ac_func innocuous_$ac_func
  20010. /* System header to define __stub macros and hopefully few prototypes,
  20011. which can conflict with char $ac_func (); below.
  20012. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20013. <limits.h> exists even on freestanding compilers. */
  20014. #ifdef __STDC__
  20015. # include <limits.h>
  20016. #else
  20017. # include <assert.h>
  20018. #endif
  20019. #undef $ac_func
  20020. /* Override any GCC internal prototype to avoid an error.
  20021. Use char because int might match the return type of a GCC
  20022. builtin and then its argument prototype would still apply. */
  20023. #ifdef __cplusplus
  20024. extern "C"
  20025. #endif
  20026. char $ac_func ();
  20027. /* The GNU C library defines this for functions which it implements
  20028. to always fail with ENOSYS. Some functions are actually named
  20029. something starting with __ and the normal name is an alias. */
  20030. #if defined __stub_$ac_func || defined __stub___$ac_func
  20031. choke me
  20032. #endif
  20033. int
  20034. main ()
  20035. {
  20036. return $ac_func ();
  20037. ;
  20038. return 0;
  20039. }
  20040. _ACEOF
  20041. rm -f conftest.$ac_objext conftest$ac_exeext
  20042. if { (ac_try="$ac_link"
  20043. case "(($ac_try" in
  20044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20045. *) ac_try_echo=$ac_try;;
  20046. esac
  20047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20048. $as_echo "$ac_try_echo") >&5
  20049. (eval "$ac_link") 2>conftest.er1
  20050. ac_status=$?
  20051. grep -v '^ *+' conftest.er1 >conftest.err
  20052. rm -f conftest.er1
  20053. cat conftest.err >&5
  20054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. (exit $ac_status); } && {
  20056. test -z "$ac_cxx_werror_flag" ||
  20057. test ! -s conftest.err
  20058. } && test -s conftest$ac_exeext && {
  20059. test "$cross_compiling" = yes ||
  20060. $as_test_x conftest$ac_exeext
  20061. }; then
  20062. eval "$as_ac_var=yes"
  20063. else
  20064. $as_echo "$as_me: failed program was:" >&5
  20065. sed 's/^/| /' conftest.$ac_ext >&5
  20066. eval "$as_ac_var=no"
  20067. fi
  20068. rm -rf conftest.dSYM
  20069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20070. conftest$ac_exeext conftest.$ac_ext
  20071. fi
  20072. ac_res=`eval 'as_val=${'$as_ac_var'}
  20073. $as_echo "$as_val"'`
  20074. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20075. $as_echo "$ac_res" >&6; }
  20076. as_val=`eval 'as_val=${'$as_ac_var'}
  20077. $as_echo "$as_val"'`
  20078. if test "x$as_val" = x""yes; then
  20079. cat >>confdefs.h <<_ACEOF
  20080. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20081. _ACEOF
  20082. if true; then
  20083. HAVE_GETTIMEOFDAY_TRUE=
  20084. HAVE_GETTIMEOFDAY_FALSE='#'
  20085. else
  20086. HAVE_GETTIMEOFDAY_TRUE='#'
  20087. HAVE_GETTIMEOFDAY_FALSE=
  20088. fi
  20089. else
  20090. if false; then
  20091. HAVE_GETTIMEOFDAY_TRUE=
  20092. HAVE_GETTIMEOFDAY_FALSE='#'
  20093. else
  20094. HAVE_GETTIMEOFDAY_TRUE='#'
  20095. HAVE_GETTIMEOFDAY_FALSE=
  20096. fi
  20097. fi
  20098. done
  20099. for ac_func in inet_aton
  20100. do
  20101. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20102. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20103. $as_echo_n "checking for $ac_func... " >&6; }
  20104. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20105. $as_echo_n "(cached) " >&6
  20106. else
  20107. cat >conftest.$ac_ext <<_ACEOF
  20108. /* confdefs.h. */
  20109. _ACEOF
  20110. cat confdefs.h >>conftest.$ac_ext
  20111. cat >>conftest.$ac_ext <<_ACEOF
  20112. /* end confdefs.h. */
  20113. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20114. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20115. #define $ac_func innocuous_$ac_func
  20116. /* System header to define __stub macros and hopefully few prototypes,
  20117. which can conflict with char $ac_func (); below.
  20118. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20119. <limits.h> exists even on freestanding compilers. */
  20120. #ifdef __STDC__
  20121. # include <limits.h>
  20122. #else
  20123. # include <assert.h>
  20124. #endif
  20125. #undef $ac_func
  20126. /* Override any GCC internal prototype to avoid an error.
  20127. Use char because int might match the return type of a GCC
  20128. builtin and then its argument prototype would still apply. */
  20129. #ifdef __cplusplus
  20130. extern "C"
  20131. #endif
  20132. char $ac_func ();
  20133. /* The GNU C library defines this for functions which it implements
  20134. to always fail with ENOSYS. Some functions are actually named
  20135. something starting with __ and the normal name is an alias. */
  20136. #if defined __stub_$ac_func || defined __stub___$ac_func
  20137. choke me
  20138. #endif
  20139. int
  20140. main ()
  20141. {
  20142. return $ac_func ();
  20143. ;
  20144. return 0;
  20145. }
  20146. _ACEOF
  20147. rm -f conftest.$ac_objext conftest$ac_exeext
  20148. if { (ac_try="$ac_link"
  20149. case "(($ac_try" in
  20150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20151. *) ac_try_echo=$ac_try;;
  20152. esac
  20153. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20154. $as_echo "$ac_try_echo") >&5
  20155. (eval "$ac_link") 2>conftest.er1
  20156. ac_status=$?
  20157. grep -v '^ *+' conftest.er1 >conftest.err
  20158. rm -f conftest.er1
  20159. cat conftest.err >&5
  20160. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20161. (exit $ac_status); } && {
  20162. test -z "$ac_cxx_werror_flag" ||
  20163. test ! -s conftest.err
  20164. } && test -s conftest$ac_exeext && {
  20165. test "$cross_compiling" = yes ||
  20166. $as_test_x conftest$ac_exeext
  20167. }; then
  20168. eval "$as_ac_var=yes"
  20169. else
  20170. $as_echo "$as_me: failed program was:" >&5
  20171. sed 's/^/| /' conftest.$ac_ext >&5
  20172. eval "$as_ac_var=no"
  20173. fi
  20174. rm -rf conftest.dSYM
  20175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20176. conftest$ac_exeext conftest.$ac_ext
  20177. fi
  20178. ac_res=`eval 'as_val=${'$as_ac_var'}
  20179. $as_echo "$as_val"'`
  20180. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20181. $as_echo "$ac_res" >&6; }
  20182. as_val=`eval 'as_val=${'$as_ac_var'}
  20183. $as_echo "$as_val"'`
  20184. if test "x$as_val" = x""yes; then
  20185. cat >>confdefs.h <<_ACEOF
  20186. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20187. _ACEOF
  20188. if true; then
  20189. HAVE_INET_ATON_TRUE=
  20190. HAVE_INET_ATON_FALSE='#'
  20191. else
  20192. HAVE_INET_ATON_TRUE='#'
  20193. HAVE_INET_ATON_FALSE=
  20194. fi
  20195. else
  20196. if false; then
  20197. HAVE_INET_ATON_TRUE=
  20198. HAVE_INET_ATON_FALSE='#'
  20199. else
  20200. HAVE_INET_ATON_TRUE='#'
  20201. HAVE_INET_ATON_FALSE=
  20202. fi
  20203. fi
  20204. done
  20205. for ac_func in localtime_r
  20206. do
  20207. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20208. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20209. $as_echo_n "checking for $ac_func... " >&6; }
  20210. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20211. $as_echo_n "(cached) " >&6
  20212. else
  20213. cat >conftest.$ac_ext <<_ACEOF
  20214. /* confdefs.h. */
  20215. _ACEOF
  20216. cat confdefs.h >>conftest.$ac_ext
  20217. cat >>conftest.$ac_ext <<_ACEOF
  20218. /* end confdefs.h. */
  20219. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20220. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20221. #define $ac_func innocuous_$ac_func
  20222. /* System header to define __stub macros and hopefully few prototypes,
  20223. which can conflict with char $ac_func (); below.
  20224. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20225. <limits.h> exists even on freestanding compilers. */
  20226. #ifdef __STDC__
  20227. # include <limits.h>
  20228. #else
  20229. # include <assert.h>
  20230. #endif
  20231. #undef $ac_func
  20232. /* Override any GCC internal prototype to avoid an error.
  20233. Use char because int might match the return type of a GCC
  20234. builtin and then its argument prototype would still apply. */
  20235. #ifdef __cplusplus
  20236. extern "C"
  20237. #endif
  20238. char $ac_func ();
  20239. /* The GNU C library defines this for functions which it implements
  20240. to always fail with ENOSYS. Some functions are actually named
  20241. something starting with __ and the normal name is an alias. */
  20242. #if defined __stub_$ac_func || defined __stub___$ac_func
  20243. choke me
  20244. #endif
  20245. int
  20246. main ()
  20247. {
  20248. return $ac_func ();
  20249. ;
  20250. return 0;
  20251. }
  20252. _ACEOF
  20253. rm -f conftest.$ac_objext conftest$ac_exeext
  20254. if { (ac_try="$ac_link"
  20255. case "(($ac_try" in
  20256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20257. *) ac_try_echo=$ac_try;;
  20258. esac
  20259. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20260. $as_echo "$ac_try_echo") >&5
  20261. (eval "$ac_link") 2>conftest.er1
  20262. ac_status=$?
  20263. grep -v '^ *+' conftest.er1 >conftest.err
  20264. rm -f conftest.er1
  20265. cat conftest.err >&5
  20266. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20267. (exit $ac_status); } && {
  20268. test -z "$ac_cxx_werror_flag" ||
  20269. test ! -s conftest.err
  20270. } && test -s conftest$ac_exeext && {
  20271. test "$cross_compiling" = yes ||
  20272. $as_test_x conftest$ac_exeext
  20273. }; then
  20274. eval "$as_ac_var=yes"
  20275. else
  20276. $as_echo "$as_me: failed program was:" >&5
  20277. sed 's/^/| /' conftest.$ac_ext >&5
  20278. eval "$as_ac_var=no"
  20279. fi
  20280. rm -rf conftest.dSYM
  20281. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20282. conftest$ac_exeext conftest.$ac_ext
  20283. fi
  20284. ac_res=`eval 'as_val=${'$as_ac_var'}
  20285. $as_echo "$as_val"'`
  20286. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20287. $as_echo "$ac_res" >&6; }
  20288. as_val=`eval 'as_val=${'$as_ac_var'}
  20289. $as_echo "$as_val"'`
  20290. if test "x$as_val" = x""yes; then
  20291. cat >>confdefs.h <<_ACEOF
  20292. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20293. _ACEOF
  20294. if true; then
  20295. HAVE_LOCALTIME_R_TRUE=
  20296. HAVE_LOCALTIME_R_FALSE='#'
  20297. else
  20298. HAVE_LOCALTIME_R_TRUE='#'
  20299. HAVE_LOCALTIME_R_FALSE=
  20300. fi
  20301. else
  20302. if false; then
  20303. HAVE_LOCALTIME_R_TRUE=
  20304. HAVE_LOCALTIME_R_FALSE='#'
  20305. else
  20306. HAVE_LOCALTIME_R_TRUE='#'
  20307. HAVE_LOCALTIME_R_FALSE=
  20308. fi
  20309. fi
  20310. done
  20311. for ac_func in strptime
  20312. do
  20313. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20314. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20315. $as_echo_n "checking for $ac_func... " >&6; }
  20316. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20317. $as_echo_n "(cached) " >&6
  20318. else
  20319. cat >conftest.$ac_ext <<_ACEOF
  20320. /* confdefs.h. */
  20321. _ACEOF
  20322. cat confdefs.h >>conftest.$ac_ext
  20323. cat >>conftest.$ac_ext <<_ACEOF
  20324. /* end confdefs.h. */
  20325. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20326. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20327. #define $ac_func innocuous_$ac_func
  20328. /* System header to define __stub macros and hopefully few prototypes,
  20329. which can conflict with char $ac_func (); below.
  20330. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20331. <limits.h> exists even on freestanding compilers. */
  20332. #ifdef __STDC__
  20333. # include <limits.h>
  20334. #else
  20335. # include <assert.h>
  20336. #endif
  20337. #undef $ac_func
  20338. /* Override any GCC internal prototype to avoid an error.
  20339. Use char because int might match the return type of a GCC
  20340. builtin and then its argument prototype would still apply. */
  20341. #ifdef __cplusplus
  20342. extern "C"
  20343. #endif
  20344. char $ac_func ();
  20345. /* The GNU C library defines this for functions which it implements
  20346. to always fail with ENOSYS. Some functions are actually named
  20347. something starting with __ and the normal name is an alias. */
  20348. #if defined __stub_$ac_func || defined __stub___$ac_func
  20349. choke me
  20350. #endif
  20351. int
  20352. main ()
  20353. {
  20354. return $ac_func ();
  20355. ;
  20356. return 0;
  20357. }
  20358. _ACEOF
  20359. rm -f conftest.$ac_objext conftest$ac_exeext
  20360. if { (ac_try="$ac_link"
  20361. case "(($ac_try" in
  20362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20363. *) ac_try_echo=$ac_try;;
  20364. esac
  20365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20366. $as_echo "$ac_try_echo") >&5
  20367. (eval "$ac_link") 2>conftest.er1
  20368. ac_status=$?
  20369. grep -v '^ *+' conftest.er1 >conftest.err
  20370. rm -f conftest.er1
  20371. cat conftest.err >&5
  20372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20373. (exit $ac_status); } && {
  20374. test -z "$ac_cxx_werror_flag" ||
  20375. test ! -s conftest.err
  20376. } && test -s conftest$ac_exeext && {
  20377. test "$cross_compiling" = yes ||
  20378. $as_test_x conftest$ac_exeext
  20379. }; then
  20380. eval "$as_ac_var=yes"
  20381. else
  20382. $as_echo "$as_me: failed program was:" >&5
  20383. sed 's/^/| /' conftest.$ac_ext >&5
  20384. eval "$as_ac_var=no"
  20385. fi
  20386. rm -rf conftest.dSYM
  20387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20388. conftest$ac_exeext conftest.$ac_ext
  20389. fi
  20390. ac_res=`eval 'as_val=${'$as_ac_var'}
  20391. $as_echo "$as_val"'`
  20392. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20393. $as_echo "$ac_res" >&6; }
  20394. as_val=`eval 'as_val=${'$as_ac_var'}
  20395. $as_echo "$as_val"'`
  20396. if test "x$as_val" = x""yes; then
  20397. cat >>confdefs.h <<_ACEOF
  20398. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20399. _ACEOF
  20400. if true; then
  20401. HAVE_STRPTIME_TRUE=
  20402. HAVE_STRPTIME_FALSE='#'
  20403. else
  20404. HAVE_STRPTIME_TRUE='#'
  20405. HAVE_STRPTIME_FALSE=
  20406. fi
  20407. else
  20408. if false; then
  20409. HAVE_STRPTIME_TRUE=
  20410. HAVE_STRPTIME_FALSE='#'
  20411. else
  20412. HAVE_STRPTIME_TRUE='#'
  20413. HAVE_STRPTIME_FALSE=
  20414. fi
  20415. fi
  20416. done
  20417. for ac_func in timegm
  20418. do
  20419. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20420. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20421. $as_echo_n "checking for $ac_func... " >&6; }
  20422. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20423. $as_echo_n "(cached) " >&6
  20424. else
  20425. cat >conftest.$ac_ext <<_ACEOF
  20426. /* confdefs.h. */
  20427. _ACEOF
  20428. cat confdefs.h >>conftest.$ac_ext
  20429. cat >>conftest.$ac_ext <<_ACEOF
  20430. /* end confdefs.h. */
  20431. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20432. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20433. #define $ac_func innocuous_$ac_func
  20434. /* System header to define __stub macros and hopefully few prototypes,
  20435. which can conflict with char $ac_func (); below.
  20436. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20437. <limits.h> exists even on freestanding compilers. */
  20438. #ifdef __STDC__
  20439. # include <limits.h>
  20440. #else
  20441. # include <assert.h>
  20442. #endif
  20443. #undef $ac_func
  20444. /* Override any GCC internal prototype to avoid an error.
  20445. Use char because int might match the return type of a GCC
  20446. builtin and then its argument prototype would still apply. */
  20447. #ifdef __cplusplus
  20448. extern "C"
  20449. #endif
  20450. char $ac_func ();
  20451. /* The GNU C library defines this for functions which it implements
  20452. to always fail with ENOSYS. Some functions are actually named
  20453. something starting with __ and the normal name is an alias. */
  20454. #if defined __stub_$ac_func || defined __stub___$ac_func
  20455. choke me
  20456. #endif
  20457. int
  20458. main ()
  20459. {
  20460. return $ac_func ();
  20461. ;
  20462. return 0;
  20463. }
  20464. _ACEOF
  20465. rm -f conftest.$ac_objext conftest$ac_exeext
  20466. if { (ac_try="$ac_link"
  20467. case "(($ac_try" in
  20468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20469. *) ac_try_echo=$ac_try;;
  20470. esac
  20471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20472. $as_echo "$ac_try_echo") >&5
  20473. (eval "$ac_link") 2>conftest.er1
  20474. ac_status=$?
  20475. grep -v '^ *+' conftest.er1 >conftest.err
  20476. rm -f conftest.er1
  20477. cat conftest.err >&5
  20478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20479. (exit $ac_status); } && {
  20480. test -z "$ac_cxx_werror_flag" ||
  20481. test ! -s conftest.err
  20482. } && test -s conftest$ac_exeext && {
  20483. test "$cross_compiling" = yes ||
  20484. $as_test_x conftest$ac_exeext
  20485. }; then
  20486. eval "$as_ac_var=yes"
  20487. else
  20488. $as_echo "$as_me: failed program was:" >&5
  20489. sed 's/^/| /' conftest.$ac_ext >&5
  20490. eval "$as_ac_var=no"
  20491. fi
  20492. rm -rf conftest.dSYM
  20493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20494. conftest$ac_exeext conftest.$ac_ext
  20495. fi
  20496. ac_res=`eval 'as_val=${'$as_ac_var'}
  20497. $as_echo "$as_val"'`
  20498. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20499. $as_echo "$ac_res" >&6; }
  20500. as_val=`eval 'as_val=${'$as_ac_var'}
  20501. $as_echo "$as_val"'`
  20502. if test "x$as_val" = x""yes; then
  20503. cat >>confdefs.h <<_ACEOF
  20504. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20505. _ACEOF
  20506. if true; then
  20507. HAVE_TIMEGM_TRUE=
  20508. HAVE_TIMEGM_FALSE='#'
  20509. else
  20510. HAVE_TIMEGM_TRUE='#'
  20511. HAVE_TIMEGM_FALSE=
  20512. fi
  20513. else
  20514. if false; then
  20515. HAVE_TIMEGM_TRUE=
  20516. HAVE_TIMEGM_FALSE='#'
  20517. else
  20518. HAVE_TIMEGM_TRUE='#'
  20519. HAVE_TIMEGM_FALSE=
  20520. fi
  20521. fi
  20522. done
  20523. case "$target" in
  20524. *mingw*)
  20525. if true; then
  20526. HAVE_GETADDRINFO_TRUE=
  20527. HAVE_GETADDRINFO_FALSE='#'
  20528. else
  20529. HAVE_GETADDRINFO_TRUE='#'
  20530. HAVE_GETADDRINFO_FALSE=
  20531. fi
  20532. if false; then
  20533. HAVE_GAI_STRERROR_TRUE=
  20534. HAVE_GAI_STRERROR_FALSE='#'
  20535. else
  20536. HAVE_GAI_STRERROR_TRUE='#'
  20537. HAVE_GAI_STRERROR_FALSE=
  20538. fi
  20539. ;;
  20540. esac
  20541. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20542. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20543. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20544. $as_echo_n "(cached) " >&6
  20545. else
  20546. cat >conftest.$ac_ext <<_ACEOF
  20547. /* confdefs.h. */
  20548. _ACEOF
  20549. cat confdefs.h >>conftest.$ac_ext
  20550. cat >>conftest.$ac_ext <<_ACEOF
  20551. /* end confdefs.h. */
  20552. #include <netinet/in.h>
  20553. int
  20554. main ()
  20555. {
  20556. static struct sockaddr_in ac_aggr;
  20557. if (ac_aggr.sin_len)
  20558. return 0;
  20559. ;
  20560. return 0;
  20561. }
  20562. _ACEOF
  20563. rm -f conftest.$ac_objext
  20564. if { (ac_try="$ac_compile"
  20565. case "(($ac_try" in
  20566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20567. *) ac_try_echo=$ac_try;;
  20568. esac
  20569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20570. $as_echo "$ac_try_echo") >&5
  20571. (eval "$ac_compile") 2>conftest.er1
  20572. ac_status=$?
  20573. grep -v '^ *+' conftest.er1 >conftest.err
  20574. rm -f conftest.er1
  20575. cat conftest.err >&5
  20576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20577. (exit $ac_status); } && {
  20578. test -z "$ac_cxx_werror_flag" ||
  20579. test ! -s conftest.err
  20580. } && test -s conftest.$ac_objext; then
  20581. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20582. else
  20583. $as_echo "$as_me: failed program was:" >&5
  20584. sed 's/^/| /' conftest.$ac_ext >&5
  20585. cat >conftest.$ac_ext <<_ACEOF
  20586. /* confdefs.h. */
  20587. _ACEOF
  20588. cat confdefs.h >>conftest.$ac_ext
  20589. cat >>conftest.$ac_ext <<_ACEOF
  20590. /* end confdefs.h. */
  20591. #include <netinet/in.h>
  20592. int
  20593. main ()
  20594. {
  20595. static struct sockaddr_in ac_aggr;
  20596. if (sizeof ac_aggr.sin_len)
  20597. return 0;
  20598. ;
  20599. return 0;
  20600. }
  20601. _ACEOF
  20602. rm -f conftest.$ac_objext
  20603. if { (ac_try="$ac_compile"
  20604. case "(($ac_try" in
  20605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20606. *) ac_try_echo=$ac_try;;
  20607. esac
  20608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20609. $as_echo "$ac_try_echo") >&5
  20610. (eval "$ac_compile") 2>conftest.er1
  20611. ac_status=$?
  20612. grep -v '^ *+' conftest.er1 >conftest.err
  20613. rm -f conftest.er1
  20614. cat conftest.err >&5
  20615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20616. (exit $ac_status); } && {
  20617. test -z "$ac_cxx_werror_flag" ||
  20618. test ! -s conftest.err
  20619. } && test -s conftest.$ac_objext; then
  20620. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20621. else
  20622. $as_echo "$as_me: failed program was:" >&5
  20623. sed 's/^/| /' conftest.$ac_ext >&5
  20624. ac_cv_member_struct_sockaddr_in_sin_len=no
  20625. fi
  20626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20627. fi
  20628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20629. fi
  20630. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20631. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20632. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20633. cat >>confdefs.h <<\_ACEOF
  20634. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20635. _ACEOF
  20636. fi
  20637. # Check struct option.name is assignable from const char*. struct
  20638. # option.name in opensolaris is of type char*. In Linux, it is const
  20639. # char*
  20640. { $as_echo "$as_me:$LINENO: checking whether struct option.name is assignable from const char*" >&5
  20641. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  20642. cat >conftest.$ac_ext <<_ACEOF
  20643. /* confdefs.h. */
  20644. _ACEOF
  20645. cat confdefs.h >>conftest.$ac_ext
  20646. cat >>conftest.$ac_ext <<_ACEOF
  20647. /* end confdefs.h. */
  20648. #include <unistd.h>
  20649. #include <getopt.h>
  20650. int
  20651. main ()
  20652. {
  20653. const char* s = "const char";
  20654. option op;
  20655. op.name = s;
  20656. ;
  20657. return 0;
  20658. }
  20659. _ACEOF
  20660. rm -f conftest.$ac_objext
  20661. if { (ac_try="$ac_compile"
  20662. case "(($ac_try" in
  20663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20664. *) ac_try_echo=$ac_try;;
  20665. esac
  20666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20667. $as_echo "$ac_try_echo") >&5
  20668. (eval "$ac_compile") 2>conftest.er1
  20669. ac_status=$?
  20670. grep -v '^ *+' conftest.er1 >conftest.err
  20671. rm -f conftest.er1
  20672. cat conftest.err >&5
  20673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20674. (exit $ac_status); } && {
  20675. test -z "$ac_cxx_werror_flag" ||
  20676. test ! -s conftest.err
  20677. } && test -s conftest.$ac_objext; then
  20678. have_option_const_name=yes
  20679. else
  20680. $as_echo "$as_me: failed program was:" >&5
  20681. sed 's/^/| /' conftest.$ac_ext >&5
  20682. have_option_const_name=no
  20683. fi
  20684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20685. { $as_echo "$as_me:$LINENO: result: $have_option_const_name" >&5
  20686. $as_echo "$have_option_const_name" >&6; }
  20687. if test "x$have_option_const_name" = "xyes"; then
  20688. cat >>confdefs.h <<\_ACEOF
  20689. #define HAVE_OPTION_CONST_NAME 1
  20690. _ACEOF
  20691. fi
  20692. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20693. cat >confcache <<\_ACEOF
  20694. # This file is a shell script that caches the results of configure
  20695. # tests run on this system so they can be shared between configure
  20696. # scripts and configure runs, see configure's option --config-cache.
  20697. # It is not useful on other systems. If it contains results you don't
  20698. # want to keep, you may remove or edit it.
  20699. #
  20700. # config.status only pays attention to the cache file if you give it
  20701. # the --recheck option to rerun configure.
  20702. #
  20703. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20704. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20705. # following values.
  20706. _ACEOF
  20707. # The following way of writing the cache mishandles newlines in values,
  20708. # but we know of no workaround that is simple, portable, and efficient.
  20709. # So, we kill variables containing newlines.
  20710. # Ultrix sh set writes to stderr and can't be redirected directly,
  20711. # and sets the high bit in the cache file unless we assign to the vars.
  20712. (
  20713. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20714. eval ac_val=\$$ac_var
  20715. case $ac_val in #(
  20716. *${as_nl}*)
  20717. case $ac_var in #(
  20718. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20719. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20720. esac
  20721. case $ac_var in #(
  20722. _ | IFS | as_nl) ;; #(
  20723. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20724. *) $as_unset $ac_var ;;
  20725. esac ;;
  20726. esac
  20727. done
  20728. (set) 2>&1 |
  20729. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20730. *${as_nl}ac_space=\ *)
  20731. # `set' does not quote correctly, so add quotes (double-quote
  20732. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20733. sed -n \
  20734. "s/'/'\\\\''/g;
  20735. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20736. ;; #(
  20737. *)
  20738. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20739. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20740. ;;
  20741. esac |
  20742. sort
  20743. ) |
  20744. sed '
  20745. /^ac_cv_env_/b end
  20746. t clear
  20747. :clear
  20748. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20749. t end
  20750. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20751. :end' >>confcache
  20752. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20753. if test -w "$cache_file"; then
  20754. test "x$cache_file" != "x/dev/null" &&
  20755. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20756. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20757. cat confcache >$cache_file
  20758. else
  20759. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20760. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20761. fi
  20762. fi
  20763. rm -f confcache
  20764. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20765. # Let make expand exec_prefix.
  20766. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20767. DEFS=-DHAVE_CONFIG_H
  20768. ac_libobjs=
  20769. ac_ltlibobjs=
  20770. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20771. # 1. Remove the extension, and $U if already installed.
  20772. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20773. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20774. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20775. # will be set to the directory where LIBOBJS objects are built.
  20776. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20777. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20778. done
  20779. LIBOBJS=$ac_libobjs
  20780. LTLIBOBJS=$ac_ltlibobjs
  20781. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20782. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20783. Usually this means the macro was only invoked conditionally." >&5
  20784. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20785. Usually this means the macro was only invoked conditionally." >&2;}
  20786. { (exit 1); exit 1; }; }
  20787. fi
  20788. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20789. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20790. Usually this means the macro was only invoked conditionally." >&5
  20791. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20792. Usually this means the macro was only invoked conditionally." >&2;}
  20793. { (exit 1); exit 1; }; }
  20794. fi
  20795. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20796. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20797. Usually this means the macro was only invoked conditionally." >&5
  20798. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20799. Usually this means the macro was only invoked conditionally." >&2;}
  20800. { (exit 1); exit 1; }; }
  20801. fi
  20802. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20803. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20804. Usually this means the macro was only invoked conditionally." >&5
  20805. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20806. Usually this means the macro was only invoked conditionally." >&2;}
  20807. { (exit 1); exit 1; }; }
  20808. fi
  20809. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20810. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20811. Usually this means the macro was only invoked conditionally." >&5
  20812. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20813. Usually this means the macro was only invoked conditionally." >&2;}
  20814. { (exit 1); exit 1; }; }
  20815. fi
  20816. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20817. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20818. Usually this means the macro was only invoked conditionally." >&5
  20819. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20820. Usually this means the macro was only invoked conditionally." >&2;}
  20821. { (exit 1); exit 1; }; }
  20822. fi
  20823. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20824. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20825. Usually this means the macro was only invoked conditionally." >&5
  20826. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20827. Usually this means the macro was only invoked conditionally." >&2;}
  20828. { (exit 1); exit 1; }; }
  20829. fi
  20830. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20831. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20832. Usually this means the macro was only invoked conditionally." >&5
  20833. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20834. Usually this means the macro was only invoked conditionally." >&2;}
  20835. { (exit 1); exit 1; }; }
  20836. fi
  20837. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20838. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20839. Usually this means the macro was only invoked conditionally." >&5
  20840. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20841. Usually this means the macro was only invoked conditionally." >&2;}
  20842. { (exit 1); exit 1; }; }
  20843. fi
  20844. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20845. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20846. Usually this means the macro was only invoked conditionally." >&5
  20847. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20848. Usually this means the macro was only invoked conditionally." >&2;}
  20849. { (exit 1); exit 1; }; }
  20850. fi
  20851. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20852. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20853. Usually this means the macro was only invoked conditionally." >&5
  20854. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20855. Usually this means the macro was only invoked conditionally." >&2;}
  20856. { (exit 1); exit 1; }; }
  20857. fi
  20858. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20859. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20860. Usually this means the macro was only invoked conditionally." >&5
  20861. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20862. Usually this means the macro was only invoked conditionally." >&2;}
  20863. { (exit 1); exit 1; }; }
  20864. fi
  20865. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20866. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20867. Usually this means the macro was only invoked conditionally." >&5
  20868. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20869. Usually this means the macro was only invoked conditionally." >&2;}
  20870. { (exit 1); exit 1; }; }
  20871. fi
  20872. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20873. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20874. Usually this means the macro was only invoked conditionally." >&5
  20875. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20876. Usually this means the macro was only invoked conditionally." >&2;}
  20877. { (exit 1); exit 1; }; }
  20878. fi
  20879. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20880. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20881. Usually this means the macro was only invoked conditionally." >&5
  20882. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20883. Usually this means the macro was only invoked conditionally." >&2;}
  20884. { (exit 1); exit 1; }; }
  20885. fi
  20886. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20887. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20888. Usually this means the macro was only invoked conditionally." >&5
  20889. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20890. Usually this means the macro was only invoked conditionally." >&2;}
  20891. { (exit 1); exit 1; }; }
  20892. fi
  20893. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20894. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20895. Usually this means the macro was only invoked conditionally." >&5
  20896. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  20897. Usually this means the macro was only invoked conditionally." >&2;}
  20898. { (exit 1); exit 1; }; }
  20899. fi
  20900. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  20901. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20902. Usually this means the macro was only invoked conditionally." >&5
  20903. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20904. Usually this means the macro was only invoked conditionally." >&2;}
  20905. { (exit 1); exit 1; }; }
  20906. fi
  20907. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20908. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20909. Usually this means the macro was only invoked conditionally." >&5
  20910. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20911. Usually this means the macro was only invoked conditionally." >&2;}
  20912. { (exit 1); exit 1; }; }
  20913. fi
  20914. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20915. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20916. Usually this means the macro was only invoked conditionally." >&5
  20917. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20918. Usually this means the macro was only invoked conditionally." >&2;}
  20919. { (exit 1); exit 1; }; }
  20920. fi
  20921. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20922. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20923. Usually this means the macro was only invoked conditionally." >&5
  20924. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20925. Usually this means the macro was only invoked conditionally." >&2;}
  20926. { (exit 1); exit 1; }; }
  20927. fi
  20928. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20929. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20930. Usually this means the macro was only invoked conditionally." >&5
  20931. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20932. Usually this means the macro was only invoked conditionally." >&2;}
  20933. { (exit 1); exit 1; }; }
  20934. fi
  20935. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20936. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20937. Usually this means the macro was only invoked conditionally." >&5
  20938. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20939. Usually this means the macro was only invoked conditionally." >&2;}
  20940. { (exit 1); exit 1; }; }
  20941. fi
  20942. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20943. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20944. Usually this means the macro was only invoked conditionally." >&5
  20945. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20946. Usually this means the macro was only invoked conditionally." >&2;}
  20947. { (exit 1); exit 1; }; }
  20948. fi
  20949. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20950. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20951. Usually this means the macro was only invoked conditionally." >&5
  20952. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20953. Usually this means the macro was only invoked conditionally." >&2;}
  20954. { (exit 1); exit 1; }; }
  20955. fi
  20956. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20957. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20958. Usually this means the macro was only invoked conditionally." >&5
  20959. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20960. Usually this means the macro was only invoked conditionally." >&2;}
  20961. { (exit 1); exit 1; }; }
  20962. fi
  20963. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20964. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20965. Usually this means the macro was only invoked conditionally." >&5
  20966. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20967. Usually this means the macro was only invoked conditionally." >&2;}
  20968. { (exit 1); exit 1; }; }
  20969. fi
  20970. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20971. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20972. Usually this means the macro was only invoked conditionally." >&5
  20973. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20974. Usually this means the macro was only invoked conditionally." >&2;}
  20975. { (exit 1); exit 1; }; }
  20976. fi
  20977. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20978. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20979. Usually this means the macro was only invoked conditionally." >&5
  20980. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20981. Usually this means the macro was only invoked conditionally." >&2;}
  20982. { (exit 1); exit 1; }; }
  20983. fi
  20984. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20985. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20986. Usually this means the macro was only invoked conditionally." >&5
  20987. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20988. Usually this means the macro was only invoked conditionally." >&2;}
  20989. { (exit 1); exit 1; }; }
  20990. fi
  20991. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20992. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20993. Usually this means the macro was only invoked conditionally." >&5
  20994. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20995. Usually this means the macro was only invoked conditionally." >&2;}
  20996. { (exit 1); exit 1; }; }
  20997. fi
  20998. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20999. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21000. Usually this means the macro was only invoked conditionally." >&5
  21001. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21002. Usually this means the macro was only invoked conditionally." >&2;}
  21003. { (exit 1); exit 1; }; }
  21004. fi
  21005. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21006. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21007. Usually this means the macro was only invoked conditionally." >&5
  21008. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21009. Usually this means the macro was only invoked conditionally." >&2;}
  21010. { (exit 1); exit 1; }; }
  21011. fi
  21012. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21013. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21014. Usually this means the macro was only invoked conditionally." >&5
  21015. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21016. Usually this means the macro was only invoked conditionally." >&2;}
  21017. { (exit 1); exit 1; }; }
  21018. fi
  21019. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21020. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21021. Usually this means the macro was only invoked conditionally." >&5
  21022. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21023. Usually this means the macro was only invoked conditionally." >&2;}
  21024. { (exit 1); exit 1; }; }
  21025. fi
  21026. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21027. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21028. Usually this means the macro was only invoked conditionally." >&5
  21029. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21030. Usually this means the macro was only invoked conditionally." >&2;}
  21031. { (exit 1); exit 1; }; }
  21032. fi
  21033. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21034. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21035. Usually this means the macro was only invoked conditionally." >&5
  21036. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21037. Usually this means the macro was only invoked conditionally." >&2;}
  21038. { (exit 1); exit 1; }; }
  21039. fi
  21040. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21041. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21042. Usually this means the macro was only invoked conditionally." >&5
  21043. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21044. Usually this means the macro was only invoked conditionally." >&2;}
  21045. { (exit 1); exit 1; }; }
  21046. fi
  21047. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21048. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21049. Usually this means the macro was only invoked conditionally." >&5
  21050. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21051. Usually this means the macro was only invoked conditionally." >&2;}
  21052. { (exit 1); exit 1; }; }
  21053. fi
  21054. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21055. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21056. Usually this means the macro was only invoked conditionally." >&5
  21057. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21058. Usually this means the macro was only invoked conditionally." >&2;}
  21059. { (exit 1); exit 1; }; }
  21060. fi
  21061. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21062. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21063. Usually this means the macro was only invoked conditionally." >&5
  21064. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21065. Usually this means the macro was only invoked conditionally." >&2;}
  21066. { (exit 1); exit 1; }; }
  21067. fi
  21068. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21069. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21070. Usually this means the macro was only invoked conditionally." >&5
  21071. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21072. Usually this means the macro was only invoked conditionally." >&2;}
  21073. { (exit 1); exit 1; }; }
  21074. fi
  21075. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21076. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21077. Usually this means the macro was only invoked conditionally." >&5
  21078. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21079. Usually this means the macro was only invoked conditionally." >&2;}
  21080. { (exit 1); exit 1; }; }
  21081. fi
  21082. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  21083. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21084. Usually this means the macro was only invoked conditionally." >&5
  21085. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21086. Usually this means the macro was only invoked conditionally." >&2;}
  21087. { (exit 1); exit 1; }; }
  21088. fi
  21089. : ${CONFIG_STATUS=./config.status}
  21090. ac_write_fail=0
  21091. ac_clean_files_save=$ac_clean_files
  21092. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21093. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21094. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21095. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21096. #! $SHELL
  21097. # Generated by $as_me.
  21098. # Run this file to recreate the current configuration.
  21099. # Compiler output produced by configure, useful for debugging
  21100. # configure, is in config.log if it exists.
  21101. debug=false
  21102. ac_cs_recheck=false
  21103. ac_cs_silent=false
  21104. SHELL=\${CONFIG_SHELL-$SHELL}
  21105. _ACEOF
  21106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21107. ## --------------------- ##
  21108. ## M4sh Initialization. ##
  21109. ## --------------------- ##
  21110. # Be more Bourne compatible
  21111. DUALCASE=1; export DUALCASE # for MKS sh
  21112. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21113. emulate sh
  21114. NULLCMD=:
  21115. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21116. # is contrary to our usage. Disable this feature.
  21117. alias -g '${1+"$@"}'='"$@"'
  21118. setopt NO_GLOB_SUBST
  21119. else
  21120. case `(set -o) 2>/dev/null` in
  21121. *posix*) set -o posix ;;
  21122. esac
  21123. fi
  21124. # PATH needs CR
  21125. # Avoid depending upon Character Ranges.
  21126. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21127. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21128. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21129. as_cr_digits='0123456789'
  21130. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21131. as_nl='
  21132. '
  21133. export as_nl
  21134. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21135. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21136. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21137. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21138. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21139. as_echo='printf %s\n'
  21140. as_echo_n='printf %s'
  21141. else
  21142. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21143. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21144. as_echo_n='/usr/ucb/echo -n'
  21145. else
  21146. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21147. as_echo_n_body='eval
  21148. arg=$1;
  21149. case $arg in
  21150. *"$as_nl"*)
  21151. expr "X$arg" : "X\\(.*\\)$as_nl";
  21152. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21153. esac;
  21154. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21155. '
  21156. export as_echo_n_body
  21157. as_echo_n='sh -c $as_echo_n_body as_echo'
  21158. fi
  21159. export as_echo_body
  21160. as_echo='sh -c $as_echo_body as_echo'
  21161. fi
  21162. # The user is always right.
  21163. if test "${PATH_SEPARATOR+set}" != set; then
  21164. PATH_SEPARATOR=:
  21165. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21166. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21167. PATH_SEPARATOR=';'
  21168. }
  21169. fi
  21170. # Support unset when possible.
  21171. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21172. as_unset=unset
  21173. else
  21174. as_unset=false
  21175. fi
  21176. # IFS
  21177. # We need space, tab and new line, in precisely that order. Quoting is
  21178. # there to prevent editors from complaining about space-tab.
  21179. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21180. # splitting by setting IFS to empty value.)
  21181. IFS=" "" $as_nl"
  21182. # Find who we are. Look in the path if we contain no directory separator.
  21183. case $0 in
  21184. *[\\/]* ) as_myself=$0 ;;
  21185. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21186. for as_dir in $PATH
  21187. do
  21188. IFS=$as_save_IFS
  21189. test -z "$as_dir" && as_dir=.
  21190. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21191. done
  21192. IFS=$as_save_IFS
  21193. ;;
  21194. esac
  21195. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21196. # in which case we are not to be found in the path.
  21197. if test "x$as_myself" = x; then
  21198. as_myself=$0
  21199. fi
  21200. if test ! -f "$as_myself"; then
  21201. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21202. { (exit 1); exit 1; }
  21203. fi
  21204. # Work around bugs in pre-3.0 UWIN ksh.
  21205. for as_var in ENV MAIL MAILPATH
  21206. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21207. done
  21208. PS1='$ '
  21209. PS2='> '
  21210. PS4='+ '
  21211. # NLS nuisances.
  21212. LC_ALL=C
  21213. export LC_ALL
  21214. LANGUAGE=C
  21215. export LANGUAGE
  21216. # Required to use basename.
  21217. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21218. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21219. as_expr=expr
  21220. else
  21221. as_expr=false
  21222. fi
  21223. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21224. as_basename=basename
  21225. else
  21226. as_basename=false
  21227. fi
  21228. # Name of the executable.
  21229. as_me=`$as_basename -- "$0" ||
  21230. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21231. X"$0" : 'X\(//\)$' \| \
  21232. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21233. $as_echo X/"$0" |
  21234. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21235. s//\1/
  21236. q
  21237. }
  21238. /^X\/\(\/\/\)$/{
  21239. s//\1/
  21240. q
  21241. }
  21242. /^X\/\(\/\).*/{
  21243. s//\1/
  21244. q
  21245. }
  21246. s/.*/./; q'`
  21247. # CDPATH.
  21248. $as_unset CDPATH
  21249. as_lineno_1=$LINENO
  21250. as_lineno_2=$LINENO
  21251. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21252. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21253. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21254. # uniformly replaced by the line number. The first 'sed' inserts a
  21255. # line-number line after each line using $LINENO; the second 'sed'
  21256. # does the real work. The second script uses 'N' to pair each
  21257. # line-number line with the line containing $LINENO, and appends
  21258. # trailing '-' during substitution so that $LINENO is not a special
  21259. # case at line end.
  21260. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21261. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21262. # E. McMahon (1931-1989) for sed's syntax. :-)
  21263. sed -n '
  21264. p
  21265. /[$]LINENO/=
  21266. ' <$as_myself |
  21267. sed '
  21268. s/[$]LINENO.*/&-/
  21269. t lineno
  21270. b
  21271. :lineno
  21272. N
  21273. :loop
  21274. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21275. t loop
  21276. s/-\n.*//
  21277. ' >$as_me.lineno &&
  21278. chmod +x "$as_me.lineno" ||
  21279. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21280. { (exit 1); exit 1; }; }
  21281. # Don't try to exec as it changes $[0], causing all sort of problems
  21282. # (the dirname of $[0] is not the place where we might find the
  21283. # original and so on. Autoconf is especially sensitive to this).
  21284. . "./$as_me.lineno"
  21285. # Exit status is that of the last command.
  21286. exit
  21287. }
  21288. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21289. as_dirname=dirname
  21290. else
  21291. as_dirname=false
  21292. fi
  21293. ECHO_C= ECHO_N= ECHO_T=
  21294. case `echo -n x` in
  21295. -n*)
  21296. case `echo 'x\c'` in
  21297. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21298. *) ECHO_C='\c';;
  21299. esac;;
  21300. *)
  21301. ECHO_N='-n';;
  21302. esac
  21303. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21304. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21305. as_expr=expr
  21306. else
  21307. as_expr=false
  21308. fi
  21309. rm -f conf$$ conf$$.exe conf$$.file
  21310. if test -d conf$$.dir; then
  21311. rm -f conf$$.dir/conf$$.file
  21312. else
  21313. rm -f conf$$.dir
  21314. mkdir conf$$.dir 2>/dev/null
  21315. fi
  21316. if (echo >conf$$.file) 2>/dev/null; then
  21317. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21318. as_ln_s='ln -s'
  21319. # ... but there are two gotchas:
  21320. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21321. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21322. # In both cases, we have to default to `cp -p'.
  21323. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21324. as_ln_s='cp -p'
  21325. elif ln conf$$.file conf$$ 2>/dev/null; then
  21326. as_ln_s=ln
  21327. else
  21328. as_ln_s='cp -p'
  21329. fi
  21330. else
  21331. as_ln_s='cp -p'
  21332. fi
  21333. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21334. rmdir conf$$.dir 2>/dev/null
  21335. if mkdir -p . 2>/dev/null; then
  21336. as_mkdir_p=:
  21337. else
  21338. test -d ./-p && rmdir ./-p
  21339. as_mkdir_p=false
  21340. fi
  21341. if test -x / >/dev/null 2>&1; then
  21342. as_test_x='test -x'
  21343. else
  21344. if ls -dL / >/dev/null 2>&1; then
  21345. as_ls_L_option=L
  21346. else
  21347. as_ls_L_option=
  21348. fi
  21349. as_test_x='
  21350. eval sh -c '\''
  21351. if test -d "$1"; then
  21352. test -d "$1/.";
  21353. else
  21354. case $1 in
  21355. -*)set "./$1";;
  21356. esac;
  21357. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21358. ???[sx]*):;;*)false;;esac;fi
  21359. '\'' sh
  21360. '
  21361. fi
  21362. as_executable_p=$as_test_x
  21363. # Sed expression to map a string onto a valid CPP name.
  21364. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21365. # Sed expression to map a string onto a valid variable name.
  21366. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21367. exec 6>&1
  21368. # Save the log message, to keep $[0] and so on meaningful, and to
  21369. # report actual input values of CONFIG_FILES etc. instead of their
  21370. # values after options handling.
  21371. ac_log="
  21372. This file was extended by aria2 $as_me 1.5.0, which was
  21373. generated by GNU Autoconf 2.63. Invocation command line was
  21374. CONFIG_FILES = $CONFIG_FILES
  21375. CONFIG_HEADERS = $CONFIG_HEADERS
  21376. CONFIG_LINKS = $CONFIG_LINKS
  21377. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21378. $ $0 $@
  21379. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21380. "
  21381. _ACEOF
  21382. case $ac_config_files in *"
  21383. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21384. esac
  21385. case $ac_config_headers in *"
  21386. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21387. esac
  21388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21389. # Files that config.status was made for.
  21390. config_files="$ac_config_files"
  21391. config_headers="$ac_config_headers"
  21392. config_commands="$ac_config_commands"
  21393. _ACEOF
  21394. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21395. ac_cs_usage="\
  21396. \`$as_me' instantiates files from templates according to the
  21397. current configuration.
  21398. Usage: $0 [OPTION]... [FILE]...
  21399. -h, --help print this help, then exit
  21400. -V, --version print version number and configuration settings, then exit
  21401. -q, --quiet, --silent
  21402. do not print progress messages
  21403. -d, --debug don't remove temporary files
  21404. --recheck update $as_me by reconfiguring in the same conditions
  21405. --file=FILE[:TEMPLATE]
  21406. instantiate the configuration file FILE
  21407. --header=FILE[:TEMPLATE]
  21408. instantiate the configuration header FILE
  21409. Configuration files:
  21410. $config_files
  21411. Configuration headers:
  21412. $config_headers
  21413. Configuration commands:
  21414. $config_commands
  21415. Report bugs to <bug-autoconf@gnu.org>."
  21416. _ACEOF
  21417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21418. ac_cs_version="\\
  21419. aria2 config.status 1.5.0
  21420. configured by $0, generated by GNU Autoconf 2.63,
  21421. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21422. Copyright (C) 2008 Free Software Foundation, Inc.
  21423. This config.status script is free software; the Free Software Foundation
  21424. gives unlimited permission to copy, distribute and modify it."
  21425. ac_pwd='$ac_pwd'
  21426. srcdir='$srcdir'
  21427. INSTALL='$INSTALL'
  21428. MKDIR_P='$MKDIR_P'
  21429. AWK='$AWK'
  21430. test -n "\$AWK" || AWK=awk
  21431. _ACEOF
  21432. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21433. # The default lists apply if the user does not specify any file.
  21434. ac_need_defaults=:
  21435. while test $# != 0
  21436. do
  21437. case $1 in
  21438. --*=*)
  21439. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21440. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21441. ac_shift=:
  21442. ;;
  21443. *)
  21444. ac_option=$1
  21445. ac_optarg=$2
  21446. ac_shift=shift
  21447. ;;
  21448. esac
  21449. case $ac_option in
  21450. # Handling of the options.
  21451. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21452. ac_cs_recheck=: ;;
  21453. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21454. $as_echo "$ac_cs_version"; exit ;;
  21455. --debug | --debu | --deb | --de | --d | -d )
  21456. debug=: ;;
  21457. --file | --fil | --fi | --f )
  21458. $ac_shift
  21459. case $ac_optarg in
  21460. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21461. esac
  21462. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21463. ac_need_defaults=false;;
  21464. --header | --heade | --head | --hea )
  21465. $ac_shift
  21466. case $ac_optarg in
  21467. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21468. esac
  21469. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21470. ac_need_defaults=false;;
  21471. --he | --h)
  21472. # Conflict between --help and --header
  21473. { $as_echo "$as_me: error: ambiguous option: $1
  21474. Try \`$0 --help' for more information." >&2
  21475. { (exit 1); exit 1; }; };;
  21476. --help | --hel | -h )
  21477. $as_echo "$ac_cs_usage"; exit ;;
  21478. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21479. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21480. ac_cs_silent=: ;;
  21481. # This is an error.
  21482. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21483. Try \`$0 --help' for more information." >&2
  21484. { (exit 1); exit 1; }; } ;;
  21485. *) ac_config_targets="$ac_config_targets $1"
  21486. ac_need_defaults=false ;;
  21487. esac
  21488. shift
  21489. done
  21490. ac_configure_extra_args=
  21491. if $ac_cs_silent; then
  21492. exec 6>/dev/null
  21493. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21494. fi
  21495. _ACEOF
  21496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21497. if \$ac_cs_recheck; then
  21498. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21499. shift
  21500. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21501. CONFIG_SHELL='$SHELL'
  21502. export CONFIG_SHELL
  21503. exec "\$@"
  21504. fi
  21505. _ACEOF
  21506. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21507. exec 5>>config.log
  21508. {
  21509. echo
  21510. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21511. ## Running $as_me. ##
  21512. _ASBOX
  21513. $as_echo "$ac_log"
  21514. } >&5
  21515. _ACEOF
  21516. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21517. #
  21518. # INIT-COMMANDS
  21519. #
  21520. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21521. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21522. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21523. # from automake < 1.5.
  21524. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21525. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21526. LINGUAS="${LINGUAS-%UNSET%}"
  21527. _ACEOF
  21528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21529. # Handling of arguments.
  21530. for ac_config_target in $ac_config_targets
  21531. do
  21532. case $ac_config_target in
  21533. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21534. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21535. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21536. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21537. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21538. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21539. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21540. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21541. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21542. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21543. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21544. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21545. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21546. { (exit 1); exit 1; }; };;
  21547. esac
  21548. done
  21549. # If the user did not use the arguments to specify the items to instantiate,
  21550. # then the envvar interface is used. Set only those that are not.
  21551. # We use the long form for the default assignment because of an extremely
  21552. # bizarre bug on SunOS 4.1.3.
  21553. if $ac_need_defaults; then
  21554. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21555. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21556. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21557. fi
  21558. # Have a temporary directory for convenience. Make it in the build tree
  21559. # simply because there is no reason against having it here, and in addition,
  21560. # creating and moving files from /tmp can sometimes cause problems.
  21561. # Hook for its removal unless debugging.
  21562. # Note that there is a small window in which the directory will not be cleaned:
  21563. # after its creation but before its name has been assigned to `$tmp'.
  21564. $debug ||
  21565. {
  21566. tmp=
  21567. trap 'exit_status=$?
  21568. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21569. ' 0
  21570. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21571. }
  21572. # Create a (secure) tmp directory for tmp files.
  21573. {
  21574. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21575. test -n "$tmp" && test -d "$tmp"
  21576. } ||
  21577. {
  21578. tmp=./conf$$-$RANDOM
  21579. (umask 077 && mkdir "$tmp")
  21580. } ||
  21581. {
  21582. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21583. { (exit 1); exit 1; }
  21584. }
  21585. # Set up the scripts for CONFIG_FILES section.
  21586. # No need to generate them if there are no CONFIG_FILES.
  21587. # This happens for instance with `./config.status config.h'.
  21588. if test -n "$CONFIG_FILES"; then
  21589. ac_cr=' '
  21590. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21591. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21592. ac_cs_awk_cr='\\r'
  21593. else
  21594. ac_cs_awk_cr=$ac_cr
  21595. fi
  21596. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21597. _ACEOF
  21598. {
  21599. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21600. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21601. echo "_ACEOF"
  21602. } >conf$$subs.sh ||
  21603. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21604. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21605. { (exit 1); exit 1; }; }
  21606. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21607. ac_delim='%!_!# '
  21608. for ac_last_try in false false false false false :; do
  21609. . ./conf$$subs.sh ||
  21610. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21611. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21612. { (exit 1); exit 1; }; }
  21613. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21614. if test $ac_delim_n = $ac_delim_num; then
  21615. break
  21616. elif $ac_last_try; then
  21617. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21618. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21619. { (exit 1); exit 1; }; }
  21620. else
  21621. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21622. fi
  21623. done
  21624. rm -f conf$$subs.sh
  21625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21626. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21627. _ACEOF
  21628. sed -n '
  21629. h
  21630. s/^/S["/; s/!.*/"]=/
  21631. p
  21632. g
  21633. s/^[^!]*!//
  21634. :repl
  21635. t repl
  21636. s/'"$ac_delim"'$//
  21637. t delim
  21638. :nl
  21639. h
  21640. s/\(.\{148\}\).*/\1/
  21641. t more1
  21642. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21643. p
  21644. n
  21645. b repl
  21646. :more1
  21647. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21648. p
  21649. g
  21650. s/.\{148\}//
  21651. t nl
  21652. :delim
  21653. h
  21654. s/\(.\{148\}\).*/\1/
  21655. t more2
  21656. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21657. p
  21658. b
  21659. :more2
  21660. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21661. p
  21662. g
  21663. s/.\{148\}//
  21664. t delim
  21665. ' <conf$$subs.awk | sed '
  21666. /^[^""]/{
  21667. N
  21668. s/\n//
  21669. }
  21670. ' >>$CONFIG_STATUS || ac_write_fail=1
  21671. rm -f conf$$subs.awk
  21672. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21673. _ACAWK
  21674. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21675. for (key in S) S_is_set[key] = 1
  21676. FS = ""
  21677. }
  21678. {
  21679. line = $ 0
  21680. nfields = split(line, field, "@")
  21681. substed = 0
  21682. len = length(field[1])
  21683. for (i = 2; i < nfields; i++) {
  21684. key = field[i]
  21685. keylen = length(key)
  21686. if (S_is_set[key]) {
  21687. value = S[key]
  21688. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21689. len += length(value) + length(field[++i])
  21690. substed = 1
  21691. } else
  21692. len += 1 + keylen
  21693. }
  21694. print line
  21695. }
  21696. _ACAWK
  21697. _ACEOF
  21698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21699. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21700. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21701. else
  21702. cat
  21703. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21704. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21705. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21706. { (exit 1); exit 1; }; }
  21707. _ACEOF
  21708. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21709. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21710. # trailing colons and then remove the whole line if VPATH becomes empty
  21711. # (actually we leave an empty line to preserve line numbers).
  21712. if test "x$srcdir" = x.; then
  21713. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21714. s/:*\$(srcdir):*/:/
  21715. s/:*\${srcdir}:*/:/
  21716. s/:*@srcdir@:*/:/
  21717. s/^\([^=]*=[ ]*\):*/\1/
  21718. s/:*$//
  21719. s/^[^=]*=[ ]*$//
  21720. }'
  21721. fi
  21722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21723. fi # test -n "$CONFIG_FILES"
  21724. # Set up the scripts for CONFIG_HEADERS section.
  21725. # No need to generate them if there are no CONFIG_HEADERS.
  21726. # This happens for instance with `./config.status Makefile'.
  21727. if test -n "$CONFIG_HEADERS"; then
  21728. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21729. BEGIN {
  21730. _ACEOF
  21731. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21732. # here-document in config.status, that substitutes the proper values into
  21733. # config.h.in to produce config.h.
  21734. # Create a delimiter string that does not exist in confdefs.h, to ease
  21735. # handling of long lines.
  21736. ac_delim='%!_!# '
  21737. for ac_last_try in false false :; do
  21738. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21739. if test -z "$ac_t"; then
  21740. break
  21741. elif $ac_last_try; then
  21742. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21743. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21744. { (exit 1); exit 1; }; }
  21745. else
  21746. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21747. fi
  21748. done
  21749. # For the awk script, D is an array of macro values keyed by name,
  21750. # likewise P contains macro parameters if any. Preserve backslash
  21751. # newline sequences.
  21752. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21753. sed -n '
  21754. s/.\{148\}/&'"$ac_delim"'/g
  21755. t rset
  21756. :rset
  21757. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21758. t def
  21759. d
  21760. :def
  21761. s/\\$//
  21762. t bsnl
  21763. s/["\\]/\\&/g
  21764. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21765. D["\1"]=" \3"/p
  21766. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21767. d
  21768. :bsnl
  21769. s/["\\]/\\&/g
  21770. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21771. D["\1"]=" \3\\\\\\n"\\/p
  21772. t cont
  21773. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21774. t cont
  21775. d
  21776. :cont
  21777. n
  21778. s/.\{148\}/&'"$ac_delim"'/g
  21779. t clear
  21780. :clear
  21781. s/\\$//
  21782. t bsnlc
  21783. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21784. d
  21785. :bsnlc
  21786. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21787. b cont
  21788. ' <confdefs.h | sed '
  21789. s/'"$ac_delim"'/"\\\
  21790. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21792. for (key in D) D_is_set[key] = 1
  21793. FS = ""
  21794. }
  21795. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21796. line = \$ 0
  21797. split(line, arg, " ")
  21798. if (arg[1] == "#") {
  21799. defundef = arg[2]
  21800. mac1 = arg[3]
  21801. } else {
  21802. defundef = substr(arg[1], 2)
  21803. mac1 = arg[2]
  21804. }
  21805. split(mac1, mac2, "(") #)
  21806. macro = mac2[1]
  21807. prefix = substr(line, 1, index(line, defundef) - 1)
  21808. if (D_is_set[macro]) {
  21809. # Preserve the white space surrounding the "#".
  21810. print prefix "define", macro P[macro] D[macro]
  21811. next
  21812. } else {
  21813. # Replace #undef with comments. This is necessary, for example,
  21814. # in the case of _POSIX_SOURCE, which is predefined and required
  21815. # on some systems where configure will not decide to define it.
  21816. if (defundef == "undef") {
  21817. print "/*", prefix defundef, macro, "*/"
  21818. next
  21819. }
  21820. }
  21821. }
  21822. { print }
  21823. _ACAWK
  21824. _ACEOF
  21825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21826. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21827. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21828. { (exit 1); exit 1; }; }
  21829. fi # test -n "$CONFIG_HEADERS"
  21830. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21831. shift
  21832. for ac_tag
  21833. do
  21834. case $ac_tag in
  21835. :[FHLC]) ac_mode=$ac_tag; continue;;
  21836. esac
  21837. case $ac_mode$ac_tag in
  21838. :[FHL]*:*);;
  21839. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21840. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21841. { (exit 1); exit 1; }; };;
  21842. :[FH]-) ac_tag=-:-;;
  21843. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21844. esac
  21845. ac_save_IFS=$IFS
  21846. IFS=:
  21847. set x $ac_tag
  21848. IFS=$ac_save_IFS
  21849. shift
  21850. ac_file=$1
  21851. shift
  21852. case $ac_mode in
  21853. :L) ac_source=$1;;
  21854. :[FH])
  21855. ac_file_inputs=
  21856. for ac_f
  21857. do
  21858. case $ac_f in
  21859. -) ac_f="$tmp/stdin";;
  21860. *) # Look for the file first in the build tree, then in the source tree
  21861. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21862. # because $ac_f cannot contain `:'.
  21863. test -f "$ac_f" ||
  21864. case $ac_f in
  21865. [\\/$]*) false;;
  21866. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21867. esac ||
  21868. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21869. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21870. { (exit 1); exit 1; }; };;
  21871. esac
  21872. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21873. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21874. done
  21875. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21876. # use $as_me), people would be surprised to read:
  21877. # /* config.h. Generated by config.status. */
  21878. configure_input='Generated from '`
  21879. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21880. `' by configure.'
  21881. if test x"$ac_file" != x-; then
  21882. configure_input="$ac_file. $configure_input"
  21883. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21884. $as_echo "$as_me: creating $ac_file" >&6;}
  21885. fi
  21886. # Neutralize special characters interpreted by sed in replacement strings.
  21887. case $configure_input in #(
  21888. *\&* | *\|* | *\\* )
  21889. ac_sed_conf_input=`$as_echo "$configure_input" |
  21890. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21891. *) ac_sed_conf_input=$configure_input;;
  21892. esac
  21893. case $ac_tag in
  21894. *:-:* | *:-) cat >"$tmp/stdin" \
  21895. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21896. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21897. { (exit 1); exit 1; }; } ;;
  21898. esac
  21899. ;;
  21900. esac
  21901. ac_dir=`$as_dirname -- "$ac_file" ||
  21902. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21903. X"$ac_file" : 'X\(//\)[^/]' \| \
  21904. X"$ac_file" : 'X\(//\)$' \| \
  21905. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21906. $as_echo X"$ac_file" |
  21907. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21908. s//\1/
  21909. q
  21910. }
  21911. /^X\(\/\/\)[^/].*/{
  21912. s//\1/
  21913. q
  21914. }
  21915. /^X\(\/\/\)$/{
  21916. s//\1/
  21917. q
  21918. }
  21919. /^X\(\/\).*/{
  21920. s//\1/
  21921. q
  21922. }
  21923. s/.*/./; q'`
  21924. { as_dir="$ac_dir"
  21925. case $as_dir in #(
  21926. -*) as_dir=./$as_dir;;
  21927. esac
  21928. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21929. as_dirs=
  21930. while :; do
  21931. case $as_dir in #(
  21932. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21933. *) as_qdir=$as_dir;;
  21934. esac
  21935. as_dirs="'$as_qdir' $as_dirs"
  21936. as_dir=`$as_dirname -- "$as_dir" ||
  21937. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21938. X"$as_dir" : 'X\(//\)[^/]' \| \
  21939. X"$as_dir" : 'X\(//\)$' \| \
  21940. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21941. $as_echo X"$as_dir" |
  21942. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21943. s//\1/
  21944. q
  21945. }
  21946. /^X\(\/\/\)[^/].*/{
  21947. s//\1/
  21948. q
  21949. }
  21950. /^X\(\/\/\)$/{
  21951. s//\1/
  21952. q
  21953. }
  21954. /^X\(\/\).*/{
  21955. s//\1/
  21956. q
  21957. }
  21958. s/.*/./; q'`
  21959. test -d "$as_dir" && break
  21960. done
  21961. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21962. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21963. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21964. { (exit 1); exit 1; }; }; }
  21965. ac_builddir=.
  21966. case "$ac_dir" in
  21967. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21968. *)
  21969. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21970. # A ".." for each directory in $ac_dir_suffix.
  21971. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21972. case $ac_top_builddir_sub in
  21973. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21974. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21975. esac ;;
  21976. esac
  21977. ac_abs_top_builddir=$ac_pwd
  21978. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21979. # for backward compatibility:
  21980. ac_top_builddir=$ac_top_build_prefix
  21981. case $srcdir in
  21982. .) # We are building in place.
  21983. ac_srcdir=.
  21984. ac_top_srcdir=$ac_top_builddir_sub
  21985. ac_abs_top_srcdir=$ac_pwd ;;
  21986. [\\/]* | ?:[\\/]* ) # Absolute name.
  21987. ac_srcdir=$srcdir$ac_dir_suffix;
  21988. ac_top_srcdir=$srcdir
  21989. ac_abs_top_srcdir=$srcdir ;;
  21990. *) # Relative name.
  21991. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21992. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21993. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21994. esac
  21995. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21996. case $ac_mode in
  21997. :F)
  21998. #
  21999. # CONFIG_FILE
  22000. #
  22001. case $INSTALL in
  22002. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22003. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22004. esac
  22005. ac_MKDIR_P=$MKDIR_P
  22006. case $MKDIR_P in
  22007. [\\/$]* | ?:[\\/]* ) ;;
  22008. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22009. esac
  22010. _ACEOF
  22011. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22012. # If the template does not know about datarootdir, expand it.
  22013. # FIXME: This hack should be removed a few years after 2.60.
  22014. ac_datarootdir_hack=; ac_datarootdir_seen=
  22015. ac_sed_dataroot='
  22016. /datarootdir/ {
  22017. p
  22018. q
  22019. }
  22020. /@datadir@/p
  22021. /@docdir@/p
  22022. /@infodir@/p
  22023. /@localedir@/p
  22024. /@mandir@/p
  22025. '
  22026. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22027. *datarootdir*) ac_datarootdir_seen=yes;;
  22028. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22029. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22030. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22031. _ACEOF
  22032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22033. ac_datarootdir_hack='
  22034. s&@datadir@&$datadir&g
  22035. s&@docdir@&$docdir&g
  22036. s&@infodir@&$infodir&g
  22037. s&@localedir@&$localedir&g
  22038. s&@mandir@&$mandir&g
  22039. s&\\\${datarootdir}&$datarootdir&g' ;;
  22040. esac
  22041. _ACEOF
  22042. # Neutralize VPATH when `$srcdir' = `.'.
  22043. # Shell code in configure.ac might set extrasub.
  22044. # FIXME: do we really want to maintain this feature?
  22045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22046. ac_sed_extra="$ac_vpsub
  22047. $extrasub
  22048. _ACEOF
  22049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22050. :t
  22051. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22052. s|@configure_input@|$ac_sed_conf_input|;t t
  22053. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22054. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22055. s&@srcdir@&$ac_srcdir&;t t
  22056. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22057. s&@top_srcdir@&$ac_top_srcdir&;t t
  22058. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22059. s&@builddir@&$ac_builddir&;t t
  22060. s&@abs_builddir@&$ac_abs_builddir&;t t
  22061. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22062. s&@INSTALL@&$ac_INSTALL&;t t
  22063. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22064. $ac_datarootdir_hack
  22065. "
  22066. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  22067. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22068. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22069. { (exit 1); exit 1; }; }
  22070. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22071. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22072. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22073. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22074. which seems to be undefined. Please make sure it is defined." >&5
  22075. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22076. which seems to be undefined. Please make sure it is defined." >&2;}
  22077. rm -f "$tmp/stdin"
  22078. case $ac_file in
  22079. -) cat "$tmp/out" && rm -f "$tmp/out";;
  22080. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  22081. esac \
  22082. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22083. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22084. { (exit 1); exit 1; }; }
  22085. ;;
  22086. :H)
  22087. #
  22088. # CONFIG_HEADER
  22089. #
  22090. if test x"$ac_file" != x-; then
  22091. {
  22092. $as_echo "/* $configure_input */" \
  22093. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22094. } >"$tmp/config.h" \
  22095. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22096. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22097. { (exit 1); exit 1; }; }
  22098. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  22099. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22100. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22101. else
  22102. rm -f "$ac_file"
  22103. mv "$tmp/config.h" "$ac_file" \
  22104. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22105. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22106. { (exit 1); exit 1; }; }
  22107. fi
  22108. else
  22109. $as_echo "/* $configure_input */" \
  22110. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22111. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  22112. $as_echo "$as_me: error: could not create -" >&2;}
  22113. { (exit 1); exit 1; }; }
  22114. fi
  22115. # Compute "$ac_file"'s index in $config_headers.
  22116. _am_arg="$ac_file"
  22117. _am_stamp_count=1
  22118. for _am_header in $config_headers :; do
  22119. case $_am_header in
  22120. $_am_arg | $_am_arg:* )
  22121. break ;;
  22122. * )
  22123. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22124. esac
  22125. done
  22126. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22127. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22128. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22129. X"$_am_arg" : 'X\(//\)$' \| \
  22130. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22131. $as_echo X"$_am_arg" |
  22132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22133. s//\1/
  22134. q
  22135. }
  22136. /^X\(\/\/\)[^/].*/{
  22137. s//\1/
  22138. q
  22139. }
  22140. /^X\(\/\/\)$/{
  22141. s//\1/
  22142. q
  22143. }
  22144. /^X\(\/\).*/{
  22145. s//\1/
  22146. q
  22147. }
  22148. s/.*/./; q'`/stamp-h$_am_stamp_count
  22149. ;;
  22150. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22151. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22152. ;;
  22153. esac
  22154. case $ac_file$ac_mode in
  22155. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22156. # are listed without --file. Let's play safe and only enable the eval
  22157. # if we detect the quoting.
  22158. case $CONFIG_FILES in
  22159. *\'*) eval set x "$CONFIG_FILES" ;;
  22160. *) set x $CONFIG_FILES ;;
  22161. esac
  22162. shift
  22163. for mf
  22164. do
  22165. # Strip MF so we end up with the name of the file.
  22166. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22167. # Check whether this is an Automake generated Makefile or not.
  22168. # We used to match only the files named `Makefile.in', but
  22169. # some people rename them; so instead we look at the file content.
  22170. # Grep'ing the first line is not enough: some people post-process
  22171. # each Makefile.in and add a new line on top of each file to say so.
  22172. # Grep'ing the whole file is not good either: AIX grep has a line
  22173. # limit of 2048, but all sed's we know have understand at least 4000.
  22174. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22175. dirpart=`$as_dirname -- "$mf" ||
  22176. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22177. X"$mf" : 'X\(//\)[^/]' \| \
  22178. X"$mf" : 'X\(//\)$' \| \
  22179. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22180. $as_echo X"$mf" |
  22181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22182. s//\1/
  22183. q
  22184. }
  22185. /^X\(\/\/\)[^/].*/{
  22186. s//\1/
  22187. q
  22188. }
  22189. /^X\(\/\/\)$/{
  22190. s//\1/
  22191. q
  22192. }
  22193. /^X\(\/\).*/{
  22194. s//\1/
  22195. q
  22196. }
  22197. s/.*/./; q'`
  22198. else
  22199. continue
  22200. fi
  22201. # Extract the definition of DEPDIR, am__include, and am__quote
  22202. # from the Makefile without running `make'.
  22203. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22204. test -z "$DEPDIR" && continue
  22205. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22206. test -z "am__include" && continue
  22207. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22208. # When using ansi2knr, U may be empty or an underscore; expand it
  22209. U=`sed -n 's/^U = //p' < "$mf"`
  22210. # Find all dependency output files, they are included files with
  22211. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22212. # simplest approach to changing $(DEPDIR) to its actual value in the
  22213. # expansion.
  22214. for file in `sed -n "
  22215. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22216. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22217. # Make sure the directory exists.
  22218. test -f "$dirpart/$file" && continue
  22219. fdir=`$as_dirname -- "$file" ||
  22220. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22221. X"$file" : 'X\(//\)[^/]' \| \
  22222. X"$file" : 'X\(//\)$' \| \
  22223. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22224. $as_echo X"$file" |
  22225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22226. s//\1/
  22227. q
  22228. }
  22229. /^X\(\/\/\)[^/].*/{
  22230. s//\1/
  22231. q
  22232. }
  22233. /^X\(\/\/\)$/{
  22234. s//\1/
  22235. q
  22236. }
  22237. /^X\(\/\).*/{
  22238. s//\1/
  22239. q
  22240. }
  22241. s/.*/./; q'`
  22242. { as_dir=$dirpart/$fdir
  22243. case $as_dir in #(
  22244. -*) as_dir=./$as_dir;;
  22245. esac
  22246. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22247. as_dirs=
  22248. while :; do
  22249. case $as_dir in #(
  22250. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22251. *) as_qdir=$as_dir;;
  22252. esac
  22253. as_dirs="'$as_qdir' $as_dirs"
  22254. as_dir=`$as_dirname -- "$as_dir" ||
  22255. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22256. X"$as_dir" : 'X\(//\)[^/]' \| \
  22257. X"$as_dir" : 'X\(//\)$' \| \
  22258. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22259. $as_echo X"$as_dir" |
  22260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22261. s//\1/
  22262. q
  22263. }
  22264. /^X\(\/\/\)[^/].*/{
  22265. s//\1/
  22266. q
  22267. }
  22268. /^X\(\/\/\)$/{
  22269. s//\1/
  22270. q
  22271. }
  22272. /^X\(\/\).*/{
  22273. s//\1/
  22274. q
  22275. }
  22276. s/.*/./; q'`
  22277. test -d "$as_dir" && break
  22278. done
  22279. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22280. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22281. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22282. { (exit 1); exit 1; }; }; }
  22283. # echo "creating $dirpart/$file"
  22284. echo '# dummy' > "$dirpart/$file"
  22285. done
  22286. done
  22287. ;;
  22288. "po-directories":C)
  22289. for ac_file in $CONFIG_FILES; do
  22290. # Support "outfile[:infile[:infile...]]"
  22291. case "$ac_file" in
  22292. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  22293. esac
  22294. # PO directories have a Makefile.in generated from Makefile.in.in.
  22295. case "$ac_file" in */Makefile.in)
  22296. # Adjust a relative srcdir.
  22297. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  22298. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  22299. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22300. # In autoconf-2.13 it is called $ac_given_srcdir.
  22301. # In autoconf-2.50 it is called $srcdir.
  22302. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22303. case "$ac_given_srcdir" in
  22304. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22305. /*) top_srcdir="$ac_given_srcdir" ;;
  22306. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22307. esac
  22308. # Treat a directory as a PO directory if and only if it has a
  22309. # POTFILES.in file. This allows packages to have multiple PO
  22310. # directories under different names or in different locations.
  22311. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22312. rm -f "$ac_dir/POTFILES"
  22313. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22314. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22315. POMAKEFILEDEPS="POTFILES.in"
  22316. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22317. # on $ac_dir but don't depend on user-specified configuration
  22318. # parameters.
  22319. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22320. # The LINGUAS file contains the set of available languages.
  22321. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22322. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22323. fi
  22324. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22325. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22326. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22327. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22328. else
  22329. # The set of available languages was given in configure.in.
  22330. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22331. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22332. fi
  22333. # Compute POFILES
  22334. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22335. # Compute UPDATEPOFILES
  22336. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22337. # Compute DUMMYPOFILES
  22338. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22339. # Compute GMOFILES
  22340. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22341. case "$ac_given_srcdir" in
  22342. .) srcdirpre= ;;
  22343. *) srcdirpre='$(srcdir)/' ;;
  22344. esac
  22345. POFILES=
  22346. UPDATEPOFILES=
  22347. DUMMYPOFILES=
  22348. GMOFILES=
  22349. for lang in $ALL_LINGUAS; do
  22350. POFILES="$POFILES $srcdirpre$lang.po"
  22351. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22352. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22353. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22354. done
  22355. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22356. # environment variable.
  22357. INST_LINGUAS=
  22358. if test -n "$ALL_LINGUAS"; then
  22359. for presentlang in $ALL_LINGUAS; do
  22360. useit=no
  22361. if test "%UNSET%" != "$LINGUAS"; then
  22362. desiredlanguages="$LINGUAS"
  22363. else
  22364. desiredlanguages="$ALL_LINGUAS"
  22365. fi
  22366. for desiredlang in $desiredlanguages; do
  22367. # Use the presentlang catalog if desiredlang is
  22368. # a. equal to presentlang, or
  22369. # b. a variant of presentlang (because in this case,
  22370. # presentlang can be used as a fallback for messages
  22371. # which are not translated in the desiredlang catalog).
  22372. case "$desiredlang" in
  22373. "$presentlang"*) useit=yes;;
  22374. esac
  22375. done
  22376. if test $useit = yes; then
  22377. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22378. fi
  22379. done
  22380. fi
  22381. CATALOGS=
  22382. if test -n "$INST_LINGUAS"; then
  22383. for lang in $INST_LINGUAS; do
  22384. CATALOGS="$CATALOGS $lang.gmo"
  22385. done
  22386. fi
  22387. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22388. 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"
  22389. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22390. if test -f "$f"; then
  22391. case "$f" in
  22392. *.orig | *.bak | *~) ;;
  22393. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22394. esac
  22395. fi
  22396. done
  22397. fi
  22398. ;;
  22399. esac
  22400. done ;;
  22401. esac
  22402. done # for ac_tag
  22403. { (exit 0); exit 0; }
  22404. _ACEOF
  22405. chmod +x $CONFIG_STATUS
  22406. ac_clean_files=$ac_clean_files_save
  22407. test $ac_write_fail = 0 ||
  22408. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22409. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22410. { (exit 1); exit 1; }; }
  22411. # configure is writing to config.log, and then calls config.status.
  22412. # config.status does its own redirection, appending to config.log.
  22413. # Unfortunately, on DOS this fails, as config.log is still kept open
  22414. # by configure, so config.status won't be able to write to it; its
  22415. # output is simply discarded. So we exec the FD to /dev/null,
  22416. # effectively closing config.log, so it can be properly (re)opened and
  22417. # appended to by config.status. When coming back to configure, we
  22418. # need to make the FD available again.
  22419. if test "$no_create" != yes; then
  22420. ac_cs_success=:
  22421. ac_config_status_args=
  22422. test "$silent" = yes &&
  22423. ac_config_status_args="$ac_config_status_args --quiet"
  22424. exec 5>/dev/null
  22425. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22426. exec 5>>config.log
  22427. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22428. # would make configure fail if this is the last instruction.
  22429. $ac_cs_success || { (exit 1); exit 1; }
  22430. fi
  22431. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22432. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22433. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22434. fi
  22435. echo " "
  22436. echo "Build: $build"
  22437. echo "Target: $target"
  22438. echo "Install prefix: $prefix"
  22439. echo "CFLAGS: $CFLAGS"
  22440. echo "CPPFLAGS: $CPPFLAGS"
  22441. echo "LDFLAGS: $LDFLAGS"
  22442. echo "LIBS: $LIBS"
  22443. echo "SQLite3: $have_sqlite3"
  22444. echo "GnuTLS: $have_libgnutls"
  22445. echo "OpenSSL: $have_openssl"
  22446. echo "CA Bundle: $ca_bundle"
  22447. echo "LibXML2: $have_libxml2"
  22448. echo "LibExpat: $have_libexpat"
  22449. echo "LibCares: $have_libcares"
  22450. echo "Libz: $have_libz"
  22451. echo "Epoll: $have_epoll"
  22452. echo "Bittorrent: $enable_bittorrent"
  22453. echo "Metalink: $enable_metalink"
  22454. echo "XML-RPC: $enable_xml_rpc"