configure 483 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for aria2 1.10.6.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  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. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  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
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_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. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.10.6'
  509. PACKAGE_STRING='aria2 1.10.6'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_KQUEUE_FALSE
  555. HAVE_KQUEUE_TRUE
  556. HAVE_PORT_ASSOCIATE_FALSE
  557. HAVE_PORT_ASSOCIATE_TRUE
  558. HAVE_TIMEGETTIME_FALSE
  559. HAVE_TIMEGETTIME_TRUE
  560. HAVE_POLL_FALSE
  561. HAVE_POLL_TRUE
  562. HAVE_MACH_ABSOLUTE_TIME_FALSE
  563. HAVE_MACH_ABSOLUTE_TIME_TRUE
  564. HAVE_DAEMON_FALSE
  565. HAVE_DAEMON_TRUE
  566. HAVE_TIMEGM_FALSE
  567. HAVE_TIMEGM_TRUE
  568. HAVE_STRPTIME_FALSE
  569. HAVE_STRPTIME_TRUE
  570. HAVE_LOCALTIME_R_FALSE
  571. HAVE_LOCALTIME_R_TRUE
  572. HAVE_INET_ATON_FALSE
  573. HAVE_INET_ATON_TRUE
  574. HAVE_GETTIMEOFDAY_FALSE
  575. HAVE_GETTIMEOFDAY_TRUE
  576. HAVE_GETADDRINFO_FALSE
  577. HAVE_GETADDRINFO_TRUE
  578. HAVE_GAI_STRERROR_FALSE
  579. HAVE_GAI_STRERROR_TRUE
  580. HAVE_BASENAME_FALSE
  581. HAVE_BASENAME_TRUE
  582. HAVE_ASCTIME_R_FALSE
  583. HAVE_ASCTIME_R_TRUE
  584. HAVE_SOME_FALLOCATE_FALSE
  585. HAVE_SOME_FALLOCATE_TRUE
  586. HAVE_EPOLL_FALSE
  587. HAVE_EPOLL_TRUE
  588. POW_LIB
  589. LIBOBJS
  590. POSUB
  591. LTLIBINTL
  592. LIBINTL
  593. INTLLIBS
  594. INTL_LIBTOOL_SUFFIX_PREFIX
  595. INTLOBJS
  596. GENCAT
  597. INSTOBJEXT
  598. DATADIRNAME
  599. CATOBJEXT
  600. USE_INCLUDED_LIBINTL
  601. BUILD_INCLUDED_LIBINTL
  602. LTLIBC
  603. WINDRES
  604. WOE32
  605. WOE32DLL
  606. HAVE_WPRINTF
  607. HAVE_SNPRINTF
  608. HAVE_ASPRINTF
  609. HAVE_POSIX_PRINTF
  610. INTL_MACOSX_LIBS
  611. GLIBC21
  612. INTLBISON
  613. LTLIBICONV
  614. LIBICONV
  615. LTLIBMULTITHREAD
  616. LIBMULTITHREAD
  617. LTLIBTHREAD
  618. LIBTHREAD
  619. LIBPTH_PREFIX
  620. LTLIBPTH
  621. LIBPTH
  622. PRI_MACROS_BROKEN
  623. HAVE_VISIBILITY
  624. CFLAG_VISIBILITY
  625. GLIBC2
  626. XGETTEXT_EXTRA_OPTIONS
  627. MSGMERGE
  628. XGETTEXT_015
  629. XGETTEXT
  630. GMSGFMT_015
  631. MSGFMT_015
  632. GMSGFMT
  633. MSGFMT
  634. GETTEXT_MACRO_VERSION
  635. USE_NLS
  636. ALLOCA
  637. HAVE_SQLITE3_FALSE
  638. HAVE_SQLITE3_TRUE
  639. HAVE_LIBZ_FALSE
  640. HAVE_LIBZ_TRUE
  641. ENABLE_ASYNC_DNS_FALSE
  642. ENABLE_ASYNC_DNS_TRUE
  643. HAVE_LIBEXPAT_FALSE
  644. HAVE_LIBEXPAT_TRUE
  645. HAVE_LIBXML2_FALSE
  646. HAVE_LIBXML2_TRUE
  647. ENABLE_XML_RPC_FALSE
  648. ENABLE_XML_RPC_TRUE
  649. ENABLE_METALINK_LIBEXPAT_FALSE
  650. ENABLE_METALINK_LIBEXPAT_TRUE
  651. ENABLE_METALINK_LIBXML2_FALSE
  652. ENABLE_METALINK_LIBXML2_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_METALINK_TRUE
  655. ENABLE_BITTORRENT_FALSE
  656. ENABLE_BITTORRENT_TRUE
  657. ENABLE_MESSAGE_DIGEST_FALSE
  658. ENABLE_MESSAGE_DIGEST_TRUE
  659. HAVE_LIBSSL_FALSE
  660. HAVE_LIBSSL_TRUE
  661. HAVE_LIBGNUTLS_FALSE
  662. HAVE_LIBGNUTLS_TRUE
  663. ca_bundle
  664. ENABLE_SSL_FALSE
  665. ENABLE_SSL_TRUE
  666. LIBZ_CPPFLAGS
  667. LIBZ_LIBS
  668. LIBCARES_CPPFLAGS
  669. LIBCARES_LIBS
  670. OPENSSL_CFLAGS
  671. OPENSSL_LIBS
  672. LIBGCRYPT_LIBS
  673. LIBGCRYPT_CFLAGS
  674. LIBGCRYPT_CONFIG
  675. LIBGNUTLS_CONFIG
  676. LIBGNUTLS_LIBS
  677. LIBGNUTLS_CFLAGS
  678. SQLITE3_LIBS
  679. SQLITE3_CFLAGS
  680. LIBEXPAT_CPPFLAGS
  681. LIBEXPAT_LIBS
  682. XML_LIBS
  683. XML_CPPFLAGS
  684. XML2_CONFIG
  685. PKG_CONFIG_LIBDIR
  686. PKG_CONFIG_PATH
  687. PKG_CONFIG
  688. EGREP
  689. GREP
  690. CXXCPP
  691. YFLAGS
  692. YACC
  693. RANLIB
  694. am__fastdepCC_FALSE
  695. am__fastdepCC_TRUE
  696. CCDEPMODE
  697. ac_ct_CC
  698. CFLAGS
  699. CC
  700. am__fastdepCXX_FALSE
  701. am__fastdepCXX_TRUE
  702. CXXDEPMODE
  703. AMDEPBACKSLASH
  704. AMDEP_FALSE
  705. AMDEP_TRUE
  706. am__quote
  707. am__include
  708. DEPDIR
  709. OBJEXT
  710. EXEEXT
  711. ac_ct_CXX
  712. CPPFLAGS
  713. LDFLAGS
  714. CXXFLAGS
  715. CXX
  716. WINSOCK_LIBS
  717. CPPUNIT_LIBS
  718. CPPUNIT_CFLAGS
  719. CPPUNIT_CONFIG
  720. am__untar
  721. am__tar
  722. AMTAR
  723. am__leading_dot
  724. SET_MAKE
  725. AWK
  726. mkdir_p
  727. MKDIR_P
  728. INSTALL_STRIP_PROGRAM
  729. STRIP
  730. install_sh
  731. MAKEINFO
  732. AUTOHEADER
  733. AUTOMAKE
  734. AUTOCONF
  735. ACLOCAL
  736. VERSION
  737. PACKAGE
  738. CYGPATH_W
  739. am__isrc
  740. INSTALL_DATA
  741. INSTALL_SCRIPT
  742. INSTALL_PROGRAM
  743. target_os
  744. target_vendor
  745. target_cpu
  746. target
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. target_alias
  756. host_alias
  757. build_alias
  758. LIBS
  759. ECHO_T
  760. ECHO_N
  761. ECHO_C
  762. DEFS
  763. mandir
  764. localedir
  765. libdir
  766. psdir
  767. pdfdir
  768. dvidir
  769. htmldir
  770. infodir
  771. docdir
  772. oldincludedir
  773. includedir
  774. localstatedir
  775. sharedstatedir
  776. sysconfdir
  777. datadir
  778. datarootdir
  779. libexecdir
  780. sbindir
  781. bindir
  782. program_transform_name
  783. prefix
  784. exec_prefix
  785. PACKAGE_URL
  786. PACKAGE_BUGREPORT
  787. PACKAGE_STRING
  788. PACKAGE_VERSION
  789. PACKAGE_TARNAME
  790. PACKAGE_NAME
  791. PATH_SEPARATOR
  792. SHELL'
  793. ac_subst_files=''
  794. ac_user_opts='
  795. enable_option_checking
  796. with_cppunit_prefix
  797. with_cppunit_exec_prefix
  798. with_gnutls
  799. with_openssl
  800. with_sqlite3
  801. with_libxml2
  802. with_libexpat
  803. with_libcares
  804. with_libz
  805. enable_bittorrent
  806. enable_metalink
  807. enable_epoll
  808. with_ca_bundle
  809. enable_dependency_tracking
  810. with_xml_prefix
  811. with_xml_exec_prefix
  812. enable_xmltest
  813. with_libexpat_prefix
  814. with_sqlite3_prefix
  815. with_libgnutls_prefix
  816. with_libgcrypt_prefix
  817. with_openssl_prefix
  818. with_libcares_prefix
  819. with_libz_prefix
  820. enable_largefile
  821. enable_nls
  822. enable_threads
  823. with_gnu_ld
  824. enable_rpath
  825. with_libpth_prefix
  826. with_libiconv_prefix
  827. with_included_gettext
  828. with_libintl_prefix
  829. '
  830. ac_precious_vars='build_alias
  831. host_alias
  832. target_alias
  833. CXX
  834. CXXFLAGS
  835. LDFLAGS
  836. LIBS
  837. CPPFLAGS
  838. CCC
  839. CC
  840. CFLAGS
  841. YACC
  842. YFLAGS
  843. CXXCPP
  844. PKG_CONFIG
  845. PKG_CONFIG_PATH
  846. PKG_CONFIG_LIBDIR
  847. SQLITE3_CFLAGS
  848. SQLITE3_LIBS
  849. LIBGNUTLS_CFLAGS
  850. LIBGNUTLS_LIBS'
  851. # Initialize some variables set by options.
  852. ac_init_help=
  853. ac_init_version=false
  854. ac_unrecognized_opts=
  855. ac_unrecognized_sep=
  856. # The variables have the same names as the options, with
  857. # dashes changed to underlines.
  858. cache_file=/dev/null
  859. exec_prefix=NONE
  860. no_create=
  861. no_recursion=
  862. prefix=NONE
  863. program_prefix=NONE
  864. program_suffix=NONE
  865. program_transform_name=s,x,x,
  866. silent=
  867. site=
  868. srcdir=
  869. verbose=
  870. x_includes=NONE
  871. x_libraries=NONE
  872. # Installation directory options.
  873. # These are left unexpanded so users can "make install exec_prefix=/foo"
  874. # and all the variables that are supposed to be based on exec_prefix
  875. # by default will actually change.
  876. # Use braces instead of parens because sh, perl, etc. also accept them.
  877. # (The list follows the same order as the GNU Coding Standards.)
  878. bindir='${exec_prefix}/bin'
  879. sbindir='${exec_prefix}/sbin'
  880. libexecdir='${exec_prefix}/libexec'
  881. datarootdir='${prefix}/share'
  882. datadir='${datarootdir}'
  883. sysconfdir='${prefix}/etc'
  884. sharedstatedir='${prefix}/com'
  885. localstatedir='${prefix}/var'
  886. includedir='${prefix}/include'
  887. oldincludedir='/usr/include'
  888. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  889. infodir='${datarootdir}/info'
  890. htmldir='${docdir}'
  891. dvidir='${docdir}'
  892. pdfdir='${docdir}'
  893. psdir='${docdir}'
  894. libdir='${exec_prefix}/lib'
  895. localedir='${datarootdir}/locale'
  896. mandir='${datarootdir}/man'
  897. ac_prev=
  898. ac_dashdash=
  899. for ac_option
  900. do
  901. # If the previous option needs an argument, assign it.
  902. if test -n "$ac_prev"; then
  903. eval $ac_prev=\$ac_option
  904. ac_prev=
  905. continue
  906. fi
  907. case $ac_option in
  908. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *=) ac_optarg= ;;
  910. *) ac_optarg=yes ;;
  911. esac
  912. # Accept the important Cygnus configure options, so we can diagnose typos.
  913. case $ac_dashdash$ac_option in
  914. --)
  915. ac_dashdash=yes ;;
  916. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  917. ac_prev=bindir ;;
  918. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  919. bindir=$ac_optarg ;;
  920. -build | --build | --buil | --bui | --bu)
  921. ac_prev=build_alias ;;
  922. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  923. build_alias=$ac_optarg ;;
  924. -cache-file | --cache-file | --cache-fil | --cache-fi \
  925. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  926. ac_prev=cache_file ;;
  927. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  928. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  929. cache_file=$ac_optarg ;;
  930. --config-cache | -C)
  931. cache_file=config.cache ;;
  932. -datadir | --datadir | --datadi | --datad)
  933. ac_prev=datadir ;;
  934. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  935. datadir=$ac_optarg ;;
  936. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  937. | --dataroo | --dataro | --datar)
  938. ac_prev=datarootdir ;;
  939. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  940. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  941. datarootdir=$ac_optarg ;;
  942. -disable-* | --disable-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error $? "invalid feature name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=no ;;
  957. -docdir | --docdir | --docdi | --doc | --do)
  958. ac_prev=docdir ;;
  959. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  960. docdir=$ac_optarg ;;
  961. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  962. ac_prev=dvidir ;;
  963. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  964. dvidir=$ac_optarg ;;
  965. -enable-* | --enable-*)
  966. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  967. # Reject names that are not valid shell variable names.
  968. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  969. as_fn_error $? "invalid feature name: $ac_useropt"
  970. ac_useropt_orig=$ac_useropt
  971. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  972. case $ac_user_opts in
  973. *"
  974. "enable_$ac_useropt"
  975. "*) ;;
  976. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  977. ac_unrecognized_sep=', ';;
  978. esac
  979. eval enable_$ac_useropt=\$ac_optarg ;;
  980. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  981. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  982. | --exec | --exe | --ex)
  983. ac_prev=exec_prefix ;;
  984. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  985. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  986. | --exec=* | --exe=* | --ex=*)
  987. exec_prefix=$ac_optarg ;;
  988. -gas | --gas | --ga | --g)
  989. # Obsolete; use --with-gas.
  990. with_gas=yes ;;
  991. -help | --help | --hel | --he | -h)
  992. ac_init_help=long ;;
  993. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  994. ac_init_help=recursive ;;
  995. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  996. ac_init_help=short ;;
  997. -host | --host | --hos | --ho)
  998. ac_prev=host_alias ;;
  999. -host=* | --host=* | --hos=* | --ho=*)
  1000. host_alias=$ac_optarg ;;
  1001. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1002. ac_prev=htmldir ;;
  1003. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1004. | --ht=*)
  1005. htmldir=$ac_optarg ;;
  1006. -includedir | --includedir | --includedi | --included | --include \
  1007. | --includ | --inclu | --incl | --inc)
  1008. ac_prev=includedir ;;
  1009. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1010. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1011. includedir=$ac_optarg ;;
  1012. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1013. ac_prev=infodir ;;
  1014. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1015. infodir=$ac_optarg ;;
  1016. -libdir | --libdir | --libdi | --libd)
  1017. ac_prev=libdir ;;
  1018. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1019. libdir=$ac_optarg ;;
  1020. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1021. | --libexe | --libex | --libe)
  1022. ac_prev=libexecdir ;;
  1023. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1024. | --libexe=* | --libex=* | --libe=*)
  1025. libexecdir=$ac_optarg ;;
  1026. -localedir | --localedir | --localedi | --localed | --locale)
  1027. ac_prev=localedir ;;
  1028. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1029. localedir=$ac_optarg ;;
  1030. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1031. | --localstate | --localstat | --localsta | --localst | --locals)
  1032. ac_prev=localstatedir ;;
  1033. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1034. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1035. localstatedir=$ac_optarg ;;
  1036. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1037. ac_prev=mandir ;;
  1038. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1039. mandir=$ac_optarg ;;
  1040. -nfp | --nfp | --nf)
  1041. # Obsolete; use --without-fp.
  1042. with_fp=no ;;
  1043. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1044. | --no-cr | --no-c | -n)
  1045. no_create=yes ;;
  1046. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1047. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1048. no_recursion=yes ;;
  1049. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1050. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1051. | --oldin | --oldi | --old | --ol | --o)
  1052. ac_prev=oldincludedir ;;
  1053. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1054. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1055. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1056. oldincludedir=$ac_optarg ;;
  1057. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1058. ac_prev=prefix ;;
  1059. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1060. prefix=$ac_optarg ;;
  1061. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1062. | --program-pre | --program-pr | --program-p)
  1063. ac_prev=program_prefix ;;
  1064. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1065. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1066. program_prefix=$ac_optarg ;;
  1067. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1068. | --program-suf | --program-su | --program-s)
  1069. ac_prev=program_suffix ;;
  1070. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1071. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1072. program_suffix=$ac_optarg ;;
  1073. -program-transform-name | --program-transform-name \
  1074. | --program-transform-nam | --program-transform-na \
  1075. | --program-transform-n | --program-transform- \
  1076. | --program-transform | --program-transfor \
  1077. | --program-transfo | --program-transf \
  1078. | --program-trans | --program-tran \
  1079. | --progr-tra | --program-tr | --program-t)
  1080. ac_prev=program_transform_name ;;
  1081. -program-transform-name=* | --program-transform-name=* \
  1082. | --program-transform-nam=* | --program-transform-na=* \
  1083. | --program-transform-n=* | --program-transform-=* \
  1084. | --program-transform=* | --program-transfor=* \
  1085. | --program-transfo=* | --program-transf=* \
  1086. | --program-trans=* | --program-tran=* \
  1087. | --progr-tra=* | --program-tr=* | --program-t=*)
  1088. program_transform_name=$ac_optarg ;;
  1089. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1090. ac_prev=pdfdir ;;
  1091. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1092. pdfdir=$ac_optarg ;;
  1093. -psdir | --psdir | --psdi | --psd | --ps)
  1094. ac_prev=psdir ;;
  1095. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1096. psdir=$ac_optarg ;;
  1097. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1098. | -silent | --silent | --silen | --sile | --sil)
  1099. silent=yes ;;
  1100. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1101. ac_prev=sbindir ;;
  1102. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1103. | --sbi=* | --sb=*)
  1104. sbindir=$ac_optarg ;;
  1105. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1106. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1107. | --sharedst | --shareds | --shared | --share | --shar \
  1108. | --sha | --sh)
  1109. ac_prev=sharedstatedir ;;
  1110. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1111. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1112. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1113. | --sha=* | --sh=*)
  1114. sharedstatedir=$ac_optarg ;;
  1115. -site | --site | --sit)
  1116. ac_prev=site ;;
  1117. -site=* | --site=* | --sit=*)
  1118. site=$ac_optarg ;;
  1119. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1120. ac_prev=srcdir ;;
  1121. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1122. srcdir=$ac_optarg ;;
  1123. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1124. | --syscon | --sysco | --sysc | --sys | --sy)
  1125. ac_prev=sysconfdir ;;
  1126. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1127. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1128. sysconfdir=$ac_optarg ;;
  1129. -target | --target | --targe | --targ | --tar | --ta | --t)
  1130. ac_prev=target_alias ;;
  1131. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1132. target_alias=$ac_optarg ;;
  1133. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1134. verbose=yes ;;
  1135. -version | --version | --versio | --versi | --vers | -V)
  1136. ac_init_version=: ;;
  1137. -with-* | --with-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error $? "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=\$ac_optarg ;;
  1152. -without-* | --without-*)
  1153. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1154. # Reject names that are not valid shell variable names.
  1155. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1156. as_fn_error $? "invalid package name: $ac_useropt"
  1157. ac_useropt_orig=$ac_useropt
  1158. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1159. case $ac_user_opts in
  1160. *"
  1161. "with_$ac_useropt"
  1162. "*) ;;
  1163. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1164. ac_unrecognized_sep=', ';;
  1165. esac
  1166. eval with_$ac_useropt=no ;;
  1167. --x)
  1168. # Obsolete; use --with-x.
  1169. with_x=yes ;;
  1170. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1171. | --x-incl | --x-inc | --x-in | --x-i)
  1172. ac_prev=x_includes ;;
  1173. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1174. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1175. x_includes=$ac_optarg ;;
  1176. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1177. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1178. ac_prev=x_libraries ;;
  1179. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1180. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1181. x_libraries=$ac_optarg ;;
  1182. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1183. Try \`$0 --help' for more information"
  1184. ;;
  1185. *=*)
  1186. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1187. # Reject names that are not valid shell variable names.
  1188. case $ac_envvar in #(
  1189. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1190. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1191. esac
  1192. eval $ac_envvar=\$ac_optarg
  1193. export $ac_envvar ;;
  1194. *)
  1195. # FIXME: should be removed in autoconf 3.0.
  1196. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1197. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1198. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1199. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1200. ;;
  1201. esac
  1202. done
  1203. if test -n "$ac_prev"; then
  1204. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1205. as_fn_error $? "missing argument to $ac_option"
  1206. fi
  1207. if test -n "$ac_unrecognized_opts"; then
  1208. case $enable_option_checking in
  1209. no) ;;
  1210. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1211. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1212. esac
  1213. fi
  1214. # Check all directory arguments for consistency.
  1215. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1216. datadir sysconfdir sharedstatedir localstatedir includedir \
  1217. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1218. libdir localedir mandir
  1219. do
  1220. eval ac_val=\$$ac_var
  1221. # Remove trailing slashes.
  1222. case $ac_val in
  1223. */ )
  1224. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1225. eval $ac_var=\$ac_val;;
  1226. esac
  1227. # Be sure to have absolute directory names.
  1228. case $ac_val in
  1229. [\\/$]* | ?:[\\/]* ) continue;;
  1230. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1231. esac
  1232. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1233. done
  1234. # There might be people who depend on the old broken behavior: `$host'
  1235. # used to hold the argument of --host etc.
  1236. # FIXME: To remove some day.
  1237. build=$build_alias
  1238. host=$host_alias
  1239. target=$target_alias
  1240. # FIXME: To remove some day.
  1241. if test "x$host_alias" != x; then
  1242. if test "x$build_alias" = x; then
  1243. cross_compiling=maybe
  1244. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1245. If a cross compiler is detected then cross compile mode will be used" >&2
  1246. elif test "x$build_alias" != "x$host_alias"; then
  1247. cross_compiling=yes
  1248. fi
  1249. fi
  1250. ac_tool_prefix=
  1251. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1252. test "$silent" = yes && exec 6>/dev/null
  1253. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1254. ac_ls_di=`ls -di .` &&
  1255. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1256. as_fn_error $? "working directory cannot be determined"
  1257. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1258. as_fn_error $? "pwd does not report name of working directory"
  1259. # Find the source files, if location was not specified.
  1260. if test -z "$srcdir"; then
  1261. ac_srcdir_defaulted=yes
  1262. # Try the directory containing this script, then the parent directory.
  1263. ac_confdir=`$as_dirname -- "$as_myself" ||
  1264. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1265. X"$as_myself" : 'X\(//\)[^/]' \| \
  1266. X"$as_myself" : 'X\(//\)$' \| \
  1267. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1268. $as_echo X"$as_myself" |
  1269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\/\)[^/].*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\/\)$/{
  1278. s//\1/
  1279. q
  1280. }
  1281. /^X\(\/\).*/{
  1282. s//\1/
  1283. q
  1284. }
  1285. s/.*/./; q'`
  1286. srcdir=$ac_confdir
  1287. if test ! -r "$srcdir/$ac_unique_file"; then
  1288. srcdir=..
  1289. fi
  1290. else
  1291. ac_srcdir_defaulted=no
  1292. fi
  1293. if test ! -r "$srcdir/$ac_unique_file"; then
  1294. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1295. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1296. fi
  1297. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1298. ac_abs_confdir=`(
  1299. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1300. pwd)`
  1301. # When building in place, set srcdir=.
  1302. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1303. srcdir=.
  1304. fi
  1305. # Remove unnecessary trailing slashes from srcdir.
  1306. # Double slashes in file names in object file debugging info
  1307. # mess up M-x gdb in Emacs.
  1308. case $srcdir in
  1309. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1310. esac
  1311. for ac_var in $ac_precious_vars; do
  1312. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_env_${ac_var}_value=\$${ac_var}
  1314. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1316. done
  1317. #
  1318. # Report the --help message.
  1319. #
  1320. if test "$ac_init_help" = "long"; then
  1321. # Omit some internal or obsolete options to make the list less imposing.
  1322. # This message is too long to be a string in the A/UX 3.1 sh.
  1323. cat <<_ACEOF
  1324. \`configure' configures aria2 1.10.6 to adapt to many kinds of systems.
  1325. Usage: $0 [OPTION]... [VAR=VALUE]...
  1326. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1327. VAR=VALUE. See below for descriptions of some of the useful variables.
  1328. Defaults for the options are specified in brackets.
  1329. Configuration:
  1330. -h, --help display this help and exit
  1331. --help=short display options specific to this package
  1332. --help=recursive display the short help of all the included packages
  1333. -V, --version display version information and exit
  1334. -q, --quiet, --silent do not print \`checking ...' messages
  1335. --cache-file=FILE cache test results in FILE [disabled]
  1336. -C, --config-cache alias for \`--cache-file=config.cache'
  1337. -n, --no-create do not create output files
  1338. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1339. Installation directories:
  1340. --prefix=PREFIX install architecture-independent files in PREFIX
  1341. [$ac_default_prefix]
  1342. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1343. [PREFIX]
  1344. By default, \`make install' will install all the files in
  1345. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1346. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1347. for instance \`--prefix=\$HOME'.
  1348. For better control, use the options below.
  1349. Fine tuning of the installation directories:
  1350. --bindir=DIR user executables [EPREFIX/bin]
  1351. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1352. --libexecdir=DIR program executables [EPREFIX/libexec]
  1353. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1354. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1355. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1356. --libdir=DIR object code libraries [EPREFIX/lib]
  1357. --includedir=DIR C header files [PREFIX/include]
  1358. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1359. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1360. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1361. --infodir=DIR info documentation [DATAROOTDIR/info]
  1362. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1363. --mandir=DIR man documentation [DATAROOTDIR/man]
  1364. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1365. --htmldir=DIR html documentation [DOCDIR]
  1366. --dvidir=DIR dvi documentation [DOCDIR]
  1367. --pdfdir=DIR pdf documentation [DOCDIR]
  1368. --psdir=DIR ps documentation [DOCDIR]
  1369. _ACEOF
  1370. cat <<\_ACEOF
  1371. Program names:
  1372. --program-prefix=PREFIX prepend PREFIX to installed program names
  1373. --program-suffix=SUFFIX append SUFFIX to installed program names
  1374. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1375. System types:
  1376. --build=BUILD configure for building on BUILD [guessed]
  1377. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1378. --target=TARGET configure for building compilers for TARGET [HOST]
  1379. _ACEOF
  1380. fi
  1381. if test -n "$ac_init_help"; then
  1382. case $ac_init_help in
  1383. short | recursive ) echo "Configuration of aria2 1.10.6:";;
  1384. esac
  1385. cat <<\_ACEOF
  1386. Optional Features:
  1387. --disable-option-checking ignore unrecognized --enable/--with options
  1388. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1389. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1390. --enable-bittorrent Enable bittorrent support.
  1391. --enable-metalink Enable metalink support.
  1392. --enable-epoll Enable epoll support.
  1393. --disable-dependency-tracking speeds up one-time build
  1394. --enable-dependency-tracking do not reject slow dependency extractors
  1395. --disable-xmltest Do not try to compile and run a test LIBXML program
  1396. --disable-largefile omit support for large files
  1397. --disable-nls do not use Native Language Support
  1398. --enable-threads={posix|solaris|pth|win32}
  1399. specify multithreading API
  1400. --disable-threads build without multithread safety
  1401. --disable-rpath do not hardcode runtime library paths
  1402. Optional Packages:
  1403. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1404. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1405. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1406. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1407. --with-gnutls Use gnutls if it is installed.
  1408. --with-openssl Use openssl if it is installed.
  1409. --with-sqlite3 Use sqlite3 if it is installed.
  1410. --with-libxml2 Use libxml2 if it is installed.
  1411. --with-libexpat Use libexpat if it is installed.
  1412. --with-libcares Use libcares if it is installed.
  1413. --with-libz Use libz if it is installed.
  1414. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1415. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1416. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1417. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1418. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1419. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1420. --with-libgcrypt-prefix=PFX
  1421. prefix where LIBGCRYPT is installed (optional)
  1422. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1423. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1424. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1425. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1426. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1427. --without-libpth-prefix don't search for libpth in includedir and libdir
  1428. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1429. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1430. --with-included-gettext use the GNU gettext library included here
  1431. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1432. --without-libintl-prefix don't search for libintl in includedir and libdir
  1433. Some influential environment variables:
  1434. CXX C++ compiler command
  1435. CXXFLAGS C++ compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CC C compiler command
  1442. CFLAGS C compiler flags
  1443. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1444. the first program found out of: `bison -y', `byacc', `yacc'.
  1445. YFLAGS The list of arguments that will be passed by default to $YACC.
  1446. This script will default YFLAGS to the empty string to avoid a
  1447. default value of `-d' given by some make applications.
  1448. CXXCPP C++ preprocessor
  1449. PKG_CONFIG path to pkg-config utility
  1450. PKG_CONFIG_PATH
  1451. directories to add to pkg-config's search path
  1452. PKG_CONFIG_LIBDIR
  1453. path overriding pkg-config's built-in search path
  1454. SQLITE3_CFLAGS
  1455. C compiler flags for SQLITE3, overriding pkg-config
  1456. SQLITE3_LIBS
  1457. linker flags for SQLITE3, overriding pkg-config
  1458. LIBGNUTLS_CFLAGS
  1459. C compiler flags for LIBGNUTLS, overriding pkg-config
  1460. LIBGNUTLS_LIBS
  1461. linker flags for LIBGNUTLS, overriding pkg-config
  1462. Use these variables to override the choices made by `configure' or to help
  1463. it to find libraries and programs with nonstandard names/locations.
  1464. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1465. aria2 home page: <http://aria2.sourceforge.net/>.
  1466. _ACEOF
  1467. ac_status=$?
  1468. fi
  1469. if test "$ac_init_help" = "recursive"; then
  1470. # If there are subdirs, report their specific --help.
  1471. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1472. test -d "$ac_dir" ||
  1473. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1474. continue
  1475. ac_builddir=.
  1476. case "$ac_dir" in
  1477. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1478. *)
  1479. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1480. # A ".." for each directory in $ac_dir_suffix.
  1481. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1482. case $ac_top_builddir_sub in
  1483. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1484. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1485. esac ;;
  1486. esac
  1487. ac_abs_top_builddir=$ac_pwd
  1488. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1489. # for backward compatibility:
  1490. ac_top_builddir=$ac_top_build_prefix
  1491. case $srcdir in
  1492. .) # We are building in place.
  1493. ac_srcdir=.
  1494. ac_top_srcdir=$ac_top_builddir_sub
  1495. ac_abs_top_srcdir=$ac_pwd ;;
  1496. [\\/]* | ?:[\\/]* ) # Absolute name.
  1497. ac_srcdir=$srcdir$ac_dir_suffix;
  1498. ac_top_srcdir=$srcdir
  1499. ac_abs_top_srcdir=$srcdir ;;
  1500. *) # Relative name.
  1501. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1502. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1503. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1504. esac
  1505. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1506. cd "$ac_dir" || { ac_status=$?; continue; }
  1507. # Check for guested configure.
  1508. if test -f "$ac_srcdir/configure.gnu"; then
  1509. echo &&
  1510. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1511. elif test -f "$ac_srcdir/configure"; then
  1512. echo &&
  1513. $SHELL "$ac_srcdir/configure" --help=recursive
  1514. else
  1515. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1516. fi || ac_status=$?
  1517. cd "$ac_pwd" || { ac_status=$?; break; }
  1518. done
  1519. fi
  1520. test -n "$ac_init_help" && exit $ac_status
  1521. if $ac_init_version; then
  1522. cat <<\_ACEOF
  1523. aria2 configure 1.10.6
  1524. generated by GNU Autoconf 2.67
  1525. Copyright (C) 2010 Free Software Foundation, Inc.
  1526. This configure script is free software; the Free Software Foundation
  1527. gives unlimited permission to copy, distribute and modify it.
  1528. _ACEOF
  1529. exit
  1530. fi
  1531. ## ------------------------ ##
  1532. ## Autoconf initialization. ##
  1533. ## ------------------------ ##
  1534. # ac_fn_cxx_try_compile LINENO
  1535. # ----------------------------
  1536. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1537. ac_fn_cxx_try_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. rm -f conftest.$ac_objext
  1541. if { { ac_try="$ac_compile"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_compile") 2>conftest.err
  1549. ac_status=$?
  1550. if test -s conftest.err; then
  1551. grep -v '^ *+' conftest.err >conftest.er1
  1552. cat conftest.er1 >&5
  1553. mv -f conftest.er1 conftest.err
  1554. fi
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; } && {
  1557. test -z "$ac_cxx_werror_flag" ||
  1558. test ! -s conftest.err
  1559. } && test -s conftest.$ac_objext; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1567. as_fn_set_status $ac_retval
  1568. } # ac_fn_cxx_try_compile
  1569. # ac_fn_c_try_compile LINENO
  1570. # --------------------------
  1571. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1572. ac_fn_c_try_compile ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. rm -f conftest.$ac_objext
  1576. if { { ac_try="$ac_compile"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_compile") 2>conftest.err
  1584. ac_status=$?
  1585. if test -s conftest.err; then
  1586. grep -v '^ *+' conftest.err >conftest.er1
  1587. cat conftest.er1 >&5
  1588. mv -f conftest.er1 conftest.err
  1589. fi
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } && {
  1592. test -z "$ac_c_werror_flag" ||
  1593. test ! -s conftest.err
  1594. } && test -s conftest.$ac_objext; then :
  1595. ac_retval=0
  1596. else
  1597. $as_echo "$as_me: failed program was:" >&5
  1598. sed 's/^/| /' conftest.$ac_ext >&5
  1599. ac_retval=1
  1600. fi
  1601. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1602. as_fn_set_status $ac_retval
  1603. } # ac_fn_c_try_compile
  1604. # ac_fn_cxx_try_cpp LINENO
  1605. # ------------------------
  1606. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1607. ac_fn_cxx_try_cpp ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1611. case "(($ac_try" in
  1612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1613. *) ac_try_echo=$ac_try;;
  1614. esac
  1615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1616. $as_echo "$ac_try_echo"; } >&5
  1617. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1618. ac_status=$?
  1619. if test -s conftest.err; then
  1620. grep -v '^ *+' conftest.err >conftest.er1
  1621. cat conftest.er1 >&5
  1622. mv -f conftest.er1 conftest.err
  1623. fi
  1624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1625. test $ac_status = 0; } > conftest.i && {
  1626. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1627. test ! -s conftest.err
  1628. }; then :
  1629. ac_retval=0
  1630. else
  1631. $as_echo "$as_me: failed program was:" >&5
  1632. sed 's/^/| /' conftest.$ac_ext >&5
  1633. ac_retval=1
  1634. fi
  1635. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1636. as_fn_set_status $ac_retval
  1637. } # ac_fn_cxx_try_cpp
  1638. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1639. # ---------------------------------------------------------
  1640. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1641. # the include files in INCLUDES and setting the cache variable VAR
  1642. # accordingly.
  1643. ac_fn_cxx_check_header_mongrel ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. if eval "test \"\${$3+set}\"" = set; then :
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1648. $as_echo_n "checking for $2... " >&6; }
  1649. if eval "test \"\${$3+set}\"" = set; then :
  1650. $as_echo_n "(cached) " >&6
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. else
  1656. # Is the header compilable?
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1658. $as_echo_n "checking $2 usability... " >&6; }
  1659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1660. /* end confdefs.h. */
  1661. $4
  1662. #include <$2>
  1663. _ACEOF
  1664. if ac_fn_cxx_try_compile "$LINENO"; then :
  1665. ac_header_compiler=yes
  1666. else
  1667. ac_header_compiler=no
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1671. $as_echo "$ac_header_compiler" >&6; }
  1672. # Is the header present?
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1674. $as_echo_n "checking $2 presence... " >&6; }
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. #include <$2>
  1678. _ACEOF
  1679. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1680. ac_header_preproc=yes
  1681. else
  1682. ac_header_preproc=no
  1683. fi
  1684. rm -f conftest.err conftest.i conftest.$ac_ext
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1686. $as_echo "$ac_header_preproc" >&6; }
  1687. # So? What about this header?
  1688. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1689. yes:no: )
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1691. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1693. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1694. ;;
  1695. no:yes:* )
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1697. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1699. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1701. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1703. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1705. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1706. ( $as_echo "## ----------------------------------------------- ##
  1707. ## Report this to t-tujikawa@users.sourceforge.net ##
  1708. ## ----------------------------------------------- ##"
  1709. ) | sed "s/^/$as_me: WARNING: /" >&2
  1710. ;;
  1711. esac
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1713. $as_echo_n "checking for $2... " >&6; }
  1714. if eval "test \"\${$3+set}\"" = set; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. eval "$3=\$ac_header_compiler"
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. fi
  1723. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1724. } # ac_fn_cxx_check_header_mongrel
  1725. # ac_fn_cxx_try_run LINENO
  1726. # ------------------------
  1727. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1728. # that executables *can* be run.
  1729. ac_fn_cxx_try_run ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. if { { ac_try="$ac_link"
  1733. case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_link") 2>&5
  1740. ac_status=$?
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1743. { { case "(($ac_try" in
  1744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1745. *) ac_try_echo=$ac_try;;
  1746. esac
  1747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1748. $as_echo "$ac_try_echo"; } >&5
  1749. (eval "$ac_try") 2>&5
  1750. ac_status=$?
  1751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1752. test $ac_status = 0; }; }; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: program exited with status $ac_status" >&5
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=$ac_status
  1759. fi
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_cxx_try_run
  1764. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1765. # ---------------------------------------------------------
  1766. # Tests whether HEADER exists and can be compiled using the include files in
  1767. # INCLUDES, setting the cache variable VAR accordingly.
  1768. ac_fn_cxx_check_header_compile ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. $as_echo_n "checking for $2... " >&6; }
  1773. if eval "test \"\${$3+set}\"" = set; then :
  1774. $as_echo_n "(cached) " >&6
  1775. else
  1776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1777. /* end confdefs.h. */
  1778. $4
  1779. #include <$2>
  1780. _ACEOF
  1781. if ac_fn_cxx_try_compile "$LINENO"; then :
  1782. eval "$3=yes"
  1783. else
  1784. eval "$3=no"
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. fi
  1788. eval ac_res=\$$3
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1790. $as_echo "$ac_res" >&6; }
  1791. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1792. } # ac_fn_cxx_check_header_compile
  1793. # ac_fn_cxx_try_link LINENO
  1794. # -------------------------
  1795. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_cxx_try_link ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. rm -f conftest.$ac_objext conftest$ac_exeext
  1800. if { { ac_try="$ac_link"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_link") 2>conftest.err
  1808. ac_status=$?
  1809. if test -s conftest.err; then
  1810. grep -v '^ *+' conftest.err >conftest.er1
  1811. cat conftest.er1 >&5
  1812. mv -f conftest.er1 conftest.err
  1813. fi
  1814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1815. test $ac_status = 0; } && {
  1816. test -z "$ac_cxx_werror_flag" ||
  1817. test ! -s conftest.err
  1818. } && test -s conftest$ac_exeext && {
  1819. test "$cross_compiling" = yes ||
  1820. $as_test_x conftest$ac_exeext
  1821. }; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1829. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1830. # interfere with the next link command; also delete a directory that is
  1831. # left behind by Apple's compiler. We do this before executing the actions.
  1832. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1833. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_cxx_try_link
  1836. # ac_fn_cxx_check_func LINENO FUNC VAR
  1837. # ------------------------------------
  1838. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1839. ac_fn_cxx_check_func ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1843. $as_echo_n "checking for $2... " >&6; }
  1844. if eval "test \"\${$3+set}\"" = set; then :
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1850. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1851. #define $2 innocuous_$2
  1852. /* System header to define __stub macros and hopefully few prototypes,
  1853. which can conflict with char $2 (); below.
  1854. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1855. <limits.h> exists even on freestanding compilers. */
  1856. #ifdef __STDC__
  1857. # include <limits.h>
  1858. #else
  1859. # include <assert.h>
  1860. #endif
  1861. #undef $2
  1862. /* Override any GCC internal prototype to avoid an error.
  1863. Use char because int might match the return type of a GCC
  1864. builtin and then its argument prototype would still apply. */
  1865. #ifdef __cplusplus
  1866. extern "C"
  1867. #endif
  1868. char $2 ();
  1869. /* The GNU C library defines this for functions which it implements
  1870. to always fail with ENOSYS. Some functions are actually named
  1871. something starting with __ and the normal name is an alias. */
  1872. #if defined __stub_$2 || defined __stub___$2
  1873. choke me
  1874. #endif
  1875. int
  1876. main ()
  1877. {
  1878. return $2 ();
  1879. ;
  1880. return 0;
  1881. }
  1882. _ACEOF
  1883. if ac_fn_cxx_try_link "$LINENO"; then :
  1884. eval "$3=yes"
  1885. else
  1886. eval "$3=no"
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext \
  1889. conftest$ac_exeext conftest.$ac_ext
  1890. fi
  1891. eval ac_res=\$$3
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1895. } # ac_fn_cxx_check_func
  1896. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1897. # ---------------------------------------------
  1898. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1899. # variable VAR accordingly.
  1900. ac_fn_cxx_check_type ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1904. $as_echo_n "checking for $2... " >&6; }
  1905. if eval "test \"\${$3+set}\"" = set; then :
  1906. $as_echo_n "(cached) " >&6
  1907. else
  1908. eval "$3=no"
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. int
  1913. main ()
  1914. {
  1915. if (sizeof ($2))
  1916. return 0;
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_cxx_try_compile "$LINENO"; then :
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. int
  1926. main ()
  1927. {
  1928. if (sizeof (($2)))
  1929. return 0;
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. if ac_fn_cxx_try_compile "$LINENO"; then :
  1935. else
  1936. eval "$3=yes"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1941. fi
  1942. eval ac_res=\$$3
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1944. $as_echo "$ac_res" >&6; }
  1945. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1946. } # ac_fn_cxx_check_type
  1947. # ac_fn_c_find_intX_t LINENO BITS VAR
  1948. # -----------------------------------
  1949. # Finds a signed integer type with width BITS, setting cache variable VAR
  1950. # accordingly.
  1951. ac_fn_c_find_intX_t ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1955. $as_echo_n "checking for int$2_t... " >&6; }
  1956. if eval "test \"\${$3+set}\"" = set; then :
  1957. $as_echo_n "(cached) " >&6
  1958. else
  1959. eval "$3=no"
  1960. # Order is important - never check a type that is potentially smaller
  1961. # than half of the expected target width.
  1962. for ac_type in int$2_t 'int' 'long int' \
  1963. 'long long int' 'short int' 'signed char'; do
  1964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1965. /* end confdefs.h. */
  1966. $ac_includes_default
  1967. enum { N = $2 / 2 - 1 };
  1968. int
  1969. main ()
  1970. {
  1971. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1972. test_array [0] = 0
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. if ac_fn_cxx_try_compile "$LINENO"; then :
  1978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1979. /* end confdefs.h. */
  1980. $ac_includes_default
  1981. enum { N = $2 / 2 - 1 };
  1982. int
  1983. main ()
  1984. {
  1985. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1986. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1987. test_array [0] = 0
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_cxx_try_compile "$LINENO"; then :
  1993. else
  1994. case $ac_type in #(
  1995. int$2_t) :
  1996. eval "$3=yes" ;; #(
  1997. *) :
  1998. eval "$3=\$ac_type" ;;
  1999. esac
  2000. fi
  2001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2002. fi
  2003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. if eval test \"x\$"$3"\" = x"no"; then :
  2005. else
  2006. break
  2007. fi
  2008. done
  2009. fi
  2010. eval ac_res=\$$3
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2012. $as_echo "$ac_res" >&6; }
  2013. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2014. } # ac_fn_c_find_intX_t
  2015. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2016. # ------------------------------------
  2017. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2018. # accordingly.
  2019. ac_fn_c_find_uintX_t ()
  2020. {
  2021. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2023. $as_echo_n "checking for uint$2_t... " >&6; }
  2024. if eval "test \"\${$3+set}\"" = set; then :
  2025. $as_echo_n "(cached) " >&6
  2026. else
  2027. eval "$3=no"
  2028. # Order is important - never check a type that is potentially smaller
  2029. # than half of the expected target width.
  2030. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2031. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $ac_includes_default
  2035. int
  2036. main ()
  2037. {
  2038. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2039. test_array [0] = 0
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. if ac_fn_cxx_try_compile "$LINENO"; then :
  2045. case $ac_type in #(
  2046. uint$2_t) :
  2047. eval "$3=yes" ;; #(
  2048. *) :
  2049. eval "$3=\$ac_type" ;;
  2050. esac
  2051. fi
  2052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2053. if eval test \"x\$"$3"\" = x"no"; then :
  2054. else
  2055. break
  2056. fi
  2057. done
  2058. fi
  2059. eval ac_res=\$$3
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2061. $as_echo "$ac_res" >&6; }
  2062. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2063. } # ac_fn_c_find_uintX_t
  2064. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2065. # ----------------------------------------------
  2066. # Tries to find the compile-time value of EXPR in a program that includes
  2067. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2068. # computed
  2069. ac_fn_cxx_compute_int ()
  2070. {
  2071. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2072. if test "$cross_compiling" = yes; then
  2073. # Depending upon the size, compute the lo and hi bounds.
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main ()
  2079. {
  2080. static int test_array [1 - 2 * !(($2) >= 0)];
  2081. test_array [0] = 0
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_cxx_try_compile "$LINENO"; then :
  2087. ac_lo=0 ac_mid=0
  2088. while :; do
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. $4
  2092. int
  2093. main ()
  2094. {
  2095. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2096. test_array [0] = 0
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_cxx_try_compile "$LINENO"; then :
  2102. ac_hi=$ac_mid; break
  2103. else
  2104. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2105. if test $ac_lo -le $ac_mid; then
  2106. ac_lo= ac_hi=
  2107. break
  2108. fi
  2109. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2110. fi
  2111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. done
  2113. else
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) < 0)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_cxx_try_compile "$LINENO"; then :
  2127. ac_hi=-1 ac_mid=-1
  2128. while :; do
  2129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2130. /* end confdefs.h. */
  2131. $4
  2132. int
  2133. main ()
  2134. {
  2135. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2136. test_array [0] = 0
  2137. ;
  2138. return 0;
  2139. }
  2140. _ACEOF
  2141. if ac_fn_cxx_try_compile "$LINENO"; then :
  2142. ac_lo=$ac_mid; break
  2143. else
  2144. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2145. if test $ac_mid -le $ac_hi; then
  2146. ac_lo= ac_hi=
  2147. break
  2148. fi
  2149. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. done
  2153. else
  2154. ac_lo= ac_hi=
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. fi
  2158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2159. # Binary search between lo and hi bounds.
  2160. while test "x$ac_lo" != "x$ac_hi"; do
  2161. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2163. /* end confdefs.h. */
  2164. $4
  2165. int
  2166. main ()
  2167. {
  2168. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2169. test_array [0] = 0
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. if ac_fn_cxx_try_compile "$LINENO"; then :
  2175. ac_hi=$ac_mid
  2176. else
  2177. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. done
  2181. case $ac_lo in #((
  2182. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2183. '') ac_retval=1 ;;
  2184. esac
  2185. else
  2186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2187. /* end confdefs.h. */
  2188. $4
  2189. static long int longval () { return $2; }
  2190. static unsigned long int ulongval () { return $2; }
  2191. #include <stdio.h>
  2192. #include <stdlib.h>
  2193. int
  2194. main ()
  2195. {
  2196. FILE *f = fopen ("conftest.val", "w");
  2197. if (! f)
  2198. return 1;
  2199. if (($2) < 0)
  2200. {
  2201. long int i = longval ();
  2202. if (i != ($2))
  2203. return 1;
  2204. fprintf (f, "%ld", i);
  2205. }
  2206. else
  2207. {
  2208. unsigned long int i = ulongval ();
  2209. if (i != ($2))
  2210. return 1;
  2211. fprintf (f, "%lu", i);
  2212. }
  2213. /* Do not output a trailing newline, as this causes \r\n confusion
  2214. on some platforms. */
  2215. return ferror (f) || fclose (f) != 0;
  2216. ;
  2217. return 0;
  2218. }
  2219. _ACEOF
  2220. if ac_fn_cxx_try_run "$LINENO"; then :
  2221. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2222. else
  2223. ac_retval=1
  2224. fi
  2225. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2226. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2227. rm -f conftest.val
  2228. fi
  2229. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2230. as_fn_set_status $ac_retval
  2231. } # ac_fn_cxx_compute_int
  2232. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2233. # ------------------------------------------------------
  2234. # Tries to find if the field MEMBER exists in type AGGR, after including
  2235. # INCLUDES, setting cache variable VAR accordingly.
  2236. ac_fn_cxx_check_member ()
  2237. {
  2238. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2240. $as_echo_n "checking for $2.$3... " >&6; }
  2241. if eval "test \"\${$4+set}\"" = set; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2245. /* end confdefs.h. */
  2246. $5
  2247. int
  2248. main ()
  2249. {
  2250. static $2 ac_aggr;
  2251. if (ac_aggr.$3)
  2252. return 0;
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. if ac_fn_cxx_try_compile "$LINENO"; then :
  2258. eval "$4=yes"
  2259. else
  2260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2261. /* end confdefs.h. */
  2262. $5
  2263. int
  2264. main ()
  2265. {
  2266. static $2 ac_aggr;
  2267. if (sizeof ac_aggr.$3)
  2268. return 0;
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_cxx_try_compile "$LINENO"; then :
  2274. eval "$4=yes"
  2275. else
  2276. eval "$4=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2279. fi
  2280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. fi
  2282. eval ac_res=\$$4
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2284. $as_echo "$ac_res" >&6; }
  2285. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2286. } # ac_fn_cxx_check_member
  2287. cat >config.log <<_ACEOF
  2288. This file contains any messages produced by compilers while
  2289. running configure, to aid debugging if configure makes a mistake.
  2290. It was created by aria2 $as_me 1.10.6, which was
  2291. generated by GNU Autoconf 2.67. Invocation command line was
  2292. $ $0 $@
  2293. _ACEOF
  2294. exec 5>>config.log
  2295. {
  2296. cat <<_ASUNAME
  2297. ## --------- ##
  2298. ## Platform. ##
  2299. ## --------- ##
  2300. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2301. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2302. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2303. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2304. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2305. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2306. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2307. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2308. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2309. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2310. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2311. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2312. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2313. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2314. _ASUNAME
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. $as_echo "PATH: $as_dir"
  2321. done
  2322. IFS=$as_save_IFS
  2323. } >&5
  2324. cat >&5 <<_ACEOF
  2325. ## ----------- ##
  2326. ## Core tests. ##
  2327. ## ----------- ##
  2328. _ACEOF
  2329. # Keep a trace of the command line.
  2330. # Strip out --no-create and --no-recursion so they do not pile up.
  2331. # Strip out --silent because we don't want to record it for future runs.
  2332. # Also quote any args containing shell meta-characters.
  2333. # Make two passes to allow for proper duplicate-argument suppression.
  2334. ac_configure_args=
  2335. ac_configure_args0=
  2336. ac_configure_args1=
  2337. ac_must_keep_next=false
  2338. for ac_pass in 1 2
  2339. do
  2340. for ac_arg
  2341. do
  2342. case $ac_arg in
  2343. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2344. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2345. | -silent | --silent | --silen | --sile | --sil)
  2346. continue ;;
  2347. *\'*)
  2348. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2349. esac
  2350. case $ac_pass in
  2351. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2352. 2)
  2353. as_fn_append ac_configure_args1 " '$ac_arg'"
  2354. if test $ac_must_keep_next = true; then
  2355. ac_must_keep_next=false # Got value, back to normal.
  2356. else
  2357. case $ac_arg in
  2358. *=* | --config-cache | -C | -disable-* | --disable-* \
  2359. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2360. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2361. | -with-* | --with-* | -without-* | --without-* | --x)
  2362. case "$ac_configure_args0 " in
  2363. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2364. esac
  2365. ;;
  2366. -* ) ac_must_keep_next=true ;;
  2367. esac
  2368. fi
  2369. as_fn_append ac_configure_args " '$ac_arg'"
  2370. ;;
  2371. esac
  2372. done
  2373. done
  2374. { ac_configure_args0=; unset ac_configure_args0;}
  2375. { ac_configure_args1=; unset ac_configure_args1;}
  2376. # When interrupted or exit'd, cleanup temporary files, and complete
  2377. # config.log. We remove comments because anyway the quotes in there
  2378. # would cause problems or look ugly.
  2379. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2380. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2381. trap 'exit_status=$?
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. $as_echo "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. $as_echo "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. $as_echo "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. $as_echo "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. $as_echo "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. $as_echo "$as_me: caught signal $ac_signal"
  2458. $as_echo "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. $as_echo "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_NAME "$PACKAGE_NAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_STRING "$PACKAGE_STRING"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2486. _ACEOF
  2487. cat >>confdefs.h <<_ACEOF
  2488. #define PACKAGE_URL "$PACKAGE_URL"
  2489. _ACEOF
  2490. # Let the site file select an alternate cache file if it wants to.
  2491. # Prefer an explicitly selected file to automatically selected ones.
  2492. ac_site_file1=NONE
  2493. ac_site_file2=NONE
  2494. if test -n "$CONFIG_SITE"; then
  2495. # We do not want a PATH search for config.site.
  2496. case $CONFIG_SITE in #((
  2497. -*) ac_site_file1=./$CONFIG_SITE;;
  2498. */*) ac_site_file1=$CONFIG_SITE;;
  2499. *) ac_site_file1=./$CONFIG_SITE;;
  2500. esac
  2501. elif test "x$prefix" != xNONE; then
  2502. ac_site_file1=$prefix/share/config.site
  2503. ac_site_file2=$prefix/etc/config.site
  2504. else
  2505. ac_site_file1=$ac_default_prefix/share/config.site
  2506. ac_site_file2=$ac_default_prefix/etc/config.site
  2507. fi
  2508. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2509. do
  2510. test "x$ac_site_file" = xNONE && continue
  2511. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2513. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2514. sed 's/^/| /' "$ac_site_file" >&5
  2515. . "$ac_site_file" \
  2516. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2518. as_fn_error $? "failed to load site script $ac_site_file
  2519. See \`config.log' for more details" "$LINENO" 5 ; }
  2520. fi
  2521. done
  2522. if test -r "$cache_file"; then
  2523. # Some versions of bash will fail to source /dev/null (special files
  2524. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2525. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2527. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2528. case $cache_file in
  2529. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2530. *) . "./$cache_file";;
  2531. esac
  2532. fi
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2535. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2536. >$cache_file
  2537. fi
  2538. gt_needs="$gt_needs "
  2539. as_fn_append ac_header_list " stdlib.h"
  2540. as_fn_append ac_header_list " unistd.h"
  2541. as_fn_append ac_header_list " sys/param.h"
  2542. as_fn_append ac_header_list " sys/time.h"
  2543. as_fn_append ac_func_list " alarm"
  2544. # Check that the precious variables saved in the cache have kept the same
  2545. # value.
  2546. ac_cache_corrupted=false
  2547. for ac_var in $ac_precious_vars; do
  2548. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2549. eval ac_new_set=\$ac_env_${ac_var}_set
  2550. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2551. eval ac_new_val=\$ac_env_${ac_var}_value
  2552. case $ac_old_set,$ac_new_set in
  2553. set,)
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2556. ac_cache_corrupted=: ;;
  2557. ,set)
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2559. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2560. ac_cache_corrupted=: ;;
  2561. ,);;
  2562. *)
  2563. if test "x$ac_old_val" != "x$ac_new_val"; then
  2564. # differences in whitespace do not lead to failure.
  2565. ac_old_val_w=`echo x $ac_old_val`
  2566. ac_new_val_w=`echo x $ac_new_val`
  2567. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2569. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2570. ac_cache_corrupted=:
  2571. else
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2573. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2574. eval $ac_var=\$ac_old_val
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2577. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2579. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2580. fi;;
  2581. esac
  2582. # Pass precious variables to config.status.
  2583. if test "$ac_new_set" = set; then
  2584. case $ac_new_val in
  2585. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2586. *) ac_arg=$ac_var=$ac_new_val ;;
  2587. esac
  2588. case " $ac_configure_args " in
  2589. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2590. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2591. esac
  2592. fi
  2593. done
  2594. if $ac_cache_corrupted; then
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2596. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2598. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2599. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2600. fi
  2601. ## -------------------- ##
  2602. ## Main body of script. ##
  2603. ## -------------------- ##
  2604. ac_ext=c
  2605. ac_cpp='$CPP $CPPFLAGS'
  2606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2609. ac_aux_dir=
  2610. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2611. if test -f "$ac_dir/install-sh"; then
  2612. ac_aux_dir=$ac_dir
  2613. ac_install_sh="$ac_aux_dir/install-sh -c"
  2614. break
  2615. elif test -f "$ac_dir/install.sh"; then
  2616. ac_aux_dir=$ac_dir
  2617. ac_install_sh="$ac_aux_dir/install.sh -c"
  2618. break
  2619. elif test -f "$ac_dir/shtool"; then
  2620. ac_aux_dir=$ac_dir
  2621. ac_install_sh="$ac_aux_dir/shtool install -c"
  2622. break
  2623. fi
  2624. done
  2625. if test -z "$ac_aux_dir"; then
  2626. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2627. fi
  2628. # These three variables are undocumented and unsupported,
  2629. # and are intended to be withdrawn in a future Autoconf release.
  2630. # They can cause serious problems if a builder's source tree is in a directory
  2631. # whose full name contains unusual characters.
  2632. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2633. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2634. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2635. # Make sure we can run config.sub.
  2636. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2637. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2639. $as_echo_n "checking build system type... " >&6; }
  2640. if test "${ac_cv_build+set}" = set; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. ac_build_alias=$build_alias
  2644. test "x$ac_build_alias" = x &&
  2645. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2646. test "x$ac_build_alias" = x &&
  2647. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2648. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2649. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2652. $as_echo "$ac_cv_build" >&6; }
  2653. case $ac_cv_build in
  2654. *-*-*) ;;
  2655. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2656. esac
  2657. build=$ac_cv_build
  2658. ac_save_IFS=$IFS; IFS='-'
  2659. set x $ac_cv_build
  2660. shift
  2661. build_cpu=$1
  2662. build_vendor=$2
  2663. shift; shift
  2664. # Remember, the first character of IFS is used to create $*,
  2665. # except with old shells:
  2666. build_os=$*
  2667. IFS=$ac_save_IFS
  2668. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2670. $as_echo_n "checking host system type... " >&6; }
  2671. if test "${ac_cv_host+set}" = set; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if test "x$host_alias" = x; then
  2675. ac_cv_host=$ac_cv_build
  2676. else
  2677. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2678. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2679. fi
  2680. fi
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2682. $as_echo "$ac_cv_host" >&6; }
  2683. case $ac_cv_host in
  2684. *-*-*) ;;
  2685. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2686. esac
  2687. host=$ac_cv_host
  2688. ac_save_IFS=$IFS; IFS='-'
  2689. set x $ac_cv_host
  2690. shift
  2691. host_cpu=$1
  2692. host_vendor=$2
  2693. shift; shift
  2694. # Remember, the first character of IFS is used to create $*,
  2695. # except with old shells:
  2696. host_os=$*
  2697. IFS=$ac_save_IFS
  2698. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2700. $as_echo_n "checking target system type... " >&6; }
  2701. if test "${ac_cv_target+set}" = set; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. if test "x$target_alias" = x; then
  2705. ac_cv_target=$ac_cv_host
  2706. else
  2707. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2708. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2709. fi
  2710. fi
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2712. $as_echo "$ac_cv_target" >&6; }
  2713. case $ac_cv_target in
  2714. *-*-*) ;;
  2715. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
  2716. esac
  2717. target=$ac_cv_target
  2718. ac_save_IFS=$IFS; IFS='-'
  2719. set x $ac_cv_target
  2720. shift
  2721. target_cpu=$1
  2722. target_vendor=$2
  2723. shift; shift
  2724. # Remember, the first character of IFS is used to create $*,
  2725. # except with old shells:
  2726. target_os=$*
  2727. IFS=$ac_save_IFS
  2728. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2729. # The aliases save the names the user supplied, while $host etc.
  2730. # will get canonicalized.
  2731. test -n "$target_alias" &&
  2732. test "$program_prefix$program_suffix$program_transform_name" = \
  2733. NONENONEs,x,x, &&
  2734. program_prefix=${target_alias}-
  2735. am__api_version='1.11'
  2736. # Find a good install program. We prefer a C program (faster),
  2737. # so one script is as good as another. But avoid the broken or
  2738. # incompatible versions:
  2739. # SysV /etc/install, /usr/sbin/install
  2740. # SunOS /usr/etc/install
  2741. # IRIX /sbin/install
  2742. # AIX /bin/install
  2743. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2744. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2745. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2746. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2747. # OS/2's system install, which has a completely different semantic
  2748. # ./install, which can be erroneously created by make from ./install.sh.
  2749. # Reject install programs that cannot install multiple files.
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2751. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2752. if test -z "$INSTALL"; then
  2753. if test "${ac_cv_path_install+set}" = set; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. # Account for people who put trailing slashes in PATH elements.
  2762. case $as_dir/ in #((
  2763. ./ | .// | /[cC]/* | \
  2764. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2765. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2766. /usr/ucb/* ) ;;
  2767. *)
  2768. # OSF1 and SCO ODT 3.0 have their own names for install.
  2769. # Don't use installbsd from OSF since it installs stuff as root
  2770. # by default.
  2771. for ac_prog in ginstall scoinst install; do
  2772. for ac_exec_ext in '' $ac_executable_extensions; do
  2773. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2774. if test $ac_prog = install &&
  2775. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2776. # AIX install. It has an incompatible calling convention.
  2777. :
  2778. elif test $ac_prog = install &&
  2779. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2780. # program-specific install script used by HP pwplus--don't use.
  2781. :
  2782. else
  2783. rm -rf conftest.one conftest.two conftest.dir
  2784. echo one > conftest.one
  2785. echo two > conftest.two
  2786. mkdir conftest.dir
  2787. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2788. test -s conftest.one && test -s conftest.two &&
  2789. test -s conftest.dir/conftest.one &&
  2790. test -s conftest.dir/conftest.two
  2791. then
  2792. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2793. break 3
  2794. fi
  2795. fi
  2796. fi
  2797. done
  2798. done
  2799. ;;
  2800. esac
  2801. done
  2802. IFS=$as_save_IFS
  2803. rm -rf conftest.one conftest.two conftest.dir
  2804. fi
  2805. if test "${ac_cv_path_install+set}" = set; then
  2806. INSTALL=$ac_cv_path_install
  2807. else
  2808. # As a last resort, use the slow shell script. Don't cache a
  2809. # value for INSTALL within a source directory, because that will
  2810. # break other packages using the cache if that directory is
  2811. # removed, or if the value is a relative name.
  2812. INSTALL=$ac_install_sh
  2813. fi
  2814. fi
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2816. $as_echo "$INSTALL" >&6; }
  2817. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2818. # It thinks the first close brace ends the variable substitution.
  2819. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2820. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2821. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2823. $as_echo_n "checking whether build environment is sane... " >&6; }
  2824. # Just in case
  2825. sleep 1
  2826. echo timestamp > conftest.file
  2827. # Reject unsafe characters in $srcdir or the absolute working directory
  2828. # name. Accept space and tab only in the latter.
  2829. am_lf='
  2830. '
  2831. case `pwd` in
  2832. *[\\\"\#\$\&\'\`$am_lf]*)
  2833. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2834. esac
  2835. case $srcdir in
  2836. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2837. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2838. esac
  2839. # Do `set' in a subshell so we don't clobber the current shell's
  2840. # arguments. Must try -L first in case configure is actually a
  2841. # symlink; some systems play weird games with the mod time of symlinks
  2842. # (eg FreeBSD returns the mod time of the symlink's containing
  2843. # directory).
  2844. if (
  2845. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2846. if test "$*" = "X"; then
  2847. # -L didn't work.
  2848. set X `ls -t "$srcdir/configure" conftest.file`
  2849. fi
  2850. rm -f conftest.file
  2851. if test "$*" != "X $srcdir/configure conftest.file" \
  2852. && test "$*" != "X conftest.file $srcdir/configure"; then
  2853. # If neither matched, then we have a broken ls. This can happen
  2854. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2855. # broken ls alias from the environment. This has actually
  2856. # happened. Such a system could not be considered "sane".
  2857. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2858. alias in your environment" "$LINENO" 5
  2859. fi
  2860. test "$2" = conftest.file
  2861. )
  2862. then
  2863. # Ok.
  2864. :
  2865. else
  2866. as_fn_error $? "newly created file is older than distributed files!
  2867. Check your system clock" "$LINENO" 5
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2870. $as_echo "yes" >&6; }
  2871. test "$program_prefix" != NONE &&
  2872. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2873. # Use a double $ so make ignores it.
  2874. test "$program_suffix" != NONE &&
  2875. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2876. # Double any \ or $.
  2877. # By default was `s,x,x', remove it if useless.
  2878. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2879. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2880. # expand $ac_aux_dir to an absolute path
  2881. am_aux_dir=`cd $ac_aux_dir && pwd`
  2882. if test x"${MISSING+set}" != xset; then
  2883. case $am_aux_dir in
  2884. *\ * | *\ *)
  2885. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2886. *)
  2887. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2888. esac
  2889. fi
  2890. # Use eval to expand $SHELL
  2891. if eval "$MISSING --run true"; then
  2892. am_missing_run="$MISSING --run "
  2893. else
  2894. am_missing_run=
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2896. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2897. fi
  2898. if test x"${install_sh}" != xset; then
  2899. case $am_aux_dir in
  2900. *\ * | *\ *)
  2901. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2902. *)
  2903. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2904. esac
  2905. fi
  2906. # Installed binaries are usually stripped using `strip' when the user
  2907. # run `make install-strip'. However `strip' might not be the right
  2908. # tool to use in cross-compilation environments, therefore Automake
  2909. # will honor the `STRIP' environment variable to overrule this program.
  2910. if test "$cross_compiling" != no; then
  2911. if test -n "$ac_tool_prefix"; then
  2912. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2913. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2915. $as_echo_n "checking for $ac_word... " >&6; }
  2916. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2917. $as_echo_n "(cached) " >&6
  2918. else
  2919. if test -n "$STRIP"; then
  2920. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2921. else
  2922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2923. for as_dir in $PATH
  2924. do
  2925. IFS=$as_save_IFS
  2926. test -z "$as_dir" && as_dir=.
  2927. for ac_exec_ext in '' $ac_executable_extensions; do
  2928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2929. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2931. break 2
  2932. fi
  2933. done
  2934. done
  2935. IFS=$as_save_IFS
  2936. fi
  2937. fi
  2938. STRIP=$ac_cv_prog_STRIP
  2939. if test -n "$STRIP"; then
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2941. $as_echo "$STRIP" >&6; }
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. fi
  2946. fi
  2947. if test -z "$ac_cv_prog_STRIP"; then
  2948. ac_ct_STRIP=$STRIP
  2949. # Extract the first word of "strip", so it can be a program name with args.
  2950. set dummy strip; ac_word=$2
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2952. $as_echo_n "checking for $ac_word... " >&6; }
  2953. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. if test -n "$ac_ct_STRIP"; then
  2957. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2958. else
  2959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2960. for as_dir in $PATH
  2961. do
  2962. IFS=$as_save_IFS
  2963. test -z "$as_dir" && as_dir=.
  2964. for ac_exec_ext in '' $ac_executable_extensions; do
  2965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2966. ac_cv_prog_ac_ct_STRIP="strip"
  2967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2968. break 2
  2969. fi
  2970. done
  2971. done
  2972. IFS=$as_save_IFS
  2973. fi
  2974. fi
  2975. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2976. if test -n "$ac_ct_STRIP"; then
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2978. $as_echo "$ac_ct_STRIP" >&6; }
  2979. else
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2981. $as_echo "no" >&6; }
  2982. fi
  2983. if test "x$ac_ct_STRIP" = x; then
  2984. STRIP=":"
  2985. else
  2986. case $cross_compiling:$ac_tool_warned in
  2987. yes:)
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2990. ac_tool_warned=yes ;;
  2991. esac
  2992. STRIP=$ac_ct_STRIP
  2993. fi
  2994. else
  2995. STRIP="$ac_cv_prog_STRIP"
  2996. fi
  2997. fi
  2998. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3000. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3001. if test -z "$MKDIR_P"; then
  3002. if test "${ac_cv_path_mkdir+set}" = set; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3006. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3007. do
  3008. IFS=$as_save_IFS
  3009. test -z "$as_dir" && as_dir=.
  3010. for ac_prog in mkdir gmkdir; do
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3013. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3014. 'mkdir (GNU coreutils) '* | \
  3015. 'mkdir (coreutils) '* | \
  3016. 'mkdir (fileutils) '4.1*)
  3017. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3018. break 3;;
  3019. esac
  3020. done
  3021. done
  3022. done
  3023. IFS=$as_save_IFS
  3024. fi
  3025. test -d ./--version && rmdir ./--version
  3026. if test "${ac_cv_path_mkdir+set}" = set; then
  3027. MKDIR_P="$ac_cv_path_mkdir -p"
  3028. else
  3029. # As a last resort, use the slow shell script. Don't cache a
  3030. # value for MKDIR_P within a source directory, because that will
  3031. # break other packages using the cache if that directory is
  3032. # removed, or if the value is a relative name.
  3033. MKDIR_P="$ac_install_sh -d"
  3034. fi
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3037. $as_echo "$MKDIR_P" >&6; }
  3038. mkdir_p="$MKDIR_P"
  3039. case $mkdir_p in
  3040. [\\/$]* | ?:[\\/]*) ;;
  3041. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3042. esac
  3043. for ac_prog in gawk mawk nawk awk
  3044. do
  3045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3046. set dummy $ac_prog; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if test "${ac_cv_prog_AWK+set}" = set; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$AWK"; then
  3053. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_AWK="$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. AWK=$ac_cv_prog_AWK
  3072. if test -n "$AWK"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3074. $as_echo "$AWK" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. test -n "$AWK" && break
  3080. done
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3082. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3083. set x ${MAKE-make}
  3084. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3085. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. cat >conftest.make <<\_ACEOF
  3089. SHELL = /bin/sh
  3090. all:
  3091. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3092. _ACEOF
  3093. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3094. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3095. *@@@%%%=?*=@@@%%%*)
  3096. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3097. *)
  3098. eval ac_cv_prog_make_${ac_make}_set=no;;
  3099. esac
  3100. rm -f conftest.make
  3101. fi
  3102. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3104. $as_echo "yes" >&6; }
  3105. SET_MAKE=
  3106. else
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3108. $as_echo "no" >&6; }
  3109. SET_MAKE="MAKE=${MAKE-make}"
  3110. fi
  3111. rm -rf .tst 2>/dev/null
  3112. mkdir .tst 2>/dev/null
  3113. if test -d .tst; then
  3114. am__leading_dot=.
  3115. else
  3116. am__leading_dot=_
  3117. fi
  3118. rmdir .tst 2>/dev/null
  3119. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3120. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3121. # is not polluted with repeated "-I."
  3122. am__isrc=' -I$(srcdir)'
  3123. # test to see if srcdir already configured
  3124. if test -f $srcdir/config.status; then
  3125. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3126. fi
  3127. fi
  3128. # test whether we have cygpath
  3129. if test -z "$CYGPATH_W"; then
  3130. if (cygpath --version) >/dev/null 2>/dev/null; then
  3131. CYGPATH_W='cygpath -w'
  3132. else
  3133. CYGPATH_W=echo
  3134. fi
  3135. fi
  3136. # Define the identity of the package.
  3137. PACKAGE='aria2'
  3138. VERSION='1.10.6'
  3139. cat >>confdefs.h <<_ACEOF
  3140. #define PACKAGE "$PACKAGE"
  3141. _ACEOF
  3142. cat >>confdefs.h <<_ACEOF
  3143. #define VERSION "$VERSION"
  3144. _ACEOF
  3145. # Some tools Automake needs.
  3146. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3147. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3148. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3149. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3150. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3151. # We need awk for the "check" target. The system "awk" is bad on
  3152. # some platforms.
  3153. # Always define AMTAR for backward compatibility.
  3154. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3155. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3156. # Check whether --with-cppunit-prefix was given.
  3157. if test "${with_cppunit_prefix+set}" = set; then :
  3158. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3159. else
  3160. cppunit_config_prefix=""
  3161. fi
  3162. # Check whether --with-cppunit-exec-prefix was given.
  3163. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3164. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3165. else
  3166. cppunit_config_exec_prefix=""
  3167. fi
  3168. if test x$cppunit_config_exec_prefix != x ; then
  3169. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3170. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3171. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3172. fi
  3173. fi
  3174. if test x$cppunit_config_prefix != x ; then
  3175. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3176. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3177. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3178. fi
  3179. fi
  3180. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3181. set dummy cppunit-config; ac_word=$2
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3183. $as_echo_n "checking for $ac_word... " >&6; }
  3184. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3185. $as_echo_n "(cached) " >&6
  3186. else
  3187. case $CPPUNIT_CONFIG in
  3188. [\\/]* | ?:[\\/]*)
  3189. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3190. ;;
  3191. *)
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3199. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. IFS=$as_save_IFS
  3206. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3207. ;;
  3208. esac
  3209. fi
  3210. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3211. if test -n "$CPPUNIT_CONFIG"; then
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3213. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3214. else
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3216. $as_echo "no" >&6; }
  3217. fi
  3218. cppunit_version_min=1.10.2
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3220. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3221. no_cppunit=""
  3222. if test "$CPPUNIT_CONFIG" = "no" ; then
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3224. $as_echo "no" >&6; }
  3225. no_cppunit=yes
  3226. else
  3227. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3228. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3229. cppunit_version=`$CPPUNIT_CONFIG --version`
  3230. cppunit_major_version=`echo $cppunit_version | \
  3231. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3232. cppunit_minor_version=`echo $cppunit_version | \
  3233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3234. cppunit_micro_version=`echo $cppunit_version | \
  3235. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3236. cppunit_major_min=`echo $cppunit_version_min | \
  3237. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3238. if test "x${cppunit_major_min}" = "x" ; then
  3239. cppunit_major_min=0
  3240. fi
  3241. cppunit_minor_min=`echo $cppunit_version_min | \
  3242. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3243. if test "x${cppunit_minor_min}" = "x" ; then
  3244. cppunit_minor_min=0
  3245. fi
  3246. cppunit_micro_min=`echo $cppunit_version_min | \
  3247. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3248. if test "x${cppunit_micro_min}" = "x" ; then
  3249. cppunit_micro_min=0
  3250. fi
  3251. cppunit_version_proper=`expr \
  3252. $cppunit_major_version \> $cppunit_major_min \| \
  3253. $cppunit_major_version \= $cppunit_major_min \& \
  3254. $cppunit_minor_version \> $cppunit_minor_min \| \
  3255. $cppunit_major_version \= $cppunit_major_min \& \
  3256. $cppunit_minor_version \= $cppunit_minor_min \& \
  3257. $cppunit_micro_version \>= $cppunit_micro_min `
  3258. if test "$cppunit_version_proper" = "1" ; then
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3260. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3261. else
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3263. $as_echo "no" >&6; }
  3264. no_cppunit=yes
  3265. fi
  3266. fi
  3267. if test "x$no_cppunit" = x ; then
  3268. :
  3269. else
  3270. CPPUNIT_CFLAGS=""
  3271. CPPUNIT_LIBS=""
  3272. :
  3273. fi
  3274. ac_config_headers="$ac_config_headers config.h"
  3275. case "$target" in
  3276. *mingw*|*cygwin*)
  3277. WINSOCK_LIBS="-lws2_32"
  3278. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3279. ;;
  3280. esac
  3281. cat >>confdefs.h <<_ACEOF
  3282. #define TARGET "$target"
  3283. _ACEOF
  3284. # Checks for arguments.
  3285. # Check whether --with-gnutls was given.
  3286. if test "${with_gnutls+set}" = set; then :
  3287. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3288. else
  3289. with_gnutls=yes
  3290. fi
  3291. # Check whether --with-openssl was given.
  3292. if test "${with_openssl+set}" = set; then :
  3293. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3294. else
  3295. with_openssl=yes
  3296. fi
  3297. # Check whether --with-sqlite3 was given.
  3298. if test "${with_sqlite3+set}" = set; then :
  3299. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3300. else
  3301. with_sqlite3=yes
  3302. fi
  3303. # Check whether --with-libxml2 was given.
  3304. if test "${with_libxml2+set}" = set; then :
  3305. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3306. else
  3307. with_libxml2=yes
  3308. fi
  3309. # Check whether --with-libexpat was given.
  3310. if test "${with_libexpat+set}" = set; then :
  3311. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3312. else
  3313. with_libexpat=yes
  3314. fi
  3315. # Check whether --with-libcares was given.
  3316. if test "${with_libcares+set}" = set; then :
  3317. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3318. else
  3319. with_libcares=yes
  3320. fi
  3321. # Check whether --with-libz was given.
  3322. if test "${with_libz+set}" = set; then :
  3323. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3324. else
  3325. with_libz=yes
  3326. fi
  3327. # Check whether --enable-bittorrent was given.
  3328. if test "${enable_bittorrent+set}" = set; then :
  3329. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3330. else
  3331. enable_bittorrent=yes
  3332. fi
  3333. # Check whether --enable-metalink was given.
  3334. if test "${enable_metalink+set}" = set; then :
  3335. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3336. else
  3337. enable_metalink=yes
  3338. fi
  3339. # Check whether --enable-epoll was given.
  3340. if test "${enable_epoll+set}" = set; then :
  3341. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3342. else
  3343. enable_epoll=yes
  3344. fi
  3345. # Check whether --with-ca-bundle was given.
  3346. if test "${with_ca_bundle+set}" = set; then :
  3347. withval=$with_ca_bundle; ca_bundle=$withval
  3348. else
  3349. ca_bundle=""
  3350. fi
  3351. # Checks for programs.
  3352. ac_ext=cpp
  3353. ac_cpp='$CXXCPP $CPPFLAGS'
  3354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3357. if test -z "$CXX"; then
  3358. if test -n "$CCC"; then
  3359. CXX=$CCC
  3360. else
  3361. if test -n "$ac_tool_prefix"; then
  3362. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3363. do
  3364. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3365. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3367. $as_echo_n "checking for $ac_word... " >&6; }
  3368. if test "${ac_cv_prog_CXX+set}" = set; then :
  3369. $as_echo_n "(cached) " >&6
  3370. else
  3371. if test -n "$CXX"; then
  3372. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3373. else
  3374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3375. for as_dir in $PATH
  3376. do
  3377. IFS=$as_save_IFS
  3378. test -z "$as_dir" && as_dir=.
  3379. for ac_exec_ext in '' $ac_executable_extensions; do
  3380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3381. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3383. break 2
  3384. fi
  3385. done
  3386. done
  3387. IFS=$as_save_IFS
  3388. fi
  3389. fi
  3390. CXX=$ac_cv_prog_CXX
  3391. if test -n "$CXX"; then
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3393. $as_echo "$CXX" >&6; }
  3394. else
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3396. $as_echo "no" >&6; }
  3397. fi
  3398. test -n "$CXX" && break
  3399. done
  3400. fi
  3401. if test -z "$CXX"; then
  3402. ac_ct_CXX=$CXX
  3403. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3404. do
  3405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3406. set dummy $ac_prog; ac_word=$2
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3408. $as_echo_n "checking for $ac_word... " >&6; }
  3409. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. if test -n "$ac_ct_CXX"; then
  3413. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_ac_ct_CXX="$ac_prog"
  3423. $as_echo "$as_me:${as_lineno-$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. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3432. if test -n "$ac_ct_CXX"; then
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3434. $as_echo "$ac_ct_CXX" >&6; }
  3435. else
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. fi
  3439. test -n "$ac_ct_CXX" && break
  3440. done
  3441. if test "x$ac_ct_CXX" = x; then
  3442. CXX="g++"
  3443. else
  3444. case $cross_compiling:$ac_tool_warned in
  3445. yes:)
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3448. ac_tool_warned=yes ;;
  3449. esac
  3450. CXX=$ac_ct_CXX
  3451. fi
  3452. fi
  3453. fi
  3454. fi
  3455. # Provide some information about the compiler.
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3457. set X $ac_compile
  3458. ac_compiler=$2
  3459. for ac_option in --version -v -V -qversion; do
  3460. { { ac_try="$ac_compiler $ac_option >&5"
  3461. case "(($ac_try" in
  3462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3463. *) ac_try_echo=$ac_try;;
  3464. esac
  3465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3466. $as_echo "$ac_try_echo"; } >&5
  3467. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3468. ac_status=$?
  3469. if test -s conftest.err; then
  3470. sed '10a\
  3471. ... rest of stderr output deleted ...
  3472. 10q' conftest.err >conftest.er1
  3473. cat conftest.er1 >&5
  3474. fi
  3475. rm -f conftest.er1 conftest.err
  3476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3477. test $ac_status = 0; }
  3478. done
  3479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3480. /* end confdefs.h. */
  3481. int
  3482. main ()
  3483. {
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. ac_clean_files_save=$ac_clean_files
  3489. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3490. # Try to create an executable without -o first, disregard a.out.
  3491. # It will help us diagnose broken compilers, and finding out an intuition
  3492. # of exeext.
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3494. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3495. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3496. # The possible output files:
  3497. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3498. ac_rmfiles=
  3499. for ac_file in $ac_files
  3500. do
  3501. case $ac_file in
  3502. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3503. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3504. esac
  3505. done
  3506. rm -f $ac_rmfiles
  3507. if { { ac_try="$ac_link_default"
  3508. case "(($ac_try" in
  3509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3510. *) ac_try_echo=$ac_try;;
  3511. esac
  3512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3513. $as_echo "$ac_try_echo"; } >&5
  3514. (eval "$ac_link_default") 2>&5
  3515. ac_status=$?
  3516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3517. test $ac_status = 0; }; then :
  3518. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3519. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3520. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3521. # so that the user can short-circuit this test for compilers unknown to
  3522. # Autoconf.
  3523. for ac_file in $ac_files ''
  3524. do
  3525. test -f "$ac_file" || continue
  3526. case $ac_file in
  3527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3528. ;;
  3529. [ab].out )
  3530. # We found the default executable, but exeext='' is most
  3531. # certainly right.
  3532. break;;
  3533. *.* )
  3534. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3535. then :; else
  3536. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3537. fi
  3538. # We set ac_cv_exeext here because the later test for it is not
  3539. # safe: cross compilers may not add the suffix if given an `-o'
  3540. # argument, so we may need to know it at that point already.
  3541. # Even if this section looks crufty: it has the advantage of
  3542. # actually working.
  3543. break;;
  3544. * )
  3545. break;;
  3546. esac
  3547. done
  3548. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3549. else
  3550. ac_file=''
  3551. fi
  3552. if test -z "$ac_file"; then :
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. $as_echo "no" >&6; }
  3555. $as_echo "$as_me: failed program was:" >&5
  3556. sed 's/^/| /' conftest.$ac_ext >&5
  3557. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3558. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3559. as_fn_error 77 "C++ compiler cannot create executables
  3560. See \`config.log' for more details" "$LINENO" 5 ; }
  3561. else
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3563. $as_echo "yes" >&6; }
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3566. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3568. $as_echo "$ac_file" >&6; }
  3569. ac_exeext=$ac_cv_exeext
  3570. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3571. ac_clean_files=$ac_clean_files_save
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3573. $as_echo_n "checking for suffix of executables... " >&6; }
  3574. if { { ac_try="$ac_link"
  3575. case "(($ac_try" in
  3576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3577. *) ac_try_echo=$ac_try;;
  3578. esac
  3579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3580. $as_echo "$ac_try_echo"; } >&5
  3581. (eval "$ac_link") 2>&5
  3582. ac_status=$?
  3583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3584. test $ac_status = 0; }; then :
  3585. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3586. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3587. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3588. # `rm'.
  3589. for ac_file in conftest.exe conftest conftest.*; do
  3590. test -f "$ac_file" || continue
  3591. case $ac_file in
  3592. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3593. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3594. break;;
  3595. * ) break;;
  3596. esac
  3597. done
  3598. else
  3599. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3600. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3601. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3602. See \`config.log' for more details" "$LINENO" 5 ; }
  3603. fi
  3604. rm -f conftest conftest$ac_cv_exeext
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3606. $as_echo "$ac_cv_exeext" >&6; }
  3607. rm -f conftest.$ac_ext
  3608. EXEEXT=$ac_cv_exeext
  3609. ac_exeext=$EXEEXT
  3610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end confdefs.h. */
  3612. #include <stdio.h>
  3613. int
  3614. main ()
  3615. {
  3616. FILE *f = fopen ("conftest.out", "w");
  3617. return ferror (f) || fclose (f) != 0;
  3618. ;
  3619. return 0;
  3620. }
  3621. _ACEOF
  3622. ac_clean_files="$ac_clean_files conftest.out"
  3623. # Check that the compiler produces executables we can run. If not, either
  3624. # the compiler is broken, or we cross compile.
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3626. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3627. if test "$cross_compiling" != yes; then
  3628. { { ac_try="$ac_link"
  3629. case "(($ac_try" in
  3630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3631. *) ac_try_echo=$ac_try;;
  3632. esac
  3633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3634. $as_echo "$ac_try_echo"; } >&5
  3635. (eval "$ac_link") 2>&5
  3636. ac_status=$?
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3638. test $ac_status = 0; }
  3639. if { ac_try='./conftest$ac_cv_exeext'
  3640. { { case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3645. $as_echo "$ac_try_echo"; } >&5
  3646. (eval "$ac_try") 2>&5
  3647. ac_status=$?
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3649. test $ac_status = 0; }; }; then
  3650. cross_compiling=no
  3651. else
  3652. if test "$cross_compiling" = maybe; then
  3653. cross_compiling=yes
  3654. else
  3655. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3657. as_fn_error $? "cannot run C++ compiled programs.
  3658. If you meant to cross compile, use \`--host'.
  3659. See \`config.log' for more details" "$LINENO" 5 ; }
  3660. fi
  3661. fi
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3664. $as_echo "$cross_compiling" >&6; }
  3665. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3666. ac_clean_files=$ac_clean_files_save
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3668. $as_echo_n "checking for suffix of object files... " >&6; }
  3669. if test "${ac_cv_objext+set}" = set; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. rm -f conftest.o conftest.obj
  3682. if { { ac_try="$ac_compile"
  3683. case "(($ac_try" in
  3684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3685. *) ac_try_echo=$ac_try;;
  3686. esac
  3687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3688. $as_echo "$ac_try_echo"; } >&5
  3689. (eval "$ac_compile") 2>&5
  3690. ac_status=$?
  3691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3692. test $ac_status = 0; }; then :
  3693. for ac_file in conftest.o conftest.obj conftest.*; do
  3694. test -f "$ac_file" || continue;
  3695. case $ac_file in
  3696. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3697. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3698. break;;
  3699. esac
  3700. done
  3701. else
  3702. $as_echo "$as_me: failed program was:" >&5
  3703. sed 's/^/| /' conftest.$ac_ext >&5
  3704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3706. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3707. See \`config.log' for more details" "$LINENO" 5 ; }
  3708. fi
  3709. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3712. $as_echo "$ac_cv_objext" >&6; }
  3713. OBJEXT=$ac_cv_objext
  3714. ac_objext=$OBJEXT
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3716. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3717. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. #ifndef __GNUC__
  3726. choke me
  3727. #endif
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. if ac_fn_cxx_try_compile "$LINENO"; then :
  3733. ac_compiler_gnu=yes
  3734. else
  3735. ac_compiler_gnu=no
  3736. fi
  3737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3738. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3739. fi
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3741. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3742. if test $ac_compiler_gnu = yes; then
  3743. GXX=yes
  3744. else
  3745. GXX=
  3746. fi
  3747. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3748. ac_save_CXXFLAGS=$CXXFLAGS
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3750. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3751. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3755. ac_cxx_werror_flag=yes
  3756. ac_cv_prog_cxx_g=no
  3757. CXXFLAGS="-g"
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. int
  3761. main ()
  3762. {
  3763. ;
  3764. return 0;
  3765. }
  3766. _ACEOF
  3767. if ac_fn_cxx_try_compile "$LINENO"; then :
  3768. ac_cv_prog_cxx_g=yes
  3769. else
  3770. CXXFLAGS=""
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773. int
  3774. main ()
  3775. {
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_cxx_try_compile "$LINENO"; then :
  3781. else
  3782. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3783. CXXFLAGS="-g"
  3784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3785. /* end confdefs.h. */
  3786. int
  3787. main ()
  3788. {
  3789. ;
  3790. return 0;
  3791. }
  3792. _ACEOF
  3793. if ac_fn_cxx_try_compile "$LINENO"; then :
  3794. ac_cv_prog_cxx_g=yes
  3795. fi
  3796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3799. fi
  3800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3801. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3804. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3805. if test "$ac_test_CXXFLAGS" = set; then
  3806. CXXFLAGS=$ac_save_CXXFLAGS
  3807. elif test $ac_cv_prog_cxx_g = yes; then
  3808. if test "$GXX" = yes; then
  3809. CXXFLAGS="-g -O2"
  3810. else
  3811. CXXFLAGS="-g"
  3812. fi
  3813. else
  3814. if test "$GXX" = yes; then
  3815. CXXFLAGS="-O2"
  3816. else
  3817. CXXFLAGS=
  3818. fi
  3819. fi
  3820. ac_ext=c
  3821. ac_cpp='$CPP $CPPFLAGS'
  3822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3825. DEPDIR="${am__leading_dot}deps"
  3826. ac_config_commands="$ac_config_commands depfiles"
  3827. am_make=${MAKE-make}
  3828. cat > confinc << 'END'
  3829. am__doit:
  3830. @echo this is the am__doit target
  3831. .PHONY: am__doit
  3832. END
  3833. # If we don't find an include directive, just comment out the code.
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3835. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3836. am__include="#"
  3837. am__quote=
  3838. _am_result=none
  3839. # First try GNU make style include.
  3840. echo "include confinc" > confmf
  3841. # Ignore all kinds of additional output from `make'.
  3842. case `$am_make -s -f confmf 2> /dev/null` in #(
  3843. *the\ am__doit\ target*)
  3844. am__include=include
  3845. am__quote=
  3846. _am_result=GNU
  3847. ;;
  3848. esac
  3849. # Now try BSD make style include.
  3850. if test "$am__include" = "#"; then
  3851. echo '.include "confinc"' > confmf
  3852. case `$am_make -s -f confmf 2> /dev/null` in #(
  3853. *the\ am__doit\ target*)
  3854. am__include=.include
  3855. am__quote="\""
  3856. _am_result=BSD
  3857. ;;
  3858. esac
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3861. $as_echo "$_am_result" >&6; }
  3862. rm -f confinc confmf
  3863. # Check whether --enable-dependency-tracking was given.
  3864. if test "${enable_dependency_tracking+set}" = set; then :
  3865. enableval=$enable_dependency_tracking;
  3866. fi
  3867. if test "x$enable_dependency_tracking" != xno; then
  3868. am_depcomp="$ac_aux_dir/depcomp"
  3869. AMDEPBACKSLASH='\'
  3870. fi
  3871. if test "x$enable_dependency_tracking" != xno; then
  3872. AMDEP_TRUE=
  3873. AMDEP_FALSE='#'
  3874. else
  3875. AMDEP_TRUE='#'
  3876. AMDEP_FALSE=
  3877. fi
  3878. depcc="$CXX" am_compiler_list=
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3880. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3881. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3885. # We make a subdir and do the tests there. Otherwise we can end up
  3886. # making bogus files that we don't know about and never remove. For
  3887. # instance it was reported that on HP-UX the gcc test will end up
  3888. # making a dummy file named `D' -- because `-MD' means `put the output
  3889. # in D'.
  3890. mkdir conftest.dir
  3891. # Copy depcomp to subdir because otherwise we won't find it if we're
  3892. # using a relative directory.
  3893. cp "$am_depcomp" conftest.dir
  3894. cd conftest.dir
  3895. # We will build objects and dependencies in a subdirectory because
  3896. # it helps to detect inapplicable dependency modes. For instance
  3897. # both Tru64's cc and ICC support -MD to output dependencies as a
  3898. # side effect of compilation, but ICC will put the dependencies in
  3899. # the current directory while Tru64 will put them in the object
  3900. # directory.
  3901. mkdir sub
  3902. am_cv_CXX_dependencies_compiler_type=none
  3903. if test "$am_compiler_list" = ""; then
  3904. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3905. fi
  3906. am__universal=false
  3907. case " $depcc " in #(
  3908. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3909. esac
  3910. for depmode in $am_compiler_list; do
  3911. # Setup a source with many dependencies, because some compilers
  3912. # like to wrap large dependency lists on column 80 (with \), and
  3913. # we should not choose a depcomp mode which is confused by this.
  3914. #
  3915. # We need to recreate these files for each test, as the compiler may
  3916. # overwrite some of them when testing with obscure command lines.
  3917. # This happens at least with the AIX C compiler.
  3918. : > sub/conftest.c
  3919. for i in 1 2 3 4 5 6; do
  3920. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3921. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3922. # Solaris 8's {/usr,}/bin/sh.
  3923. touch sub/conftst$i.h
  3924. done
  3925. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3926. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3927. # mode. It turns out that the SunPro C++ compiler does not properly
  3928. # handle `-M -o', and we need to detect this. Also, some Intel
  3929. # versions had trouble with output in subdirs
  3930. am__obj=sub/conftest.${OBJEXT-o}
  3931. am__minus_obj="-o $am__obj"
  3932. case $depmode in
  3933. gcc)
  3934. # This depmode causes a compiler race in universal mode.
  3935. test "$am__universal" = false || continue
  3936. ;;
  3937. nosideeffect)
  3938. # after this tag, mechanisms are not by side-effect, so they'll
  3939. # only be used when explicitly requested
  3940. if test "x$enable_dependency_tracking" = xyes; then
  3941. continue
  3942. else
  3943. break
  3944. fi
  3945. ;;
  3946. msvisualcpp | msvcmsys)
  3947. # This compiler won't grok `-c -o', but also, the minuso test has
  3948. # not run yet. These depmodes are late enough in the game, and
  3949. # so weak that their functioning should not be impacted.
  3950. am__obj=conftest.${OBJEXT-o}
  3951. am__minus_obj=
  3952. ;;
  3953. none) break ;;
  3954. esac
  3955. if depmode=$depmode \
  3956. source=sub/conftest.c object=$am__obj \
  3957. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3958. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3959. >/dev/null 2>conftest.err &&
  3960. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3961. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3962. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3963. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3964. # icc doesn't choke on unknown options, it will just issue warnings
  3965. # or remarks (even with -Werror). So we grep stderr for any message
  3966. # that says an option was ignored or not supported.
  3967. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3968. # icc: Command line warning: ignoring option '-M'; no argument required
  3969. # The diagnosis changed in icc 8.0:
  3970. # icc: Command line remark: option '-MP' not supported
  3971. if (grep 'ignoring option' conftest.err ||
  3972. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3973. am_cv_CXX_dependencies_compiler_type=$depmode
  3974. break
  3975. fi
  3976. fi
  3977. done
  3978. cd ..
  3979. rm -rf conftest.dir
  3980. else
  3981. am_cv_CXX_dependencies_compiler_type=none
  3982. fi
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3985. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3986. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3987. if
  3988. test "x$enable_dependency_tracking" != xno \
  3989. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3990. am__fastdepCXX_TRUE=
  3991. am__fastdepCXX_FALSE='#'
  3992. else
  3993. am__fastdepCXX_TRUE='#'
  3994. am__fastdepCXX_FALSE=
  3995. fi
  3996. ac_ext=c
  3997. ac_cpp='$CPP $CPPFLAGS'
  3998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4001. if test -n "$ac_tool_prefix"; then
  4002. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4003. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4005. $as_echo_n "checking for $ac_word... " >&6; }
  4006. if test "${ac_cv_prog_CC+set}" = set; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -n "$CC"; then
  4010. ac_cv_prog_CC="$CC" # Let the user override the test.
  4011. else
  4012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4013. for as_dir in $PATH
  4014. do
  4015. IFS=$as_save_IFS
  4016. test -z "$as_dir" && as_dir=.
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4019. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4021. break 2
  4022. fi
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. fi
  4027. fi
  4028. CC=$ac_cv_prog_CC
  4029. if test -n "$CC"; then
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4031. $as_echo "$CC" >&6; }
  4032. else
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4034. $as_echo "no" >&6; }
  4035. fi
  4036. fi
  4037. if test -z "$ac_cv_prog_CC"; then
  4038. ac_ct_CC=$CC
  4039. # Extract the first word of "gcc", so it can be a program name with args.
  4040. set dummy gcc; ac_word=$2
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4042. $as_echo_n "checking for $ac_word... " >&6; }
  4043. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$ac_ct_CC"; then
  4047. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4048. else
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4056. ac_cv_prog_ac_ct_CC="gcc"
  4057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4058. break 2
  4059. fi
  4060. done
  4061. done
  4062. IFS=$as_save_IFS
  4063. fi
  4064. fi
  4065. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4066. if test -n "$ac_ct_CC"; then
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4068. $as_echo "$ac_ct_CC" >&6; }
  4069. else
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072. fi
  4073. if test "x$ac_ct_CC" = x; then
  4074. CC=""
  4075. else
  4076. case $cross_compiling:$ac_tool_warned in
  4077. yes:)
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4080. ac_tool_warned=yes ;;
  4081. esac
  4082. CC=$ac_ct_CC
  4083. fi
  4084. else
  4085. CC="$ac_cv_prog_CC"
  4086. fi
  4087. if test -z "$CC"; then
  4088. if test -n "$ac_tool_prefix"; then
  4089. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4090. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4092. $as_echo_n "checking for $ac_word... " >&6; }
  4093. if test "${ac_cv_prog_CC+set}" = set; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. if test -n "$CC"; then
  4097. ac_cv_prog_CC="$CC" # Let the user override the test.
  4098. else
  4099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4100. for as_dir in $PATH
  4101. do
  4102. IFS=$as_save_IFS
  4103. test -z "$as_dir" && as_dir=.
  4104. for ac_exec_ext in '' $ac_executable_extensions; do
  4105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4106. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4108. break 2
  4109. fi
  4110. done
  4111. done
  4112. IFS=$as_save_IFS
  4113. fi
  4114. fi
  4115. CC=$ac_cv_prog_CC
  4116. if test -n "$CC"; then
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4118. $as_echo "$CC" >&6; }
  4119. else
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4121. $as_echo "no" >&6; }
  4122. fi
  4123. fi
  4124. fi
  4125. if test -z "$CC"; then
  4126. # Extract the first word of "cc", so it can be a program name with args.
  4127. set dummy cc; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if test "${ac_cv_prog_CC+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. ac_prog_rejected=no
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4144. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4145. ac_prog_rejected=yes
  4146. continue
  4147. fi
  4148. ac_cv_prog_CC="cc"
  4149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4150. break 2
  4151. fi
  4152. done
  4153. done
  4154. IFS=$as_save_IFS
  4155. if test $ac_prog_rejected = yes; then
  4156. # We found a bogon in the path, so make sure we never use it.
  4157. set dummy $ac_cv_prog_CC
  4158. shift
  4159. if test $# != 0; then
  4160. # We chose a different compiler from the bogus one.
  4161. # However, it has the same basename, so the bogon will be chosen
  4162. # first if we set CC to just the basename; use the full file name.
  4163. shift
  4164. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4165. fi
  4166. fi
  4167. fi
  4168. fi
  4169. CC=$ac_cv_prog_CC
  4170. if test -n "$CC"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4172. $as_echo "$CC" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. fi
  4178. if test -z "$CC"; then
  4179. if test -n "$ac_tool_prefix"; then
  4180. for ac_prog in cl.exe
  4181. do
  4182. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4183. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if test "${ac_cv_prog_CC+set}" = set; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$CC"; then
  4190. ac_cv_prog_CC="$CC" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4199. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. CC=$ac_cv_prog_CC
  4209. if test -n "$CC"; then
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4211. $as_echo "$CC" >&6; }
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. test -n "$CC" && break
  4217. done
  4218. fi
  4219. if test -z "$CC"; then
  4220. ac_ct_CC=$CC
  4221. for ac_prog in cl.exe
  4222. do
  4223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4224. set dummy $ac_prog; ac_word=$2
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4226. $as_echo_n "checking for $ac_word... " >&6; }
  4227. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4228. $as_echo_n "(cached) " >&6
  4229. else
  4230. if test -n "$ac_ct_CC"; then
  4231. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4232. else
  4233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4234. for as_dir in $PATH
  4235. do
  4236. IFS=$as_save_IFS
  4237. test -z "$as_dir" && as_dir=.
  4238. for ac_exec_ext in '' $ac_executable_extensions; do
  4239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4240. ac_cv_prog_ac_ct_CC="$ac_prog"
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4242. break 2
  4243. fi
  4244. done
  4245. done
  4246. IFS=$as_save_IFS
  4247. fi
  4248. fi
  4249. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4250. if test -n "$ac_ct_CC"; then
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4252. $as_echo "$ac_ct_CC" >&6; }
  4253. else
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4255. $as_echo "no" >&6; }
  4256. fi
  4257. test -n "$ac_ct_CC" && break
  4258. done
  4259. if test "x$ac_ct_CC" = x; then
  4260. CC=""
  4261. else
  4262. case $cross_compiling:$ac_tool_warned in
  4263. yes:)
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4266. ac_tool_warned=yes ;;
  4267. esac
  4268. CC=$ac_ct_CC
  4269. fi
  4270. fi
  4271. fi
  4272. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4274. as_fn_error $? "no acceptable C compiler found in \$PATH
  4275. See \`config.log' for more details" "$LINENO" 5 ; }
  4276. # Provide some information about the compiler.
  4277. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4278. set X $ac_compile
  4279. ac_compiler=$2
  4280. for ac_option in --version -v -V -qversion; do
  4281. { { ac_try="$ac_compiler $ac_option >&5"
  4282. case "(($ac_try" in
  4283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4284. *) ac_try_echo=$ac_try;;
  4285. esac
  4286. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4287. $as_echo "$ac_try_echo"; } >&5
  4288. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4289. ac_status=$?
  4290. if test -s conftest.err; then
  4291. sed '10a\
  4292. ... rest of stderr output deleted ...
  4293. 10q' conftest.err >conftest.er1
  4294. cat conftest.er1 >&5
  4295. fi
  4296. rm -f conftest.er1 conftest.err
  4297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4298. test $ac_status = 0; }
  4299. done
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4301. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4302. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4306. /* end confdefs.h. */
  4307. int
  4308. main ()
  4309. {
  4310. #ifndef __GNUC__
  4311. choke me
  4312. #endif
  4313. ;
  4314. return 0;
  4315. }
  4316. _ACEOF
  4317. if ac_fn_c_try_compile "$LINENO"; then :
  4318. ac_compiler_gnu=yes
  4319. else
  4320. ac_compiler_gnu=no
  4321. fi
  4322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4326. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4327. if test $ac_compiler_gnu = yes; then
  4328. GCC=yes
  4329. else
  4330. GCC=
  4331. fi
  4332. ac_test_CFLAGS=${CFLAGS+set}
  4333. ac_save_CFLAGS=$CFLAGS
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4335. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4336. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. ac_save_c_werror_flag=$ac_c_werror_flag
  4340. ac_c_werror_flag=yes
  4341. ac_cv_prog_cc_g=no
  4342. CFLAGS="-g"
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. int
  4346. main ()
  4347. {
  4348. ;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_c_try_compile "$LINENO"; then :
  4353. ac_cv_prog_cc_g=yes
  4354. else
  4355. CFLAGS=""
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int
  4359. main ()
  4360. {
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"; then :
  4366. else
  4367. ac_c_werror_flag=$ac_save_c_werror_flag
  4368. CFLAGS="-g"
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. int
  4372. main ()
  4373. {
  4374. ;
  4375. return 0;
  4376. }
  4377. _ACEOF
  4378. if ac_fn_c_try_compile "$LINENO"; then :
  4379. ac_cv_prog_cc_g=yes
  4380. fi
  4381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4382. fi
  4383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4386. ac_c_werror_flag=$ac_save_c_werror_flag
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4389. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4390. if test "$ac_test_CFLAGS" = set; then
  4391. CFLAGS=$ac_save_CFLAGS
  4392. elif test $ac_cv_prog_cc_g = yes; then
  4393. if test "$GCC" = yes; then
  4394. CFLAGS="-g -O2"
  4395. else
  4396. CFLAGS="-g"
  4397. fi
  4398. else
  4399. if test "$GCC" = yes; then
  4400. CFLAGS="-O2"
  4401. else
  4402. CFLAGS=
  4403. fi
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4406. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4407. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. ac_cv_prog_cc_c89=no
  4411. ac_save_CC=$CC
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. #include <stdarg.h>
  4415. #include <stdio.h>
  4416. #include <sys/types.h>
  4417. #include <sys/stat.h>
  4418. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4419. struct buf { int x; };
  4420. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4421. static char *e (p, i)
  4422. char **p;
  4423. int i;
  4424. {
  4425. return p[i];
  4426. }
  4427. static char *f (char * (*g) (char **, int), char **p, ...)
  4428. {
  4429. char *s;
  4430. va_list v;
  4431. va_start (v,p);
  4432. s = g (p, va_arg (v,int));
  4433. va_end (v);
  4434. return s;
  4435. }
  4436. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4437. function prototypes and stuff, but not '\xHH' hex character constants.
  4438. These don't provoke an error unfortunately, instead are silently treated
  4439. as 'x'. The following induces an error, until -std is added to get
  4440. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4441. array size at least. It's necessary to write '\x00'==0 to get something
  4442. that's true only with -std. */
  4443. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4444. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4445. inside strings and character constants. */
  4446. #define FOO(x) 'x'
  4447. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4448. int test (int i, double x);
  4449. struct s1 {int (*f) (int a);};
  4450. struct s2 {int (*f) (double a);};
  4451. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4452. int argc;
  4453. char **argv;
  4454. int
  4455. main ()
  4456. {
  4457. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4463. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4464. do
  4465. CC="$ac_save_CC $ac_arg"
  4466. if ac_fn_c_try_compile "$LINENO"; then :
  4467. ac_cv_prog_cc_c89=$ac_arg
  4468. fi
  4469. rm -f core conftest.err conftest.$ac_objext
  4470. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4471. done
  4472. rm -f conftest.$ac_ext
  4473. CC=$ac_save_CC
  4474. fi
  4475. # AC_CACHE_VAL
  4476. case "x$ac_cv_prog_cc_c89" in
  4477. x)
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4479. $as_echo "none needed" >&6; } ;;
  4480. xno)
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4482. $as_echo "unsupported" >&6; } ;;
  4483. *)
  4484. CC="$CC $ac_cv_prog_cc_c89"
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4486. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4487. esac
  4488. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4489. fi
  4490. ac_ext=c
  4491. ac_cpp='$CPP $CPPFLAGS'
  4492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4495. depcc="$CC" am_compiler_list=
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4497. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4498. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4502. # We make a subdir and do the tests there. Otherwise we can end up
  4503. # making bogus files that we don't know about and never remove. For
  4504. # instance it was reported that on HP-UX the gcc test will end up
  4505. # making a dummy file named `D' -- because `-MD' means `put the output
  4506. # in D'.
  4507. mkdir conftest.dir
  4508. # Copy depcomp to subdir because otherwise we won't find it if we're
  4509. # using a relative directory.
  4510. cp "$am_depcomp" conftest.dir
  4511. cd conftest.dir
  4512. # We will build objects and dependencies in a subdirectory because
  4513. # it helps to detect inapplicable dependency modes. For instance
  4514. # both Tru64's cc and ICC support -MD to output dependencies as a
  4515. # side effect of compilation, but ICC will put the dependencies in
  4516. # the current directory while Tru64 will put them in the object
  4517. # directory.
  4518. mkdir sub
  4519. am_cv_CC_dependencies_compiler_type=none
  4520. if test "$am_compiler_list" = ""; then
  4521. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4522. fi
  4523. am__universal=false
  4524. case " $depcc " in #(
  4525. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4526. esac
  4527. for depmode in $am_compiler_list; do
  4528. # Setup a source with many dependencies, because some compilers
  4529. # like to wrap large dependency lists on column 80 (with \), and
  4530. # we should not choose a depcomp mode which is confused by this.
  4531. #
  4532. # We need to recreate these files for each test, as the compiler may
  4533. # overwrite some of them when testing with obscure command lines.
  4534. # This happens at least with the AIX C compiler.
  4535. : > sub/conftest.c
  4536. for i in 1 2 3 4 5 6; do
  4537. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4538. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4539. # Solaris 8's {/usr,}/bin/sh.
  4540. touch sub/conftst$i.h
  4541. done
  4542. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4543. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4544. # mode. It turns out that the SunPro C++ compiler does not properly
  4545. # handle `-M -o', and we need to detect this. Also, some Intel
  4546. # versions had trouble with output in subdirs
  4547. am__obj=sub/conftest.${OBJEXT-o}
  4548. am__minus_obj="-o $am__obj"
  4549. case $depmode in
  4550. gcc)
  4551. # This depmode causes a compiler race in universal mode.
  4552. test "$am__universal" = false || continue
  4553. ;;
  4554. nosideeffect)
  4555. # after this tag, mechanisms are not by side-effect, so they'll
  4556. # only be used when explicitly requested
  4557. if test "x$enable_dependency_tracking" = xyes; then
  4558. continue
  4559. else
  4560. break
  4561. fi
  4562. ;;
  4563. msvisualcpp | msvcmsys)
  4564. # This compiler won't grok `-c -o', but also, the minuso test has
  4565. # not run yet. These depmodes are late enough in the game, and
  4566. # so weak that their functioning should not be impacted.
  4567. am__obj=conftest.${OBJEXT-o}
  4568. am__minus_obj=
  4569. ;;
  4570. none) break ;;
  4571. esac
  4572. if depmode=$depmode \
  4573. source=sub/conftest.c object=$am__obj \
  4574. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4575. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4576. >/dev/null 2>conftest.err &&
  4577. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4578. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4579. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4580. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4581. # icc doesn't choke on unknown options, it will just issue warnings
  4582. # or remarks (even with -Werror). So we grep stderr for any message
  4583. # that says an option was ignored or not supported.
  4584. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4585. # icc: Command line warning: ignoring option '-M'; no argument required
  4586. # The diagnosis changed in icc 8.0:
  4587. # icc: Command line remark: option '-MP' not supported
  4588. if (grep 'ignoring option' conftest.err ||
  4589. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4590. am_cv_CC_dependencies_compiler_type=$depmode
  4591. break
  4592. fi
  4593. fi
  4594. done
  4595. cd ..
  4596. rm -rf conftest.dir
  4597. else
  4598. am_cv_CC_dependencies_compiler_type=none
  4599. fi
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4602. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4603. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4604. if
  4605. test "x$enable_dependency_tracking" != xno \
  4606. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4607. am__fastdepCC_TRUE=
  4608. am__fastdepCC_FALSE='#'
  4609. else
  4610. am__fastdepCC_TRUE='#'
  4611. am__fastdepCC_FALSE=
  4612. fi
  4613. if test -n "$ac_tool_prefix"; then
  4614. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4615. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4617. $as_echo_n "checking for $ac_word... " >&6; }
  4618. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4619. $as_echo_n "(cached) " >&6
  4620. else
  4621. if test -n "$RANLIB"; then
  4622. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4623. else
  4624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4625. for as_dir in $PATH
  4626. do
  4627. IFS=$as_save_IFS
  4628. test -z "$as_dir" && as_dir=.
  4629. for ac_exec_ext in '' $ac_executable_extensions; do
  4630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4631. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4633. break 2
  4634. fi
  4635. done
  4636. done
  4637. IFS=$as_save_IFS
  4638. fi
  4639. fi
  4640. RANLIB=$ac_cv_prog_RANLIB
  4641. if test -n "$RANLIB"; then
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4643. $as_echo "$RANLIB" >&6; }
  4644. else
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4646. $as_echo "no" >&6; }
  4647. fi
  4648. fi
  4649. if test -z "$ac_cv_prog_RANLIB"; then
  4650. ac_ct_RANLIB=$RANLIB
  4651. # Extract the first word of "ranlib", so it can be a program name with args.
  4652. set dummy ranlib; ac_word=$2
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4654. $as_echo_n "checking for $ac_word... " >&6; }
  4655. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. if test -n "$ac_ct_RANLIB"; then
  4659. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4660. else
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_exec_ext in '' $ac_executable_extensions; do
  4667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4668. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4670. break 2
  4671. fi
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. fi
  4676. fi
  4677. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4678. if test -n "$ac_ct_RANLIB"; then
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4680. $as_echo "$ac_ct_RANLIB" >&6; }
  4681. else
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4683. $as_echo "no" >&6; }
  4684. fi
  4685. if test "x$ac_ct_RANLIB" = x; then
  4686. RANLIB=":"
  4687. else
  4688. case $cross_compiling:$ac_tool_warned in
  4689. yes:)
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4692. ac_tool_warned=yes ;;
  4693. esac
  4694. RANLIB=$ac_ct_RANLIB
  4695. fi
  4696. else
  4697. RANLIB="$ac_cv_prog_RANLIB"
  4698. fi
  4699. for ac_prog in 'bison -y' byacc
  4700. do
  4701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4702. set dummy $ac_prog; ac_word=$2
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4704. $as_echo_n "checking for $ac_word... " >&6; }
  4705. if test "${ac_cv_prog_YACC+set}" = set; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -n "$YACC"; then
  4709. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4710. else
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4718. ac_cv_prog_YACC="$ac_prog"
  4719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. break 2
  4721. fi
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. fi
  4726. fi
  4727. YACC=$ac_cv_prog_YACC
  4728. if test -n "$YACC"; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4730. $as_echo "$YACC" >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4733. $as_echo "no" >&6; }
  4734. fi
  4735. test -n "$YACC" && break
  4736. done
  4737. test -n "$YACC" || YACC="yacc"
  4738. # Setting language choice
  4739. ac_ext=cpp
  4740. ac_cpp='$CXXCPP $CPPFLAGS'
  4741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4744. # Enable system extensions
  4745. ac_ext=cpp
  4746. ac_cpp='$CXXCPP $CPPFLAGS'
  4747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4751. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4752. if test -z "$CXXCPP"; then
  4753. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. # Double quotes because CXXCPP needs to be expanded
  4757. for CXXCPP in "$CXX -E" "/lib/cpp"
  4758. do
  4759. ac_preproc_ok=false
  4760. for ac_cxx_preproc_warn_flag in '' yes
  4761. do
  4762. # Use a header file that comes with gcc, so configuring glibc
  4763. # with a fresh cross-compiler works.
  4764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4765. # <limits.h> exists even on freestanding compilers.
  4766. # On the NeXT, cc -E runs the code through the compiler's parser,
  4767. # not just through cpp. "Syntax error" is here to catch this case.
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. #ifdef __STDC__
  4771. # include <limits.h>
  4772. #else
  4773. # include <assert.h>
  4774. #endif
  4775. Syntax error
  4776. _ACEOF
  4777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4778. else
  4779. # Broken: fails on valid input.
  4780. continue
  4781. fi
  4782. rm -f conftest.err conftest.i conftest.$ac_ext
  4783. # OK, works on sane cases. Now check whether nonexistent headers
  4784. # can be detected and how.
  4785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4786. /* end confdefs.h. */
  4787. #include <ac_nonexistent.h>
  4788. _ACEOF
  4789. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4790. # Broken: success on invalid input.
  4791. continue
  4792. else
  4793. # Passes both tests.
  4794. ac_preproc_ok=:
  4795. break
  4796. fi
  4797. rm -f conftest.err conftest.i conftest.$ac_ext
  4798. done
  4799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4800. rm -f conftest.i conftest.err conftest.$ac_ext
  4801. if $ac_preproc_ok; then :
  4802. break
  4803. fi
  4804. done
  4805. ac_cv_prog_CXXCPP=$CXXCPP
  4806. fi
  4807. CXXCPP=$ac_cv_prog_CXXCPP
  4808. else
  4809. ac_cv_prog_CXXCPP=$CXXCPP
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4812. $as_echo "$CXXCPP" >&6; }
  4813. ac_preproc_ok=false
  4814. for ac_cxx_preproc_warn_flag in '' yes
  4815. do
  4816. # Use a header file that comes with gcc, so configuring glibc
  4817. # with a fresh cross-compiler works.
  4818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4819. # <limits.h> exists even on freestanding compilers.
  4820. # On the NeXT, cc -E runs the code through the compiler's parser,
  4821. # not just through cpp. "Syntax error" is here to catch this case.
  4822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4823. /* end confdefs.h. */
  4824. #ifdef __STDC__
  4825. # include <limits.h>
  4826. #else
  4827. # include <assert.h>
  4828. #endif
  4829. Syntax error
  4830. _ACEOF
  4831. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4832. else
  4833. # Broken: fails on valid input.
  4834. continue
  4835. fi
  4836. rm -f conftest.err conftest.i conftest.$ac_ext
  4837. # OK, works on sane cases. Now check whether nonexistent headers
  4838. # can be detected and how.
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. #include <ac_nonexistent.h>
  4842. _ACEOF
  4843. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4844. # Broken: success on invalid input.
  4845. continue
  4846. else
  4847. # Passes both tests.
  4848. ac_preproc_ok=:
  4849. break
  4850. fi
  4851. rm -f conftest.err conftest.i conftest.$ac_ext
  4852. done
  4853. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4854. rm -f conftest.i conftest.err conftest.$ac_ext
  4855. if $ac_preproc_ok; then :
  4856. else
  4857. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4859. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  4860. See \`config.log' for more details" "$LINENO" 5 ; }
  4861. fi
  4862. ac_ext=cpp
  4863. ac_cpp='$CXXCPP $CPPFLAGS'
  4864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4868. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4869. if test "${ac_cv_path_GREP+set}" = set; then :
  4870. $as_echo_n "(cached) " >&6
  4871. else
  4872. if test -z "$GREP"; then
  4873. ac_path_GREP_found=false
  4874. # Loop through the user's path and test for each of PROGNAME-LIST
  4875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4876. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4877. do
  4878. IFS=$as_save_IFS
  4879. test -z "$as_dir" && as_dir=.
  4880. for ac_prog in grep ggrep; do
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4883. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4884. # Check for GNU ac_path_GREP and select it if it is found.
  4885. # Check for GNU $ac_path_GREP
  4886. case `"$ac_path_GREP" --version 2>&1` in
  4887. *GNU*)
  4888. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4889. *)
  4890. ac_count=0
  4891. $as_echo_n 0123456789 >"conftest.in"
  4892. while :
  4893. do
  4894. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4895. mv "conftest.tmp" "conftest.in"
  4896. cp "conftest.in" "conftest.nl"
  4897. $as_echo 'GREP' >> "conftest.nl"
  4898. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4899. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4900. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4901. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4902. # Best one so far, save it but keep looking for a better one
  4903. ac_cv_path_GREP="$ac_path_GREP"
  4904. ac_path_GREP_max=$ac_count
  4905. fi
  4906. # 10*(2^10) chars as input seems more than enough
  4907. test $ac_count -gt 10 && break
  4908. done
  4909. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4910. esac
  4911. $ac_path_GREP_found && break 3
  4912. done
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. if test -z "$ac_cv_path_GREP"; then
  4917. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4918. fi
  4919. else
  4920. ac_cv_path_GREP=$GREP
  4921. fi
  4922. fi
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4924. $as_echo "$ac_cv_path_GREP" >&6; }
  4925. GREP="$ac_cv_path_GREP"
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4927. $as_echo_n "checking for egrep... " >&6; }
  4928. if test "${ac_cv_path_EGREP+set}" = set; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4932. then ac_cv_path_EGREP="$GREP -E"
  4933. else
  4934. if test -z "$EGREP"; then
  4935. ac_path_EGREP_found=false
  4936. # Loop through the user's path and test for each of PROGNAME-LIST
  4937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4938. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4939. do
  4940. IFS=$as_save_IFS
  4941. test -z "$as_dir" && as_dir=.
  4942. for ac_prog in egrep; do
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4945. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4946. # Check for GNU ac_path_EGREP and select it if it is found.
  4947. # Check for GNU $ac_path_EGREP
  4948. case `"$ac_path_EGREP" --version 2>&1` in
  4949. *GNU*)
  4950. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4951. *)
  4952. ac_count=0
  4953. $as_echo_n 0123456789 >"conftest.in"
  4954. while :
  4955. do
  4956. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4957. mv "conftest.tmp" "conftest.in"
  4958. cp "conftest.in" "conftest.nl"
  4959. $as_echo 'EGREP' >> "conftest.nl"
  4960. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4961. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4962. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4963. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4964. # Best one so far, save it but keep looking for a better one
  4965. ac_cv_path_EGREP="$ac_path_EGREP"
  4966. ac_path_EGREP_max=$ac_count
  4967. fi
  4968. # 10*(2^10) chars as input seems more than enough
  4969. test $ac_count -gt 10 && break
  4970. done
  4971. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4972. esac
  4973. $ac_path_EGREP_found && break 3
  4974. done
  4975. done
  4976. done
  4977. IFS=$as_save_IFS
  4978. if test -z "$ac_cv_path_EGREP"; then
  4979. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4980. fi
  4981. else
  4982. ac_cv_path_EGREP=$EGREP
  4983. fi
  4984. fi
  4985. fi
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4987. $as_echo "$ac_cv_path_EGREP" >&6; }
  4988. EGREP="$ac_cv_path_EGREP"
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4990. $as_echo_n "checking for ANSI C header files... " >&6; }
  4991. if test "${ac_cv_header_stdc+set}" = set; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. #include <stdlib.h>
  4997. #include <stdarg.h>
  4998. #include <string.h>
  4999. #include <float.h>
  5000. int
  5001. main ()
  5002. {
  5003. ;
  5004. return 0;
  5005. }
  5006. _ACEOF
  5007. if ac_fn_cxx_try_compile "$LINENO"; then :
  5008. ac_cv_header_stdc=yes
  5009. else
  5010. ac_cv_header_stdc=no
  5011. fi
  5012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5013. if test $ac_cv_header_stdc = yes; then
  5014. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5016. /* end confdefs.h. */
  5017. #include <string.h>
  5018. _ACEOF
  5019. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5020. $EGREP "memchr" >/dev/null 2>&1; then :
  5021. else
  5022. ac_cv_header_stdc=no
  5023. fi
  5024. rm -f conftest*
  5025. fi
  5026. if test $ac_cv_header_stdc = yes; then
  5027. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5029. /* end confdefs.h. */
  5030. #include <stdlib.h>
  5031. _ACEOF
  5032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5033. $EGREP "free" >/dev/null 2>&1; then :
  5034. else
  5035. ac_cv_header_stdc=no
  5036. fi
  5037. rm -f conftest*
  5038. fi
  5039. if test $ac_cv_header_stdc = yes; then
  5040. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5041. if test "$cross_compiling" = yes; then :
  5042. :
  5043. else
  5044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5045. /* end confdefs.h. */
  5046. #include <ctype.h>
  5047. #include <stdlib.h>
  5048. #if ((' ' & 0x0FF) == 0x020)
  5049. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5050. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5051. #else
  5052. # define ISLOWER(c) \
  5053. (('a' <= (c) && (c) <= 'i') \
  5054. || ('j' <= (c) && (c) <= 'r') \
  5055. || ('s' <= (c) && (c) <= 'z'))
  5056. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5057. #endif
  5058. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5059. int
  5060. main ()
  5061. {
  5062. int i;
  5063. for (i = 0; i < 256; i++)
  5064. if (XOR (islower (i), ISLOWER (i))
  5065. || toupper (i) != TOUPPER (i))
  5066. return 2;
  5067. return 0;
  5068. }
  5069. _ACEOF
  5070. if ac_fn_cxx_try_run "$LINENO"; then :
  5071. else
  5072. ac_cv_header_stdc=no
  5073. fi
  5074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5076. fi
  5077. fi
  5078. fi
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5080. $as_echo "$ac_cv_header_stdc" >&6; }
  5081. if test $ac_cv_header_stdc = yes; then
  5082. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5083. fi
  5084. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5085. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5086. inttypes.h stdint.h unistd.h
  5087. do :
  5088. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5089. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5090. "
  5091. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5092. cat >>confdefs.h <<_ACEOF
  5093. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5094. _ACEOF
  5095. fi
  5096. done
  5097. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5098. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5099. MINIX=yes
  5100. else
  5101. MINIX=
  5102. fi
  5103. if test "$MINIX" = yes; then
  5104. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5105. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5106. $as_echo "#define _MINIX 1" >>confdefs.h
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5109. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5110. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. # define __EXTENSIONS__ 1
  5116. $ac_includes_default
  5117. int
  5118. main ()
  5119. {
  5120. ;
  5121. return 0;
  5122. }
  5123. _ACEOF
  5124. if ac_fn_cxx_try_compile "$LINENO"; then :
  5125. ac_cv_safe_to_define___extensions__=yes
  5126. else
  5127. ac_cv_safe_to_define___extensions__=no
  5128. fi
  5129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5132. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5133. test $ac_cv_safe_to_define___extensions__ = yes &&
  5134. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5135. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5136. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5137. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5138. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5139. # Check pkg-config is available
  5140. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5141. if test -n "$ac_tool_prefix"; then
  5142. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5143. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5145. $as_echo_n "checking for $ac_word... " >&6; }
  5146. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. case $PKG_CONFIG in
  5150. [\\/]* | ?:[\\/]*)
  5151. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5152. ;;
  5153. *)
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH
  5156. do
  5157. IFS=$as_save_IFS
  5158. test -z "$as_dir" && as_dir=.
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5161. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. ;;
  5169. esac
  5170. fi
  5171. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5172. if test -n "$PKG_CONFIG"; then
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5174. $as_echo "$PKG_CONFIG" >&6; }
  5175. else
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5177. $as_echo "no" >&6; }
  5178. fi
  5179. fi
  5180. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5181. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5182. # Extract the first word of "pkg-config", so it can be a program name with args.
  5183. set dummy pkg-config; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. case $ac_pt_PKG_CONFIG in
  5190. [\\/]* | ?:[\\/]*)
  5191. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5192. ;;
  5193. *)
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. ;;
  5209. esac
  5210. fi
  5211. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5212. if test -n "$ac_pt_PKG_CONFIG"; then
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5214. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5215. else
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. $as_echo "no" >&6; }
  5218. fi
  5219. if test "x$ac_pt_PKG_CONFIG" = x; then
  5220. PKG_CONFIG=""
  5221. else
  5222. case $cross_compiling:$ac_tool_warned in
  5223. yes:)
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5226. ac_tool_warned=yes ;;
  5227. esac
  5228. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5229. fi
  5230. else
  5231. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5232. fi
  5233. fi
  5234. if test -n "$PKG_CONFIG"; then
  5235. _pkg_min_version=0.20
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5237. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5238. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5240. $as_echo "yes" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. PKG_CONFIG=""
  5245. fi
  5246. fi
  5247. # Checks for libraries.
  5248. if test "x$with_libxml2" = "xyes"; then
  5249. # Check whether --with-xml-prefix was given.
  5250. if test "${with_xml_prefix+set}" = set; then :
  5251. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5252. else
  5253. xml_config_prefix=""
  5254. fi
  5255. # Check whether --with-xml-exec-prefix was given.
  5256. if test "${with_xml_exec_prefix+set}" = set; then :
  5257. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5258. else
  5259. xml_config_exec_prefix=""
  5260. fi
  5261. # Check whether --enable-xmltest was given.
  5262. if test "${enable_xmltest+set}" = set; then :
  5263. enableval=$enable_xmltest;
  5264. else
  5265. enable_xmltest=yes
  5266. fi
  5267. if test x$xml_config_exec_prefix != x ; then
  5268. xml_config_args="$xml_config_args"
  5269. if test x${XML2_CONFIG+set} != xset ; then
  5270. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5271. fi
  5272. fi
  5273. if test x$xml_config_prefix != x ; then
  5274. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5275. if test x${XML2_CONFIG+set} != xset ; then
  5276. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5277. fi
  5278. fi
  5279. # Extract the first word of "xml2-config", so it can be a program name with args.
  5280. set dummy xml2-config; ac_word=$2
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5282. $as_echo_n "checking for $ac_word... " >&6; }
  5283. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. case $XML2_CONFIG in
  5287. [\\/]* | ?:[\\/]*)
  5288. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5289. ;;
  5290. *)
  5291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5292. for as_dir in $PATH
  5293. do
  5294. IFS=$as_save_IFS
  5295. test -z "$as_dir" && as_dir=.
  5296. for ac_exec_ext in '' $ac_executable_extensions; do
  5297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5298. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5300. break 2
  5301. fi
  5302. done
  5303. done
  5304. IFS=$as_save_IFS
  5305. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5306. ;;
  5307. esac
  5308. fi
  5309. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5310. if test -n "$XML2_CONFIG"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5312. $as_echo "$XML2_CONFIG" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5315. $as_echo "no" >&6; }
  5316. fi
  5317. min_xml_version=2.6.24
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5319. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5320. no_xml=""
  5321. if test "$XML2_CONFIG" = "no" ; then
  5322. no_xml=yes
  5323. else
  5324. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5325. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5326. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5327. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5328. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5330. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5331. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5332. if test "x$enable_xmltest" = "xyes" ; then
  5333. ac_save_CPPFLAGS="$CPPFLAGS"
  5334. ac_save_LIBS="$LIBS"
  5335. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5336. LIBS="$XML_LIBS $LIBS"
  5337. rm -f conf.xmltest
  5338. if test "$cross_compiling" = yes; then :
  5339. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5340. else
  5341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5342. /* end confdefs.h. */
  5343. #include <stdlib.h>
  5344. #include <stdio.h>
  5345. #include <string.h>
  5346. #include <libxml/xmlversion.h>
  5347. int
  5348. main()
  5349. {
  5350. int xml_major_version, xml_minor_version, xml_micro_version;
  5351. int major, minor, micro;
  5352. char *tmp_version;
  5353. system("touch conf.xmltest");
  5354. /* Capture xml2-config output via autoconf/configure variables */
  5355. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5356. tmp_version = (char *)strdup("$min_xml_version");
  5357. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5358. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5359. exit(1);
  5360. }
  5361. free(tmp_version);
  5362. /* Capture the version information from the header files */
  5363. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5364. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5365. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5366. exit(1);
  5367. }
  5368. free(tmp_version);
  5369. /* Compare xml2-config output to the libxml headers */
  5370. if ((xml_major_version != $xml_config_major_version) ||
  5371. (xml_minor_version != $xml_config_minor_version) ||
  5372. (xml_micro_version != $xml_config_micro_version))
  5373. {
  5374. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5375. xml_major_version, xml_minor_version, xml_micro_version);
  5376. printf("*** xml2-config (version %d.%d.%d)\n",
  5377. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5378. return 1;
  5379. }
  5380. /* Compare the headers to the library to make sure we match */
  5381. /* Less than ideal -- doesn't provide us with return value feedback,
  5382. * only exits if there's a serious mismatch between header and library.
  5383. */
  5384. LIBXML_TEST_VERSION;
  5385. /* Test that the library is greater than our minimum version */
  5386. if ((xml_major_version > major) ||
  5387. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5388. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5389. (xml_micro_version >= micro)))
  5390. {
  5391. return 0;
  5392. }
  5393. else
  5394. {
  5395. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5396. xml_major_version, xml_minor_version, xml_micro_version);
  5397. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5398. major, minor, micro);
  5399. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5400. printf("***\n");
  5401. printf("*** If you have already installed a sufficiently new version, this error\n");
  5402. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5403. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5404. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5405. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5406. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5407. printf("*** so that the correct libraries are found at run-time))\n");
  5408. }
  5409. return 1;
  5410. }
  5411. _ACEOF
  5412. if ac_fn_cxx_try_run "$LINENO"; then :
  5413. else
  5414. no_xml=yes
  5415. fi
  5416. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5417. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5418. fi
  5419. CPPFLAGS="$ac_save_CPPFLAGS"
  5420. LIBS="$ac_save_LIBS"
  5421. fi
  5422. fi
  5423. if test "x$no_xml" = x ; then
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5425. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5426. have_libxml2=yes
  5427. else
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5429. $as_echo "no" >&6; }
  5430. if test "$XML2_CONFIG" = "no" ; then
  5431. echo "*** The xml2-config script installed by LIBXML could not be found"
  5432. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5433. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5434. echo "*** full path to xml2-config."
  5435. else
  5436. if test -f conf.xmltest ; then
  5437. :
  5438. else
  5439. echo "*** Could not run libxml test program, checking why..."
  5440. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5441. LIBS="$LIBS $XML_LIBS"
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. #include <libxml/xmlversion.h>
  5445. #include <stdio.h>
  5446. int
  5447. main ()
  5448. {
  5449. LIBXML_TEST_VERSION; return 0;
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_cxx_try_link "$LINENO"; then :
  5455. echo "*** The test program compiled, but did not run. This usually means"
  5456. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5457. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5458. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5459. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5460. echo "*** is required on your system"
  5461. echo "***"
  5462. echo "*** If you have an old version installed, it is best to remove it, although"
  5463. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5464. else
  5465. echo "*** The test program failed to compile or link. See the file config.log for the"
  5466. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5467. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5468. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext \
  5471. conftest$ac_exeext conftest.$ac_ext
  5472. CPPFLAGS="$ac_save_CPPFLAGS"
  5473. LIBS="$ac_save_LIBS"
  5474. fi
  5475. fi
  5476. XML_CPPFLAGS=""
  5477. XML_LIBS=""
  5478. :
  5479. fi
  5480. rm -f conf.xmltest
  5481. if test "x$have_libxml2" = "xyes"; then
  5482. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5483. elif test "x$with_libxml2_requested" = "xyes"; then
  5484. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5486. as_fn_error $? "libxml2 is requested but not found in the system.
  5487. See \`config.log' for more details" "$LINENO" 5 ; }
  5488. fi
  5489. fi
  5490. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5491. # Check whether --with-libexpat-prefix was given.
  5492. if test "${with_libexpat_prefix+set}" = set; then :
  5493. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5494. else
  5495. libexpat_prefix=""
  5496. fi
  5497. if test "x$libexpat_prefix" = "x"; then
  5498. libexpat_prefix="/usr"
  5499. fi
  5500. libexpat_prefix_lib=$libexpat_prefix/lib
  5501. libexpat_prefix_include=$libexpat_prefix/include
  5502. LIBS_save=$LIBS
  5503. CPPFLAGS_save=$CPPFLAGS
  5504. LIBS="-L$libexpat_prefix_lib $LIBS"
  5505. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5507. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5508. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. ac_check_lib_save_LIBS=$LIBS
  5512. LIBS="-lexpat $LIBS"
  5513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5514. /* end confdefs.h. */
  5515. /* Override any GCC internal prototype to avoid an error.
  5516. Use char because int might match the return type of a GCC
  5517. builtin and then its argument prototype would still apply. */
  5518. #ifdef __cplusplus
  5519. extern "C"
  5520. #endif
  5521. char XML_ParserCreate ();
  5522. int
  5523. main ()
  5524. {
  5525. return XML_ParserCreate ();
  5526. ;
  5527. return 0;
  5528. }
  5529. _ACEOF
  5530. if ac_fn_cxx_try_link "$LINENO"; then :
  5531. ac_cv_lib_expat_XML_ParserCreate=yes
  5532. else
  5533. ac_cv_lib_expat_XML_ParserCreate=no
  5534. fi
  5535. rm -f core conftest.err conftest.$ac_objext \
  5536. conftest$ac_exeext conftest.$ac_ext
  5537. LIBS=$ac_check_lib_save_LIBS
  5538. fi
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5540. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5541. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5542. have_libexpat=yes
  5543. fi
  5544. if test "x$have_libexpat" = "xyes"; then
  5545. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5546. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5547. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5548. fi
  5549. LIBS=$LIBS_save
  5550. CPPFLAGS=$CPPFLAGS_save
  5551. if test "x$have_libexpat" != "xyes" &&
  5552. test "x$with_libexpat_requested" = "xyes"; then
  5553. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5555. as_fn_error $? "libexpat is requested but not found in the system.
  5556. See \`config.log' for more details" "$LINENO" 5 ; }
  5557. fi
  5558. fi
  5559. if test "x$with_sqlite3" = "xyes"; then
  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:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5573. $as_echo_n "checking for SQLITE3... " >&6; }
  5574. if test -n "$SQLITE3_CFLAGS"; then
  5575. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5576. elif test -n "$PKG_CONFIG"; then
  5577. if test -n "$PKG_CONFIG" && \
  5578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5579. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5580. ac_status=$?
  5581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5582. test $ac_status = 0; }; then
  5583. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5584. else
  5585. pkg_failed=yes
  5586. fi
  5587. else
  5588. pkg_failed=untried
  5589. fi
  5590. if test -n "$SQLITE3_LIBS"; then
  5591. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5592. elif test -n "$PKG_CONFIG"; then
  5593. if test -n "$PKG_CONFIG" && \
  5594. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5595. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5596. ac_status=$?
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5598. test $ac_status = 0; }; then
  5599. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5600. else
  5601. pkg_failed=yes
  5602. fi
  5603. else
  5604. pkg_failed=untried
  5605. fi
  5606. if test $pkg_failed = yes; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5610. _pkg_short_errors_supported=yes
  5611. else
  5612. _pkg_short_errors_supported=no
  5613. fi
  5614. if test $_pkg_short_errors_supported = yes; then
  5615. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
  5616. else
  5617. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
  5618. fi
  5619. # Put the nasty error message in config.log where it belongs
  5620. echo "$SQLITE3_PKG_ERRORS" >&5
  5621. have_sqlite3=no
  5622. elif test $pkg_failed = untried; then
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5624. $as_echo "no" >&6; }
  5625. have_sqlite3=no
  5626. else
  5627. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5628. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5630. $as_echo "yes" >&6; }
  5631. have_sqlite3=yes
  5632. fi
  5633. if test "x$have_sqlite3" != "xyes"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5635. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5636. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5637. sqlite3_prefix_include=$sqlite3_prefix/include
  5638. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5639. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5641. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5642. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. ac_check_lib_save_LIBS=$LIBS
  5646. LIBS="-lsqlite3 $LIBS"
  5647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5648. /* end confdefs.h. */
  5649. /* Override any GCC internal prototype to avoid an error.
  5650. Use char because int might match the return type of a GCC
  5651. builtin and then its argument prototype would still apply. */
  5652. #ifdef __cplusplus
  5653. extern "C"
  5654. #endif
  5655. char sqlite3_open ();
  5656. int
  5657. main ()
  5658. {
  5659. return sqlite3_open ();
  5660. ;
  5661. return 0;
  5662. }
  5663. _ACEOF
  5664. if ac_fn_cxx_try_link "$LINENO"; then :
  5665. ac_cv_lib_sqlite3_sqlite3_open=yes
  5666. else
  5667. ac_cv_lib_sqlite3_sqlite3_open=no
  5668. fi
  5669. rm -f core conftest.err conftest.$ac_objext \
  5670. conftest$ac_exeext conftest.$ac_ext
  5671. LIBS=$ac_check_lib_save_LIBS
  5672. fi
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5674. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5675. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5676. have_sqlite3=yes
  5677. fi
  5678. if test "x$have_sqlite3" = "xyes"; then
  5679. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5680. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5681. fi
  5682. fi
  5683. if test "x$have_sqlite3" = "xyes"; then
  5684. LIBS="$SQLITE3_LIBS $LIBS"
  5685. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5686. for ac_func in sqlite3_open_v2
  5687. do :
  5688. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5689. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5690. cat >>confdefs.h <<_ACEOF
  5691. #define HAVE_SQLITE3_OPEN_V2 1
  5692. _ACEOF
  5693. fi
  5694. done
  5695. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5696. fi
  5697. LIBS=$LIBS_save
  5698. CPPFLAGS=$CPPFLAGS_save
  5699. if test "x$have_sqlite3" != "xyes" &&
  5700. test "x$with_sqlite3_requested" = "xyes"; then
  5701. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5702. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5703. as_fn_error $? "sqlite3 is requested but not found in the system.
  5704. See \`config.log' for more details" "$LINENO" 5 ; }
  5705. fi
  5706. fi
  5707. if test "x$with_gnutls" = "xyes"; then
  5708. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5709. # First check the presence of libgnutls using pkg-config.
  5710. pkg_failed=no
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5712. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5713. if test -n "$LIBGNUTLS_CFLAGS"; then
  5714. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5715. elif test -n "$PKG_CONFIG"; then
  5716. if test -n "$PKG_CONFIG" && \
  5717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5718. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5723. else
  5724. pkg_failed=yes
  5725. fi
  5726. else
  5727. pkg_failed=untried
  5728. fi
  5729. if test -n "$LIBGNUTLS_LIBS"; then
  5730. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5731. elif test -n "$PKG_CONFIG"; then
  5732. if test -n "$PKG_CONFIG" && \
  5733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5734. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5735. ac_status=$?
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5737. test $ac_status = 0; }; then
  5738. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5739. else
  5740. pkg_failed=yes
  5741. fi
  5742. else
  5743. pkg_failed=untried
  5744. fi
  5745. if test $pkg_failed = yes; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5747. $as_echo "no" >&6; }
  5748. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5749. _pkg_short_errors_supported=yes
  5750. else
  5751. _pkg_short_errors_supported=no
  5752. fi
  5753. if test $_pkg_short_errors_supported = yes; then
  5754. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.2.9" 2>&1`
  5755. else
  5756. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.2.9" 2>&1`
  5757. fi
  5758. # Put the nasty error message in config.log where it belongs
  5759. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5760. have_libgnutls=no
  5761. elif test $pkg_failed = untried; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. have_libgnutls=no
  5765. else
  5766. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5767. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5769. $as_echo "yes" >&6; }
  5770. have_libgnutls=yes
  5771. fi
  5772. # If no libgnutls found by pkg-config, fall back to old macro
  5773. if test "x$have_libgnutls" = "xno"; then
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5775. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5776. # Check whether --with-libgnutls-prefix was given.
  5777. if test "${with_libgnutls_prefix+set}" = set; then :
  5778. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5779. else
  5780. libgnutls_config_prefix=""
  5781. fi
  5782. if test x$libgnutls_config_prefix != x ; then
  5783. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5784. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5785. fi
  5786. fi
  5787. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5788. set dummy libgnutls-config; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. case $LIBGNUTLS_CONFIG in
  5795. [\\/]* | ?:[\\/]*)
  5796. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5797. ;;
  5798. *)
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5806. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5814. ;;
  5815. esac
  5816. fi
  5817. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5818. if test -n "$LIBGNUTLS_CONFIG"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5820. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. min_libgnutls_version=1.2.9
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5827. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5828. no_libgnutls=""
  5829. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5830. no_libgnutls=yes
  5831. else
  5832. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5833. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5834. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5835. ac_save_CFLAGS="$CFLAGS"
  5836. ac_save_LIBS="$LIBS"
  5837. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5838. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5839. rm -f conf.libgnutlstest
  5840. if test "$cross_compiling" = yes; then :
  5841. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5842. else
  5843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5844. /* end confdefs.h. */
  5845. #include <stdio.h>
  5846. #include <stdlib.h>
  5847. #include <string.h>
  5848. #include <gnutls/gnutls.h>
  5849. int
  5850. main ()
  5851. {
  5852. system ("touch conf.libgnutlstest");
  5853. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5854. {
  5855. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5856. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5857. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5858. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5859. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5860. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5861. printf("*** required on your system.\n");
  5862. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5863. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5864. printf("*** before re-running configure\n");
  5865. }
  5866. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5867. {
  5868. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5869. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5870. }
  5871. else
  5872. {
  5873. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5874. {
  5875. return 0;
  5876. }
  5877. else
  5878. {
  5879. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5880. gnutls_check_version(NULL) );
  5881. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5882. "$min_libgnutls_version" );
  5883. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5884. printf("*** \n");
  5885. printf("*** If you have already installed a sufficiently new version, this error\n");
  5886. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5887. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5888. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5889. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5890. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5891. printf("*** so that the correct libraries are found at run-time))\n");
  5892. }
  5893. }
  5894. return 1;
  5895. }
  5896. _ACEOF
  5897. if ac_fn_cxx_try_run "$LINENO"; then :
  5898. else
  5899. no_libgnutls=yes
  5900. fi
  5901. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5902. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5903. fi
  5904. CFLAGS="$ac_save_CFLAGS"
  5905. LIBS="$ac_save_LIBS"
  5906. fi
  5907. if test "x$no_libgnutls" = x ; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5909. $as_echo "yes" >&6; }
  5910. have_libgnutls=yes
  5911. else
  5912. if test -f conf.libgnutlstest ; then
  5913. :
  5914. else
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5916. $as_echo "no" >&6; }
  5917. fi
  5918. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5919. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5920. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5921. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5922. echo "*** full path to libgnutls-config."
  5923. else
  5924. if test -f conf.libgnutlstest ; then
  5925. :
  5926. else
  5927. echo "*** Could not run libgnutls test program, checking why..."
  5928. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5929. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5931. /* end confdefs.h. */
  5932. #include <stdio.h>
  5933. #include <stdlib.h>
  5934. #include <string.h>
  5935. #include <gnutls/gnutls.h>
  5936. int
  5937. main ()
  5938. {
  5939. return !!gnutls_check_version(NULL);
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. if ac_fn_cxx_try_link "$LINENO"; then :
  5945. echo "*** The test program compiled, but did not run. This usually means"
  5946. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5947. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5948. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5949. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5950. echo "*** is required on your system"
  5951. echo "***"
  5952. echo "*** If you have an old version installed, it is best to remove it, although"
  5953. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5954. echo "***"
  5955. else
  5956. echo "*** The test program failed to compile or link. See the file config.log for the"
  5957. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5958. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5959. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5960. fi
  5961. rm -f core conftest.err conftest.$ac_objext \
  5962. conftest$ac_exeext conftest.$ac_ext
  5963. CFLAGS="$ac_save_CFLAGS"
  5964. LIBS="$ac_save_LIBS"
  5965. fi
  5966. fi
  5967. LIBGNUTLS_CFLAGS=""
  5968. LIBGNUTLS_LIBS=""
  5969. :
  5970. fi
  5971. rm -f conf.libgnutlstest
  5972. fi
  5973. if test "x$have_libgnutls" = "xyes"; then
  5974. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5975. elif test "x$with_gnutls_requested" = "xyes"; then
  5976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5978. as_fn_error $? "gnutls is requested but not found in the system.
  5979. See \`config.log' for more details" "$LINENO" 5 ; }
  5980. fi
  5981. fi
  5982. if test "x$have_libgnutls" = "xyes"; then
  5983. # Check whether --with-libgcrypt-prefix was given.
  5984. if test "${with_libgcrypt_prefix+set}" = set; then :
  5985. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5986. else
  5987. libgcrypt_config_prefix=""
  5988. fi
  5989. if test x$libgcrypt_config_prefix != x ; then
  5990. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5991. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5992. fi
  5993. fi
  5994. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5995. set dummy libgcrypt-config; ac_word=$2
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5997. $as_echo_n "checking for $ac_word... " >&6; }
  5998. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. case $LIBGCRYPT_CONFIG in
  6002. [\\/]* | ?:[\\/]*)
  6003. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6004. ;;
  6005. *)
  6006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6007. for as_dir in $PATH
  6008. do
  6009. IFS=$as_save_IFS
  6010. test -z "$as_dir" && as_dir=.
  6011. for ac_exec_ext in '' $ac_executable_extensions; do
  6012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6013. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6015. break 2
  6016. fi
  6017. done
  6018. done
  6019. IFS=$as_save_IFS
  6020. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6021. ;;
  6022. esac
  6023. fi
  6024. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6025. if test -n "$LIBGCRYPT_CONFIG"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6027. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. tmp=1.2.2
  6033. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6034. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6035. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6036. else
  6037. req_libgcrypt_api=0
  6038. min_libgcrypt_version="$tmp"
  6039. fi
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6041. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6042. ok=no
  6043. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6044. req_major=`echo $min_libgcrypt_version | \
  6045. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6046. req_minor=`echo $min_libgcrypt_version | \
  6047. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6048. req_micro=`echo $min_libgcrypt_version | \
  6049. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6050. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6051. major=`echo $libgcrypt_config_version | \
  6052. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6053. minor=`echo $libgcrypt_config_version | \
  6054. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6055. micro=`echo $libgcrypt_config_version | \
  6056. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6057. if test "$major" -gt "$req_major"; then
  6058. ok=yes
  6059. else
  6060. if test "$major" -eq "$req_major"; then
  6061. if test "$minor" -gt "$req_minor"; then
  6062. ok=yes
  6063. else
  6064. if test "$minor" -eq "$req_minor"; then
  6065. if test "$micro" -ge "$req_micro"; then
  6066. ok=yes
  6067. fi
  6068. fi
  6069. fi
  6070. fi
  6071. fi
  6072. fi
  6073. if test $ok = yes; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6075. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6076. else
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6078. $as_echo "no" >&6; }
  6079. fi
  6080. if test $ok = yes; then
  6081. # If we have a recent libgcrypt, we should also check that the
  6082. # API is compatible
  6083. if test "$req_libgcrypt_api" -gt 0 ; then
  6084. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6085. if test "$tmp" -gt 0 ; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6087. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6088. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6090. $as_echo "okay" >&6; }
  6091. else
  6092. ok=no
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6094. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6095. fi
  6096. fi
  6097. fi
  6098. fi
  6099. if test $ok = yes; then
  6100. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6101. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6102. have_libgcrypt=yes
  6103. else
  6104. LIBGCRYPT_CFLAGS=""
  6105. LIBGCRYPT_LIBS=""
  6106. :
  6107. fi
  6108. if test "x$have_libgcrypt" = "xyes"; then
  6109. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6110. fi
  6111. fi
  6112. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6113. # Check whether --with-openssl-prefix was given.
  6114. if test "${with_openssl_prefix+set}" = set; then :
  6115. withval=$with_openssl_prefix; openssl_prefix=$withval
  6116. else
  6117. openssl_prefix=""
  6118. fi
  6119. if test "x$openssl_prefix" = "x"; then
  6120. openssl_prefix="/usr/local"
  6121. fi
  6122. LIBS_save=$LIBS
  6123. CPPFLAGS_save=$CPPFLAGS
  6124. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6125. if test -x $PKG_CONFIG; then
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6127. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6128. $PKG_CONFIG --exists openssl
  6129. if test "$?" = "0"; then
  6130. # Use pkg-config to detect LIBS and CFLAGS
  6131. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6132. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6133. LIBS="$OPENSSL_LIBS $LIBS"
  6134. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6135. have_openssl=yes
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6137. $as_echo "yes" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. fi
  6143. if test "x$have_openssl" != "xyes"; then
  6144. openssl_prefix_lib=$openssl_prefix/lib
  6145. openssl_prefix_include=$openssl_prefix/include
  6146. LIBS="-L$openssl_prefix_lib $LIBS"
  6147. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6148. # First check libcrypto, because libssl may depend on it
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6150. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6151. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. ac_check_lib_save_LIBS=$LIBS
  6155. LIBS="-lcrypto $LIBS"
  6156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end confdefs.h. */
  6158. int
  6159. main ()
  6160. {
  6161. return main ();
  6162. ;
  6163. return 0;
  6164. }
  6165. _ACEOF
  6166. if ac_fn_cxx_try_link "$LINENO"; then :
  6167. ac_cv_lib_crypto_main=yes
  6168. else
  6169. ac_cv_lib_crypto_main=no
  6170. fi
  6171. rm -f core conftest.err conftest.$ac_objext \
  6172. conftest$ac_exeext conftest.$ac_ext
  6173. LIBS=$ac_check_lib_save_LIBS
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6176. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6177. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6178. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6179. fi
  6180. if test "x$have_openssl" = "xyes"; then
  6181. have_openssl=no
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6183. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6184. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. ac_check_lib_save_LIBS=$LIBS
  6188. LIBS="-lssl $LIBS"
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. /* Override any GCC internal prototype to avoid an error.
  6192. Use char because int might match the return type of a GCC
  6193. builtin and then its argument prototype would still apply. */
  6194. #ifdef __cplusplus
  6195. extern "C"
  6196. #endif
  6197. char SSL_library_init ();
  6198. int
  6199. main ()
  6200. {
  6201. return SSL_library_init ();
  6202. ;
  6203. return 0;
  6204. }
  6205. _ACEOF
  6206. if ac_fn_cxx_try_link "$LINENO"; then :
  6207. ac_cv_lib_ssl_SSL_library_init=yes
  6208. else
  6209. ac_cv_lib_ssl_SSL_library_init=no
  6210. fi
  6211. rm -f core conftest.err conftest.$ac_objext \
  6212. conftest$ac_exeext conftest.$ac_ext
  6213. LIBS=$ac_check_lib_save_LIBS
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6216. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6217. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6218. have_openssl=yes LIBS="-lssl $LIBS"
  6219. fi
  6220. if test "x$have_openssl" = "xyes"; then
  6221. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6222. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6223. fi
  6224. fi
  6225. fi
  6226. if test "x$have_openssl" = "xyes"; then
  6227. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6228. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6229. for ac_func in EVP_DigestInit_ex
  6230. do :
  6231. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6232. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6233. cat >>confdefs.h <<_ACEOF
  6234. #define HAVE_EVP_DIGESTINIT_EX 1
  6235. _ACEOF
  6236. have_digestinit_ex=yes
  6237. fi
  6238. done
  6239. if test "x$have_digestinit_ex" = "x"; then
  6240. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6241. fi
  6242. # search for sha256 support
  6243. for ac_func in EVP_sha256
  6244. do :
  6245. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6246. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6247. cat >>confdefs.h <<_ACEOF
  6248. #define HAVE_EVP_SHA256 1
  6249. _ACEOF
  6250. fi
  6251. done
  6252. fi
  6253. LIBS=$LIBS_save
  6254. CPPFLAGS=$CPPFLAGS_save
  6255. if test "x$have_openssl" != "xyes" &&
  6256. test "x$with_openssl_requested" = "xyes"; then
  6257. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6259. as_fn_error $? "openssl is requested but not found in the system.
  6260. See \`config.log' for more details" "$LINENO" 5 ; }
  6261. fi
  6262. fi
  6263. if test "x$with_libcares" = "xyes"; then
  6264. # Check whether --with-libcares-prefix was given.
  6265. if test "${with_libcares_prefix+set}" = set; then :
  6266. withval=$with_libcares_prefix; libcares_prefix=$withval
  6267. else
  6268. libcares_prefix=""
  6269. fi
  6270. if test "x$libcares_prefix" = "x"; then
  6271. libcares_prefix="/usr"
  6272. fi
  6273. libcares_prefix_lib=$libcares_prefix/lib
  6274. libcares_prefix_include=$libcares_prefix/include
  6275. LIBS_save=$LIBS
  6276. CPPFLAGS_save=$CPPFLAGS
  6277. LIBS="-L$libcares_prefix_lib $LIBS"
  6278. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6280. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6281. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6282. $as_echo_n "(cached) " >&6
  6283. else
  6284. ac_check_lib_save_LIBS=$LIBS
  6285. LIBS="-lcares $LIBS"
  6286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6287. /* end confdefs.h. */
  6288. /* Override any GCC internal prototype to avoid an error.
  6289. Use char because int might match the return type of a GCC
  6290. builtin and then its argument prototype would still apply. */
  6291. #ifdef __cplusplus
  6292. extern "C"
  6293. #endif
  6294. char ares_init ();
  6295. int
  6296. main ()
  6297. {
  6298. return ares_init ();
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. if ac_fn_cxx_try_link "$LINENO"; then :
  6304. ac_cv_lib_cares_ares_init=yes
  6305. else
  6306. ac_cv_lib_cares_ares_init=no
  6307. fi
  6308. rm -f core conftest.err conftest.$ac_objext \
  6309. conftest$ac_exeext conftest.$ac_ext
  6310. LIBS=$ac_check_lib_save_LIBS
  6311. fi
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6313. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6314. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6315. have_libcares=yes
  6316. fi
  6317. if test "x$have_libcares" != "xyes"; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6319. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6320. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. ac_check_lib_save_LIBS=$LIBS
  6324. LIBS="-lcares -lrt $LIBS"
  6325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6326. /* end confdefs.h. */
  6327. /* Override any GCC internal prototype to avoid an error.
  6328. Use char because int might match the return type of a GCC
  6329. builtin and then its argument prototype would still apply. */
  6330. #ifdef __cplusplus
  6331. extern "C"
  6332. #endif
  6333. char ares_init ();
  6334. int
  6335. main ()
  6336. {
  6337. return ares_init ();
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. if ac_fn_cxx_try_link "$LINENO"; then :
  6343. ac_cv_lib_cares_ares_init=yes
  6344. else
  6345. ac_cv_lib_cares_ares_init=no
  6346. fi
  6347. rm -f core conftest.err conftest.$ac_objext \
  6348. conftest$ac_exeext conftest.$ac_ext
  6349. LIBS=$ac_check_lib_save_LIBS
  6350. fi
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6352. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6353. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6354. have_libcares=yes need_librt=yes
  6355. fi
  6356. fi
  6357. if test "x$have_libcares" = "xyes"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6359. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end confdefs.h. */
  6362. #include <ares.h>
  6363. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6364. int
  6365. main ()
  6366. {
  6367. ares_gethostbyname((ares_channel)0, "foo", 0, callback, 0);
  6368. ;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_cxx_try_compile "$LINENO"; then :
  6373. have_libcares1_5=yes
  6374. else
  6375. have_libcares1_5=no
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6379. $as_echo "$have_libcares1_5" >&6; }
  6380. if test "x$have_libcares1_5" = "xyes"; then
  6381. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6382. fi
  6383. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6384. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6385. if test "x$need_librt" = "xyes"; then
  6386. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6387. fi
  6388. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6389. fi
  6390. LIBS=$LIBS_save
  6391. CPPFLAGS=$CPPFLAGS_save
  6392. if test "x$have_libcares" != "xyes" &&
  6393. test "x$with_libcares_requested" = "xyes"; then
  6394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6396. as_fn_error $? "libcares is requested but not found in the system.
  6397. See \`config.log' for more details" "$LINENO" 5 ; }
  6398. fi
  6399. fi
  6400. # Check availability of libz
  6401. if test "x$with_libz" = "xyes"; then
  6402. # Check whether --with-libz-prefix was given.
  6403. if test "${with_libz_prefix+set}" = set; then :
  6404. withval=$with_libz_prefix; libz_prefix=$withval
  6405. else
  6406. libz_prefix=""
  6407. fi
  6408. if test "x$libz_prefix" = "x"; then
  6409. libz_prefix="/usr"
  6410. fi
  6411. libz_prefix_lib=$libz_prefix/lib
  6412. libz_prefix_include=$libz_prefix/include
  6413. LIBS_save=$LIBS
  6414. CPPFLAGS_save=$CPPFLAGS
  6415. LIBS="-L$libz_prefix_lib $LIBS"
  6416. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6418. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6419. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. ac_check_lib_save_LIBS=$LIBS
  6423. LIBS="-lz $LIBS"
  6424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6425. /* end confdefs.h. */
  6426. /* Override any GCC internal prototype to avoid an error.
  6427. Use char because int might match the return type of a GCC
  6428. builtin and then its argument prototype would still apply. */
  6429. #ifdef __cplusplus
  6430. extern "C"
  6431. #endif
  6432. char zlibVersion ();
  6433. int
  6434. main ()
  6435. {
  6436. return zlibVersion ();
  6437. ;
  6438. return 0;
  6439. }
  6440. _ACEOF
  6441. if ac_fn_cxx_try_link "$LINENO"; then :
  6442. ac_cv_lib_z_zlibVersion=yes
  6443. else
  6444. ac_cv_lib_z_zlibVersion=no
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext \
  6447. conftest$ac_exeext conftest.$ac_ext
  6448. LIBS=$ac_check_lib_save_LIBS
  6449. fi
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6451. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6452. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6453. have_libz=yes
  6454. fi
  6455. if test "x$have_libz" = "xyes"; then
  6456. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6457. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6458. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6459. fi
  6460. LIBS=$LIBS_save
  6461. CPPFLAGS=$CPPFLAGS_save
  6462. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6465. as_fn_error $? "libz is requested but not found in the system.
  6466. See \`config.log' for more details" "$LINENO" 5 ; }
  6467. fi
  6468. fi
  6469. # Define variables based on the result of the checks for libraries.
  6470. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6471. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6472. if true; then
  6473. ENABLE_SSL_TRUE=
  6474. ENABLE_SSL_FALSE='#'
  6475. else
  6476. ENABLE_SSL_TRUE='#'
  6477. ENABLE_SSL_FALSE=
  6478. fi
  6479. else
  6480. if false; then
  6481. ENABLE_SSL_TRUE=
  6482. ENABLE_SSL_FALSE='#'
  6483. else
  6484. ENABLE_SSL_TRUE='#'
  6485. ENABLE_SSL_FALSE=
  6486. fi
  6487. fi
  6488. if test "x$have_libgnutls" = "xyes" ; then
  6489. HAVE_LIBGNUTLS_TRUE=
  6490. HAVE_LIBGNUTLS_FALSE='#'
  6491. else
  6492. HAVE_LIBGNUTLS_TRUE='#'
  6493. HAVE_LIBGNUTLS_FALSE=
  6494. fi
  6495. if test "x$have_openssl" = "xyes" ; then
  6496. HAVE_LIBSSL_TRUE=
  6497. HAVE_LIBSSL_FALSE='#'
  6498. else
  6499. HAVE_LIBSSL_TRUE='#'
  6500. HAVE_LIBSSL_FALSE=
  6501. fi
  6502. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6503. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6504. if true; then
  6505. ENABLE_MESSAGE_DIGEST_TRUE=
  6506. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6507. else
  6508. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6509. ENABLE_MESSAGE_DIGEST_FALSE=
  6510. fi
  6511. enable_message_digest=yes
  6512. else
  6513. if false; then
  6514. ENABLE_MESSAGE_DIGEST_TRUE=
  6515. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6516. else
  6517. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6518. ENABLE_MESSAGE_DIGEST_FALSE=
  6519. fi
  6520. fi
  6521. if test "x$enable_bittorrent" = "xyes" &&
  6522. test "x$enable_message_digest" = "xyes"; then
  6523. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6524. if true; then
  6525. ENABLE_BITTORRENT_TRUE=
  6526. ENABLE_BITTORRENT_FALSE='#'
  6527. else
  6528. ENABLE_BITTORRENT_TRUE='#'
  6529. ENABLE_BITTORRENT_FALSE=
  6530. fi
  6531. else
  6532. if test "x$enable_bittorrent_requested" = "xyes"; then
  6533. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6535. as_fn_error $? "bittorrent is requested but cannot be enabled with current\
  6536. configuration.\
  6537. Make sure that dependent libraries are installed and configure script options\
  6538. are correct.
  6539. See \`config.log' for more details" "$LINENO" 5 ; }
  6540. fi
  6541. enable_bittorrent=no
  6542. if false; then
  6543. ENABLE_BITTORRENT_TRUE=
  6544. ENABLE_BITTORRENT_FALSE='#'
  6545. else
  6546. ENABLE_BITTORRENT_TRUE='#'
  6547. ENABLE_BITTORRENT_FALSE=
  6548. fi
  6549. fi
  6550. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6551. test "x$enable_metalink" = "xyes"; then
  6552. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6553. if true; then
  6554. ENABLE_METALINK_TRUE=
  6555. ENABLE_METALINK_FALSE='#'
  6556. else
  6557. ENABLE_METALINK_TRUE='#'
  6558. ENABLE_METALINK_FALSE=
  6559. fi
  6560. else
  6561. if test "x$enable_metalink_requested" = "xyes"; then
  6562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6564. as_fn_error $? "metalink is requested but cannot be enabled with current\
  6565. configuration.\
  6566. Make sure that dependent libraries are installed and configure script options\
  6567. are correct.
  6568. See \`config.log' for more details" "$LINENO" 5 ; }
  6569. fi
  6570. enable_metalink=no
  6571. if false; then
  6572. ENABLE_METALINK_TRUE=
  6573. ENABLE_METALINK_FALSE='#'
  6574. else
  6575. ENABLE_METALINK_TRUE='#'
  6576. ENABLE_METALINK_FALSE=
  6577. fi
  6578. fi
  6579. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6580. ENABLE_METALINK_LIBXML2_TRUE=
  6581. ENABLE_METALINK_LIBXML2_FALSE='#'
  6582. else
  6583. ENABLE_METALINK_LIBXML2_TRUE='#'
  6584. ENABLE_METALINK_LIBXML2_FALSE=
  6585. fi
  6586. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6587. ENABLE_METALINK_LIBEXPAT_TRUE=
  6588. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6589. else
  6590. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6591. ENABLE_METALINK_LIBEXPAT_FALSE=
  6592. fi
  6593. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6594. enable_xml_rpc=yes
  6595. fi
  6596. if test "x$enable_xml_rpc" = "xyes"; then
  6597. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6598. fi
  6599. if test "x$enable_xml_rpc" = "xyes"; then
  6600. ENABLE_XML_RPC_TRUE=
  6601. ENABLE_XML_RPC_FALSE='#'
  6602. else
  6603. ENABLE_XML_RPC_TRUE='#'
  6604. ENABLE_XML_RPC_FALSE=
  6605. fi
  6606. if test "x$have_libxml2" = "xyes"; then
  6607. HAVE_LIBXML2_TRUE=
  6608. HAVE_LIBXML2_FALSE='#'
  6609. else
  6610. HAVE_LIBXML2_TRUE='#'
  6611. HAVE_LIBXML2_FALSE=
  6612. fi
  6613. if test "x$have_libexpat" = "xyes"; then
  6614. HAVE_LIBEXPAT_TRUE=
  6615. HAVE_LIBEXPAT_FALSE='#'
  6616. else
  6617. HAVE_LIBEXPAT_TRUE='#'
  6618. HAVE_LIBEXPAT_FALSE=
  6619. fi
  6620. if test "x$have_libcares" = "xyes"; then
  6621. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6622. if true; then
  6623. ENABLE_ASYNC_DNS_TRUE=
  6624. ENABLE_ASYNC_DNS_FALSE='#'
  6625. else
  6626. ENABLE_ASYNC_DNS_TRUE='#'
  6627. ENABLE_ASYNC_DNS_FALSE=
  6628. fi
  6629. else
  6630. if false; then
  6631. ENABLE_ASYNC_DNS_TRUE=
  6632. ENABLE_ASYNC_DNS_FALSE='#'
  6633. else
  6634. ENABLE_ASYNC_DNS_TRUE='#'
  6635. ENABLE_ASYNC_DNS_FALSE=
  6636. fi
  6637. fi
  6638. # Set conditional for libz
  6639. if test "x$have_libz" = "xyes"; then
  6640. HAVE_LIBZ_TRUE=
  6641. HAVE_LIBZ_FALSE='#'
  6642. else
  6643. HAVE_LIBZ_TRUE='#'
  6644. HAVE_LIBZ_FALSE=
  6645. fi
  6646. # Set conditional for sqlite3
  6647. if test "x$have_sqlite3" = "xyes"; then
  6648. HAVE_SQLITE3_TRUE=
  6649. HAVE_SQLITE3_FALSE='#'
  6650. else
  6651. HAVE_SQLITE3_TRUE='#'
  6652. HAVE_SQLITE3_FALSE=
  6653. fi
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6655. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6656. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. ac_func_search_save_LIBS=$LIBS
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. /* Override any GCC internal prototype to avoid an error.
  6663. Use char because int might match the return type of a GCC
  6664. builtin and then its argument prototype would still apply. */
  6665. #ifdef __cplusplus
  6666. extern "C"
  6667. #endif
  6668. char clock_gettime ();
  6669. int
  6670. main ()
  6671. {
  6672. return clock_gettime ();
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. for ac_lib in '' rt; do
  6678. if test -z "$ac_lib"; then
  6679. ac_res="none required"
  6680. else
  6681. ac_res=-l$ac_lib
  6682. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6683. fi
  6684. if ac_fn_cxx_try_link "$LINENO"; then :
  6685. ac_cv_search_clock_gettime=$ac_res
  6686. fi
  6687. rm -f core conftest.err conftest.$ac_objext \
  6688. conftest$ac_exeext
  6689. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6690. break
  6691. fi
  6692. done
  6693. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6694. else
  6695. ac_cv_search_clock_gettime=no
  6696. fi
  6697. rm conftest.$ac_ext
  6698. LIBS=$ac_func_search_save_LIBS
  6699. fi
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6701. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6702. ac_res=$ac_cv_search_clock_gettime
  6703. if test "$ac_res" != no; then :
  6704. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6705. fi
  6706. case "$target" in
  6707. *solaris*)
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6709. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6710. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. ac_func_search_save_LIBS=$LIBS
  6714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6715. /* end confdefs.h. */
  6716. /* Override any GCC internal prototype to avoid an error.
  6717. Use char because int might match the return type of a GCC
  6718. builtin and then its argument prototype would still apply. */
  6719. #ifdef __cplusplus
  6720. extern "C"
  6721. #endif
  6722. char getaddrinfo ();
  6723. int
  6724. main ()
  6725. {
  6726. return getaddrinfo ();
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. for ac_lib in '' nsl socket; do
  6732. if test -z "$ac_lib"; then
  6733. ac_res="none required"
  6734. else
  6735. ac_res=-l$ac_lib
  6736. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6737. fi
  6738. if ac_fn_cxx_try_link "$LINENO"; then :
  6739. ac_cv_search_getaddrinfo=$ac_res
  6740. fi
  6741. rm -f core conftest.err conftest.$ac_objext \
  6742. conftest$ac_exeext
  6743. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6744. break
  6745. fi
  6746. done
  6747. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6748. else
  6749. ac_cv_search_getaddrinfo=no
  6750. fi
  6751. rm conftest.$ac_ext
  6752. LIBS=$ac_func_search_save_LIBS
  6753. fi
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6755. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6756. ac_res=$ac_cv_search_getaddrinfo
  6757. if test "$ac_res" != no; then :
  6758. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6759. fi
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6761. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6762. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6763. $as_echo_n "(cached) " >&6
  6764. else
  6765. ac_func_search_save_LIBS=$LIBS
  6766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6767. /* end confdefs.h. */
  6768. /* Override any GCC internal prototype to avoid an error.
  6769. Use char because int might match the return type of a GCC
  6770. builtin and then its argument prototype would still apply. */
  6771. #ifdef __cplusplus
  6772. extern "C"
  6773. #endif
  6774. char inet_aton ();
  6775. int
  6776. main ()
  6777. {
  6778. return inet_aton ();
  6779. ;
  6780. return 0;
  6781. }
  6782. _ACEOF
  6783. for ac_lib in '' nsl socket; do
  6784. if test -z "$ac_lib"; then
  6785. ac_res="none required"
  6786. else
  6787. ac_res=-l$ac_lib
  6788. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6789. fi
  6790. if ac_fn_cxx_try_link "$LINENO"; then :
  6791. ac_cv_search_inet_aton=$ac_res
  6792. fi
  6793. rm -f core conftest.err conftest.$ac_objext \
  6794. conftest$ac_exeext
  6795. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6796. break
  6797. fi
  6798. done
  6799. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6800. else
  6801. ac_cv_search_inet_aton=no
  6802. fi
  6803. rm conftest.$ac_ext
  6804. LIBS=$ac_func_search_save_LIBS
  6805. fi
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6807. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6808. ac_res=$ac_cv_search_inet_aton
  6809. if test "$ac_res" != no; then :
  6810. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6811. fi
  6812. ;;
  6813. esac
  6814. # Checks for header files.
  6815. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6816. # for constant arguments. Useless!
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6818. $as_echo_n "checking for working alloca.h... " >&6; }
  6819. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6823. /* end confdefs.h. */
  6824. #include <alloca.h>
  6825. int
  6826. main ()
  6827. {
  6828. char *p = (char *) alloca (2 * sizeof (int));
  6829. if (p) return 0;
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. if ac_fn_cxx_try_link "$LINENO"; then :
  6835. ac_cv_working_alloca_h=yes
  6836. else
  6837. ac_cv_working_alloca_h=no
  6838. fi
  6839. rm -f core conftest.err conftest.$ac_objext \
  6840. conftest$ac_exeext conftest.$ac_ext
  6841. fi
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6843. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6844. if test $ac_cv_working_alloca_h = yes; then
  6845. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6846. fi
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6848. $as_echo_n "checking for alloca... " >&6; }
  6849. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6853. /* end confdefs.h. */
  6854. #ifdef __GNUC__
  6855. # define alloca __builtin_alloca
  6856. #else
  6857. # ifdef _MSC_VER
  6858. # include <malloc.h>
  6859. # define alloca _alloca
  6860. # else
  6861. # ifdef HAVE_ALLOCA_H
  6862. # include <alloca.h>
  6863. # else
  6864. # ifdef _AIX
  6865. #pragma alloca
  6866. # else
  6867. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6868. char *alloca ();
  6869. # endif
  6870. # endif
  6871. # endif
  6872. # endif
  6873. #endif
  6874. int
  6875. main ()
  6876. {
  6877. char *p = (char *) alloca (1);
  6878. if (p) return 0;
  6879. ;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_cxx_try_link "$LINENO"; then :
  6884. ac_cv_func_alloca_works=yes
  6885. else
  6886. ac_cv_func_alloca_works=no
  6887. fi
  6888. rm -f core conftest.err conftest.$ac_objext \
  6889. conftest$ac_exeext conftest.$ac_ext
  6890. fi
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6892. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6893. if test $ac_cv_func_alloca_works = yes; then
  6894. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6895. else
  6896. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6897. # that cause trouble. Some versions do not even contain alloca or
  6898. # contain a buggy version. If you still want to use their alloca,
  6899. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6900. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6901. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6903. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6904. if test "${ac_cv_os_cray+set}" = set; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6908. /* end confdefs.h. */
  6909. #if defined CRAY && ! defined CRAY2
  6910. webecray
  6911. #else
  6912. wenotbecray
  6913. #endif
  6914. _ACEOF
  6915. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6916. $EGREP "webecray" >/dev/null 2>&1; then :
  6917. ac_cv_os_cray=yes
  6918. else
  6919. ac_cv_os_cray=no
  6920. fi
  6921. rm -f conftest*
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6924. $as_echo "$ac_cv_os_cray" >&6; }
  6925. if test $ac_cv_os_cray = yes; then
  6926. for ac_func in _getb67 GETB67 getb67; do
  6927. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6928. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6929. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6930. cat >>confdefs.h <<_ACEOF
  6931. #define CRAY_STACKSEG_END $ac_func
  6932. _ACEOF
  6933. break
  6934. fi
  6935. done
  6936. fi
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6938. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6939. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6940. $as_echo_n "(cached) " >&6
  6941. else
  6942. if test "$cross_compiling" = yes; then :
  6943. ac_cv_c_stack_direction=0
  6944. else
  6945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6946. /* end confdefs.h. */
  6947. $ac_includes_default
  6948. int
  6949. find_stack_direction ()
  6950. {
  6951. static char *addr = 0;
  6952. auto char dummy;
  6953. if (addr == 0)
  6954. {
  6955. addr = &dummy;
  6956. return find_stack_direction ();
  6957. }
  6958. else
  6959. return (&dummy > addr) ? 1 : -1;
  6960. }
  6961. int
  6962. main ()
  6963. {
  6964. return find_stack_direction () < 0;
  6965. }
  6966. _ACEOF
  6967. if ac_fn_cxx_try_run "$LINENO"; then :
  6968. ac_cv_c_stack_direction=1
  6969. else
  6970. ac_cv_c_stack_direction=-1
  6971. fi
  6972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6974. fi
  6975. fi
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6977. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6978. cat >>confdefs.h <<_ACEOF
  6979. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6980. _ACEOF
  6981. fi
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6983. $as_echo_n "checking for ANSI C header files... " >&6; }
  6984. if test "${ac_cv_header_stdc+set}" = set; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6988. /* end confdefs.h. */
  6989. #include <stdlib.h>
  6990. #include <stdarg.h>
  6991. #include <string.h>
  6992. #include <float.h>
  6993. int
  6994. main ()
  6995. {
  6996. ;
  6997. return 0;
  6998. }
  6999. _ACEOF
  7000. if ac_fn_cxx_try_compile "$LINENO"; then :
  7001. ac_cv_header_stdc=yes
  7002. else
  7003. ac_cv_header_stdc=no
  7004. fi
  7005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7006. if test $ac_cv_header_stdc = yes; then
  7007. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7009. /* end confdefs.h. */
  7010. #include <string.h>
  7011. _ACEOF
  7012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7013. $EGREP "memchr" >/dev/null 2>&1; then :
  7014. else
  7015. ac_cv_header_stdc=no
  7016. fi
  7017. rm -f conftest*
  7018. fi
  7019. if test $ac_cv_header_stdc = yes; then
  7020. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7022. /* end confdefs.h. */
  7023. #include <stdlib.h>
  7024. _ACEOF
  7025. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7026. $EGREP "free" >/dev/null 2>&1; then :
  7027. else
  7028. ac_cv_header_stdc=no
  7029. fi
  7030. rm -f conftest*
  7031. fi
  7032. if test $ac_cv_header_stdc = yes; then
  7033. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7034. if test "$cross_compiling" = yes; then :
  7035. :
  7036. else
  7037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7038. /* end confdefs.h. */
  7039. #include <ctype.h>
  7040. #include <stdlib.h>
  7041. #if ((' ' & 0x0FF) == 0x020)
  7042. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7043. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7044. #else
  7045. # define ISLOWER(c) \
  7046. (('a' <= (c) && (c) <= 'i') \
  7047. || ('j' <= (c) && (c) <= 'r') \
  7048. || ('s' <= (c) && (c) <= 'z'))
  7049. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7050. #endif
  7051. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7052. int
  7053. main ()
  7054. {
  7055. int i;
  7056. for (i = 0; i < 256; i++)
  7057. if (XOR (islower (i), ISLOWER (i))
  7058. || toupper (i) != TOUPPER (i))
  7059. return 2;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. if ac_fn_cxx_try_run "$LINENO"; then :
  7064. else
  7065. ac_cv_header_stdc=no
  7066. fi
  7067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7069. fi
  7070. fi
  7071. fi
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7073. $as_echo "$ac_cv_header_stdc" >&6; }
  7074. if test $ac_cv_header_stdc = yes; then
  7075. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7076. fi
  7077. case "$target" in
  7078. *mingw*)
  7079. for ac_header in windows.h \
  7080. winsock2.h \
  7081. ws2tcpip.h \
  7082. mmsystem.h
  7083. do :
  7084. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7085. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7086. # include <windows.h>
  7087. #endif
  7088. "
  7089. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7090. cat >>confdefs.h <<_ACEOF
  7091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7092. _ACEOF
  7093. fi
  7094. done
  7095. ;;
  7096. esac
  7097. for ac_header in argz.h \
  7098. arpa/inet.h \
  7099. fcntl.h \
  7100. float.h \
  7101. inttypes.h \
  7102. io.h \
  7103. langinfo.h \
  7104. libintl.h \
  7105. limits.h \
  7106. locale.h \
  7107. malloc.h \
  7108. netdb.h \
  7109. netinet/in.h \
  7110. poll.h \
  7111. port.h \
  7112. stddef.h \
  7113. stdint.h \
  7114. stdio_ext.h \
  7115. stdlib.h \
  7116. string.h \
  7117. strings.h \
  7118. sys/ioctl.h \
  7119. sys/param.h \
  7120. sys/socket.h \
  7121. sys/time.h \
  7122. termios.h \
  7123. unistd.h \
  7124. utime.h \
  7125. wchar.h \
  7126. ifaddrs.h
  7127. do :
  7128. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7129. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7130. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7131. cat >>confdefs.h <<_ACEOF
  7132. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7133. _ACEOF
  7134. fi
  7135. done
  7136. # Checks for typedefs, structures, and compiler characteristics.
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7138. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7139. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7143. /* end confdefs.h. */
  7144. #include <stdbool.h>
  7145. #ifndef bool
  7146. "error: bool is not defined"
  7147. #endif
  7148. #ifndef false
  7149. "error: false is not defined"
  7150. #endif
  7151. #if false
  7152. "error: false is not 0"
  7153. #endif
  7154. #ifndef true
  7155. "error: true is not defined"
  7156. #endif
  7157. #if true != 1
  7158. "error: true is not 1"
  7159. #endif
  7160. #ifndef __bool_true_false_are_defined
  7161. "error: __bool_true_false_are_defined is not defined"
  7162. #endif
  7163. struct s { _Bool s: 1; _Bool t; } s;
  7164. char a[true == 1 ? 1 : -1];
  7165. char b[false == 0 ? 1 : -1];
  7166. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7167. char d[(bool) 0.5 == true ? 1 : -1];
  7168. bool e = &s;
  7169. char f[(_Bool) 0.0 == false ? 1 : -1];
  7170. char g[true];
  7171. char h[sizeof (_Bool)];
  7172. char i[sizeof s.t];
  7173. enum { j = false, k = true, l = false * true, m = true * 256 };
  7174. /* The following fails for
  7175. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7176. _Bool n[m];
  7177. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7178. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7179. # if defined __xlc__ || defined __GNUC__
  7180. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7181. reported by James Lemley on 2005-10-05; see
  7182. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7183. This test is not quite right, since xlc is allowed to
  7184. reject this program, as the initializer for xlcbug is
  7185. not one of the forms that C requires support for.
  7186. However, doing the test right would require a runtime
  7187. test, and that would make cross-compilation harder.
  7188. Let us hope that IBM fixes the xlc bug, and also adds
  7189. support for this kind of constant expression. In the
  7190. meantime, this test will reject xlc, which is OK, since
  7191. our stdbool.h substitute should suffice. We also test
  7192. this with GCC, where it should work, to detect more
  7193. quickly whether someone messes up the test in the
  7194. future. */
  7195. char digs[] = "0123456789";
  7196. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7197. # endif
  7198. /* Catch a bug in an HP-UX C compiler. See
  7199. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7200. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7201. */
  7202. _Bool q = true;
  7203. _Bool *pq = &q;
  7204. int
  7205. main ()
  7206. {
  7207. *pq |= q;
  7208. *pq |= ! q;
  7209. /* Refer to every declared value, to avoid compiler optimizations. */
  7210. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7211. + !m + !n + !o + !p + !q + !pq);
  7212. ;
  7213. return 0;
  7214. }
  7215. _ACEOF
  7216. if ac_fn_cxx_try_compile "$LINENO"; then :
  7217. ac_cv_header_stdbool_h=yes
  7218. else
  7219. ac_cv_header_stdbool_h=no
  7220. fi
  7221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7224. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7225. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7226. if test "x$ac_cv_type__Bool" = x""yes; then :
  7227. cat >>confdefs.h <<_ACEOF
  7228. #define HAVE__BOOL 1
  7229. _ACEOF
  7230. fi
  7231. if test $ac_cv_header_stdbool_h = yes; then
  7232. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7235. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7236. if test "${ac_cv_c_const+set}" = set; then :
  7237. $as_echo_n "(cached) " >&6
  7238. else
  7239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7240. /* end confdefs.h. */
  7241. int
  7242. main ()
  7243. {
  7244. /* FIXME: Include the comments suggested by Paul. */
  7245. #ifndef __cplusplus
  7246. /* Ultrix mips cc rejects this. */
  7247. typedef int charset[2];
  7248. const charset cs;
  7249. /* SunOS 4.1.1 cc rejects this. */
  7250. char const *const *pcpcc;
  7251. char **ppc;
  7252. /* NEC SVR4.0.2 mips cc rejects this. */
  7253. struct point {int x, y;};
  7254. static struct point const zero = {0,0};
  7255. /* AIX XL C 1.02.0.0 rejects this.
  7256. It does not let you subtract one const X* pointer from another in
  7257. an arm of an if-expression whose if-part is not a constant
  7258. expression */
  7259. const char *g = "string";
  7260. pcpcc = &g + (g ? g-g : 0);
  7261. /* HPUX 7.0 cc rejects these. */
  7262. ++pcpcc;
  7263. ppc = (char**) pcpcc;
  7264. pcpcc = (char const *const *) ppc;
  7265. { /* SCO 3.2v4 cc rejects this. */
  7266. char *t;
  7267. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7268. *t++ = 0;
  7269. if (s) return 0;
  7270. }
  7271. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7272. int x[] = {25, 17};
  7273. const int *foo = &x[0];
  7274. ++foo;
  7275. }
  7276. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7277. typedef const int *iptr;
  7278. iptr p = 0;
  7279. ++p;
  7280. }
  7281. { /* AIX XL C 1.02.0.0 rejects this saying
  7282. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7283. struct s { int j; const int *ap[3]; };
  7284. struct s *b; b->j = 5;
  7285. }
  7286. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7287. const int foo = 10;
  7288. if (!foo) return 0;
  7289. }
  7290. return !cs[0] && !zero.x;
  7291. #endif
  7292. ;
  7293. return 0;
  7294. }
  7295. _ACEOF
  7296. if ac_fn_cxx_try_compile "$LINENO"; then :
  7297. ac_cv_c_const=yes
  7298. else
  7299. ac_cv_c_const=no
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7304. $as_echo "$ac_cv_c_const" >&6; }
  7305. if test $ac_cv_c_const = no; then
  7306. $as_echo "#define const /**/" >>confdefs.h
  7307. fi
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7309. $as_echo_n "checking for inline... " >&6; }
  7310. if test "${ac_cv_c_inline+set}" = set; then :
  7311. $as_echo_n "(cached) " >&6
  7312. else
  7313. ac_cv_c_inline=no
  7314. for ac_kw in inline __inline__ __inline; do
  7315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7316. /* end confdefs.h. */
  7317. #ifndef __cplusplus
  7318. typedef int foo_t;
  7319. static $ac_kw foo_t static_foo () {return 0; }
  7320. $ac_kw foo_t foo () {return 0; }
  7321. #endif
  7322. _ACEOF
  7323. if ac_fn_cxx_try_compile "$LINENO"; then :
  7324. ac_cv_c_inline=$ac_kw
  7325. fi
  7326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7327. test "$ac_cv_c_inline" != no && break
  7328. done
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7331. $as_echo "$ac_cv_c_inline" >&6; }
  7332. case $ac_cv_c_inline in
  7333. inline | yes) ;;
  7334. *)
  7335. case $ac_cv_c_inline in
  7336. no) ac_val=;;
  7337. *) ac_val=$ac_cv_c_inline;;
  7338. esac
  7339. cat >>confdefs.h <<_ACEOF
  7340. #ifndef __cplusplus
  7341. #define inline $ac_val
  7342. #endif
  7343. _ACEOF
  7344. ;;
  7345. esac
  7346. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7347. case $ac_cv_c_int16_t in #(
  7348. no|yes) ;; #(
  7349. *)
  7350. cat >>confdefs.h <<_ACEOF
  7351. #define int16_t $ac_cv_c_int16_t
  7352. _ACEOF
  7353. ;;
  7354. esac
  7355. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7356. case $ac_cv_c_int32_t in #(
  7357. no|yes) ;; #(
  7358. *)
  7359. cat >>confdefs.h <<_ACEOF
  7360. #define int32_t $ac_cv_c_int32_t
  7361. _ACEOF
  7362. ;;
  7363. esac
  7364. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7365. case $ac_cv_c_int64_t in #(
  7366. no|yes) ;; #(
  7367. *)
  7368. cat >>confdefs.h <<_ACEOF
  7369. #define int64_t $ac_cv_c_int64_t
  7370. _ACEOF
  7371. ;;
  7372. esac
  7373. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7374. case $ac_cv_c_int8_t in #(
  7375. no|yes) ;; #(
  7376. *)
  7377. cat >>confdefs.h <<_ACEOF
  7378. #define int8_t $ac_cv_c_int8_t
  7379. _ACEOF
  7380. ;;
  7381. esac
  7382. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7383. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7384. else
  7385. cat >>confdefs.h <<_ACEOF
  7386. #define mode_t int
  7387. _ACEOF
  7388. fi
  7389. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7390. if test "x$ac_cv_type_off_t" = x""yes; then :
  7391. else
  7392. cat >>confdefs.h <<_ACEOF
  7393. #define off_t long int
  7394. _ACEOF
  7395. fi
  7396. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7397. if test "x$ac_cv_type_size_t" = x""yes; then :
  7398. else
  7399. cat >>confdefs.h <<_ACEOF
  7400. #define size_t unsigned int
  7401. _ACEOF
  7402. fi
  7403. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7404. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7405. else
  7406. cat >>confdefs.h <<_ACEOF
  7407. #define ssize_t int
  7408. _ACEOF
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7411. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7412. if test "${ac_cv_header_time+set}" = set; then :
  7413. $as_echo_n "(cached) " >&6
  7414. else
  7415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7416. /* end confdefs.h. */
  7417. #include <sys/types.h>
  7418. #include <sys/time.h>
  7419. #include <time.h>
  7420. int
  7421. main ()
  7422. {
  7423. if ((struct tm *) 0)
  7424. return 0;
  7425. ;
  7426. return 0;
  7427. }
  7428. _ACEOF
  7429. if ac_fn_cxx_try_compile "$LINENO"; then :
  7430. ac_cv_header_time=yes
  7431. else
  7432. ac_cv_header_time=no
  7433. fi
  7434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7435. fi
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7437. $as_echo "$ac_cv_header_time" >&6; }
  7438. if test $ac_cv_header_time = yes; then
  7439. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7440. fi
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7442. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7443. if test "${ac_cv_struct_tm+set}" = set; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7447. /* end confdefs.h. */
  7448. #include <sys/types.h>
  7449. #include <time.h>
  7450. int
  7451. main ()
  7452. {
  7453. struct tm tm;
  7454. int *p = &tm.tm_sec;
  7455. return !p;
  7456. ;
  7457. return 0;
  7458. }
  7459. _ACEOF
  7460. if ac_fn_cxx_try_compile "$LINENO"; then :
  7461. ac_cv_struct_tm=time.h
  7462. else
  7463. ac_cv_struct_tm=sys/time.h
  7464. fi
  7465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7466. fi
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7468. $as_echo "$ac_cv_struct_tm" >&6; }
  7469. if test $ac_cv_struct_tm = sys/time.h; then
  7470. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7471. fi
  7472. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7473. case $ac_cv_c_uint16_t in #(
  7474. no|yes) ;; #(
  7475. *)
  7476. cat >>confdefs.h <<_ACEOF
  7477. #define uint16_t $ac_cv_c_uint16_t
  7478. _ACEOF
  7479. ;;
  7480. esac
  7481. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7482. case $ac_cv_c_uint32_t in #(
  7483. no|yes) ;; #(
  7484. *)
  7485. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7486. cat >>confdefs.h <<_ACEOF
  7487. #define uint32_t $ac_cv_c_uint32_t
  7488. _ACEOF
  7489. ;;
  7490. esac
  7491. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7492. case $ac_cv_c_uint64_t in #(
  7493. no|yes) ;; #(
  7494. *)
  7495. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7496. cat >>confdefs.h <<_ACEOF
  7497. #define uint64_t $ac_cv_c_uint64_t
  7498. _ACEOF
  7499. ;;
  7500. esac
  7501. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7502. case $ac_cv_c_uint8_t in #(
  7503. no|yes) ;; #(
  7504. *)
  7505. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7506. cat >>confdefs.h <<_ACEOF
  7507. #define uint8_t $ac_cv_c_uint8_t
  7508. _ACEOF
  7509. ;;
  7510. esac
  7511. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7512. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7513. else
  7514. cat >>confdefs.h <<_ACEOF
  7515. #define pid_t int
  7516. _ACEOF
  7517. fi
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7519. $as_echo_n "checking for working volatile... " >&6; }
  7520. if test "${ac_cv_c_volatile+set}" = set; then :
  7521. $as_echo_n "(cached) " >&6
  7522. else
  7523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7524. /* end confdefs.h. */
  7525. int
  7526. main ()
  7527. {
  7528. volatile int x;
  7529. int * volatile y = (int *) 0;
  7530. return !x && !y;
  7531. ;
  7532. return 0;
  7533. }
  7534. _ACEOF
  7535. if ac_fn_cxx_try_compile "$LINENO"; then :
  7536. ac_cv_c_volatile=yes
  7537. else
  7538. ac_cv_c_volatile=no
  7539. fi
  7540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7541. fi
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7543. $as_echo "$ac_cv_c_volatile" >&6; }
  7544. if test $ac_cv_c_volatile = no; then
  7545. $as_echo "#define volatile /**/" >>confdefs.h
  7546. fi
  7547. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7548. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7549. cat >>confdefs.h <<_ACEOF
  7550. #define HAVE_PTRDIFF_T 1
  7551. _ACEOF
  7552. fi
  7553. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7554. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7555. cat >>confdefs.h <<_ACEOF
  7556. #define HAVE_STRUCT_TIMESPEC 1
  7557. _ACEOF
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7560. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7561. if test "${ac_cv_c_bigendian+set}" = set; then :
  7562. $as_echo_n "(cached) " >&6
  7563. else
  7564. ac_cv_c_bigendian=unknown
  7565. # See if we're dealing with a universal compiler.
  7566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7567. /* end confdefs.h. */
  7568. #ifndef __APPLE_CC__
  7569. not a universal capable compiler
  7570. #endif
  7571. typedef int dummy;
  7572. _ACEOF
  7573. if ac_fn_cxx_try_compile "$LINENO"; then :
  7574. # Check for potential -arch flags. It is not universal unless
  7575. # there are at least two -arch flags with different values.
  7576. ac_arch=
  7577. ac_prev=
  7578. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7579. if test -n "$ac_prev"; then
  7580. case $ac_word in
  7581. i?86 | x86_64 | ppc | ppc64)
  7582. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7583. ac_arch=$ac_word
  7584. else
  7585. ac_cv_c_bigendian=universal
  7586. break
  7587. fi
  7588. ;;
  7589. esac
  7590. ac_prev=
  7591. elif test "x$ac_word" = "x-arch"; then
  7592. ac_prev=arch
  7593. fi
  7594. done
  7595. fi
  7596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7597. if test $ac_cv_c_bigendian = unknown; then
  7598. # See if sys/param.h defines the BYTE_ORDER macro.
  7599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7600. /* end confdefs.h. */
  7601. #include <sys/types.h>
  7602. #include <sys/param.h>
  7603. int
  7604. main ()
  7605. {
  7606. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7607. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7608. && LITTLE_ENDIAN)
  7609. bogus endian macros
  7610. #endif
  7611. ;
  7612. return 0;
  7613. }
  7614. _ACEOF
  7615. if ac_fn_cxx_try_compile "$LINENO"; then :
  7616. # It does; now see whether it defined to BIG_ENDIAN or not.
  7617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7618. /* end confdefs.h. */
  7619. #include <sys/types.h>
  7620. #include <sys/param.h>
  7621. int
  7622. main ()
  7623. {
  7624. #if BYTE_ORDER != BIG_ENDIAN
  7625. not big endian
  7626. #endif
  7627. ;
  7628. return 0;
  7629. }
  7630. _ACEOF
  7631. if ac_fn_cxx_try_compile "$LINENO"; then :
  7632. ac_cv_c_bigendian=yes
  7633. else
  7634. ac_cv_c_bigendian=no
  7635. fi
  7636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7637. fi
  7638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7639. fi
  7640. if test $ac_cv_c_bigendian = unknown; then
  7641. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7643. /* end confdefs.h. */
  7644. #include <limits.h>
  7645. int
  7646. main ()
  7647. {
  7648. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7649. bogus endian macros
  7650. #endif
  7651. ;
  7652. return 0;
  7653. }
  7654. _ACEOF
  7655. if ac_fn_cxx_try_compile "$LINENO"; then :
  7656. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7658. /* end confdefs.h. */
  7659. #include <limits.h>
  7660. int
  7661. main ()
  7662. {
  7663. #ifndef _BIG_ENDIAN
  7664. not big endian
  7665. #endif
  7666. ;
  7667. return 0;
  7668. }
  7669. _ACEOF
  7670. if ac_fn_cxx_try_compile "$LINENO"; then :
  7671. ac_cv_c_bigendian=yes
  7672. else
  7673. ac_cv_c_bigendian=no
  7674. fi
  7675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7676. fi
  7677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7678. fi
  7679. if test $ac_cv_c_bigendian = unknown; then
  7680. # Compile a test program.
  7681. if test "$cross_compiling" = yes; then :
  7682. # Try to guess by grepping values from an object file.
  7683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7684. /* end confdefs.h. */
  7685. short int ascii_mm[] =
  7686. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7687. short int ascii_ii[] =
  7688. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7689. int use_ascii (int i) {
  7690. return ascii_mm[i] + ascii_ii[i];
  7691. }
  7692. short int ebcdic_ii[] =
  7693. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7694. short int ebcdic_mm[] =
  7695. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7696. int use_ebcdic (int i) {
  7697. return ebcdic_mm[i] + ebcdic_ii[i];
  7698. }
  7699. extern int foo;
  7700. int
  7701. main ()
  7702. {
  7703. return use_ascii (foo) == use_ebcdic (foo);
  7704. ;
  7705. return 0;
  7706. }
  7707. _ACEOF
  7708. if ac_fn_cxx_try_compile "$LINENO"; then :
  7709. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7710. ac_cv_c_bigendian=yes
  7711. fi
  7712. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7713. if test "$ac_cv_c_bigendian" = unknown; then
  7714. ac_cv_c_bigendian=no
  7715. else
  7716. # finding both strings is unlikely to happen, but who knows?
  7717. ac_cv_c_bigendian=unknown
  7718. fi
  7719. fi
  7720. fi
  7721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7722. else
  7723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7724. /* end confdefs.h. */
  7725. $ac_includes_default
  7726. int
  7727. main ()
  7728. {
  7729. /* Are we little or big endian? From Harbison&Steele. */
  7730. union
  7731. {
  7732. long int l;
  7733. char c[sizeof (long int)];
  7734. } u;
  7735. u.l = 1;
  7736. return u.c[sizeof (long int) - 1] == 1;
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. if ac_fn_cxx_try_run "$LINENO"; then :
  7742. ac_cv_c_bigendian=no
  7743. else
  7744. ac_cv_c_bigendian=yes
  7745. fi
  7746. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7747. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7748. fi
  7749. fi
  7750. fi
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7752. $as_echo "$ac_cv_c_bigendian" >&6; }
  7753. case $ac_cv_c_bigendian in #(
  7754. yes)
  7755. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7756. ;; #(
  7757. no)
  7758. ;; #(
  7759. universal)
  7760. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7761. ;; #(
  7762. *)
  7763. as_fn_error $? "unknown endianness
  7764. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7765. esac
  7766. # Check whether --enable-largefile was given.
  7767. if test "${enable_largefile+set}" = set; then :
  7768. enableval=$enable_largefile;
  7769. fi
  7770. if test "$enable_largefile" != no; then
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7772. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7773. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. ac_cv_sys_largefile_CC=no
  7777. if test "$GCC" != yes; then
  7778. ac_save_CC=$CC
  7779. while :; do
  7780. # IRIX 6.2 and later do not support large files by default,
  7781. # so use the C compiler's -n32 option if that helps.
  7782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7783. /* end confdefs.h. */
  7784. #include <sys/types.h>
  7785. /* Check that off_t can represent 2**63 - 1 correctly.
  7786. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7787. since some C++ compilers masquerading as C compilers
  7788. incorrectly reject 9223372036854775807. */
  7789. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7790. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7791. && LARGE_OFF_T % 2147483647 == 1)
  7792. ? 1 : -1];
  7793. int
  7794. main ()
  7795. {
  7796. ;
  7797. return 0;
  7798. }
  7799. _ACEOF
  7800. if ac_fn_cxx_try_compile "$LINENO"; then :
  7801. break
  7802. fi
  7803. rm -f core conftest.err conftest.$ac_objext
  7804. CC="$CC -n32"
  7805. if ac_fn_cxx_try_compile "$LINENO"; then :
  7806. ac_cv_sys_largefile_CC=' -n32'; break
  7807. fi
  7808. rm -f core conftest.err conftest.$ac_objext
  7809. break
  7810. done
  7811. CC=$ac_save_CC
  7812. rm -f conftest.$ac_ext
  7813. fi
  7814. fi
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7816. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7817. if test "$ac_cv_sys_largefile_CC" != no; then
  7818. CC=$CC$ac_cv_sys_largefile_CC
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7821. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7822. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. while :; do
  7826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7827. /* end confdefs.h. */
  7828. #include <sys/types.h>
  7829. /* Check that off_t can represent 2**63 - 1 correctly.
  7830. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7831. since some C++ compilers masquerading as C compilers
  7832. incorrectly reject 9223372036854775807. */
  7833. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7834. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7835. && LARGE_OFF_T % 2147483647 == 1)
  7836. ? 1 : -1];
  7837. int
  7838. main ()
  7839. {
  7840. ;
  7841. return 0;
  7842. }
  7843. _ACEOF
  7844. if ac_fn_cxx_try_compile "$LINENO"; then :
  7845. ac_cv_sys_file_offset_bits=no; break
  7846. fi
  7847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7849. /* end confdefs.h. */
  7850. #define _FILE_OFFSET_BITS 64
  7851. #include <sys/types.h>
  7852. /* Check that off_t can represent 2**63 - 1 correctly.
  7853. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7854. since some C++ compilers masquerading as C compilers
  7855. incorrectly reject 9223372036854775807. */
  7856. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7857. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7858. && LARGE_OFF_T % 2147483647 == 1)
  7859. ? 1 : -1];
  7860. int
  7861. main ()
  7862. {
  7863. ;
  7864. return 0;
  7865. }
  7866. _ACEOF
  7867. if ac_fn_cxx_try_compile "$LINENO"; then :
  7868. ac_cv_sys_file_offset_bits=64; break
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7871. ac_cv_sys_file_offset_bits=unknown
  7872. break
  7873. done
  7874. fi
  7875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7876. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7877. case $ac_cv_sys_file_offset_bits in #(
  7878. no | unknown) ;;
  7879. *)
  7880. cat >>confdefs.h <<_ACEOF
  7881. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7882. _ACEOF
  7883. ;;
  7884. esac
  7885. rm -rf conftest*
  7886. if test $ac_cv_sys_file_offset_bits = unknown; then
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7888. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7889. if test "${ac_cv_sys_large_files+set}" = set; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. while :; do
  7893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7894. /* end confdefs.h. */
  7895. #include <sys/types.h>
  7896. /* Check that off_t can represent 2**63 - 1 correctly.
  7897. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7898. since some C++ compilers masquerading as C compilers
  7899. incorrectly reject 9223372036854775807. */
  7900. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7901. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7902. && LARGE_OFF_T % 2147483647 == 1)
  7903. ? 1 : -1];
  7904. int
  7905. main ()
  7906. {
  7907. ;
  7908. return 0;
  7909. }
  7910. _ACEOF
  7911. if ac_fn_cxx_try_compile "$LINENO"; then :
  7912. ac_cv_sys_large_files=no; break
  7913. fi
  7914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7916. /* end confdefs.h. */
  7917. #define _LARGE_FILES 1
  7918. #include <sys/types.h>
  7919. /* Check that off_t can represent 2**63 - 1 correctly.
  7920. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7921. since some C++ compilers masquerading as C compilers
  7922. incorrectly reject 9223372036854775807. */
  7923. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7924. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7925. && LARGE_OFF_T % 2147483647 == 1)
  7926. ? 1 : -1];
  7927. int
  7928. main ()
  7929. {
  7930. ;
  7931. return 0;
  7932. }
  7933. _ACEOF
  7934. if ac_fn_cxx_try_compile "$LINENO"; then :
  7935. ac_cv_sys_large_files=1; break
  7936. fi
  7937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7938. ac_cv_sys_large_files=unknown
  7939. break
  7940. done
  7941. fi
  7942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7943. $as_echo "$ac_cv_sys_large_files" >&6; }
  7944. case $ac_cv_sys_large_files in #(
  7945. no | unknown) ;;
  7946. *)
  7947. cat >>confdefs.h <<_ACEOF
  7948. #define _LARGE_FILES $ac_cv_sys_large_files
  7949. _ACEOF
  7950. ;;
  7951. esac
  7952. rm -rf conftest*
  7953. fi
  7954. fi
  7955. # Checks for library functions.
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7957. $as_echo_n "checking whether NLS is requested... " >&6; }
  7958. # Check whether --enable-nls was given.
  7959. if test "${enable_nls+set}" = set; then :
  7960. enableval=$enable_nls; USE_NLS=$enableval
  7961. else
  7962. USE_NLS=yes
  7963. fi
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7965. $as_echo "$USE_NLS" >&6; }
  7966. GETTEXT_MACRO_VERSION=0.17
  7967. # Prepare PATH_SEPARATOR.
  7968. # The user is always right.
  7969. if test "${PATH_SEPARATOR+set}" != set; then
  7970. echo "#! /bin/sh" >conf$$.sh
  7971. echo "exit 0" >>conf$$.sh
  7972. chmod +x conf$$.sh
  7973. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7974. PATH_SEPARATOR=';'
  7975. else
  7976. PATH_SEPARATOR=:
  7977. fi
  7978. rm -f conf$$.sh
  7979. fi
  7980. # Find out how to test for executable files. Don't use a zero-byte file,
  7981. # as systems may use methods other than mode bits to determine executability.
  7982. cat >conf$$.file <<_ASEOF
  7983. #! /bin/sh
  7984. exit 0
  7985. _ASEOF
  7986. chmod +x conf$$.file
  7987. if test -x conf$$.file >/dev/null 2>&1; then
  7988. ac_executable_p="test -x"
  7989. else
  7990. ac_executable_p="test -f"
  7991. fi
  7992. rm -f conf$$.file
  7993. # Extract the first word of "msgfmt", so it can be a program name with args.
  7994. set dummy msgfmt; ac_word=$2
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7996. $as_echo_n "checking for $ac_word... " >&6; }
  7997. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. case "$MSGFMT" in
  8001. [\\/]* | ?:[\\/]*)
  8002. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8003. ;;
  8004. *)
  8005. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8006. for ac_dir in $PATH; do
  8007. IFS="$ac_save_IFS"
  8008. test -z "$ac_dir" && ac_dir=.
  8009. for ac_exec_ext in '' $ac_executable_extensions; do
  8010. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8011. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8012. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8013. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8014. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8015. break 2
  8016. fi
  8017. fi
  8018. done
  8019. done
  8020. IFS="$ac_save_IFS"
  8021. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8022. ;;
  8023. esac
  8024. fi
  8025. MSGFMT="$ac_cv_path_MSGFMT"
  8026. if test "$MSGFMT" != ":"; then
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8028. $as_echo "$MSGFMT" >&6; }
  8029. else
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8031. $as_echo "no" >&6; }
  8032. fi
  8033. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8034. set dummy gmsgfmt; ac_word=$2
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8036. $as_echo_n "checking for $ac_word... " >&6; }
  8037. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8038. $as_echo_n "(cached) " >&6
  8039. else
  8040. case $GMSGFMT in
  8041. [\\/]* | ?:[\\/]*)
  8042. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8043. ;;
  8044. *)
  8045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8046. for as_dir in $PATH
  8047. do
  8048. IFS=$as_save_IFS
  8049. test -z "$as_dir" && as_dir=.
  8050. for ac_exec_ext in '' $ac_executable_extensions; do
  8051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8052. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8054. break 2
  8055. fi
  8056. done
  8057. done
  8058. IFS=$as_save_IFS
  8059. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8060. ;;
  8061. esac
  8062. fi
  8063. GMSGFMT=$ac_cv_path_GMSGFMT
  8064. if test -n "$GMSGFMT"; then
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8066. $as_echo "$GMSGFMT" >&6; }
  8067. else
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8069. $as_echo "no" >&6; }
  8070. fi
  8071. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8072. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8073. *) MSGFMT_015=$MSGFMT ;;
  8074. esac
  8075. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8076. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8077. *) GMSGFMT_015=$GMSGFMT ;;
  8078. esac
  8079. # Prepare PATH_SEPARATOR.
  8080. # The user is always right.
  8081. if test "${PATH_SEPARATOR+set}" != set; then
  8082. echo "#! /bin/sh" >conf$$.sh
  8083. echo "exit 0" >>conf$$.sh
  8084. chmod +x conf$$.sh
  8085. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8086. PATH_SEPARATOR=';'
  8087. else
  8088. PATH_SEPARATOR=:
  8089. fi
  8090. rm -f conf$$.sh
  8091. fi
  8092. # Find out how to test for executable files. Don't use a zero-byte file,
  8093. # as systems may use methods other than mode bits to determine executability.
  8094. cat >conf$$.file <<_ASEOF
  8095. #! /bin/sh
  8096. exit 0
  8097. _ASEOF
  8098. chmod +x conf$$.file
  8099. if test -x conf$$.file >/dev/null 2>&1; then
  8100. ac_executable_p="test -x"
  8101. else
  8102. ac_executable_p="test -f"
  8103. fi
  8104. rm -f conf$$.file
  8105. # Extract the first word of "xgettext", so it can be a program name with args.
  8106. set dummy xgettext; ac_word=$2
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8108. $as_echo_n "checking for $ac_word... " >&6; }
  8109. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8110. $as_echo_n "(cached) " >&6
  8111. else
  8112. case "$XGETTEXT" in
  8113. [\\/]* | ?:[\\/]*)
  8114. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8115. ;;
  8116. *)
  8117. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8118. for ac_dir in $PATH; do
  8119. IFS="$ac_save_IFS"
  8120. test -z "$ac_dir" && ac_dir=.
  8121. for ac_exec_ext in '' $ac_executable_extensions; do
  8122. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8123. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8124. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8125. (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
  8126. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8127. break 2
  8128. fi
  8129. fi
  8130. done
  8131. done
  8132. IFS="$ac_save_IFS"
  8133. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8134. ;;
  8135. esac
  8136. fi
  8137. XGETTEXT="$ac_cv_path_XGETTEXT"
  8138. if test "$XGETTEXT" != ":"; then
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8140. $as_echo "$XGETTEXT" >&6; }
  8141. else
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8143. $as_echo "no" >&6; }
  8144. fi
  8145. rm -f messages.po
  8146. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8147. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8148. *) XGETTEXT_015=$XGETTEXT ;;
  8149. esac
  8150. # Prepare PATH_SEPARATOR.
  8151. # The user is always right.
  8152. if test "${PATH_SEPARATOR+set}" != set; then
  8153. echo "#! /bin/sh" >conf$$.sh
  8154. echo "exit 0" >>conf$$.sh
  8155. chmod +x conf$$.sh
  8156. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8157. PATH_SEPARATOR=';'
  8158. else
  8159. PATH_SEPARATOR=:
  8160. fi
  8161. rm -f conf$$.sh
  8162. fi
  8163. # Find out how to test for executable files. Don't use a zero-byte file,
  8164. # as systems may use methods other than mode bits to determine executability.
  8165. cat >conf$$.file <<_ASEOF
  8166. #! /bin/sh
  8167. exit 0
  8168. _ASEOF
  8169. chmod +x conf$$.file
  8170. if test -x conf$$.file >/dev/null 2>&1; then
  8171. ac_executable_p="test -x"
  8172. else
  8173. ac_executable_p="test -f"
  8174. fi
  8175. rm -f conf$$.file
  8176. # Extract the first word of "msgmerge", so it can be a program name with args.
  8177. set dummy msgmerge; ac_word=$2
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8179. $as_echo_n "checking for $ac_word... " >&6; }
  8180. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8181. $as_echo_n "(cached) " >&6
  8182. else
  8183. case "$MSGMERGE" in
  8184. [\\/]* | ?:[\\/]*)
  8185. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8186. ;;
  8187. *)
  8188. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8189. for ac_dir in $PATH; do
  8190. IFS="$ac_save_IFS"
  8191. test -z "$ac_dir" && ac_dir=.
  8192. for ac_exec_ext in '' $ac_executable_extensions; do
  8193. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8194. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8195. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8196. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8197. break 2
  8198. fi
  8199. fi
  8200. done
  8201. done
  8202. IFS="$ac_save_IFS"
  8203. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8204. ;;
  8205. esac
  8206. fi
  8207. MSGMERGE="$ac_cv_path_MSGMERGE"
  8208. if test "$MSGMERGE" != ":"; then
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8210. $as_echo "$MSGMERGE" >&6; }
  8211. else
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8213. $as_echo "no" >&6; }
  8214. fi
  8215. test -n "$localedir" || localedir='${datadir}/locale'
  8216. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8217. ac_config_commands="$ac_config_commands po-directories"
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8219. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8220. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8224. /* end confdefs.h. */
  8225. #include <features.h>
  8226. #ifdef __GNU_LIBRARY__
  8227. #if (__GLIBC__ >= 2)
  8228. Lucky GNU user
  8229. #endif
  8230. #endif
  8231. _ACEOF
  8232. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8233. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8234. ac_cv_gnu_library_2=yes
  8235. else
  8236. ac_cv_gnu_library_2=no
  8237. fi
  8238. rm -f conftest*
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8241. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8242. GLIBC2="$ac_cv_gnu_library_2"
  8243. CFLAG_VISIBILITY=
  8244. HAVE_VISIBILITY=0
  8245. if test -n "$GCC"; then
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8247. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8248. if test "${gl_cv_cc_visibility+set}" = set; then :
  8249. $as_echo_n "(cached) " >&6
  8250. else
  8251. gl_save_CFLAGS="$CFLAGS"
  8252. CFLAGS="$CFLAGS -fvisibility=hidden"
  8253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8254. /* end confdefs.h. */
  8255. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8256. extern __attribute__((__visibility__("default"))) int exportedvar;
  8257. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8258. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8259. int
  8260. main ()
  8261. {
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. if ac_fn_cxx_try_compile "$LINENO"; then :
  8267. gl_cv_cc_visibility=yes
  8268. else
  8269. gl_cv_cc_visibility=no
  8270. fi
  8271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8272. CFLAGS="$gl_save_CFLAGS"
  8273. fi
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8275. $as_echo "$gl_cv_cc_visibility" >&6; }
  8276. if test $gl_cv_cc_visibility = yes; then
  8277. CFLAG_VISIBILITY="-fvisibility=hidden"
  8278. HAVE_VISIBILITY=1
  8279. fi
  8280. fi
  8281. cat >>confdefs.h <<_ACEOF
  8282. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8283. _ACEOF
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8285. $as_echo_n "checking for stdint.h... " >&6; }
  8286. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8290. /* end confdefs.h. */
  8291. #include <sys/types.h>
  8292. #include <stdint.h>
  8293. int
  8294. main ()
  8295. {
  8296. uintmax_t i = (uintmax_t) -1; return !i;
  8297. ;
  8298. return 0;
  8299. }
  8300. _ACEOF
  8301. if ac_fn_cxx_try_compile "$LINENO"; then :
  8302. gl_cv_header_stdint_h=yes
  8303. else
  8304. gl_cv_header_stdint_h=no
  8305. fi
  8306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8307. fi
  8308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8309. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8310. if test $gl_cv_header_stdint_h = yes; then
  8311. cat >>confdefs.h <<_ACEOF
  8312. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8313. _ACEOF
  8314. fi
  8315. for ac_header in $ac_header_list
  8316. do :
  8317. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8318. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8319. "
  8320. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8321. cat >>confdefs.h <<_ACEOF
  8322. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8323. _ACEOF
  8324. fi
  8325. done
  8326. for ac_func in getpagesize
  8327. do :
  8328. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8329. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8330. cat >>confdefs.h <<_ACEOF
  8331. #define HAVE_GETPAGESIZE 1
  8332. _ACEOF
  8333. fi
  8334. done
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8336. $as_echo_n "checking for working mmap... " >&6; }
  8337. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. if test "$cross_compiling" = yes; then :
  8341. ac_cv_func_mmap_fixed_mapped=no
  8342. else
  8343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8344. /* end confdefs.h. */
  8345. $ac_includes_default
  8346. /* malloc might have been renamed as rpl_malloc. */
  8347. #undef malloc
  8348. /* Thanks to Mike Haertel and Jim Avera for this test.
  8349. Here is a matrix of mmap possibilities:
  8350. mmap private not fixed
  8351. mmap private fixed at somewhere currently unmapped
  8352. mmap private fixed at somewhere already mapped
  8353. mmap shared not fixed
  8354. mmap shared fixed at somewhere currently unmapped
  8355. mmap shared fixed at somewhere already mapped
  8356. For private mappings, we should verify that changes cannot be read()
  8357. back from the file, nor mmap's back from the file at a different
  8358. address. (There have been systems where private was not correctly
  8359. implemented like the infamous i386 svr4.0, and systems where the
  8360. VM page cache was not coherent with the file system buffer cache
  8361. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8362. For shared mappings, we should conversely verify that changes get
  8363. propagated back to all the places they're supposed to be.
  8364. Grep wants private fixed already mapped.
  8365. The main things grep needs to know about mmap are:
  8366. * does it exist and is it safe to write into the mmap'd area
  8367. * how to use it (BSD variants) */
  8368. #include <fcntl.h>
  8369. #include <sys/mman.h>
  8370. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8371. char *malloc ();
  8372. #endif
  8373. /* This mess was copied from the GNU getpagesize.h. */
  8374. #ifndef HAVE_GETPAGESIZE
  8375. # ifdef _SC_PAGESIZE
  8376. # define getpagesize() sysconf(_SC_PAGESIZE)
  8377. # else /* no _SC_PAGESIZE */
  8378. # ifdef HAVE_SYS_PARAM_H
  8379. # include <sys/param.h>
  8380. # ifdef EXEC_PAGESIZE
  8381. # define getpagesize() EXEC_PAGESIZE
  8382. # else /* no EXEC_PAGESIZE */
  8383. # ifdef NBPG
  8384. # define getpagesize() NBPG * CLSIZE
  8385. # ifndef CLSIZE
  8386. # define CLSIZE 1
  8387. # endif /* no CLSIZE */
  8388. # else /* no NBPG */
  8389. # ifdef NBPC
  8390. # define getpagesize() NBPC
  8391. # else /* no NBPC */
  8392. # ifdef PAGESIZE
  8393. # define getpagesize() PAGESIZE
  8394. # endif /* PAGESIZE */
  8395. # endif /* no NBPC */
  8396. # endif /* no NBPG */
  8397. # endif /* no EXEC_PAGESIZE */
  8398. # else /* no HAVE_SYS_PARAM_H */
  8399. # define getpagesize() 8192 /* punt totally */
  8400. # endif /* no HAVE_SYS_PARAM_H */
  8401. # endif /* no _SC_PAGESIZE */
  8402. #endif /* no HAVE_GETPAGESIZE */
  8403. int
  8404. main ()
  8405. {
  8406. char *data, *data2, *data3;
  8407. const char *cdata2;
  8408. int i, pagesize;
  8409. int fd, fd2;
  8410. pagesize = getpagesize ();
  8411. /* First, make a file with some known garbage in it. */
  8412. data = (char *) malloc (pagesize);
  8413. if (!data)
  8414. return 1;
  8415. for (i = 0; i < pagesize; ++i)
  8416. *(data + i) = rand ();
  8417. umask (0);
  8418. fd = creat ("conftest.mmap", 0600);
  8419. if (fd < 0)
  8420. return 2;
  8421. if (write (fd, data, pagesize) != pagesize)
  8422. return 3;
  8423. close (fd);
  8424. /* Next, check that the tail of a page is zero-filled. File must have
  8425. non-zero length, otherwise we risk SIGBUS for entire page. */
  8426. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8427. if (fd2 < 0)
  8428. return 4;
  8429. cdata2 = "";
  8430. if (write (fd2, cdata2, 1) != 1)
  8431. return 5;
  8432. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8433. if (data2 == MAP_FAILED)
  8434. return 6;
  8435. for (i = 0; i < pagesize; ++i)
  8436. if (*(data2 + i))
  8437. return 7;
  8438. close (fd2);
  8439. if (munmap (data2, pagesize))
  8440. return 8;
  8441. /* Next, try to mmap the file at a fixed address which already has
  8442. something else allocated at it. If we can, also make sure that
  8443. we see the same garbage. */
  8444. fd = open ("conftest.mmap", O_RDWR);
  8445. if (fd < 0)
  8446. return 9;
  8447. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8448. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8449. return 10;
  8450. for (i = 0; i < pagesize; ++i)
  8451. if (*(data + i) != *(data2 + i))
  8452. return 11;
  8453. /* Finally, make sure that changes to the mapped area do not
  8454. percolate back to the file as seen by read(). (This is a bug on
  8455. some variants of i386 svr4.0.) */
  8456. for (i = 0; i < pagesize; ++i)
  8457. *(data2 + i) = *(data2 + i) + 1;
  8458. data3 = (char *) malloc (pagesize);
  8459. if (!data3)
  8460. return 12;
  8461. if (read (fd, data3, pagesize) != pagesize)
  8462. return 13;
  8463. for (i = 0; i < pagesize; ++i)
  8464. if (*(data + i) != *(data3 + i))
  8465. return 14;
  8466. close (fd);
  8467. return 0;
  8468. }
  8469. _ACEOF
  8470. if ac_fn_cxx_try_run "$LINENO"; then :
  8471. ac_cv_func_mmap_fixed_mapped=yes
  8472. else
  8473. ac_cv_func_mmap_fixed_mapped=no
  8474. fi
  8475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8476. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8477. fi
  8478. fi
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8480. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8481. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8482. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8483. fi
  8484. rm -f conftest.mmap conftest.txt
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8486. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8487. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. gt_cv_int_divbyzero_sigfpe=
  8491. case "$host_os" in
  8492. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8493. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8494. # compiling. If we were to perform the real test, 1 Crash Report
  8495. # dialog window would pop up.
  8496. case "$host_cpu" in
  8497. i[34567]86 | x86_64)
  8498. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8499. esac
  8500. ;;
  8501. esac
  8502. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8503. if test "$cross_compiling" = yes; then :
  8504. # Guess based on the CPU.
  8505. case "$host_cpu" in
  8506. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8507. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8508. *)
  8509. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8510. esac
  8511. else
  8512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8513. /* end confdefs.h. */
  8514. #include <stdlib.h>
  8515. #include <signal.h>
  8516. static void
  8517. sigfpe_handler (int sig)
  8518. {
  8519. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8520. exit (sig != SIGFPE);
  8521. }
  8522. int x = 1;
  8523. int y = 0;
  8524. int z;
  8525. int nan;
  8526. int main ()
  8527. {
  8528. signal (SIGFPE, sigfpe_handler);
  8529. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8530. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8531. signal (SIGTRAP, sigfpe_handler);
  8532. #endif
  8533. /* Linux/SPARC yields signal SIGILL. */
  8534. #if defined (__sparc__) && defined (__linux__)
  8535. signal (SIGILL, sigfpe_handler);
  8536. #endif
  8537. z = x / y;
  8538. nan = y / y;
  8539. exit (1);
  8540. }
  8541. _ACEOF
  8542. if ac_fn_cxx_try_run "$LINENO"; then :
  8543. gt_cv_int_divbyzero_sigfpe=yes
  8544. else
  8545. gt_cv_int_divbyzero_sigfpe=no
  8546. fi
  8547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8548. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8549. fi
  8550. fi
  8551. fi
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8553. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8554. case "$gt_cv_int_divbyzero_sigfpe" in
  8555. *yes) value=1;;
  8556. *) value=0;;
  8557. esac
  8558. cat >>confdefs.h <<_ACEOF
  8559. #define INTDIV0_RAISES_SIGFPE $value
  8560. _ACEOF
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8562. $as_echo_n "checking for inttypes.h... " >&6; }
  8563. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8564. $as_echo_n "(cached) " >&6
  8565. else
  8566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8567. /* end confdefs.h. */
  8568. #include <sys/types.h>
  8569. #include <inttypes.h>
  8570. int
  8571. main ()
  8572. {
  8573. uintmax_t i = (uintmax_t) -1; return !i;
  8574. ;
  8575. return 0;
  8576. }
  8577. _ACEOF
  8578. if ac_fn_cxx_try_compile "$LINENO"; then :
  8579. gl_cv_header_inttypes_h=yes
  8580. else
  8581. gl_cv_header_inttypes_h=no
  8582. fi
  8583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8584. fi
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8586. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8587. if test $gl_cv_header_inttypes_h = yes; then
  8588. cat >>confdefs.h <<_ACEOF
  8589. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8590. _ACEOF
  8591. fi
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8593. $as_echo_n "checking for unsigned long long int... " >&6; }
  8594. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8595. $as_echo_n "(cached) " >&6
  8596. else
  8597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8598. /* end confdefs.h. */
  8599. /* Test preprocessor. */
  8600. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8601. error in preprocessor;
  8602. #endif
  8603. #if ! (18446744073709551615ULL <= -1ull)
  8604. error in preprocessor;
  8605. #endif
  8606. /* Test literals. */
  8607. long long int ll = 9223372036854775807ll;
  8608. long long int nll = -9223372036854775807LL;
  8609. unsigned long long int ull = 18446744073709551615ULL;
  8610. /* Test constant expressions. */
  8611. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8612. ? 1 : -1)];
  8613. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8614. ? 1 : -1)];
  8615. int i = 63;
  8616. int
  8617. main ()
  8618. {
  8619. /* Test availability of runtime routines for shift and division. */
  8620. long long int llmax = 9223372036854775807ll;
  8621. unsigned long long int ullmax = 18446744073709551615ull;
  8622. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8623. | (llmax / ll) | (llmax % ll)
  8624. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8625. | (ullmax / ull) | (ullmax % ull));
  8626. ;
  8627. return 0;
  8628. }
  8629. _ACEOF
  8630. if ac_fn_cxx_try_link "$LINENO"; then :
  8631. ac_cv_type_unsigned_long_long_int=yes
  8632. else
  8633. ac_cv_type_unsigned_long_long_int=no
  8634. fi
  8635. rm -f core conftest.err conftest.$ac_objext \
  8636. conftest$ac_exeext conftest.$ac_ext
  8637. fi
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8639. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8640. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8641. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8642. fi
  8643. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8644. test $ac_cv_type_unsigned_long_long_int = yes \
  8645. && ac_type='unsigned long long' \
  8646. || ac_type='unsigned long'
  8647. cat >>confdefs.h <<_ACEOF
  8648. #define uintmax_t $ac_type
  8649. _ACEOF
  8650. else
  8651. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8652. fi
  8653. for ac_header in inttypes.h
  8654. do :
  8655. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8656. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8657. cat >>confdefs.h <<_ACEOF
  8658. #define HAVE_INTTYPES_H 1
  8659. _ACEOF
  8660. fi
  8661. done
  8662. if test $ac_cv_header_inttypes_h = yes; then
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8664. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8665. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8666. $as_echo_n "(cached) " >&6
  8667. else
  8668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8669. /* end confdefs.h. */
  8670. #include <inttypes.h>
  8671. #ifdef PRId32
  8672. char *p = PRId32;
  8673. #endif
  8674. int
  8675. main ()
  8676. {
  8677. ;
  8678. return 0;
  8679. }
  8680. _ACEOF
  8681. if ac_fn_cxx_try_compile "$LINENO"; then :
  8682. gt_cv_inttypes_pri_broken=no
  8683. else
  8684. gt_cv_inttypes_pri_broken=yes
  8685. fi
  8686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8687. fi
  8688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8689. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8690. fi
  8691. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8692. cat >>confdefs.h <<_ACEOF
  8693. #define PRI_MACROS_BROKEN 1
  8694. _ACEOF
  8695. PRI_MACROS_BROKEN=1
  8696. else
  8697. PRI_MACROS_BROKEN=0
  8698. fi
  8699. # Check whether --enable-threads was given.
  8700. if test "${enable_threads+set}" = set; then :
  8701. enableval=$enable_threads; gl_use_threads=$enableval
  8702. else
  8703. case "$host_os" in
  8704. osf*) gl_use_threads=no ;;
  8705. *) gl_use_threads=yes ;;
  8706. esac
  8707. fi
  8708. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8709. # For using <pthread.h>:
  8710. case "$host_os" in
  8711. osf*)
  8712. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8713. # groks <pthread.h>. cc also understands the flag -pthread, but
  8714. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8715. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8716. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8717. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8718. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8719. ;;
  8720. esac
  8721. # Some systems optimize for single-threaded programs by default, and
  8722. # need special flags to disable these optimizations. For example, the
  8723. # definition of 'errno' in <errno.h>.
  8724. case "$host_os" in
  8725. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8726. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8727. esac
  8728. fi
  8729. if test "X$prefix" = "XNONE"; then
  8730. acl_final_prefix="$ac_default_prefix"
  8731. else
  8732. acl_final_prefix="$prefix"
  8733. fi
  8734. if test "X$exec_prefix" = "XNONE"; then
  8735. acl_final_exec_prefix='${prefix}'
  8736. else
  8737. acl_final_exec_prefix="$exec_prefix"
  8738. fi
  8739. acl_save_prefix="$prefix"
  8740. prefix="$acl_final_prefix"
  8741. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8742. prefix="$acl_save_prefix"
  8743. # Check whether --with-gnu-ld was given.
  8744. if test "${with_gnu_ld+set}" = set; then :
  8745. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8746. else
  8747. with_gnu_ld=no
  8748. fi
  8749. # Prepare PATH_SEPARATOR.
  8750. # The user is always right.
  8751. if test "${PATH_SEPARATOR+set}" != set; then
  8752. echo "#! /bin/sh" >conf$$.sh
  8753. echo "exit 0" >>conf$$.sh
  8754. chmod +x conf$$.sh
  8755. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8756. PATH_SEPARATOR=';'
  8757. else
  8758. PATH_SEPARATOR=:
  8759. fi
  8760. rm -f conf$$.sh
  8761. fi
  8762. ac_prog=ld
  8763. if test "$GCC" = yes; then
  8764. # Check if gcc -print-prog-name=ld gives a path.
  8765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8766. $as_echo_n "checking for ld used by GCC... " >&6; }
  8767. case $host in
  8768. *-*-mingw*)
  8769. # gcc leaves a trailing carriage return which upsets mingw
  8770. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8771. *)
  8772. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8773. esac
  8774. case $ac_prog in
  8775. # Accept absolute paths.
  8776. [\\/]* | [A-Za-z]:[\\/]*)
  8777. re_direlt='/[^/][^/]*/\.\./'
  8778. # Canonicalize the path of ld
  8779. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8780. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8781. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8782. done
  8783. test -z "$LD" && LD="$ac_prog"
  8784. ;;
  8785. "")
  8786. # If it fails, then pretend we aren't using GCC.
  8787. ac_prog=ld
  8788. ;;
  8789. *)
  8790. # If it is relative, then search for the first ld in PATH.
  8791. with_gnu_ld=unknown
  8792. ;;
  8793. esac
  8794. elif test "$with_gnu_ld" = yes; then
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8796. $as_echo_n "checking for GNU ld... " >&6; }
  8797. else
  8798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8799. $as_echo_n "checking for non-GNU ld... " >&6; }
  8800. fi
  8801. if test "${acl_cv_path_LD+set}" = set; then :
  8802. $as_echo_n "(cached) " >&6
  8803. else
  8804. if test -z "$LD"; then
  8805. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8806. for ac_dir in $PATH; do
  8807. test -z "$ac_dir" && ac_dir=.
  8808. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8809. acl_cv_path_LD="$ac_dir/$ac_prog"
  8810. # Check to see if the program is GNU ld. I'd rather use --version,
  8811. # but apparently some GNU ld's only accept -v.
  8812. # Break only if it was the GNU/non-GNU ld that we prefer.
  8813. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8814. *GNU* | *'with BFD'*)
  8815. test "$with_gnu_ld" != no && break ;;
  8816. *)
  8817. test "$with_gnu_ld" != yes && break ;;
  8818. esac
  8819. fi
  8820. done
  8821. IFS="$ac_save_ifs"
  8822. else
  8823. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8824. fi
  8825. fi
  8826. LD="$acl_cv_path_LD"
  8827. if test -n "$LD"; then
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8829. $as_echo "$LD" >&6; }
  8830. else
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8832. $as_echo "no" >&6; }
  8833. fi
  8834. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8836. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8837. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8838. $as_echo_n "(cached) " >&6
  8839. else
  8840. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8841. case `$LD -v 2>&1 </dev/null` in
  8842. *GNU* | *'with BFD'*)
  8843. acl_cv_prog_gnu_ld=yes ;;
  8844. *)
  8845. acl_cv_prog_gnu_ld=no ;;
  8846. esac
  8847. fi
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8849. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8850. with_gnu_ld=$acl_cv_prog_gnu_ld
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8852. $as_echo_n "checking for shared library run path origin... " >&6; }
  8853. if test "${acl_cv_rpath+set}" = set; then :
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8857. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8858. . ./conftest.sh
  8859. rm -f ./conftest.sh
  8860. acl_cv_rpath=done
  8861. fi
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8863. $as_echo "$acl_cv_rpath" >&6; }
  8864. wl="$acl_cv_wl"
  8865. acl_libext="$acl_cv_libext"
  8866. acl_shlibext="$acl_cv_shlibext"
  8867. acl_libname_spec="$acl_cv_libname_spec"
  8868. acl_library_names_spec="$acl_cv_library_names_spec"
  8869. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8870. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8871. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8872. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8873. # Check whether --enable-rpath was given.
  8874. if test "${enable_rpath+set}" = set; then :
  8875. enableval=$enable_rpath; :
  8876. else
  8877. enable_rpath=yes
  8878. fi
  8879. acl_libdirstem=lib
  8880. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8881. if test -n "$searchpath"; then
  8882. acl_save_IFS="${IFS= }"; IFS=":"
  8883. for searchdir in $searchpath; do
  8884. if test -d "$searchdir"; then
  8885. case "$searchdir" in
  8886. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8887. *) searchdir=`cd "$searchdir" && pwd`
  8888. case "$searchdir" in
  8889. */lib64 ) acl_libdirstem=lib64 ;;
  8890. esac ;;
  8891. esac
  8892. fi
  8893. done
  8894. IFS="$acl_save_IFS"
  8895. fi
  8896. gl_threads_api=none
  8897. LIBTHREAD=
  8898. LTLIBTHREAD=
  8899. LIBMULTITHREAD=
  8900. LTLIBMULTITHREAD=
  8901. if test "$gl_use_threads" != no; then
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8903. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8904. gl_have_weak=no
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. extern void xyzzy ();
  8908. #pragma weak xyzzy
  8909. int
  8910. main ()
  8911. {
  8912. xyzzy();
  8913. ;
  8914. return 0;
  8915. }
  8916. _ACEOF
  8917. if ac_fn_cxx_try_link "$LINENO"; then :
  8918. gl_have_weak=yes
  8919. fi
  8920. rm -f core conftest.err conftest.$ac_objext \
  8921. conftest$ac_exeext conftest.$ac_ext
  8922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8923. $as_echo "$gl_have_weak" >&6; }
  8924. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8925. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8926. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8927. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8928. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8929. gl_have_pthread_h=yes
  8930. else
  8931. gl_have_pthread_h=no
  8932. fi
  8933. if test "$gl_have_pthread_h" = yes; then
  8934. # Other possible tests:
  8935. # -lpthreads (FSU threads, PCthreads)
  8936. # -lgthreads
  8937. gl_have_pthread=
  8938. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8939. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8940. # the second one only in libpthread, and lock.c needs it.
  8941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8942. /* end confdefs.h. */
  8943. #include <pthread.h>
  8944. int
  8945. main ()
  8946. {
  8947. pthread_mutex_lock((pthread_mutex_t*)0);
  8948. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8949. ;
  8950. return 0;
  8951. }
  8952. _ACEOF
  8953. if ac_fn_cxx_try_link "$LINENO"; then :
  8954. gl_have_pthread=yes
  8955. fi
  8956. rm -f core conftest.err conftest.$ac_objext \
  8957. conftest$ac_exeext conftest.$ac_ext
  8958. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8959. # since it is defined as a macro on OSF/1.)
  8960. if test -n "$gl_have_pthread"; then
  8961. # The program links fine without libpthread. But it may actually
  8962. # need to link with libpthread in order to create multiple threads.
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8964. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8965. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8966. $as_echo_n "(cached) " >&6
  8967. else
  8968. ac_check_lib_save_LIBS=$LIBS
  8969. LIBS="-lpthread $LIBS"
  8970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8971. /* end confdefs.h. */
  8972. /* Override any GCC internal prototype to avoid an error.
  8973. Use char because int might match the return type of a GCC
  8974. builtin and then its argument prototype would still apply. */
  8975. #ifdef __cplusplus
  8976. extern "C"
  8977. #endif
  8978. char pthread_kill ();
  8979. int
  8980. main ()
  8981. {
  8982. return pthread_kill ();
  8983. ;
  8984. return 0;
  8985. }
  8986. _ACEOF
  8987. if ac_fn_cxx_try_link "$LINENO"; then :
  8988. ac_cv_lib_pthread_pthread_kill=yes
  8989. else
  8990. ac_cv_lib_pthread_pthread_kill=no
  8991. fi
  8992. rm -f core conftest.err conftest.$ac_objext \
  8993. conftest$ac_exeext conftest.$ac_ext
  8994. LIBS=$ac_check_lib_save_LIBS
  8995. fi
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8997. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8998. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8999. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9000. # On Solaris and HP-UX, most pthread functions exist also in libc.
  9001. # Therefore pthread_in_use() needs to actually try to create a
  9002. # thread: pthread_create from libc will fail, whereas
  9003. # pthread_create will actually create a thread.
  9004. case "$host_os" in
  9005. solaris* | hpux*)
  9006. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9007. esac
  9008. fi
  9009. else
  9010. # Some library is needed. Try libpthread and libc_r.
  9011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9012. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9013. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9014. $as_echo_n "(cached) " >&6
  9015. else
  9016. ac_check_lib_save_LIBS=$LIBS
  9017. LIBS="-lpthread $LIBS"
  9018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9019. /* end confdefs.h. */
  9020. /* Override any GCC internal prototype to avoid an error.
  9021. Use char because int might match the return type of a GCC
  9022. builtin and then its argument prototype would still apply. */
  9023. #ifdef __cplusplus
  9024. extern "C"
  9025. #endif
  9026. char pthread_kill ();
  9027. int
  9028. main ()
  9029. {
  9030. return pthread_kill ();
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_cxx_try_link "$LINENO"; then :
  9036. ac_cv_lib_pthread_pthread_kill=yes
  9037. else
  9038. ac_cv_lib_pthread_pthread_kill=no
  9039. fi
  9040. rm -f core conftest.err conftest.$ac_objext \
  9041. conftest$ac_exeext conftest.$ac_ext
  9042. LIBS=$ac_check_lib_save_LIBS
  9043. fi
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9045. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9046. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9047. gl_have_pthread=yes
  9048. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9049. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9050. fi
  9051. if test -z "$gl_have_pthread"; then
  9052. # For FreeBSD 4.
  9053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9054. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9055. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9056. $as_echo_n "(cached) " >&6
  9057. else
  9058. ac_check_lib_save_LIBS=$LIBS
  9059. LIBS="-lc_r $LIBS"
  9060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9061. /* end confdefs.h. */
  9062. /* Override any GCC internal prototype to avoid an error.
  9063. Use char because int might match the return type of a GCC
  9064. builtin and then its argument prototype would still apply. */
  9065. #ifdef __cplusplus
  9066. extern "C"
  9067. #endif
  9068. char pthread_kill ();
  9069. int
  9070. main ()
  9071. {
  9072. return pthread_kill ();
  9073. ;
  9074. return 0;
  9075. }
  9076. _ACEOF
  9077. if ac_fn_cxx_try_link "$LINENO"; then :
  9078. ac_cv_lib_c_r_pthread_kill=yes
  9079. else
  9080. ac_cv_lib_c_r_pthread_kill=no
  9081. fi
  9082. rm -f core conftest.err conftest.$ac_objext \
  9083. conftest$ac_exeext conftest.$ac_ext
  9084. LIBS=$ac_check_lib_save_LIBS
  9085. fi
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9087. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9088. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9089. gl_have_pthread=yes
  9090. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9091. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9092. fi
  9093. fi
  9094. fi
  9095. if test -n "$gl_have_pthread"; then
  9096. gl_threads_api=posix
  9097. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9098. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9099. if test $gl_have_weak = yes; then
  9100. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9101. LIBTHREAD=
  9102. LTLIBTHREAD=
  9103. fi
  9104. fi
  9105. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9106. # pthread_rwlock_* functions.
  9107. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9108. "
  9109. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9110. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9111. fi
  9112. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9114. /* end confdefs.h. */
  9115. #include <pthread.h>
  9116. int
  9117. main ()
  9118. {
  9119. #if __FreeBSD__ == 4
  9120. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9121. #else
  9122. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9123. return !x;
  9124. #endif
  9125. ;
  9126. return 0;
  9127. }
  9128. _ACEOF
  9129. if ac_fn_cxx_try_compile "$LINENO"; then :
  9130. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9131. fi
  9132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9133. fi
  9134. fi
  9135. fi
  9136. if test -z "$gl_have_pthread"; then
  9137. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9138. gl_have_solaristhread=
  9139. gl_save_LIBS="$LIBS"
  9140. LIBS="$LIBS -lthread"
  9141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9142. /* end confdefs.h. */
  9143. #include <thread.h>
  9144. #include <synch.h>
  9145. int
  9146. main ()
  9147. {
  9148. thr_self();
  9149. ;
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. if ac_fn_cxx_try_link "$LINENO"; then :
  9154. gl_have_solaristhread=yes
  9155. fi
  9156. rm -f core conftest.err conftest.$ac_objext \
  9157. conftest$ac_exeext conftest.$ac_ext
  9158. LIBS="$gl_save_LIBS"
  9159. if test -n "$gl_have_solaristhread"; then
  9160. gl_threads_api=solaris
  9161. LIBTHREAD=-lthread
  9162. LTLIBTHREAD=-lthread
  9163. LIBMULTITHREAD="$LIBTHREAD"
  9164. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9165. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9166. if test $gl_have_weak = yes; then
  9167. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9168. LIBTHREAD=
  9169. LTLIBTHREAD=
  9170. fi
  9171. fi
  9172. fi
  9173. fi
  9174. if test "$gl_use_threads" = pth; then
  9175. gl_save_CPPFLAGS="$CPPFLAGS"
  9176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9177. $as_echo_n "checking how to link with libpth... " >&6; }
  9178. if test "${ac_cv_libpth_libs+set}" = set; then :
  9179. $as_echo_n "(cached) " >&6
  9180. else
  9181. use_additional=yes
  9182. acl_save_prefix="$prefix"
  9183. prefix="$acl_final_prefix"
  9184. acl_save_exec_prefix="$exec_prefix"
  9185. exec_prefix="$acl_final_exec_prefix"
  9186. eval additional_includedir=\"$includedir\"
  9187. eval additional_libdir=\"$libdir\"
  9188. exec_prefix="$acl_save_exec_prefix"
  9189. prefix="$acl_save_prefix"
  9190. # Check whether --with-libpth-prefix was given.
  9191. if test "${with_libpth_prefix+set}" = set; then :
  9192. withval=$with_libpth_prefix;
  9193. if test "X$withval" = "Xno"; then
  9194. use_additional=no
  9195. else
  9196. if test "X$withval" = "X"; then
  9197. acl_save_prefix="$prefix"
  9198. prefix="$acl_final_prefix"
  9199. acl_save_exec_prefix="$exec_prefix"
  9200. exec_prefix="$acl_final_exec_prefix"
  9201. eval additional_includedir=\"$includedir\"
  9202. eval additional_libdir=\"$libdir\"
  9203. exec_prefix="$acl_save_exec_prefix"
  9204. prefix="$acl_save_prefix"
  9205. else
  9206. additional_includedir="$withval/include"
  9207. additional_libdir="$withval/$acl_libdirstem"
  9208. fi
  9209. fi
  9210. fi
  9211. LIBPTH=
  9212. LTLIBPTH=
  9213. INCPTH=
  9214. LIBPTH_PREFIX=
  9215. rpathdirs=
  9216. ltrpathdirs=
  9217. names_already_handled=
  9218. names_next_round='pth '
  9219. while test -n "$names_next_round"; do
  9220. names_this_round="$names_next_round"
  9221. names_next_round=
  9222. for name in $names_this_round; do
  9223. already_handled=
  9224. for n in $names_already_handled; do
  9225. if test "$n" = "$name"; then
  9226. already_handled=yes
  9227. break
  9228. fi
  9229. done
  9230. if test -z "$already_handled"; then
  9231. names_already_handled="$names_already_handled $name"
  9232. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9233. eval value=\"\$HAVE_LIB$uppername\"
  9234. if test -n "$value"; then
  9235. if test "$value" = yes; then
  9236. eval value=\"\$LIB$uppername\"
  9237. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9238. eval value=\"\$LTLIB$uppername\"
  9239. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9240. else
  9241. :
  9242. fi
  9243. else
  9244. found_dir=
  9245. found_la=
  9246. found_so=
  9247. found_a=
  9248. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9249. if test -n "$acl_shlibext"; then
  9250. shrext=".$acl_shlibext" # typically: shrext=.so
  9251. else
  9252. shrext=
  9253. fi
  9254. if test $use_additional = yes; then
  9255. dir="$additional_libdir"
  9256. if test -n "$acl_shlibext"; then
  9257. if test -f "$dir/$libname$shrext"; then
  9258. found_dir="$dir"
  9259. found_so="$dir/$libname$shrext"
  9260. else
  9261. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9262. ver=`(cd "$dir" && \
  9263. for f in "$libname$shrext".*; do echo "$f"; done \
  9264. | sed -e "s,^$libname$shrext\\\\.,," \
  9265. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9266. | sed 1q ) 2>/dev/null`
  9267. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9268. found_dir="$dir"
  9269. found_so="$dir/$libname$shrext.$ver"
  9270. fi
  9271. else
  9272. eval library_names=\"$acl_library_names_spec\"
  9273. for f in $library_names; do
  9274. if test -f "$dir/$f"; then
  9275. found_dir="$dir"
  9276. found_so="$dir/$f"
  9277. break
  9278. fi
  9279. done
  9280. fi
  9281. fi
  9282. fi
  9283. if test "X$found_dir" = "X"; then
  9284. if test -f "$dir/$libname.$acl_libext"; then
  9285. found_dir="$dir"
  9286. found_a="$dir/$libname.$acl_libext"
  9287. fi
  9288. fi
  9289. if test "X$found_dir" != "X"; then
  9290. if test -f "$dir/$libname.la"; then
  9291. found_la="$dir/$libname.la"
  9292. fi
  9293. fi
  9294. fi
  9295. if test "X$found_dir" = "X"; then
  9296. for x in $LDFLAGS $LTLIBPTH; do
  9297. acl_save_prefix="$prefix"
  9298. prefix="$acl_final_prefix"
  9299. acl_save_exec_prefix="$exec_prefix"
  9300. exec_prefix="$acl_final_exec_prefix"
  9301. eval x=\"$x\"
  9302. exec_prefix="$acl_save_exec_prefix"
  9303. prefix="$acl_save_prefix"
  9304. case "$x" in
  9305. -L*)
  9306. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9307. if test -n "$acl_shlibext"; then
  9308. if test -f "$dir/$libname$shrext"; then
  9309. found_dir="$dir"
  9310. found_so="$dir/$libname$shrext"
  9311. else
  9312. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9313. ver=`(cd "$dir" && \
  9314. for f in "$libname$shrext".*; do echo "$f"; done \
  9315. | sed -e "s,^$libname$shrext\\\\.,," \
  9316. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9317. | sed 1q ) 2>/dev/null`
  9318. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9319. found_dir="$dir"
  9320. found_so="$dir/$libname$shrext.$ver"
  9321. fi
  9322. else
  9323. eval library_names=\"$acl_library_names_spec\"
  9324. for f in $library_names; do
  9325. if test -f "$dir/$f"; then
  9326. found_dir="$dir"
  9327. found_so="$dir/$f"
  9328. break
  9329. fi
  9330. done
  9331. fi
  9332. fi
  9333. fi
  9334. if test "X$found_dir" = "X"; then
  9335. if test -f "$dir/$libname.$acl_libext"; then
  9336. found_dir="$dir"
  9337. found_a="$dir/$libname.$acl_libext"
  9338. fi
  9339. fi
  9340. if test "X$found_dir" != "X"; then
  9341. if test -f "$dir/$libname.la"; then
  9342. found_la="$dir/$libname.la"
  9343. fi
  9344. fi
  9345. ;;
  9346. esac
  9347. if test "X$found_dir" != "X"; then
  9348. break
  9349. fi
  9350. done
  9351. fi
  9352. if test "X$found_dir" != "X"; then
  9353. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9354. if test "X$found_so" != "X"; then
  9355. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9356. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9357. else
  9358. haveit=
  9359. for x in $ltrpathdirs; do
  9360. if test "X$x" = "X$found_dir"; then
  9361. haveit=yes
  9362. break
  9363. fi
  9364. done
  9365. if test -z "$haveit"; then
  9366. ltrpathdirs="$ltrpathdirs $found_dir"
  9367. fi
  9368. if test "$acl_hardcode_direct" = yes; then
  9369. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9370. else
  9371. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9372. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9373. haveit=
  9374. for x in $rpathdirs; do
  9375. if test "X$x" = "X$found_dir"; then
  9376. haveit=yes
  9377. break
  9378. fi
  9379. done
  9380. if test -z "$haveit"; then
  9381. rpathdirs="$rpathdirs $found_dir"
  9382. fi
  9383. else
  9384. haveit=
  9385. for x in $LDFLAGS $LIBPTH; do
  9386. acl_save_prefix="$prefix"
  9387. prefix="$acl_final_prefix"
  9388. acl_save_exec_prefix="$exec_prefix"
  9389. exec_prefix="$acl_final_exec_prefix"
  9390. eval x=\"$x\"
  9391. exec_prefix="$acl_save_exec_prefix"
  9392. prefix="$acl_save_prefix"
  9393. if test "X$x" = "X-L$found_dir"; then
  9394. haveit=yes
  9395. break
  9396. fi
  9397. done
  9398. if test -z "$haveit"; then
  9399. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9400. fi
  9401. if test "$acl_hardcode_minus_L" != no; then
  9402. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9403. else
  9404. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9405. fi
  9406. fi
  9407. fi
  9408. fi
  9409. else
  9410. if test "X$found_a" != "X"; then
  9411. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9412. else
  9413. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9414. fi
  9415. fi
  9416. additional_includedir=
  9417. case "$found_dir" in
  9418. */$acl_libdirstem | */$acl_libdirstem/)
  9419. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9420. LIBPTH_PREFIX="$basedir"
  9421. additional_includedir="$basedir/include"
  9422. ;;
  9423. esac
  9424. if test "X$additional_includedir" != "X"; then
  9425. if test "X$additional_includedir" != "X/usr/include"; then
  9426. haveit=
  9427. if test "X$additional_includedir" = "X/usr/local/include"; then
  9428. if test -n "$GCC"; then
  9429. case $host_os in
  9430. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9431. esac
  9432. fi
  9433. fi
  9434. if test -z "$haveit"; then
  9435. for x in $CPPFLAGS $INCPTH; do
  9436. acl_save_prefix="$prefix"
  9437. prefix="$acl_final_prefix"
  9438. acl_save_exec_prefix="$exec_prefix"
  9439. exec_prefix="$acl_final_exec_prefix"
  9440. eval x=\"$x\"
  9441. exec_prefix="$acl_save_exec_prefix"
  9442. prefix="$acl_save_prefix"
  9443. if test "X$x" = "X-I$additional_includedir"; then
  9444. haveit=yes
  9445. break
  9446. fi
  9447. done
  9448. if test -z "$haveit"; then
  9449. if test -d "$additional_includedir"; then
  9450. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9451. fi
  9452. fi
  9453. fi
  9454. fi
  9455. fi
  9456. if test -n "$found_la"; then
  9457. save_libdir="$libdir"
  9458. case "$found_la" in
  9459. */* | *\\*) . "$found_la" ;;
  9460. *) . "./$found_la" ;;
  9461. esac
  9462. libdir="$save_libdir"
  9463. for dep in $dependency_libs; do
  9464. case "$dep" in
  9465. -L*)
  9466. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9467. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9468. haveit=
  9469. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9470. if test -n "$GCC"; then
  9471. case $host_os in
  9472. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9473. esac
  9474. fi
  9475. fi
  9476. if test -z "$haveit"; then
  9477. haveit=
  9478. for x in $LDFLAGS $LIBPTH; do
  9479. acl_save_prefix="$prefix"
  9480. prefix="$acl_final_prefix"
  9481. acl_save_exec_prefix="$exec_prefix"
  9482. exec_prefix="$acl_final_exec_prefix"
  9483. eval x=\"$x\"
  9484. exec_prefix="$acl_save_exec_prefix"
  9485. prefix="$acl_save_prefix"
  9486. if test "X$x" = "X-L$additional_libdir"; then
  9487. haveit=yes
  9488. break
  9489. fi
  9490. done
  9491. if test -z "$haveit"; then
  9492. if test -d "$additional_libdir"; then
  9493. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9494. fi
  9495. fi
  9496. haveit=
  9497. for x in $LDFLAGS $LTLIBPTH; do
  9498. acl_save_prefix="$prefix"
  9499. prefix="$acl_final_prefix"
  9500. acl_save_exec_prefix="$exec_prefix"
  9501. exec_prefix="$acl_final_exec_prefix"
  9502. eval x=\"$x\"
  9503. exec_prefix="$acl_save_exec_prefix"
  9504. prefix="$acl_save_prefix"
  9505. if test "X$x" = "X-L$additional_libdir"; then
  9506. haveit=yes
  9507. break
  9508. fi
  9509. done
  9510. if test -z "$haveit"; then
  9511. if test -d "$additional_libdir"; then
  9512. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9513. fi
  9514. fi
  9515. fi
  9516. fi
  9517. ;;
  9518. -R*)
  9519. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9520. if test "$enable_rpath" != no; then
  9521. haveit=
  9522. for x in $rpathdirs; do
  9523. if test "X$x" = "X$dir"; then
  9524. haveit=yes
  9525. break
  9526. fi
  9527. done
  9528. if test -z "$haveit"; then
  9529. rpathdirs="$rpathdirs $dir"
  9530. fi
  9531. haveit=
  9532. for x in $ltrpathdirs; do
  9533. if test "X$x" = "X$dir"; then
  9534. haveit=yes
  9535. break
  9536. fi
  9537. done
  9538. if test -z "$haveit"; then
  9539. ltrpathdirs="$ltrpathdirs $dir"
  9540. fi
  9541. fi
  9542. ;;
  9543. -l*)
  9544. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9545. ;;
  9546. *.la)
  9547. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9548. ;;
  9549. *)
  9550. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9551. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9552. ;;
  9553. esac
  9554. done
  9555. fi
  9556. else
  9557. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9558. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9559. fi
  9560. fi
  9561. fi
  9562. done
  9563. done
  9564. if test "X$rpathdirs" != "X"; then
  9565. if test -n "$acl_hardcode_libdir_separator"; then
  9566. alldirs=
  9567. for found_dir in $rpathdirs; do
  9568. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9569. done
  9570. acl_save_libdir="$libdir"
  9571. libdir="$alldirs"
  9572. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9573. libdir="$acl_save_libdir"
  9574. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9575. else
  9576. for found_dir in $rpathdirs; do
  9577. acl_save_libdir="$libdir"
  9578. libdir="$found_dir"
  9579. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9580. libdir="$acl_save_libdir"
  9581. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9582. done
  9583. fi
  9584. fi
  9585. if test "X$ltrpathdirs" != "X"; then
  9586. for found_dir in $ltrpathdirs; do
  9587. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9588. done
  9589. fi
  9590. ac_cv_libpth_libs="$LIBPTH"
  9591. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9592. ac_cv_libpth_cppflags="$INCPTH"
  9593. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9594. fi
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9596. $as_echo "$ac_cv_libpth_libs" >&6; }
  9597. LIBPTH="$ac_cv_libpth_libs"
  9598. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9599. INCPTH="$ac_cv_libpth_cppflags"
  9600. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9601. for element in $INCPTH; do
  9602. haveit=
  9603. for x in $CPPFLAGS; do
  9604. acl_save_prefix="$prefix"
  9605. prefix="$acl_final_prefix"
  9606. acl_save_exec_prefix="$exec_prefix"
  9607. exec_prefix="$acl_final_exec_prefix"
  9608. eval x=\"$x\"
  9609. exec_prefix="$acl_save_exec_prefix"
  9610. prefix="$acl_save_prefix"
  9611. if test "X$x" = "X$element"; then
  9612. haveit=yes
  9613. break
  9614. fi
  9615. done
  9616. if test -z "$haveit"; then
  9617. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9618. fi
  9619. done
  9620. HAVE_LIBPTH=yes
  9621. gl_have_pth=
  9622. gl_save_LIBS="$LIBS"
  9623. LIBS="$LIBS -lpth"
  9624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9625. /* end confdefs.h. */
  9626. #include <pth.h>
  9627. int
  9628. main ()
  9629. {
  9630. pth_self();
  9631. ;
  9632. return 0;
  9633. }
  9634. _ACEOF
  9635. if ac_fn_cxx_try_link "$LINENO"; then :
  9636. gl_have_pth=yes
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. LIBS="$gl_save_LIBS"
  9641. if test -n "$gl_have_pth"; then
  9642. gl_threads_api=pth
  9643. LIBTHREAD="$LIBPTH"
  9644. LTLIBTHREAD="$LTLIBPTH"
  9645. LIBMULTITHREAD="$LIBTHREAD"
  9646. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9647. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9648. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9649. if test $gl_have_weak = yes; then
  9650. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9651. LIBTHREAD=
  9652. LTLIBTHREAD=
  9653. fi
  9654. fi
  9655. else
  9656. CPPFLAGS="$gl_save_CPPFLAGS"
  9657. fi
  9658. fi
  9659. if test -z "$gl_have_pthread"; then
  9660. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9661. if { case "$host_os" in
  9662. mingw*) true;;
  9663. *) false;;
  9664. esac
  9665. }; then
  9666. gl_threads_api=win32
  9667. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9668. fi
  9669. fi
  9670. fi
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9673. $as_echo_n "checking for multithread API to use... " >&6; }
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9675. $as_echo "$gl_threads_api" >&6; }
  9676. use_additional=yes
  9677. acl_save_prefix="$prefix"
  9678. prefix="$acl_final_prefix"
  9679. acl_save_exec_prefix="$exec_prefix"
  9680. exec_prefix="$acl_final_exec_prefix"
  9681. eval additional_includedir=\"$includedir\"
  9682. eval additional_libdir=\"$libdir\"
  9683. exec_prefix="$acl_save_exec_prefix"
  9684. prefix="$acl_save_prefix"
  9685. # Check whether --with-libiconv-prefix was given.
  9686. if test "${with_libiconv_prefix+set}" = set; then :
  9687. withval=$with_libiconv_prefix;
  9688. if test "X$withval" = "Xno"; then
  9689. use_additional=no
  9690. else
  9691. if test "X$withval" = "X"; then
  9692. acl_save_prefix="$prefix"
  9693. prefix="$acl_final_prefix"
  9694. acl_save_exec_prefix="$exec_prefix"
  9695. exec_prefix="$acl_final_exec_prefix"
  9696. eval additional_includedir=\"$includedir\"
  9697. eval additional_libdir=\"$libdir\"
  9698. exec_prefix="$acl_save_exec_prefix"
  9699. prefix="$acl_save_prefix"
  9700. else
  9701. additional_includedir="$withval/include"
  9702. additional_libdir="$withval/$acl_libdirstem"
  9703. fi
  9704. fi
  9705. fi
  9706. LIBICONV=
  9707. LTLIBICONV=
  9708. INCICONV=
  9709. LIBICONV_PREFIX=
  9710. rpathdirs=
  9711. ltrpathdirs=
  9712. names_already_handled=
  9713. names_next_round='iconv '
  9714. while test -n "$names_next_round"; do
  9715. names_this_round="$names_next_round"
  9716. names_next_round=
  9717. for name in $names_this_round; do
  9718. already_handled=
  9719. for n in $names_already_handled; do
  9720. if test "$n" = "$name"; then
  9721. already_handled=yes
  9722. break
  9723. fi
  9724. done
  9725. if test -z "$already_handled"; then
  9726. names_already_handled="$names_already_handled $name"
  9727. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9728. eval value=\"\$HAVE_LIB$uppername\"
  9729. if test -n "$value"; then
  9730. if test "$value" = yes; then
  9731. eval value=\"\$LIB$uppername\"
  9732. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9733. eval value=\"\$LTLIB$uppername\"
  9734. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9735. else
  9736. :
  9737. fi
  9738. else
  9739. found_dir=
  9740. found_la=
  9741. found_so=
  9742. found_a=
  9743. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9744. if test -n "$acl_shlibext"; then
  9745. shrext=".$acl_shlibext" # typically: shrext=.so
  9746. else
  9747. shrext=
  9748. fi
  9749. if test $use_additional = yes; then
  9750. dir="$additional_libdir"
  9751. if test -n "$acl_shlibext"; then
  9752. if test -f "$dir/$libname$shrext"; then
  9753. found_dir="$dir"
  9754. found_so="$dir/$libname$shrext"
  9755. else
  9756. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9757. ver=`(cd "$dir" && \
  9758. for f in "$libname$shrext".*; do echo "$f"; done \
  9759. | sed -e "s,^$libname$shrext\\\\.,," \
  9760. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9761. | sed 1q ) 2>/dev/null`
  9762. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9763. found_dir="$dir"
  9764. found_so="$dir/$libname$shrext.$ver"
  9765. fi
  9766. else
  9767. eval library_names=\"$acl_library_names_spec\"
  9768. for f in $library_names; do
  9769. if test -f "$dir/$f"; then
  9770. found_dir="$dir"
  9771. found_so="$dir/$f"
  9772. break
  9773. fi
  9774. done
  9775. fi
  9776. fi
  9777. fi
  9778. if test "X$found_dir" = "X"; then
  9779. if test -f "$dir/$libname.$acl_libext"; then
  9780. found_dir="$dir"
  9781. found_a="$dir/$libname.$acl_libext"
  9782. fi
  9783. fi
  9784. if test "X$found_dir" != "X"; then
  9785. if test -f "$dir/$libname.la"; then
  9786. found_la="$dir/$libname.la"
  9787. fi
  9788. fi
  9789. fi
  9790. if test "X$found_dir" = "X"; then
  9791. for x in $LDFLAGS $LTLIBICONV; do
  9792. acl_save_prefix="$prefix"
  9793. prefix="$acl_final_prefix"
  9794. acl_save_exec_prefix="$exec_prefix"
  9795. exec_prefix="$acl_final_exec_prefix"
  9796. eval x=\"$x\"
  9797. exec_prefix="$acl_save_exec_prefix"
  9798. prefix="$acl_save_prefix"
  9799. case "$x" in
  9800. -L*)
  9801. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9802. if test -n "$acl_shlibext"; then
  9803. if test -f "$dir/$libname$shrext"; then
  9804. found_dir="$dir"
  9805. found_so="$dir/$libname$shrext"
  9806. else
  9807. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9808. ver=`(cd "$dir" && \
  9809. for f in "$libname$shrext".*; do echo "$f"; done \
  9810. | sed -e "s,^$libname$shrext\\\\.,," \
  9811. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9812. | sed 1q ) 2>/dev/null`
  9813. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9814. found_dir="$dir"
  9815. found_so="$dir/$libname$shrext.$ver"
  9816. fi
  9817. else
  9818. eval library_names=\"$acl_library_names_spec\"
  9819. for f in $library_names; do
  9820. if test -f "$dir/$f"; then
  9821. found_dir="$dir"
  9822. found_so="$dir/$f"
  9823. break
  9824. fi
  9825. done
  9826. fi
  9827. fi
  9828. fi
  9829. if test "X$found_dir" = "X"; then
  9830. if test -f "$dir/$libname.$acl_libext"; then
  9831. found_dir="$dir"
  9832. found_a="$dir/$libname.$acl_libext"
  9833. fi
  9834. fi
  9835. if test "X$found_dir" != "X"; then
  9836. if test -f "$dir/$libname.la"; then
  9837. found_la="$dir/$libname.la"
  9838. fi
  9839. fi
  9840. ;;
  9841. esac
  9842. if test "X$found_dir" != "X"; then
  9843. break
  9844. fi
  9845. done
  9846. fi
  9847. if test "X$found_dir" != "X"; then
  9848. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9849. if test "X$found_so" != "X"; then
  9850. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9851. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9852. else
  9853. haveit=
  9854. for x in $ltrpathdirs; do
  9855. if test "X$x" = "X$found_dir"; then
  9856. haveit=yes
  9857. break
  9858. fi
  9859. done
  9860. if test -z "$haveit"; then
  9861. ltrpathdirs="$ltrpathdirs $found_dir"
  9862. fi
  9863. if test "$acl_hardcode_direct" = yes; then
  9864. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9865. else
  9866. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9867. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9868. haveit=
  9869. for x in $rpathdirs; do
  9870. if test "X$x" = "X$found_dir"; then
  9871. haveit=yes
  9872. break
  9873. fi
  9874. done
  9875. if test -z "$haveit"; then
  9876. rpathdirs="$rpathdirs $found_dir"
  9877. fi
  9878. else
  9879. haveit=
  9880. for x in $LDFLAGS $LIBICONV; do
  9881. acl_save_prefix="$prefix"
  9882. prefix="$acl_final_prefix"
  9883. acl_save_exec_prefix="$exec_prefix"
  9884. exec_prefix="$acl_final_exec_prefix"
  9885. eval x=\"$x\"
  9886. exec_prefix="$acl_save_exec_prefix"
  9887. prefix="$acl_save_prefix"
  9888. if test "X$x" = "X-L$found_dir"; then
  9889. haveit=yes
  9890. break
  9891. fi
  9892. done
  9893. if test -z "$haveit"; then
  9894. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9895. fi
  9896. if test "$acl_hardcode_minus_L" != no; then
  9897. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9898. else
  9899. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9900. fi
  9901. fi
  9902. fi
  9903. fi
  9904. else
  9905. if test "X$found_a" != "X"; then
  9906. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9907. else
  9908. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9909. fi
  9910. fi
  9911. additional_includedir=
  9912. case "$found_dir" in
  9913. */$acl_libdirstem | */$acl_libdirstem/)
  9914. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9915. LIBICONV_PREFIX="$basedir"
  9916. additional_includedir="$basedir/include"
  9917. ;;
  9918. esac
  9919. if test "X$additional_includedir" != "X"; then
  9920. if test "X$additional_includedir" != "X/usr/include"; then
  9921. haveit=
  9922. if test "X$additional_includedir" = "X/usr/local/include"; then
  9923. if test -n "$GCC"; then
  9924. case $host_os in
  9925. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9926. esac
  9927. fi
  9928. fi
  9929. if test -z "$haveit"; then
  9930. for x in $CPPFLAGS $INCICONV; do
  9931. acl_save_prefix="$prefix"
  9932. prefix="$acl_final_prefix"
  9933. acl_save_exec_prefix="$exec_prefix"
  9934. exec_prefix="$acl_final_exec_prefix"
  9935. eval x=\"$x\"
  9936. exec_prefix="$acl_save_exec_prefix"
  9937. prefix="$acl_save_prefix"
  9938. if test "X$x" = "X-I$additional_includedir"; then
  9939. haveit=yes
  9940. break
  9941. fi
  9942. done
  9943. if test -z "$haveit"; then
  9944. if test -d "$additional_includedir"; then
  9945. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9946. fi
  9947. fi
  9948. fi
  9949. fi
  9950. fi
  9951. if test -n "$found_la"; then
  9952. save_libdir="$libdir"
  9953. case "$found_la" in
  9954. */* | *\\*) . "$found_la" ;;
  9955. *) . "./$found_la" ;;
  9956. esac
  9957. libdir="$save_libdir"
  9958. for dep in $dependency_libs; do
  9959. case "$dep" in
  9960. -L*)
  9961. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9962. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9963. haveit=
  9964. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9965. if test -n "$GCC"; then
  9966. case $host_os in
  9967. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9968. esac
  9969. fi
  9970. fi
  9971. if test -z "$haveit"; then
  9972. haveit=
  9973. for x in $LDFLAGS $LIBICONV; do
  9974. acl_save_prefix="$prefix"
  9975. prefix="$acl_final_prefix"
  9976. acl_save_exec_prefix="$exec_prefix"
  9977. exec_prefix="$acl_final_exec_prefix"
  9978. eval x=\"$x\"
  9979. exec_prefix="$acl_save_exec_prefix"
  9980. prefix="$acl_save_prefix"
  9981. if test "X$x" = "X-L$additional_libdir"; then
  9982. haveit=yes
  9983. break
  9984. fi
  9985. done
  9986. if test -z "$haveit"; then
  9987. if test -d "$additional_libdir"; then
  9988. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9989. fi
  9990. fi
  9991. haveit=
  9992. for x in $LDFLAGS $LTLIBICONV; do
  9993. acl_save_prefix="$prefix"
  9994. prefix="$acl_final_prefix"
  9995. acl_save_exec_prefix="$exec_prefix"
  9996. exec_prefix="$acl_final_exec_prefix"
  9997. eval x=\"$x\"
  9998. exec_prefix="$acl_save_exec_prefix"
  9999. prefix="$acl_save_prefix"
  10000. if test "X$x" = "X-L$additional_libdir"; then
  10001. haveit=yes
  10002. break
  10003. fi
  10004. done
  10005. if test -z "$haveit"; then
  10006. if test -d "$additional_libdir"; then
  10007. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10008. fi
  10009. fi
  10010. fi
  10011. fi
  10012. ;;
  10013. -R*)
  10014. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10015. if test "$enable_rpath" != no; then
  10016. haveit=
  10017. for x in $rpathdirs; do
  10018. if test "X$x" = "X$dir"; then
  10019. haveit=yes
  10020. break
  10021. fi
  10022. done
  10023. if test -z "$haveit"; then
  10024. rpathdirs="$rpathdirs $dir"
  10025. fi
  10026. haveit=
  10027. for x in $ltrpathdirs; do
  10028. if test "X$x" = "X$dir"; then
  10029. haveit=yes
  10030. break
  10031. fi
  10032. done
  10033. if test -z "$haveit"; then
  10034. ltrpathdirs="$ltrpathdirs $dir"
  10035. fi
  10036. fi
  10037. ;;
  10038. -l*)
  10039. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10040. ;;
  10041. *.la)
  10042. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10043. ;;
  10044. *)
  10045. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10046. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10047. ;;
  10048. esac
  10049. done
  10050. fi
  10051. else
  10052. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10053. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10054. fi
  10055. fi
  10056. fi
  10057. done
  10058. done
  10059. if test "X$rpathdirs" != "X"; then
  10060. if test -n "$acl_hardcode_libdir_separator"; then
  10061. alldirs=
  10062. for found_dir in $rpathdirs; do
  10063. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10064. done
  10065. acl_save_libdir="$libdir"
  10066. libdir="$alldirs"
  10067. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10068. libdir="$acl_save_libdir"
  10069. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10070. else
  10071. for found_dir in $rpathdirs; do
  10072. acl_save_libdir="$libdir"
  10073. libdir="$found_dir"
  10074. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10075. libdir="$acl_save_libdir"
  10076. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10077. done
  10078. fi
  10079. fi
  10080. if test "X$ltrpathdirs" != "X"; then
  10081. for found_dir in $ltrpathdirs; do
  10082. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10083. done
  10084. fi
  10085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10086. /* end confdefs.h. */
  10087. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10088. int
  10089. main ()
  10090. {
  10091. ;
  10092. return 0;
  10093. }
  10094. _ACEOF
  10095. if ac_fn_cxx_try_link "$LINENO"; then :
  10096. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10097. fi
  10098. rm -f core conftest.err conftest.$ac_objext \
  10099. conftest$ac_exeext conftest.$ac_ext
  10100. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10101. do :
  10102. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10103. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10104. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10105. cat >>confdefs.h <<_ACEOF
  10106. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10107. _ACEOF
  10108. fi
  10109. done
  10110. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10111. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10112. argz_next __fsetlocking
  10113. do :
  10114. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10115. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10116. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10117. cat >>confdefs.h <<_ACEOF
  10118. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10119. _ACEOF
  10120. fi
  10121. done
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10123. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10124. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. #include <stdio.h>
  10130. int
  10131. main ()
  10132. {
  10133. #ifndef feof_unlocked
  10134. char *p = (char *) feof_unlocked;
  10135. #endif
  10136. ;
  10137. return 0;
  10138. }
  10139. _ACEOF
  10140. if ac_fn_cxx_try_compile "$LINENO"; then :
  10141. ac_cv_have_decl_feof_unlocked=yes
  10142. else
  10143. ac_cv_have_decl_feof_unlocked=no
  10144. fi
  10145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10146. fi
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10148. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10149. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10150. gt_value=1
  10151. else
  10152. gt_value=0
  10153. fi
  10154. cat >>confdefs.h <<_ACEOF
  10155. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10156. _ACEOF
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10158. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10159. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10160. $as_echo_n "(cached) " >&6
  10161. else
  10162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10163. /* end confdefs.h. */
  10164. #include <stdio.h>
  10165. int
  10166. main ()
  10167. {
  10168. #ifndef fgets_unlocked
  10169. char *p = (char *) fgets_unlocked;
  10170. #endif
  10171. ;
  10172. return 0;
  10173. }
  10174. _ACEOF
  10175. if ac_fn_cxx_try_compile "$LINENO"; then :
  10176. ac_cv_have_decl_fgets_unlocked=yes
  10177. else
  10178. ac_cv_have_decl_fgets_unlocked=no
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10183. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10184. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10185. gt_value=1
  10186. else
  10187. gt_value=0
  10188. fi
  10189. cat >>confdefs.h <<_ACEOF
  10190. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10191. _ACEOF
  10192. am_save_CPPFLAGS="$CPPFLAGS"
  10193. for element in $INCICONV; do
  10194. haveit=
  10195. for x in $CPPFLAGS; do
  10196. acl_save_prefix="$prefix"
  10197. prefix="$acl_final_prefix"
  10198. acl_save_exec_prefix="$exec_prefix"
  10199. exec_prefix="$acl_final_exec_prefix"
  10200. eval x=\"$x\"
  10201. exec_prefix="$acl_save_exec_prefix"
  10202. prefix="$acl_save_prefix"
  10203. if test "X$x" = "X$element"; then
  10204. haveit=yes
  10205. break
  10206. fi
  10207. done
  10208. if test -z "$haveit"; then
  10209. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10210. fi
  10211. done
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10213. $as_echo_n "checking for iconv... " >&6; }
  10214. if test "${am_cv_func_iconv+set}" = set; then :
  10215. $as_echo_n "(cached) " >&6
  10216. else
  10217. am_cv_func_iconv="no, consider installing GNU libiconv"
  10218. am_cv_lib_iconv=no
  10219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10220. /* end confdefs.h. */
  10221. #include <stdlib.h>
  10222. #include <iconv.h>
  10223. int
  10224. main ()
  10225. {
  10226. iconv_t cd = iconv_open("","");
  10227. iconv(cd,NULL,NULL,NULL,NULL);
  10228. iconv_close(cd);
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. if ac_fn_cxx_try_link "$LINENO"; then :
  10234. am_cv_func_iconv=yes
  10235. fi
  10236. rm -f core conftest.err conftest.$ac_objext \
  10237. conftest$ac_exeext conftest.$ac_ext
  10238. if test "$am_cv_func_iconv" != yes; then
  10239. am_save_LIBS="$LIBS"
  10240. LIBS="$LIBS $LIBICONV"
  10241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. /* end confdefs.h. */
  10243. #include <stdlib.h>
  10244. #include <iconv.h>
  10245. int
  10246. main ()
  10247. {
  10248. iconv_t cd = iconv_open("","");
  10249. iconv(cd,NULL,NULL,NULL,NULL);
  10250. iconv_close(cd);
  10251. ;
  10252. return 0;
  10253. }
  10254. _ACEOF
  10255. if ac_fn_cxx_try_link "$LINENO"; then :
  10256. am_cv_lib_iconv=yes
  10257. am_cv_func_iconv=yes
  10258. fi
  10259. rm -f core conftest.err conftest.$ac_objext \
  10260. conftest$ac_exeext conftest.$ac_ext
  10261. LIBS="$am_save_LIBS"
  10262. fi
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10265. $as_echo "$am_cv_func_iconv" >&6; }
  10266. if test "$am_cv_func_iconv" = yes; then
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10268. $as_echo_n "checking for working iconv... " >&6; }
  10269. if test "${am_cv_func_iconv_works+set}" = set; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. am_save_LIBS="$LIBS"
  10273. if test $am_cv_lib_iconv = yes; then
  10274. LIBS="$LIBS $LIBICONV"
  10275. fi
  10276. if test "$cross_compiling" = yes; then :
  10277. case "$host_os" in
  10278. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10279. *) am_cv_func_iconv_works="guessing yes" ;;
  10280. esac
  10281. else
  10282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10283. /* end confdefs.h. */
  10284. #include <iconv.h>
  10285. #include <string.h>
  10286. int main ()
  10287. {
  10288. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10289. returns. */
  10290. {
  10291. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10292. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10293. {
  10294. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10295. char buf[10];
  10296. const char *inptr = input;
  10297. size_t inbytesleft = strlen (input);
  10298. char *outptr = buf;
  10299. size_t outbytesleft = sizeof (buf);
  10300. size_t res = iconv (cd_utf8_to_88591,
  10301. (char **) &inptr, &inbytesleft,
  10302. &outptr, &outbytesleft);
  10303. if (res == 0)
  10304. return 1;
  10305. }
  10306. }
  10307. #if 0 /* This bug could be worked around by the caller. */
  10308. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10309. {
  10310. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10311. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10312. {
  10313. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10314. char buf[50];
  10315. const char *inptr = input;
  10316. size_t inbytesleft = strlen (input);
  10317. char *outptr = buf;
  10318. size_t outbytesleft = sizeof (buf);
  10319. size_t res = iconv (cd_88591_to_utf8,
  10320. (char **) &inptr, &inbytesleft,
  10321. &outptr, &outbytesleft);
  10322. if ((int)res > 0)
  10323. return 1;
  10324. }
  10325. }
  10326. #endif
  10327. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10328. provided. */
  10329. if (/* Try standardized names. */
  10330. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10331. /* Try IRIX, OSF/1 names. */
  10332. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10333. /* Try AIX names. */
  10334. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10335. /* Try HP-UX names. */
  10336. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10337. return 1;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_cxx_try_run "$LINENO"; then :
  10342. am_cv_func_iconv_works=yes
  10343. else
  10344. am_cv_func_iconv_works=no
  10345. fi
  10346. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10347. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10348. fi
  10349. LIBS="$am_save_LIBS"
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10352. $as_echo "$am_cv_func_iconv_works" >&6; }
  10353. case "$am_cv_func_iconv_works" in
  10354. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10355. *) am_func_iconv=yes ;;
  10356. esac
  10357. else
  10358. am_func_iconv=no am_cv_lib_iconv=no
  10359. fi
  10360. if test "$am_func_iconv" = yes; then
  10361. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10362. fi
  10363. if test "$am_cv_lib_iconv" = yes; then
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10365. $as_echo_n "checking how to link with libiconv... " >&6; }
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10367. $as_echo "$LIBICONV" >&6; }
  10368. else
  10369. CPPFLAGS="$am_save_CPPFLAGS"
  10370. LIBICONV=
  10371. LTLIBICONV=
  10372. fi
  10373. if test "$am_cv_func_iconv" = yes; then
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10375. $as_echo_n "checking for iconv declaration... " >&6; }
  10376. if test "${am_cv_proto_iconv+set}" = set; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. #include <stdlib.h>
  10382. #include <iconv.h>
  10383. extern
  10384. #ifdef __cplusplus
  10385. "C"
  10386. #endif
  10387. #if defined(__STDC__) || defined(__cplusplus)
  10388. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10389. #else
  10390. size_t iconv();
  10391. #endif
  10392. int
  10393. main ()
  10394. {
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_cxx_try_compile "$LINENO"; then :
  10400. am_cv_proto_iconv_arg1=""
  10401. else
  10402. am_cv_proto_iconv_arg1="const"
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10405. 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);"
  10406. fi
  10407. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10409. }$am_cv_proto_iconv" >&5
  10410. $as_echo "${ac_t:-
  10411. }$am_cv_proto_iconv" >&6; }
  10412. cat >>confdefs.h <<_ACEOF
  10413. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10414. _ACEOF
  10415. fi
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10417. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10418. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. #include <langinfo.h>
  10424. #include <locale.h>
  10425. int
  10426. main ()
  10427. {
  10428. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10429. return !cs;
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. if ac_fn_cxx_try_link "$LINENO"; then :
  10435. gt_cv_nl_locale_name=yes
  10436. else
  10437. gt_cv_nl_locale_name=no
  10438. fi
  10439. rm -f core conftest.err conftest.$ac_objext \
  10440. conftest$ac_exeext conftest.$ac_ext
  10441. fi
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10443. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10444. if test $gt_cv_nl_locale_name = yes; then
  10445. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10446. fi
  10447. for ac_prog in bison
  10448. do
  10449. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10450. set dummy $ac_prog; ac_word=$2
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10452. $as_echo_n "checking for $ac_word... " >&6; }
  10453. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. if test -n "$INTLBISON"; then
  10457. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10458. else
  10459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10460. for as_dir in $PATH
  10461. do
  10462. IFS=$as_save_IFS
  10463. test -z "$as_dir" && as_dir=.
  10464. for ac_exec_ext in '' $ac_executable_extensions; do
  10465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10466. ac_cv_prog_INTLBISON="$ac_prog"
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10468. break 2
  10469. fi
  10470. done
  10471. done
  10472. IFS=$as_save_IFS
  10473. fi
  10474. fi
  10475. INTLBISON=$ac_cv_prog_INTLBISON
  10476. if test -n "$INTLBISON"; then
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10478. $as_echo "$INTLBISON" >&6; }
  10479. else
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10481. $as_echo "no" >&6; }
  10482. fi
  10483. test -n "$INTLBISON" && break
  10484. done
  10485. if test -z "$INTLBISON"; then
  10486. ac_verc_fail=yes
  10487. else
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10489. $as_echo_n "checking version of bison... " >&6; }
  10490. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10491. case $ac_prog_version in
  10492. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10493. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10494. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10495. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10496. esac
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10498. $as_echo "$ac_prog_version" >&6; }
  10499. fi
  10500. if test $ac_verc_fail = yes; then
  10501. INTLBISON=:
  10502. fi
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10504. $as_echo_n "checking for long long int... " >&6; }
  10505. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10506. $as_echo_n "(cached) " >&6
  10507. else
  10508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10509. /* end confdefs.h. */
  10510. /* Test preprocessor. */
  10511. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10512. error in preprocessor;
  10513. #endif
  10514. #if ! (18446744073709551615ULL <= -1ull)
  10515. error in preprocessor;
  10516. #endif
  10517. /* Test literals. */
  10518. long long int ll = 9223372036854775807ll;
  10519. long long int nll = -9223372036854775807LL;
  10520. unsigned long long int ull = 18446744073709551615ULL;
  10521. /* Test constant expressions. */
  10522. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10523. ? 1 : -1)];
  10524. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10525. ? 1 : -1)];
  10526. int i = 63;
  10527. int
  10528. main ()
  10529. {
  10530. /* Test availability of runtime routines for shift and division. */
  10531. long long int llmax = 9223372036854775807ll;
  10532. unsigned long long int ullmax = 18446744073709551615ull;
  10533. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10534. | (llmax / ll) | (llmax % ll)
  10535. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10536. | (ullmax / ull) | (ullmax % ull));
  10537. ;
  10538. return 0;
  10539. }
  10540. _ACEOF
  10541. if ac_fn_cxx_try_link "$LINENO"; then :
  10542. if test "$cross_compiling" = yes; then :
  10543. ac_cv_type_long_long_int=yes
  10544. else
  10545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10546. /* end confdefs.h. */
  10547. #include <limits.h>
  10548. #ifndef LLONG_MAX
  10549. # define HALF \
  10550. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10551. # define LLONG_MAX (HALF - 1 + HALF)
  10552. #endif
  10553. int
  10554. main ()
  10555. {
  10556. long long int n = 1;
  10557. int i;
  10558. for (i = 0; ; i++)
  10559. {
  10560. long long int m = n << i;
  10561. if (m >> i != n)
  10562. return 1;
  10563. if (LLONG_MAX / 2 < m)
  10564. break;
  10565. }
  10566. return 0;
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. if ac_fn_cxx_try_run "$LINENO"; then :
  10572. ac_cv_type_long_long_int=yes
  10573. else
  10574. ac_cv_type_long_long_int=no
  10575. fi
  10576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10577. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10578. fi
  10579. else
  10580. ac_cv_type_long_long_int=no
  10581. fi
  10582. rm -f core conftest.err conftest.$ac_objext \
  10583. conftest$ac_exeext conftest.$ac_ext
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10586. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10587. if test $ac_cv_type_long_long_int = yes; then
  10588. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10589. fi
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10591. $as_echo_n "checking for wchar_t... " >&6; }
  10592. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10596. /* end confdefs.h. */
  10597. #include <stddef.h>
  10598. wchar_t foo = (wchar_t)'\0';
  10599. int
  10600. main ()
  10601. {
  10602. ;
  10603. return 0;
  10604. }
  10605. _ACEOF
  10606. if ac_fn_cxx_try_compile "$LINENO"; then :
  10607. gt_cv_c_wchar_t=yes
  10608. else
  10609. gt_cv_c_wchar_t=no
  10610. fi
  10611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10614. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10615. if test $gt_cv_c_wchar_t = yes; then
  10616. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10619. $as_echo_n "checking for wint_t... " >&6; }
  10620. if test "${gt_cv_c_wint_t+set}" = set; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10624. /* end confdefs.h. */
  10625. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10626. <wchar.h>.
  10627. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10628. before <wchar.h>. */
  10629. #include <stddef.h>
  10630. #include <stdio.h>
  10631. #include <time.h>
  10632. #include <wchar.h>
  10633. wint_t foo = (wchar_t)'\0';
  10634. int
  10635. main ()
  10636. {
  10637. ;
  10638. return 0;
  10639. }
  10640. _ACEOF
  10641. if ac_fn_cxx_try_compile "$LINENO"; then :
  10642. gt_cv_c_wint_t=yes
  10643. else
  10644. gt_cv_c_wint_t=no
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10649. $as_echo "$gt_cv_c_wint_t" >&6; }
  10650. if test $gt_cv_c_wint_t = yes; then
  10651. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10652. fi
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10654. $as_echo_n "checking for intmax_t... " >&6; }
  10655. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10656. $as_echo_n "(cached) " >&6
  10657. else
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. #include <stddef.h>
  10661. #include <stdlib.h>
  10662. #if HAVE_STDINT_H_WITH_UINTMAX
  10663. #include <stdint.h>
  10664. #endif
  10665. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10666. #include <inttypes.h>
  10667. #endif
  10668. int
  10669. main ()
  10670. {
  10671. intmax_t x = -1;
  10672. return !x;
  10673. ;
  10674. return 0;
  10675. }
  10676. _ACEOF
  10677. if ac_fn_cxx_try_compile "$LINENO"; then :
  10678. gt_cv_c_intmax_t=yes
  10679. else
  10680. gt_cv_c_intmax_t=no
  10681. fi
  10682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10683. fi
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10685. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10686. if test $gt_cv_c_intmax_t = yes; then
  10687. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10688. fi
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10690. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10691. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10692. $as_echo_n "(cached) " >&6
  10693. else
  10694. if test "$cross_compiling" = yes; then :
  10695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10696. /* end confdefs.h. */
  10697. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10698. notposix
  10699. #endif
  10700. _ACEOF
  10701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10702. $EGREP "notposix" >/dev/null 2>&1; then :
  10703. gt_cv_func_printf_posix="guessing no"
  10704. else
  10705. gt_cv_func_printf_posix="guessing yes"
  10706. fi
  10707. rm -f conftest*
  10708. else
  10709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10710. /* end confdefs.h. */
  10711. #include <stdio.h>
  10712. #include <string.h>
  10713. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10714. dollar expansion (possibly an autoconf bug). */
  10715. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10716. static char buf[100];
  10717. int main ()
  10718. {
  10719. sprintf (buf, format, 33, 55);
  10720. return (strcmp (buf, "55 33") != 0);
  10721. }
  10722. _ACEOF
  10723. if ac_fn_cxx_try_run "$LINENO"; then :
  10724. gt_cv_func_printf_posix=yes
  10725. else
  10726. gt_cv_func_printf_posix=no
  10727. fi
  10728. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10729. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10730. fi
  10731. fi
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10733. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10734. case $gt_cv_func_printf_posix in
  10735. *yes)
  10736. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10737. ;;
  10738. esac
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10740. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10741. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. #include <features.h>
  10747. #ifdef __GNU_LIBRARY__
  10748. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10749. Lucky GNU user
  10750. #endif
  10751. #endif
  10752. _ACEOF
  10753. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10754. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10755. ac_cv_gnu_library_2_1=yes
  10756. else
  10757. ac_cv_gnu_library_2_1=no
  10758. fi
  10759. rm -f conftest*
  10760. fi
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10762. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10763. GLIBC21="$ac_cv_gnu_library_2_1"
  10764. for ac_header in stdint.h
  10765. do :
  10766. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10767. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10768. cat >>confdefs.h <<_ACEOF
  10769. #define HAVE_STDINT_H 1
  10770. _ACEOF
  10771. fi
  10772. done
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10774. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10775. if test "${gl_cv_size_max+set}" = set; then :
  10776. $as_echo_n "(cached) " >&6
  10777. else
  10778. gl_cv_size_max=
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. #include <limits.h>
  10782. #if HAVE_STDINT_H
  10783. #include <stdint.h>
  10784. #endif
  10785. #ifdef SIZE_MAX
  10786. Found it
  10787. #endif
  10788. _ACEOF
  10789. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10790. $EGREP "Found it" >/dev/null 2>&1; then :
  10791. gl_cv_size_max=yes
  10792. fi
  10793. rm -f conftest*
  10794. if test -z "$gl_cv_size_max"; then
  10795. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10796. #include <limits.h>"; then :
  10797. else
  10798. size_t_bits_minus_1=
  10799. fi
  10800. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10801. else
  10802. fits_in_uint=
  10803. fi
  10804. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10805. if test $fits_in_uint = 1; then
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. #include <stddef.h>
  10809. extern size_t foo;
  10810. extern unsigned long foo;
  10811. int
  10812. main ()
  10813. {
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if ac_fn_cxx_try_compile "$LINENO"; then :
  10819. fits_in_uint=0
  10820. fi
  10821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10822. fi
  10823. if test $fits_in_uint = 1; then
  10824. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10825. else
  10826. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10827. fi
  10828. else
  10829. gl_cv_size_max='((size_t)~(size_t)0)'
  10830. fi
  10831. fi
  10832. fi
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10834. $as_echo "$gl_cv_size_max" >&6; }
  10835. if test "$gl_cv_size_max" != yes; then
  10836. cat >>confdefs.h <<_ACEOF
  10837. #define SIZE_MAX $gl_cv_size_max
  10838. _ACEOF
  10839. fi
  10840. for ac_header in stdint.h
  10841. do :
  10842. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10843. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10844. cat >>confdefs.h <<_ACEOF
  10845. #define HAVE_STDINT_H 1
  10846. _ACEOF
  10847. fi
  10848. done
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10850. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10851. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10852. $as_echo_n "(cached) " >&6
  10853. else
  10854. gt_save_LIBS="$LIBS"
  10855. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. #include <CoreFoundation/CFPreferences.h>
  10859. int
  10860. main ()
  10861. {
  10862. CFPreferencesCopyAppValue(NULL, NULL)
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_cxx_try_link "$LINENO"; then :
  10868. gt_cv_func_CFPreferencesCopyAppValue=yes
  10869. else
  10870. gt_cv_func_CFPreferencesCopyAppValue=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext \
  10873. conftest$ac_exeext conftest.$ac_ext
  10874. LIBS="$gt_save_LIBS"
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10877. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10878. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10879. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10882. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10883. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10884. $as_echo_n "(cached) " >&6
  10885. else
  10886. gt_save_LIBS="$LIBS"
  10887. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10889. /* end confdefs.h. */
  10890. #include <CoreFoundation/CFLocale.h>
  10891. int
  10892. main ()
  10893. {
  10894. CFLocaleCopyCurrent();
  10895. ;
  10896. return 0;
  10897. }
  10898. _ACEOF
  10899. if ac_fn_cxx_try_link "$LINENO"; then :
  10900. gt_cv_func_CFLocaleCopyCurrent=yes
  10901. else
  10902. gt_cv_func_CFLocaleCopyCurrent=no
  10903. fi
  10904. rm -f core conftest.err conftest.$ac_objext \
  10905. conftest$ac_exeext conftest.$ac_ext
  10906. LIBS="$gt_save_LIBS"
  10907. fi
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10909. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10910. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10911. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10912. fi
  10913. INTL_MACOSX_LIBS=
  10914. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10915. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10916. fi
  10917. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10918. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10919. else
  10920. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10921. fi
  10922. for ac_header in stddef.h stdlib.h string.h
  10923. do :
  10924. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10925. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10926. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10927. cat >>confdefs.h <<_ACEOF
  10928. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10929. _ACEOF
  10930. fi
  10931. done
  10932. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10933. do :
  10934. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10935. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10936. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10937. cat >>confdefs.h <<_ACEOF
  10938. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10939. _ACEOF
  10940. fi
  10941. done
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10943. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10944. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. #include <stdio.h>
  10950. int
  10951. main ()
  10952. {
  10953. #ifndef _snprintf
  10954. char *p = (char *) _snprintf;
  10955. #endif
  10956. ;
  10957. return 0;
  10958. }
  10959. _ACEOF
  10960. if ac_fn_cxx_try_compile "$LINENO"; then :
  10961. ac_cv_have_decl__snprintf=yes
  10962. else
  10963. ac_cv_have_decl__snprintf=no
  10964. fi
  10965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10968. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10969. if test $ac_cv_have_decl__snprintf = yes; then
  10970. gt_value=1
  10971. else
  10972. gt_value=0
  10973. fi
  10974. cat >>confdefs.h <<_ACEOF
  10975. #define HAVE_DECL__SNPRINTF $gt_value
  10976. _ACEOF
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10978. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10979. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10983. /* end confdefs.h. */
  10984. #include <stdio.h>
  10985. int
  10986. main ()
  10987. {
  10988. #ifndef _snwprintf
  10989. char *p = (char *) _snwprintf;
  10990. #endif
  10991. ;
  10992. return 0;
  10993. }
  10994. _ACEOF
  10995. if ac_fn_cxx_try_compile "$LINENO"; then :
  10996. ac_cv_have_decl__snwprintf=yes
  10997. else
  10998. ac_cv_have_decl__snwprintf=no
  10999. fi
  11000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11001. fi
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11003. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11004. if test $ac_cv_have_decl__snwprintf = yes; then
  11005. gt_value=1
  11006. else
  11007. gt_value=0
  11008. fi
  11009. cat >>confdefs.h <<_ACEOF
  11010. #define HAVE_DECL__SNWPRINTF $gt_value
  11011. _ACEOF
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11013. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11014. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11015. $as_echo_n "(cached) " >&6
  11016. else
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. #include <stdio.h>
  11020. int
  11021. main ()
  11022. {
  11023. #ifndef getc_unlocked
  11024. char *p = (char *) getc_unlocked;
  11025. #endif
  11026. ;
  11027. return 0;
  11028. }
  11029. _ACEOF
  11030. if ac_fn_cxx_try_compile "$LINENO"; then :
  11031. ac_cv_have_decl_getc_unlocked=yes
  11032. else
  11033. ac_cv_have_decl_getc_unlocked=no
  11034. fi
  11035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11036. fi
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11038. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11039. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11040. gt_value=1
  11041. else
  11042. gt_value=0
  11043. fi
  11044. cat >>confdefs.h <<_ACEOF
  11045. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11046. _ACEOF
  11047. case $gt_cv_func_printf_posix in
  11048. *yes) HAVE_POSIX_PRINTF=1 ;;
  11049. *) HAVE_POSIX_PRINTF=0 ;;
  11050. esac
  11051. if test "$ac_cv_func_asprintf" = yes; then
  11052. HAVE_ASPRINTF=1
  11053. else
  11054. HAVE_ASPRINTF=0
  11055. fi
  11056. if test "$ac_cv_func_snprintf" = yes; then
  11057. HAVE_SNPRINTF=1
  11058. else
  11059. HAVE_SNPRINTF=0
  11060. fi
  11061. if test "$ac_cv_func_wprintf" = yes; then
  11062. HAVE_WPRINTF=1
  11063. else
  11064. HAVE_WPRINTF=0
  11065. fi
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11067. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11068. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. #include <langinfo.h>
  11074. int
  11075. main ()
  11076. {
  11077. char* cs = nl_langinfo(CODESET); return !cs;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. if ac_fn_cxx_try_link "$LINENO"; then :
  11083. am_cv_langinfo_codeset=yes
  11084. else
  11085. am_cv_langinfo_codeset=no
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext \
  11088. conftest$ac_exeext conftest.$ac_ext
  11089. fi
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11091. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11092. if test $am_cv_langinfo_codeset = yes; then
  11093. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11094. fi
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11096. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11097. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11098. $as_echo_n "(cached) " >&6
  11099. else
  11100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11101. /* end confdefs.h. */
  11102. #include <locale.h>
  11103. int
  11104. main ()
  11105. {
  11106. return LC_MESSAGES
  11107. ;
  11108. return 0;
  11109. }
  11110. _ACEOF
  11111. if ac_fn_cxx_try_link "$LINENO"; then :
  11112. gt_cv_val_LC_MESSAGES=yes
  11113. else
  11114. gt_cv_val_LC_MESSAGES=no
  11115. fi
  11116. rm -f core conftest.err conftest.$ac_objext \
  11117. conftest$ac_exeext conftest.$ac_ext
  11118. fi
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11120. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11121. if test $gt_cv_val_LC_MESSAGES = yes; then
  11122. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11123. fi
  11124. if test "$enable_shared" = yes; then
  11125. case "$host_os" in
  11126. mingw* | cygwin*) is_woe32dll=yes ;;
  11127. *) is_woe32dll=no ;;
  11128. esac
  11129. else
  11130. is_woe32dll=no
  11131. fi
  11132. WOE32DLL=$is_woe32dll
  11133. case "$host_os" in
  11134. mingw* | cygwin*) is_woe32=yes ;;
  11135. *) is_woe32=no ;;
  11136. esac
  11137. WOE32=$is_woe32
  11138. if test $WOE32 = yes; then
  11139. if test -n "$ac_tool_prefix"; then
  11140. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11141. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11143. $as_echo_n "checking for $ac_word... " >&6; }
  11144. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11145. $as_echo_n "(cached) " >&6
  11146. else
  11147. if test -n "$WINDRES"; then
  11148. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11149. else
  11150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11151. for as_dir in $PATH
  11152. do
  11153. IFS=$as_save_IFS
  11154. test -z "$as_dir" && as_dir=.
  11155. for ac_exec_ext in '' $ac_executable_extensions; do
  11156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11157. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11159. break 2
  11160. fi
  11161. done
  11162. done
  11163. IFS=$as_save_IFS
  11164. fi
  11165. fi
  11166. WINDRES=$ac_cv_prog_WINDRES
  11167. if test -n "$WINDRES"; then
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11169. $as_echo "$WINDRES" >&6; }
  11170. else
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. $as_echo "no" >&6; }
  11173. fi
  11174. fi
  11175. if test -z "$ac_cv_prog_WINDRES"; then
  11176. ac_ct_WINDRES=$WINDRES
  11177. # Extract the first word of "windres", so it can be a program name with args.
  11178. set dummy windres; ac_word=$2
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11180. $as_echo_n "checking for $ac_word... " >&6; }
  11181. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11182. $as_echo_n "(cached) " >&6
  11183. else
  11184. if test -n "$ac_ct_WINDRES"; then
  11185. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11186. else
  11187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11188. for as_dir in $PATH
  11189. do
  11190. IFS=$as_save_IFS
  11191. test -z "$as_dir" && as_dir=.
  11192. for ac_exec_ext in '' $ac_executable_extensions; do
  11193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11194. ac_cv_prog_ac_ct_WINDRES="windres"
  11195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11196. break 2
  11197. fi
  11198. done
  11199. done
  11200. IFS=$as_save_IFS
  11201. fi
  11202. fi
  11203. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11204. if test -n "$ac_ct_WINDRES"; then
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11206. $as_echo "$ac_ct_WINDRES" >&6; }
  11207. else
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11209. $as_echo "no" >&6; }
  11210. fi
  11211. if test "x$ac_ct_WINDRES" = x; then
  11212. WINDRES=""
  11213. else
  11214. case $cross_compiling:$ac_tool_warned in
  11215. yes:)
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11218. ac_tool_warned=yes ;;
  11219. esac
  11220. WINDRES=$ac_ct_WINDRES
  11221. fi
  11222. else
  11223. WINDRES="$ac_cv_prog_WINDRES"
  11224. fi
  11225. fi
  11226. case "$host_os" in
  11227. hpux*) LTLIBC="" ;;
  11228. *) LTLIBC="-lc" ;;
  11229. esac
  11230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11231. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11232. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11233. $as_echo_n "(cached) " >&6
  11234. else
  11235. gt_save_LIBS="$LIBS"
  11236. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11238. /* end confdefs.h. */
  11239. #include <CoreFoundation/CFPreferences.h>
  11240. int
  11241. main ()
  11242. {
  11243. CFPreferencesCopyAppValue(NULL, NULL)
  11244. ;
  11245. return 0;
  11246. }
  11247. _ACEOF
  11248. if ac_fn_cxx_try_link "$LINENO"; then :
  11249. gt_cv_func_CFPreferencesCopyAppValue=yes
  11250. else
  11251. gt_cv_func_CFPreferencesCopyAppValue=no
  11252. fi
  11253. rm -f core conftest.err conftest.$ac_objext \
  11254. conftest$ac_exeext conftest.$ac_ext
  11255. LIBS="$gt_save_LIBS"
  11256. fi
  11257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11258. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11259. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11260. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11261. fi
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11263. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11264. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11265. $as_echo_n "(cached) " >&6
  11266. else
  11267. gt_save_LIBS="$LIBS"
  11268. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11270. /* end confdefs.h. */
  11271. #include <CoreFoundation/CFLocale.h>
  11272. int
  11273. main ()
  11274. {
  11275. CFLocaleCopyCurrent();
  11276. ;
  11277. return 0;
  11278. }
  11279. _ACEOF
  11280. if ac_fn_cxx_try_link "$LINENO"; then :
  11281. gt_cv_func_CFLocaleCopyCurrent=yes
  11282. else
  11283. gt_cv_func_CFLocaleCopyCurrent=no
  11284. fi
  11285. rm -f core conftest.err conftest.$ac_objext \
  11286. conftest$ac_exeext conftest.$ac_ext
  11287. LIBS="$gt_save_LIBS"
  11288. fi
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11290. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11291. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11292. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11293. fi
  11294. INTL_MACOSX_LIBS=
  11295. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11296. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11297. fi
  11298. BUILD_INCLUDED_LIBINTL=no
  11299. USE_INCLUDED_LIBINTL=no
  11300. LIBINTL=
  11301. LTLIBINTL=
  11302. POSUB=
  11303. case " $gt_needs " in
  11304. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11305. *" need-ngettext "*) gt_api_version=2 ;;
  11306. *) gt_api_version=1 ;;
  11307. esac
  11308. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11309. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11310. if test "$USE_NLS" = "yes"; then
  11311. gt_use_preinstalled_gnugettext=no
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11313. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11314. # Check whether --with-included-gettext was given.
  11315. if test "${with_included_gettext+set}" = set; then :
  11316. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11317. else
  11318. nls_cv_force_use_gnu_gettext=no
  11319. fi
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11321. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11322. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11323. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11324. if test $gt_api_version -ge 3; then
  11325. gt_revision_test_code='
  11326. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11327. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11328. #endif
  11329. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11330. '
  11331. else
  11332. gt_revision_test_code=
  11333. fi
  11334. if test $gt_api_version -ge 2; then
  11335. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11336. else
  11337. gt_expression_test_code=
  11338. fi
  11339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11340. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11341. if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
  11342. $as_echo_n "(cached) " >&6
  11343. else
  11344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11345. /* end confdefs.h. */
  11346. #include <libintl.h>
  11347. $gt_revision_test_code
  11348. extern int _nl_msg_cat_cntr;
  11349. extern int *_nl_domain_bindings;
  11350. int
  11351. main ()
  11352. {
  11353. bindtextdomain ("", "");
  11354. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11355. ;
  11356. return 0;
  11357. }
  11358. _ACEOF
  11359. if ac_fn_cxx_try_link "$LINENO"; then :
  11360. eval "$gt_func_gnugettext_libc=yes"
  11361. else
  11362. eval "$gt_func_gnugettext_libc=no"
  11363. fi
  11364. rm -f core conftest.err conftest.$ac_objext \
  11365. conftest$ac_exeext conftest.$ac_ext
  11366. fi
  11367. eval ac_res=\$$gt_func_gnugettext_libc
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11369. $as_echo "$ac_res" >&6; }
  11370. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11371. use_additional=yes
  11372. acl_save_prefix="$prefix"
  11373. prefix="$acl_final_prefix"
  11374. acl_save_exec_prefix="$exec_prefix"
  11375. exec_prefix="$acl_final_exec_prefix"
  11376. eval additional_includedir=\"$includedir\"
  11377. eval additional_libdir=\"$libdir\"
  11378. exec_prefix="$acl_save_exec_prefix"
  11379. prefix="$acl_save_prefix"
  11380. # Check whether --with-libintl-prefix was given.
  11381. if test "${with_libintl_prefix+set}" = set; then :
  11382. withval=$with_libintl_prefix;
  11383. if test "X$withval" = "Xno"; then
  11384. use_additional=no
  11385. else
  11386. if test "X$withval" = "X"; then
  11387. acl_save_prefix="$prefix"
  11388. prefix="$acl_final_prefix"
  11389. acl_save_exec_prefix="$exec_prefix"
  11390. exec_prefix="$acl_final_exec_prefix"
  11391. eval additional_includedir=\"$includedir\"
  11392. eval additional_libdir=\"$libdir\"
  11393. exec_prefix="$acl_save_exec_prefix"
  11394. prefix="$acl_save_prefix"
  11395. else
  11396. additional_includedir="$withval/include"
  11397. additional_libdir="$withval/$acl_libdirstem"
  11398. fi
  11399. fi
  11400. fi
  11401. LIBINTL=
  11402. LTLIBINTL=
  11403. INCINTL=
  11404. LIBINTL_PREFIX=
  11405. rpathdirs=
  11406. ltrpathdirs=
  11407. names_already_handled=
  11408. names_next_round='intl '
  11409. while test -n "$names_next_round"; do
  11410. names_this_round="$names_next_round"
  11411. names_next_round=
  11412. for name in $names_this_round; do
  11413. already_handled=
  11414. for n in $names_already_handled; do
  11415. if test "$n" = "$name"; then
  11416. already_handled=yes
  11417. break
  11418. fi
  11419. done
  11420. if test -z "$already_handled"; then
  11421. names_already_handled="$names_already_handled $name"
  11422. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11423. eval value=\"\$HAVE_LIB$uppername\"
  11424. if test -n "$value"; then
  11425. if test "$value" = yes; then
  11426. eval value=\"\$LIB$uppername\"
  11427. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11428. eval value=\"\$LTLIB$uppername\"
  11429. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11430. else
  11431. :
  11432. fi
  11433. else
  11434. found_dir=
  11435. found_la=
  11436. found_so=
  11437. found_a=
  11438. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11439. if test -n "$acl_shlibext"; then
  11440. shrext=".$acl_shlibext" # typically: shrext=.so
  11441. else
  11442. shrext=
  11443. fi
  11444. if test $use_additional = yes; then
  11445. dir="$additional_libdir"
  11446. if test -n "$acl_shlibext"; then
  11447. if test -f "$dir/$libname$shrext"; then
  11448. found_dir="$dir"
  11449. found_so="$dir/$libname$shrext"
  11450. else
  11451. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11452. ver=`(cd "$dir" && \
  11453. for f in "$libname$shrext".*; do echo "$f"; done \
  11454. | sed -e "s,^$libname$shrext\\\\.,," \
  11455. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11456. | sed 1q ) 2>/dev/null`
  11457. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11458. found_dir="$dir"
  11459. found_so="$dir/$libname$shrext.$ver"
  11460. fi
  11461. else
  11462. eval library_names=\"$acl_library_names_spec\"
  11463. for f in $library_names; do
  11464. if test -f "$dir/$f"; then
  11465. found_dir="$dir"
  11466. found_so="$dir/$f"
  11467. break
  11468. fi
  11469. done
  11470. fi
  11471. fi
  11472. fi
  11473. if test "X$found_dir" = "X"; then
  11474. if test -f "$dir/$libname.$acl_libext"; then
  11475. found_dir="$dir"
  11476. found_a="$dir/$libname.$acl_libext"
  11477. fi
  11478. fi
  11479. if test "X$found_dir" != "X"; then
  11480. if test -f "$dir/$libname.la"; then
  11481. found_la="$dir/$libname.la"
  11482. fi
  11483. fi
  11484. fi
  11485. if test "X$found_dir" = "X"; then
  11486. for x in $LDFLAGS $LTLIBINTL; do
  11487. acl_save_prefix="$prefix"
  11488. prefix="$acl_final_prefix"
  11489. acl_save_exec_prefix="$exec_prefix"
  11490. exec_prefix="$acl_final_exec_prefix"
  11491. eval x=\"$x\"
  11492. exec_prefix="$acl_save_exec_prefix"
  11493. prefix="$acl_save_prefix"
  11494. case "$x" in
  11495. -L*)
  11496. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11497. if test -n "$acl_shlibext"; then
  11498. if test -f "$dir/$libname$shrext"; then
  11499. found_dir="$dir"
  11500. found_so="$dir/$libname$shrext"
  11501. else
  11502. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11503. ver=`(cd "$dir" && \
  11504. for f in "$libname$shrext".*; do echo "$f"; done \
  11505. | sed -e "s,^$libname$shrext\\\\.,," \
  11506. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11507. | sed 1q ) 2>/dev/null`
  11508. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11509. found_dir="$dir"
  11510. found_so="$dir/$libname$shrext.$ver"
  11511. fi
  11512. else
  11513. eval library_names=\"$acl_library_names_spec\"
  11514. for f in $library_names; do
  11515. if test -f "$dir/$f"; then
  11516. found_dir="$dir"
  11517. found_so="$dir/$f"
  11518. break
  11519. fi
  11520. done
  11521. fi
  11522. fi
  11523. fi
  11524. if test "X$found_dir" = "X"; then
  11525. if test -f "$dir/$libname.$acl_libext"; then
  11526. found_dir="$dir"
  11527. found_a="$dir/$libname.$acl_libext"
  11528. fi
  11529. fi
  11530. if test "X$found_dir" != "X"; then
  11531. if test -f "$dir/$libname.la"; then
  11532. found_la="$dir/$libname.la"
  11533. fi
  11534. fi
  11535. ;;
  11536. esac
  11537. if test "X$found_dir" != "X"; then
  11538. break
  11539. fi
  11540. done
  11541. fi
  11542. if test "X$found_dir" != "X"; then
  11543. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11544. if test "X$found_so" != "X"; then
  11545. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11546. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11547. else
  11548. haveit=
  11549. for x in $ltrpathdirs; do
  11550. if test "X$x" = "X$found_dir"; then
  11551. haveit=yes
  11552. break
  11553. fi
  11554. done
  11555. if test -z "$haveit"; then
  11556. ltrpathdirs="$ltrpathdirs $found_dir"
  11557. fi
  11558. if test "$acl_hardcode_direct" = yes; then
  11559. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11560. else
  11561. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11562. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11563. haveit=
  11564. for x in $rpathdirs; do
  11565. if test "X$x" = "X$found_dir"; then
  11566. haveit=yes
  11567. break
  11568. fi
  11569. done
  11570. if test -z "$haveit"; then
  11571. rpathdirs="$rpathdirs $found_dir"
  11572. fi
  11573. else
  11574. haveit=
  11575. for x in $LDFLAGS $LIBINTL; do
  11576. acl_save_prefix="$prefix"
  11577. prefix="$acl_final_prefix"
  11578. acl_save_exec_prefix="$exec_prefix"
  11579. exec_prefix="$acl_final_exec_prefix"
  11580. eval x=\"$x\"
  11581. exec_prefix="$acl_save_exec_prefix"
  11582. prefix="$acl_save_prefix"
  11583. if test "X$x" = "X-L$found_dir"; then
  11584. haveit=yes
  11585. break
  11586. fi
  11587. done
  11588. if test -z "$haveit"; then
  11589. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11590. fi
  11591. if test "$acl_hardcode_minus_L" != no; then
  11592. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11593. else
  11594. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11595. fi
  11596. fi
  11597. fi
  11598. fi
  11599. else
  11600. if test "X$found_a" != "X"; then
  11601. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11602. else
  11603. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11604. fi
  11605. fi
  11606. additional_includedir=
  11607. case "$found_dir" in
  11608. */$acl_libdirstem | */$acl_libdirstem/)
  11609. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11610. LIBINTL_PREFIX="$basedir"
  11611. additional_includedir="$basedir/include"
  11612. ;;
  11613. esac
  11614. if test "X$additional_includedir" != "X"; then
  11615. if test "X$additional_includedir" != "X/usr/include"; then
  11616. haveit=
  11617. if test "X$additional_includedir" = "X/usr/local/include"; then
  11618. if test -n "$GCC"; then
  11619. case $host_os in
  11620. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11621. esac
  11622. fi
  11623. fi
  11624. if test -z "$haveit"; then
  11625. for x in $CPPFLAGS $INCINTL; do
  11626. acl_save_prefix="$prefix"
  11627. prefix="$acl_final_prefix"
  11628. acl_save_exec_prefix="$exec_prefix"
  11629. exec_prefix="$acl_final_exec_prefix"
  11630. eval x=\"$x\"
  11631. exec_prefix="$acl_save_exec_prefix"
  11632. prefix="$acl_save_prefix"
  11633. if test "X$x" = "X-I$additional_includedir"; then
  11634. haveit=yes
  11635. break
  11636. fi
  11637. done
  11638. if test -z "$haveit"; then
  11639. if test -d "$additional_includedir"; then
  11640. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11641. fi
  11642. fi
  11643. fi
  11644. fi
  11645. fi
  11646. if test -n "$found_la"; then
  11647. save_libdir="$libdir"
  11648. case "$found_la" in
  11649. */* | *\\*) . "$found_la" ;;
  11650. *) . "./$found_la" ;;
  11651. esac
  11652. libdir="$save_libdir"
  11653. for dep in $dependency_libs; do
  11654. case "$dep" in
  11655. -L*)
  11656. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11657. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11658. haveit=
  11659. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11660. if test -n "$GCC"; then
  11661. case $host_os in
  11662. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11663. esac
  11664. fi
  11665. fi
  11666. if test -z "$haveit"; then
  11667. haveit=
  11668. for x in $LDFLAGS $LIBINTL; do
  11669. acl_save_prefix="$prefix"
  11670. prefix="$acl_final_prefix"
  11671. acl_save_exec_prefix="$exec_prefix"
  11672. exec_prefix="$acl_final_exec_prefix"
  11673. eval x=\"$x\"
  11674. exec_prefix="$acl_save_exec_prefix"
  11675. prefix="$acl_save_prefix"
  11676. if test "X$x" = "X-L$additional_libdir"; then
  11677. haveit=yes
  11678. break
  11679. fi
  11680. done
  11681. if test -z "$haveit"; then
  11682. if test -d "$additional_libdir"; then
  11683. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11684. fi
  11685. fi
  11686. haveit=
  11687. for x in $LDFLAGS $LTLIBINTL; do
  11688. acl_save_prefix="$prefix"
  11689. prefix="$acl_final_prefix"
  11690. acl_save_exec_prefix="$exec_prefix"
  11691. exec_prefix="$acl_final_exec_prefix"
  11692. eval x=\"$x\"
  11693. exec_prefix="$acl_save_exec_prefix"
  11694. prefix="$acl_save_prefix"
  11695. if test "X$x" = "X-L$additional_libdir"; then
  11696. haveit=yes
  11697. break
  11698. fi
  11699. done
  11700. if test -z "$haveit"; then
  11701. if test -d "$additional_libdir"; then
  11702. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11703. fi
  11704. fi
  11705. fi
  11706. fi
  11707. ;;
  11708. -R*)
  11709. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11710. if test "$enable_rpath" != no; then
  11711. haveit=
  11712. for x in $rpathdirs; do
  11713. if test "X$x" = "X$dir"; then
  11714. haveit=yes
  11715. break
  11716. fi
  11717. done
  11718. if test -z "$haveit"; then
  11719. rpathdirs="$rpathdirs $dir"
  11720. fi
  11721. haveit=
  11722. for x in $ltrpathdirs; do
  11723. if test "X$x" = "X$dir"; then
  11724. haveit=yes
  11725. break
  11726. fi
  11727. done
  11728. if test -z "$haveit"; then
  11729. ltrpathdirs="$ltrpathdirs $dir"
  11730. fi
  11731. fi
  11732. ;;
  11733. -l*)
  11734. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11735. ;;
  11736. *.la)
  11737. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11738. ;;
  11739. *)
  11740. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11741. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11742. ;;
  11743. esac
  11744. done
  11745. fi
  11746. else
  11747. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11748. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11749. fi
  11750. fi
  11751. fi
  11752. done
  11753. done
  11754. if test "X$rpathdirs" != "X"; then
  11755. if test -n "$acl_hardcode_libdir_separator"; then
  11756. alldirs=
  11757. for found_dir in $rpathdirs; do
  11758. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11759. done
  11760. acl_save_libdir="$libdir"
  11761. libdir="$alldirs"
  11762. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11763. libdir="$acl_save_libdir"
  11764. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11765. else
  11766. for found_dir in $rpathdirs; do
  11767. acl_save_libdir="$libdir"
  11768. libdir="$found_dir"
  11769. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11770. libdir="$acl_save_libdir"
  11771. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11772. done
  11773. fi
  11774. fi
  11775. if test "X$ltrpathdirs" != "X"; then
  11776. for found_dir in $ltrpathdirs; do
  11777. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11778. done
  11779. fi
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11781. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11782. if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. gt_save_CPPFLAGS="$CPPFLAGS"
  11786. CPPFLAGS="$CPPFLAGS $INCINTL"
  11787. gt_save_LIBS="$LIBS"
  11788. LIBS="$LIBS $LIBINTL"
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. #include <libintl.h>
  11792. $gt_revision_test_code
  11793. extern int _nl_msg_cat_cntr;
  11794. extern
  11795. #ifdef __cplusplus
  11796. "C"
  11797. #endif
  11798. const char *_nl_expand_alias (const char *);
  11799. int
  11800. main ()
  11801. {
  11802. bindtextdomain ("", "");
  11803. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11804. ;
  11805. return 0;
  11806. }
  11807. _ACEOF
  11808. if ac_fn_cxx_try_link "$LINENO"; then :
  11809. eval "$gt_func_gnugettext_libintl=yes"
  11810. else
  11811. eval "$gt_func_gnugettext_libintl=no"
  11812. fi
  11813. rm -f core conftest.err conftest.$ac_objext \
  11814. conftest$ac_exeext conftest.$ac_ext
  11815. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11816. LIBS="$LIBS $LIBICONV"
  11817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11818. /* end confdefs.h. */
  11819. #include <libintl.h>
  11820. $gt_revision_test_code
  11821. extern int _nl_msg_cat_cntr;
  11822. extern
  11823. #ifdef __cplusplus
  11824. "C"
  11825. #endif
  11826. const char *_nl_expand_alias (const char *);
  11827. int
  11828. main ()
  11829. {
  11830. bindtextdomain ("", "");
  11831. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. if ac_fn_cxx_try_link "$LINENO"; then :
  11837. LIBINTL="$LIBINTL $LIBICONV"
  11838. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11839. eval "$gt_func_gnugettext_libintl=yes"
  11840. fi
  11841. rm -f core conftest.err conftest.$ac_objext \
  11842. conftest$ac_exeext conftest.$ac_ext
  11843. fi
  11844. CPPFLAGS="$gt_save_CPPFLAGS"
  11845. LIBS="$gt_save_LIBS"
  11846. fi
  11847. eval ac_res=\$$gt_func_gnugettext_libintl
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11849. $as_echo "$ac_res" >&6; }
  11850. fi
  11851. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11852. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11853. && test "$PACKAGE" != gettext-runtime \
  11854. && test "$PACKAGE" != gettext-tools; }; then
  11855. gt_use_preinstalled_gnugettext=yes
  11856. else
  11857. LIBINTL=
  11858. LTLIBINTL=
  11859. INCINTL=
  11860. fi
  11861. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11862. nls_cv_use_gnu_gettext=yes
  11863. fi
  11864. fi
  11865. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11866. BUILD_INCLUDED_LIBINTL=yes
  11867. USE_INCLUDED_LIBINTL=yes
  11868. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11869. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11870. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11871. fi
  11872. CATOBJEXT=
  11873. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11874. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11875. CATOBJEXT=.gmo
  11876. fi
  11877. if test -n "$INTL_MACOSX_LIBS"; then
  11878. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11879. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11880. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11881. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11882. fi
  11883. fi
  11884. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11885. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11886. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11887. else
  11888. USE_NLS=no
  11889. fi
  11890. fi
  11891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11892. $as_echo_n "checking whether to use NLS... " >&6; }
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11894. $as_echo "$USE_NLS" >&6; }
  11895. if test "$USE_NLS" = "yes"; then
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11897. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11898. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11899. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11900. gt_source="external libintl"
  11901. else
  11902. gt_source="libc"
  11903. fi
  11904. else
  11905. gt_source="included intl directory"
  11906. fi
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11908. $as_echo "$gt_source" >&6; }
  11909. fi
  11910. if test "$USE_NLS" = "yes"; then
  11911. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11912. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11914. $as_echo_n "checking how to link with libintl... " >&6; }
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11916. $as_echo "$LIBINTL" >&6; }
  11917. for element in $INCINTL; do
  11918. haveit=
  11919. for x in $CPPFLAGS; do
  11920. acl_save_prefix="$prefix"
  11921. prefix="$acl_final_prefix"
  11922. acl_save_exec_prefix="$exec_prefix"
  11923. exec_prefix="$acl_final_exec_prefix"
  11924. eval x=\"$x\"
  11925. exec_prefix="$acl_save_exec_prefix"
  11926. prefix="$acl_save_prefix"
  11927. if test "X$x" = "X$element"; then
  11928. haveit=yes
  11929. break
  11930. fi
  11931. done
  11932. if test -z "$haveit"; then
  11933. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11934. fi
  11935. done
  11936. fi
  11937. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11938. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11939. fi
  11940. POSUB=po
  11941. fi
  11942. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11943. BUILD_INCLUDED_LIBINTL=yes
  11944. fi
  11945. nls_cv_header_intl=
  11946. nls_cv_header_libgt=
  11947. DATADIRNAME=share
  11948. INSTOBJEXT=.mo
  11949. GENCAT=gencat
  11950. INTLOBJS=
  11951. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11952. INTLOBJS="\$(GETTOBJS)"
  11953. fi
  11954. INTL_LIBTOOL_SUFFIX_PREFIX=
  11955. INTLLIBS="$LIBINTL"
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11957. $as_echo_n "checking for error_at_line... " >&6; }
  11958. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11959. $as_echo_n "(cached) " >&6
  11960. else
  11961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11962. /* end confdefs.h. */
  11963. #include <error.h>
  11964. int
  11965. main ()
  11966. {
  11967. error_at_line (0, 0, "", 0, "an error occurred");
  11968. ;
  11969. return 0;
  11970. }
  11971. _ACEOF
  11972. if ac_fn_cxx_try_link "$LINENO"; then :
  11973. ac_cv_lib_error_at_line=yes
  11974. else
  11975. ac_cv_lib_error_at_line=no
  11976. fi
  11977. rm -f core conftest.err conftest.$ac_objext \
  11978. conftest$ac_exeext conftest.$ac_ext
  11979. fi
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11981. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11982. if test $ac_cv_lib_error_at_line = no; then
  11983. case " $LIBOBJS " in
  11984. *" error.$ac_objext "* ) ;;
  11985. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11986. ;;
  11987. esac
  11988. fi
  11989. if test $ac_cv_c_compiler_gnu = yes; then
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11991. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11992. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11993. $as_echo_n "(cached) " >&6
  11994. else
  11995. ac_pattern="Autoconf.*'x'"
  11996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11997. /* end confdefs.h. */
  11998. #include <sgtty.h>
  11999. Autoconf TIOCGETP
  12000. _ACEOF
  12001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12002. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12003. ac_cv_prog_gcc_traditional=yes
  12004. else
  12005. ac_cv_prog_gcc_traditional=no
  12006. fi
  12007. rm -f conftest*
  12008. if test $ac_cv_prog_gcc_traditional = no; then
  12009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12010. /* end confdefs.h. */
  12011. #include <termio.h>
  12012. Autoconf TCGETA
  12013. _ACEOF
  12014. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12015. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12016. ac_cv_prog_gcc_traditional=yes
  12017. fi
  12018. rm -f conftest*
  12019. fi
  12020. fi
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12022. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12023. if test $ac_cv_prog_gcc_traditional = yes; then
  12024. CC="$CC -traditional"
  12025. fi
  12026. fi
  12027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12028. $as_echo_n "checking for working memcmp... " >&6; }
  12029. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12030. $as_echo_n "(cached) " >&6
  12031. else
  12032. if test "$cross_compiling" = yes; then :
  12033. ac_cv_func_memcmp_working=no
  12034. else
  12035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12036. /* end confdefs.h. */
  12037. $ac_includes_default
  12038. int
  12039. main ()
  12040. {
  12041. /* Some versions of memcmp are not 8-bit clean. */
  12042. char c0 = '\100', c1 = '\200', c2 = '\201';
  12043. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12044. return 1;
  12045. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12046. or more and with at least one buffer not starting on a 4-byte boundary.
  12047. William Lewis provided this test program. */
  12048. {
  12049. char foo[21];
  12050. char bar[21];
  12051. int i;
  12052. for (i = 0; i < 4; i++)
  12053. {
  12054. char *a = foo + i;
  12055. char *b = bar + i;
  12056. strcpy (a, "--------01111111");
  12057. strcpy (b, "--------10000000");
  12058. if (memcmp (a, b, 16) >= 0)
  12059. return 1;
  12060. }
  12061. return 0;
  12062. }
  12063. ;
  12064. return 0;
  12065. }
  12066. _ACEOF
  12067. if ac_fn_cxx_try_run "$LINENO"; then :
  12068. ac_cv_func_memcmp_working=yes
  12069. else
  12070. ac_cv_func_memcmp_working=no
  12071. fi
  12072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12073. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12074. fi
  12075. fi
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12077. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12078. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12079. *" memcmp.$ac_objext "* ) ;;
  12080. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12081. ;;
  12082. esac
  12083. for ac_func in $ac_func_list
  12084. do :
  12085. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12086. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12087. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12088. cat >>confdefs.h <<_ACEOF
  12089. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12090. _ACEOF
  12091. fi
  12092. done
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12094. $as_echo_n "checking for working mktime... " >&6; }
  12095. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12096. $as_echo_n "(cached) " >&6
  12097. else
  12098. if test "$cross_compiling" = yes; then :
  12099. ac_cv_func_working_mktime=no
  12100. else
  12101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12102. /* end confdefs.h. */
  12103. /* Test program from Paul Eggert and Tony Leneis. */
  12104. #ifdef TIME_WITH_SYS_TIME
  12105. # include <sys/time.h>
  12106. # include <time.h>
  12107. #else
  12108. # ifdef HAVE_SYS_TIME_H
  12109. # include <sys/time.h>
  12110. # else
  12111. # include <time.h>
  12112. # endif
  12113. #endif
  12114. #include <limits.h>
  12115. #include <stdlib.h>
  12116. #ifdef HAVE_UNISTD_H
  12117. # include <unistd.h>
  12118. #endif
  12119. #ifndef HAVE_ALARM
  12120. # define alarm(X) /* empty */
  12121. #endif
  12122. /* Work around redefinition to rpl_putenv by other config tests. */
  12123. #undef putenv
  12124. static time_t time_t_max;
  12125. static time_t time_t_min;
  12126. /* Values we'll use to set the TZ environment variable. */
  12127. static const char *tz_strings[] = {
  12128. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  12129. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12130. };
  12131. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12132. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12133. Based on a problem report from Andreas Jaeger. */
  12134. static int
  12135. spring_forward_gap ()
  12136. {
  12137. /* glibc (up to about 1998-10-07) failed this test. */
  12138. struct tm tm;
  12139. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12140. instead of "TZ=America/Vancouver" in order to detect the bug even
  12141. on systems that don't support the Olson extension, or don't have the
  12142. full zoneinfo tables installed. */
  12143. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12144. tm.tm_year = 98;
  12145. tm.tm_mon = 3;
  12146. tm.tm_mday = 5;
  12147. tm.tm_hour = 2;
  12148. tm.tm_min = 0;
  12149. tm.tm_sec = 0;
  12150. tm.tm_isdst = -1;
  12151. return mktime (&tm) != (time_t) -1;
  12152. }
  12153. static int
  12154. mktime_test1 (time_t now)
  12155. {
  12156. struct tm *lt;
  12157. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12158. }
  12159. static int
  12160. mktime_test (time_t now)
  12161. {
  12162. return (mktime_test1 (now)
  12163. && mktime_test1 ((time_t) (time_t_max - now))
  12164. && mktime_test1 ((time_t) (time_t_min + now)));
  12165. }
  12166. static int
  12167. irix_6_4_bug ()
  12168. {
  12169. /* Based on code from Ariel Faigon. */
  12170. struct tm tm;
  12171. tm.tm_year = 96;
  12172. tm.tm_mon = 3;
  12173. tm.tm_mday = 0;
  12174. tm.tm_hour = 0;
  12175. tm.tm_min = 0;
  12176. tm.tm_sec = 0;
  12177. tm.tm_isdst = -1;
  12178. mktime (&tm);
  12179. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12180. }
  12181. static int
  12182. bigtime_test (int j)
  12183. {
  12184. struct tm tm;
  12185. time_t now;
  12186. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12187. now = mktime (&tm);
  12188. if (now != (time_t) -1)
  12189. {
  12190. struct tm *lt = localtime (&now);
  12191. if (! (lt
  12192. && lt->tm_year == tm.tm_year
  12193. && lt->tm_mon == tm.tm_mon
  12194. && lt->tm_mday == tm.tm_mday
  12195. && lt->tm_hour == tm.tm_hour
  12196. && lt->tm_min == tm.tm_min
  12197. && lt->tm_sec == tm.tm_sec
  12198. && lt->tm_yday == tm.tm_yday
  12199. && lt->tm_wday == tm.tm_wday
  12200. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12201. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12202. return 0;
  12203. }
  12204. return 1;
  12205. }
  12206. static int
  12207. year_2050_test ()
  12208. {
  12209. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12210. ignoring leap seconds. */
  12211. unsigned long int answer = 2527315200UL;
  12212. struct tm tm;
  12213. time_t t;
  12214. tm.tm_year = 2050 - 1900;
  12215. tm.tm_mon = 2 - 1;
  12216. tm.tm_mday = 1;
  12217. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12218. tm.tm_isdst = -1;
  12219. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12220. instead of "TZ=America/Vancouver" in order to detect the bug even
  12221. on systems that don't support the Olson extension, or don't have the
  12222. full zoneinfo tables installed. */
  12223. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12224. t = mktime (&tm);
  12225. /* Check that the result is either a failure, or close enough
  12226. to the correct answer that we can assume the discrepancy is
  12227. due to leap seconds. */
  12228. return (t == (time_t) -1
  12229. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12230. }
  12231. int
  12232. main ()
  12233. {
  12234. time_t t, delta;
  12235. int i, j;
  12236. /* This test makes some buggy mktime implementations loop.
  12237. Give up after 60 seconds; a mktime slower than that
  12238. isn't worth using anyway. */
  12239. alarm (60);
  12240. for (;;)
  12241. {
  12242. t = (time_t_max << 1) + 1;
  12243. if (t <= time_t_max)
  12244. break;
  12245. time_t_max = t;
  12246. }
  12247. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12248. delta = time_t_max / 997; /* a suitable prime number */
  12249. for (i = 0; i < N_STRINGS; i++)
  12250. {
  12251. if (tz_strings[i])
  12252. putenv ((char*) tz_strings[i]);
  12253. for (t = 0; t <= time_t_max - delta; t += delta)
  12254. if (! mktime_test (t))
  12255. return 1;
  12256. if (! (mktime_test ((time_t) 1)
  12257. && mktime_test ((time_t) (60 * 60))
  12258. && mktime_test ((time_t) (60 * 60 * 24))))
  12259. return 1;
  12260. for (j = 1; ; j <<= 1)
  12261. if (! bigtime_test (j))
  12262. return 1;
  12263. else if (INT_MAX / 2 < j)
  12264. break;
  12265. if (! bigtime_test (INT_MAX))
  12266. return 1;
  12267. }
  12268. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12269. }
  12270. _ACEOF
  12271. if ac_fn_cxx_try_run "$LINENO"; then :
  12272. ac_cv_func_working_mktime=yes
  12273. else
  12274. ac_cv_func_working_mktime=no
  12275. fi
  12276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12277. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12278. fi
  12279. fi
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12281. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12282. if test $ac_cv_func_working_mktime = no; then
  12283. case " $LIBOBJS " in
  12284. *" mktime.$ac_objext "* ) ;;
  12285. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12286. ;;
  12287. esac
  12288. fi
  12289. for ac_func in getpagesize
  12290. do :
  12291. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12292. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12293. cat >>confdefs.h <<_ACEOF
  12294. #define HAVE_GETPAGESIZE 1
  12295. _ACEOF
  12296. fi
  12297. done
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12299. $as_echo_n "checking for working mmap... " >&6; }
  12300. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12301. $as_echo_n "(cached) " >&6
  12302. else
  12303. if test "$cross_compiling" = yes; then :
  12304. ac_cv_func_mmap_fixed_mapped=no
  12305. else
  12306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12307. /* end confdefs.h. */
  12308. $ac_includes_default
  12309. /* malloc might have been renamed as rpl_malloc. */
  12310. #undef malloc
  12311. /* Thanks to Mike Haertel and Jim Avera for this test.
  12312. Here is a matrix of mmap possibilities:
  12313. mmap private not fixed
  12314. mmap private fixed at somewhere currently unmapped
  12315. mmap private fixed at somewhere already mapped
  12316. mmap shared not fixed
  12317. mmap shared fixed at somewhere currently unmapped
  12318. mmap shared fixed at somewhere already mapped
  12319. For private mappings, we should verify that changes cannot be read()
  12320. back from the file, nor mmap's back from the file at a different
  12321. address. (There have been systems where private was not correctly
  12322. implemented like the infamous i386 svr4.0, and systems where the
  12323. VM page cache was not coherent with the file system buffer cache
  12324. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12325. For shared mappings, we should conversely verify that changes get
  12326. propagated back to all the places they're supposed to be.
  12327. Grep wants private fixed already mapped.
  12328. The main things grep needs to know about mmap are:
  12329. * does it exist and is it safe to write into the mmap'd area
  12330. * how to use it (BSD variants) */
  12331. #include <fcntl.h>
  12332. #include <sys/mman.h>
  12333. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12334. char *malloc ();
  12335. #endif
  12336. /* This mess was copied from the GNU getpagesize.h. */
  12337. #ifndef HAVE_GETPAGESIZE
  12338. # ifdef _SC_PAGESIZE
  12339. # define getpagesize() sysconf(_SC_PAGESIZE)
  12340. # else /* no _SC_PAGESIZE */
  12341. # ifdef HAVE_SYS_PARAM_H
  12342. # include <sys/param.h>
  12343. # ifdef EXEC_PAGESIZE
  12344. # define getpagesize() EXEC_PAGESIZE
  12345. # else /* no EXEC_PAGESIZE */
  12346. # ifdef NBPG
  12347. # define getpagesize() NBPG * CLSIZE
  12348. # ifndef CLSIZE
  12349. # define CLSIZE 1
  12350. # endif /* no CLSIZE */
  12351. # else /* no NBPG */
  12352. # ifdef NBPC
  12353. # define getpagesize() NBPC
  12354. # else /* no NBPC */
  12355. # ifdef PAGESIZE
  12356. # define getpagesize() PAGESIZE
  12357. # endif /* PAGESIZE */
  12358. # endif /* no NBPC */
  12359. # endif /* no NBPG */
  12360. # endif /* no EXEC_PAGESIZE */
  12361. # else /* no HAVE_SYS_PARAM_H */
  12362. # define getpagesize() 8192 /* punt totally */
  12363. # endif /* no HAVE_SYS_PARAM_H */
  12364. # endif /* no _SC_PAGESIZE */
  12365. #endif /* no HAVE_GETPAGESIZE */
  12366. int
  12367. main ()
  12368. {
  12369. char *data, *data2, *data3;
  12370. const char *cdata2;
  12371. int i, pagesize;
  12372. int fd, fd2;
  12373. pagesize = getpagesize ();
  12374. /* First, make a file with some known garbage in it. */
  12375. data = (char *) malloc (pagesize);
  12376. if (!data)
  12377. return 1;
  12378. for (i = 0; i < pagesize; ++i)
  12379. *(data + i) = rand ();
  12380. umask (0);
  12381. fd = creat ("conftest.mmap", 0600);
  12382. if (fd < 0)
  12383. return 2;
  12384. if (write (fd, data, pagesize) != pagesize)
  12385. return 3;
  12386. close (fd);
  12387. /* Next, check that the tail of a page is zero-filled. File must have
  12388. non-zero length, otherwise we risk SIGBUS for entire page. */
  12389. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12390. if (fd2 < 0)
  12391. return 4;
  12392. cdata2 = "";
  12393. if (write (fd2, cdata2, 1) != 1)
  12394. return 5;
  12395. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12396. if (data2 == MAP_FAILED)
  12397. return 6;
  12398. for (i = 0; i < pagesize; ++i)
  12399. if (*(data2 + i))
  12400. return 7;
  12401. close (fd2);
  12402. if (munmap (data2, pagesize))
  12403. return 8;
  12404. /* Next, try to mmap the file at a fixed address which already has
  12405. something else allocated at it. If we can, also make sure that
  12406. we see the same garbage. */
  12407. fd = open ("conftest.mmap", O_RDWR);
  12408. if (fd < 0)
  12409. return 9;
  12410. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12411. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12412. return 10;
  12413. for (i = 0; i < pagesize; ++i)
  12414. if (*(data + i) != *(data2 + i))
  12415. return 11;
  12416. /* Finally, make sure that changes to the mapped area do not
  12417. percolate back to the file as seen by read(). (This is a bug on
  12418. some variants of i386 svr4.0.) */
  12419. for (i = 0; i < pagesize; ++i)
  12420. *(data2 + i) = *(data2 + i) + 1;
  12421. data3 = (char *) malloc (pagesize);
  12422. if (!data3)
  12423. return 12;
  12424. if (read (fd, data3, pagesize) != pagesize)
  12425. return 13;
  12426. for (i = 0; i < pagesize; ++i)
  12427. if (*(data + i) != *(data3 + i))
  12428. return 14;
  12429. close (fd);
  12430. return 0;
  12431. }
  12432. _ACEOF
  12433. if ac_fn_cxx_try_run "$LINENO"; then :
  12434. ac_cv_func_mmap_fixed_mapped=yes
  12435. else
  12436. ac_cv_func_mmap_fixed_mapped=no
  12437. fi
  12438. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12439. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12440. fi
  12441. fi
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12443. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12444. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12445. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12446. fi
  12447. rm -f conftest.mmap conftest.txt
  12448. for ac_header in sys/select.h sys/socket.h
  12449. do :
  12450. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12451. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12452. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12453. cat >>confdefs.h <<_ACEOF
  12454. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12455. _ACEOF
  12456. fi
  12457. done
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12459. $as_echo_n "checking types of arguments for select... " >&6; }
  12460. if test "${ac_cv_func_select_args+set}" = set; then :
  12461. $as_echo_n "(cached) " >&6
  12462. else
  12463. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12464. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12465. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12467. /* end confdefs.h. */
  12468. $ac_includes_default
  12469. #ifdef HAVE_SYS_SELECT_H
  12470. # include <sys/select.h>
  12471. #endif
  12472. #ifdef HAVE_SYS_SOCKET_H
  12473. # include <sys/socket.h>
  12474. #endif
  12475. int
  12476. main ()
  12477. {
  12478. extern int select ($ac_arg1,
  12479. $ac_arg234, $ac_arg234, $ac_arg234,
  12480. $ac_arg5);
  12481. ;
  12482. return 0;
  12483. }
  12484. _ACEOF
  12485. if ac_fn_cxx_try_compile "$LINENO"; then :
  12486. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12487. fi
  12488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12489. done
  12490. done
  12491. done
  12492. # Provide a safe default value.
  12493. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12496. $as_echo "$ac_cv_func_select_args" >&6; }
  12497. ac_save_IFS=$IFS; IFS=','
  12498. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12499. IFS=$ac_save_IFS
  12500. shift
  12501. cat >>confdefs.h <<_ACEOF
  12502. #define SELECT_TYPE_ARG1 $1
  12503. _ACEOF
  12504. cat >>confdefs.h <<_ACEOF
  12505. #define SELECT_TYPE_ARG234 ($2)
  12506. _ACEOF
  12507. cat >>confdefs.h <<_ACEOF
  12508. #define SELECT_TYPE_ARG5 ($3)
  12509. _ACEOF
  12510. rm -f conftest*
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12512. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12513. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12514. $as_echo_n "(cached) " >&6
  12515. else
  12516. rm -f conftest.sym conftest.file
  12517. echo >conftest.file
  12518. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12519. if test "$cross_compiling" = yes; then :
  12520. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12521. else
  12522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12523. /* end confdefs.h. */
  12524. $ac_includes_default
  12525. int
  12526. main ()
  12527. {
  12528. struct stat sbuf;
  12529. /* Linux will dereference the symlink and fail, as required by POSIX.
  12530. That is better in the sense that it means we will not
  12531. have to compile and use the lstat wrapper. */
  12532. return lstat ("conftest.sym/", &sbuf) == 0;
  12533. ;
  12534. return 0;
  12535. }
  12536. _ACEOF
  12537. if ac_fn_cxx_try_run "$LINENO"; then :
  12538. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12539. else
  12540. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12541. fi
  12542. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12543. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12544. fi
  12545. else
  12546. # If the `ln -s' command failed, then we probably don't even
  12547. # have an lstat function.
  12548. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12549. fi
  12550. rm -f conftest.sym conftest.file
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12553. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12554. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12555. cat >>confdefs.h <<_ACEOF
  12556. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12557. _ACEOF
  12558. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12559. case " $LIBOBJS " in
  12560. *" lstat.$ac_objext "* ) ;;
  12561. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12562. ;;
  12563. esac
  12564. fi
  12565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12566. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12567. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12568. $as_echo_n "(cached) " >&6
  12569. else
  12570. if test "$cross_compiling" = yes; then :
  12571. ac_cv_func_stat_empty_string_bug=yes
  12572. else
  12573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12574. /* end confdefs.h. */
  12575. $ac_includes_default
  12576. int
  12577. main ()
  12578. {
  12579. struct stat sbuf;
  12580. return stat ("", &sbuf) == 0;
  12581. ;
  12582. return 0;
  12583. }
  12584. _ACEOF
  12585. if ac_fn_cxx_try_run "$LINENO"; then :
  12586. ac_cv_func_stat_empty_string_bug=no
  12587. else
  12588. ac_cv_func_stat_empty_string_bug=yes
  12589. fi
  12590. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12591. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12592. fi
  12593. fi
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12595. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12596. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12597. case " $LIBOBJS " in
  12598. *" stat.$ac_objext "* ) ;;
  12599. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12600. ;;
  12601. esac
  12602. cat >>confdefs.h <<_ACEOF
  12603. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12604. _ACEOF
  12605. fi
  12606. for ac_func in strftime
  12607. do :
  12608. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12609. if test "x$ac_cv_func_strftime" = x""yes; then :
  12610. cat >>confdefs.h <<_ACEOF
  12611. #define HAVE_STRFTIME 1
  12612. _ACEOF
  12613. else
  12614. # strftime is in -lintl on SCO UNIX.
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12616. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12617. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12618. $as_echo_n "(cached) " >&6
  12619. else
  12620. ac_check_lib_save_LIBS=$LIBS
  12621. LIBS="-lintl $LIBS"
  12622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12623. /* end confdefs.h. */
  12624. /* Override any GCC internal prototype to avoid an error.
  12625. Use char because int might match the return type of a GCC
  12626. builtin and then its argument prototype would still apply. */
  12627. #ifdef __cplusplus
  12628. extern "C"
  12629. #endif
  12630. char strftime ();
  12631. int
  12632. main ()
  12633. {
  12634. return strftime ();
  12635. ;
  12636. return 0;
  12637. }
  12638. _ACEOF
  12639. if ac_fn_cxx_try_link "$LINENO"; then :
  12640. ac_cv_lib_intl_strftime=yes
  12641. else
  12642. ac_cv_lib_intl_strftime=no
  12643. fi
  12644. rm -f core conftest.err conftest.$ac_objext \
  12645. conftest$ac_exeext conftest.$ac_ext
  12646. LIBS=$ac_check_lib_save_LIBS
  12647. fi
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12649. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12650. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12651. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12652. LIBS="-lintl $LIBS"
  12653. fi
  12654. fi
  12655. done
  12656. for ac_func in vprintf
  12657. do :
  12658. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12659. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12660. cat >>confdefs.h <<_ACEOF
  12661. #define HAVE_VPRINTF 1
  12662. _ACEOF
  12663. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12664. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12665. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12666. fi
  12667. fi
  12668. done
  12669. for ac_header in vfork.h
  12670. do :
  12671. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12672. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12673. cat >>confdefs.h <<_ACEOF
  12674. #define HAVE_VFORK_H 1
  12675. _ACEOF
  12676. fi
  12677. done
  12678. for ac_func in fork vfork
  12679. do :
  12680. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12681. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12682. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12683. cat >>confdefs.h <<_ACEOF
  12684. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12685. _ACEOF
  12686. fi
  12687. done
  12688. if test "x$ac_cv_func_fork" = xyes; then
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12690. $as_echo_n "checking for working fork... " >&6; }
  12691. if test "${ac_cv_func_fork_works+set}" = set; then :
  12692. $as_echo_n "(cached) " >&6
  12693. else
  12694. if test "$cross_compiling" = yes; then :
  12695. ac_cv_func_fork_works=cross
  12696. else
  12697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12698. /* end confdefs.h. */
  12699. $ac_includes_default
  12700. int
  12701. main ()
  12702. {
  12703. /* By Ruediger Kuhlmann. */
  12704. return fork () < 0;
  12705. ;
  12706. return 0;
  12707. }
  12708. _ACEOF
  12709. if ac_fn_cxx_try_run "$LINENO"; then :
  12710. ac_cv_func_fork_works=yes
  12711. else
  12712. ac_cv_func_fork_works=no
  12713. fi
  12714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12716. fi
  12717. fi
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12719. $as_echo "$ac_cv_func_fork_works" >&6; }
  12720. else
  12721. ac_cv_func_fork_works=$ac_cv_func_fork
  12722. fi
  12723. if test "x$ac_cv_func_fork_works" = xcross; then
  12724. case $host in
  12725. *-*-amigaos* | *-*-msdosdjgpp*)
  12726. # Override, as these systems have only a dummy fork() stub
  12727. ac_cv_func_fork_works=no
  12728. ;;
  12729. *)
  12730. ac_cv_func_fork_works=yes
  12731. ;;
  12732. esac
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12734. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12735. fi
  12736. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12737. if test "x$ac_cv_func_vfork" = xyes; then
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12739. $as_echo_n "checking for working vfork... " >&6; }
  12740. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12741. $as_echo_n "(cached) " >&6
  12742. else
  12743. if test "$cross_compiling" = yes; then :
  12744. ac_cv_func_vfork_works=cross
  12745. else
  12746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12747. /* end confdefs.h. */
  12748. /* Thanks to Paul Eggert for this test. */
  12749. $ac_includes_default
  12750. #include <sys/wait.h>
  12751. #ifdef HAVE_VFORK_H
  12752. # include <vfork.h>
  12753. #endif
  12754. /* On some sparc systems, changes by the child to local and incoming
  12755. argument registers are propagated back to the parent. The compiler
  12756. is told about this with #include <vfork.h>, but some compilers
  12757. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12758. static variable whose address is put into a register that is
  12759. clobbered by the vfork. */
  12760. static void
  12761. #ifdef __cplusplus
  12762. sparc_address_test (int arg)
  12763. # else
  12764. sparc_address_test (arg) int arg;
  12765. #endif
  12766. {
  12767. static pid_t child;
  12768. if (!child) {
  12769. child = vfork ();
  12770. if (child < 0) {
  12771. perror ("vfork");
  12772. _exit(2);
  12773. }
  12774. if (!child) {
  12775. arg = getpid();
  12776. write(-1, "", 0);
  12777. _exit (arg);
  12778. }
  12779. }
  12780. }
  12781. int
  12782. main ()
  12783. {
  12784. pid_t parent = getpid ();
  12785. pid_t child;
  12786. sparc_address_test (0);
  12787. child = vfork ();
  12788. if (child == 0) {
  12789. /* Here is another test for sparc vfork register problems. This
  12790. test uses lots of local variables, at least as many local
  12791. variables as main has allocated so far including compiler
  12792. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12793. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12794. reuse the register of parent for one of the local variables,
  12795. since it will think that parent can't possibly be used any more
  12796. in this routine. Assigning to the local variable will thus
  12797. munge parent in the parent process. */
  12798. pid_t
  12799. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12800. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12801. /* Convince the compiler that p..p7 are live; otherwise, it might
  12802. use the same hardware register for all 8 local variables. */
  12803. if (p != p1 || p != p2 || p != p3 || p != p4
  12804. || p != p5 || p != p6 || p != p7)
  12805. _exit(1);
  12806. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12807. from child file descriptors. If the child closes a descriptor
  12808. before it execs or exits, this munges the parent's descriptor
  12809. as well. Test for this by closing stdout in the child. */
  12810. _exit(close(fileno(stdout)) != 0);
  12811. } else {
  12812. int status;
  12813. struct stat st;
  12814. while (wait(&status) != child)
  12815. ;
  12816. return (
  12817. /* Was there some problem with vforking? */
  12818. child < 0
  12819. /* Did the child fail? (This shouldn't happen.) */
  12820. || status
  12821. /* Did the vfork/compiler bug occur? */
  12822. || parent != getpid()
  12823. /* Did the file descriptor bug occur? */
  12824. || fstat(fileno(stdout), &st) != 0
  12825. );
  12826. }
  12827. }
  12828. _ACEOF
  12829. if ac_fn_cxx_try_run "$LINENO"; then :
  12830. ac_cv_func_vfork_works=yes
  12831. else
  12832. ac_cv_func_vfork_works=no
  12833. fi
  12834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12835. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12836. fi
  12837. fi
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12839. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12840. fi;
  12841. if test "x$ac_cv_func_fork_works" = xcross; then
  12842. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12844. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12845. fi
  12846. if test "x$ac_cv_func_vfork_works" = xyes; then
  12847. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12848. else
  12849. $as_echo "#define vfork fork" >>confdefs.h
  12850. fi
  12851. if test "x$ac_cv_func_fork_works" = xyes; then
  12852. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12853. fi
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12855. $as_echo_n "checking for working strtod... " >&6; }
  12856. if test "${ac_cv_func_strtod+set}" = set; then :
  12857. $as_echo_n "(cached) " >&6
  12858. else
  12859. if test "$cross_compiling" = yes; then :
  12860. ac_cv_func_strtod=no
  12861. else
  12862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12863. /* end confdefs.h. */
  12864. $ac_includes_default
  12865. #ifndef strtod
  12866. double strtod ();
  12867. #endif
  12868. int
  12869. main()
  12870. {
  12871. {
  12872. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12873. char *string = " +69";
  12874. char *term;
  12875. double value;
  12876. value = strtod (string, &term);
  12877. if (value != 69 || term != (string + 4))
  12878. return 1;
  12879. }
  12880. {
  12881. /* Under Solaris 2.4, strtod returns the wrong value for the
  12882. terminating character under some conditions. */
  12883. char *string = "NaN";
  12884. char *term;
  12885. strtod (string, &term);
  12886. if (term != string && *(term - 1) == 0)
  12887. return 1;
  12888. }
  12889. return 0;
  12890. }
  12891. _ACEOF
  12892. if ac_fn_cxx_try_run "$LINENO"; then :
  12893. ac_cv_func_strtod=yes
  12894. else
  12895. ac_cv_func_strtod=no
  12896. fi
  12897. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12898. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12899. fi
  12900. fi
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12902. $as_echo "$ac_cv_func_strtod" >&6; }
  12903. if test $ac_cv_func_strtod = no; then
  12904. case " $LIBOBJS " in
  12905. *" strtod.$ac_objext "* ) ;;
  12906. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12907. ;;
  12908. esac
  12909. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12910. if test "x$ac_cv_func_pow" = x""yes; then :
  12911. fi
  12912. if test $ac_cv_func_pow = no; then
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12914. $as_echo_n "checking for pow in -lm... " >&6; }
  12915. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12916. $as_echo_n "(cached) " >&6
  12917. else
  12918. ac_check_lib_save_LIBS=$LIBS
  12919. LIBS="-lm $LIBS"
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. /* Override any GCC internal prototype to avoid an error.
  12923. Use char because int might match the return type of a GCC
  12924. builtin and then its argument prototype would still apply. */
  12925. #ifdef __cplusplus
  12926. extern "C"
  12927. #endif
  12928. char pow ();
  12929. int
  12930. main ()
  12931. {
  12932. return pow ();
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. if ac_fn_cxx_try_link "$LINENO"; then :
  12938. ac_cv_lib_m_pow=yes
  12939. else
  12940. ac_cv_lib_m_pow=no
  12941. fi
  12942. rm -f core conftest.err conftest.$ac_objext \
  12943. conftest$ac_exeext conftest.$ac_ext
  12944. LIBS=$ac_check_lib_save_LIBS
  12945. fi
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12947. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12948. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12949. POW_LIB=-lm
  12950. else
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12952. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12953. fi
  12954. fi
  12955. fi
  12956. for ac_func in __argz_count \
  12957. __argz_next \
  12958. __argz_stringify \
  12959. atexit \
  12960. ftruncate \
  12961. getcwd \
  12962. gethostbyaddr \
  12963. gethostbyname \
  12964. getifaddrs \
  12965. getpagesize \
  12966. inet_ntoa \
  12967. inet_ntop \
  12968. memchr \
  12969. memmove \
  12970. mempcpy \
  12971. memset \
  12972. mkdir \
  12973. munmap \
  12974. nl_langinfo \
  12975. posix_memalign \
  12976. pow \
  12977. putenv \
  12978. rmdir \
  12979. select \
  12980. setlocale \
  12981. sleep \
  12982. socket \
  12983. stpcpy \
  12984. strcasecmp \
  12985. strchr \
  12986. strcspn \
  12987. strdup \
  12988. strerror \
  12989. strncasecmp \
  12990. strstr \
  12991. strtol \
  12992. strtoul \
  12993. strtoull \
  12994. tzset \
  12995. unsetenv \
  12996. usleep \
  12997. utime
  12998. do :
  12999. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13000. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13001. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13002. cat >>confdefs.h <<_ACEOF
  13003. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13004. _ACEOF
  13005. fi
  13006. done
  13007. if test "x$enable_epoll" = "xyes"; then
  13008. for ac_func in epoll_create
  13009. do :
  13010. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13011. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13012. cat >>confdefs.h <<_ACEOF
  13013. #define HAVE_EPOLL_CREATE 1
  13014. _ACEOF
  13015. have_epoll=yes
  13016. fi
  13017. done
  13018. if test "x$have_epoll" = "xyes"; then
  13019. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13020. fi
  13021. fi
  13022. if test "x$have_epoll" = "xyes"; then
  13023. HAVE_EPOLL_TRUE=
  13024. HAVE_EPOLL_FALSE='#'
  13025. else
  13026. HAVE_EPOLL_TRUE='#'
  13027. HAVE_EPOLL_FALSE=
  13028. fi
  13029. for ac_func in posix_fallocate
  13030. do :
  13031. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13032. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13033. cat >>confdefs.h <<_ACEOF
  13034. #define HAVE_POSIX_FALLOCATE 1
  13035. _ACEOF
  13036. have_posix_fallocate=yes
  13037. fi
  13038. done
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
  13040. $as_echo_n "checking for fallocate... " >&6; }
  13041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13042. /* end confdefs.h. */
  13043. #include <fcntl.h>
  13044. int
  13045. main ()
  13046. {
  13047. fallocate(2, 0, 0, 4096);
  13048. ;
  13049. return 0;
  13050. }
  13051. _ACEOF
  13052. if ac_fn_cxx_try_compile "$LINENO"; then :
  13053. have_fallocate=yes
  13054. else
  13055. have_fallocate=no
  13056. fi
  13057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fallocate" >&5
  13059. $as_echo "$have_fallocate" >&6; }
  13060. if test "x$have_fallocate" = "xyes"; then
  13061. $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
  13062. fi
  13063. if test "x$have_posix_fallocate" = "xyes" ||
  13064. test "x$have_fallocate" = "xyes"; then
  13065. $as_echo "#define HAVE_SOME_FALLOCATE 1" >>confdefs.h
  13066. fi
  13067. if test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"; then
  13068. HAVE_SOME_FALLOCATE_TRUE=
  13069. HAVE_SOME_FALLOCATE_FALSE='#'
  13070. else
  13071. HAVE_SOME_FALLOCATE_TRUE='#'
  13072. HAVE_SOME_FALLOCATE_FALSE=
  13073. fi
  13074. for ac_func in asctime_r
  13075. do :
  13076. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13077. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13078. cat >>confdefs.h <<_ACEOF
  13079. #define HAVE_ASCTIME_R 1
  13080. _ACEOF
  13081. if true; then
  13082. HAVE_ASCTIME_R_TRUE=
  13083. HAVE_ASCTIME_R_FALSE='#'
  13084. else
  13085. HAVE_ASCTIME_R_TRUE='#'
  13086. HAVE_ASCTIME_R_FALSE=
  13087. fi
  13088. else
  13089. if false; then
  13090. HAVE_ASCTIME_R_TRUE=
  13091. HAVE_ASCTIME_R_FALSE='#'
  13092. else
  13093. HAVE_ASCTIME_R_TRUE='#'
  13094. HAVE_ASCTIME_R_FALSE=
  13095. fi
  13096. fi
  13097. done
  13098. for ac_func in basename
  13099. do :
  13100. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13101. if test "x$ac_cv_func_basename" = x""yes; then :
  13102. cat >>confdefs.h <<_ACEOF
  13103. #define HAVE_BASENAME 1
  13104. _ACEOF
  13105. if true; then
  13106. HAVE_BASENAME_TRUE=
  13107. HAVE_BASENAME_FALSE='#'
  13108. else
  13109. HAVE_BASENAME_TRUE='#'
  13110. HAVE_BASENAME_FALSE=
  13111. fi
  13112. else
  13113. if false; then
  13114. HAVE_BASENAME_TRUE=
  13115. HAVE_BASENAME_FALSE='#'
  13116. else
  13117. HAVE_BASENAME_TRUE='#'
  13118. HAVE_BASENAME_FALSE=
  13119. fi
  13120. fi
  13121. done
  13122. for ac_func in gai_strerror
  13123. do :
  13124. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13125. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13126. cat >>confdefs.h <<_ACEOF
  13127. #define HAVE_GAI_STRERROR 1
  13128. _ACEOF
  13129. if true; then
  13130. HAVE_GAI_STRERROR_TRUE=
  13131. HAVE_GAI_STRERROR_FALSE='#'
  13132. else
  13133. HAVE_GAI_STRERROR_TRUE='#'
  13134. HAVE_GAI_STRERROR_FALSE=
  13135. fi
  13136. else
  13137. if false; then
  13138. HAVE_GAI_STRERROR_TRUE=
  13139. HAVE_GAI_STRERROR_FALSE='#'
  13140. else
  13141. HAVE_GAI_STRERROR_TRUE='#'
  13142. HAVE_GAI_STRERROR_FALSE=
  13143. fi
  13144. fi
  13145. done
  13146. for ac_func in getaddrinfo
  13147. do :
  13148. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13149. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13150. cat >>confdefs.h <<_ACEOF
  13151. #define HAVE_GETADDRINFO 1
  13152. _ACEOF
  13153. if true; then
  13154. HAVE_GETADDRINFO_TRUE=
  13155. HAVE_GETADDRINFO_FALSE='#'
  13156. else
  13157. HAVE_GETADDRINFO_TRUE='#'
  13158. HAVE_GETADDRINFO_FALSE=
  13159. fi
  13160. else
  13161. if false; then
  13162. HAVE_GETADDRINFO_TRUE=
  13163. HAVE_GETADDRINFO_FALSE='#'
  13164. else
  13165. HAVE_GETADDRINFO_TRUE='#'
  13166. HAVE_GETADDRINFO_FALSE=
  13167. fi
  13168. fi
  13169. done
  13170. for ac_func in gettimeofday
  13171. do :
  13172. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13173. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13174. cat >>confdefs.h <<_ACEOF
  13175. #define HAVE_GETTIMEOFDAY 1
  13176. _ACEOF
  13177. if true; then
  13178. HAVE_GETTIMEOFDAY_TRUE=
  13179. HAVE_GETTIMEOFDAY_FALSE='#'
  13180. else
  13181. HAVE_GETTIMEOFDAY_TRUE='#'
  13182. HAVE_GETTIMEOFDAY_FALSE=
  13183. fi
  13184. else
  13185. if false; then
  13186. HAVE_GETTIMEOFDAY_TRUE=
  13187. HAVE_GETTIMEOFDAY_FALSE='#'
  13188. else
  13189. HAVE_GETTIMEOFDAY_TRUE='#'
  13190. HAVE_GETTIMEOFDAY_FALSE=
  13191. fi
  13192. fi
  13193. done
  13194. for ac_func in inet_aton
  13195. do :
  13196. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13197. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13198. cat >>confdefs.h <<_ACEOF
  13199. #define HAVE_INET_ATON 1
  13200. _ACEOF
  13201. if true; then
  13202. HAVE_INET_ATON_TRUE=
  13203. HAVE_INET_ATON_FALSE='#'
  13204. else
  13205. HAVE_INET_ATON_TRUE='#'
  13206. HAVE_INET_ATON_FALSE=
  13207. fi
  13208. else
  13209. if false; then
  13210. HAVE_INET_ATON_TRUE=
  13211. HAVE_INET_ATON_FALSE='#'
  13212. else
  13213. HAVE_INET_ATON_TRUE='#'
  13214. HAVE_INET_ATON_FALSE=
  13215. fi
  13216. fi
  13217. done
  13218. for ac_func in localtime_r
  13219. do :
  13220. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13221. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13222. cat >>confdefs.h <<_ACEOF
  13223. #define HAVE_LOCALTIME_R 1
  13224. _ACEOF
  13225. if true; then
  13226. HAVE_LOCALTIME_R_TRUE=
  13227. HAVE_LOCALTIME_R_FALSE='#'
  13228. else
  13229. HAVE_LOCALTIME_R_TRUE='#'
  13230. HAVE_LOCALTIME_R_FALSE=
  13231. fi
  13232. else
  13233. if false; then
  13234. HAVE_LOCALTIME_R_TRUE=
  13235. HAVE_LOCALTIME_R_FALSE='#'
  13236. else
  13237. HAVE_LOCALTIME_R_TRUE='#'
  13238. HAVE_LOCALTIME_R_FALSE=
  13239. fi
  13240. fi
  13241. done
  13242. for ac_func in strptime
  13243. do :
  13244. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13245. if test "x$ac_cv_func_strptime" = x""yes; then :
  13246. cat >>confdefs.h <<_ACEOF
  13247. #define HAVE_STRPTIME 1
  13248. _ACEOF
  13249. if true; then
  13250. HAVE_STRPTIME_TRUE=
  13251. HAVE_STRPTIME_FALSE='#'
  13252. else
  13253. HAVE_STRPTIME_TRUE='#'
  13254. HAVE_STRPTIME_FALSE=
  13255. fi
  13256. else
  13257. if false; then
  13258. HAVE_STRPTIME_TRUE=
  13259. HAVE_STRPTIME_FALSE='#'
  13260. else
  13261. HAVE_STRPTIME_TRUE='#'
  13262. HAVE_STRPTIME_FALSE=
  13263. fi
  13264. fi
  13265. done
  13266. for ac_func in timegm
  13267. do :
  13268. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13269. if test "x$ac_cv_func_timegm" = x""yes; then :
  13270. cat >>confdefs.h <<_ACEOF
  13271. #define HAVE_TIMEGM 1
  13272. _ACEOF
  13273. if true; then
  13274. HAVE_TIMEGM_TRUE=
  13275. HAVE_TIMEGM_FALSE='#'
  13276. else
  13277. HAVE_TIMEGM_TRUE='#'
  13278. HAVE_TIMEGM_FALSE=
  13279. fi
  13280. else
  13281. if false; then
  13282. HAVE_TIMEGM_TRUE=
  13283. HAVE_TIMEGM_FALSE='#'
  13284. else
  13285. HAVE_TIMEGM_TRUE='#'
  13286. HAVE_TIMEGM_FALSE=
  13287. fi
  13288. fi
  13289. done
  13290. for ac_func in daemon
  13291. do :
  13292. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13293. if test "x$ac_cv_func_daemon" = x""yes; then :
  13294. cat >>confdefs.h <<_ACEOF
  13295. #define HAVE_DAEMON 1
  13296. _ACEOF
  13297. have_daemon=yes
  13298. fi
  13299. done
  13300. if test "x$have_daemon" = "xyes"; then
  13301. HAVE_DAEMON_TRUE=
  13302. HAVE_DAEMON_FALSE='#'
  13303. else
  13304. HAVE_DAEMON_TRUE='#'
  13305. HAVE_DAEMON_FALSE=
  13306. fi
  13307. for ac_func in clock_gettime
  13308. do :
  13309. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13310. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13311. cat >>confdefs.h <<_ACEOF
  13312. #define HAVE_CLOCK_GETTIME 1
  13313. _ACEOF
  13314. have_clock_gettime=yes
  13315. fi
  13316. done
  13317. if test "x$have_clock_gettime" != "xyes"; then
  13318. for ac_func in mach_absolute_time
  13319. do :
  13320. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13321. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13322. cat >>confdefs.h <<_ACEOF
  13323. #define HAVE_MACH_ABSOLUTE_TIME 1
  13324. _ACEOF
  13325. have_mach_absolute_time=yes
  13326. fi
  13327. done
  13328. fi
  13329. if test "x$have_mach_absolute_time" = "xyes"; then
  13330. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13331. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13332. else
  13333. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13334. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13335. fi
  13336. for ac_func in poll
  13337. do :
  13338. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13339. if test "x$ac_cv_func_poll" = x""yes; then :
  13340. cat >>confdefs.h <<_ACEOF
  13341. #define HAVE_POLL 1
  13342. _ACEOF
  13343. have_poll=yes
  13344. fi
  13345. done
  13346. if test "x$have_poll" = "xyes"; then
  13347. HAVE_POLL_TRUE=
  13348. HAVE_POLL_FALSE='#'
  13349. else
  13350. HAVE_POLL_TRUE='#'
  13351. HAVE_POLL_FALSE=
  13352. fi
  13353. case "$target" in
  13354. *mingw*)
  13355. if true; then
  13356. HAVE_GETADDRINFO_TRUE=
  13357. HAVE_GETADDRINFO_FALSE='#'
  13358. else
  13359. HAVE_GETADDRINFO_TRUE='#'
  13360. HAVE_GETADDRINFO_FALSE=
  13361. fi
  13362. if false; then
  13363. HAVE_GAI_STRERROR_TRUE=
  13364. HAVE_GAI_STRERROR_FALSE='#'
  13365. else
  13366. HAVE_GAI_STRERROR_TRUE='#'
  13367. HAVE_GAI_STRERROR_FALSE=
  13368. fi
  13369. if test "x$have_clock_gettime" != "xyes"; then
  13370. if true; then
  13371. HAVE_TIMEGETTIME_TRUE=
  13372. HAVE_TIMEGETTIME_FALSE='#'
  13373. else
  13374. HAVE_TIMEGETTIME_TRUE='#'
  13375. HAVE_TIMEGETTIME_FALSE=
  13376. fi
  13377. fi
  13378. ;;
  13379. *)
  13380. if false; then
  13381. HAVE_TIMEGETTIME_TRUE=
  13382. HAVE_TIMEGETTIME_FALSE='#'
  13383. else
  13384. HAVE_TIMEGETTIME_TRUE='#'
  13385. HAVE_TIMEGETTIME_FALSE=
  13386. fi
  13387. ;;
  13388. esac
  13389. for ac_func in port_associate
  13390. do :
  13391. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13392. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13393. cat >>confdefs.h <<_ACEOF
  13394. #define HAVE_PORT_ASSOCIATE 1
  13395. _ACEOF
  13396. have_port_associate=yes
  13397. fi
  13398. done
  13399. if test "x$have_port_associate" = "xyes"; then
  13400. HAVE_PORT_ASSOCIATE_TRUE=
  13401. HAVE_PORT_ASSOCIATE_FALSE='#'
  13402. else
  13403. HAVE_PORT_ASSOCIATE_TRUE='#'
  13404. HAVE_PORT_ASSOCIATE_FALSE=
  13405. fi
  13406. for ac_func in kqueue
  13407. do :
  13408. ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  13409. if test "x$ac_cv_func_kqueue" = x""yes; then :
  13410. cat >>confdefs.h <<_ACEOF
  13411. #define HAVE_KQUEUE 1
  13412. _ACEOF
  13413. have_kqueue=yes
  13414. fi
  13415. done
  13416. if test "x$have_kqueue" = "xyes"; then
  13417. HAVE_KQUEUE_TRUE=
  13418. HAVE_KQUEUE_FALSE='#'
  13419. else
  13420. HAVE_KQUEUE_TRUE='#'
  13421. HAVE_KQUEUE_FALSE=
  13422. fi
  13423. if test "x$have_kqueue" = "xyes"; then
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
  13425. $as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
  13426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13427. /* end confdefs.h. */
  13428. #include <sys/types.h>
  13429. #include <sys/event.h>
  13430. #include <sys/time.h>
  13431. int
  13432. main ()
  13433. {
  13434. struct kevent event;
  13435. event.udata = reinterpret_cast<intptr_t>(&event);
  13436. ;
  13437. return 0;
  13438. }
  13439. _ACEOF
  13440. if ac_fn_cxx_try_compile "$LINENO"; then :
  13441. kevent_udata_intptr_t=yes
  13442. else
  13443. kevent_udata_intptr_t=no
  13444. fi
  13445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
  13447. $as_echo "$kevent_udata_intptr_t" >&6; }
  13448. if test "x$kevent_udata_intptr_t" = "xyes"; then
  13449. $as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
  13450. fi
  13451. fi
  13452. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13453. "
  13454. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13455. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13456. fi
  13457. # Check struct option.name is assignable from const char*. struct
  13458. # option.name in opensolaris is of type char*. In Linux, it is const
  13459. # char*
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13461. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13463. /* end confdefs.h. */
  13464. #include <unistd.h>
  13465. #include <getopt.h>
  13466. int
  13467. main ()
  13468. {
  13469. const char* s = "const char";
  13470. option op;
  13471. op.name = s;
  13472. ;
  13473. return 0;
  13474. }
  13475. _ACEOF
  13476. if ac_fn_cxx_try_compile "$LINENO"; then :
  13477. have_option_const_name=yes
  13478. else
  13479. have_option_const_name=no
  13480. fi
  13481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13483. $as_echo "$have_option_const_name" >&6; }
  13484. if test "x$have_option_const_name" = "xyes"; then
  13485. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13486. fi
  13487. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13488. cat >confcache <<\_ACEOF
  13489. # This file is a shell script that caches the results of configure
  13490. # tests run on this system so they can be shared between configure
  13491. # scripts and configure runs, see configure's option --config-cache.
  13492. # It is not useful on other systems. If it contains results you don't
  13493. # want to keep, you may remove or edit it.
  13494. #
  13495. # config.status only pays attention to the cache file if you give it
  13496. # the --recheck option to rerun configure.
  13497. #
  13498. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13499. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13500. # following values.
  13501. _ACEOF
  13502. # The following way of writing the cache mishandles newlines in values,
  13503. # but we know of no workaround that is simple, portable, and efficient.
  13504. # So, we kill variables containing newlines.
  13505. # Ultrix sh set writes to stderr and can't be redirected directly,
  13506. # and sets the high bit in the cache file unless we assign to the vars.
  13507. (
  13508. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13509. eval ac_val=\$$ac_var
  13510. case $ac_val in #(
  13511. *${as_nl}*)
  13512. case $ac_var in #(
  13513. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13514. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13515. esac
  13516. case $ac_var in #(
  13517. _ | IFS | as_nl) ;; #(
  13518. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13519. *) { eval $ac_var=; unset $ac_var;} ;;
  13520. esac ;;
  13521. esac
  13522. done
  13523. (set) 2>&1 |
  13524. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13525. *${as_nl}ac_space=\ *)
  13526. # `set' does not quote correctly, so add quotes: double-quote
  13527. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13528. sed -n \
  13529. "s/'/'\\\\''/g;
  13530. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13531. ;; #(
  13532. *)
  13533. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13534. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13535. ;;
  13536. esac |
  13537. sort
  13538. ) |
  13539. sed '
  13540. /^ac_cv_env_/b end
  13541. t clear
  13542. :clear
  13543. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13544. t end
  13545. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13546. :end' >>confcache
  13547. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13548. if test -w "$cache_file"; then
  13549. test "x$cache_file" != "x/dev/null" &&
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13551. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13552. cat confcache >$cache_file
  13553. else
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13555. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13556. fi
  13557. fi
  13558. rm -f confcache
  13559. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13560. # Let make expand exec_prefix.
  13561. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13562. DEFS=-DHAVE_CONFIG_H
  13563. ac_libobjs=
  13564. ac_ltlibobjs=
  13565. U=
  13566. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13567. # 1. Remove the extension, and $U if already installed.
  13568. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13569. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13570. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13571. # will be set to the directory where LIBOBJS objects are built.
  13572. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13573. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13574. done
  13575. LIBOBJS=$ac_libobjs
  13576. LTLIBOBJS=$ac_ltlibobjs
  13577. if test -n "$EXEEXT"; then
  13578. am__EXEEXT_TRUE=
  13579. am__EXEEXT_FALSE='#'
  13580. else
  13581. am__EXEEXT_TRUE='#'
  13582. am__EXEEXT_FALSE=
  13583. fi
  13584. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13585. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13586. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13587. fi
  13588. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13589. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13590. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13591. fi
  13592. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13593. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13594. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13595. fi
  13596. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13597. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13599. fi
  13600. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13601. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13603. fi
  13604. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13605. as_fn_error $? "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13607. fi
  13608. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13609. as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
  13610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13611. fi
  13612. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13613. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13615. fi
  13616. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13617. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13618. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13619. fi
  13620. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13621. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13622. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13623. fi
  13624. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13625. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13626. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13627. fi
  13628. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13629. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13630. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13631. fi
  13632. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13633. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13634. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13635. fi
  13636. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13637. as_fn_error $? "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13638. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13639. fi
  13640. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13641. as_fn_error $? "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13642. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13643. fi
  13644. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13645. as_fn_error $? "conditional \"ENABLE_XML_RPC\" was never defined.
  13646. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13647. fi
  13648. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13649. as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
  13650. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13651. fi
  13652. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13653. as_fn_error $? "conditional \"HAVE_LIBEXPAT\" was never defined.
  13654. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13655. fi
  13656. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13657. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13658. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13659. fi
  13660. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13661. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13662. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13663. fi
  13664. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13665. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  13666. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13667. fi
  13668. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13669. as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined.
  13670. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13671. fi
  13672. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13673. as_fn_error $? "conditional \"HAVE_EPOLL\" was never defined.
  13674. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13675. fi
  13676. if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
  13677. as_fn_error $? "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
  13678. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13679. fi
  13680. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13681. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13682. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13683. fi
  13684. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13685. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13686. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13687. fi
  13688. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13689. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13690. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13691. fi
  13692. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13693. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13695. fi
  13696. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13697. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13699. fi
  13700. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13701. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13703. fi
  13704. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13705. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13707. fi
  13708. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13709. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13711. fi
  13712. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13713. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13714. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13715. fi
  13716. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13717. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13718. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13719. fi
  13720. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13721. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13722. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13723. fi
  13724. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13725. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13726. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13727. fi
  13728. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13729. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13730. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13731. fi
  13732. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13733. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13734. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13735. fi
  13736. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13737. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13738. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13739. fi
  13740. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13741. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13742. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13743. fi
  13744. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13745. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13746. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13747. fi
  13748. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13749. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13750. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13751. fi
  13752. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13753. as_fn_error $? "conditional \"HAVE_DAEMON\" was never defined.
  13754. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13755. fi
  13756. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13757. as_fn_error $? "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13758. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13759. fi
  13760. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13761. as_fn_error $? "conditional \"HAVE_POLL\" was never defined.
  13762. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13763. fi
  13764. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13765. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13766. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13767. fi
  13768. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13769. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13770. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13771. fi
  13772. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13773. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13775. fi
  13776. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13777. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13779. fi
  13780. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13781. as_fn_error $? "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13782. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13783. fi
  13784. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  13785. as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined.
  13786. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13787. fi
  13788. : ${CONFIG_STATUS=./config.status}
  13789. ac_write_fail=0
  13790. ac_clean_files_save=$ac_clean_files
  13791. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13793. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13794. as_write_fail=0
  13795. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13796. #! $SHELL
  13797. # Generated by $as_me.
  13798. # Run this file to recreate the current configuration.
  13799. # Compiler output produced by configure, useful for debugging
  13800. # configure, is in config.log if it exists.
  13801. debug=false
  13802. ac_cs_recheck=false
  13803. ac_cs_silent=false
  13804. SHELL=\${CONFIG_SHELL-$SHELL}
  13805. export SHELL
  13806. _ASEOF
  13807. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13808. ## -------------------- ##
  13809. ## M4sh Initialization. ##
  13810. ## -------------------- ##
  13811. # Be more Bourne compatible
  13812. DUALCASE=1; export DUALCASE # for MKS sh
  13813. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13814. emulate sh
  13815. NULLCMD=:
  13816. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13817. # is contrary to our usage. Disable this feature.
  13818. alias -g '${1+"$@"}'='"$@"'
  13819. setopt NO_GLOB_SUBST
  13820. else
  13821. case `(set -o) 2>/dev/null` in #(
  13822. *posix*) :
  13823. set -o posix ;; #(
  13824. *) :
  13825. ;;
  13826. esac
  13827. fi
  13828. as_nl='
  13829. '
  13830. export as_nl
  13831. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13832. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13833. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13834. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13835. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13836. # but without wasting forks for bash or zsh.
  13837. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13838. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13839. as_echo='print -r --'
  13840. as_echo_n='print -rn --'
  13841. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13842. as_echo='printf %s\n'
  13843. as_echo_n='printf %s'
  13844. else
  13845. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13846. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13847. as_echo_n='/usr/ucb/echo -n'
  13848. else
  13849. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13850. as_echo_n_body='eval
  13851. arg=$1;
  13852. case $arg in #(
  13853. *"$as_nl"*)
  13854. expr "X$arg" : "X\\(.*\\)$as_nl";
  13855. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13856. esac;
  13857. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13858. '
  13859. export as_echo_n_body
  13860. as_echo_n='sh -c $as_echo_n_body as_echo'
  13861. fi
  13862. export as_echo_body
  13863. as_echo='sh -c $as_echo_body as_echo'
  13864. fi
  13865. # The user is always right.
  13866. if test "${PATH_SEPARATOR+set}" != set; then
  13867. PATH_SEPARATOR=:
  13868. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13869. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13870. PATH_SEPARATOR=';'
  13871. }
  13872. fi
  13873. # IFS
  13874. # We need space, tab and new line, in precisely that order. Quoting is
  13875. # there to prevent editors from complaining about space-tab.
  13876. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13877. # splitting by setting IFS to empty value.)
  13878. IFS=" "" $as_nl"
  13879. # Find who we are. Look in the path if we contain no directory separator.
  13880. case $0 in #((
  13881. *[\\/]* ) as_myself=$0 ;;
  13882. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13883. for as_dir in $PATH
  13884. do
  13885. IFS=$as_save_IFS
  13886. test -z "$as_dir" && as_dir=.
  13887. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13888. done
  13889. IFS=$as_save_IFS
  13890. ;;
  13891. esac
  13892. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13893. # in which case we are not to be found in the path.
  13894. if test "x$as_myself" = x; then
  13895. as_myself=$0
  13896. fi
  13897. if test ! -f "$as_myself"; then
  13898. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13899. exit 1
  13900. fi
  13901. # Unset variables that we do not need and which cause bugs (e.g. in
  13902. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13903. # suppresses any "Segmentation fault" message there. '((' could
  13904. # trigger a bug in pdksh 5.2.14.
  13905. for as_var in BASH_ENV ENV MAIL MAILPATH
  13906. do eval test x\${$as_var+set} = xset \
  13907. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13908. done
  13909. PS1='$ '
  13910. PS2='> '
  13911. PS4='+ '
  13912. # NLS nuisances.
  13913. LC_ALL=C
  13914. export LC_ALL
  13915. LANGUAGE=C
  13916. export LANGUAGE
  13917. # CDPATH.
  13918. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13919. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13920. # ----------------------------------------
  13921. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13922. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13923. # script with STATUS, using 1 if that was 0.
  13924. as_fn_error ()
  13925. {
  13926. as_status=$1; test $as_status -eq 0 && as_status=1
  13927. if test "$4"; then
  13928. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13929. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13930. fi
  13931. $as_echo "$as_me: error: $2" >&2
  13932. as_fn_exit $as_status
  13933. } # as_fn_error
  13934. # as_fn_set_status STATUS
  13935. # -----------------------
  13936. # Set $? to STATUS, without forking.
  13937. as_fn_set_status ()
  13938. {
  13939. return $1
  13940. } # as_fn_set_status
  13941. # as_fn_exit STATUS
  13942. # -----------------
  13943. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13944. as_fn_exit ()
  13945. {
  13946. set +e
  13947. as_fn_set_status $1
  13948. exit $1
  13949. } # as_fn_exit
  13950. # as_fn_unset VAR
  13951. # ---------------
  13952. # Portably unset VAR.
  13953. as_fn_unset ()
  13954. {
  13955. { eval $1=; unset $1;}
  13956. }
  13957. as_unset=as_fn_unset
  13958. # as_fn_append VAR VALUE
  13959. # ----------------------
  13960. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13961. # advantage of any shell optimizations that allow amortized linear growth over
  13962. # repeated appends, instead of the typical quadratic growth present in naive
  13963. # implementations.
  13964. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13965. eval 'as_fn_append ()
  13966. {
  13967. eval $1+=\$2
  13968. }'
  13969. else
  13970. as_fn_append ()
  13971. {
  13972. eval $1=\$$1\$2
  13973. }
  13974. fi # as_fn_append
  13975. # as_fn_arith ARG...
  13976. # ------------------
  13977. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13978. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13979. # must be portable across $(()) and expr.
  13980. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13981. eval 'as_fn_arith ()
  13982. {
  13983. as_val=$(( $* ))
  13984. }'
  13985. else
  13986. as_fn_arith ()
  13987. {
  13988. as_val=`expr "$@" || test $? -eq 1`
  13989. }
  13990. fi # as_fn_arith
  13991. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13992. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13993. as_expr=expr
  13994. else
  13995. as_expr=false
  13996. fi
  13997. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13998. as_basename=basename
  13999. else
  14000. as_basename=false
  14001. fi
  14002. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14003. as_dirname=dirname
  14004. else
  14005. as_dirname=false
  14006. fi
  14007. as_me=`$as_basename -- "$0" ||
  14008. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14009. X"$0" : 'X\(//\)$' \| \
  14010. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14011. $as_echo X/"$0" |
  14012. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14013. s//\1/
  14014. q
  14015. }
  14016. /^X\/\(\/\/\)$/{
  14017. s//\1/
  14018. q
  14019. }
  14020. /^X\/\(\/\).*/{
  14021. s//\1/
  14022. q
  14023. }
  14024. s/.*/./; q'`
  14025. # Avoid depending upon Character Ranges.
  14026. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14027. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14028. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14029. as_cr_digits='0123456789'
  14030. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14031. ECHO_C= ECHO_N= ECHO_T=
  14032. case `echo -n x` in #(((((
  14033. -n*)
  14034. case `echo 'xy\c'` in
  14035. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14036. xy) ECHO_C='\c';;
  14037. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14038. ECHO_T=' ';;
  14039. esac;;
  14040. *)
  14041. ECHO_N='-n';;
  14042. esac
  14043. rm -f conf$$ conf$$.exe conf$$.file
  14044. if test -d conf$$.dir; then
  14045. rm -f conf$$.dir/conf$$.file
  14046. else
  14047. rm -f conf$$.dir
  14048. mkdir conf$$.dir 2>/dev/null
  14049. fi
  14050. if (echo >conf$$.file) 2>/dev/null; then
  14051. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14052. as_ln_s='ln -s'
  14053. # ... but there are two gotchas:
  14054. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14055. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14056. # In both cases, we have to default to `cp -p'.
  14057. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14058. as_ln_s='cp -p'
  14059. elif ln conf$$.file conf$$ 2>/dev/null; then
  14060. as_ln_s=ln
  14061. else
  14062. as_ln_s='cp -p'
  14063. fi
  14064. else
  14065. as_ln_s='cp -p'
  14066. fi
  14067. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14068. rmdir conf$$.dir 2>/dev/null
  14069. # as_fn_mkdir_p
  14070. # -------------
  14071. # Create "$as_dir" as a directory, including parents if necessary.
  14072. as_fn_mkdir_p ()
  14073. {
  14074. case $as_dir in #(
  14075. -*) as_dir=./$as_dir;;
  14076. esac
  14077. test -d "$as_dir" || eval $as_mkdir_p || {
  14078. as_dirs=
  14079. while :; do
  14080. case $as_dir in #(
  14081. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14082. *) as_qdir=$as_dir;;
  14083. esac
  14084. as_dirs="'$as_qdir' $as_dirs"
  14085. as_dir=`$as_dirname -- "$as_dir" ||
  14086. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14087. X"$as_dir" : 'X\(//\)[^/]' \| \
  14088. X"$as_dir" : 'X\(//\)$' \| \
  14089. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14090. $as_echo X"$as_dir" |
  14091. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14092. s//\1/
  14093. q
  14094. }
  14095. /^X\(\/\/\)[^/].*/{
  14096. s//\1/
  14097. q
  14098. }
  14099. /^X\(\/\/\)$/{
  14100. s//\1/
  14101. q
  14102. }
  14103. /^X\(\/\).*/{
  14104. s//\1/
  14105. q
  14106. }
  14107. s/.*/./; q'`
  14108. test -d "$as_dir" && break
  14109. done
  14110. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14111. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14112. } # as_fn_mkdir_p
  14113. if mkdir -p . 2>/dev/null; then
  14114. as_mkdir_p='mkdir -p "$as_dir"'
  14115. else
  14116. test -d ./-p && rmdir ./-p
  14117. as_mkdir_p=false
  14118. fi
  14119. if test -x / >/dev/null 2>&1; then
  14120. as_test_x='test -x'
  14121. else
  14122. if ls -dL / >/dev/null 2>&1; then
  14123. as_ls_L_option=L
  14124. else
  14125. as_ls_L_option=
  14126. fi
  14127. as_test_x='
  14128. eval sh -c '\''
  14129. if test -d "$1"; then
  14130. test -d "$1/.";
  14131. else
  14132. case $1 in #(
  14133. -*)set "./$1";;
  14134. esac;
  14135. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14136. ???[sx]*):;;*)false;;esac;fi
  14137. '\'' sh
  14138. '
  14139. fi
  14140. as_executable_p=$as_test_x
  14141. # Sed expression to map a string onto a valid CPP name.
  14142. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14143. # Sed expression to map a string onto a valid variable name.
  14144. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14145. exec 6>&1
  14146. ## ----------------------------------- ##
  14147. ## Main body of $CONFIG_STATUS script. ##
  14148. ## ----------------------------------- ##
  14149. _ASEOF
  14150. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14152. # Save the log message, to keep $0 and so on meaningful, and to
  14153. # report actual input values of CONFIG_FILES etc. instead of their
  14154. # values after options handling.
  14155. ac_log="
  14156. This file was extended by aria2 $as_me 1.10.6, which was
  14157. generated by GNU Autoconf 2.67. Invocation command line was
  14158. CONFIG_FILES = $CONFIG_FILES
  14159. CONFIG_HEADERS = $CONFIG_HEADERS
  14160. CONFIG_LINKS = $CONFIG_LINKS
  14161. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14162. $ $0 $@
  14163. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14164. "
  14165. _ACEOF
  14166. case $ac_config_files in *"
  14167. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14168. esac
  14169. case $ac_config_headers in *"
  14170. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14171. esac
  14172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14173. # Files that config.status was made for.
  14174. config_files="$ac_config_files"
  14175. config_headers="$ac_config_headers"
  14176. config_commands="$ac_config_commands"
  14177. _ACEOF
  14178. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14179. ac_cs_usage="\
  14180. \`$as_me' instantiates files and other configuration actions
  14181. from templates according to the current configuration. Unless the files
  14182. and actions are specified as TAGs, all are instantiated by default.
  14183. Usage: $0 [OPTION]... [TAG]...
  14184. -h, --help print this help, then exit
  14185. -V, --version print version number and configuration settings, then exit
  14186. --config print configuration, then exit
  14187. -q, --quiet, --silent
  14188. do not print progress messages
  14189. -d, --debug don't remove temporary files
  14190. --recheck update $as_me by reconfiguring in the same conditions
  14191. --file=FILE[:TEMPLATE]
  14192. instantiate the configuration file FILE
  14193. --header=FILE[:TEMPLATE]
  14194. instantiate the configuration header FILE
  14195. Configuration files:
  14196. $config_files
  14197. Configuration headers:
  14198. $config_headers
  14199. Configuration commands:
  14200. $config_commands
  14201. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14202. aria2 home page: <http://aria2.sourceforge.net/>."
  14203. _ACEOF
  14204. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14205. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14206. ac_cs_version="\\
  14207. aria2 config.status 1.10.6
  14208. configured by $0, generated by GNU Autoconf 2.67,
  14209. with options \\"\$ac_cs_config\\"
  14210. Copyright (C) 2010 Free Software Foundation, Inc.
  14211. This config.status script is free software; the Free Software Foundation
  14212. gives unlimited permission to copy, distribute and modify it."
  14213. ac_pwd='$ac_pwd'
  14214. srcdir='$srcdir'
  14215. INSTALL='$INSTALL'
  14216. MKDIR_P='$MKDIR_P'
  14217. AWK='$AWK'
  14218. test -n "\$AWK" || AWK=awk
  14219. _ACEOF
  14220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14221. # The default lists apply if the user does not specify any file.
  14222. ac_need_defaults=:
  14223. while test $# != 0
  14224. do
  14225. case $1 in
  14226. --*=?*)
  14227. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14228. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14229. ac_shift=:
  14230. ;;
  14231. --*=)
  14232. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14233. ac_optarg=
  14234. ac_shift=:
  14235. ;;
  14236. *)
  14237. ac_option=$1
  14238. ac_optarg=$2
  14239. ac_shift=shift
  14240. ;;
  14241. esac
  14242. case $ac_option in
  14243. # Handling of the options.
  14244. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14245. ac_cs_recheck=: ;;
  14246. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14247. $as_echo "$ac_cs_version"; exit ;;
  14248. --config | --confi | --conf | --con | --co | --c )
  14249. $as_echo "$ac_cs_config"; exit ;;
  14250. --debug | --debu | --deb | --de | --d | -d )
  14251. debug=: ;;
  14252. --file | --fil | --fi | --f )
  14253. $ac_shift
  14254. case $ac_optarg in
  14255. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14256. '') as_fn_error $? "missing file argument" ;;
  14257. esac
  14258. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14259. ac_need_defaults=false;;
  14260. --header | --heade | --head | --hea )
  14261. $ac_shift
  14262. case $ac_optarg in
  14263. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14264. esac
  14265. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14266. ac_need_defaults=false;;
  14267. --he | --h)
  14268. # Conflict between --help and --header
  14269. as_fn_error $? "ambiguous option: \`$1'
  14270. Try \`$0 --help' for more information.";;
  14271. --help | --hel | -h )
  14272. $as_echo "$ac_cs_usage"; exit ;;
  14273. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14274. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14275. ac_cs_silent=: ;;
  14276. # This is an error.
  14277. -*) as_fn_error $? "unrecognized option: \`$1'
  14278. Try \`$0 --help' for more information." ;;
  14279. *) as_fn_append ac_config_targets " $1"
  14280. ac_need_defaults=false ;;
  14281. esac
  14282. shift
  14283. done
  14284. ac_configure_extra_args=
  14285. if $ac_cs_silent; then
  14286. exec 6>/dev/null
  14287. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14288. fi
  14289. _ACEOF
  14290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14291. if \$ac_cs_recheck; then
  14292. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14293. shift
  14294. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14295. CONFIG_SHELL='$SHELL'
  14296. export CONFIG_SHELL
  14297. exec "\$@"
  14298. fi
  14299. _ACEOF
  14300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14301. exec 5>>config.log
  14302. {
  14303. echo
  14304. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14305. ## Running $as_me. ##
  14306. _ASBOX
  14307. $as_echo "$ac_log"
  14308. } >&5
  14309. _ACEOF
  14310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14311. #
  14312. # INIT-COMMANDS
  14313. #
  14314. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14315. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14316. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14317. # from automake < 1.5.
  14318. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14319. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14320. LINGUAS="${LINGUAS-%UNSET%}"
  14321. _ACEOF
  14322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14323. # Handling of arguments.
  14324. for ac_config_target in $ac_config_targets
  14325. do
  14326. case $ac_config_target in
  14327. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14328. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14329. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14330. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14331. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14332. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14333. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14334. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14335. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14336. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14337. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  14338. esac
  14339. done
  14340. # If the user did not use the arguments to specify the items to instantiate,
  14341. # then the envvar interface is used. Set only those that are not.
  14342. # We use the long form for the default assignment because of an extremely
  14343. # bizarre bug on SunOS 4.1.3.
  14344. if $ac_need_defaults; then
  14345. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14346. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14347. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14348. fi
  14349. # Have a temporary directory for convenience. Make it in the build tree
  14350. # simply because there is no reason against having it here, and in addition,
  14351. # creating and moving files from /tmp can sometimes cause problems.
  14352. # Hook for its removal unless debugging.
  14353. # Note that there is a small window in which the directory will not be cleaned:
  14354. # after its creation but before its name has been assigned to `$tmp'.
  14355. $debug ||
  14356. {
  14357. tmp=
  14358. trap 'exit_status=$?
  14359. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14360. ' 0
  14361. trap 'as_fn_exit 1' 1 2 13 15
  14362. }
  14363. # Create a (secure) tmp directory for tmp files.
  14364. {
  14365. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14366. test -n "$tmp" && test -d "$tmp"
  14367. } ||
  14368. {
  14369. tmp=./conf$$-$RANDOM
  14370. (umask 077 && mkdir "$tmp")
  14371. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14372. # Set up the scripts for CONFIG_FILES section.
  14373. # No need to generate them if there are no CONFIG_FILES.
  14374. # This happens for instance with `./config.status config.h'.
  14375. if test -n "$CONFIG_FILES"; then
  14376. ac_cr=`echo X | tr X '\015'`
  14377. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14378. # But we know of no other shell where ac_cr would be empty at this
  14379. # point, so we can use a bashism as a fallback.
  14380. if test "x$ac_cr" = x; then
  14381. eval ac_cr=\$\'\\r\'
  14382. fi
  14383. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14384. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14385. ac_cs_awk_cr='\\r'
  14386. else
  14387. ac_cs_awk_cr=$ac_cr
  14388. fi
  14389. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14390. _ACEOF
  14391. {
  14392. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14393. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14394. echo "_ACEOF"
  14395. } >conf$$subs.sh ||
  14396. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14397. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14398. ac_delim='%!_!# '
  14399. for ac_last_try in false false false false false :; do
  14400. . ./conf$$subs.sh ||
  14401. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14402. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14403. if test $ac_delim_n = $ac_delim_num; then
  14404. break
  14405. elif $ac_last_try; then
  14406. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14407. else
  14408. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14409. fi
  14410. done
  14411. rm -f conf$$subs.sh
  14412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14413. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14414. _ACEOF
  14415. sed -n '
  14416. h
  14417. s/^/S["/; s/!.*/"]=/
  14418. p
  14419. g
  14420. s/^[^!]*!//
  14421. :repl
  14422. t repl
  14423. s/'"$ac_delim"'$//
  14424. t delim
  14425. :nl
  14426. h
  14427. s/\(.\{148\}\)..*/\1/
  14428. t more1
  14429. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14430. p
  14431. n
  14432. b repl
  14433. :more1
  14434. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14435. p
  14436. g
  14437. s/.\{148\}//
  14438. t nl
  14439. :delim
  14440. h
  14441. s/\(.\{148\}\)..*/\1/
  14442. t more2
  14443. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14444. p
  14445. b
  14446. :more2
  14447. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14448. p
  14449. g
  14450. s/.\{148\}//
  14451. t delim
  14452. ' <conf$$subs.awk | sed '
  14453. /^[^""]/{
  14454. N
  14455. s/\n//
  14456. }
  14457. ' >>$CONFIG_STATUS || ac_write_fail=1
  14458. rm -f conf$$subs.awk
  14459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14460. _ACAWK
  14461. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14462. for (key in S) S_is_set[key] = 1
  14463. FS = ""
  14464. }
  14465. {
  14466. line = $ 0
  14467. nfields = split(line, field, "@")
  14468. substed = 0
  14469. len = length(field[1])
  14470. for (i = 2; i < nfields; i++) {
  14471. key = field[i]
  14472. keylen = length(key)
  14473. if (S_is_set[key]) {
  14474. value = S[key]
  14475. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14476. len += length(value) + length(field[++i])
  14477. substed = 1
  14478. } else
  14479. len += 1 + keylen
  14480. }
  14481. print line
  14482. }
  14483. _ACAWK
  14484. _ACEOF
  14485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14486. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14487. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14488. else
  14489. cat
  14490. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14491. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14492. _ACEOF
  14493. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14494. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14495. # trailing colons and then remove the whole line if VPATH becomes empty
  14496. # (actually we leave an empty line to preserve line numbers).
  14497. if test "x$srcdir" = x.; then
  14498. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14499. h
  14500. s///
  14501. s/^/:/
  14502. s/[ ]*$/:/
  14503. s/:\$(srcdir):/:/g
  14504. s/:\${srcdir}:/:/g
  14505. s/:@srcdir@:/:/g
  14506. s/^:*//
  14507. s/:*$//
  14508. x
  14509. s/\(=[ ]*\).*/\1/
  14510. G
  14511. s/\n//
  14512. s/^[^=]*=[ ]*$//
  14513. }'
  14514. fi
  14515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14516. fi # test -n "$CONFIG_FILES"
  14517. # Set up the scripts for CONFIG_HEADERS section.
  14518. # No need to generate them if there are no CONFIG_HEADERS.
  14519. # This happens for instance with `./config.status Makefile'.
  14520. if test -n "$CONFIG_HEADERS"; then
  14521. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14522. BEGIN {
  14523. _ACEOF
  14524. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14525. # here-document in config.status, that substitutes the proper values into
  14526. # config.h.in to produce config.h.
  14527. # Create a delimiter string that does not exist in confdefs.h, to ease
  14528. # handling of long lines.
  14529. ac_delim='%!_!# '
  14530. for ac_last_try in false false :; do
  14531. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14532. if test -z "$ac_t"; then
  14533. break
  14534. elif $ac_last_try; then
  14535. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14536. else
  14537. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14538. fi
  14539. done
  14540. # For the awk script, D is an array of macro values keyed by name,
  14541. # likewise P contains macro parameters if any. Preserve backslash
  14542. # newline sequences.
  14543. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14544. sed -n '
  14545. s/.\{148\}/&'"$ac_delim"'/g
  14546. t rset
  14547. :rset
  14548. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14549. t def
  14550. d
  14551. :def
  14552. s/\\$//
  14553. t bsnl
  14554. s/["\\]/\\&/g
  14555. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14556. D["\1"]=" \3"/p
  14557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14558. d
  14559. :bsnl
  14560. s/["\\]/\\&/g
  14561. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14562. D["\1"]=" \3\\\\\\n"\\/p
  14563. t cont
  14564. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14565. t cont
  14566. d
  14567. :cont
  14568. n
  14569. s/.\{148\}/&'"$ac_delim"'/g
  14570. t clear
  14571. :clear
  14572. s/\\$//
  14573. t bsnlc
  14574. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14575. d
  14576. :bsnlc
  14577. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14578. b cont
  14579. ' <confdefs.h | sed '
  14580. s/'"$ac_delim"'/"\\\
  14581. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14583. for (key in D) D_is_set[key] = 1
  14584. FS = ""
  14585. }
  14586. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14587. line = \$ 0
  14588. split(line, arg, " ")
  14589. if (arg[1] == "#") {
  14590. defundef = arg[2]
  14591. mac1 = arg[3]
  14592. } else {
  14593. defundef = substr(arg[1], 2)
  14594. mac1 = arg[2]
  14595. }
  14596. split(mac1, mac2, "(") #)
  14597. macro = mac2[1]
  14598. prefix = substr(line, 1, index(line, defundef) - 1)
  14599. if (D_is_set[macro]) {
  14600. # Preserve the white space surrounding the "#".
  14601. print prefix "define", macro P[macro] D[macro]
  14602. next
  14603. } else {
  14604. # Replace #undef with comments. This is necessary, for example,
  14605. # in the case of _POSIX_SOURCE, which is predefined and required
  14606. # on some systems where configure will not decide to define it.
  14607. if (defundef == "undef") {
  14608. print "/*", prefix defundef, macro, "*/"
  14609. next
  14610. }
  14611. }
  14612. }
  14613. { print }
  14614. _ACAWK
  14615. _ACEOF
  14616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14617. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14618. fi # test -n "$CONFIG_HEADERS"
  14619. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14620. shift
  14621. for ac_tag
  14622. do
  14623. case $ac_tag in
  14624. :[FHLC]) ac_mode=$ac_tag; continue;;
  14625. esac
  14626. case $ac_mode$ac_tag in
  14627. :[FHL]*:*);;
  14628. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  14629. :[FH]-) ac_tag=-:-;;
  14630. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14631. esac
  14632. ac_save_IFS=$IFS
  14633. IFS=:
  14634. set x $ac_tag
  14635. IFS=$ac_save_IFS
  14636. shift
  14637. ac_file=$1
  14638. shift
  14639. case $ac_mode in
  14640. :L) ac_source=$1;;
  14641. :[FH])
  14642. ac_file_inputs=
  14643. for ac_f
  14644. do
  14645. case $ac_f in
  14646. -) ac_f="$tmp/stdin";;
  14647. *) # Look for the file first in the build tree, then in the source tree
  14648. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14649. # because $ac_f cannot contain `:'.
  14650. test -f "$ac_f" ||
  14651. case $ac_f in
  14652. [\\/$]*) false;;
  14653. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14654. esac ||
  14655. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  14656. esac
  14657. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14658. as_fn_append ac_file_inputs " '$ac_f'"
  14659. done
  14660. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14661. # use $as_me), people would be surprised to read:
  14662. # /* config.h. Generated by config.status. */
  14663. configure_input='Generated from '`
  14664. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14665. `' by configure.'
  14666. if test x"$ac_file" != x-; then
  14667. configure_input="$ac_file. $configure_input"
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14669. $as_echo "$as_me: creating $ac_file" >&6;}
  14670. fi
  14671. # Neutralize special characters interpreted by sed in replacement strings.
  14672. case $configure_input in #(
  14673. *\&* | *\|* | *\\* )
  14674. ac_sed_conf_input=`$as_echo "$configure_input" |
  14675. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14676. *) ac_sed_conf_input=$configure_input;;
  14677. esac
  14678. case $ac_tag in
  14679. *:-:* | *:-) cat >"$tmp/stdin" \
  14680. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14681. esac
  14682. ;;
  14683. esac
  14684. ac_dir=`$as_dirname -- "$ac_file" ||
  14685. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14686. X"$ac_file" : 'X\(//\)[^/]' \| \
  14687. X"$ac_file" : 'X\(//\)$' \| \
  14688. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14689. $as_echo X"$ac_file" |
  14690. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14691. s//\1/
  14692. q
  14693. }
  14694. /^X\(\/\/\)[^/].*/{
  14695. s//\1/
  14696. q
  14697. }
  14698. /^X\(\/\/\)$/{
  14699. s//\1/
  14700. q
  14701. }
  14702. /^X\(\/\).*/{
  14703. s//\1/
  14704. q
  14705. }
  14706. s/.*/./; q'`
  14707. as_dir="$ac_dir"; as_fn_mkdir_p
  14708. ac_builddir=.
  14709. case "$ac_dir" in
  14710. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14711. *)
  14712. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14713. # A ".." for each directory in $ac_dir_suffix.
  14714. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14715. case $ac_top_builddir_sub in
  14716. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14717. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14718. esac ;;
  14719. esac
  14720. ac_abs_top_builddir=$ac_pwd
  14721. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14722. # for backward compatibility:
  14723. ac_top_builddir=$ac_top_build_prefix
  14724. case $srcdir in
  14725. .) # We are building in place.
  14726. ac_srcdir=.
  14727. ac_top_srcdir=$ac_top_builddir_sub
  14728. ac_abs_top_srcdir=$ac_pwd ;;
  14729. [\\/]* | ?:[\\/]* ) # Absolute name.
  14730. ac_srcdir=$srcdir$ac_dir_suffix;
  14731. ac_top_srcdir=$srcdir
  14732. ac_abs_top_srcdir=$srcdir ;;
  14733. *) # Relative name.
  14734. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14735. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14736. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14737. esac
  14738. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14739. case $ac_mode in
  14740. :F)
  14741. #
  14742. # CONFIG_FILE
  14743. #
  14744. case $INSTALL in
  14745. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14746. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14747. esac
  14748. ac_MKDIR_P=$MKDIR_P
  14749. case $MKDIR_P in
  14750. [\\/$]* | ?:[\\/]* ) ;;
  14751. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14752. esac
  14753. _ACEOF
  14754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14755. # If the template does not know about datarootdir, expand it.
  14756. # FIXME: This hack should be removed a few years after 2.60.
  14757. ac_datarootdir_hack=; ac_datarootdir_seen=
  14758. ac_sed_dataroot='
  14759. /datarootdir/ {
  14760. p
  14761. q
  14762. }
  14763. /@datadir@/p
  14764. /@docdir@/p
  14765. /@infodir@/p
  14766. /@localedir@/p
  14767. /@mandir@/p'
  14768. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14769. *datarootdir*) ac_datarootdir_seen=yes;;
  14770. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14772. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14773. _ACEOF
  14774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14775. ac_datarootdir_hack='
  14776. s&@datadir@&$datadir&g
  14777. s&@docdir@&$docdir&g
  14778. s&@infodir@&$infodir&g
  14779. s&@localedir@&$localedir&g
  14780. s&@mandir@&$mandir&g
  14781. s&\\\${datarootdir}&$datarootdir&g' ;;
  14782. esac
  14783. _ACEOF
  14784. # Neutralize VPATH when `$srcdir' = `.'.
  14785. # Shell code in configure.ac might set extrasub.
  14786. # FIXME: do we really want to maintain this feature?
  14787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14788. ac_sed_extra="$ac_vpsub
  14789. $extrasub
  14790. _ACEOF
  14791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14792. :t
  14793. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14794. s|@configure_input@|$ac_sed_conf_input|;t t
  14795. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14796. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14797. s&@srcdir@&$ac_srcdir&;t t
  14798. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14799. s&@top_srcdir@&$ac_top_srcdir&;t t
  14800. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14801. s&@builddir@&$ac_builddir&;t t
  14802. s&@abs_builddir@&$ac_abs_builddir&;t t
  14803. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14804. s&@INSTALL@&$ac_INSTALL&;t t
  14805. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14806. $ac_datarootdir_hack
  14807. "
  14808. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14809. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14810. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14811. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14812. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14814. which seems to be undefined. Please make sure it is defined" >&5
  14815. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14816. which seems to be undefined. Please make sure it is defined" >&2;}
  14817. rm -f "$tmp/stdin"
  14818. case $ac_file in
  14819. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14820. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14821. esac \
  14822. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14823. ;;
  14824. :H)
  14825. #
  14826. # CONFIG_HEADER
  14827. #
  14828. if test x"$ac_file" != x-; then
  14829. {
  14830. $as_echo "/* $configure_input */" \
  14831. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14832. } >"$tmp/config.h" \
  14833. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14834. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14836. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14837. else
  14838. rm -f "$ac_file"
  14839. mv "$tmp/config.h" "$ac_file" \
  14840. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14841. fi
  14842. else
  14843. $as_echo "/* $configure_input */" \
  14844. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14845. || as_fn_error $? "could not create -" "$LINENO" 5
  14846. fi
  14847. # Compute "$ac_file"'s index in $config_headers.
  14848. _am_arg="$ac_file"
  14849. _am_stamp_count=1
  14850. for _am_header in $config_headers :; do
  14851. case $_am_header in
  14852. $_am_arg | $_am_arg:* )
  14853. break ;;
  14854. * )
  14855. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14856. esac
  14857. done
  14858. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14859. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14860. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14861. X"$_am_arg" : 'X\(//\)$' \| \
  14862. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14863. $as_echo X"$_am_arg" |
  14864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14865. s//\1/
  14866. q
  14867. }
  14868. /^X\(\/\/\)[^/].*/{
  14869. s//\1/
  14870. q
  14871. }
  14872. /^X\(\/\/\)$/{
  14873. s//\1/
  14874. q
  14875. }
  14876. /^X\(\/\).*/{
  14877. s//\1/
  14878. q
  14879. }
  14880. s/.*/./; q'`/stamp-h$_am_stamp_count
  14881. ;;
  14882. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14883. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14884. ;;
  14885. esac
  14886. case $ac_file$ac_mode in
  14887. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14888. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14889. # are listed without --file. Let's play safe and only enable the eval
  14890. # if we detect the quoting.
  14891. case $CONFIG_FILES in
  14892. *\'*) eval set x "$CONFIG_FILES" ;;
  14893. *) set x $CONFIG_FILES ;;
  14894. esac
  14895. shift
  14896. for mf
  14897. do
  14898. # Strip MF so we end up with the name of the file.
  14899. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14900. # Check whether this is an Automake generated Makefile or not.
  14901. # We used to match only the files named `Makefile.in', but
  14902. # some people rename them; so instead we look at the file content.
  14903. # Grep'ing the first line is not enough: some people post-process
  14904. # each Makefile.in and add a new line on top of each file to say so.
  14905. # Grep'ing the whole file is not good either: AIX grep has a line
  14906. # limit of 2048, but all sed's we know have understand at least 4000.
  14907. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14908. dirpart=`$as_dirname -- "$mf" ||
  14909. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14910. X"$mf" : 'X\(//\)[^/]' \| \
  14911. X"$mf" : 'X\(//\)$' \| \
  14912. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14913. $as_echo X"$mf" |
  14914. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14915. s//\1/
  14916. q
  14917. }
  14918. /^X\(\/\/\)[^/].*/{
  14919. s//\1/
  14920. q
  14921. }
  14922. /^X\(\/\/\)$/{
  14923. s//\1/
  14924. q
  14925. }
  14926. /^X\(\/\).*/{
  14927. s//\1/
  14928. q
  14929. }
  14930. s/.*/./; q'`
  14931. else
  14932. continue
  14933. fi
  14934. # Extract the definition of DEPDIR, am__include, and am__quote
  14935. # from the Makefile without running `make'.
  14936. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14937. test -z "$DEPDIR" && continue
  14938. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14939. test -z "am__include" && continue
  14940. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14941. # When using ansi2knr, U may be empty or an underscore; expand it
  14942. U=`sed -n 's/^U = //p' < "$mf"`
  14943. # Find all dependency output files, they are included files with
  14944. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14945. # simplest approach to changing $(DEPDIR) to its actual value in the
  14946. # expansion.
  14947. for file in `sed -n "
  14948. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14949. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14950. # Make sure the directory exists.
  14951. test -f "$dirpart/$file" && continue
  14952. fdir=`$as_dirname -- "$file" ||
  14953. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14954. X"$file" : 'X\(//\)[^/]' \| \
  14955. X"$file" : 'X\(//\)$' \| \
  14956. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14957. $as_echo X"$file" |
  14958. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14959. s//\1/
  14960. q
  14961. }
  14962. /^X\(\/\/\)[^/].*/{
  14963. s//\1/
  14964. q
  14965. }
  14966. /^X\(\/\/\)$/{
  14967. s//\1/
  14968. q
  14969. }
  14970. /^X\(\/\).*/{
  14971. s//\1/
  14972. q
  14973. }
  14974. s/.*/./; q'`
  14975. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14976. # echo "creating $dirpart/$file"
  14977. echo '# dummy' > "$dirpart/$file"
  14978. done
  14979. done
  14980. }
  14981. ;;
  14982. "po-directories":C)
  14983. for ac_file in $CONFIG_FILES; do
  14984. # Support "outfile[:infile[:infile...]]"
  14985. case "$ac_file" in
  14986. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14987. esac
  14988. # PO directories have a Makefile.in generated from Makefile.in.in.
  14989. case "$ac_file" in */Makefile.in)
  14990. # Adjust a relative srcdir.
  14991. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14992. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14993. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14994. # In autoconf-2.13 it is called $ac_given_srcdir.
  14995. # In autoconf-2.50 it is called $srcdir.
  14996. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14997. case "$ac_given_srcdir" in
  14998. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14999. /*) top_srcdir="$ac_given_srcdir" ;;
  15000. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15001. esac
  15002. # Treat a directory as a PO directory if and only if it has a
  15003. # POTFILES.in file. This allows packages to have multiple PO
  15004. # directories under different names or in different locations.
  15005. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15006. rm -f "$ac_dir/POTFILES"
  15007. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15008. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15009. POMAKEFILEDEPS="POTFILES.in"
  15010. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  15011. # on $ac_dir but don't depend on user-specified configuration
  15012. # parameters.
  15013. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15014. # The LINGUAS file contains the set of available languages.
  15015. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15016. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  15017. fi
  15018. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15019. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15020. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15021. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15022. else
  15023. # The set of available languages was given in configure.in.
  15024. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15025. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15026. fi
  15027. # Compute POFILES
  15028. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  15029. # Compute UPDATEPOFILES
  15030. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  15031. # Compute DUMMYPOFILES
  15032. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  15033. # Compute GMOFILES
  15034. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15035. case "$ac_given_srcdir" in
  15036. .) srcdirpre= ;;
  15037. *) srcdirpre='$(srcdir)/' ;;
  15038. esac
  15039. POFILES=
  15040. UPDATEPOFILES=
  15041. DUMMYPOFILES=
  15042. GMOFILES=
  15043. for lang in $ALL_LINGUAS; do
  15044. POFILES="$POFILES $srcdirpre$lang.po"
  15045. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15046. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15047. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15048. done
  15049. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15050. # environment variable.
  15051. INST_LINGUAS=
  15052. if test -n "$ALL_LINGUAS"; then
  15053. for presentlang in $ALL_LINGUAS; do
  15054. useit=no
  15055. if test "%UNSET%" != "$LINGUAS"; then
  15056. desiredlanguages="$LINGUAS"
  15057. else
  15058. desiredlanguages="$ALL_LINGUAS"
  15059. fi
  15060. for desiredlang in $desiredlanguages; do
  15061. # Use the presentlang catalog if desiredlang is
  15062. # a. equal to presentlang, or
  15063. # b. a variant of presentlang (because in this case,
  15064. # presentlang can be used as a fallback for messages
  15065. # which are not translated in the desiredlang catalog).
  15066. case "$desiredlang" in
  15067. "$presentlang"*) useit=yes;;
  15068. esac
  15069. done
  15070. if test $useit = yes; then
  15071. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15072. fi
  15073. done
  15074. fi
  15075. CATALOGS=
  15076. if test -n "$INST_LINGUAS"; then
  15077. for lang in $INST_LINGUAS; do
  15078. CATALOGS="$CATALOGS $lang.gmo"
  15079. done
  15080. fi
  15081. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15082. 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"
  15083. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15084. if test -f "$f"; then
  15085. case "$f" in
  15086. *.orig | *.bak | *~) ;;
  15087. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15088. esac
  15089. fi
  15090. done
  15091. fi
  15092. ;;
  15093. esac
  15094. done ;;
  15095. esac
  15096. done # for ac_tag
  15097. as_fn_exit 0
  15098. _ACEOF
  15099. ac_clean_files=$ac_clean_files_save
  15100. test $ac_write_fail = 0 ||
  15101. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15102. # configure is writing to config.log, and then calls config.status.
  15103. # config.status does its own redirection, appending to config.log.
  15104. # Unfortunately, on DOS this fails, as config.log is still kept open
  15105. # by configure, so config.status won't be able to write to it; its
  15106. # output is simply discarded. So we exec the FD to /dev/null,
  15107. # effectively closing config.log, so it can be properly (re)opened and
  15108. # appended to by config.status. When coming back to configure, we
  15109. # need to make the FD available again.
  15110. if test "$no_create" != yes; then
  15111. ac_cs_success=:
  15112. ac_config_status_args=
  15113. test "$silent" = yes &&
  15114. ac_config_status_args="$ac_config_status_args --quiet"
  15115. exec 5>/dev/null
  15116. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15117. exec 5>>config.log
  15118. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15119. # would make configure fail if this is the last instruction.
  15120. $ac_cs_success || as_fn_exit 1
  15121. fi
  15122. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15124. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15125. fi
  15126. echo " "
  15127. echo "Build: $build"
  15128. echo "Target: $target"
  15129. echo "Install prefix: $prefix"
  15130. echo "CXXFLAGS: $CXXFLAGS"
  15131. echo "CFLAGS: $CFLAGS"
  15132. echo "CPPFLAGS: $CPPFLAGS"
  15133. echo "LDFLAGS: $LDFLAGS"
  15134. echo "LIBS: $LIBS"
  15135. echo "SQLite3: $have_sqlite3"
  15136. echo "GnuTLS: $have_libgnutls"
  15137. echo "OpenSSL: $have_openssl"
  15138. echo "CA Bundle: $ca_bundle"
  15139. echo "LibXML2: $have_libxml2"
  15140. echo "LibExpat: $have_libexpat"
  15141. echo "LibCares: $have_libcares"
  15142. echo "Libz: $have_libz"
  15143. echo "Epoll: $have_epoll"
  15144. echo "Bittorrent: $enable_bittorrent"
  15145. echo "Metalink: $enable_metalink"
  15146. echo "XML-RPC: $enable_xml_rpc"