configure 483 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for aria2 1.10.3.
  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.3'
  509. PACKAGE_STRING='aria2 1.10.3'
  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.3 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.3:";;
  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.3
  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.3, 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.3'
  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_channel channel;
  6368. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6369. ;
  6370. return 0;
  6371. }
  6372. _ACEOF
  6373. if ac_fn_cxx_try_compile "$LINENO"; then :
  6374. have_libcares1_5=yes
  6375. else
  6376. have_libcares1_5=no
  6377. fi
  6378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6380. $as_echo "$have_libcares1_5" >&6; }
  6381. if test "x$have_libcares1_5" = "xyes"; then
  6382. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6383. fi
  6384. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6385. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6386. if test "x$need_librt" = "xyes"; then
  6387. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6388. fi
  6389. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6390. fi
  6391. LIBS=$LIBS_save
  6392. CPPFLAGS=$CPPFLAGS_save
  6393. if test "x$have_libcares" != "xyes" &&
  6394. test "x$with_libcares_requested" = "xyes"; then
  6395. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6396. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6397. as_fn_error $? "libcares is requested but not found in the system.
  6398. See \`config.log' for more details" "$LINENO" 5 ; }
  6399. fi
  6400. fi
  6401. # Check availability of libz
  6402. if test "x$with_libz" = "xyes"; then
  6403. # Check whether --with-libz-prefix was given.
  6404. if test "${with_libz_prefix+set}" = set; then :
  6405. withval=$with_libz_prefix; libz_prefix=$withval
  6406. else
  6407. libz_prefix=""
  6408. fi
  6409. if test "x$libz_prefix" = "x"; then
  6410. libz_prefix="/usr"
  6411. fi
  6412. libz_prefix_lib=$libz_prefix/lib
  6413. libz_prefix_include=$libz_prefix/include
  6414. LIBS_save=$LIBS
  6415. CPPFLAGS_save=$CPPFLAGS
  6416. LIBS="-L$libz_prefix_lib $LIBS"
  6417. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6419. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6420. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. ac_check_lib_save_LIBS=$LIBS
  6424. LIBS="-lz $LIBS"
  6425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h. */
  6427. /* Override any GCC internal prototype to avoid an error.
  6428. Use char because int might match the return type of a GCC
  6429. builtin and then its argument prototype would still apply. */
  6430. #ifdef __cplusplus
  6431. extern "C"
  6432. #endif
  6433. char zlibVersion ();
  6434. int
  6435. main ()
  6436. {
  6437. return zlibVersion ();
  6438. ;
  6439. return 0;
  6440. }
  6441. _ACEOF
  6442. if ac_fn_cxx_try_link "$LINENO"; then :
  6443. ac_cv_lib_z_zlibVersion=yes
  6444. else
  6445. ac_cv_lib_z_zlibVersion=no
  6446. fi
  6447. rm -f core conftest.err conftest.$ac_objext \
  6448. conftest$ac_exeext conftest.$ac_ext
  6449. LIBS=$ac_check_lib_save_LIBS
  6450. fi
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6452. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6453. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6454. have_libz=yes
  6455. fi
  6456. if test "x$have_libz" = "xyes"; then
  6457. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6458. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6459. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6460. fi
  6461. LIBS=$LIBS_save
  6462. CPPFLAGS=$CPPFLAGS_save
  6463. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6464. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6466. as_fn_error $? "libz is requested but not found in the system.
  6467. See \`config.log' for more details" "$LINENO" 5 ; }
  6468. fi
  6469. fi
  6470. # Define variables based on the result of the checks for libraries.
  6471. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6472. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6473. if true; then
  6474. ENABLE_SSL_TRUE=
  6475. ENABLE_SSL_FALSE='#'
  6476. else
  6477. ENABLE_SSL_TRUE='#'
  6478. ENABLE_SSL_FALSE=
  6479. fi
  6480. else
  6481. if false; then
  6482. ENABLE_SSL_TRUE=
  6483. ENABLE_SSL_FALSE='#'
  6484. else
  6485. ENABLE_SSL_TRUE='#'
  6486. ENABLE_SSL_FALSE=
  6487. fi
  6488. fi
  6489. if test "x$have_libgnutls" = "xyes" ; then
  6490. HAVE_LIBGNUTLS_TRUE=
  6491. HAVE_LIBGNUTLS_FALSE='#'
  6492. else
  6493. HAVE_LIBGNUTLS_TRUE='#'
  6494. HAVE_LIBGNUTLS_FALSE=
  6495. fi
  6496. if test "x$have_openssl" = "xyes" ; then
  6497. HAVE_LIBSSL_TRUE=
  6498. HAVE_LIBSSL_FALSE='#'
  6499. else
  6500. HAVE_LIBSSL_TRUE='#'
  6501. HAVE_LIBSSL_FALSE=
  6502. fi
  6503. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6504. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6505. if true; then
  6506. ENABLE_MESSAGE_DIGEST_TRUE=
  6507. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6508. else
  6509. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6510. ENABLE_MESSAGE_DIGEST_FALSE=
  6511. fi
  6512. enable_message_digest=yes
  6513. else
  6514. if false; then
  6515. ENABLE_MESSAGE_DIGEST_TRUE=
  6516. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6517. else
  6518. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6519. ENABLE_MESSAGE_DIGEST_FALSE=
  6520. fi
  6521. fi
  6522. if test "x$enable_bittorrent" = "xyes" &&
  6523. test "x$enable_message_digest" = "xyes"; then
  6524. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6525. if true; then
  6526. ENABLE_BITTORRENT_TRUE=
  6527. ENABLE_BITTORRENT_FALSE='#'
  6528. else
  6529. ENABLE_BITTORRENT_TRUE='#'
  6530. ENABLE_BITTORRENT_FALSE=
  6531. fi
  6532. else
  6533. if test "x$enable_bittorrent_requested" = "xyes"; then
  6534. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6536. as_fn_error $? "bittorrent is requested but cannot be enabled with current\
  6537. configuration.\
  6538. Make sure that dependent libraries are installed and configure script options\
  6539. are correct.
  6540. See \`config.log' for more details" "$LINENO" 5 ; }
  6541. fi
  6542. enable_bittorrent=no
  6543. if false; then
  6544. ENABLE_BITTORRENT_TRUE=
  6545. ENABLE_BITTORRENT_FALSE='#'
  6546. else
  6547. ENABLE_BITTORRENT_TRUE='#'
  6548. ENABLE_BITTORRENT_FALSE=
  6549. fi
  6550. fi
  6551. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6552. test "x$enable_metalink" = "xyes"; then
  6553. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6554. if true; then
  6555. ENABLE_METALINK_TRUE=
  6556. ENABLE_METALINK_FALSE='#'
  6557. else
  6558. ENABLE_METALINK_TRUE='#'
  6559. ENABLE_METALINK_FALSE=
  6560. fi
  6561. else
  6562. if test "x$enable_metalink_requested" = "xyes"; then
  6563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6565. as_fn_error $? "metalink is requested but cannot be enabled with current\
  6566. configuration.\
  6567. Make sure that dependent libraries are installed and configure script options\
  6568. are correct.
  6569. See \`config.log' for more details" "$LINENO" 5 ; }
  6570. fi
  6571. enable_metalink=no
  6572. if false; then
  6573. ENABLE_METALINK_TRUE=
  6574. ENABLE_METALINK_FALSE='#'
  6575. else
  6576. ENABLE_METALINK_TRUE='#'
  6577. ENABLE_METALINK_FALSE=
  6578. fi
  6579. fi
  6580. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6581. ENABLE_METALINK_LIBXML2_TRUE=
  6582. ENABLE_METALINK_LIBXML2_FALSE='#'
  6583. else
  6584. ENABLE_METALINK_LIBXML2_TRUE='#'
  6585. ENABLE_METALINK_LIBXML2_FALSE=
  6586. fi
  6587. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6588. ENABLE_METALINK_LIBEXPAT_TRUE=
  6589. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6590. else
  6591. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6592. ENABLE_METALINK_LIBEXPAT_FALSE=
  6593. fi
  6594. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6595. enable_xml_rpc=yes
  6596. fi
  6597. if test "x$enable_xml_rpc" = "xyes"; then
  6598. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6599. fi
  6600. if test "x$enable_xml_rpc" = "xyes"; then
  6601. ENABLE_XML_RPC_TRUE=
  6602. ENABLE_XML_RPC_FALSE='#'
  6603. else
  6604. ENABLE_XML_RPC_TRUE='#'
  6605. ENABLE_XML_RPC_FALSE=
  6606. fi
  6607. if test "x$have_libxml2" = "xyes"; then
  6608. HAVE_LIBXML2_TRUE=
  6609. HAVE_LIBXML2_FALSE='#'
  6610. else
  6611. HAVE_LIBXML2_TRUE='#'
  6612. HAVE_LIBXML2_FALSE=
  6613. fi
  6614. if test "x$have_libexpat" = "xyes"; then
  6615. HAVE_LIBEXPAT_TRUE=
  6616. HAVE_LIBEXPAT_FALSE='#'
  6617. else
  6618. HAVE_LIBEXPAT_TRUE='#'
  6619. HAVE_LIBEXPAT_FALSE=
  6620. fi
  6621. if test "x$have_libcares" = "xyes"; then
  6622. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6623. if true; then
  6624. ENABLE_ASYNC_DNS_TRUE=
  6625. ENABLE_ASYNC_DNS_FALSE='#'
  6626. else
  6627. ENABLE_ASYNC_DNS_TRUE='#'
  6628. ENABLE_ASYNC_DNS_FALSE=
  6629. fi
  6630. else
  6631. if false; then
  6632. ENABLE_ASYNC_DNS_TRUE=
  6633. ENABLE_ASYNC_DNS_FALSE='#'
  6634. else
  6635. ENABLE_ASYNC_DNS_TRUE='#'
  6636. ENABLE_ASYNC_DNS_FALSE=
  6637. fi
  6638. fi
  6639. # Set conditional for libz
  6640. if test "x$have_libz" = "xyes"; then
  6641. HAVE_LIBZ_TRUE=
  6642. HAVE_LIBZ_FALSE='#'
  6643. else
  6644. HAVE_LIBZ_TRUE='#'
  6645. HAVE_LIBZ_FALSE=
  6646. fi
  6647. # Set conditional for sqlite3
  6648. if test "x$have_sqlite3" = "xyes"; then
  6649. HAVE_SQLITE3_TRUE=
  6650. HAVE_SQLITE3_FALSE='#'
  6651. else
  6652. HAVE_SQLITE3_TRUE='#'
  6653. HAVE_SQLITE3_FALSE=
  6654. fi
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6656. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6657. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. ac_func_search_save_LIBS=$LIBS
  6661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6662. /* end confdefs.h. */
  6663. /* Override any GCC internal prototype to avoid an error.
  6664. Use char because int might match the return type of a GCC
  6665. builtin and then its argument prototype would still apply. */
  6666. #ifdef __cplusplus
  6667. extern "C"
  6668. #endif
  6669. char clock_gettime ();
  6670. int
  6671. main ()
  6672. {
  6673. return clock_gettime ();
  6674. ;
  6675. return 0;
  6676. }
  6677. _ACEOF
  6678. for ac_lib in '' rt; do
  6679. if test -z "$ac_lib"; then
  6680. ac_res="none required"
  6681. else
  6682. ac_res=-l$ac_lib
  6683. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6684. fi
  6685. if ac_fn_cxx_try_link "$LINENO"; then :
  6686. ac_cv_search_clock_gettime=$ac_res
  6687. fi
  6688. rm -f core conftest.err conftest.$ac_objext \
  6689. conftest$ac_exeext
  6690. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6691. break
  6692. fi
  6693. done
  6694. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6695. else
  6696. ac_cv_search_clock_gettime=no
  6697. fi
  6698. rm conftest.$ac_ext
  6699. LIBS=$ac_func_search_save_LIBS
  6700. fi
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6702. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6703. ac_res=$ac_cv_search_clock_gettime
  6704. if test "$ac_res" != no; then :
  6705. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6706. fi
  6707. case "$target" in
  6708. *solaris*)
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6710. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6711. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. ac_func_search_save_LIBS=$LIBS
  6715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6716. /* end confdefs.h. */
  6717. /* Override any GCC internal prototype to avoid an error.
  6718. Use char because int might match the return type of a GCC
  6719. builtin and then its argument prototype would still apply. */
  6720. #ifdef __cplusplus
  6721. extern "C"
  6722. #endif
  6723. char getaddrinfo ();
  6724. int
  6725. main ()
  6726. {
  6727. return getaddrinfo ();
  6728. ;
  6729. return 0;
  6730. }
  6731. _ACEOF
  6732. for ac_lib in '' nsl socket; do
  6733. if test -z "$ac_lib"; then
  6734. ac_res="none required"
  6735. else
  6736. ac_res=-l$ac_lib
  6737. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6738. fi
  6739. if ac_fn_cxx_try_link "$LINENO"; then :
  6740. ac_cv_search_getaddrinfo=$ac_res
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext \
  6743. conftest$ac_exeext
  6744. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6745. break
  6746. fi
  6747. done
  6748. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6749. else
  6750. ac_cv_search_getaddrinfo=no
  6751. fi
  6752. rm conftest.$ac_ext
  6753. LIBS=$ac_func_search_save_LIBS
  6754. fi
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6756. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6757. ac_res=$ac_cv_search_getaddrinfo
  6758. if test "$ac_res" != no; then :
  6759. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6760. fi
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6762. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6763. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6764. $as_echo_n "(cached) " >&6
  6765. else
  6766. ac_func_search_save_LIBS=$LIBS
  6767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6768. /* end confdefs.h. */
  6769. /* Override any GCC internal prototype to avoid an error.
  6770. Use char because int might match the return type of a GCC
  6771. builtin and then its argument prototype would still apply. */
  6772. #ifdef __cplusplus
  6773. extern "C"
  6774. #endif
  6775. char inet_aton ();
  6776. int
  6777. main ()
  6778. {
  6779. return inet_aton ();
  6780. ;
  6781. return 0;
  6782. }
  6783. _ACEOF
  6784. for ac_lib in '' nsl socket; do
  6785. if test -z "$ac_lib"; then
  6786. ac_res="none required"
  6787. else
  6788. ac_res=-l$ac_lib
  6789. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6790. fi
  6791. if ac_fn_cxx_try_link "$LINENO"; then :
  6792. ac_cv_search_inet_aton=$ac_res
  6793. fi
  6794. rm -f core conftest.err conftest.$ac_objext \
  6795. conftest$ac_exeext
  6796. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6797. break
  6798. fi
  6799. done
  6800. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6801. else
  6802. ac_cv_search_inet_aton=no
  6803. fi
  6804. rm conftest.$ac_ext
  6805. LIBS=$ac_func_search_save_LIBS
  6806. fi
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6808. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6809. ac_res=$ac_cv_search_inet_aton
  6810. if test "$ac_res" != no; then :
  6811. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6812. fi
  6813. ;;
  6814. esac
  6815. # Checks for header files.
  6816. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6817. # for constant arguments. Useless!
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6819. $as_echo_n "checking for working alloca.h... " >&6; }
  6820. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6824. /* end confdefs.h. */
  6825. #include <alloca.h>
  6826. int
  6827. main ()
  6828. {
  6829. char *p = (char *) alloca (2 * sizeof (int));
  6830. if (p) return 0;
  6831. ;
  6832. return 0;
  6833. }
  6834. _ACEOF
  6835. if ac_fn_cxx_try_link "$LINENO"; then :
  6836. ac_cv_working_alloca_h=yes
  6837. else
  6838. ac_cv_working_alloca_h=no
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext \
  6841. conftest$ac_exeext conftest.$ac_ext
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6844. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6845. if test $ac_cv_working_alloca_h = yes; then
  6846. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6847. fi
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6849. $as_echo_n "checking for alloca... " >&6; }
  6850. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6854. /* end confdefs.h. */
  6855. #ifdef __GNUC__
  6856. # define alloca __builtin_alloca
  6857. #else
  6858. # ifdef _MSC_VER
  6859. # include <malloc.h>
  6860. # define alloca _alloca
  6861. # else
  6862. # ifdef HAVE_ALLOCA_H
  6863. # include <alloca.h>
  6864. # else
  6865. # ifdef _AIX
  6866. #pragma alloca
  6867. # else
  6868. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6869. char *alloca ();
  6870. # endif
  6871. # endif
  6872. # endif
  6873. # endif
  6874. #endif
  6875. int
  6876. main ()
  6877. {
  6878. char *p = (char *) alloca (1);
  6879. if (p) return 0;
  6880. ;
  6881. return 0;
  6882. }
  6883. _ACEOF
  6884. if ac_fn_cxx_try_link "$LINENO"; then :
  6885. ac_cv_func_alloca_works=yes
  6886. else
  6887. ac_cv_func_alloca_works=no
  6888. fi
  6889. rm -f core conftest.err conftest.$ac_objext \
  6890. conftest$ac_exeext conftest.$ac_ext
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6893. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6894. if test $ac_cv_func_alloca_works = yes; then
  6895. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6896. else
  6897. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6898. # that cause trouble. Some versions do not even contain alloca or
  6899. # contain a buggy version. If you still want to use their alloca,
  6900. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6901. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6902. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6904. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6905. if test "${ac_cv_os_cray+set}" = set; then :
  6906. $as_echo_n "(cached) " >&6
  6907. else
  6908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6909. /* end confdefs.h. */
  6910. #if defined CRAY && ! defined CRAY2
  6911. webecray
  6912. #else
  6913. wenotbecray
  6914. #endif
  6915. _ACEOF
  6916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6917. $EGREP "webecray" >/dev/null 2>&1; then :
  6918. ac_cv_os_cray=yes
  6919. else
  6920. ac_cv_os_cray=no
  6921. fi
  6922. rm -f conftest*
  6923. fi
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6925. $as_echo "$ac_cv_os_cray" >&6; }
  6926. if test $ac_cv_os_cray = yes; then
  6927. for ac_func in _getb67 GETB67 getb67; do
  6928. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6929. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6930. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6931. cat >>confdefs.h <<_ACEOF
  6932. #define CRAY_STACKSEG_END $ac_func
  6933. _ACEOF
  6934. break
  6935. fi
  6936. done
  6937. fi
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6939. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6940. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. if test "$cross_compiling" = yes; then :
  6944. ac_cv_c_stack_direction=0
  6945. else
  6946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6947. /* end confdefs.h. */
  6948. $ac_includes_default
  6949. int
  6950. find_stack_direction ()
  6951. {
  6952. static char *addr = 0;
  6953. auto char dummy;
  6954. if (addr == 0)
  6955. {
  6956. addr = &dummy;
  6957. return find_stack_direction ();
  6958. }
  6959. else
  6960. return (&dummy > addr) ? 1 : -1;
  6961. }
  6962. int
  6963. main ()
  6964. {
  6965. return find_stack_direction () < 0;
  6966. }
  6967. _ACEOF
  6968. if ac_fn_cxx_try_run "$LINENO"; then :
  6969. ac_cv_c_stack_direction=1
  6970. else
  6971. ac_cv_c_stack_direction=-1
  6972. fi
  6973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6974. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6975. fi
  6976. fi
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6978. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6979. cat >>confdefs.h <<_ACEOF
  6980. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6981. _ACEOF
  6982. fi
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6984. $as_echo_n "checking for ANSI C header files... " >&6; }
  6985. if test "${ac_cv_header_stdc+set}" = set; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6989. /* end confdefs.h. */
  6990. #include <stdlib.h>
  6991. #include <stdarg.h>
  6992. #include <string.h>
  6993. #include <float.h>
  6994. int
  6995. main ()
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_cxx_try_compile "$LINENO"; then :
  7002. ac_cv_header_stdc=yes
  7003. else
  7004. ac_cv_header_stdc=no
  7005. fi
  7006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7007. if test $ac_cv_header_stdc = yes; then
  7008. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7010. /* end confdefs.h. */
  7011. #include <string.h>
  7012. _ACEOF
  7013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7014. $EGREP "memchr" >/dev/null 2>&1; then :
  7015. else
  7016. ac_cv_header_stdc=no
  7017. fi
  7018. rm -f conftest*
  7019. fi
  7020. if test $ac_cv_header_stdc = yes; then
  7021. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7023. /* end confdefs.h. */
  7024. #include <stdlib.h>
  7025. _ACEOF
  7026. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7027. $EGREP "free" >/dev/null 2>&1; then :
  7028. else
  7029. ac_cv_header_stdc=no
  7030. fi
  7031. rm -f conftest*
  7032. fi
  7033. if test $ac_cv_header_stdc = yes; then
  7034. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7035. if test "$cross_compiling" = yes; then :
  7036. :
  7037. else
  7038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7039. /* end confdefs.h. */
  7040. #include <ctype.h>
  7041. #include <stdlib.h>
  7042. #if ((' ' & 0x0FF) == 0x020)
  7043. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7044. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7045. #else
  7046. # define ISLOWER(c) \
  7047. (('a' <= (c) && (c) <= 'i') \
  7048. || ('j' <= (c) && (c) <= 'r') \
  7049. || ('s' <= (c) && (c) <= 'z'))
  7050. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7051. #endif
  7052. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7053. int
  7054. main ()
  7055. {
  7056. int i;
  7057. for (i = 0; i < 256; i++)
  7058. if (XOR (islower (i), ISLOWER (i))
  7059. || toupper (i) != TOUPPER (i))
  7060. return 2;
  7061. return 0;
  7062. }
  7063. _ACEOF
  7064. if ac_fn_cxx_try_run "$LINENO"; then :
  7065. else
  7066. ac_cv_header_stdc=no
  7067. fi
  7068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7069. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7070. fi
  7071. fi
  7072. fi
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7074. $as_echo "$ac_cv_header_stdc" >&6; }
  7075. if test $ac_cv_header_stdc = yes; then
  7076. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7077. fi
  7078. case "$target" in
  7079. *mingw*)
  7080. for ac_header in windows.h \
  7081. winsock2.h \
  7082. ws2tcpip.h \
  7083. mmsystem.h
  7084. do :
  7085. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7086. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7087. # include <windows.h>
  7088. #endif
  7089. "
  7090. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7091. cat >>confdefs.h <<_ACEOF
  7092. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7093. _ACEOF
  7094. fi
  7095. done
  7096. ;;
  7097. esac
  7098. for ac_header in argz.h \
  7099. arpa/inet.h \
  7100. fcntl.h \
  7101. float.h \
  7102. inttypes.h \
  7103. io.h \
  7104. langinfo.h \
  7105. libintl.h \
  7106. limits.h \
  7107. locale.h \
  7108. malloc.h \
  7109. netdb.h \
  7110. netinet/in.h \
  7111. poll.h \
  7112. port.h \
  7113. stddef.h \
  7114. stdint.h \
  7115. stdio_ext.h \
  7116. stdlib.h \
  7117. string.h \
  7118. strings.h \
  7119. sys/ioctl.h \
  7120. sys/param.h \
  7121. sys/socket.h \
  7122. sys/time.h \
  7123. termios.h \
  7124. unistd.h \
  7125. utime.h \
  7126. wchar.h \
  7127. ifaddrs.h
  7128. do :
  7129. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7130. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7131. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7132. cat >>confdefs.h <<_ACEOF
  7133. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7134. _ACEOF
  7135. fi
  7136. done
  7137. # Checks for typedefs, structures, and compiler characteristics.
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7139. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7140. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7144. /* end confdefs.h. */
  7145. #include <stdbool.h>
  7146. #ifndef bool
  7147. "error: bool is not defined"
  7148. #endif
  7149. #ifndef false
  7150. "error: false is not defined"
  7151. #endif
  7152. #if false
  7153. "error: false is not 0"
  7154. #endif
  7155. #ifndef true
  7156. "error: true is not defined"
  7157. #endif
  7158. #if true != 1
  7159. "error: true is not 1"
  7160. #endif
  7161. #ifndef __bool_true_false_are_defined
  7162. "error: __bool_true_false_are_defined is not defined"
  7163. #endif
  7164. struct s { _Bool s: 1; _Bool t; } s;
  7165. char a[true == 1 ? 1 : -1];
  7166. char b[false == 0 ? 1 : -1];
  7167. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7168. char d[(bool) 0.5 == true ? 1 : -1];
  7169. bool e = &s;
  7170. char f[(_Bool) 0.0 == false ? 1 : -1];
  7171. char g[true];
  7172. char h[sizeof (_Bool)];
  7173. char i[sizeof s.t];
  7174. enum { j = false, k = true, l = false * true, m = true * 256 };
  7175. /* The following fails for
  7176. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7177. _Bool n[m];
  7178. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7179. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7180. # if defined __xlc__ || defined __GNUC__
  7181. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7182. reported by James Lemley on 2005-10-05; see
  7183. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7184. This test is not quite right, since xlc is allowed to
  7185. reject this program, as the initializer for xlcbug is
  7186. not one of the forms that C requires support for.
  7187. However, doing the test right would require a runtime
  7188. test, and that would make cross-compilation harder.
  7189. Let us hope that IBM fixes the xlc bug, and also adds
  7190. support for this kind of constant expression. In the
  7191. meantime, this test will reject xlc, which is OK, since
  7192. our stdbool.h substitute should suffice. We also test
  7193. this with GCC, where it should work, to detect more
  7194. quickly whether someone messes up the test in the
  7195. future. */
  7196. char digs[] = "0123456789";
  7197. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7198. # endif
  7199. /* Catch a bug in an HP-UX C compiler. See
  7200. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7201. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7202. */
  7203. _Bool q = true;
  7204. _Bool *pq = &q;
  7205. int
  7206. main ()
  7207. {
  7208. *pq |= q;
  7209. *pq |= ! q;
  7210. /* Refer to every declared value, to avoid compiler optimizations. */
  7211. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7212. + !m + !n + !o + !p + !q + !pq);
  7213. ;
  7214. return 0;
  7215. }
  7216. _ACEOF
  7217. if ac_fn_cxx_try_compile "$LINENO"; then :
  7218. ac_cv_header_stdbool_h=yes
  7219. else
  7220. ac_cv_header_stdbool_h=no
  7221. fi
  7222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7225. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7226. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7227. if test "x$ac_cv_type__Bool" = x""yes; then :
  7228. cat >>confdefs.h <<_ACEOF
  7229. #define HAVE__BOOL 1
  7230. _ACEOF
  7231. fi
  7232. if test $ac_cv_header_stdbool_h = yes; then
  7233. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7236. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7237. if test "${ac_cv_c_const+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7241. /* end confdefs.h. */
  7242. int
  7243. main ()
  7244. {
  7245. /* FIXME: Include the comments suggested by Paul. */
  7246. #ifndef __cplusplus
  7247. /* Ultrix mips cc rejects this. */
  7248. typedef int charset[2];
  7249. const charset cs;
  7250. /* SunOS 4.1.1 cc rejects this. */
  7251. char const *const *pcpcc;
  7252. char **ppc;
  7253. /* NEC SVR4.0.2 mips cc rejects this. */
  7254. struct point {int x, y;};
  7255. static struct point const zero = {0,0};
  7256. /* AIX XL C 1.02.0.0 rejects this.
  7257. It does not let you subtract one const X* pointer from another in
  7258. an arm of an if-expression whose if-part is not a constant
  7259. expression */
  7260. const char *g = "string";
  7261. pcpcc = &g + (g ? g-g : 0);
  7262. /* HPUX 7.0 cc rejects these. */
  7263. ++pcpcc;
  7264. ppc = (char**) pcpcc;
  7265. pcpcc = (char const *const *) ppc;
  7266. { /* SCO 3.2v4 cc rejects this. */
  7267. char *t;
  7268. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7269. *t++ = 0;
  7270. if (s) return 0;
  7271. }
  7272. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7273. int x[] = {25, 17};
  7274. const int *foo = &x[0];
  7275. ++foo;
  7276. }
  7277. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7278. typedef const int *iptr;
  7279. iptr p = 0;
  7280. ++p;
  7281. }
  7282. { /* AIX XL C 1.02.0.0 rejects this saying
  7283. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7284. struct s { int j; const int *ap[3]; };
  7285. struct s *b; b->j = 5;
  7286. }
  7287. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7288. const int foo = 10;
  7289. if (!foo) return 0;
  7290. }
  7291. return !cs[0] && !zero.x;
  7292. #endif
  7293. ;
  7294. return 0;
  7295. }
  7296. _ACEOF
  7297. if ac_fn_cxx_try_compile "$LINENO"; then :
  7298. ac_cv_c_const=yes
  7299. else
  7300. ac_cv_c_const=no
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7305. $as_echo "$ac_cv_c_const" >&6; }
  7306. if test $ac_cv_c_const = no; then
  7307. $as_echo "#define const /**/" >>confdefs.h
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7310. $as_echo_n "checking for inline... " >&6; }
  7311. if test "${ac_cv_c_inline+set}" = set; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. ac_cv_c_inline=no
  7315. for ac_kw in inline __inline__ __inline; do
  7316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7317. /* end confdefs.h. */
  7318. #ifndef __cplusplus
  7319. typedef int foo_t;
  7320. static $ac_kw foo_t static_foo () {return 0; }
  7321. $ac_kw foo_t foo () {return 0; }
  7322. #endif
  7323. _ACEOF
  7324. if ac_fn_cxx_try_compile "$LINENO"; then :
  7325. ac_cv_c_inline=$ac_kw
  7326. fi
  7327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7328. test "$ac_cv_c_inline" != no && break
  7329. done
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7332. $as_echo "$ac_cv_c_inline" >&6; }
  7333. case $ac_cv_c_inline in
  7334. inline | yes) ;;
  7335. *)
  7336. case $ac_cv_c_inline in
  7337. no) ac_val=;;
  7338. *) ac_val=$ac_cv_c_inline;;
  7339. esac
  7340. cat >>confdefs.h <<_ACEOF
  7341. #ifndef __cplusplus
  7342. #define inline $ac_val
  7343. #endif
  7344. _ACEOF
  7345. ;;
  7346. esac
  7347. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7348. case $ac_cv_c_int16_t in #(
  7349. no|yes) ;; #(
  7350. *)
  7351. cat >>confdefs.h <<_ACEOF
  7352. #define int16_t $ac_cv_c_int16_t
  7353. _ACEOF
  7354. ;;
  7355. esac
  7356. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7357. case $ac_cv_c_int32_t in #(
  7358. no|yes) ;; #(
  7359. *)
  7360. cat >>confdefs.h <<_ACEOF
  7361. #define int32_t $ac_cv_c_int32_t
  7362. _ACEOF
  7363. ;;
  7364. esac
  7365. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7366. case $ac_cv_c_int64_t in #(
  7367. no|yes) ;; #(
  7368. *)
  7369. cat >>confdefs.h <<_ACEOF
  7370. #define int64_t $ac_cv_c_int64_t
  7371. _ACEOF
  7372. ;;
  7373. esac
  7374. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7375. case $ac_cv_c_int8_t in #(
  7376. no|yes) ;; #(
  7377. *)
  7378. cat >>confdefs.h <<_ACEOF
  7379. #define int8_t $ac_cv_c_int8_t
  7380. _ACEOF
  7381. ;;
  7382. esac
  7383. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7384. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7385. else
  7386. cat >>confdefs.h <<_ACEOF
  7387. #define mode_t int
  7388. _ACEOF
  7389. fi
  7390. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7391. if test "x$ac_cv_type_off_t" = x""yes; then :
  7392. else
  7393. cat >>confdefs.h <<_ACEOF
  7394. #define off_t long int
  7395. _ACEOF
  7396. fi
  7397. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7398. if test "x$ac_cv_type_size_t" = x""yes; then :
  7399. else
  7400. cat >>confdefs.h <<_ACEOF
  7401. #define size_t unsigned int
  7402. _ACEOF
  7403. fi
  7404. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7405. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7406. else
  7407. cat >>confdefs.h <<_ACEOF
  7408. #define ssize_t int
  7409. _ACEOF
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7412. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7413. if test "${ac_cv_header_time+set}" = set; then :
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7417. /* end confdefs.h. */
  7418. #include <sys/types.h>
  7419. #include <sys/time.h>
  7420. #include <time.h>
  7421. int
  7422. main ()
  7423. {
  7424. if ((struct tm *) 0)
  7425. return 0;
  7426. ;
  7427. return 0;
  7428. }
  7429. _ACEOF
  7430. if ac_fn_cxx_try_compile "$LINENO"; then :
  7431. ac_cv_header_time=yes
  7432. else
  7433. ac_cv_header_time=no
  7434. fi
  7435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7436. fi
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7438. $as_echo "$ac_cv_header_time" >&6; }
  7439. if test $ac_cv_header_time = yes; then
  7440. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7443. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7444. if test "${ac_cv_struct_tm+set}" = set; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7448. /* end confdefs.h. */
  7449. #include <sys/types.h>
  7450. #include <time.h>
  7451. int
  7452. main ()
  7453. {
  7454. struct tm tm;
  7455. int *p = &tm.tm_sec;
  7456. return !p;
  7457. ;
  7458. return 0;
  7459. }
  7460. _ACEOF
  7461. if ac_fn_cxx_try_compile "$LINENO"; then :
  7462. ac_cv_struct_tm=time.h
  7463. else
  7464. ac_cv_struct_tm=sys/time.h
  7465. fi
  7466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7467. fi
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7469. $as_echo "$ac_cv_struct_tm" >&6; }
  7470. if test $ac_cv_struct_tm = sys/time.h; then
  7471. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7472. fi
  7473. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7474. case $ac_cv_c_uint16_t in #(
  7475. no|yes) ;; #(
  7476. *)
  7477. cat >>confdefs.h <<_ACEOF
  7478. #define uint16_t $ac_cv_c_uint16_t
  7479. _ACEOF
  7480. ;;
  7481. esac
  7482. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7483. case $ac_cv_c_uint32_t in #(
  7484. no|yes) ;; #(
  7485. *)
  7486. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7487. cat >>confdefs.h <<_ACEOF
  7488. #define uint32_t $ac_cv_c_uint32_t
  7489. _ACEOF
  7490. ;;
  7491. esac
  7492. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7493. case $ac_cv_c_uint64_t in #(
  7494. no|yes) ;; #(
  7495. *)
  7496. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7497. cat >>confdefs.h <<_ACEOF
  7498. #define uint64_t $ac_cv_c_uint64_t
  7499. _ACEOF
  7500. ;;
  7501. esac
  7502. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7503. case $ac_cv_c_uint8_t in #(
  7504. no|yes) ;; #(
  7505. *)
  7506. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7507. cat >>confdefs.h <<_ACEOF
  7508. #define uint8_t $ac_cv_c_uint8_t
  7509. _ACEOF
  7510. ;;
  7511. esac
  7512. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7513. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7514. else
  7515. cat >>confdefs.h <<_ACEOF
  7516. #define pid_t int
  7517. _ACEOF
  7518. fi
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7520. $as_echo_n "checking for working volatile... " >&6; }
  7521. if test "${ac_cv_c_volatile+set}" = set; then :
  7522. $as_echo_n "(cached) " >&6
  7523. else
  7524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7525. /* end confdefs.h. */
  7526. int
  7527. main ()
  7528. {
  7529. volatile int x;
  7530. int * volatile y = (int *) 0;
  7531. return !x && !y;
  7532. ;
  7533. return 0;
  7534. }
  7535. _ACEOF
  7536. if ac_fn_cxx_try_compile "$LINENO"; then :
  7537. ac_cv_c_volatile=yes
  7538. else
  7539. ac_cv_c_volatile=no
  7540. fi
  7541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7542. fi
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7544. $as_echo "$ac_cv_c_volatile" >&6; }
  7545. if test $ac_cv_c_volatile = no; then
  7546. $as_echo "#define volatile /**/" >>confdefs.h
  7547. fi
  7548. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7549. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7550. cat >>confdefs.h <<_ACEOF
  7551. #define HAVE_PTRDIFF_T 1
  7552. _ACEOF
  7553. fi
  7554. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7555. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7556. cat >>confdefs.h <<_ACEOF
  7557. #define HAVE_STRUCT_TIMESPEC 1
  7558. _ACEOF
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7561. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7562. if test "${ac_cv_c_bigendian+set}" = set; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. ac_cv_c_bigendian=unknown
  7566. # See if we're dealing with a universal compiler.
  7567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7568. /* end confdefs.h. */
  7569. #ifndef __APPLE_CC__
  7570. not a universal capable compiler
  7571. #endif
  7572. typedef int dummy;
  7573. _ACEOF
  7574. if ac_fn_cxx_try_compile "$LINENO"; then :
  7575. # Check for potential -arch flags. It is not universal unless
  7576. # there are at least two -arch flags with different values.
  7577. ac_arch=
  7578. ac_prev=
  7579. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7580. if test -n "$ac_prev"; then
  7581. case $ac_word in
  7582. i?86 | x86_64 | ppc | ppc64)
  7583. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7584. ac_arch=$ac_word
  7585. else
  7586. ac_cv_c_bigendian=universal
  7587. break
  7588. fi
  7589. ;;
  7590. esac
  7591. ac_prev=
  7592. elif test "x$ac_word" = "x-arch"; then
  7593. ac_prev=arch
  7594. fi
  7595. done
  7596. fi
  7597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7598. if test $ac_cv_c_bigendian = unknown; then
  7599. # See if sys/param.h defines the BYTE_ORDER macro.
  7600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7601. /* end confdefs.h. */
  7602. #include <sys/types.h>
  7603. #include <sys/param.h>
  7604. int
  7605. main ()
  7606. {
  7607. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7608. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7609. && LITTLE_ENDIAN)
  7610. bogus endian macros
  7611. #endif
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. if ac_fn_cxx_try_compile "$LINENO"; then :
  7617. # It does; now see whether it defined to BIG_ENDIAN or not.
  7618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7619. /* end confdefs.h. */
  7620. #include <sys/types.h>
  7621. #include <sys/param.h>
  7622. int
  7623. main ()
  7624. {
  7625. #if BYTE_ORDER != BIG_ENDIAN
  7626. not big endian
  7627. #endif
  7628. ;
  7629. return 0;
  7630. }
  7631. _ACEOF
  7632. if ac_fn_cxx_try_compile "$LINENO"; then :
  7633. ac_cv_c_bigendian=yes
  7634. else
  7635. ac_cv_c_bigendian=no
  7636. fi
  7637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7638. fi
  7639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. fi
  7641. if test $ac_cv_c_bigendian = unknown; then
  7642. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. #include <limits.h>
  7646. int
  7647. main ()
  7648. {
  7649. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7650. bogus endian macros
  7651. #endif
  7652. ;
  7653. return 0;
  7654. }
  7655. _ACEOF
  7656. if ac_fn_cxx_try_compile "$LINENO"; then :
  7657. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #include <limits.h>
  7661. int
  7662. main ()
  7663. {
  7664. #ifndef _BIG_ENDIAN
  7665. not big endian
  7666. #endif
  7667. ;
  7668. return 0;
  7669. }
  7670. _ACEOF
  7671. if ac_fn_cxx_try_compile "$LINENO"; then :
  7672. ac_cv_c_bigendian=yes
  7673. else
  7674. ac_cv_c_bigendian=no
  7675. fi
  7676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7677. fi
  7678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. if test $ac_cv_c_bigendian = unknown; then
  7681. # Compile a test program.
  7682. if test "$cross_compiling" = yes; then :
  7683. # Try to guess by grepping values from an object file.
  7684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7685. /* end confdefs.h. */
  7686. short int ascii_mm[] =
  7687. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7688. short int ascii_ii[] =
  7689. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7690. int use_ascii (int i) {
  7691. return ascii_mm[i] + ascii_ii[i];
  7692. }
  7693. short int ebcdic_ii[] =
  7694. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7695. short int ebcdic_mm[] =
  7696. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7697. int use_ebcdic (int i) {
  7698. return ebcdic_mm[i] + ebcdic_ii[i];
  7699. }
  7700. extern int foo;
  7701. int
  7702. main ()
  7703. {
  7704. return use_ascii (foo) == use_ebcdic (foo);
  7705. ;
  7706. return 0;
  7707. }
  7708. _ACEOF
  7709. if ac_fn_cxx_try_compile "$LINENO"; then :
  7710. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7711. ac_cv_c_bigendian=yes
  7712. fi
  7713. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7714. if test "$ac_cv_c_bigendian" = unknown; then
  7715. ac_cv_c_bigendian=no
  7716. else
  7717. # finding both strings is unlikely to happen, but who knows?
  7718. ac_cv_c_bigendian=unknown
  7719. fi
  7720. fi
  7721. fi
  7722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7723. else
  7724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7725. /* end confdefs.h. */
  7726. $ac_includes_default
  7727. int
  7728. main ()
  7729. {
  7730. /* Are we little or big endian? From Harbison&Steele. */
  7731. union
  7732. {
  7733. long int l;
  7734. char c[sizeof (long int)];
  7735. } u;
  7736. u.l = 1;
  7737. return u.c[sizeof (long int) - 1] == 1;
  7738. ;
  7739. return 0;
  7740. }
  7741. _ACEOF
  7742. if ac_fn_cxx_try_run "$LINENO"; then :
  7743. ac_cv_c_bigendian=no
  7744. else
  7745. ac_cv_c_bigendian=yes
  7746. fi
  7747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7749. fi
  7750. fi
  7751. fi
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7753. $as_echo "$ac_cv_c_bigendian" >&6; }
  7754. case $ac_cv_c_bigendian in #(
  7755. yes)
  7756. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7757. ;; #(
  7758. no)
  7759. ;; #(
  7760. universal)
  7761. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7762. ;; #(
  7763. *)
  7764. as_fn_error $? "unknown endianness
  7765. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7766. esac
  7767. # Check whether --enable-largefile was given.
  7768. if test "${enable_largefile+set}" = set; then :
  7769. enableval=$enable_largefile;
  7770. fi
  7771. if test "$enable_largefile" != no; then
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7773. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7774. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7775. $as_echo_n "(cached) " >&6
  7776. else
  7777. ac_cv_sys_largefile_CC=no
  7778. if test "$GCC" != yes; then
  7779. ac_save_CC=$CC
  7780. while :; do
  7781. # IRIX 6.2 and later do not support large files by default,
  7782. # so use the C compiler's -n32 option if that helps.
  7783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7784. /* end confdefs.h. */
  7785. #include <sys/types.h>
  7786. /* Check that off_t can represent 2**63 - 1 correctly.
  7787. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7788. since some C++ compilers masquerading as C compilers
  7789. incorrectly reject 9223372036854775807. */
  7790. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7791. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7792. && LARGE_OFF_T % 2147483647 == 1)
  7793. ? 1 : -1];
  7794. int
  7795. main ()
  7796. {
  7797. ;
  7798. return 0;
  7799. }
  7800. _ACEOF
  7801. if ac_fn_cxx_try_compile "$LINENO"; then :
  7802. break
  7803. fi
  7804. rm -f core conftest.err conftest.$ac_objext
  7805. CC="$CC -n32"
  7806. if ac_fn_cxx_try_compile "$LINENO"; then :
  7807. ac_cv_sys_largefile_CC=' -n32'; break
  7808. fi
  7809. rm -f core conftest.err conftest.$ac_objext
  7810. break
  7811. done
  7812. CC=$ac_save_CC
  7813. rm -f conftest.$ac_ext
  7814. fi
  7815. fi
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7817. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7818. if test "$ac_cv_sys_largefile_CC" != no; then
  7819. CC=$CC$ac_cv_sys_largefile_CC
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7822. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7823. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. while :; do
  7827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7828. /* end confdefs.h. */
  7829. #include <sys/types.h>
  7830. /* Check that off_t can represent 2**63 - 1 correctly.
  7831. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7832. since some C++ compilers masquerading as C compilers
  7833. incorrectly reject 9223372036854775807. */
  7834. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7835. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7836. && LARGE_OFF_T % 2147483647 == 1)
  7837. ? 1 : -1];
  7838. int
  7839. main ()
  7840. {
  7841. ;
  7842. return 0;
  7843. }
  7844. _ACEOF
  7845. if ac_fn_cxx_try_compile "$LINENO"; then :
  7846. ac_cv_sys_file_offset_bits=no; break
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7850. /* end confdefs.h. */
  7851. #define _FILE_OFFSET_BITS 64
  7852. #include <sys/types.h>
  7853. /* Check that off_t can represent 2**63 - 1 correctly.
  7854. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7855. since some C++ compilers masquerading as C compilers
  7856. incorrectly reject 9223372036854775807. */
  7857. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7858. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7859. && LARGE_OFF_T % 2147483647 == 1)
  7860. ? 1 : -1];
  7861. int
  7862. main ()
  7863. {
  7864. ;
  7865. return 0;
  7866. }
  7867. _ACEOF
  7868. if ac_fn_cxx_try_compile "$LINENO"; then :
  7869. ac_cv_sys_file_offset_bits=64; break
  7870. fi
  7871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7872. ac_cv_sys_file_offset_bits=unknown
  7873. break
  7874. done
  7875. fi
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7877. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7878. case $ac_cv_sys_file_offset_bits in #(
  7879. no | unknown) ;;
  7880. *)
  7881. cat >>confdefs.h <<_ACEOF
  7882. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7883. _ACEOF
  7884. ;;
  7885. esac
  7886. rm -rf conftest*
  7887. if test $ac_cv_sys_file_offset_bits = unknown; then
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7889. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7890. if test "${ac_cv_sys_large_files+set}" = set; then :
  7891. $as_echo_n "(cached) " >&6
  7892. else
  7893. while :; do
  7894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7895. /* end confdefs.h. */
  7896. #include <sys/types.h>
  7897. /* Check that off_t can represent 2**63 - 1 correctly.
  7898. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7899. since some C++ compilers masquerading as C compilers
  7900. incorrectly reject 9223372036854775807. */
  7901. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7902. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7903. && LARGE_OFF_T % 2147483647 == 1)
  7904. ? 1 : -1];
  7905. int
  7906. main ()
  7907. {
  7908. ;
  7909. return 0;
  7910. }
  7911. _ACEOF
  7912. if ac_fn_cxx_try_compile "$LINENO"; then :
  7913. ac_cv_sys_large_files=no; break
  7914. fi
  7915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7917. /* end confdefs.h. */
  7918. #define _LARGE_FILES 1
  7919. #include <sys/types.h>
  7920. /* Check that off_t can represent 2**63 - 1 correctly.
  7921. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7922. since some C++ compilers masquerading as C compilers
  7923. incorrectly reject 9223372036854775807. */
  7924. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7925. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7926. && LARGE_OFF_T % 2147483647 == 1)
  7927. ? 1 : -1];
  7928. int
  7929. main ()
  7930. {
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. if ac_fn_cxx_try_compile "$LINENO"; then :
  7936. ac_cv_sys_large_files=1; break
  7937. fi
  7938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7939. ac_cv_sys_large_files=unknown
  7940. break
  7941. done
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7944. $as_echo "$ac_cv_sys_large_files" >&6; }
  7945. case $ac_cv_sys_large_files in #(
  7946. no | unknown) ;;
  7947. *)
  7948. cat >>confdefs.h <<_ACEOF
  7949. #define _LARGE_FILES $ac_cv_sys_large_files
  7950. _ACEOF
  7951. ;;
  7952. esac
  7953. rm -rf conftest*
  7954. fi
  7955. fi
  7956. # Checks for library functions.
  7957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7958. $as_echo_n "checking whether NLS is requested... " >&6; }
  7959. # Check whether --enable-nls was given.
  7960. if test "${enable_nls+set}" = set; then :
  7961. enableval=$enable_nls; USE_NLS=$enableval
  7962. else
  7963. USE_NLS=yes
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7966. $as_echo "$USE_NLS" >&6; }
  7967. GETTEXT_MACRO_VERSION=0.17
  7968. # Prepare PATH_SEPARATOR.
  7969. # The user is always right.
  7970. if test "${PATH_SEPARATOR+set}" != set; then
  7971. echo "#! /bin/sh" >conf$$.sh
  7972. echo "exit 0" >>conf$$.sh
  7973. chmod +x conf$$.sh
  7974. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7975. PATH_SEPARATOR=';'
  7976. else
  7977. PATH_SEPARATOR=:
  7978. fi
  7979. rm -f conf$$.sh
  7980. fi
  7981. # Find out how to test for executable files. Don't use a zero-byte file,
  7982. # as systems may use methods other than mode bits to determine executability.
  7983. cat >conf$$.file <<_ASEOF
  7984. #! /bin/sh
  7985. exit 0
  7986. _ASEOF
  7987. chmod +x conf$$.file
  7988. if test -x conf$$.file >/dev/null 2>&1; then
  7989. ac_executable_p="test -x"
  7990. else
  7991. ac_executable_p="test -f"
  7992. fi
  7993. rm -f conf$$.file
  7994. # Extract the first word of "msgfmt", so it can be a program name with args.
  7995. set dummy msgfmt; ac_word=$2
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7997. $as_echo_n "checking for $ac_word... " >&6; }
  7998. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. case "$MSGFMT" in
  8002. [\\/]* | ?:[\\/]*)
  8003. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8004. ;;
  8005. *)
  8006. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8007. for ac_dir in $PATH; do
  8008. IFS="$ac_save_IFS"
  8009. test -z "$ac_dir" && ac_dir=.
  8010. for ac_exec_ext in '' $ac_executable_extensions; do
  8011. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8012. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8013. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8014. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8015. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8016. break 2
  8017. fi
  8018. fi
  8019. done
  8020. done
  8021. IFS="$ac_save_IFS"
  8022. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8023. ;;
  8024. esac
  8025. fi
  8026. MSGFMT="$ac_cv_path_MSGFMT"
  8027. if test "$MSGFMT" != ":"; then
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8029. $as_echo "$MSGFMT" >&6; }
  8030. else
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8032. $as_echo "no" >&6; }
  8033. fi
  8034. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8035. set dummy gmsgfmt; ac_word=$2
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8037. $as_echo_n "checking for $ac_word... " >&6; }
  8038. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8039. $as_echo_n "(cached) " >&6
  8040. else
  8041. case $GMSGFMT in
  8042. [\\/]* | ?:[\\/]*)
  8043. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8044. ;;
  8045. *)
  8046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8047. for as_dir in $PATH
  8048. do
  8049. IFS=$as_save_IFS
  8050. test -z "$as_dir" && as_dir=.
  8051. for ac_exec_ext in '' $ac_executable_extensions; do
  8052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8053. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8055. break 2
  8056. fi
  8057. done
  8058. done
  8059. IFS=$as_save_IFS
  8060. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8061. ;;
  8062. esac
  8063. fi
  8064. GMSGFMT=$ac_cv_path_GMSGFMT
  8065. if test -n "$GMSGFMT"; then
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8067. $as_echo "$GMSGFMT" >&6; }
  8068. else
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8070. $as_echo "no" >&6; }
  8071. fi
  8072. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8073. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8074. *) MSGFMT_015=$MSGFMT ;;
  8075. esac
  8076. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8077. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8078. *) GMSGFMT_015=$GMSGFMT ;;
  8079. esac
  8080. # Prepare PATH_SEPARATOR.
  8081. # The user is always right.
  8082. if test "${PATH_SEPARATOR+set}" != set; then
  8083. echo "#! /bin/sh" >conf$$.sh
  8084. echo "exit 0" >>conf$$.sh
  8085. chmod +x conf$$.sh
  8086. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8087. PATH_SEPARATOR=';'
  8088. else
  8089. PATH_SEPARATOR=:
  8090. fi
  8091. rm -f conf$$.sh
  8092. fi
  8093. # Find out how to test for executable files. Don't use a zero-byte file,
  8094. # as systems may use methods other than mode bits to determine executability.
  8095. cat >conf$$.file <<_ASEOF
  8096. #! /bin/sh
  8097. exit 0
  8098. _ASEOF
  8099. chmod +x conf$$.file
  8100. if test -x conf$$.file >/dev/null 2>&1; then
  8101. ac_executable_p="test -x"
  8102. else
  8103. ac_executable_p="test -f"
  8104. fi
  8105. rm -f conf$$.file
  8106. # Extract the first word of "xgettext", so it can be a program name with args.
  8107. set dummy xgettext; ac_word=$2
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8109. $as_echo_n "checking for $ac_word... " >&6; }
  8110. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8111. $as_echo_n "(cached) " >&6
  8112. else
  8113. case "$XGETTEXT" in
  8114. [\\/]* | ?:[\\/]*)
  8115. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8116. ;;
  8117. *)
  8118. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8119. for ac_dir in $PATH; do
  8120. IFS="$ac_save_IFS"
  8121. test -z "$ac_dir" && ac_dir=.
  8122. for ac_exec_ext in '' $ac_executable_extensions; do
  8123. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8124. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8125. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8126. (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
  8127. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8128. break 2
  8129. fi
  8130. fi
  8131. done
  8132. done
  8133. IFS="$ac_save_IFS"
  8134. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8135. ;;
  8136. esac
  8137. fi
  8138. XGETTEXT="$ac_cv_path_XGETTEXT"
  8139. if test "$XGETTEXT" != ":"; then
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8141. $as_echo "$XGETTEXT" >&6; }
  8142. else
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8144. $as_echo "no" >&6; }
  8145. fi
  8146. rm -f messages.po
  8147. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8148. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8149. *) XGETTEXT_015=$XGETTEXT ;;
  8150. esac
  8151. # Prepare PATH_SEPARATOR.
  8152. # The user is always right.
  8153. if test "${PATH_SEPARATOR+set}" != set; then
  8154. echo "#! /bin/sh" >conf$$.sh
  8155. echo "exit 0" >>conf$$.sh
  8156. chmod +x conf$$.sh
  8157. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8158. PATH_SEPARATOR=';'
  8159. else
  8160. PATH_SEPARATOR=:
  8161. fi
  8162. rm -f conf$$.sh
  8163. fi
  8164. # Find out how to test for executable files. Don't use a zero-byte file,
  8165. # as systems may use methods other than mode bits to determine executability.
  8166. cat >conf$$.file <<_ASEOF
  8167. #! /bin/sh
  8168. exit 0
  8169. _ASEOF
  8170. chmod +x conf$$.file
  8171. if test -x conf$$.file >/dev/null 2>&1; then
  8172. ac_executable_p="test -x"
  8173. else
  8174. ac_executable_p="test -f"
  8175. fi
  8176. rm -f conf$$.file
  8177. # Extract the first word of "msgmerge", so it can be a program name with args.
  8178. set dummy msgmerge; ac_word=$2
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8180. $as_echo_n "checking for $ac_word... " >&6; }
  8181. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8182. $as_echo_n "(cached) " >&6
  8183. else
  8184. case "$MSGMERGE" in
  8185. [\\/]* | ?:[\\/]*)
  8186. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8187. ;;
  8188. *)
  8189. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8190. for ac_dir in $PATH; do
  8191. IFS="$ac_save_IFS"
  8192. test -z "$ac_dir" && ac_dir=.
  8193. for ac_exec_ext in '' $ac_executable_extensions; do
  8194. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8195. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8196. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8197. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8198. break 2
  8199. fi
  8200. fi
  8201. done
  8202. done
  8203. IFS="$ac_save_IFS"
  8204. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8205. ;;
  8206. esac
  8207. fi
  8208. MSGMERGE="$ac_cv_path_MSGMERGE"
  8209. if test "$MSGMERGE" != ":"; then
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8211. $as_echo "$MSGMERGE" >&6; }
  8212. else
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8214. $as_echo "no" >&6; }
  8215. fi
  8216. test -n "$localedir" || localedir='${datadir}/locale'
  8217. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8218. ac_config_commands="$ac_config_commands po-directories"
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8220. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8221. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8225. /* end confdefs.h. */
  8226. #include <features.h>
  8227. #ifdef __GNU_LIBRARY__
  8228. #if (__GLIBC__ >= 2)
  8229. Lucky GNU user
  8230. #endif
  8231. #endif
  8232. _ACEOF
  8233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8234. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8235. ac_cv_gnu_library_2=yes
  8236. else
  8237. ac_cv_gnu_library_2=no
  8238. fi
  8239. rm -f conftest*
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8242. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8243. GLIBC2="$ac_cv_gnu_library_2"
  8244. CFLAG_VISIBILITY=
  8245. HAVE_VISIBILITY=0
  8246. if test -n "$GCC"; then
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8248. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8249. if test "${gl_cv_cc_visibility+set}" = set; then :
  8250. $as_echo_n "(cached) " >&6
  8251. else
  8252. gl_save_CFLAGS="$CFLAGS"
  8253. CFLAGS="$CFLAGS -fvisibility=hidden"
  8254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8255. /* end confdefs.h. */
  8256. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8257. extern __attribute__((__visibility__("default"))) int exportedvar;
  8258. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8259. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8260. int
  8261. main ()
  8262. {
  8263. ;
  8264. return 0;
  8265. }
  8266. _ACEOF
  8267. if ac_fn_cxx_try_compile "$LINENO"; then :
  8268. gl_cv_cc_visibility=yes
  8269. else
  8270. gl_cv_cc_visibility=no
  8271. fi
  8272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8273. CFLAGS="$gl_save_CFLAGS"
  8274. fi
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8276. $as_echo "$gl_cv_cc_visibility" >&6; }
  8277. if test $gl_cv_cc_visibility = yes; then
  8278. CFLAG_VISIBILITY="-fvisibility=hidden"
  8279. HAVE_VISIBILITY=1
  8280. fi
  8281. fi
  8282. cat >>confdefs.h <<_ACEOF
  8283. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8284. _ACEOF
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8286. $as_echo_n "checking for stdint.h... " >&6; }
  8287. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8288. $as_echo_n "(cached) " >&6
  8289. else
  8290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8291. /* end confdefs.h. */
  8292. #include <sys/types.h>
  8293. #include <stdint.h>
  8294. int
  8295. main ()
  8296. {
  8297. uintmax_t i = (uintmax_t) -1; return !i;
  8298. ;
  8299. return 0;
  8300. }
  8301. _ACEOF
  8302. if ac_fn_cxx_try_compile "$LINENO"; then :
  8303. gl_cv_header_stdint_h=yes
  8304. else
  8305. gl_cv_header_stdint_h=no
  8306. fi
  8307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8308. fi
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8310. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8311. if test $gl_cv_header_stdint_h = yes; then
  8312. cat >>confdefs.h <<_ACEOF
  8313. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8314. _ACEOF
  8315. fi
  8316. for ac_header in $ac_header_list
  8317. do :
  8318. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8319. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8320. "
  8321. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8322. cat >>confdefs.h <<_ACEOF
  8323. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8324. _ACEOF
  8325. fi
  8326. done
  8327. for ac_func in getpagesize
  8328. do :
  8329. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8330. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8331. cat >>confdefs.h <<_ACEOF
  8332. #define HAVE_GETPAGESIZE 1
  8333. _ACEOF
  8334. fi
  8335. done
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8337. $as_echo_n "checking for working mmap... " >&6; }
  8338. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8339. $as_echo_n "(cached) " >&6
  8340. else
  8341. if test "$cross_compiling" = yes; then :
  8342. ac_cv_func_mmap_fixed_mapped=no
  8343. else
  8344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8345. /* end confdefs.h. */
  8346. $ac_includes_default
  8347. /* malloc might have been renamed as rpl_malloc. */
  8348. #undef malloc
  8349. /* Thanks to Mike Haertel and Jim Avera for this test.
  8350. Here is a matrix of mmap possibilities:
  8351. mmap private not fixed
  8352. mmap private fixed at somewhere currently unmapped
  8353. mmap private fixed at somewhere already mapped
  8354. mmap shared not fixed
  8355. mmap shared fixed at somewhere currently unmapped
  8356. mmap shared fixed at somewhere already mapped
  8357. For private mappings, we should verify that changes cannot be read()
  8358. back from the file, nor mmap's back from the file at a different
  8359. address. (There have been systems where private was not correctly
  8360. implemented like the infamous i386 svr4.0, and systems where the
  8361. VM page cache was not coherent with the file system buffer cache
  8362. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8363. For shared mappings, we should conversely verify that changes get
  8364. propagated back to all the places they're supposed to be.
  8365. Grep wants private fixed already mapped.
  8366. The main things grep needs to know about mmap are:
  8367. * does it exist and is it safe to write into the mmap'd area
  8368. * how to use it (BSD variants) */
  8369. #include <fcntl.h>
  8370. #include <sys/mman.h>
  8371. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8372. char *malloc ();
  8373. #endif
  8374. /* This mess was copied from the GNU getpagesize.h. */
  8375. #ifndef HAVE_GETPAGESIZE
  8376. # ifdef _SC_PAGESIZE
  8377. # define getpagesize() sysconf(_SC_PAGESIZE)
  8378. # else /* no _SC_PAGESIZE */
  8379. # ifdef HAVE_SYS_PARAM_H
  8380. # include <sys/param.h>
  8381. # ifdef EXEC_PAGESIZE
  8382. # define getpagesize() EXEC_PAGESIZE
  8383. # else /* no EXEC_PAGESIZE */
  8384. # ifdef NBPG
  8385. # define getpagesize() NBPG * CLSIZE
  8386. # ifndef CLSIZE
  8387. # define CLSIZE 1
  8388. # endif /* no CLSIZE */
  8389. # else /* no NBPG */
  8390. # ifdef NBPC
  8391. # define getpagesize() NBPC
  8392. # else /* no NBPC */
  8393. # ifdef PAGESIZE
  8394. # define getpagesize() PAGESIZE
  8395. # endif /* PAGESIZE */
  8396. # endif /* no NBPC */
  8397. # endif /* no NBPG */
  8398. # endif /* no EXEC_PAGESIZE */
  8399. # else /* no HAVE_SYS_PARAM_H */
  8400. # define getpagesize() 8192 /* punt totally */
  8401. # endif /* no HAVE_SYS_PARAM_H */
  8402. # endif /* no _SC_PAGESIZE */
  8403. #endif /* no HAVE_GETPAGESIZE */
  8404. int
  8405. main ()
  8406. {
  8407. char *data, *data2, *data3;
  8408. const char *cdata2;
  8409. int i, pagesize;
  8410. int fd, fd2;
  8411. pagesize = getpagesize ();
  8412. /* First, make a file with some known garbage in it. */
  8413. data = (char *) malloc (pagesize);
  8414. if (!data)
  8415. return 1;
  8416. for (i = 0; i < pagesize; ++i)
  8417. *(data + i) = rand ();
  8418. umask (0);
  8419. fd = creat ("conftest.mmap", 0600);
  8420. if (fd < 0)
  8421. return 2;
  8422. if (write (fd, data, pagesize) != pagesize)
  8423. return 3;
  8424. close (fd);
  8425. /* Next, check that the tail of a page is zero-filled. File must have
  8426. non-zero length, otherwise we risk SIGBUS for entire page. */
  8427. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8428. if (fd2 < 0)
  8429. return 4;
  8430. cdata2 = "";
  8431. if (write (fd2, cdata2, 1) != 1)
  8432. return 5;
  8433. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8434. if (data2 == MAP_FAILED)
  8435. return 6;
  8436. for (i = 0; i < pagesize; ++i)
  8437. if (*(data2 + i))
  8438. return 7;
  8439. close (fd2);
  8440. if (munmap (data2, pagesize))
  8441. return 8;
  8442. /* Next, try to mmap the file at a fixed address which already has
  8443. something else allocated at it. If we can, also make sure that
  8444. we see the same garbage. */
  8445. fd = open ("conftest.mmap", O_RDWR);
  8446. if (fd < 0)
  8447. return 9;
  8448. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8449. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8450. return 10;
  8451. for (i = 0; i < pagesize; ++i)
  8452. if (*(data + i) != *(data2 + i))
  8453. return 11;
  8454. /* Finally, make sure that changes to the mapped area do not
  8455. percolate back to the file as seen by read(). (This is a bug on
  8456. some variants of i386 svr4.0.) */
  8457. for (i = 0; i < pagesize; ++i)
  8458. *(data2 + i) = *(data2 + i) + 1;
  8459. data3 = (char *) malloc (pagesize);
  8460. if (!data3)
  8461. return 12;
  8462. if (read (fd, data3, pagesize) != pagesize)
  8463. return 13;
  8464. for (i = 0; i < pagesize; ++i)
  8465. if (*(data + i) != *(data3 + i))
  8466. return 14;
  8467. close (fd);
  8468. return 0;
  8469. }
  8470. _ACEOF
  8471. if ac_fn_cxx_try_run "$LINENO"; then :
  8472. ac_cv_func_mmap_fixed_mapped=yes
  8473. else
  8474. ac_cv_func_mmap_fixed_mapped=no
  8475. fi
  8476. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8477. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8478. fi
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8481. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8482. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8483. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8484. fi
  8485. rm -f conftest.mmap conftest.txt
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8487. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8488. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8489. $as_echo_n "(cached) " >&6
  8490. else
  8491. gt_cv_int_divbyzero_sigfpe=
  8492. case "$host_os" in
  8493. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8494. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8495. # compiling. If we were to perform the real test, 1 Crash Report
  8496. # dialog window would pop up.
  8497. case "$host_cpu" in
  8498. i[34567]86 | x86_64)
  8499. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8500. esac
  8501. ;;
  8502. esac
  8503. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8504. if test "$cross_compiling" = yes; then :
  8505. # Guess based on the CPU.
  8506. case "$host_cpu" in
  8507. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8508. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8509. *)
  8510. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8511. esac
  8512. else
  8513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8514. /* end confdefs.h. */
  8515. #include <stdlib.h>
  8516. #include <signal.h>
  8517. static void
  8518. sigfpe_handler (int sig)
  8519. {
  8520. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8521. exit (sig != SIGFPE);
  8522. }
  8523. int x = 1;
  8524. int y = 0;
  8525. int z;
  8526. int nan;
  8527. int main ()
  8528. {
  8529. signal (SIGFPE, sigfpe_handler);
  8530. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8531. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8532. signal (SIGTRAP, sigfpe_handler);
  8533. #endif
  8534. /* Linux/SPARC yields signal SIGILL. */
  8535. #if defined (__sparc__) && defined (__linux__)
  8536. signal (SIGILL, sigfpe_handler);
  8537. #endif
  8538. z = x / y;
  8539. nan = y / y;
  8540. exit (1);
  8541. }
  8542. _ACEOF
  8543. if ac_fn_cxx_try_run "$LINENO"; then :
  8544. gt_cv_int_divbyzero_sigfpe=yes
  8545. else
  8546. gt_cv_int_divbyzero_sigfpe=no
  8547. fi
  8548. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8549. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8550. fi
  8551. fi
  8552. fi
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8554. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8555. case "$gt_cv_int_divbyzero_sigfpe" in
  8556. *yes) value=1;;
  8557. *) value=0;;
  8558. esac
  8559. cat >>confdefs.h <<_ACEOF
  8560. #define INTDIV0_RAISES_SIGFPE $value
  8561. _ACEOF
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8563. $as_echo_n "checking for inttypes.h... " >&6; }
  8564. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8568. /* end confdefs.h. */
  8569. #include <sys/types.h>
  8570. #include <inttypes.h>
  8571. int
  8572. main ()
  8573. {
  8574. uintmax_t i = (uintmax_t) -1; return !i;
  8575. ;
  8576. return 0;
  8577. }
  8578. _ACEOF
  8579. if ac_fn_cxx_try_compile "$LINENO"; then :
  8580. gl_cv_header_inttypes_h=yes
  8581. else
  8582. gl_cv_header_inttypes_h=no
  8583. fi
  8584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8585. fi
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8587. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8588. if test $gl_cv_header_inttypes_h = yes; then
  8589. cat >>confdefs.h <<_ACEOF
  8590. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8591. _ACEOF
  8592. fi
  8593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8594. $as_echo_n "checking for unsigned long long int... " >&6; }
  8595. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8596. $as_echo_n "(cached) " >&6
  8597. else
  8598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8599. /* end confdefs.h. */
  8600. /* Test preprocessor. */
  8601. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8602. error in preprocessor;
  8603. #endif
  8604. #if ! (18446744073709551615ULL <= -1ull)
  8605. error in preprocessor;
  8606. #endif
  8607. /* Test literals. */
  8608. long long int ll = 9223372036854775807ll;
  8609. long long int nll = -9223372036854775807LL;
  8610. unsigned long long int ull = 18446744073709551615ULL;
  8611. /* Test constant expressions. */
  8612. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8613. ? 1 : -1)];
  8614. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8615. ? 1 : -1)];
  8616. int i = 63;
  8617. int
  8618. main ()
  8619. {
  8620. /* Test availability of runtime routines for shift and division. */
  8621. long long int llmax = 9223372036854775807ll;
  8622. unsigned long long int ullmax = 18446744073709551615ull;
  8623. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8624. | (llmax / ll) | (llmax % ll)
  8625. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8626. | (ullmax / ull) | (ullmax % ull));
  8627. ;
  8628. return 0;
  8629. }
  8630. _ACEOF
  8631. if ac_fn_cxx_try_link "$LINENO"; then :
  8632. ac_cv_type_unsigned_long_long_int=yes
  8633. else
  8634. ac_cv_type_unsigned_long_long_int=no
  8635. fi
  8636. rm -f core conftest.err conftest.$ac_objext \
  8637. conftest$ac_exeext conftest.$ac_ext
  8638. fi
  8639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8640. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8641. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8642. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8643. fi
  8644. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8645. test $ac_cv_type_unsigned_long_long_int = yes \
  8646. && ac_type='unsigned long long' \
  8647. || ac_type='unsigned long'
  8648. cat >>confdefs.h <<_ACEOF
  8649. #define uintmax_t $ac_type
  8650. _ACEOF
  8651. else
  8652. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8653. fi
  8654. for ac_header in inttypes.h
  8655. do :
  8656. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8657. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8658. cat >>confdefs.h <<_ACEOF
  8659. #define HAVE_INTTYPES_H 1
  8660. _ACEOF
  8661. fi
  8662. done
  8663. if test $ac_cv_header_inttypes_h = yes; then
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8665. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8666. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8667. $as_echo_n "(cached) " >&6
  8668. else
  8669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8670. /* end confdefs.h. */
  8671. #include <inttypes.h>
  8672. #ifdef PRId32
  8673. char *p = PRId32;
  8674. #endif
  8675. int
  8676. main ()
  8677. {
  8678. ;
  8679. return 0;
  8680. }
  8681. _ACEOF
  8682. if ac_fn_cxx_try_compile "$LINENO"; then :
  8683. gt_cv_inttypes_pri_broken=no
  8684. else
  8685. gt_cv_inttypes_pri_broken=yes
  8686. fi
  8687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8688. fi
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8690. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8691. fi
  8692. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8693. cat >>confdefs.h <<_ACEOF
  8694. #define PRI_MACROS_BROKEN 1
  8695. _ACEOF
  8696. PRI_MACROS_BROKEN=1
  8697. else
  8698. PRI_MACROS_BROKEN=0
  8699. fi
  8700. # Check whether --enable-threads was given.
  8701. if test "${enable_threads+set}" = set; then :
  8702. enableval=$enable_threads; gl_use_threads=$enableval
  8703. else
  8704. case "$host_os" in
  8705. osf*) gl_use_threads=no ;;
  8706. *) gl_use_threads=yes ;;
  8707. esac
  8708. fi
  8709. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8710. # For using <pthread.h>:
  8711. case "$host_os" in
  8712. osf*)
  8713. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8714. # groks <pthread.h>. cc also understands the flag -pthread, but
  8715. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8716. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8717. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8718. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8719. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8720. ;;
  8721. esac
  8722. # Some systems optimize for single-threaded programs by default, and
  8723. # need special flags to disable these optimizations. For example, the
  8724. # definition of 'errno' in <errno.h>.
  8725. case "$host_os" in
  8726. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8727. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8728. esac
  8729. fi
  8730. if test "X$prefix" = "XNONE"; then
  8731. acl_final_prefix="$ac_default_prefix"
  8732. else
  8733. acl_final_prefix="$prefix"
  8734. fi
  8735. if test "X$exec_prefix" = "XNONE"; then
  8736. acl_final_exec_prefix='${prefix}'
  8737. else
  8738. acl_final_exec_prefix="$exec_prefix"
  8739. fi
  8740. acl_save_prefix="$prefix"
  8741. prefix="$acl_final_prefix"
  8742. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8743. prefix="$acl_save_prefix"
  8744. # Check whether --with-gnu-ld was given.
  8745. if test "${with_gnu_ld+set}" = set; then :
  8746. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8747. else
  8748. with_gnu_ld=no
  8749. fi
  8750. # Prepare PATH_SEPARATOR.
  8751. # The user is always right.
  8752. if test "${PATH_SEPARATOR+set}" != set; then
  8753. echo "#! /bin/sh" >conf$$.sh
  8754. echo "exit 0" >>conf$$.sh
  8755. chmod +x conf$$.sh
  8756. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8757. PATH_SEPARATOR=';'
  8758. else
  8759. PATH_SEPARATOR=:
  8760. fi
  8761. rm -f conf$$.sh
  8762. fi
  8763. ac_prog=ld
  8764. if test "$GCC" = yes; then
  8765. # Check if gcc -print-prog-name=ld gives a path.
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8767. $as_echo_n "checking for ld used by GCC... " >&6; }
  8768. case $host in
  8769. *-*-mingw*)
  8770. # gcc leaves a trailing carriage return which upsets mingw
  8771. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8772. *)
  8773. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8774. esac
  8775. case $ac_prog in
  8776. # Accept absolute paths.
  8777. [\\/]* | [A-Za-z]:[\\/]*)
  8778. re_direlt='/[^/][^/]*/\.\./'
  8779. # Canonicalize the path of ld
  8780. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8781. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8782. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8783. done
  8784. test -z "$LD" && LD="$ac_prog"
  8785. ;;
  8786. "")
  8787. # If it fails, then pretend we aren't using GCC.
  8788. ac_prog=ld
  8789. ;;
  8790. *)
  8791. # If it is relative, then search for the first ld in PATH.
  8792. with_gnu_ld=unknown
  8793. ;;
  8794. esac
  8795. elif test "$with_gnu_ld" = yes; then
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8797. $as_echo_n "checking for GNU ld... " >&6; }
  8798. else
  8799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8800. $as_echo_n "checking for non-GNU ld... " >&6; }
  8801. fi
  8802. if test "${acl_cv_path_LD+set}" = set; then :
  8803. $as_echo_n "(cached) " >&6
  8804. else
  8805. if test -z "$LD"; then
  8806. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8807. for ac_dir in $PATH; do
  8808. test -z "$ac_dir" && ac_dir=.
  8809. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8810. acl_cv_path_LD="$ac_dir/$ac_prog"
  8811. # Check to see if the program is GNU ld. I'd rather use --version,
  8812. # but apparently some GNU ld's only accept -v.
  8813. # Break only if it was the GNU/non-GNU ld that we prefer.
  8814. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8815. *GNU* | *'with BFD'*)
  8816. test "$with_gnu_ld" != no && break ;;
  8817. *)
  8818. test "$with_gnu_ld" != yes && break ;;
  8819. esac
  8820. fi
  8821. done
  8822. IFS="$ac_save_ifs"
  8823. else
  8824. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8825. fi
  8826. fi
  8827. LD="$acl_cv_path_LD"
  8828. if test -n "$LD"; then
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8830. $as_echo "$LD" >&6; }
  8831. else
  8832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8833. $as_echo "no" >&6; }
  8834. fi
  8835. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8837. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8838. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8839. $as_echo_n "(cached) " >&6
  8840. else
  8841. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8842. case `$LD -v 2>&1 </dev/null` in
  8843. *GNU* | *'with BFD'*)
  8844. acl_cv_prog_gnu_ld=yes ;;
  8845. *)
  8846. acl_cv_prog_gnu_ld=no ;;
  8847. esac
  8848. fi
  8849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8850. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8851. with_gnu_ld=$acl_cv_prog_gnu_ld
  8852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8853. $as_echo_n "checking for shared library run path origin... " >&6; }
  8854. if test "${acl_cv_rpath+set}" = set; then :
  8855. $as_echo_n "(cached) " >&6
  8856. else
  8857. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8858. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8859. . ./conftest.sh
  8860. rm -f ./conftest.sh
  8861. acl_cv_rpath=done
  8862. fi
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8864. $as_echo "$acl_cv_rpath" >&6; }
  8865. wl="$acl_cv_wl"
  8866. acl_libext="$acl_cv_libext"
  8867. acl_shlibext="$acl_cv_shlibext"
  8868. acl_libname_spec="$acl_cv_libname_spec"
  8869. acl_library_names_spec="$acl_cv_library_names_spec"
  8870. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8871. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8872. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8873. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8874. # Check whether --enable-rpath was given.
  8875. if test "${enable_rpath+set}" = set; then :
  8876. enableval=$enable_rpath; :
  8877. else
  8878. enable_rpath=yes
  8879. fi
  8880. acl_libdirstem=lib
  8881. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8882. if test -n "$searchpath"; then
  8883. acl_save_IFS="${IFS= }"; IFS=":"
  8884. for searchdir in $searchpath; do
  8885. if test -d "$searchdir"; then
  8886. case "$searchdir" in
  8887. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8888. *) searchdir=`cd "$searchdir" && pwd`
  8889. case "$searchdir" in
  8890. */lib64 ) acl_libdirstem=lib64 ;;
  8891. esac ;;
  8892. esac
  8893. fi
  8894. done
  8895. IFS="$acl_save_IFS"
  8896. fi
  8897. gl_threads_api=none
  8898. LIBTHREAD=
  8899. LTLIBTHREAD=
  8900. LIBMULTITHREAD=
  8901. LTLIBMULTITHREAD=
  8902. if test "$gl_use_threads" != no; then
  8903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8904. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8905. gl_have_weak=no
  8906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8907. /* end confdefs.h. */
  8908. extern void xyzzy ();
  8909. #pragma weak xyzzy
  8910. int
  8911. main ()
  8912. {
  8913. xyzzy();
  8914. ;
  8915. return 0;
  8916. }
  8917. _ACEOF
  8918. if ac_fn_cxx_try_link "$LINENO"; then :
  8919. gl_have_weak=yes
  8920. fi
  8921. rm -f core conftest.err conftest.$ac_objext \
  8922. conftest$ac_exeext conftest.$ac_ext
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8924. $as_echo "$gl_have_weak" >&6; }
  8925. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8926. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8927. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8928. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8929. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8930. gl_have_pthread_h=yes
  8931. else
  8932. gl_have_pthread_h=no
  8933. fi
  8934. if test "$gl_have_pthread_h" = yes; then
  8935. # Other possible tests:
  8936. # -lpthreads (FSU threads, PCthreads)
  8937. # -lgthreads
  8938. gl_have_pthread=
  8939. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8940. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8941. # the second one only in libpthread, and lock.c needs it.
  8942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8943. /* end confdefs.h. */
  8944. #include <pthread.h>
  8945. int
  8946. main ()
  8947. {
  8948. pthread_mutex_lock((pthread_mutex_t*)0);
  8949. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8950. ;
  8951. return 0;
  8952. }
  8953. _ACEOF
  8954. if ac_fn_cxx_try_link "$LINENO"; then :
  8955. gl_have_pthread=yes
  8956. fi
  8957. rm -f core conftest.err conftest.$ac_objext \
  8958. conftest$ac_exeext conftest.$ac_ext
  8959. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8960. # since it is defined as a macro on OSF/1.)
  8961. if test -n "$gl_have_pthread"; then
  8962. # The program links fine without libpthread. But it may actually
  8963. # need to link with libpthread in order to create multiple threads.
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8965. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8966. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8967. $as_echo_n "(cached) " >&6
  8968. else
  8969. ac_check_lib_save_LIBS=$LIBS
  8970. LIBS="-lpthread $LIBS"
  8971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8972. /* end confdefs.h. */
  8973. /* Override any GCC internal prototype to avoid an error.
  8974. Use char because int might match the return type of a GCC
  8975. builtin and then its argument prototype would still apply. */
  8976. #ifdef __cplusplus
  8977. extern "C"
  8978. #endif
  8979. char pthread_kill ();
  8980. int
  8981. main ()
  8982. {
  8983. return pthread_kill ();
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. if ac_fn_cxx_try_link "$LINENO"; then :
  8989. ac_cv_lib_pthread_pthread_kill=yes
  8990. else
  8991. ac_cv_lib_pthread_pthread_kill=no
  8992. fi
  8993. rm -f core conftest.err conftest.$ac_objext \
  8994. conftest$ac_exeext conftest.$ac_ext
  8995. LIBS=$ac_check_lib_save_LIBS
  8996. fi
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8998. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8999. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9000. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9001. # On Solaris and HP-UX, most pthread functions exist also in libc.
  9002. # Therefore pthread_in_use() needs to actually try to create a
  9003. # thread: pthread_create from libc will fail, whereas
  9004. # pthread_create will actually create a thread.
  9005. case "$host_os" in
  9006. solaris* | hpux*)
  9007. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9008. esac
  9009. fi
  9010. else
  9011. # Some library is needed. Try libpthread and libc_r.
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9013. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9014. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9015. $as_echo_n "(cached) " >&6
  9016. else
  9017. ac_check_lib_save_LIBS=$LIBS
  9018. LIBS="-lpthread $LIBS"
  9019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9020. /* end confdefs.h. */
  9021. /* Override any GCC internal prototype to avoid an error.
  9022. Use char because int might match the return type of a GCC
  9023. builtin and then its argument prototype would still apply. */
  9024. #ifdef __cplusplus
  9025. extern "C"
  9026. #endif
  9027. char pthread_kill ();
  9028. int
  9029. main ()
  9030. {
  9031. return pthread_kill ();
  9032. ;
  9033. return 0;
  9034. }
  9035. _ACEOF
  9036. if ac_fn_cxx_try_link "$LINENO"; then :
  9037. ac_cv_lib_pthread_pthread_kill=yes
  9038. else
  9039. ac_cv_lib_pthread_pthread_kill=no
  9040. fi
  9041. rm -f core conftest.err conftest.$ac_objext \
  9042. conftest$ac_exeext conftest.$ac_ext
  9043. LIBS=$ac_check_lib_save_LIBS
  9044. fi
  9045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9046. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9047. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9048. gl_have_pthread=yes
  9049. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9050. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9051. fi
  9052. if test -z "$gl_have_pthread"; then
  9053. # For FreeBSD 4.
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9055. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9056. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9057. $as_echo_n "(cached) " >&6
  9058. else
  9059. ac_check_lib_save_LIBS=$LIBS
  9060. LIBS="-lc_r $LIBS"
  9061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9062. /* end confdefs.h. */
  9063. /* Override any GCC internal prototype to avoid an error.
  9064. Use char because int might match the return type of a GCC
  9065. builtin and then its argument prototype would still apply. */
  9066. #ifdef __cplusplus
  9067. extern "C"
  9068. #endif
  9069. char pthread_kill ();
  9070. int
  9071. main ()
  9072. {
  9073. return pthread_kill ();
  9074. ;
  9075. return 0;
  9076. }
  9077. _ACEOF
  9078. if ac_fn_cxx_try_link "$LINENO"; then :
  9079. ac_cv_lib_c_r_pthread_kill=yes
  9080. else
  9081. ac_cv_lib_c_r_pthread_kill=no
  9082. fi
  9083. rm -f core conftest.err conftest.$ac_objext \
  9084. conftest$ac_exeext conftest.$ac_ext
  9085. LIBS=$ac_check_lib_save_LIBS
  9086. fi
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9088. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9089. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9090. gl_have_pthread=yes
  9091. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9092. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9093. fi
  9094. fi
  9095. fi
  9096. if test -n "$gl_have_pthread"; then
  9097. gl_threads_api=posix
  9098. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9099. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9100. if test $gl_have_weak = yes; then
  9101. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9102. LIBTHREAD=
  9103. LTLIBTHREAD=
  9104. fi
  9105. fi
  9106. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9107. # pthread_rwlock_* functions.
  9108. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9109. "
  9110. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9111. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9112. fi
  9113. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9115. /* end confdefs.h. */
  9116. #include <pthread.h>
  9117. int
  9118. main ()
  9119. {
  9120. #if __FreeBSD__ == 4
  9121. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9122. #else
  9123. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9124. return !x;
  9125. #endif
  9126. ;
  9127. return 0;
  9128. }
  9129. _ACEOF
  9130. if ac_fn_cxx_try_compile "$LINENO"; then :
  9131. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9132. fi
  9133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9134. fi
  9135. fi
  9136. fi
  9137. if test -z "$gl_have_pthread"; then
  9138. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9139. gl_have_solaristhread=
  9140. gl_save_LIBS="$LIBS"
  9141. LIBS="$LIBS -lthread"
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. #include <thread.h>
  9145. #include <synch.h>
  9146. int
  9147. main ()
  9148. {
  9149. thr_self();
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_cxx_try_link "$LINENO"; then :
  9155. gl_have_solaristhread=yes
  9156. fi
  9157. rm -f core conftest.err conftest.$ac_objext \
  9158. conftest$ac_exeext conftest.$ac_ext
  9159. LIBS="$gl_save_LIBS"
  9160. if test -n "$gl_have_solaristhread"; then
  9161. gl_threads_api=solaris
  9162. LIBTHREAD=-lthread
  9163. LTLIBTHREAD=-lthread
  9164. LIBMULTITHREAD="$LIBTHREAD"
  9165. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9166. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9167. if test $gl_have_weak = yes; then
  9168. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9169. LIBTHREAD=
  9170. LTLIBTHREAD=
  9171. fi
  9172. fi
  9173. fi
  9174. fi
  9175. if test "$gl_use_threads" = pth; then
  9176. gl_save_CPPFLAGS="$CPPFLAGS"
  9177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9178. $as_echo_n "checking how to link with libpth... " >&6; }
  9179. if test "${ac_cv_libpth_libs+set}" = set; then :
  9180. $as_echo_n "(cached) " >&6
  9181. else
  9182. use_additional=yes
  9183. acl_save_prefix="$prefix"
  9184. prefix="$acl_final_prefix"
  9185. acl_save_exec_prefix="$exec_prefix"
  9186. exec_prefix="$acl_final_exec_prefix"
  9187. eval additional_includedir=\"$includedir\"
  9188. eval additional_libdir=\"$libdir\"
  9189. exec_prefix="$acl_save_exec_prefix"
  9190. prefix="$acl_save_prefix"
  9191. # Check whether --with-libpth-prefix was given.
  9192. if test "${with_libpth_prefix+set}" = set; then :
  9193. withval=$with_libpth_prefix;
  9194. if test "X$withval" = "Xno"; then
  9195. use_additional=no
  9196. else
  9197. if test "X$withval" = "X"; then
  9198. acl_save_prefix="$prefix"
  9199. prefix="$acl_final_prefix"
  9200. acl_save_exec_prefix="$exec_prefix"
  9201. exec_prefix="$acl_final_exec_prefix"
  9202. eval additional_includedir=\"$includedir\"
  9203. eval additional_libdir=\"$libdir\"
  9204. exec_prefix="$acl_save_exec_prefix"
  9205. prefix="$acl_save_prefix"
  9206. else
  9207. additional_includedir="$withval/include"
  9208. additional_libdir="$withval/$acl_libdirstem"
  9209. fi
  9210. fi
  9211. fi
  9212. LIBPTH=
  9213. LTLIBPTH=
  9214. INCPTH=
  9215. LIBPTH_PREFIX=
  9216. rpathdirs=
  9217. ltrpathdirs=
  9218. names_already_handled=
  9219. names_next_round='pth '
  9220. while test -n "$names_next_round"; do
  9221. names_this_round="$names_next_round"
  9222. names_next_round=
  9223. for name in $names_this_round; do
  9224. already_handled=
  9225. for n in $names_already_handled; do
  9226. if test "$n" = "$name"; then
  9227. already_handled=yes
  9228. break
  9229. fi
  9230. done
  9231. if test -z "$already_handled"; then
  9232. names_already_handled="$names_already_handled $name"
  9233. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9234. eval value=\"\$HAVE_LIB$uppername\"
  9235. if test -n "$value"; then
  9236. if test "$value" = yes; then
  9237. eval value=\"\$LIB$uppername\"
  9238. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9239. eval value=\"\$LTLIB$uppername\"
  9240. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9241. else
  9242. :
  9243. fi
  9244. else
  9245. found_dir=
  9246. found_la=
  9247. found_so=
  9248. found_a=
  9249. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9250. if test -n "$acl_shlibext"; then
  9251. shrext=".$acl_shlibext" # typically: shrext=.so
  9252. else
  9253. shrext=
  9254. fi
  9255. if test $use_additional = yes; then
  9256. dir="$additional_libdir"
  9257. if test -n "$acl_shlibext"; then
  9258. if test -f "$dir/$libname$shrext"; then
  9259. found_dir="$dir"
  9260. found_so="$dir/$libname$shrext"
  9261. else
  9262. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9263. ver=`(cd "$dir" && \
  9264. for f in "$libname$shrext".*; do echo "$f"; done \
  9265. | sed -e "s,^$libname$shrext\\\\.,," \
  9266. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9267. | sed 1q ) 2>/dev/null`
  9268. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9269. found_dir="$dir"
  9270. found_so="$dir/$libname$shrext.$ver"
  9271. fi
  9272. else
  9273. eval library_names=\"$acl_library_names_spec\"
  9274. for f in $library_names; do
  9275. if test -f "$dir/$f"; then
  9276. found_dir="$dir"
  9277. found_so="$dir/$f"
  9278. break
  9279. fi
  9280. done
  9281. fi
  9282. fi
  9283. fi
  9284. if test "X$found_dir" = "X"; then
  9285. if test -f "$dir/$libname.$acl_libext"; then
  9286. found_dir="$dir"
  9287. found_a="$dir/$libname.$acl_libext"
  9288. fi
  9289. fi
  9290. if test "X$found_dir" != "X"; then
  9291. if test -f "$dir/$libname.la"; then
  9292. found_la="$dir/$libname.la"
  9293. fi
  9294. fi
  9295. fi
  9296. if test "X$found_dir" = "X"; then
  9297. for x in $LDFLAGS $LTLIBPTH; do
  9298. acl_save_prefix="$prefix"
  9299. prefix="$acl_final_prefix"
  9300. acl_save_exec_prefix="$exec_prefix"
  9301. exec_prefix="$acl_final_exec_prefix"
  9302. eval x=\"$x\"
  9303. exec_prefix="$acl_save_exec_prefix"
  9304. prefix="$acl_save_prefix"
  9305. case "$x" in
  9306. -L*)
  9307. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9308. if test -n "$acl_shlibext"; then
  9309. if test -f "$dir/$libname$shrext"; then
  9310. found_dir="$dir"
  9311. found_so="$dir/$libname$shrext"
  9312. else
  9313. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9314. ver=`(cd "$dir" && \
  9315. for f in "$libname$shrext".*; do echo "$f"; done \
  9316. | sed -e "s,^$libname$shrext\\\\.,," \
  9317. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9318. | sed 1q ) 2>/dev/null`
  9319. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9320. found_dir="$dir"
  9321. found_so="$dir/$libname$shrext.$ver"
  9322. fi
  9323. else
  9324. eval library_names=\"$acl_library_names_spec\"
  9325. for f in $library_names; do
  9326. if test -f "$dir/$f"; then
  9327. found_dir="$dir"
  9328. found_so="$dir/$f"
  9329. break
  9330. fi
  9331. done
  9332. fi
  9333. fi
  9334. fi
  9335. if test "X$found_dir" = "X"; then
  9336. if test -f "$dir/$libname.$acl_libext"; then
  9337. found_dir="$dir"
  9338. found_a="$dir/$libname.$acl_libext"
  9339. fi
  9340. fi
  9341. if test "X$found_dir" != "X"; then
  9342. if test -f "$dir/$libname.la"; then
  9343. found_la="$dir/$libname.la"
  9344. fi
  9345. fi
  9346. ;;
  9347. esac
  9348. if test "X$found_dir" != "X"; then
  9349. break
  9350. fi
  9351. done
  9352. fi
  9353. if test "X$found_dir" != "X"; then
  9354. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9355. if test "X$found_so" != "X"; then
  9356. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9357. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9358. else
  9359. haveit=
  9360. for x in $ltrpathdirs; do
  9361. if test "X$x" = "X$found_dir"; then
  9362. haveit=yes
  9363. break
  9364. fi
  9365. done
  9366. if test -z "$haveit"; then
  9367. ltrpathdirs="$ltrpathdirs $found_dir"
  9368. fi
  9369. if test "$acl_hardcode_direct" = yes; then
  9370. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9371. else
  9372. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9373. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9374. haveit=
  9375. for x in $rpathdirs; do
  9376. if test "X$x" = "X$found_dir"; then
  9377. haveit=yes
  9378. break
  9379. fi
  9380. done
  9381. if test -z "$haveit"; then
  9382. rpathdirs="$rpathdirs $found_dir"
  9383. fi
  9384. else
  9385. haveit=
  9386. for x in $LDFLAGS $LIBPTH; do
  9387. acl_save_prefix="$prefix"
  9388. prefix="$acl_final_prefix"
  9389. acl_save_exec_prefix="$exec_prefix"
  9390. exec_prefix="$acl_final_exec_prefix"
  9391. eval x=\"$x\"
  9392. exec_prefix="$acl_save_exec_prefix"
  9393. prefix="$acl_save_prefix"
  9394. if test "X$x" = "X-L$found_dir"; then
  9395. haveit=yes
  9396. break
  9397. fi
  9398. done
  9399. if test -z "$haveit"; then
  9400. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9401. fi
  9402. if test "$acl_hardcode_minus_L" != no; then
  9403. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9404. else
  9405. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9406. fi
  9407. fi
  9408. fi
  9409. fi
  9410. else
  9411. if test "X$found_a" != "X"; then
  9412. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9413. else
  9414. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9415. fi
  9416. fi
  9417. additional_includedir=
  9418. case "$found_dir" in
  9419. */$acl_libdirstem | */$acl_libdirstem/)
  9420. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9421. LIBPTH_PREFIX="$basedir"
  9422. additional_includedir="$basedir/include"
  9423. ;;
  9424. esac
  9425. if test "X$additional_includedir" != "X"; then
  9426. if test "X$additional_includedir" != "X/usr/include"; then
  9427. haveit=
  9428. if test "X$additional_includedir" = "X/usr/local/include"; then
  9429. if test -n "$GCC"; then
  9430. case $host_os in
  9431. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9432. esac
  9433. fi
  9434. fi
  9435. if test -z "$haveit"; then
  9436. for x in $CPPFLAGS $INCPTH; do
  9437. acl_save_prefix="$prefix"
  9438. prefix="$acl_final_prefix"
  9439. acl_save_exec_prefix="$exec_prefix"
  9440. exec_prefix="$acl_final_exec_prefix"
  9441. eval x=\"$x\"
  9442. exec_prefix="$acl_save_exec_prefix"
  9443. prefix="$acl_save_prefix"
  9444. if test "X$x" = "X-I$additional_includedir"; then
  9445. haveit=yes
  9446. break
  9447. fi
  9448. done
  9449. if test -z "$haveit"; then
  9450. if test -d "$additional_includedir"; then
  9451. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9452. fi
  9453. fi
  9454. fi
  9455. fi
  9456. fi
  9457. if test -n "$found_la"; then
  9458. save_libdir="$libdir"
  9459. case "$found_la" in
  9460. */* | *\\*) . "$found_la" ;;
  9461. *) . "./$found_la" ;;
  9462. esac
  9463. libdir="$save_libdir"
  9464. for dep in $dependency_libs; do
  9465. case "$dep" in
  9466. -L*)
  9467. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9468. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9469. haveit=
  9470. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9471. if test -n "$GCC"; then
  9472. case $host_os in
  9473. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9474. esac
  9475. fi
  9476. fi
  9477. if test -z "$haveit"; then
  9478. haveit=
  9479. for x in $LDFLAGS $LIBPTH; do
  9480. acl_save_prefix="$prefix"
  9481. prefix="$acl_final_prefix"
  9482. acl_save_exec_prefix="$exec_prefix"
  9483. exec_prefix="$acl_final_exec_prefix"
  9484. eval x=\"$x\"
  9485. exec_prefix="$acl_save_exec_prefix"
  9486. prefix="$acl_save_prefix"
  9487. if test "X$x" = "X-L$additional_libdir"; then
  9488. haveit=yes
  9489. break
  9490. fi
  9491. done
  9492. if test -z "$haveit"; then
  9493. if test -d "$additional_libdir"; then
  9494. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9495. fi
  9496. fi
  9497. haveit=
  9498. for x in $LDFLAGS $LTLIBPTH; do
  9499. acl_save_prefix="$prefix"
  9500. prefix="$acl_final_prefix"
  9501. acl_save_exec_prefix="$exec_prefix"
  9502. exec_prefix="$acl_final_exec_prefix"
  9503. eval x=\"$x\"
  9504. exec_prefix="$acl_save_exec_prefix"
  9505. prefix="$acl_save_prefix"
  9506. if test "X$x" = "X-L$additional_libdir"; then
  9507. haveit=yes
  9508. break
  9509. fi
  9510. done
  9511. if test -z "$haveit"; then
  9512. if test -d "$additional_libdir"; then
  9513. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9514. fi
  9515. fi
  9516. fi
  9517. fi
  9518. ;;
  9519. -R*)
  9520. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9521. if test "$enable_rpath" != no; then
  9522. haveit=
  9523. for x in $rpathdirs; do
  9524. if test "X$x" = "X$dir"; then
  9525. haveit=yes
  9526. break
  9527. fi
  9528. done
  9529. if test -z "$haveit"; then
  9530. rpathdirs="$rpathdirs $dir"
  9531. fi
  9532. haveit=
  9533. for x in $ltrpathdirs; do
  9534. if test "X$x" = "X$dir"; then
  9535. haveit=yes
  9536. break
  9537. fi
  9538. done
  9539. if test -z "$haveit"; then
  9540. ltrpathdirs="$ltrpathdirs $dir"
  9541. fi
  9542. fi
  9543. ;;
  9544. -l*)
  9545. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9546. ;;
  9547. *.la)
  9548. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9549. ;;
  9550. *)
  9551. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9552. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9553. ;;
  9554. esac
  9555. done
  9556. fi
  9557. else
  9558. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9559. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9560. fi
  9561. fi
  9562. fi
  9563. done
  9564. done
  9565. if test "X$rpathdirs" != "X"; then
  9566. if test -n "$acl_hardcode_libdir_separator"; then
  9567. alldirs=
  9568. for found_dir in $rpathdirs; do
  9569. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9570. done
  9571. acl_save_libdir="$libdir"
  9572. libdir="$alldirs"
  9573. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9574. libdir="$acl_save_libdir"
  9575. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9576. else
  9577. for found_dir in $rpathdirs; do
  9578. acl_save_libdir="$libdir"
  9579. libdir="$found_dir"
  9580. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9581. libdir="$acl_save_libdir"
  9582. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9583. done
  9584. fi
  9585. fi
  9586. if test "X$ltrpathdirs" != "X"; then
  9587. for found_dir in $ltrpathdirs; do
  9588. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9589. done
  9590. fi
  9591. ac_cv_libpth_libs="$LIBPTH"
  9592. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9593. ac_cv_libpth_cppflags="$INCPTH"
  9594. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9597. $as_echo "$ac_cv_libpth_libs" >&6; }
  9598. LIBPTH="$ac_cv_libpth_libs"
  9599. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9600. INCPTH="$ac_cv_libpth_cppflags"
  9601. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9602. for element in $INCPTH; do
  9603. haveit=
  9604. for x in $CPPFLAGS; do
  9605. acl_save_prefix="$prefix"
  9606. prefix="$acl_final_prefix"
  9607. acl_save_exec_prefix="$exec_prefix"
  9608. exec_prefix="$acl_final_exec_prefix"
  9609. eval x=\"$x\"
  9610. exec_prefix="$acl_save_exec_prefix"
  9611. prefix="$acl_save_prefix"
  9612. if test "X$x" = "X$element"; then
  9613. haveit=yes
  9614. break
  9615. fi
  9616. done
  9617. if test -z "$haveit"; then
  9618. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9619. fi
  9620. done
  9621. HAVE_LIBPTH=yes
  9622. gl_have_pth=
  9623. gl_save_LIBS="$LIBS"
  9624. LIBS="$LIBS -lpth"
  9625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9626. /* end confdefs.h. */
  9627. #include <pth.h>
  9628. int
  9629. main ()
  9630. {
  9631. pth_self();
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. if ac_fn_cxx_try_link "$LINENO"; then :
  9637. gl_have_pth=yes
  9638. fi
  9639. rm -f core conftest.err conftest.$ac_objext \
  9640. conftest$ac_exeext conftest.$ac_ext
  9641. LIBS="$gl_save_LIBS"
  9642. if test -n "$gl_have_pth"; then
  9643. gl_threads_api=pth
  9644. LIBTHREAD="$LIBPTH"
  9645. LTLIBTHREAD="$LTLIBPTH"
  9646. LIBMULTITHREAD="$LIBTHREAD"
  9647. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9648. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9649. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9650. if test $gl_have_weak = yes; then
  9651. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9652. LIBTHREAD=
  9653. LTLIBTHREAD=
  9654. fi
  9655. fi
  9656. else
  9657. CPPFLAGS="$gl_save_CPPFLAGS"
  9658. fi
  9659. fi
  9660. if test -z "$gl_have_pthread"; then
  9661. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9662. if { case "$host_os" in
  9663. mingw*) true;;
  9664. *) false;;
  9665. esac
  9666. }; then
  9667. gl_threads_api=win32
  9668. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9669. fi
  9670. fi
  9671. fi
  9672. fi
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9674. $as_echo_n "checking for multithread API to use... " >&6; }
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9676. $as_echo "$gl_threads_api" >&6; }
  9677. use_additional=yes
  9678. acl_save_prefix="$prefix"
  9679. prefix="$acl_final_prefix"
  9680. acl_save_exec_prefix="$exec_prefix"
  9681. exec_prefix="$acl_final_exec_prefix"
  9682. eval additional_includedir=\"$includedir\"
  9683. eval additional_libdir=\"$libdir\"
  9684. exec_prefix="$acl_save_exec_prefix"
  9685. prefix="$acl_save_prefix"
  9686. # Check whether --with-libiconv-prefix was given.
  9687. if test "${with_libiconv_prefix+set}" = set; then :
  9688. withval=$with_libiconv_prefix;
  9689. if test "X$withval" = "Xno"; then
  9690. use_additional=no
  9691. else
  9692. if test "X$withval" = "X"; then
  9693. acl_save_prefix="$prefix"
  9694. prefix="$acl_final_prefix"
  9695. acl_save_exec_prefix="$exec_prefix"
  9696. exec_prefix="$acl_final_exec_prefix"
  9697. eval additional_includedir=\"$includedir\"
  9698. eval additional_libdir=\"$libdir\"
  9699. exec_prefix="$acl_save_exec_prefix"
  9700. prefix="$acl_save_prefix"
  9701. else
  9702. additional_includedir="$withval/include"
  9703. additional_libdir="$withval/$acl_libdirstem"
  9704. fi
  9705. fi
  9706. fi
  9707. LIBICONV=
  9708. LTLIBICONV=
  9709. INCICONV=
  9710. LIBICONV_PREFIX=
  9711. rpathdirs=
  9712. ltrpathdirs=
  9713. names_already_handled=
  9714. names_next_round='iconv '
  9715. while test -n "$names_next_round"; do
  9716. names_this_round="$names_next_round"
  9717. names_next_round=
  9718. for name in $names_this_round; do
  9719. already_handled=
  9720. for n in $names_already_handled; do
  9721. if test "$n" = "$name"; then
  9722. already_handled=yes
  9723. break
  9724. fi
  9725. done
  9726. if test -z "$already_handled"; then
  9727. names_already_handled="$names_already_handled $name"
  9728. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9729. eval value=\"\$HAVE_LIB$uppername\"
  9730. if test -n "$value"; then
  9731. if test "$value" = yes; then
  9732. eval value=\"\$LIB$uppername\"
  9733. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9734. eval value=\"\$LTLIB$uppername\"
  9735. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9736. else
  9737. :
  9738. fi
  9739. else
  9740. found_dir=
  9741. found_la=
  9742. found_so=
  9743. found_a=
  9744. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9745. if test -n "$acl_shlibext"; then
  9746. shrext=".$acl_shlibext" # typically: shrext=.so
  9747. else
  9748. shrext=
  9749. fi
  9750. if test $use_additional = yes; then
  9751. dir="$additional_libdir"
  9752. if test -n "$acl_shlibext"; then
  9753. if test -f "$dir/$libname$shrext"; then
  9754. found_dir="$dir"
  9755. found_so="$dir/$libname$shrext"
  9756. else
  9757. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9758. ver=`(cd "$dir" && \
  9759. for f in "$libname$shrext".*; do echo "$f"; done \
  9760. | sed -e "s,^$libname$shrext\\\\.,," \
  9761. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9762. | sed 1q ) 2>/dev/null`
  9763. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9764. found_dir="$dir"
  9765. found_so="$dir/$libname$shrext.$ver"
  9766. fi
  9767. else
  9768. eval library_names=\"$acl_library_names_spec\"
  9769. for f in $library_names; do
  9770. if test -f "$dir/$f"; then
  9771. found_dir="$dir"
  9772. found_so="$dir/$f"
  9773. break
  9774. fi
  9775. done
  9776. fi
  9777. fi
  9778. fi
  9779. if test "X$found_dir" = "X"; then
  9780. if test -f "$dir/$libname.$acl_libext"; then
  9781. found_dir="$dir"
  9782. found_a="$dir/$libname.$acl_libext"
  9783. fi
  9784. fi
  9785. if test "X$found_dir" != "X"; then
  9786. if test -f "$dir/$libname.la"; then
  9787. found_la="$dir/$libname.la"
  9788. fi
  9789. fi
  9790. fi
  9791. if test "X$found_dir" = "X"; then
  9792. for x in $LDFLAGS $LTLIBICONV; do
  9793. acl_save_prefix="$prefix"
  9794. prefix="$acl_final_prefix"
  9795. acl_save_exec_prefix="$exec_prefix"
  9796. exec_prefix="$acl_final_exec_prefix"
  9797. eval x=\"$x\"
  9798. exec_prefix="$acl_save_exec_prefix"
  9799. prefix="$acl_save_prefix"
  9800. case "$x" in
  9801. -L*)
  9802. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9803. if test -n "$acl_shlibext"; then
  9804. if test -f "$dir/$libname$shrext"; then
  9805. found_dir="$dir"
  9806. found_so="$dir/$libname$shrext"
  9807. else
  9808. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9809. ver=`(cd "$dir" && \
  9810. for f in "$libname$shrext".*; do echo "$f"; done \
  9811. | sed -e "s,^$libname$shrext\\\\.,," \
  9812. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9813. | sed 1q ) 2>/dev/null`
  9814. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9815. found_dir="$dir"
  9816. found_so="$dir/$libname$shrext.$ver"
  9817. fi
  9818. else
  9819. eval library_names=\"$acl_library_names_spec\"
  9820. for f in $library_names; do
  9821. if test -f "$dir/$f"; then
  9822. found_dir="$dir"
  9823. found_so="$dir/$f"
  9824. break
  9825. fi
  9826. done
  9827. fi
  9828. fi
  9829. fi
  9830. if test "X$found_dir" = "X"; then
  9831. if test -f "$dir/$libname.$acl_libext"; then
  9832. found_dir="$dir"
  9833. found_a="$dir/$libname.$acl_libext"
  9834. fi
  9835. fi
  9836. if test "X$found_dir" != "X"; then
  9837. if test -f "$dir/$libname.la"; then
  9838. found_la="$dir/$libname.la"
  9839. fi
  9840. fi
  9841. ;;
  9842. esac
  9843. if test "X$found_dir" != "X"; then
  9844. break
  9845. fi
  9846. done
  9847. fi
  9848. if test "X$found_dir" != "X"; then
  9849. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9850. if test "X$found_so" != "X"; then
  9851. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9852. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9853. else
  9854. haveit=
  9855. for x in $ltrpathdirs; do
  9856. if test "X$x" = "X$found_dir"; then
  9857. haveit=yes
  9858. break
  9859. fi
  9860. done
  9861. if test -z "$haveit"; then
  9862. ltrpathdirs="$ltrpathdirs $found_dir"
  9863. fi
  9864. if test "$acl_hardcode_direct" = yes; then
  9865. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9866. else
  9867. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9868. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9869. haveit=
  9870. for x in $rpathdirs; do
  9871. if test "X$x" = "X$found_dir"; then
  9872. haveit=yes
  9873. break
  9874. fi
  9875. done
  9876. if test -z "$haveit"; then
  9877. rpathdirs="$rpathdirs $found_dir"
  9878. fi
  9879. else
  9880. haveit=
  9881. for x in $LDFLAGS $LIBICONV; do
  9882. acl_save_prefix="$prefix"
  9883. prefix="$acl_final_prefix"
  9884. acl_save_exec_prefix="$exec_prefix"
  9885. exec_prefix="$acl_final_exec_prefix"
  9886. eval x=\"$x\"
  9887. exec_prefix="$acl_save_exec_prefix"
  9888. prefix="$acl_save_prefix"
  9889. if test "X$x" = "X-L$found_dir"; then
  9890. haveit=yes
  9891. break
  9892. fi
  9893. done
  9894. if test -z "$haveit"; then
  9895. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9896. fi
  9897. if test "$acl_hardcode_minus_L" != no; then
  9898. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9899. else
  9900. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9901. fi
  9902. fi
  9903. fi
  9904. fi
  9905. else
  9906. if test "X$found_a" != "X"; then
  9907. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9908. else
  9909. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9910. fi
  9911. fi
  9912. additional_includedir=
  9913. case "$found_dir" in
  9914. */$acl_libdirstem | */$acl_libdirstem/)
  9915. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9916. LIBICONV_PREFIX="$basedir"
  9917. additional_includedir="$basedir/include"
  9918. ;;
  9919. esac
  9920. if test "X$additional_includedir" != "X"; then
  9921. if test "X$additional_includedir" != "X/usr/include"; then
  9922. haveit=
  9923. if test "X$additional_includedir" = "X/usr/local/include"; then
  9924. if test -n "$GCC"; then
  9925. case $host_os in
  9926. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9927. esac
  9928. fi
  9929. fi
  9930. if test -z "$haveit"; then
  9931. for x in $CPPFLAGS $INCICONV; do
  9932. acl_save_prefix="$prefix"
  9933. prefix="$acl_final_prefix"
  9934. acl_save_exec_prefix="$exec_prefix"
  9935. exec_prefix="$acl_final_exec_prefix"
  9936. eval x=\"$x\"
  9937. exec_prefix="$acl_save_exec_prefix"
  9938. prefix="$acl_save_prefix"
  9939. if test "X$x" = "X-I$additional_includedir"; then
  9940. haveit=yes
  9941. break
  9942. fi
  9943. done
  9944. if test -z "$haveit"; then
  9945. if test -d "$additional_includedir"; then
  9946. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9947. fi
  9948. fi
  9949. fi
  9950. fi
  9951. fi
  9952. if test -n "$found_la"; then
  9953. save_libdir="$libdir"
  9954. case "$found_la" in
  9955. */* | *\\*) . "$found_la" ;;
  9956. *) . "./$found_la" ;;
  9957. esac
  9958. libdir="$save_libdir"
  9959. for dep in $dependency_libs; do
  9960. case "$dep" in
  9961. -L*)
  9962. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9963. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9964. haveit=
  9965. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9966. if test -n "$GCC"; then
  9967. case $host_os in
  9968. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9969. esac
  9970. fi
  9971. fi
  9972. if test -z "$haveit"; then
  9973. haveit=
  9974. for x in $LDFLAGS $LIBICONV; do
  9975. acl_save_prefix="$prefix"
  9976. prefix="$acl_final_prefix"
  9977. acl_save_exec_prefix="$exec_prefix"
  9978. exec_prefix="$acl_final_exec_prefix"
  9979. eval x=\"$x\"
  9980. exec_prefix="$acl_save_exec_prefix"
  9981. prefix="$acl_save_prefix"
  9982. if test "X$x" = "X-L$additional_libdir"; then
  9983. haveit=yes
  9984. break
  9985. fi
  9986. done
  9987. if test -z "$haveit"; then
  9988. if test -d "$additional_libdir"; then
  9989. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9990. fi
  9991. fi
  9992. haveit=
  9993. for x in $LDFLAGS $LTLIBICONV; do
  9994. acl_save_prefix="$prefix"
  9995. prefix="$acl_final_prefix"
  9996. acl_save_exec_prefix="$exec_prefix"
  9997. exec_prefix="$acl_final_exec_prefix"
  9998. eval x=\"$x\"
  9999. exec_prefix="$acl_save_exec_prefix"
  10000. prefix="$acl_save_prefix"
  10001. if test "X$x" = "X-L$additional_libdir"; then
  10002. haveit=yes
  10003. break
  10004. fi
  10005. done
  10006. if test -z "$haveit"; then
  10007. if test -d "$additional_libdir"; then
  10008. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10009. fi
  10010. fi
  10011. fi
  10012. fi
  10013. ;;
  10014. -R*)
  10015. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10016. if test "$enable_rpath" != no; then
  10017. haveit=
  10018. for x in $rpathdirs; do
  10019. if test "X$x" = "X$dir"; then
  10020. haveit=yes
  10021. break
  10022. fi
  10023. done
  10024. if test -z "$haveit"; then
  10025. rpathdirs="$rpathdirs $dir"
  10026. fi
  10027. haveit=
  10028. for x in $ltrpathdirs; do
  10029. if test "X$x" = "X$dir"; then
  10030. haveit=yes
  10031. break
  10032. fi
  10033. done
  10034. if test -z "$haveit"; then
  10035. ltrpathdirs="$ltrpathdirs $dir"
  10036. fi
  10037. fi
  10038. ;;
  10039. -l*)
  10040. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10041. ;;
  10042. *.la)
  10043. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10044. ;;
  10045. *)
  10046. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10047. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10048. ;;
  10049. esac
  10050. done
  10051. fi
  10052. else
  10053. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10054. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10055. fi
  10056. fi
  10057. fi
  10058. done
  10059. done
  10060. if test "X$rpathdirs" != "X"; then
  10061. if test -n "$acl_hardcode_libdir_separator"; then
  10062. alldirs=
  10063. for found_dir in $rpathdirs; do
  10064. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10065. done
  10066. acl_save_libdir="$libdir"
  10067. libdir="$alldirs"
  10068. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10069. libdir="$acl_save_libdir"
  10070. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10071. else
  10072. for found_dir in $rpathdirs; do
  10073. acl_save_libdir="$libdir"
  10074. libdir="$found_dir"
  10075. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10076. libdir="$acl_save_libdir"
  10077. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10078. done
  10079. fi
  10080. fi
  10081. if test "X$ltrpathdirs" != "X"; then
  10082. for found_dir in $ltrpathdirs; do
  10083. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10084. done
  10085. fi
  10086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10087. /* end confdefs.h. */
  10088. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10089. int
  10090. main ()
  10091. {
  10092. ;
  10093. return 0;
  10094. }
  10095. _ACEOF
  10096. if ac_fn_cxx_try_link "$LINENO"; then :
  10097. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10098. fi
  10099. rm -f core conftest.err conftest.$ac_objext \
  10100. conftest$ac_exeext conftest.$ac_ext
  10101. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10102. do :
  10103. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10104. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10105. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10106. cat >>confdefs.h <<_ACEOF
  10107. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10108. _ACEOF
  10109. fi
  10110. done
  10111. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10112. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10113. argz_next __fsetlocking
  10114. do :
  10115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10116. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10117. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10118. cat >>confdefs.h <<_ACEOF
  10119. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10120. _ACEOF
  10121. fi
  10122. done
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10124. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10125. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10126. $as_echo_n "(cached) " >&6
  10127. else
  10128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10129. /* end confdefs.h. */
  10130. #include <stdio.h>
  10131. int
  10132. main ()
  10133. {
  10134. #ifndef feof_unlocked
  10135. char *p = (char *) feof_unlocked;
  10136. #endif
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_cxx_try_compile "$LINENO"; then :
  10142. ac_cv_have_decl_feof_unlocked=yes
  10143. else
  10144. ac_cv_have_decl_feof_unlocked=no
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10149. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10150. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10151. gt_value=1
  10152. else
  10153. gt_value=0
  10154. fi
  10155. cat >>confdefs.h <<_ACEOF
  10156. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10157. _ACEOF
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10159. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10160. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10161. $as_echo_n "(cached) " >&6
  10162. else
  10163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10164. /* end confdefs.h. */
  10165. #include <stdio.h>
  10166. int
  10167. main ()
  10168. {
  10169. #ifndef fgets_unlocked
  10170. char *p = (char *) fgets_unlocked;
  10171. #endif
  10172. ;
  10173. return 0;
  10174. }
  10175. _ACEOF
  10176. if ac_fn_cxx_try_compile "$LINENO"; then :
  10177. ac_cv_have_decl_fgets_unlocked=yes
  10178. else
  10179. ac_cv_have_decl_fgets_unlocked=no
  10180. fi
  10181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10184. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10185. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10186. gt_value=1
  10187. else
  10188. gt_value=0
  10189. fi
  10190. cat >>confdefs.h <<_ACEOF
  10191. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10192. _ACEOF
  10193. am_save_CPPFLAGS="$CPPFLAGS"
  10194. for element in $INCICONV; do
  10195. haveit=
  10196. for x in $CPPFLAGS; do
  10197. acl_save_prefix="$prefix"
  10198. prefix="$acl_final_prefix"
  10199. acl_save_exec_prefix="$exec_prefix"
  10200. exec_prefix="$acl_final_exec_prefix"
  10201. eval x=\"$x\"
  10202. exec_prefix="$acl_save_exec_prefix"
  10203. prefix="$acl_save_prefix"
  10204. if test "X$x" = "X$element"; then
  10205. haveit=yes
  10206. break
  10207. fi
  10208. done
  10209. if test -z "$haveit"; then
  10210. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10211. fi
  10212. done
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10214. $as_echo_n "checking for iconv... " >&6; }
  10215. if test "${am_cv_func_iconv+set}" = set; then :
  10216. $as_echo_n "(cached) " >&6
  10217. else
  10218. am_cv_func_iconv="no, consider installing GNU libiconv"
  10219. am_cv_lib_iconv=no
  10220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10221. /* end confdefs.h. */
  10222. #include <stdlib.h>
  10223. #include <iconv.h>
  10224. int
  10225. main ()
  10226. {
  10227. iconv_t cd = iconv_open("","");
  10228. iconv(cd,NULL,NULL,NULL,NULL);
  10229. iconv_close(cd);
  10230. ;
  10231. return 0;
  10232. }
  10233. _ACEOF
  10234. if ac_fn_cxx_try_link "$LINENO"; then :
  10235. am_cv_func_iconv=yes
  10236. fi
  10237. rm -f core conftest.err conftest.$ac_objext \
  10238. conftest$ac_exeext conftest.$ac_ext
  10239. if test "$am_cv_func_iconv" != yes; then
  10240. am_save_LIBS="$LIBS"
  10241. LIBS="$LIBS $LIBICONV"
  10242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10243. /* end confdefs.h. */
  10244. #include <stdlib.h>
  10245. #include <iconv.h>
  10246. int
  10247. main ()
  10248. {
  10249. iconv_t cd = iconv_open("","");
  10250. iconv(cd,NULL,NULL,NULL,NULL);
  10251. iconv_close(cd);
  10252. ;
  10253. return 0;
  10254. }
  10255. _ACEOF
  10256. if ac_fn_cxx_try_link "$LINENO"; then :
  10257. am_cv_lib_iconv=yes
  10258. am_cv_func_iconv=yes
  10259. fi
  10260. rm -f core conftest.err conftest.$ac_objext \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. LIBS="$am_save_LIBS"
  10263. fi
  10264. fi
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10266. $as_echo "$am_cv_func_iconv" >&6; }
  10267. if test "$am_cv_func_iconv" = yes; then
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10269. $as_echo_n "checking for working iconv... " >&6; }
  10270. if test "${am_cv_func_iconv_works+set}" = set; then :
  10271. $as_echo_n "(cached) " >&6
  10272. else
  10273. am_save_LIBS="$LIBS"
  10274. if test $am_cv_lib_iconv = yes; then
  10275. LIBS="$LIBS $LIBICONV"
  10276. fi
  10277. if test "$cross_compiling" = yes; then :
  10278. case "$host_os" in
  10279. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10280. *) am_cv_func_iconv_works="guessing yes" ;;
  10281. esac
  10282. else
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. #include <iconv.h>
  10286. #include <string.h>
  10287. int main ()
  10288. {
  10289. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10290. returns. */
  10291. {
  10292. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10293. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10294. {
  10295. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10296. char buf[10];
  10297. const char *inptr = input;
  10298. size_t inbytesleft = strlen (input);
  10299. char *outptr = buf;
  10300. size_t outbytesleft = sizeof (buf);
  10301. size_t res = iconv (cd_utf8_to_88591,
  10302. (char **) &inptr, &inbytesleft,
  10303. &outptr, &outbytesleft);
  10304. if (res == 0)
  10305. return 1;
  10306. }
  10307. }
  10308. #if 0 /* This bug could be worked around by the caller. */
  10309. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10310. {
  10311. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10312. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10313. {
  10314. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10315. char buf[50];
  10316. const char *inptr = input;
  10317. size_t inbytesleft = strlen (input);
  10318. char *outptr = buf;
  10319. size_t outbytesleft = sizeof (buf);
  10320. size_t res = iconv (cd_88591_to_utf8,
  10321. (char **) &inptr, &inbytesleft,
  10322. &outptr, &outbytesleft);
  10323. if ((int)res > 0)
  10324. return 1;
  10325. }
  10326. }
  10327. #endif
  10328. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10329. provided. */
  10330. if (/* Try standardized names. */
  10331. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10332. /* Try IRIX, OSF/1 names. */
  10333. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10334. /* Try AIX names. */
  10335. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10336. /* Try HP-UX names. */
  10337. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10338. return 1;
  10339. return 0;
  10340. }
  10341. _ACEOF
  10342. if ac_fn_cxx_try_run "$LINENO"; then :
  10343. am_cv_func_iconv_works=yes
  10344. else
  10345. am_cv_func_iconv_works=no
  10346. fi
  10347. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10348. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10349. fi
  10350. LIBS="$am_save_LIBS"
  10351. fi
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10353. $as_echo "$am_cv_func_iconv_works" >&6; }
  10354. case "$am_cv_func_iconv_works" in
  10355. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10356. *) am_func_iconv=yes ;;
  10357. esac
  10358. else
  10359. am_func_iconv=no am_cv_lib_iconv=no
  10360. fi
  10361. if test "$am_func_iconv" = yes; then
  10362. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10363. fi
  10364. if test "$am_cv_lib_iconv" = yes; then
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10366. $as_echo_n "checking how to link with libiconv... " >&6; }
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10368. $as_echo "$LIBICONV" >&6; }
  10369. else
  10370. CPPFLAGS="$am_save_CPPFLAGS"
  10371. LIBICONV=
  10372. LTLIBICONV=
  10373. fi
  10374. if test "$am_cv_func_iconv" = yes; then
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10376. $as_echo_n "checking for iconv declaration... " >&6; }
  10377. if test "${am_cv_proto_iconv+set}" = set; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10381. /* end confdefs.h. */
  10382. #include <stdlib.h>
  10383. #include <iconv.h>
  10384. extern
  10385. #ifdef __cplusplus
  10386. "C"
  10387. #endif
  10388. #if defined(__STDC__) || defined(__cplusplus)
  10389. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10390. #else
  10391. size_t iconv();
  10392. #endif
  10393. int
  10394. main ()
  10395. {
  10396. ;
  10397. return 0;
  10398. }
  10399. _ACEOF
  10400. if ac_fn_cxx_try_compile "$LINENO"; then :
  10401. am_cv_proto_iconv_arg1=""
  10402. else
  10403. am_cv_proto_iconv_arg1="const"
  10404. fi
  10405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10406. 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);"
  10407. fi
  10408. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10410. }$am_cv_proto_iconv" >&5
  10411. $as_echo "${ac_t:-
  10412. }$am_cv_proto_iconv" >&6; }
  10413. cat >>confdefs.h <<_ACEOF
  10414. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10415. _ACEOF
  10416. fi
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10418. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10419. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10423. /* end confdefs.h. */
  10424. #include <langinfo.h>
  10425. #include <locale.h>
  10426. int
  10427. main ()
  10428. {
  10429. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10430. return !cs;
  10431. ;
  10432. return 0;
  10433. }
  10434. _ACEOF
  10435. if ac_fn_cxx_try_link "$LINENO"; then :
  10436. gt_cv_nl_locale_name=yes
  10437. else
  10438. gt_cv_nl_locale_name=no
  10439. fi
  10440. rm -f core conftest.err conftest.$ac_objext \
  10441. conftest$ac_exeext conftest.$ac_ext
  10442. fi
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10444. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10445. if test $gt_cv_nl_locale_name = yes; then
  10446. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10447. fi
  10448. for ac_prog in bison
  10449. do
  10450. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10451. set dummy $ac_prog; ac_word=$2
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10453. $as_echo_n "checking for $ac_word... " >&6; }
  10454. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10455. $as_echo_n "(cached) " >&6
  10456. else
  10457. if test -n "$INTLBISON"; then
  10458. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10459. else
  10460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10461. for as_dir in $PATH
  10462. do
  10463. IFS=$as_save_IFS
  10464. test -z "$as_dir" && as_dir=.
  10465. for ac_exec_ext in '' $ac_executable_extensions; do
  10466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10467. ac_cv_prog_INTLBISON="$ac_prog"
  10468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10469. break 2
  10470. fi
  10471. done
  10472. done
  10473. IFS=$as_save_IFS
  10474. fi
  10475. fi
  10476. INTLBISON=$ac_cv_prog_INTLBISON
  10477. if test -n "$INTLBISON"; then
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10479. $as_echo "$INTLBISON" >&6; }
  10480. else
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10482. $as_echo "no" >&6; }
  10483. fi
  10484. test -n "$INTLBISON" && break
  10485. done
  10486. if test -z "$INTLBISON"; then
  10487. ac_verc_fail=yes
  10488. else
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10490. $as_echo_n "checking version of bison... " >&6; }
  10491. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10492. case $ac_prog_version in
  10493. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10494. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10495. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10496. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10497. esac
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10499. $as_echo "$ac_prog_version" >&6; }
  10500. fi
  10501. if test $ac_verc_fail = yes; then
  10502. INTLBISON=:
  10503. fi
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10505. $as_echo_n "checking for long long int... " >&6; }
  10506. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10507. $as_echo_n "(cached) " >&6
  10508. else
  10509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10510. /* end confdefs.h. */
  10511. /* Test preprocessor. */
  10512. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10513. error in preprocessor;
  10514. #endif
  10515. #if ! (18446744073709551615ULL <= -1ull)
  10516. error in preprocessor;
  10517. #endif
  10518. /* Test literals. */
  10519. long long int ll = 9223372036854775807ll;
  10520. long long int nll = -9223372036854775807LL;
  10521. unsigned long long int ull = 18446744073709551615ULL;
  10522. /* Test constant expressions. */
  10523. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10524. ? 1 : -1)];
  10525. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10526. ? 1 : -1)];
  10527. int i = 63;
  10528. int
  10529. main ()
  10530. {
  10531. /* Test availability of runtime routines for shift and division. */
  10532. long long int llmax = 9223372036854775807ll;
  10533. unsigned long long int ullmax = 18446744073709551615ull;
  10534. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10535. | (llmax / ll) | (llmax % ll)
  10536. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10537. | (ullmax / ull) | (ullmax % ull));
  10538. ;
  10539. return 0;
  10540. }
  10541. _ACEOF
  10542. if ac_fn_cxx_try_link "$LINENO"; then :
  10543. if test "$cross_compiling" = yes; then :
  10544. ac_cv_type_long_long_int=yes
  10545. else
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. #include <limits.h>
  10549. #ifndef LLONG_MAX
  10550. # define HALF \
  10551. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10552. # define LLONG_MAX (HALF - 1 + HALF)
  10553. #endif
  10554. int
  10555. main ()
  10556. {
  10557. long long int n = 1;
  10558. int i;
  10559. for (i = 0; ; i++)
  10560. {
  10561. long long int m = n << i;
  10562. if (m >> i != n)
  10563. return 1;
  10564. if (LLONG_MAX / 2 < m)
  10565. break;
  10566. }
  10567. return 0;
  10568. ;
  10569. return 0;
  10570. }
  10571. _ACEOF
  10572. if ac_fn_cxx_try_run "$LINENO"; then :
  10573. ac_cv_type_long_long_int=yes
  10574. else
  10575. ac_cv_type_long_long_int=no
  10576. fi
  10577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10578. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10579. fi
  10580. else
  10581. ac_cv_type_long_long_int=no
  10582. fi
  10583. rm -f core conftest.err conftest.$ac_objext \
  10584. conftest$ac_exeext conftest.$ac_ext
  10585. fi
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10587. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10588. if test $ac_cv_type_long_long_int = yes; then
  10589. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10590. fi
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10592. $as_echo_n "checking for wchar_t... " >&6; }
  10593. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. #include <stddef.h>
  10599. wchar_t foo = (wchar_t)'\0';
  10600. int
  10601. main ()
  10602. {
  10603. ;
  10604. return 0;
  10605. }
  10606. _ACEOF
  10607. if ac_fn_cxx_try_compile "$LINENO"; then :
  10608. gt_cv_c_wchar_t=yes
  10609. else
  10610. gt_cv_c_wchar_t=no
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10613. fi
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10615. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10616. if test $gt_cv_c_wchar_t = yes; then
  10617. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10618. fi
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10620. $as_echo_n "checking for wint_t... " >&6; }
  10621. if test "${gt_cv_c_wint_t+set}" = set; then :
  10622. $as_echo_n "(cached) " >&6
  10623. else
  10624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10625. /* end confdefs.h. */
  10626. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10627. <wchar.h>.
  10628. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10629. before <wchar.h>. */
  10630. #include <stddef.h>
  10631. #include <stdio.h>
  10632. #include <time.h>
  10633. #include <wchar.h>
  10634. wint_t foo = (wchar_t)'\0';
  10635. int
  10636. main ()
  10637. {
  10638. ;
  10639. return 0;
  10640. }
  10641. _ACEOF
  10642. if ac_fn_cxx_try_compile "$LINENO"; then :
  10643. gt_cv_c_wint_t=yes
  10644. else
  10645. gt_cv_c_wint_t=no
  10646. fi
  10647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10648. fi
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10650. $as_echo "$gt_cv_c_wint_t" >&6; }
  10651. if test $gt_cv_c_wint_t = yes; then
  10652. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10653. fi
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10655. $as_echo_n "checking for intmax_t... " >&6; }
  10656. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10657. $as_echo_n "(cached) " >&6
  10658. else
  10659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10660. /* end confdefs.h. */
  10661. #include <stddef.h>
  10662. #include <stdlib.h>
  10663. #if HAVE_STDINT_H_WITH_UINTMAX
  10664. #include <stdint.h>
  10665. #endif
  10666. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10667. #include <inttypes.h>
  10668. #endif
  10669. int
  10670. main ()
  10671. {
  10672. intmax_t x = -1;
  10673. return !x;
  10674. ;
  10675. return 0;
  10676. }
  10677. _ACEOF
  10678. if ac_fn_cxx_try_compile "$LINENO"; then :
  10679. gt_cv_c_intmax_t=yes
  10680. else
  10681. gt_cv_c_intmax_t=no
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10684. fi
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10686. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10687. if test $gt_cv_c_intmax_t = yes; then
  10688. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10689. fi
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10691. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10692. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. if test "$cross_compiling" = yes; then :
  10696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10697. /* end confdefs.h. */
  10698. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10699. notposix
  10700. #endif
  10701. _ACEOF
  10702. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10703. $EGREP "notposix" >/dev/null 2>&1; then :
  10704. gt_cv_func_printf_posix="guessing no"
  10705. else
  10706. gt_cv_func_printf_posix="guessing yes"
  10707. fi
  10708. rm -f conftest*
  10709. else
  10710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10711. /* end confdefs.h. */
  10712. #include <stdio.h>
  10713. #include <string.h>
  10714. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10715. dollar expansion (possibly an autoconf bug). */
  10716. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10717. static char buf[100];
  10718. int main ()
  10719. {
  10720. sprintf (buf, format, 33, 55);
  10721. return (strcmp (buf, "55 33") != 0);
  10722. }
  10723. _ACEOF
  10724. if ac_fn_cxx_try_run "$LINENO"; then :
  10725. gt_cv_func_printf_posix=yes
  10726. else
  10727. gt_cv_func_printf_posix=no
  10728. fi
  10729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10731. fi
  10732. fi
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10734. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10735. case $gt_cv_func_printf_posix in
  10736. *yes)
  10737. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10738. ;;
  10739. esac
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10741. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10742. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10743. $as_echo_n "(cached) " >&6
  10744. else
  10745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10746. /* end confdefs.h. */
  10747. #include <features.h>
  10748. #ifdef __GNU_LIBRARY__
  10749. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10750. Lucky GNU user
  10751. #endif
  10752. #endif
  10753. _ACEOF
  10754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10755. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10756. ac_cv_gnu_library_2_1=yes
  10757. else
  10758. ac_cv_gnu_library_2_1=no
  10759. fi
  10760. rm -f conftest*
  10761. fi
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10763. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10764. GLIBC21="$ac_cv_gnu_library_2_1"
  10765. for ac_header in stdint.h
  10766. do :
  10767. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10768. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10769. cat >>confdefs.h <<_ACEOF
  10770. #define HAVE_STDINT_H 1
  10771. _ACEOF
  10772. fi
  10773. done
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10775. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10776. if test "${gl_cv_size_max+set}" = set; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. gl_cv_size_max=
  10780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10781. /* end confdefs.h. */
  10782. #include <limits.h>
  10783. #if HAVE_STDINT_H
  10784. #include <stdint.h>
  10785. #endif
  10786. #ifdef SIZE_MAX
  10787. Found it
  10788. #endif
  10789. _ACEOF
  10790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10791. $EGREP "Found it" >/dev/null 2>&1; then :
  10792. gl_cv_size_max=yes
  10793. fi
  10794. rm -f conftest*
  10795. if test -z "$gl_cv_size_max"; then
  10796. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10797. #include <limits.h>"; then :
  10798. else
  10799. size_t_bits_minus_1=
  10800. fi
  10801. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10802. else
  10803. fits_in_uint=
  10804. fi
  10805. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10806. if test $fits_in_uint = 1; then
  10807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10808. /* end confdefs.h. */
  10809. #include <stddef.h>
  10810. extern size_t foo;
  10811. extern unsigned long foo;
  10812. int
  10813. main ()
  10814. {
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. if ac_fn_cxx_try_compile "$LINENO"; then :
  10820. fits_in_uint=0
  10821. fi
  10822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10823. fi
  10824. if test $fits_in_uint = 1; then
  10825. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10826. else
  10827. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10828. fi
  10829. else
  10830. gl_cv_size_max='((size_t)~(size_t)0)'
  10831. fi
  10832. fi
  10833. fi
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10835. $as_echo "$gl_cv_size_max" >&6; }
  10836. if test "$gl_cv_size_max" != yes; then
  10837. cat >>confdefs.h <<_ACEOF
  10838. #define SIZE_MAX $gl_cv_size_max
  10839. _ACEOF
  10840. fi
  10841. for ac_header in stdint.h
  10842. do :
  10843. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10844. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10845. cat >>confdefs.h <<_ACEOF
  10846. #define HAVE_STDINT_H 1
  10847. _ACEOF
  10848. fi
  10849. done
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10851. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10852. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10853. $as_echo_n "(cached) " >&6
  10854. else
  10855. gt_save_LIBS="$LIBS"
  10856. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10858. /* end confdefs.h. */
  10859. #include <CoreFoundation/CFPreferences.h>
  10860. int
  10861. main ()
  10862. {
  10863. CFPreferencesCopyAppValue(NULL, NULL)
  10864. ;
  10865. return 0;
  10866. }
  10867. _ACEOF
  10868. if ac_fn_cxx_try_link "$LINENO"; then :
  10869. gt_cv_func_CFPreferencesCopyAppValue=yes
  10870. else
  10871. gt_cv_func_CFPreferencesCopyAppValue=no
  10872. fi
  10873. rm -f core conftest.err conftest.$ac_objext \
  10874. conftest$ac_exeext conftest.$ac_ext
  10875. LIBS="$gt_save_LIBS"
  10876. fi
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10878. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10879. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10880. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10881. fi
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10883. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10884. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10885. $as_echo_n "(cached) " >&6
  10886. else
  10887. gt_save_LIBS="$LIBS"
  10888. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10890. /* end confdefs.h. */
  10891. #include <CoreFoundation/CFLocale.h>
  10892. int
  10893. main ()
  10894. {
  10895. CFLocaleCopyCurrent();
  10896. ;
  10897. return 0;
  10898. }
  10899. _ACEOF
  10900. if ac_fn_cxx_try_link "$LINENO"; then :
  10901. gt_cv_func_CFLocaleCopyCurrent=yes
  10902. else
  10903. gt_cv_func_CFLocaleCopyCurrent=no
  10904. fi
  10905. rm -f core conftest.err conftest.$ac_objext \
  10906. conftest$ac_exeext conftest.$ac_ext
  10907. LIBS="$gt_save_LIBS"
  10908. fi
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10910. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10911. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10912. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10913. fi
  10914. INTL_MACOSX_LIBS=
  10915. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10916. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10917. fi
  10918. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10919. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10920. else
  10921. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10922. fi
  10923. for ac_header in stddef.h stdlib.h string.h
  10924. do :
  10925. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10926. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10927. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10928. cat >>confdefs.h <<_ACEOF
  10929. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10930. _ACEOF
  10931. fi
  10932. done
  10933. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10934. do :
  10935. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10936. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10937. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10938. cat >>confdefs.h <<_ACEOF
  10939. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10940. _ACEOF
  10941. fi
  10942. done
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10944. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10945. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10946. $as_echo_n "(cached) " >&6
  10947. else
  10948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10949. /* end confdefs.h. */
  10950. #include <stdio.h>
  10951. int
  10952. main ()
  10953. {
  10954. #ifndef _snprintf
  10955. char *p = (char *) _snprintf;
  10956. #endif
  10957. ;
  10958. return 0;
  10959. }
  10960. _ACEOF
  10961. if ac_fn_cxx_try_compile "$LINENO"; then :
  10962. ac_cv_have_decl__snprintf=yes
  10963. else
  10964. ac_cv_have_decl__snprintf=no
  10965. fi
  10966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10967. fi
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10969. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10970. if test $ac_cv_have_decl__snprintf = yes; then
  10971. gt_value=1
  10972. else
  10973. gt_value=0
  10974. fi
  10975. cat >>confdefs.h <<_ACEOF
  10976. #define HAVE_DECL__SNPRINTF $gt_value
  10977. _ACEOF
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10979. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10980. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10984. /* end confdefs.h. */
  10985. #include <stdio.h>
  10986. int
  10987. main ()
  10988. {
  10989. #ifndef _snwprintf
  10990. char *p = (char *) _snwprintf;
  10991. #endif
  10992. ;
  10993. return 0;
  10994. }
  10995. _ACEOF
  10996. if ac_fn_cxx_try_compile "$LINENO"; then :
  10997. ac_cv_have_decl__snwprintf=yes
  10998. else
  10999. ac_cv_have_decl__snwprintf=no
  11000. fi
  11001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11002. fi
  11003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11004. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11005. if test $ac_cv_have_decl__snwprintf = yes; then
  11006. gt_value=1
  11007. else
  11008. gt_value=0
  11009. fi
  11010. cat >>confdefs.h <<_ACEOF
  11011. #define HAVE_DECL__SNWPRINTF $gt_value
  11012. _ACEOF
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11014. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11015. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11016. $as_echo_n "(cached) " >&6
  11017. else
  11018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11019. /* end confdefs.h. */
  11020. #include <stdio.h>
  11021. int
  11022. main ()
  11023. {
  11024. #ifndef getc_unlocked
  11025. char *p = (char *) getc_unlocked;
  11026. #endif
  11027. ;
  11028. return 0;
  11029. }
  11030. _ACEOF
  11031. if ac_fn_cxx_try_compile "$LINENO"; then :
  11032. ac_cv_have_decl_getc_unlocked=yes
  11033. else
  11034. ac_cv_have_decl_getc_unlocked=no
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11037. fi
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11039. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11040. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11041. gt_value=1
  11042. else
  11043. gt_value=0
  11044. fi
  11045. cat >>confdefs.h <<_ACEOF
  11046. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11047. _ACEOF
  11048. case $gt_cv_func_printf_posix in
  11049. *yes) HAVE_POSIX_PRINTF=1 ;;
  11050. *) HAVE_POSIX_PRINTF=0 ;;
  11051. esac
  11052. if test "$ac_cv_func_asprintf" = yes; then
  11053. HAVE_ASPRINTF=1
  11054. else
  11055. HAVE_ASPRINTF=0
  11056. fi
  11057. if test "$ac_cv_func_snprintf" = yes; then
  11058. HAVE_SNPRINTF=1
  11059. else
  11060. HAVE_SNPRINTF=0
  11061. fi
  11062. if test "$ac_cv_func_wprintf" = yes; then
  11063. HAVE_WPRINTF=1
  11064. else
  11065. HAVE_WPRINTF=0
  11066. fi
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11068. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11069. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11070. $as_echo_n "(cached) " >&6
  11071. else
  11072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11073. /* end confdefs.h. */
  11074. #include <langinfo.h>
  11075. int
  11076. main ()
  11077. {
  11078. char* cs = nl_langinfo(CODESET); return !cs;
  11079. ;
  11080. return 0;
  11081. }
  11082. _ACEOF
  11083. if ac_fn_cxx_try_link "$LINENO"; then :
  11084. am_cv_langinfo_codeset=yes
  11085. else
  11086. am_cv_langinfo_codeset=no
  11087. fi
  11088. rm -f core conftest.err conftest.$ac_objext \
  11089. conftest$ac_exeext conftest.$ac_ext
  11090. fi
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11092. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11093. if test $am_cv_langinfo_codeset = yes; then
  11094. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11095. fi
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11097. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11098. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11099. $as_echo_n "(cached) " >&6
  11100. else
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. #include <locale.h>
  11104. int
  11105. main ()
  11106. {
  11107. return LC_MESSAGES
  11108. ;
  11109. return 0;
  11110. }
  11111. _ACEOF
  11112. if ac_fn_cxx_try_link "$LINENO"; then :
  11113. gt_cv_val_LC_MESSAGES=yes
  11114. else
  11115. gt_cv_val_LC_MESSAGES=no
  11116. fi
  11117. rm -f core conftest.err conftest.$ac_objext \
  11118. conftest$ac_exeext conftest.$ac_ext
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11121. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11122. if test $gt_cv_val_LC_MESSAGES = yes; then
  11123. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11124. fi
  11125. if test "$enable_shared" = yes; then
  11126. case "$host_os" in
  11127. mingw* | cygwin*) is_woe32dll=yes ;;
  11128. *) is_woe32dll=no ;;
  11129. esac
  11130. else
  11131. is_woe32dll=no
  11132. fi
  11133. WOE32DLL=$is_woe32dll
  11134. case "$host_os" in
  11135. mingw* | cygwin*) is_woe32=yes ;;
  11136. *) is_woe32=no ;;
  11137. esac
  11138. WOE32=$is_woe32
  11139. if test $WOE32 = yes; then
  11140. if test -n "$ac_tool_prefix"; then
  11141. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11142. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11144. $as_echo_n "checking for $ac_word... " >&6; }
  11145. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11146. $as_echo_n "(cached) " >&6
  11147. else
  11148. if test -n "$WINDRES"; then
  11149. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11150. else
  11151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11152. for as_dir in $PATH
  11153. do
  11154. IFS=$as_save_IFS
  11155. test -z "$as_dir" && as_dir=.
  11156. for ac_exec_ext in '' $ac_executable_extensions; do
  11157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11158. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11160. break 2
  11161. fi
  11162. done
  11163. done
  11164. IFS=$as_save_IFS
  11165. fi
  11166. fi
  11167. WINDRES=$ac_cv_prog_WINDRES
  11168. if test -n "$WINDRES"; then
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11170. $as_echo "$WINDRES" >&6; }
  11171. else
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11173. $as_echo "no" >&6; }
  11174. fi
  11175. fi
  11176. if test -z "$ac_cv_prog_WINDRES"; then
  11177. ac_ct_WINDRES=$WINDRES
  11178. # Extract the first word of "windres", so it can be a program name with args.
  11179. set dummy windres; ac_word=$2
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11181. $as_echo_n "checking for $ac_word... " >&6; }
  11182. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11183. $as_echo_n "(cached) " >&6
  11184. else
  11185. if test -n "$ac_ct_WINDRES"; then
  11186. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11187. else
  11188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11189. for as_dir in $PATH
  11190. do
  11191. IFS=$as_save_IFS
  11192. test -z "$as_dir" && as_dir=.
  11193. for ac_exec_ext in '' $ac_executable_extensions; do
  11194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11195. ac_cv_prog_ac_ct_WINDRES="windres"
  11196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11197. break 2
  11198. fi
  11199. done
  11200. done
  11201. IFS=$as_save_IFS
  11202. fi
  11203. fi
  11204. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11205. if test -n "$ac_ct_WINDRES"; then
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11207. $as_echo "$ac_ct_WINDRES" >&6; }
  11208. else
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11210. $as_echo "no" >&6; }
  11211. fi
  11212. if test "x$ac_ct_WINDRES" = x; then
  11213. WINDRES=""
  11214. else
  11215. case $cross_compiling:$ac_tool_warned in
  11216. yes:)
  11217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11219. ac_tool_warned=yes ;;
  11220. esac
  11221. WINDRES=$ac_ct_WINDRES
  11222. fi
  11223. else
  11224. WINDRES="$ac_cv_prog_WINDRES"
  11225. fi
  11226. fi
  11227. case "$host_os" in
  11228. hpux*) LTLIBC="" ;;
  11229. *) LTLIBC="-lc" ;;
  11230. esac
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11232. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11233. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11234. $as_echo_n "(cached) " >&6
  11235. else
  11236. gt_save_LIBS="$LIBS"
  11237. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11239. /* end confdefs.h. */
  11240. #include <CoreFoundation/CFPreferences.h>
  11241. int
  11242. main ()
  11243. {
  11244. CFPreferencesCopyAppValue(NULL, NULL)
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. if ac_fn_cxx_try_link "$LINENO"; then :
  11250. gt_cv_func_CFPreferencesCopyAppValue=yes
  11251. else
  11252. gt_cv_func_CFPreferencesCopyAppValue=no
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext \
  11255. conftest$ac_exeext conftest.$ac_ext
  11256. LIBS="$gt_save_LIBS"
  11257. fi
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11259. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11260. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11261. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11262. fi
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11264. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11265. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. gt_save_LIBS="$LIBS"
  11269. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11271. /* end confdefs.h. */
  11272. #include <CoreFoundation/CFLocale.h>
  11273. int
  11274. main ()
  11275. {
  11276. CFLocaleCopyCurrent();
  11277. ;
  11278. return 0;
  11279. }
  11280. _ACEOF
  11281. if ac_fn_cxx_try_link "$LINENO"; then :
  11282. gt_cv_func_CFLocaleCopyCurrent=yes
  11283. else
  11284. gt_cv_func_CFLocaleCopyCurrent=no
  11285. fi
  11286. rm -f core conftest.err conftest.$ac_objext \
  11287. conftest$ac_exeext conftest.$ac_ext
  11288. LIBS="$gt_save_LIBS"
  11289. fi
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11291. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11292. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11293. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11294. fi
  11295. INTL_MACOSX_LIBS=
  11296. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11297. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11298. fi
  11299. BUILD_INCLUDED_LIBINTL=no
  11300. USE_INCLUDED_LIBINTL=no
  11301. LIBINTL=
  11302. LTLIBINTL=
  11303. POSUB=
  11304. case " $gt_needs " in
  11305. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11306. *" need-ngettext "*) gt_api_version=2 ;;
  11307. *) gt_api_version=1 ;;
  11308. esac
  11309. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11310. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11311. if test "$USE_NLS" = "yes"; then
  11312. gt_use_preinstalled_gnugettext=no
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11314. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11315. # Check whether --with-included-gettext was given.
  11316. if test "${with_included_gettext+set}" = set; then :
  11317. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11318. else
  11319. nls_cv_force_use_gnu_gettext=no
  11320. fi
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11322. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11323. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11324. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11325. if test $gt_api_version -ge 3; then
  11326. gt_revision_test_code='
  11327. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11328. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11329. #endif
  11330. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11331. '
  11332. else
  11333. gt_revision_test_code=
  11334. fi
  11335. if test $gt_api_version -ge 2; then
  11336. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11337. else
  11338. gt_expression_test_code=
  11339. fi
  11340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11341. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11342. if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
  11343. $as_echo_n "(cached) " >&6
  11344. else
  11345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11346. /* end confdefs.h. */
  11347. #include <libintl.h>
  11348. $gt_revision_test_code
  11349. extern int _nl_msg_cat_cntr;
  11350. extern int *_nl_domain_bindings;
  11351. int
  11352. main ()
  11353. {
  11354. bindtextdomain ("", "");
  11355. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11356. ;
  11357. return 0;
  11358. }
  11359. _ACEOF
  11360. if ac_fn_cxx_try_link "$LINENO"; then :
  11361. eval "$gt_func_gnugettext_libc=yes"
  11362. else
  11363. eval "$gt_func_gnugettext_libc=no"
  11364. fi
  11365. rm -f core conftest.err conftest.$ac_objext \
  11366. conftest$ac_exeext conftest.$ac_ext
  11367. fi
  11368. eval ac_res=\$$gt_func_gnugettext_libc
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11370. $as_echo "$ac_res" >&6; }
  11371. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11372. use_additional=yes
  11373. acl_save_prefix="$prefix"
  11374. prefix="$acl_final_prefix"
  11375. acl_save_exec_prefix="$exec_prefix"
  11376. exec_prefix="$acl_final_exec_prefix"
  11377. eval additional_includedir=\"$includedir\"
  11378. eval additional_libdir=\"$libdir\"
  11379. exec_prefix="$acl_save_exec_prefix"
  11380. prefix="$acl_save_prefix"
  11381. # Check whether --with-libintl-prefix was given.
  11382. if test "${with_libintl_prefix+set}" = set; then :
  11383. withval=$with_libintl_prefix;
  11384. if test "X$withval" = "Xno"; then
  11385. use_additional=no
  11386. else
  11387. if test "X$withval" = "X"; then
  11388. acl_save_prefix="$prefix"
  11389. prefix="$acl_final_prefix"
  11390. acl_save_exec_prefix="$exec_prefix"
  11391. exec_prefix="$acl_final_exec_prefix"
  11392. eval additional_includedir=\"$includedir\"
  11393. eval additional_libdir=\"$libdir\"
  11394. exec_prefix="$acl_save_exec_prefix"
  11395. prefix="$acl_save_prefix"
  11396. else
  11397. additional_includedir="$withval/include"
  11398. additional_libdir="$withval/$acl_libdirstem"
  11399. fi
  11400. fi
  11401. fi
  11402. LIBINTL=
  11403. LTLIBINTL=
  11404. INCINTL=
  11405. LIBINTL_PREFIX=
  11406. rpathdirs=
  11407. ltrpathdirs=
  11408. names_already_handled=
  11409. names_next_round='intl '
  11410. while test -n "$names_next_round"; do
  11411. names_this_round="$names_next_round"
  11412. names_next_round=
  11413. for name in $names_this_round; do
  11414. already_handled=
  11415. for n in $names_already_handled; do
  11416. if test "$n" = "$name"; then
  11417. already_handled=yes
  11418. break
  11419. fi
  11420. done
  11421. if test -z "$already_handled"; then
  11422. names_already_handled="$names_already_handled $name"
  11423. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11424. eval value=\"\$HAVE_LIB$uppername\"
  11425. if test -n "$value"; then
  11426. if test "$value" = yes; then
  11427. eval value=\"\$LIB$uppername\"
  11428. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11429. eval value=\"\$LTLIB$uppername\"
  11430. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11431. else
  11432. :
  11433. fi
  11434. else
  11435. found_dir=
  11436. found_la=
  11437. found_so=
  11438. found_a=
  11439. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11440. if test -n "$acl_shlibext"; then
  11441. shrext=".$acl_shlibext" # typically: shrext=.so
  11442. else
  11443. shrext=
  11444. fi
  11445. if test $use_additional = yes; then
  11446. dir="$additional_libdir"
  11447. if test -n "$acl_shlibext"; then
  11448. if test -f "$dir/$libname$shrext"; then
  11449. found_dir="$dir"
  11450. found_so="$dir/$libname$shrext"
  11451. else
  11452. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11453. ver=`(cd "$dir" && \
  11454. for f in "$libname$shrext".*; do echo "$f"; done \
  11455. | sed -e "s,^$libname$shrext\\\\.,," \
  11456. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11457. | sed 1q ) 2>/dev/null`
  11458. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11459. found_dir="$dir"
  11460. found_so="$dir/$libname$shrext.$ver"
  11461. fi
  11462. else
  11463. eval library_names=\"$acl_library_names_spec\"
  11464. for f in $library_names; do
  11465. if test -f "$dir/$f"; then
  11466. found_dir="$dir"
  11467. found_so="$dir/$f"
  11468. break
  11469. fi
  11470. done
  11471. fi
  11472. fi
  11473. fi
  11474. if test "X$found_dir" = "X"; then
  11475. if test -f "$dir/$libname.$acl_libext"; then
  11476. found_dir="$dir"
  11477. found_a="$dir/$libname.$acl_libext"
  11478. fi
  11479. fi
  11480. if test "X$found_dir" != "X"; then
  11481. if test -f "$dir/$libname.la"; then
  11482. found_la="$dir/$libname.la"
  11483. fi
  11484. fi
  11485. fi
  11486. if test "X$found_dir" = "X"; then
  11487. for x in $LDFLAGS $LTLIBINTL; do
  11488. acl_save_prefix="$prefix"
  11489. prefix="$acl_final_prefix"
  11490. acl_save_exec_prefix="$exec_prefix"
  11491. exec_prefix="$acl_final_exec_prefix"
  11492. eval x=\"$x\"
  11493. exec_prefix="$acl_save_exec_prefix"
  11494. prefix="$acl_save_prefix"
  11495. case "$x" in
  11496. -L*)
  11497. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11498. if test -n "$acl_shlibext"; then
  11499. if test -f "$dir/$libname$shrext"; then
  11500. found_dir="$dir"
  11501. found_so="$dir/$libname$shrext"
  11502. else
  11503. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11504. ver=`(cd "$dir" && \
  11505. for f in "$libname$shrext".*; do echo "$f"; done \
  11506. | sed -e "s,^$libname$shrext\\\\.,," \
  11507. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11508. | sed 1q ) 2>/dev/null`
  11509. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11510. found_dir="$dir"
  11511. found_so="$dir/$libname$shrext.$ver"
  11512. fi
  11513. else
  11514. eval library_names=\"$acl_library_names_spec\"
  11515. for f in $library_names; do
  11516. if test -f "$dir/$f"; then
  11517. found_dir="$dir"
  11518. found_so="$dir/$f"
  11519. break
  11520. fi
  11521. done
  11522. fi
  11523. fi
  11524. fi
  11525. if test "X$found_dir" = "X"; then
  11526. if test -f "$dir/$libname.$acl_libext"; then
  11527. found_dir="$dir"
  11528. found_a="$dir/$libname.$acl_libext"
  11529. fi
  11530. fi
  11531. if test "X$found_dir" != "X"; then
  11532. if test -f "$dir/$libname.la"; then
  11533. found_la="$dir/$libname.la"
  11534. fi
  11535. fi
  11536. ;;
  11537. esac
  11538. if test "X$found_dir" != "X"; then
  11539. break
  11540. fi
  11541. done
  11542. fi
  11543. if test "X$found_dir" != "X"; then
  11544. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11545. if test "X$found_so" != "X"; then
  11546. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11547. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11548. else
  11549. haveit=
  11550. for x in $ltrpathdirs; do
  11551. if test "X$x" = "X$found_dir"; then
  11552. haveit=yes
  11553. break
  11554. fi
  11555. done
  11556. if test -z "$haveit"; then
  11557. ltrpathdirs="$ltrpathdirs $found_dir"
  11558. fi
  11559. if test "$acl_hardcode_direct" = yes; then
  11560. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11561. else
  11562. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11563. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11564. haveit=
  11565. for x in $rpathdirs; do
  11566. if test "X$x" = "X$found_dir"; then
  11567. haveit=yes
  11568. break
  11569. fi
  11570. done
  11571. if test -z "$haveit"; then
  11572. rpathdirs="$rpathdirs $found_dir"
  11573. fi
  11574. else
  11575. haveit=
  11576. for x in $LDFLAGS $LIBINTL; do
  11577. acl_save_prefix="$prefix"
  11578. prefix="$acl_final_prefix"
  11579. acl_save_exec_prefix="$exec_prefix"
  11580. exec_prefix="$acl_final_exec_prefix"
  11581. eval x=\"$x\"
  11582. exec_prefix="$acl_save_exec_prefix"
  11583. prefix="$acl_save_prefix"
  11584. if test "X$x" = "X-L$found_dir"; then
  11585. haveit=yes
  11586. break
  11587. fi
  11588. done
  11589. if test -z "$haveit"; then
  11590. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11591. fi
  11592. if test "$acl_hardcode_minus_L" != no; then
  11593. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11594. else
  11595. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11596. fi
  11597. fi
  11598. fi
  11599. fi
  11600. else
  11601. if test "X$found_a" != "X"; then
  11602. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11603. else
  11604. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11605. fi
  11606. fi
  11607. additional_includedir=
  11608. case "$found_dir" in
  11609. */$acl_libdirstem | */$acl_libdirstem/)
  11610. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11611. LIBINTL_PREFIX="$basedir"
  11612. additional_includedir="$basedir/include"
  11613. ;;
  11614. esac
  11615. if test "X$additional_includedir" != "X"; then
  11616. if test "X$additional_includedir" != "X/usr/include"; then
  11617. haveit=
  11618. if test "X$additional_includedir" = "X/usr/local/include"; then
  11619. if test -n "$GCC"; then
  11620. case $host_os in
  11621. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11622. esac
  11623. fi
  11624. fi
  11625. if test -z "$haveit"; then
  11626. for x in $CPPFLAGS $INCINTL; do
  11627. acl_save_prefix="$prefix"
  11628. prefix="$acl_final_prefix"
  11629. acl_save_exec_prefix="$exec_prefix"
  11630. exec_prefix="$acl_final_exec_prefix"
  11631. eval x=\"$x\"
  11632. exec_prefix="$acl_save_exec_prefix"
  11633. prefix="$acl_save_prefix"
  11634. if test "X$x" = "X-I$additional_includedir"; then
  11635. haveit=yes
  11636. break
  11637. fi
  11638. done
  11639. if test -z "$haveit"; then
  11640. if test -d "$additional_includedir"; then
  11641. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11642. fi
  11643. fi
  11644. fi
  11645. fi
  11646. fi
  11647. if test -n "$found_la"; then
  11648. save_libdir="$libdir"
  11649. case "$found_la" in
  11650. */* | *\\*) . "$found_la" ;;
  11651. *) . "./$found_la" ;;
  11652. esac
  11653. libdir="$save_libdir"
  11654. for dep in $dependency_libs; do
  11655. case "$dep" in
  11656. -L*)
  11657. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11658. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11659. haveit=
  11660. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11661. if test -n "$GCC"; then
  11662. case $host_os in
  11663. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11664. esac
  11665. fi
  11666. fi
  11667. if test -z "$haveit"; then
  11668. haveit=
  11669. for x in $LDFLAGS $LIBINTL; do
  11670. acl_save_prefix="$prefix"
  11671. prefix="$acl_final_prefix"
  11672. acl_save_exec_prefix="$exec_prefix"
  11673. exec_prefix="$acl_final_exec_prefix"
  11674. eval x=\"$x\"
  11675. exec_prefix="$acl_save_exec_prefix"
  11676. prefix="$acl_save_prefix"
  11677. if test "X$x" = "X-L$additional_libdir"; then
  11678. haveit=yes
  11679. break
  11680. fi
  11681. done
  11682. if test -z "$haveit"; then
  11683. if test -d "$additional_libdir"; then
  11684. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11685. fi
  11686. fi
  11687. haveit=
  11688. for x in $LDFLAGS $LTLIBINTL; do
  11689. acl_save_prefix="$prefix"
  11690. prefix="$acl_final_prefix"
  11691. acl_save_exec_prefix="$exec_prefix"
  11692. exec_prefix="$acl_final_exec_prefix"
  11693. eval x=\"$x\"
  11694. exec_prefix="$acl_save_exec_prefix"
  11695. prefix="$acl_save_prefix"
  11696. if test "X$x" = "X-L$additional_libdir"; then
  11697. haveit=yes
  11698. break
  11699. fi
  11700. done
  11701. if test -z "$haveit"; then
  11702. if test -d "$additional_libdir"; then
  11703. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11704. fi
  11705. fi
  11706. fi
  11707. fi
  11708. ;;
  11709. -R*)
  11710. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11711. if test "$enable_rpath" != no; then
  11712. haveit=
  11713. for x in $rpathdirs; do
  11714. if test "X$x" = "X$dir"; then
  11715. haveit=yes
  11716. break
  11717. fi
  11718. done
  11719. if test -z "$haveit"; then
  11720. rpathdirs="$rpathdirs $dir"
  11721. fi
  11722. haveit=
  11723. for x in $ltrpathdirs; do
  11724. if test "X$x" = "X$dir"; then
  11725. haveit=yes
  11726. break
  11727. fi
  11728. done
  11729. if test -z "$haveit"; then
  11730. ltrpathdirs="$ltrpathdirs $dir"
  11731. fi
  11732. fi
  11733. ;;
  11734. -l*)
  11735. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11736. ;;
  11737. *.la)
  11738. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11739. ;;
  11740. *)
  11741. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11742. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11743. ;;
  11744. esac
  11745. done
  11746. fi
  11747. else
  11748. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11749. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11750. fi
  11751. fi
  11752. fi
  11753. done
  11754. done
  11755. if test "X$rpathdirs" != "X"; then
  11756. if test -n "$acl_hardcode_libdir_separator"; then
  11757. alldirs=
  11758. for found_dir in $rpathdirs; do
  11759. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11760. done
  11761. acl_save_libdir="$libdir"
  11762. libdir="$alldirs"
  11763. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11764. libdir="$acl_save_libdir"
  11765. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11766. else
  11767. for found_dir in $rpathdirs; do
  11768. acl_save_libdir="$libdir"
  11769. libdir="$found_dir"
  11770. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11771. libdir="$acl_save_libdir"
  11772. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11773. done
  11774. fi
  11775. fi
  11776. if test "X$ltrpathdirs" != "X"; then
  11777. for found_dir in $ltrpathdirs; do
  11778. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11779. done
  11780. fi
  11781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11782. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11783. if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
  11784. $as_echo_n "(cached) " >&6
  11785. else
  11786. gt_save_CPPFLAGS="$CPPFLAGS"
  11787. CPPFLAGS="$CPPFLAGS $INCINTL"
  11788. gt_save_LIBS="$LIBS"
  11789. LIBS="$LIBS $LIBINTL"
  11790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11791. /* end confdefs.h. */
  11792. #include <libintl.h>
  11793. $gt_revision_test_code
  11794. extern int _nl_msg_cat_cntr;
  11795. extern
  11796. #ifdef __cplusplus
  11797. "C"
  11798. #endif
  11799. const char *_nl_expand_alias (const char *);
  11800. int
  11801. main ()
  11802. {
  11803. bindtextdomain ("", "");
  11804. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11805. ;
  11806. return 0;
  11807. }
  11808. _ACEOF
  11809. if ac_fn_cxx_try_link "$LINENO"; then :
  11810. eval "$gt_func_gnugettext_libintl=yes"
  11811. else
  11812. eval "$gt_func_gnugettext_libintl=no"
  11813. fi
  11814. rm -f core conftest.err conftest.$ac_objext \
  11815. conftest$ac_exeext conftest.$ac_ext
  11816. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11817. LIBS="$LIBS $LIBICONV"
  11818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11819. /* end confdefs.h. */
  11820. #include <libintl.h>
  11821. $gt_revision_test_code
  11822. extern int _nl_msg_cat_cntr;
  11823. extern
  11824. #ifdef __cplusplus
  11825. "C"
  11826. #endif
  11827. const char *_nl_expand_alias (const char *);
  11828. int
  11829. main ()
  11830. {
  11831. bindtextdomain ("", "");
  11832. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_cxx_try_link "$LINENO"; then :
  11838. LIBINTL="$LIBINTL $LIBICONV"
  11839. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11840. eval "$gt_func_gnugettext_libintl=yes"
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext \
  11843. conftest$ac_exeext conftest.$ac_ext
  11844. fi
  11845. CPPFLAGS="$gt_save_CPPFLAGS"
  11846. LIBS="$gt_save_LIBS"
  11847. fi
  11848. eval ac_res=\$$gt_func_gnugettext_libintl
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11850. $as_echo "$ac_res" >&6; }
  11851. fi
  11852. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11853. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11854. && test "$PACKAGE" != gettext-runtime \
  11855. && test "$PACKAGE" != gettext-tools; }; then
  11856. gt_use_preinstalled_gnugettext=yes
  11857. else
  11858. LIBINTL=
  11859. LTLIBINTL=
  11860. INCINTL=
  11861. fi
  11862. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11863. nls_cv_use_gnu_gettext=yes
  11864. fi
  11865. fi
  11866. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11867. BUILD_INCLUDED_LIBINTL=yes
  11868. USE_INCLUDED_LIBINTL=yes
  11869. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11870. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11871. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11872. fi
  11873. CATOBJEXT=
  11874. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11875. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11876. CATOBJEXT=.gmo
  11877. fi
  11878. if test -n "$INTL_MACOSX_LIBS"; then
  11879. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11880. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11881. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11882. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11883. fi
  11884. fi
  11885. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11886. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11887. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11888. else
  11889. USE_NLS=no
  11890. fi
  11891. fi
  11892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11893. $as_echo_n "checking whether to use NLS... " >&6; }
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11895. $as_echo "$USE_NLS" >&6; }
  11896. if test "$USE_NLS" = "yes"; then
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11898. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11899. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11900. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11901. gt_source="external libintl"
  11902. else
  11903. gt_source="libc"
  11904. fi
  11905. else
  11906. gt_source="included intl directory"
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11909. $as_echo "$gt_source" >&6; }
  11910. fi
  11911. if test "$USE_NLS" = "yes"; then
  11912. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11913. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11915. $as_echo_n "checking how to link with libintl... " >&6; }
  11916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11917. $as_echo "$LIBINTL" >&6; }
  11918. for element in $INCINTL; do
  11919. haveit=
  11920. for x in $CPPFLAGS; do
  11921. acl_save_prefix="$prefix"
  11922. prefix="$acl_final_prefix"
  11923. acl_save_exec_prefix="$exec_prefix"
  11924. exec_prefix="$acl_final_exec_prefix"
  11925. eval x=\"$x\"
  11926. exec_prefix="$acl_save_exec_prefix"
  11927. prefix="$acl_save_prefix"
  11928. if test "X$x" = "X$element"; then
  11929. haveit=yes
  11930. break
  11931. fi
  11932. done
  11933. if test -z "$haveit"; then
  11934. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11935. fi
  11936. done
  11937. fi
  11938. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11939. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11940. fi
  11941. POSUB=po
  11942. fi
  11943. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11944. BUILD_INCLUDED_LIBINTL=yes
  11945. fi
  11946. nls_cv_header_intl=
  11947. nls_cv_header_libgt=
  11948. DATADIRNAME=share
  11949. INSTOBJEXT=.mo
  11950. GENCAT=gencat
  11951. INTLOBJS=
  11952. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11953. INTLOBJS="\$(GETTOBJS)"
  11954. fi
  11955. INTL_LIBTOOL_SUFFIX_PREFIX=
  11956. INTLLIBS="$LIBINTL"
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11958. $as_echo_n "checking for error_at_line... " >&6; }
  11959. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11960. $as_echo_n "(cached) " >&6
  11961. else
  11962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11963. /* end confdefs.h. */
  11964. #include <error.h>
  11965. int
  11966. main ()
  11967. {
  11968. error_at_line (0, 0, "", 0, "an error occurred");
  11969. ;
  11970. return 0;
  11971. }
  11972. _ACEOF
  11973. if ac_fn_cxx_try_link "$LINENO"; then :
  11974. ac_cv_lib_error_at_line=yes
  11975. else
  11976. ac_cv_lib_error_at_line=no
  11977. fi
  11978. rm -f core conftest.err conftest.$ac_objext \
  11979. conftest$ac_exeext conftest.$ac_ext
  11980. fi
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11982. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11983. if test $ac_cv_lib_error_at_line = no; then
  11984. case " $LIBOBJS " in
  11985. *" error.$ac_objext "* ) ;;
  11986. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11987. ;;
  11988. esac
  11989. fi
  11990. if test $ac_cv_c_compiler_gnu = yes; then
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11992. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11993. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11994. $as_echo_n "(cached) " >&6
  11995. else
  11996. ac_pattern="Autoconf.*'x'"
  11997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11998. /* end confdefs.h. */
  11999. #include <sgtty.h>
  12000. Autoconf TIOCGETP
  12001. _ACEOF
  12002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12003. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12004. ac_cv_prog_gcc_traditional=yes
  12005. else
  12006. ac_cv_prog_gcc_traditional=no
  12007. fi
  12008. rm -f conftest*
  12009. if test $ac_cv_prog_gcc_traditional = no; then
  12010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12011. /* end confdefs.h. */
  12012. #include <termio.h>
  12013. Autoconf TCGETA
  12014. _ACEOF
  12015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12016. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12017. ac_cv_prog_gcc_traditional=yes
  12018. fi
  12019. rm -f conftest*
  12020. fi
  12021. fi
  12022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12023. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12024. if test $ac_cv_prog_gcc_traditional = yes; then
  12025. CC="$CC -traditional"
  12026. fi
  12027. fi
  12028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12029. $as_echo_n "checking for working memcmp... " >&6; }
  12030. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12031. $as_echo_n "(cached) " >&6
  12032. else
  12033. if test "$cross_compiling" = yes; then :
  12034. ac_cv_func_memcmp_working=no
  12035. else
  12036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12037. /* end confdefs.h. */
  12038. $ac_includes_default
  12039. int
  12040. main ()
  12041. {
  12042. /* Some versions of memcmp are not 8-bit clean. */
  12043. char c0 = '\100', c1 = '\200', c2 = '\201';
  12044. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12045. return 1;
  12046. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12047. or more and with at least one buffer not starting on a 4-byte boundary.
  12048. William Lewis provided this test program. */
  12049. {
  12050. char foo[21];
  12051. char bar[21];
  12052. int i;
  12053. for (i = 0; i < 4; i++)
  12054. {
  12055. char *a = foo + i;
  12056. char *b = bar + i;
  12057. strcpy (a, "--------01111111");
  12058. strcpy (b, "--------10000000");
  12059. if (memcmp (a, b, 16) >= 0)
  12060. return 1;
  12061. }
  12062. return 0;
  12063. }
  12064. ;
  12065. return 0;
  12066. }
  12067. _ACEOF
  12068. if ac_fn_cxx_try_run "$LINENO"; then :
  12069. ac_cv_func_memcmp_working=yes
  12070. else
  12071. ac_cv_func_memcmp_working=no
  12072. fi
  12073. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12074. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12075. fi
  12076. fi
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12078. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12079. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12080. *" memcmp.$ac_objext "* ) ;;
  12081. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12082. ;;
  12083. esac
  12084. for ac_func in $ac_func_list
  12085. do :
  12086. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12087. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12088. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12089. cat >>confdefs.h <<_ACEOF
  12090. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12091. _ACEOF
  12092. fi
  12093. done
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12095. $as_echo_n "checking for working mktime... " >&6; }
  12096. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12097. $as_echo_n "(cached) " >&6
  12098. else
  12099. if test "$cross_compiling" = yes; then :
  12100. ac_cv_func_working_mktime=no
  12101. else
  12102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12103. /* end confdefs.h. */
  12104. /* Test program from Paul Eggert and Tony Leneis. */
  12105. #ifdef TIME_WITH_SYS_TIME
  12106. # include <sys/time.h>
  12107. # include <time.h>
  12108. #else
  12109. # ifdef HAVE_SYS_TIME_H
  12110. # include <sys/time.h>
  12111. # else
  12112. # include <time.h>
  12113. # endif
  12114. #endif
  12115. #include <limits.h>
  12116. #include <stdlib.h>
  12117. #ifdef HAVE_UNISTD_H
  12118. # include <unistd.h>
  12119. #endif
  12120. #ifndef HAVE_ALARM
  12121. # define alarm(X) /* empty */
  12122. #endif
  12123. /* Work around redefinition to rpl_putenv by other config tests. */
  12124. #undef putenv
  12125. static time_t time_t_max;
  12126. static time_t time_t_min;
  12127. /* Values we'll use to set the TZ environment variable. */
  12128. static const char *tz_strings[] = {
  12129. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  12130. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12131. };
  12132. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12133. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12134. Based on a problem report from Andreas Jaeger. */
  12135. static int
  12136. spring_forward_gap ()
  12137. {
  12138. /* glibc (up to about 1998-10-07) failed this test. */
  12139. struct tm tm;
  12140. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12141. instead of "TZ=America/Vancouver" in order to detect the bug even
  12142. on systems that don't support the Olson extension, or don't have the
  12143. full zoneinfo tables installed. */
  12144. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12145. tm.tm_year = 98;
  12146. tm.tm_mon = 3;
  12147. tm.tm_mday = 5;
  12148. tm.tm_hour = 2;
  12149. tm.tm_min = 0;
  12150. tm.tm_sec = 0;
  12151. tm.tm_isdst = -1;
  12152. return mktime (&tm) != (time_t) -1;
  12153. }
  12154. static int
  12155. mktime_test1 (time_t now)
  12156. {
  12157. struct tm *lt;
  12158. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12159. }
  12160. static int
  12161. mktime_test (time_t now)
  12162. {
  12163. return (mktime_test1 (now)
  12164. && mktime_test1 ((time_t) (time_t_max - now))
  12165. && mktime_test1 ((time_t) (time_t_min + now)));
  12166. }
  12167. static int
  12168. irix_6_4_bug ()
  12169. {
  12170. /* Based on code from Ariel Faigon. */
  12171. struct tm tm;
  12172. tm.tm_year = 96;
  12173. tm.tm_mon = 3;
  12174. tm.tm_mday = 0;
  12175. tm.tm_hour = 0;
  12176. tm.tm_min = 0;
  12177. tm.tm_sec = 0;
  12178. tm.tm_isdst = -1;
  12179. mktime (&tm);
  12180. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12181. }
  12182. static int
  12183. bigtime_test (int j)
  12184. {
  12185. struct tm tm;
  12186. time_t now;
  12187. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12188. now = mktime (&tm);
  12189. if (now != (time_t) -1)
  12190. {
  12191. struct tm *lt = localtime (&now);
  12192. if (! (lt
  12193. && lt->tm_year == tm.tm_year
  12194. && lt->tm_mon == tm.tm_mon
  12195. && lt->tm_mday == tm.tm_mday
  12196. && lt->tm_hour == tm.tm_hour
  12197. && lt->tm_min == tm.tm_min
  12198. && lt->tm_sec == tm.tm_sec
  12199. && lt->tm_yday == tm.tm_yday
  12200. && lt->tm_wday == tm.tm_wday
  12201. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12202. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12203. return 0;
  12204. }
  12205. return 1;
  12206. }
  12207. static int
  12208. year_2050_test ()
  12209. {
  12210. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12211. ignoring leap seconds. */
  12212. unsigned long int answer = 2527315200UL;
  12213. struct tm tm;
  12214. time_t t;
  12215. tm.tm_year = 2050 - 1900;
  12216. tm.tm_mon = 2 - 1;
  12217. tm.tm_mday = 1;
  12218. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12219. tm.tm_isdst = -1;
  12220. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12221. instead of "TZ=America/Vancouver" in order to detect the bug even
  12222. on systems that don't support the Olson extension, or don't have the
  12223. full zoneinfo tables installed. */
  12224. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  12225. t = mktime (&tm);
  12226. /* Check that the result is either a failure, or close enough
  12227. to the correct answer that we can assume the discrepancy is
  12228. due to leap seconds. */
  12229. return (t == (time_t) -1
  12230. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12231. }
  12232. int
  12233. main ()
  12234. {
  12235. time_t t, delta;
  12236. int i, j;
  12237. /* This test makes some buggy mktime implementations loop.
  12238. Give up after 60 seconds; a mktime slower than that
  12239. isn't worth using anyway. */
  12240. alarm (60);
  12241. for (;;)
  12242. {
  12243. t = (time_t_max << 1) + 1;
  12244. if (t <= time_t_max)
  12245. break;
  12246. time_t_max = t;
  12247. }
  12248. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12249. delta = time_t_max / 997; /* a suitable prime number */
  12250. for (i = 0; i < N_STRINGS; i++)
  12251. {
  12252. if (tz_strings[i])
  12253. putenv ((char*) tz_strings[i]);
  12254. for (t = 0; t <= time_t_max - delta; t += delta)
  12255. if (! mktime_test (t))
  12256. return 1;
  12257. if (! (mktime_test ((time_t) 1)
  12258. && mktime_test ((time_t) (60 * 60))
  12259. && mktime_test ((time_t) (60 * 60 * 24))))
  12260. return 1;
  12261. for (j = 1; ; j <<= 1)
  12262. if (! bigtime_test (j))
  12263. return 1;
  12264. else if (INT_MAX / 2 < j)
  12265. break;
  12266. if (! bigtime_test (INT_MAX))
  12267. return 1;
  12268. }
  12269. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12270. }
  12271. _ACEOF
  12272. if ac_fn_cxx_try_run "$LINENO"; then :
  12273. ac_cv_func_working_mktime=yes
  12274. else
  12275. ac_cv_func_working_mktime=no
  12276. fi
  12277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12279. fi
  12280. fi
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12282. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12283. if test $ac_cv_func_working_mktime = no; then
  12284. case " $LIBOBJS " in
  12285. *" mktime.$ac_objext "* ) ;;
  12286. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12287. ;;
  12288. esac
  12289. fi
  12290. for ac_func in getpagesize
  12291. do :
  12292. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12293. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define HAVE_GETPAGESIZE 1
  12296. _ACEOF
  12297. fi
  12298. done
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12300. $as_echo_n "checking for working mmap... " >&6; }
  12301. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12302. $as_echo_n "(cached) " >&6
  12303. else
  12304. if test "$cross_compiling" = yes; then :
  12305. ac_cv_func_mmap_fixed_mapped=no
  12306. else
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. $ac_includes_default
  12310. /* malloc might have been renamed as rpl_malloc. */
  12311. #undef malloc
  12312. /* Thanks to Mike Haertel and Jim Avera for this test.
  12313. Here is a matrix of mmap possibilities:
  12314. mmap private not fixed
  12315. mmap private fixed at somewhere currently unmapped
  12316. mmap private fixed at somewhere already mapped
  12317. mmap shared not fixed
  12318. mmap shared fixed at somewhere currently unmapped
  12319. mmap shared fixed at somewhere already mapped
  12320. For private mappings, we should verify that changes cannot be read()
  12321. back from the file, nor mmap's back from the file at a different
  12322. address. (There have been systems where private was not correctly
  12323. implemented like the infamous i386 svr4.0, and systems where the
  12324. VM page cache was not coherent with the file system buffer cache
  12325. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12326. For shared mappings, we should conversely verify that changes get
  12327. propagated back to all the places they're supposed to be.
  12328. Grep wants private fixed already mapped.
  12329. The main things grep needs to know about mmap are:
  12330. * does it exist and is it safe to write into the mmap'd area
  12331. * how to use it (BSD variants) */
  12332. #include <fcntl.h>
  12333. #include <sys/mman.h>
  12334. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12335. char *malloc ();
  12336. #endif
  12337. /* This mess was copied from the GNU getpagesize.h. */
  12338. #ifndef HAVE_GETPAGESIZE
  12339. # ifdef _SC_PAGESIZE
  12340. # define getpagesize() sysconf(_SC_PAGESIZE)
  12341. # else /* no _SC_PAGESIZE */
  12342. # ifdef HAVE_SYS_PARAM_H
  12343. # include <sys/param.h>
  12344. # ifdef EXEC_PAGESIZE
  12345. # define getpagesize() EXEC_PAGESIZE
  12346. # else /* no EXEC_PAGESIZE */
  12347. # ifdef NBPG
  12348. # define getpagesize() NBPG * CLSIZE
  12349. # ifndef CLSIZE
  12350. # define CLSIZE 1
  12351. # endif /* no CLSIZE */
  12352. # else /* no NBPG */
  12353. # ifdef NBPC
  12354. # define getpagesize() NBPC
  12355. # else /* no NBPC */
  12356. # ifdef PAGESIZE
  12357. # define getpagesize() PAGESIZE
  12358. # endif /* PAGESIZE */
  12359. # endif /* no NBPC */
  12360. # endif /* no NBPG */
  12361. # endif /* no EXEC_PAGESIZE */
  12362. # else /* no HAVE_SYS_PARAM_H */
  12363. # define getpagesize() 8192 /* punt totally */
  12364. # endif /* no HAVE_SYS_PARAM_H */
  12365. # endif /* no _SC_PAGESIZE */
  12366. #endif /* no HAVE_GETPAGESIZE */
  12367. int
  12368. main ()
  12369. {
  12370. char *data, *data2, *data3;
  12371. const char *cdata2;
  12372. int i, pagesize;
  12373. int fd, fd2;
  12374. pagesize = getpagesize ();
  12375. /* First, make a file with some known garbage in it. */
  12376. data = (char *) malloc (pagesize);
  12377. if (!data)
  12378. return 1;
  12379. for (i = 0; i < pagesize; ++i)
  12380. *(data + i) = rand ();
  12381. umask (0);
  12382. fd = creat ("conftest.mmap", 0600);
  12383. if (fd < 0)
  12384. return 2;
  12385. if (write (fd, data, pagesize) != pagesize)
  12386. return 3;
  12387. close (fd);
  12388. /* Next, check that the tail of a page is zero-filled. File must have
  12389. non-zero length, otherwise we risk SIGBUS for entire page. */
  12390. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12391. if (fd2 < 0)
  12392. return 4;
  12393. cdata2 = "";
  12394. if (write (fd2, cdata2, 1) != 1)
  12395. return 5;
  12396. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12397. if (data2 == MAP_FAILED)
  12398. return 6;
  12399. for (i = 0; i < pagesize; ++i)
  12400. if (*(data2 + i))
  12401. return 7;
  12402. close (fd2);
  12403. if (munmap (data2, pagesize))
  12404. return 8;
  12405. /* Next, try to mmap the file at a fixed address which already has
  12406. something else allocated at it. If we can, also make sure that
  12407. we see the same garbage. */
  12408. fd = open ("conftest.mmap", O_RDWR);
  12409. if (fd < 0)
  12410. return 9;
  12411. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12412. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12413. return 10;
  12414. for (i = 0; i < pagesize; ++i)
  12415. if (*(data + i) != *(data2 + i))
  12416. return 11;
  12417. /* Finally, make sure that changes to the mapped area do not
  12418. percolate back to the file as seen by read(). (This is a bug on
  12419. some variants of i386 svr4.0.) */
  12420. for (i = 0; i < pagesize; ++i)
  12421. *(data2 + i) = *(data2 + i) + 1;
  12422. data3 = (char *) malloc (pagesize);
  12423. if (!data3)
  12424. return 12;
  12425. if (read (fd, data3, pagesize) != pagesize)
  12426. return 13;
  12427. for (i = 0; i < pagesize; ++i)
  12428. if (*(data + i) != *(data3 + i))
  12429. return 14;
  12430. close (fd);
  12431. return 0;
  12432. }
  12433. _ACEOF
  12434. if ac_fn_cxx_try_run "$LINENO"; then :
  12435. ac_cv_func_mmap_fixed_mapped=yes
  12436. else
  12437. ac_cv_func_mmap_fixed_mapped=no
  12438. fi
  12439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12440. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12441. fi
  12442. fi
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12444. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12445. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12446. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12447. fi
  12448. rm -f conftest.mmap conftest.txt
  12449. for ac_header in sys/select.h sys/socket.h
  12450. do :
  12451. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12452. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12453. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12454. cat >>confdefs.h <<_ACEOF
  12455. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12456. _ACEOF
  12457. fi
  12458. done
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12460. $as_echo_n "checking types of arguments for select... " >&6; }
  12461. if test "${ac_cv_func_select_args+set}" = set; then :
  12462. $as_echo_n "(cached) " >&6
  12463. else
  12464. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12465. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12466. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. $ac_includes_default
  12470. #ifdef HAVE_SYS_SELECT_H
  12471. # include <sys/select.h>
  12472. #endif
  12473. #ifdef HAVE_SYS_SOCKET_H
  12474. # include <sys/socket.h>
  12475. #endif
  12476. int
  12477. main ()
  12478. {
  12479. extern int select ($ac_arg1,
  12480. $ac_arg234, $ac_arg234, $ac_arg234,
  12481. $ac_arg5);
  12482. ;
  12483. return 0;
  12484. }
  12485. _ACEOF
  12486. if ac_fn_cxx_try_compile "$LINENO"; then :
  12487. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12488. fi
  12489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12490. done
  12491. done
  12492. done
  12493. # Provide a safe default value.
  12494. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12497. $as_echo "$ac_cv_func_select_args" >&6; }
  12498. ac_save_IFS=$IFS; IFS=','
  12499. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12500. IFS=$ac_save_IFS
  12501. shift
  12502. cat >>confdefs.h <<_ACEOF
  12503. #define SELECT_TYPE_ARG1 $1
  12504. _ACEOF
  12505. cat >>confdefs.h <<_ACEOF
  12506. #define SELECT_TYPE_ARG234 ($2)
  12507. _ACEOF
  12508. cat >>confdefs.h <<_ACEOF
  12509. #define SELECT_TYPE_ARG5 ($3)
  12510. _ACEOF
  12511. rm -f conftest*
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12513. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12514. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12515. $as_echo_n "(cached) " >&6
  12516. else
  12517. rm -f conftest.sym conftest.file
  12518. echo >conftest.file
  12519. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12520. if test "$cross_compiling" = yes; then :
  12521. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12522. else
  12523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12524. /* end confdefs.h. */
  12525. $ac_includes_default
  12526. int
  12527. main ()
  12528. {
  12529. struct stat sbuf;
  12530. /* Linux will dereference the symlink and fail, as required by POSIX.
  12531. That is better in the sense that it means we will not
  12532. have to compile and use the lstat wrapper. */
  12533. return lstat ("conftest.sym/", &sbuf) == 0;
  12534. ;
  12535. return 0;
  12536. }
  12537. _ACEOF
  12538. if ac_fn_cxx_try_run "$LINENO"; then :
  12539. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12540. else
  12541. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12542. fi
  12543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12545. fi
  12546. else
  12547. # If the `ln -s' command failed, then we probably don't even
  12548. # have an lstat function.
  12549. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12550. fi
  12551. rm -f conftest.sym conftest.file
  12552. fi
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12554. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12555. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12556. cat >>confdefs.h <<_ACEOF
  12557. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12558. _ACEOF
  12559. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12560. case " $LIBOBJS " in
  12561. *" lstat.$ac_objext "* ) ;;
  12562. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12563. ;;
  12564. esac
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12567. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12568. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12569. $as_echo_n "(cached) " >&6
  12570. else
  12571. if test "$cross_compiling" = yes; then :
  12572. ac_cv_func_stat_empty_string_bug=yes
  12573. else
  12574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12575. /* end confdefs.h. */
  12576. $ac_includes_default
  12577. int
  12578. main ()
  12579. {
  12580. struct stat sbuf;
  12581. return stat ("", &sbuf) == 0;
  12582. ;
  12583. return 0;
  12584. }
  12585. _ACEOF
  12586. if ac_fn_cxx_try_run "$LINENO"; then :
  12587. ac_cv_func_stat_empty_string_bug=no
  12588. else
  12589. ac_cv_func_stat_empty_string_bug=yes
  12590. fi
  12591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12593. fi
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12596. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12597. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12598. case " $LIBOBJS " in
  12599. *" stat.$ac_objext "* ) ;;
  12600. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12601. ;;
  12602. esac
  12603. cat >>confdefs.h <<_ACEOF
  12604. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12605. _ACEOF
  12606. fi
  12607. for ac_func in strftime
  12608. do :
  12609. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12610. if test "x$ac_cv_func_strftime" = x""yes; then :
  12611. cat >>confdefs.h <<_ACEOF
  12612. #define HAVE_STRFTIME 1
  12613. _ACEOF
  12614. else
  12615. # strftime is in -lintl on SCO UNIX.
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12617. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12618. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12619. $as_echo_n "(cached) " >&6
  12620. else
  12621. ac_check_lib_save_LIBS=$LIBS
  12622. LIBS="-lintl $LIBS"
  12623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12624. /* end confdefs.h. */
  12625. /* Override any GCC internal prototype to avoid an error.
  12626. Use char because int might match the return type of a GCC
  12627. builtin and then its argument prototype would still apply. */
  12628. #ifdef __cplusplus
  12629. extern "C"
  12630. #endif
  12631. char strftime ();
  12632. int
  12633. main ()
  12634. {
  12635. return strftime ();
  12636. ;
  12637. return 0;
  12638. }
  12639. _ACEOF
  12640. if ac_fn_cxx_try_link "$LINENO"; then :
  12641. ac_cv_lib_intl_strftime=yes
  12642. else
  12643. ac_cv_lib_intl_strftime=no
  12644. fi
  12645. rm -f core conftest.err conftest.$ac_objext \
  12646. conftest$ac_exeext conftest.$ac_ext
  12647. LIBS=$ac_check_lib_save_LIBS
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12650. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12651. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12652. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12653. LIBS="-lintl $LIBS"
  12654. fi
  12655. fi
  12656. done
  12657. for ac_func in vprintf
  12658. do :
  12659. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12660. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12661. cat >>confdefs.h <<_ACEOF
  12662. #define HAVE_VPRINTF 1
  12663. _ACEOF
  12664. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12665. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12666. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12667. fi
  12668. fi
  12669. done
  12670. for ac_header in vfork.h
  12671. do :
  12672. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12673. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12674. cat >>confdefs.h <<_ACEOF
  12675. #define HAVE_VFORK_H 1
  12676. _ACEOF
  12677. fi
  12678. done
  12679. for ac_func in fork vfork
  12680. do :
  12681. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12682. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12683. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12684. cat >>confdefs.h <<_ACEOF
  12685. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12686. _ACEOF
  12687. fi
  12688. done
  12689. if test "x$ac_cv_func_fork" = xyes; then
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12691. $as_echo_n "checking for working fork... " >&6; }
  12692. if test "${ac_cv_func_fork_works+set}" = set; then :
  12693. $as_echo_n "(cached) " >&6
  12694. else
  12695. if test "$cross_compiling" = yes; then :
  12696. ac_cv_func_fork_works=cross
  12697. else
  12698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12699. /* end confdefs.h. */
  12700. $ac_includes_default
  12701. int
  12702. main ()
  12703. {
  12704. /* By Ruediger Kuhlmann. */
  12705. return fork () < 0;
  12706. ;
  12707. return 0;
  12708. }
  12709. _ACEOF
  12710. if ac_fn_cxx_try_run "$LINENO"; then :
  12711. ac_cv_func_fork_works=yes
  12712. else
  12713. ac_cv_func_fork_works=no
  12714. fi
  12715. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12716. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12717. fi
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12720. $as_echo "$ac_cv_func_fork_works" >&6; }
  12721. else
  12722. ac_cv_func_fork_works=$ac_cv_func_fork
  12723. fi
  12724. if test "x$ac_cv_func_fork_works" = xcross; then
  12725. case $host in
  12726. *-*-amigaos* | *-*-msdosdjgpp*)
  12727. # Override, as these systems have only a dummy fork() stub
  12728. ac_cv_func_fork_works=no
  12729. ;;
  12730. *)
  12731. ac_cv_func_fork_works=yes
  12732. ;;
  12733. esac
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12735. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12736. fi
  12737. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12738. if test "x$ac_cv_func_vfork" = xyes; then
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12740. $as_echo_n "checking for working vfork... " >&6; }
  12741. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12742. $as_echo_n "(cached) " >&6
  12743. else
  12744. if test "$cross_compiling" = yes; then :
  12745. ac_cv_func_vfork_works=cross
  12746. else
  12747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12748. /* end confdefs.h. */
  12749. /* Thanks to Paul Eggert for this test. */
  12750. $ac_includes_default
  12751. #include <sys/wait.h>
  12752. #ifdef HAVE_VFORK_H
  12753. # include <vfork.h>
  12754. #endif
  12755. /* On some sparc systems, changes by the child to local and incoming
  12756. argument registers are propagated back to the parent. The compiler
  12757. is told about this with #include <vfork.h>, but some compilers
  12758. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12759. static variable whose address is put into a register that is
  12760. clobbered by the vfork. */
  12761. static void
  12762. #ifdef __cplusplus
  12763. sparc_address_test (int arg)
  12764. # else
  12765. sparc_address_test (arg) int arg;
  12766. #endif
  12767. {
  12768. static pid_t child;
  12769. if (!child) {
  12770. child = vfork ();
  12771. if (child < 0) {
  12772. perror ("vfork");
  12773. _exit(2);
  12774. }
  12775. if (!child) {
  12776. arg = getpid();
  12777. write(-1, "", 0);
  12778. _exit (arg);
  12779. }
  12780. }
  12781. }
  12782. int
  12783. main ()
  12784. {
  12785. pid_t parent = getpid ();
  12786. pid_t child;
  12787. sparc_address_test (0);
  12788. child = vfork ();
  12789. if (child == 0) {
  12790. /* Here is another test for sparc vfork register problems. This
  12791. test uses lots of local variables, at least as many local
  12792. variables as main has allocated so far including compiler
  12793. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12794. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12795. reuse the register of parent for one of the local variables,
  12796. since it will think that parent can't possibly be used any more
  12797. in this routine. Assigning to the local variable will thus
  12798. munge parent in the parent process. */
  12799. pid_t
  12800. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12801. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12802. /* Convince the compiler that p..p7 are live; otherwise, it might
  12803. use the same hardware register for all 8 local variables. */
  12804. if (p != p1 || p != p2 || p != p3 || p != p4
  12805. || p != p5 || p != p6 || p != p7)
  12806. _exit(1);
  12807. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12808. from child file descriptors. If the child closes a descriptor
  12809. before it execs or exits, this munges the parent's descriptor
  12810. as well. Test for this by closing stdout in the child. */
  12811. _exit(close(fileno(stdout)) != 0);
  12812. } else {
  12813. int status;
  12814. struct stat st;
  12815. while (wait(&status) != child)
  12816. ;
  12817. return (
  12818. /* Was there some problem with vforking? */
  12819. child < 0
  12820. /* Did the child fail? (This shouldn't happen.) */
  12821. || status
  12822. /* Did the vfork/compiler bug occur? */
  12823. || parent != getpid()
  12824. /* Did the file descriptor bug occur? */
  12825. || fstat(fileno(stdout), &st) != 0
  12826. );
  12827. }
  12828. }
  12829. _ACEOF
  12830. if ac_fn_cxx_try_run "$LINENO"; then :
  12831. ac_cv_func_vfork_works=yes
  12832. else
  12833. ac_cv_func_vfork_works=no
  12834. fi
  12835. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12836. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12837. fi
  12838. fi
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12840. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12841. fi;
  12842. if test "x$ac_cv_func_fork_works" = xcross; then
  12843. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12845. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12846. fi
  12847. if test "x$ac_cv_func_vfork_works" = xyes; then
  12848. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12849. else
  12850. $as_echo "#define vfork fork" >>confdefs.h
  12851. fi
  12852. if test "x$ac_cv_func_fork_works" = xyes; then
  12853. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12854. fi
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12856. $as_echo_n "checking for working strtod... " >&6; }
  12857. if test "${ac_cv_func_strtod+set}" = set; then :
  12858. $as_echo_n "(cached) " >&6
  12859. else
  12860. if test "$cross_compiling" = yes; then :
  12861. ac_cv_func_strtod=no
  12862. else
  12863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12864. /* end confdefs.h. */
  12865. $ac_includes_default
  12866. #ifndef strtod
  12867. double strtod ();
  12868. #endif
  12869. int
  12870. main()
  12871. {
  12872. {
  12873. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12874. char *string = " +69";
  12875. char *term;
  12876. double value;
  12877. value = strtod (string, &term);
  12878. if (value != 69 || term != (string + 4))
  12879. return 1;
  12880. }
  12881. {
  12882. /* Under Solaris 2.4, strtod returns the wrong value for the
  12883. terminating character under some conditions. */
  12884. char *string = "NaN";
  12885. char *term;
  12886. strtod (string, &term);
  12887. if (term != string && *(term - 1) == 0)
  12888. return 1;
  12889. }
  12890. return 0;
  12891. }
  12892. _ACEOF
  12893. if ac_fn_cxx_try_run "$LINENO"; then :
  12894. ac_cv_func_strtod=yes
  12895. else
  12896. ac_cv_func_strtod=no
  12897. fi
  12898. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12899. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12900. fi
  12901. fi
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12903. $as_echo "$ac_cv_func_strtod" >&6; }
  12904. if test $ac_cv_func_strtod = no; then
  12905. case " $LIBOBJS " in
  12906. *" strtod.$ac_objext "* ) ;;
  12907. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12908. ;;
  12909. esac
  12910. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12911. if test "x$ac_cv_func_pow" = x""yes; then :
  12912. fi
  12913. if test $ac_cv_func_pow = no; then
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12915. $as_echo_n "checking for pow in -lm... " >&6; }
  12916. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12917. $as_echo_n "(cached) " >&6
  12918. else
  12919. ac_check_lib_save_LIBS=$LIBS
  12920. LIBS="-lm $LIBS"
  12921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12922. /* end confdefs.h. */
  12923. /* Override any GCC internal prototype to avoid an error.
  12924. Use char because int might match the return type of a GCC
  12925. builtin and then its argument prototype would still apply. */
  12926. #ifdef __cplusplus
  12927. extern "C"
  12928. #endif
  12929. char pow ();
  12930. int
  12931. main ()
  12932. {
  12933. return pow ();
  12934. ;
  12935. return 0;
  12936. }
  12937. _ACEOF
  12938. if ac_fn_cxx_try_link "$LINENO"; then :
  12939. ac_cv_lib_m_pow=yes
  12940. else
  12941. ac_cv_lib_m_pow=no
  12942. fi
  12943. rm -f core conftest.err conftest.$ac_objext \
  12944. conftest$ac_exeext conftest.$ac_ext
  12945. LIBS=$ac_check_lib_save_LIBS
  12946. fi
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12948. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12949. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12950. POW_LIB=-lm
  12951. else
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12953. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12954. fi
  12955. fi
  12956. fi
  12957. for ac_func in __argz_count \
  12958. __argz_next \
  12959. __argz_stringify \
  12960. atexit \
  12961. ftruncate \
  12962. getcwd \
  12963. gethostbyaddr \
  12964. gethostbyname \
  12965. getifaddrs \
  12966. getpagesize \
  12967. inet_ntoa \
  12968. inet_ntop \
  12969. memchr \
  12970. memmove \
  12971. mempcpy \
  12972. memset \
  12973. mkdir \
  12974. munmap \
  12975. nl_langinfo \
  12976. posix_memalign \
  12977. pow \
  12978. putenv \
  12979. rmdir \
  12980. select \
  12981. setlocale \
  12982. sleep \
  12983. socket \
  12984. stpcpy \
  12985. strcasecmp \
  12986. strchr \
  12987. strcspn \
  12988. strdup \
  12989. strerror \
  12990. strncasecmp \
  12991. strstr \
  12992. strtol \
  12993. strtoul \
  12994. strtoull \
  12995. tzset \
  12996. unsetenv \
  12997. usleep \
  12998. utime
  12999. do :
  13000. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13001. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13002. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13003. cat >>confdefs.h <<_ACEOF
  13004. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13005. _ACEOF
  13006. fi
  13007. done
  13008. if test "x$enable_epoll" = "xyes"; then
  13009. for ac_func in epoll_create
  13010. do :
  13011. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13012. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13013. cat >>confdefs.h <<_ACEOF
  13014. #define HAVE_EPOLL_CREATE 1
  13015. _ACEOF
  13016. have_epoll=yes
  13017. fi
  13018. done
  13019. if test "x$have_epoll" = "xyes"; then
  13020. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13021. fi
  13022. fi
  13023. if test "x$have_epoll" = "xyes"; then
  13024. HAVE_EPOLL_TRUE=
  13025. HAVE_EPOLL_FALSE='#'
  13026. else
  13027. HAVE_EPOLL_TRUE='#'
  13028. HAVE_EPOLL_FALSE=
  13029. fi
  13030. for ac_func in posix_fallocate
  13031. do :
  13032. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13033. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13034. cat >>confdefs.h <<_ACEOF
  13035. #define HAVE_POSIX_FALLOCATE 1
  13036. _ACEOF
  13037. have_posix_fallocate=yes
  13038. fi
  13039. done
  13040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
  13041. $as_echo_n "checking for fallocate... " >&6; }
  13042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13043. /* end confdefs.h. */
  13044. #include <fcntl.h>
  13045. int
  13046. main ()
  13047. {
  13048. fallocate(2, 0, 0, 4096);
  13049. ;
  13050. return 0;
  13051. }
  13052. _ACEOF
  13053. if ac_fn_cxx_try_compile "$LINENO"; then :
  13054. have_fallocate=yes
  13055. else
  13056. have_fallocate=no
  13057. fi
  13058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fallocate" >&5
  13060. $as_echo "$have_fallocate" >&6; }
  13061. if test "x$have_fallocate" = "xyes"; then
  13062. $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
  13063. fi
  13064. if test "x$have_posix_fallocate" = "xyes" ||
  13065. test "x$have_fallocate" = "xyes"; then
  13066. $as_echo "#define HAVE_SOME_FALLOCATE 1" >>confdefs.h
  13067. fi
  13068. if test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"; then
  13069. HAVE_SOME_FALLOCATE_TRUE=
  13070. HAVE_SOME_FALLOCATE_FALSE='#'
  13071. else
  13072. HAVE_SOME_FALLOCATE_TRUE='#'
  13073. HAVE_SOME_FALLOCATE_FALSE=
  13074. fi
  13075. for ac_func in asctime_r
  13076. do :
  13077. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13078. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13079. cat >>confdefs.h <<_ACEOF
  13080. #define HAVE_ASCTIME_R 1
  13081. _ACEOF
  13082. if true; then
  13083. HAVE_ASCTIME_R_TRUE=
  13084. HAVE_ASCTIME_R_FALSE='#'
  13085. else
  13086. HAVE_ASCTIME_R_TRUE='#'
  13087. HAVE_ASCTIME_R_FALSE=
  13088. fi
  13089. else
  13090. if false; then
  13091. HAVE_ASCTIME_R_TRUE=
  13092. HAVE_ASCTIME_R_FALSE='#'
  13093. else
  13094. HAVE_ASCTIME_R_TRUE='#'
  13095. HAVE_ASCTIME_R_FALSE=
  13096. fi
  13097. fi
  13098. done
  13099. for ac_func in basename
  13100. do :
  13101. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13102. if test "x$ac_cv_func_basename" = x""yes; then :
  13103. cat >>confdefs.h <<_ACEOF
  13104. #define HAVE_BASENAME 1
  13105. _ACEOF
  13106. if true; then
  13107. HAVE_BASENAME_TRUE=
  13108. HAVE_BASENAME_FALSE='#'
  13109. else
  13110. HAVE_BASENAME_TRUE='#'
  13111. HAVE_BASENAME_FALSE=
  13112. fi
  13113. else
  13114. if false; then
  13115. HAVE_BASENAME_TRUE=
  13116. HAVE_BASENAME_FALSE='#'
  13117. else
  13118. HAVE_BASENAME_TRUE='#'
  13119. HAVE_BASENAME_FALSE=
  13120. fi
  13121. fi
  13122. done
  13123. for ac_func in gai_strerror
  13124. do :
  13125. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13126. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13127. cat >>confdefs.h <<_ACEOF
  13128. #define HAVE_GAI_STRERROR 1
  13129. _ACEOF
  13130. if true; then
  13131. HAVE_GAI_STRERROR_TRUE=
  13132. HAVE_GAI_STRERROR_FALSE='#'
  13133. else
  13134. HAVE_GAI_STRERROR_TRUE='#'
  13135. HAVE_GAI_STRERROR_FALSE=
  13136. fi
  13137. else
  13138. if false; then
  13139. HAVE_GAI_STRERROR_TRUE=
  13140. HAVE_GAI_STRERROR_FALSE='#'
  13141. else
  13142. HAVE_GAI_STRERROR_TRUE='#'
  13143. HAVE_GAI_STRERROR_FALSE=
  13144. fi
  13145. fi
  13146. done
  13147. for ac_func in getaddrinfo
  13148. do :
  13149. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13150. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13151. cat >>confdefs.h <<_ACEOF
  13152. #define HAVE_GETADDRINFO 1
  13153. _ACEOF
  13154. if true; then
  13155. HAVE_GETADDRINFO_TRUE=
  13156. HAVE_GETADDRINFO_FALSE='#'
  13157. else
  13158. HAVE_GETADDRINFO_TRUE='#'
  13159. HAVE_GETADDRINFO_FALSE=
  13160. fi
  13161. else
  13162. if false; then
  13163. HAVE_GETADDRINFO_TRUE=
  13164. HAVE_GETADDRINFO_FALSE='#'
  13165. else
  13166. HAVE_GETADDRINFO_TRUE='#'
  13167. HAVE_GETADDRINFO_FALSE=
  13168. fi
  13169. fi
  13170. done
  13171. for ac_func in gettimeofday
  13172. do :
  13173. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13174. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13175. cat >>confdefs.h <<_ACEOF
  13176. #define HAVE_GETTIMEOFDAY 1
  13177. _ACEOF
  13178. if true; then
  13179. HAVE_GETTIMEOFDAY_TRUE=
  13180. HAVE_GETTIMEOFDAY_FALSE='#'
  13181. else
  13182. HAVE_GETTIMEOFDAY_TRUE='#'
  13183. HAVE_GETTIMEOFDAY_FALSE=
  13184. fi
  13185. else
  13186. if false; then
  13187. HAVE_GETTIMEOFDAY_TRUE=
  13188. HAVE_GETTIMEOFDAY_FALSE='#'
  13189. else
  13190. HAVE_GETTIMEOFDAY_TRUE='#'
  13191. HAVE_GETTIMEOFDAY_FALSE=
  13192. fi
  13193. fi
  13194. done
  13195. for ac_func in inet_aton
  13196. do :
  13197. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13198. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13199. cat >>confdefs.h <<_ACEOF
  13200. #define HAVE_INET_ATON 1
  13201. _ACEOF
  13202. if true; then
  13203. HAVE_INET_ATON_TRUE=
  13204. HAVE_INET_ATON_FALSE='#'
  13205. else
  13206. HAVE_INET_ATON_TRUE='#'
  13207. HAVE_INET_ATON_FALSE=
  13208. fi
  13209. else
  13210. if false; then
  13211. HAVE_INET_ATON_TRUE=
  13212. HAVE_INET_ATON_FALSE='#'
  13213. else
  13214. HAVE_INET_ATON_TRUE='#'
  13215. HAVE_INET_ATON_FALSE=
  13216. fi
  13217. fi
  13218. done
  13219. for ac_func in localtime_r
  13220. do :
  13221. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13222. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13223. cat >>confdefs.h <<_ACEOF
  13224. #define HAVE_LOCALTIME_R 1
  13225. _ACEOF
  13226. if true; then
  13227. HAVE_LOCALTIME_R_TRUE=
  13228. HAVE_LOCALTIME_R_FALSE='#'
  13229. else
  13230. HAVE_LOCALTIME_R_TRUE='#'
  13231. HAVE_LOCALTIME_R_FALSE=
  13232. fi
  13233. else
  13234. if false; then
  13235. HAVE_LOCALTIME_R_TRUE=
  13236. HAVE_LOCALTIME_R_FALSE='#'
  13237. else
  13238. HAVE_LOCALTIME_R_TRUE='#'
  13239. HAVE_LOCALTIME_R_FALSE=
  13240. fi
  13241. fi
  13242. done
  13243. for ac_func in strptime
  13244. do :
  13245. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13246. if test "x$ac_cv_func_strptime" = x""yes; then :
  13247. cat >>confdefs.h <<_ACEOF
  13248. #define HAVE_STRPTIME 1
  13249. _ACEOF
  13250. if true; then
  13251. HAVE_STRPTIME_TRUE=
  13252. HAVE_STRPTIME_FALSE='#'
  13253. else
  13254. HAVE_STRPTIME_TRUE='#'
  13255. HAVE_STRPTIME_FALSE=
  13256. fi
  13257. else
  13258. if false; then
  13259. HAVE_STRPTIME_TRUE=
  13260. HAVE_STRPTIME_FALSE='#'
  13261. else
  13262. HAVE_STRPTIME_TRUE='#'
  13263. HAVE_STRPTIME_FALSE=
  13264. fi
  13265. fi
  13266. done
  13267. for ac_func in timegm
  13268. do :
  13269. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13270. if test "x$ac_cv_func_timegm" = x""yes; then :
  13271. cat >>confdefs.h <<_ACEOF
  13272. #define HAVE_TIMEGM 1
  13273. _ACEOF
  13274. if true; then
  13275. HAVE_TIMEGM_TRUE=
  13276. HAVE_TIMEGM_FALSE='#'
  13277. else
  13278. HAVE_TIMEGM_TRUE='#'
  13279. HAVE_TIMEGM_FALSE=
  13280. fi
  13281. else
  13282. if false; then
  13283. HAVE_TIMEGM_TRUE=
  13284. HAVE_TIMEGM_FALSE='#'
  13285. else
  13286. HAVE_TIMEGM_TRUE='#'
  13287. HAVE_TIMEGM_FALSE=
  13288. fi
  13289. fi
  13290. done
  13291. for ac_func in daemon
  13292. do :
  13293. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13294. if test "x$ac_cv_func_daemon" = x""yes; then :
  13295. cat >>confdefs.h <<_ACEOF
  13296. #define HAVE_DAEMON 1
  13297. _ACEOF
  13298. have_daemon=yes
  13299. fi
  13300. done
  13301. if test "x$have_daemon" = "xyes"; then
  13302. HAVE_DAEMON_TRUE=
  13303. HAVE_DAEMON_FALSE='#'
  13304. else
  13305. HAVE_DAEMON_TRUE='#'
  13306. HAVE_DAEMON_FALSE=
  13307. fi
  13308. for ac_func in clock_gettime
  13309. do :
  13310. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13311. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13312. cat >>confdefs.h <<_ACEOF
  13313. #define HAVE_CLOCK_GETTIME 1
  13314. _ACEOF
  13315. have_clock_gettime=yes
  13316. fi
  13317. done
  13318. if test "x$have_clock_gettime" != "xyes"; then
  13319. for ac_func in mach_absolute_time
  13320. do :
  13321. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13322. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13323. cat >>confdefs.h <<_ACEOF
  13324. #define HAVE_MACH_ABSOLUTE_TIME 1
  13325. _ACEOF
  13326. have_mach_absolute_time=yes
  13327. fi
  13328. done
  13329. fi
  13330. if test "x$have_mach_absolute_time" = "xyes"; then
  13331. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13332. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13333. else
  13334. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13335. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13336. fi
  13337. for ac_func in poll
  13338. do :
  13339. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13340. if test "x$ac_cv_func_poll" = x""yes; then :
  13341. cat >>confdefs.h <<_ACEOF
  13342. #define HAVE_POLL 1
  13343. _ACEOF
  13344. have_poll=yes
  13345. fi
  13346. done
  13347. if test "x$have_poll" = "xyes"; then
  13348. HAVE_POLL_TRUE=
  13349. HAVE_POLL_FALSE='#'
  13350. else
  13351. HAVE_POLL_TRUE='#'
  13352. HAVE_POLL_FALSE=
  13353. fi
  13354. case "$target" in
  13355. *mingw*)
  13356. if true; then
  13357. HAVE_GETADDRINFO_TRUE=
  13358. HAVE_GETADDRINFO_FALSE='#'
  13359. else
  13360. HAVE_GETADDRINFO_TRUE='#'
  13361. HAVE_GETADDRINFO_FALSE=
  13362. fi
  13363. if false; then
  13364. HAVE_GAI_STRERROR_TRUE=
  13365. HAVE_GAI_STRERROR_FALSE='#'
  13366. else
  13367. HAVE_GAI_STRERROR_TRUE='#'
  13368. HAVE_GAI_STRERROR_FALSE=
  13369. fi
  13370. if test "x$have_clock_gettime" != "xyes"; then
  13371. if true; then
  13372. HAVE_TIMEGETTIME_TRUE=
  13373. HAVE_TIMEGETTIME_FALSE='#'
  13374. else
  13375. HAVE_TIMEGETTIME_TRUE='#'
  13376. HAVE_TIMEGETTIME_FALSE=
  13377. fi
  13378. fi
  13379. ;;
  13380. *)
  13381. if false; then
  13382. HAVE_TIMEGETTIME_TRUE=
  13383. HAVE_TIMEGETTIME_FALSE='#'
  13384. else
  13385. HAVE_TIMEGETTIME_TRUE='#'
  13386. HAVE_TIMEGETTIME_FALSE=
  13387. fi
  13388. ;;
  13389. esac
  13390. for ac_func in port_associate
  13391. do :
  13392. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13393. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13394. cat >>confdefs.h <<_ACEOF
  13395. #define HAVE_PORT_ASSOCIATE 1
  13396. _ACEOF
  13397. have_port_associate=yes
  13398. fi
  13399. done
  13400. if test "x$have_port_associate" = "xyes"; then
  13401. HAVE_PORT_ASSOCIATE_TRUE=
  13402. HAVE_PORT_ASSOCIATE_FALSE='#'
  13403. else
  13404. HAVE_PORT_ASSOCIATE_TRUE='#'
  13405. HAVE_PORT_ASSOCIATE_FALSE=
  13406. fi
  13407. for ac_func in kqueue
  13408. do :
  13409. ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  13410. if test "x$ac_cv_func_kqueue" = x""yes; then :
  13411. cat >>confdefs.h <<_ACEOF
  13412. #define HAVE_KQUEUE 1
  13413. _ACEOF
  13414. have_kqueue=yes
  13415. fi
  13416. done
  13417. if test "x$have_kqueue" = "xyes"; then
  13418. HAVE_KQUEUE_TRUE=
  13419. HAVE_KQUEUE_FALSE='#'
  13420. else
  13421. HAVE_KQUEUE_TRUE='#'
  13422. HAVE_KQUEUE_FALSE=
  13423. fi
  13424. if test "x$have_kqueue" = "xyes"; then
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
  13426. $as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
  13427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13428. /* end confdefs.h. */
  13429. #include <sys/types.h>
  13430. #include <sys/event.h>
  13431. #include <sys/time.h>
  13432. int
  13433. main ()
  13434. {
  13435. struct kevent event;
  13436. event.udata = reinterpret_cast<intptr_t>(&event);
  13437. ;
  13438. return 0;
  13439. }
  13440. _ACEOF
  13441. if ac_fn_cxx_try_compile "$LINENO"; then :
  13442. kevent_udata_intptr_t=yes
  13443. else
  13444. kevent_udata_intptr_t=no
  13445. fi
  13446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
  13448. $as_echo "$kevent_udata_intptr_t" >&6; }
  13449. if test "x$kevent_udata_intptr_t" = "xyes"; then
  13450. $as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
  13451. fi
  13452. fi
  13453. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13454. "
  13455. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13456. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13457. fi
  13458. # Check struct option.name is assignable from const char*. struct
  13459. # option.name in opensolaris is of type char*. In Linux, it is const
  13460. # char*
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13462. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13464. /* end confdefs.h. */
  13465. #include <unistd.h>
  13466. #include <getopt.h>
  13467. int
  13468. main ()
  13469. {
  13470. const char* s = "const char";
  13471. option op;
  13472. op.name = s;
  13473. ;
  13474. return 0;
  13475. }
  13476. _ACEOF
  13477. if ac_fn_cxx_try_compile "$LINENO"; then :
  13478. have_option_const_name=yes
  13479. else
  13480. have_option_const_name=no
  13481. fi
  13482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13484. $as_echo "$have_option_const_name" >&6; }
  13485. if test "x$have_option_const_name" = "xyes"; then
  13486. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13487. fi
  13488. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13489. cat >confcache <<\_ACEOF
  13490. # This file is a shell script that caches the results of configure
  13491. # tests run on this system so they can be shared between configure
  13492. # scripts and configure runs, see configure's option --config-cache.
  13493. # It is not useful on other systems. If it contains results you don't
  13494. # want to keep, you may remove or edit it.
  13495. #
  13496. # config.status only pays attention to the cache file if you give it
  13497. # the --recheck option to rerun configure.
  13498. #
  13499. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13500. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13501. # following values.
  13502. _ACEOF
  13503. # The following way of writing the cache mishandles newlines in values,
  13504. # but we know of no workaround that is simple, portable, and efficient.
  13505. # So, we kill variables containing newlines.
  13506. # Ultrix sh set writes to stderr and can't be redirected directly,
  13507. # and sets the high bit in the cache file unless we assign to the vars.
  13508. (
  13509. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13510. eval ac_val=\$$ac_var
  13511. case $ac_val in #(
  13512. *${as_nl}*)
  13513. case $ac_var in #(
  13514. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13515. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13516. esac
  13517. case $ac_var in #(
  13518. _ | IFS | as_nl) ;; #(
  13519. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13520. *) { eval $ac_var=; unset $ac_var;} ;;
  13521. esac ;;
  13522. esac
  13523. done
  13524. (set) 2>&1 |
  13525. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13526. *${as_nl}ac_space=\ *)
  13527. # `set' does not quote correctly, so add quotes: double-quote
  13528. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13529. sed -n \
  13530. "s/'/'\\\\''/g;
  13531. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13532. ;; #(
  13533. *)
  13534. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13535. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13536. ;;
  13537. esac |
  13538. sort
  13539. ) |
  13540. sed '
  13541. /^ac_cv_env_/b end
  13542. t clear
  13543. :clear
  13544. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13545. t end
  13546. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13547. :end' >>confcache
  13548. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13549. if test -w "$cache_file"; then
  13550. test "x$cache_file" != "x/dev/null" &&
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13552. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13553. cat confcache >$cache_file
  13554. else
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13556. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13557. fi
  13558. fi
  13559. rm -f confcache
  13560. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13561. # Let make expand exec_prefix.
  13562. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13563. DEFS=-DHAVE_CONFIG_H
  13564. ac_libobjs=
  13565. ac_ltlibobjs=
  13566. U=
  13567. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13568. # 1. Remove the extension, and $U if already installed.
  13569. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13570. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13571. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13572. # will be set to the directory where LIBOBJS objects are built.
  13573. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13574. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13575. done
  13576. LIBOBJS=$ac_libobjs
  13577. LTLIBOBJS=$ac_ltlibobjs
  13578. if test -n "$EXEEXT"; then
  13579. am__EXEEXT_TRUE=
  13580. am__EXEEXT_FALSE='#'
  13581. else
  13582. am__EXEEXT_TRUE='#'
  13583. am__EXEEXT_FALSE=
  13584. fi
  13585. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13586. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13588. fi
  13589. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13590. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13592. fi
  13593. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13594. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13595. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13596. fi
  13597. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13598. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13600. fi
  13601. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13602. as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
  13603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13604. fi
  13605. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13606. as_fn_error $? "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13608. fi
  13609. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13610. as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
  13611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13612. fi
  13613. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13614. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13616. fi
  13617. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13618. as_fn_error $? "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13620. fi
  13621. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13622. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13623. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13624. fi
  13625. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13626. as_fn_error $? "conditional \"ENABLE_BITTORRENT\" was never defined.
  13627. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13628. fi
  13629. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13630. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13632. fi
  13633. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13634. as_fn_error $? "conditional \"ENABLE_METALINK\" was never defined.
  13635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13636. fi
  13637. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13638. as_fn_error $? "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13640. fi
  13641. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13642. as_fn_error $? "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13644. fi
  13645. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13646. as_fn_error $? "conditional \"ENABLE_XML_RPC\" was never defined.
  13647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13648. fi
  13649. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13650. as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
  13651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13652. fi
  13653. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13654. as_fn_error $? "conditional \"HAVE_LIBEXPAT\" was never defined.
  13655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13656. fi
  13657. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13658. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13660. fi
  13661. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13662. as_fn_error $? "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13664. fi
  13665. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13666. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  13667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13668. fi
  13669. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13670. as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined.
  13671. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13672. fi
  13673. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13674. as_fn_error $? "conditional \"HAVE_EPOLL\" was never defined.
  13675. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13676. fi
  13677. if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
  13678. as_fn_error $? "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
  13679. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13680. fi
  13681. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13682. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13684. fi
  13685. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13686. as_fn_error $? "conditional \"HAVE_ASCTIME_R\" was never defined.
  13687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13688. fi
  13689. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13690. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13691. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13692. fi
  13693. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13694. as_fn_error $? "conditional \"HAVE_BASENAME\" was never defined.
  13695. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13696. fi
  13697. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13698. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13700. fi
  13701. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13702. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13703. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13704. fi
  13705. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13706. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13707. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13708. fi
  13709. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13710. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13712. fi
  13713. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13714. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13716. fi
  13717. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13718. as_fn_error $? "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13720. fi
  13721. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13722. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13724. fi
  13725. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13726. as_fn_error $? "conditional \"HAVE_INET_ATON\" was never defined.
  13727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13728. fi
  13729. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13730. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13732. fi
  13733. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13734. as_fn_error $? "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13736. fi
  13737. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13738. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13740. fi
  13741. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13742. as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
  13743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13744. fi
  13745. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13746. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13748. fi
  13749. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13750. as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
  13751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13752. fi
  13753. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13754. as_fn_error $? "conditional \"HAVE_DAEMON\" was never defined.
  13755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13756. fi
  13757. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13758. as_fn_error $? "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13760. fi
  13761. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13762. as_fn_error $? "conditional \"HAVE_POLL\" was never defined.
  13763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13764. fi
  13765. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13766. as_fn_error $? "conditional \"HAVE_GETADDRINFO\" was never defined.
  13767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13768. fi
  13769. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13770. as_fn_error $? "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13772. fi
  13773. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13774. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13776. fi
  13777. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13778. as_fn_error $? "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13780. fi
  13781. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13782. as_fn_error $? "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13784. fi
  13785. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  13786. as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined.
  13787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13788. fi
  13789. : ${CONFIG_STATUS=./config.status}
  13790. ac_write_fail=0
  13791. ac_clean_files_save=$ac_clean_files
  13792. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13794. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13795. as_write_fail=0
  13796. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13797. #! $SHELL
  13798. # Generated by $as_me.
  13799. # Run this file to recreate the current configuration.
  13800. # Compiler output produced by configure, useful for debugging
  13801. # configure, is in config.log if it exists.
  13802. debug=false
  13803. ac_cs_recheck=false
  13804. ac_cs_silent=false
  13805. SHELL=\${CONFIG_SHELL-$SHELL}
  13806. export SHELL
  13807. _ASEOF
  13808. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13809. ## -------------------- ##
  13810. ## M4sh Initialization. ##
  13811. ## -------------------- ##
  13812. # Be more Bourne compatible
  13813. DUALCASE=1; export DUALCASE # for MKS sh
  13814. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13815. emulate sh
  13816. NULLCMD=:
  13817. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13818. # is contrary to our usage. Disable this feature.
  13819. alias -g '${1+"$@"}'='"$@"'
  13820. setopt NO_GLOB_SUBST
  13821. else
  13822. case `(set -o) 2>/dev/null` in #(
  13823. *posix*) :
  13824. set -o posix ;; #(
  13825. *) :
  13826. ;;
  13827. esac
  13828. fi
  13829. as_nl='
  13830. '
  13831. export as_nl
  13832. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13833. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13834. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13835. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13836. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13837. # but without wasting forks for bash or zsh.
  13838. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13839. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13840. as_echo='print -r --'
  13841. as_echo_n='print -rn --'
  13842. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13843. as_echo='printf %s\n'
  13844. as_echo_n='printf %s'
  13845. else
  13846. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13847. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13848. as_echo_n='/usr/ucb/echo -n'
  13849. else
  13850. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13851. as_echo_n_body='eval
  13852. arg=$1;
  13853. case $arg in #(
  13854. *"$as_nl"*)
  13855. expr "X$arg" : "X\\(.*\\)$as_nl";
  13856. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13857. esac;
  13858. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13859. '
  13860. export as_echo_n_body
  13861. as_echo_n='sh -c $as_echo_n_body as_echo'
  13862. fi
  13863. export as_echo_body
  13864. as_echo='sh -c $as_echo_body as_echo'
  13865. fi
  13866. # The user is always right.
  13867. if test "${PATH_SEPARATOR+set}" != set; then
  13868. PATH_SEPARATOR=:
  13869. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13870. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13871. PATH_SEPARATOR=';'
  13872. }
  13873. fi
  13874. # IFS
  13875. # We need space, tab and new line, in precisely that order. Quoting is
  13876. # there to prevent editors from complaining about space-tab.
  13877. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13878. # splitting by setting IFS to empty value.)
  13879. IFS=" "" $as_nl"
  13880. # Find who we are. Look in the path if we contain no directory separator.
  13881. case $0 in #((
  13882. *[\\/]* ) as_myself=$0 ;;
  13883. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13884. for as_dir in $PATH
  13885. do
  13886. IFS=$as_save_IFS
  13887. test -z "$as_dir" && as_dir=.
  13888. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13889. done
  13890. IFS=$as_save_IFS
  13891. ;;
  13892. esac
  13893. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13894. # in which case we are not to be found in the path.
  13895. if test "x$as_myself" = x; then
  13896. as_myself=$0
  13897. fi
  13898. if test ! -f "$as_myself"; then
  13899. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13900. exit 1
  13901. fi
  13902. # Unset variables that we do not need and which cause bugs (e.g. in
  13903. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13904. # suppresses any "Segmentation fault" message there. '((' could
  13905. # trigger a bug in pdksh 5.2.14.
  13906. for as_var in BASH_ENV ENV MAIL MAILPATH
  13907. do eval test x\${$as_var+set} = xset \
  13908. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13909. done
  13910. PS1='$ '
  13911. PS2='> '
  13912. PS4='+ '
  13913. # NLS nuisances.
  13914. LC_ALL=C
  13915. export LC_ALL
  13916. LANGUAGE=C
  13917. export LANGUAGE
  13918. # CDPATH.
  13919. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13920. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13921. # ----------------------------------------
  13922. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13923. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13924. # script with STATUS, using 1 if that was 0.
  13925. as_fn_error ()
  13926. {
  13927. as_status=$1; test $as_status -eq 0 && as_status=1
  13928. if test "$4"; then
  13929. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13930. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13931. fi
  13932. $as_echo "$as_me: error: $2" >&2
  13933. as_fn_exit $as_status
  13934. } # as_fn_error
  13935. # as_fn_set_status STATUS
  13936. # -----------------------
  13937. # Set $? to STATUS, without forking.
  13938. as_fn_set_status ()
  13939. {
  13940. return $1
  13941. } # as_fn_set_status
  13942. # as_fn_exit STATUS
  13943. # -----------------
  13944. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13945. as_fn_exit ()
  13946. {
  13947. set +e
  13948. as_fn_set_status $1
  13949. exit $1
  13950. } # as_fn_exit
  13951. # as_fn_unset VAR
  13952. # ---------------
  13953. # Portably unset VAR.
  13954. as_fn_unset ()
  13955. {
  13956. { eval $1=; unset $1;}
  13957. }
  13958. as_unset=as_fn_unset
  13959. # as_fn_append VAR VALUE
  13960. # ----------------------
  13961. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13962. # advantage of any shell optimizations that allow amortized linear growth over
  13963. # repeated appends, instead of the typical quadratic growth present in naive
  13964. # implementations.
  13965. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13966. eval 'as_fn_append ()
  13967. {
  13968. eval $1+=\$2
  13969. }'
  13970. else
  13971. as_fn_append ()
  13972. {
  13973. eval $1=\$$1\$2
  13974. }
  13975. fi # as_fn_append
  13976. # as_fn_arith ARG...
  13977. # ------------------
  13978. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13979. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13980. # must be portable across $(()) and expr.
  13981. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13982. eval 'as_fn_arith ()
  13983. {
  13984. as_val=$(( $* ))
  13985. }'
  13986. else
  13987. as_fn_arith ()
  13988. {
  13989. as_val=`expr "$@" || test $? -eq 1`
  13990. }
  13991. fi # as_fn_arith
  13992. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13993. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13994. as_expr=expr
  13995. else
  13996. as_expr=false
  13997. fi
  13998. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13999. as_basename=basename
  14000. else
  14001. as_basename=false
  14002. fi
  14003. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14004. as_dirname=dirname
  14005. else
  14006. as_dirname=false
  14007. fi
  14008. as_me=`$as_basename -- "$0" ||
  14009. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14010. X"$0" : 'X\(//\)$' \| \
  14011. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14012. $as_echo X/"$0" |
  14013. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14014. s//\1/
  14015. q
  14016. }
  14017. /^X\/\(\/\/\)$/{
  14018. s//\1/
  14019. q
  14020. }
  14021. /^X\/\(\/\).*/{
  14022. s//\1/
  14023. q
  14024. }
  14025. s/.*/./; q'`
  14026. # Avoid depending upon Character Ranges.
  14027. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14028. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14029. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14030. as_cr_digits='0123456789'
  14031. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14032. ECHO_C= ECHO_N= ECHO_T=
  14033. case `echo -n x` in #(((((
  14034. -n*)
  14035. case `echo 'xy\c'` in
  14036. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14037. xy) ECHO_C='\c';;
  14038. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14039. ECHO_T=' ';;
  14040. esac;;
  14041. *)
  14042. ECHO_N='-n';;
  14043. esac
  14044. rm -f conf$$ conf$$.exe conf$$.file
  14045. if test -d conf$$.dir; then
  14046. rm -f conf$$.dir/conf$$.file
  14047. else
  14048. rm -f conf$$.dir
  14049. mkdir conf$$.dir 2>/dev/null
  14050. fi
  14051. if (echo >conf$$.file) 2>/dev/null; then
  14052. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14053. as_ln_s='ln -s'
  14054. # ... but there are two gotchas:
  14055. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14056. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14057. # In both cases, we have to default to `cp -p'.
  14058. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14059. as_ln_s='cp -p'
  14060. elif ln conf$$.file conf$$ 2>/dev/null; then
  14061. as_ln_s=ln
  14062. else
  14063. as_ln_s='cp -p'
  14064. fi
  14065. else
  14066. as_ln_s='cp -p'
  14067. fi
  14068. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14069. rmdir conf$$.dir 2>/dev/null
  14070. # as_fn_mkdir_p
  14071. # -------------
  14072. # Create "$as_dir" as a directory, including parents if necessary.
  14073. as_fn_mkdir_p ()
  14074. {
  14075. case $as_dir in #(
  14076. -*) as_dir=./$as_dir;;
  14077. esac
  14078. test -d "$as_dir" || eval $as_mkdir_p || {
  14079. as_dirs=
  14080. while :; do
  14081. case $as_dir in #(
  14082. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14083. *) as_qdir=$as_dir;;
  14084. esac
  14085. as_dirs="'$as_qdir' $as_dirs"
  14086. as_dir=`$as_dirname -- "$as_dir" ||
  14087. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14088. X"$as_dir" : 'X\(//\)[^/]' \| \
  14089. X"$as_dir" : 'X\(//\)$' \| \
  14090. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14091. $as_echo X"$as_dir" |
  14092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14093. s//\1/
  14094. q
  14095. }
  14096. /^X\(\/\/\)[^/].*/{
  14097. s//\1/
  14098. q
  14099. }
  14100. /^X\(\/\/\)$/{
  14101. s//\1/
  14102. q
  14103. }
  14104. /^X\(\/\).*/{
  14105. s//\1/
  14106. q
  14107. }
  14108. s/.*/./; q'`
  14109. test -d "$as_dir" && break
  14110. done
  14111. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14112. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14113. } # as_fn_mkdir_p
  14114. if mkdir -p . 2>/dev/null; then
  14115. as_mkdir_p='mkdir -p "$as_dir"'
  14116. else
  14117. test -d ./-p && rmdir ./-p
  14118. as_mkdir_p=false
  14119. fi
  14120. if test -x / >/dev/null 2>&1; then
  14121. as_test_x='test -x'
  14122. else
  14123. if ls -dL / >/dev/null 2>&1; then
  14124. as_ls_L_option=L
  14125. else
  14126. as_ls_L_option=
  14127. fi
  14128. as_test_x='
  14129. eval sh -c '\''
  14130. if test -d "$1"; then
  14131. test -d "$1/.";
  14132. else
  14133. case $1 in #(
  14134. -*)set "./$1";;
  14135. esac;
  14136. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14137. ???[sx]*):;;*)false;;esac;fi
  14138. '\'' sh
  14139. '
  14140. fi
  14141. as_executable_p=$as_test_x
  14142. # Sed expression to map a string onto a valid CPP name.
  14143. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14144. # Sed expression to map a string onto a valid variable name.
  14145. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14146. exec 6>&1
  14147. ## ----------------------------------- ##
  14148. ## Main body of $CONFIG_STATUS script. ##
  14149. ## ----------------------------------- ##
  14150. _ASEOF
  14151. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14153. # Save the log message, to keep $0 and so on meaningful, and to
  14154. # report actual input values of CONFIG_FILES etc. instead of their
  14155. # values after options handling.
  14156. ac_log="
  14157. This file was extended by aria2 $as_me 1.10.3, which was
  14158. generated by GNU Autoconf 2.67. Invocation command line was
  14159. CONFIG_FILES = $CONFIG_FILES
  14160. CONFIG_HEADERS = $CONFIG_HEADERS
  14161. CONFIG_LINKS = $CONFIG_LINKS
  14162. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14163. $ $0 $@
  14164. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14165. "
  14166. _ACEOF
  14167. case $ac_config_files in *"
  14168. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14169. esac
  14170. case $ac_config_headers in *"
  14171. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14172. esac
  14173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14174. # Files that config.status was made for.
  14175. config_files="$ac_config_files"
  14176. config_headers="$ac_config_headers"
  14177. config_commands="$ac_config_commands"
  14178. _ACEOF
  14179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14180. ac_cs_usage="\
  14181. \`$as_me' instantiates files and other configuration actions
  14182. from templates according to the current configuration. Unless the files
  14183. and actions are specified as TAGs, all are instantiated by default.
  14184. Usage: $0 [OPTION]... [TAG]...
  14185. -h, --help print this help, then exit
  14186. -V, --version print version number and configuration settings, then exit
  14187. --config print configuration, then exit
  14188. -q, --quiet, --silent
  14189. do not print progress messages
  14190. -d, --debug don't remove temporary files
  14191. --recheck update $as_me by reconfiguring in the same conditions
  14192. --file=FILE[:TEMPLATE]
  14193. instantiate the configuration file FILE
  14194. --header=FILE[:TEMPLATE]
  14195. instantiate the configuration header FILE
  14196. Configuration files:
  14197. $config_files
  14198. Configuration headers:
  14199. $config_headers
  14200. Configuration commands:
  14201. $config_commands
  14202. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14203. aria2 home page: <http://aria2.sourceforge.net/>."
  14204. _ACEOF
  14205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14206. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14207. ac_cs_version="\\
  14208. aria2 config.status 1.10.3
  14209. configured by $0, generated by GNU Autoconf 2.67,
  14210. with options \\"\$ac_cs_config\\"
  14211. Copyright (C) 2010 Free Software Foundation, Inc.
  14212. This config.status script is free software; the Free Software Foundation
  14213. gives unlimited permission to copy, distribute and modify it."
  14214. ac_pwd='$ac_pwd'
  14215. srcdir='$srcdir'
  14216. INSTALL='$INSTALL'
  14217. MKDIR_P='$MKDIR_P'
  14218. AWK='$AWK'
  14219. test -n "\$AWK" || AWK=awk
  14220. _ACEOF
  14221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14222. # The default lists apply if the user does not specify any file.
  14223. ac_need_defaults=:
  14224. while test $# != 0
  14225. do
  14226. case $1 in
  14227. --*=?*)
  14228. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14229. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14230. ac_shift=:
  14231. ;;
  14232. --*=)
  14233. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14234. ac_optarg=
  14235. ac_shift=:
  14236. ;;
  14237. *)
  14238. ac_option=$1
  14239. ac_optarg=$2
  14240. ac_shift=shift
  14241. ;;
  14242. esac
  14243. case $ac_option in
  14244. # Handling of the options.
  14245. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14246. ac_cs_recheck=: ;;
  14247. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14248. $as_echo "$ac_cs_version"; exit ;;
  14249. --config | --confi | --conf | --con | --co | --c )
  14250. $as_echo "$ac_cs_config"; exit ;;
  14251. --debug | --debu | --deb | --de | --d | -d )
  14252. debug=: ;;
  14253. --file | --fil | --fi | --f )
  14254. $ac_shift
  14255. case $ac_optarg in
  14256. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14257. '') as_fn_error $? "missing file argument" ;;
  14258. esac
  14259. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14260. ac_need_defaults=false;;
  14261. --header | --heade | --head | --hea )
  14262. $ac_shift
  14263. case $ac_optarg in
  14264. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14265. esac
  14266. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14267. ac_need_defaults=false;;
  14268. --he | --h)
  14269. # Conflict between --help and --header
  14270. as_fn_error $? "ambiguous option: \`$1'
  14271. Try \`$0 --help' for more information.";;
  14272. --help | --hel | -h )
  14273. $as_echo "$ac_cs_usage"; exit ;;
  14274. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14275. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14276. ac_cs_silent=: ;;
  14277. # This is an error.
  14278. -*) as_fn_error $? "unrecognized option: \`$1'
  14279. Try \`$0 --help' for more information." ;;
  14280. *) as_fn_append ac_config_targets " $1"
  14281. ac_need_defaults=false ;;
  14282. esac
  14283. shift
  14284. done
  14285. ac_configure_extra_args=
  14286. if $ac_cs_silent; then
  14287. exec 6>/dev/null
  14288. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14289. fi
  14290. _ACEOF
  14291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14292. if \$ac_cs_recheck; then
  14293. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14294. shift
  14295. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14296. CONFIG_SHELL='$SHELL'
  14297. export CONFIG_SHELL
  14298. exec "\$@"
  14299. fi
  14300. _ACEOF
  14301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14302. exec 5>>config.log
  14303. {
  14304. echo
  14305. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14306. ## Running $as_me. ##
  14307. _ASBOX
  14308. $as_echo "$ac_log"
  14309. } >&5
  14310. _ACEOF
  14311. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14312. #
  14313. # INIT-COMMANDS
  14314. #
  14315. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14316. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14317. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14318. # from automake < 1.5.
  14319. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14320. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14321. LINGUAS="${LINGUAS-%UNSET%}"
  14322. _ACEOF
  14323. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14324. # Handling of arguments.
  14325. for ac_config_target in $ac_config_targets
  14326. do
  14327. case $ac_config_target in
  14328. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14329. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14330. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14331. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14332. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14333. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14334. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14335. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14336. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14337. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14338. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  14339. esac
  14340. done
  14341. # If the user did not use the arguments to specify the items to instantiate,
  14342. # then the envvar interface is used. Set only those that are not.
  14343. # We use the long form for the default assignment because of an extremely
  14344. # bizarre bug on SunOS 4.1.3.
  14345. if $ac_need_defaults; then
  14346. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14347. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14348. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14349. fi
  14350. # Have a temporary directory for convenience. Make it in the build tree
  14351. # simply because there is no reason against having it here, and in addition,
  14352. # creating and moving files from /tmp can sometimes cause problems.
  14353. # Hook for its removal unless debugging.
  14354. # Note that there is a small window in which the directory will not be cleaned:
  14355. # after its creation but before its name has been assigned to `$tmp'.
  14356. $debug ||
  14357. {
  14358. tmp=
  14359. trap 'exit_status=$?
  14360. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14361. ' 0
  14362. trap 'as_fn_exit 1' 1 2 13 15
  14363. }
  14364. # Create a (secure) tmp directory for tmp files.
  14365. {
  14366. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14367. test -n "$tmp" && test -d "$tmp"
  14368. } ||
  14369. {
  14370. tmp=./conf$$-$RANDOM
  14371. (umask 077 && mkdir "$tmp")
  14372. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14373. # Set up the scripts for CONFIG_FILES section.
  14374. # No need to generate them if there are no CONFIG_FILES.
  14375. # This happens for instance with `./config.status config.h'.
  14376. if test -n "$CONFIG_FILES"; then
  14377. ac_cr=`echo X | tr X '\015'`
  14378. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14379. # But we know of no other shell where ac_cr would be empty at this
  14380. # point, so we can use a bashism as a fallback.
  14381. if test "x$ac_cr" = x; then
  14382. eval ac_cr=\$\'\\r\'
  14383. fi
  14384. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14385. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14386. ac_cs_awk_cr='\\r'
  14387. else
  14388. ac_cs_awk_cr=$ac_cr
  14389. fi
  14390. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14391. _ACEOF
  14392. {
  14393. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14394. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14395. echo "_ACEOF"
  14396. } >conf$$subs.sh ||
  14397. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14398. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14399. ac_delim='%!_!# '
  14400. for ac_last_try in false false false false false :; do
  14401. . ./conf$$subs.sh ||
  14402. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14403. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14404. if test $ac_delim_n = $ac_delim_num; then
  14405. break
  14406. elif $ac_last_try; then
  14407. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14408. else
  14409. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14410. fi
  14411. done
  14412. rm -f conf$$subs.sh
  14413. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14414. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14415. _ACEOF
  14416. sed -n '
  14417. h
  14418. s/^/S["/; s/!.*/"]=/
  14419. p
  14420. g
  14421. s/^[^!]*!//
  14422. :repl
  14423. t repl
  14424. s/'"$ac_delim"'$//
  14425. t delim
  14426. :nl
  14427. h
  14428. s/\(.\{148\}\)..*/\1/
  14429. t more1
  14430. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14431. p
  14432. n
  14433. b repl
  14434. :more1
  14435. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14436. p
  14437. g
  14438. s/.\{148\}//
  14439. t nl
  14440. :delim
  14441. h
  14442. s/\(.\{148\}\)..*/\1/
  14443. t more2
  14444. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14445. p
  14446. b
  14447. :more2
  14448. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14449. p
  14450. g
  14451. s/.\{148\}//
  14452. t delim
  14453. ' <conf$$subs.awk | sed '
  14454. /^[^""]/{
  14455. N
  14456. s/\n//
  14457. }
  14458. ' >>$CONFIG_STATUS || ac_write_fail=1
  14459. rm -f conf$$subs.awk
  14460. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14461. _ACAWK
  14462. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14463. for (key in S) S_is_set[key] = 1
  14464. FS = ""
  14465. }
  14466. {
  14467. line = $ 0
  14468. nfields = split(line, field, "@")
  14469. substed = 0
  14470. len = length(field[1])
  14471. for (i = 2; i < nfields; i++) {
  14472. key = field[i]
  14473. keylen = length(key)
  14474. if (S_is_set[key]) {
  14475. value = S[key]
  14476. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14477. len += length(value) + length(field[++i])
  14478. substed = 1
  14479. } else
  14480. len += 1 + keylen
  14481. }
  14482. print line
  14483. }
  14484. _ACAWK
  14485. _ACEOF
  14486. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14487. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14488. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14489. else
  14490. cat
  14491. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14492. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14493. _ACEOF
  14494. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14495. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14496. # trailing colons and then remove the whole line if VPATH becomes empty
  14497. # (actually we leave an empty line to preserve line numbers).
  14498. if test "x$srcdir" = x.; then
  14499. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14500. h
  14501. s///
  14502. s/^/:/
  14503. s/[ ]*$/:/
  14504. s/:\$(srcdir):/:/g
  14505. s/:\${srcdir}:/:/g
  14506. s/:@srcdir@:/:/g
  14507. s/^:*//
  14508. s/:*$//
  14509. x
  14510. s/\(=[ ]*\).*/\1/
  14511. G
  14512. s/\n//
  14513. s/^[^=]*=[ ]*$//
  14514. }'
  14515. fi
  14516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14517. fi # test -n "$CONFIG_FILES"
  14518. # Set up the scripts for CONFIG_HEADERS section.
  14519. # No need to generate them if there are no CONFIG_HEADERS.
  14520. # This happens for instance with `./config.status Makefile'.
  14521. if test -n "$CONFIG_HEADERS"; then
  14522. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14523. BEGIN {
  14524. _ACEOF
  14525. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14526. # here-document in config.status, that substitutes the proper values into
  14527. # config.h.in to produce config.h.
  14528. # Create a delimiter string that does not exist in confdefs.h, to ease
  14529. # handling of long lines.
  14530. ac_delim='%!_!# '
  14531. for ac_last_try in false false :; do
  14532. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14533. if test -z "$ac_t"; then
  14534. break
  14535. elif $ac_last_try; then
  14536. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14537. else
  14538. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14539. fi
  14540. done
  14541. # For the awk script, D is an array of macro values keyed by name,
  14542. # likewise P contains macro parameters if any. Preserve backslash
  14543. # newline sequences.
  14544. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14545. sed -n '
  14546. s/.\{148\}/&'"$ac_delim"'/g
  14547. t rset
  14548. :rset
  14549. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14550. t def
  14551. d
  14552. :def
  14553. s/\\$//
  14554. t bsnl
  14555. s/["\\]/\\&/g
  14556. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14557. D["\1"]=" \3"/p
  14558. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14559. d
  14560. :bsnl
  14561. s/["\\]/\\&/g
  14562. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14563. D["\1"]=" \3\\\\\\n"\\/p
  14564. t cont
  14565. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14566. t cont
  14567. d
  14568. :cont
  14569. n
  14570. s/.\{148\}/&'"$ac_delim"'/g
  14571. t clear
  14572. :clear
  14573. s/\\$//
  14574. t bsnlc
  14575. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14576. d
  14577. :bsnlc
  14578. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14579. b cont
  14580. ' <confdefs.h | sed '
  14581. s/'"$ac_delim"'/"\\\
  14582. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14583. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14584. for (key in D) D_is_set[key] = 1
  14585. FS = ""
  14586. }
  14587. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14588. line = \$ 0
  14589. split(line, arg, " ")
  14590. if (arg[1] == "#") {
  14591. defundef = arg[2]
  14592. mac1 = arg[3]
  14593. } else {
  14594. defundef = substr(arg[1], 2)
  14595. mac1 = arg[2]
  14596. }
  14597. split(mac1, mac2, "(") #)
  14598. macro = mac2[1]
  14599. prefix = substr(line, 1, index(line, defundef) - 1)
  14600. if (D_is_set[macro]) {
  14601. # Preserve the white space surrounding the "#".
  14602. print prefix "define", macro P[macro] D[macro]
  14603. next
  14604. } else {
  14605. # Replace #undef with comments. This is necessary, for example,
  14606. # in the case of _POSIX_SOURCE, which is predefined and required
  14607. # on some systems where configure will not decide to define it.
  14608. if (defundef == "undef") {
  14609. print "/*", prefix defundef, macro, "*/"
  14610. next
  14611. }
  14612. }
  14613. }
  14614. { print }
  14615. _ACAWK
  14616. _ACEOF
  14617. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14618. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14619. fi # test -n "$CONFIG_HEADERS"
  14620. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14621. shift
  14622. for ac_tag
  14623. do
  14624. case $ac_tag in
  14625. :[FHLC]) ac_mode=$ac_tag; continue;;
  14626. esac
  14627. case $ac_mode$ac_tag in
  14628. :[FHL]*:*);;
  14629. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  14630. :[FH]-) ac_tag=-:-;;
  14631. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14632. esac
  14633. ac_save_IFS=$IFS
  14634. IFS=:
  14635. set x $ac_tag
  14636. IFS=$ac_save_IFS
  14637. shift
  14638. ac_file=$1
  14639. shift
  14640. case $ac_mode in
  14641. :L) ac_source=$1;;
  14642. :[FH])
  14643. ac_file_inputs=
  14644. for ac_f
  14645. do
  14646. case $ac_f in
  14647. -) ac_f="$tmp/stdin";;
  14648. *) # Look for the file first in the build tree, then in the source tree
  14649. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14650. # because $ac_f cannot contain `:'.
  14651. test -f "$ac_f" ||
  14652. case $ac_f in
  14653. [\\/$]*) false;;
  14654. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14655. esac ||
  14656. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  14657. esac
  14658. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14659. as_fn_append ac_file_inputs " '$ac_f'"
  14660. done
  14661. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14662. # use $as_me), people would be surprised to read:
  14663. # /* config.h. Generated by config.status. */
  14664. configure_input='Generated from '`
  14665. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14666. `' by configure.'
  14667. if test x"$ac_file" != x-; then
  14668. configure_input="$ac_file. $configure_input"
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14670. $as_echo "$as_me: creating $ac_file" >&6;}
  14671. fi
  14672. # Neutralize special characters interpreted by sed in replacement strings.
  14673. case $configure_input in #(
  14674. *\&* | *\|* | *\\* )
  14675. ac_sed_conf_input=`$as_echo "$configure_input" |
  14676. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14677. *) ac_sed_conf_input=$configure_input;;
  14678. esac
  14679. case $ac_tag in
  14680. *:-:* | *:-) cat >"$tmp/stdin" \
  14681. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14682. esac
  14683. ;;
  14684. esac
  14685. ac_dir=`$as_dirname -- "$ac_file" ||
  14686. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14687. X"$ac_file" : 'X\(//\)[^/]' \| \
  14688. X"$ac_file" : 'X\(//\)$' \| \
  14689. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14690. $as_echo X"$ac_file" |
  14691. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14692. s//\1/
  14693. q
  14694. }
  14695. /^X\(\/\/\)[^/].*/{
  14696. s//\1/
  14697. q
  14698. }
  14699. /^X\(\/\/\)$/{
  14700. s//\1/
  14701. q
  14702. }
  14703. /^X\(\/\).*/{
  14704. s//\1/
  14705. q
  14706. }
  14707. s/.*/./; q'`
  14708. as_dir="$ac_dir"; as_fn_mkdir_p
  14709. ac_builddir=.
  14710. case "$ac_dir" in
  14711. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14712. *)
  14713. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14714. # A ".." for each directory in $ac_dir_suffix.
  14715. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14716. case $ac_top_builddir_sub in
  14717. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14718. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14719. esac ;;
  14720. esac
  14721. ac_abs_top_builddir=$ac_pwd
  14722. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14723. # for backward compatibility:
  14724. ac_top_builddir=$ac_top_build_prefix
  14725. case $srcdir in
  14726. .) # We are building in place.
  14727. ac_srcdir=.
  14728. ac_top_srcdir=$ac_top_builddir_sub
  14729. ac_abs_top_srcdir=$ac_pwd ;;
  14730. [\\/]* | ?:[\\/]* ) # Absolute name.
  14731. ac_srcdir=$srcdir$ac_dir_suffix;
  14732. ac_top_srcdir=$srcdir
  14733. ac_abs_top_srcdir=$srcdir ;;
  14734. *) # Relative name.
  14735. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14736. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14737. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14738. esac
  14739. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14740. case $ac_mode in
  14741. :F)
  14742. #
  14743. # CONFIG_FILE
  14744. #
  14745. case $INSTALL in
  14746. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14747. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14748. esac
  14749. ac_MKDIR_P=$MKDIR_P
  14750. case $MKDIR_P in
  14751. [\\/$]* | ?:[\\/]* ) ;;
  14752. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14753. esac
  14754. _ACEOF
  14755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14756. # If the template does not know about datarootdir, expand it.
  14757. # FIXME: This hack should be removed a few years after 2.60.
  14758. ac_datarootdir_hack=; ac_datarootdir_seen=
  14759. ac_sed_dataroot='
  14760. /datarootdir/ {
  14761. p
  14762. q
  14763. }
  14764. /@datadir@/p
  14765. /@docdir@/p
  14766. /@infodir@/p
  14767. /@localedir@/p
  14768. /@mandir@/p'
  14769. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14770. *datarootdir*) ac_datarootdir_seen=yes;;
  14771. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14773. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14774. _ACEOF
  14775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14776. ac_datarootdir_hack='
  14777. s&@datadir@&$datadir&g
  14778. s&@docdir@&$docdir&g
  14779. s&@infodir@&$infodir&g
  14780. s&@localedir@&$localedir&g
  14781. s&@mandir@&$mandir&g
  14782. s&\\\${datarootdir}&$datarootdir&g' ;;
  14783. esac
  14784. _ACEOF
  14785. # Neutralize VPATH when `$srcdir' = `.'.
  14786. # Shell code in configure.ac might set extrasub.
  14787. # FIXME: do we really want to maintain this feature?
  14788. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14789. ac_sed_extra="$ac_vpsub
  14790. $extrasub
  14791. _ACEOF
  14792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14793. :t
  14794. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14795. s|@configure_input@|$ac_sed_conf_input|;t t
  14796. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14797. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14798. s&@srcdir@&$ac_srcdir&;t t
  14799. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14800. s&@top_srcdir@&$ac_top_srcdir&;t t
  14801. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14802. s&@builddir@&$ac_builddir&;t t
  14803. s&@abs_builddir@&$ac_abs_builddir&;t t
  14804. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14805. s&@INSTALL@&$ac_INSTALL&;t t
  14806. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14807. $ac_datarootdir_hack
  14808. "
  14809. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14810. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14811. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14812. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14813. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14815. which seems to be undefined. Please make sure it is defined" >&5
  14816. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14817. which seems to be undefined. Please make sure it is defined" >&2;}
  14818. rm -f "$tmp/stdin"
  14819. case $ac_file in
  14820. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14821. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14822. esac \
  14823. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14824. ;;
  14825. :H)
  14826. #
  14827. # CONFIG_HEADER
  14828. #
  14829. if test x"$ac_file" != x-; then
  14830. {
  14831. $as_echo "/* $configure_input */" \
  14832. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14833. } >"$tmp/config.h" \
  14834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14835. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14837. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14838. else
  14839. rm -f "$ac_file"
  14840. mv "$tmp/config.h" "$ac_file" \
  14841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14842. fi
  14843. else
  14844. $as_echo "/* $configure_input */" \
  14845. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14846. || as_fn_error $? "could not create -" "$LINENO" 5
  14847. fi
  14848. # Compute "$ac_file"'s index in $config_headers.
  14849. _am_arg="$ac_file"
  14850. _am_stamp_count=1
  14851. for _am_header in $config_headers :; do
  14852. case $_am_header in
  14853. $_am_arg | $_am_arg:* )
  14854. break ;;
  14855. * )
  14856. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14857. esac
  14858. done
  14859. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14860. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14861. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14862. X"$_am_arg" : 'X\(//\)$' \| \
  14863. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14864. $as_echo X"$_am_arg" |
  14865. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14866. s//\1/
  14867. q
  14868. }
  14869. /^X\(\/\/\)[^/].*/{
  14870. s//\1/
  14871. q
  14872. }
  14873. /^X\(\/\/\)$/{
  14874. s//\1/
  14875. q
  14876. }
  14877. /^X\(\/\).*/{
  14878. s//\1/
  14879. q
  14880. }
  14881. s/.*/./; q'`/stamp-h$_am_stamp_count
  14882. ;;
  14883. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14884. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14885. ;;
  14886. esac
  14887. case $ac_file$ac_mode in
  14888. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14889. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14890. # are listed without --file. Let's play safe and only enable the eval
  14891. # if we detect the quoting.
  14892. case $CONFIG_FILES in
  14893. *\'*) eval set x "$CONFIG_FILES" ;;
  14894. *) set x $CONFIG_FILES ;;
  14895. esac
  14896. shift
  14897. for mf
  14898. do
  14899. # Strip MF so we end up with the name of the file.
  14900. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14901. # Check whether this is an Automake generated Makefile or not.
  14902. # We used to match only the files named `Makefile.in', but
  14903. # some people rename them; so instead we look at the file content.
  14904. # Grep'ing the first line is not enough: some people post-process
  14905. # each Makefile.in and add a new line on top of each file to say so.
  14906. # Grep'ing the whole file is not good either: AIX grep has a line
  14907. # limit of 2048, but all sed's we know have understand at least 4000.
  14908. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14909. dirpart=`$as_dirname -- "$mf" ||
  14910. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14911. X"$mf" : 'X\(//\)[^/]' \| \
  14912. X"$mf" : 'X\(//\)$' \| \
  14913. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14914. $as_echo X"$mf" |
  14915. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14916. s//\1/
  14917. q
  14918. }
  14919. /^X\(\/\/\)[^/].*/{
  14920. s//\1/
  14921. q
  14922. }
  14923. /^X\(\/\/\)$/{
  14924. s//\1/
  14925. q
  14926. }
  14927. /^X\(\/\).*/{
  14928. s//\1/
  14929. q
  14930. }
  14931. s/.*/./; q'`
  14932. else
  14933. continue
  14934. fi
  14935. # Extract the definition of DEPDIR, am__include, and am__quote
  14936. # from the Makefile without running `make'.
  14937. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14938. test -z "$DEPDIR" && continue
  14939. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14940. test -z "am__include" && continue
  14941. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14942. # When using ansi2knr, U may be empty or an underscore; expand it
  14943. U=`sed -n 's/^U = //p' < "$mf"`
  14944. # Find all dependency output files, they are included files with
  14945. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14946. # simplest approach to changing $(DEPDIR) to its actual value in the
  14947. # expansion.
  14948. for file in `sed -n "
  14949. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14950. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14951. # Make sure the directory exists.
  14952. test -f "$dirpart/$file" && continue
  14953. fdir=`$as_dirname -- "$file" ||
  14954. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14955. X"$file" : 'X\(//\)[^/]' \| \
  14956. X"$file" : 'X\(//\)$' \| \
  14957. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14958. $as_echo X"$file" |
  14959. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14960. s//\1/
  14961. q
  14962. }
  14963. /^X\(\/\/\)[^/].*/{
  14964. s//\1/
  14965. q
  14966. }
  14967. /^X\(\/\/\)$/{
  14968. s//\1/
  14969. q
  14970. }
  14971. /^X\(\/\).*/{
  14972. s//\1/
  14973. q
  14974. }
  14975. s/.*/./; q'`
  14976. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14977. # echo "creating $dirpart/$file"
  14978. echo '# dummy' > "$dirpart/$file"
  14979. done
  14980. done
  14981. }
  14982. ;;
  14983. "po-directories":C)
  14984. for ac_file in $CONFIG_FILES; do
  14985. # Support "outfile[:infile[:infile...]]"
  14986. case "$ac_file" in
  14987. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14988. esac
  14989. # PO directories have a Makefile.in generated from Makefile.in.in.
  14990. case "$ac_file" in */Makefile.in)
  14991. # Adjust a relative srcdir.
  14992. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14993. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14994. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14995. # In autoconf-2.13 it is called $ac_given_srcdir.
  14996. # In autoconf-2.50 it is called $srcdir.
  14997. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14998. case "$ac_given_srcdir" in
  14999. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  15000. /*) top_srcdir="$ac_given_srcdir" ;;
  15001. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15002. esac
  15003. # Treat a directory as a PO directory if and only if it has a
  15004. # POTFILES.in file. This allows packages to have multiple PO
  15005. # directories under different names or in different locations.
  15006. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15007. rm -f "$ac_dir/POTFILES"
  15008. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15009. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15010. POMAKEFILEDEPS="POTFILES.in"
  15011. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  15012. # on $ac_dir but don't depend on user-specified configuration
  15013. # parameters.
  15014. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15015. # The LINGUAS file contains the set of available languages.
  15016. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15017. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  15018. fi
  15019. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15020. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15021. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15022. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15023. else
  15024. # The set of available languages was given in configure.in.
  15025. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  15026. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15027. fi
  15028. # Compute POFILES
  15029. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  15030. # Compute UPDATEPOFILES
  15031. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  15032. # Compute DUMMYPOFILES
  15033. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  15034. # Compute GMOFILES
  15035. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15036. case "$ac_given_srcdir" in
  15037. .) srcdirpre= ;;
  15038. *) srcdirpre='$(srcdir)/' ;;
  15039. esac
  15040. POFILES=
  15041. UPDATEPOFILES=
  15042. DUMMYPOFILES=
  15043. GMOFILES=
  15044. for lang in $ALL_LINGUAS; do
  15045. POFILES="$POFILES $srcdirpre$lang.po"
  15046. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15047. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15048. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15049. done
  15050. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15051. # environment variable.
  15052. INST_LINGUAS=
  15053. if test -n "$ALL_LINGUAS"; then
  15054. for presentlang in $ALL_LINGUAS; do
  15055. useit=no
  15056. if test "%UNSET%" != "$LINGUAS"; then
  15057. desiredlanguages="$LINGUAS"
  15058. else
  15059. desiredlanguages="$ALL_LINGUAS"
  15060. fi
  15061. for desiredlang in $desiredlanguages; do
  15062. # Use the presentlang catalog if desiredlang is
  15063. # a. equal to presentlang, or
  15064. # b. a variant of presentlang (because in this case,
  15065. # presentlang can be used as a fallback for messages
  15066. # which are not translated in the desiredlang catalog).
  15067. case "$desiredlang" in
  15068. "$presentlang"*) useit=yes;;
  15069. esac
  15070. done
  15071. if test $useit = yes; then
  15072. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15073. fi
  15074. done
  15075. fi
  15076. CATALOGS=
  15077. if test -n "$INST_LINGUAS"; then
  15078. for lang in $INST_LINGUAS; do
  15079. CATALOGS="$CATALOGS $lang.gmo"
  15080. done
  15081. fi
  15082. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15083. 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"
  15084. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15085. if test -f "$f"; then
  15086. case "$f" in
  15087. *.orig | *.bak | *~) ;;
  15088. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15089. esac
  15090. fi
  15091. done
  15092. fi
  15093. ;;
  15094. esac
  15095. done ;;
  15096. esac
  15097. done # for ac_tag
  15098. as_fn_exit 0
  15099. _ACEOF
  15100. ac_clean_files=$ac_clean_files_save
  15101. test $ac_write_fail = 0 ||
  15102. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15103. # configure is writing to config.log, and then calls config.status.
  15104. # config.status does its own redirection, appending to config.log.
  15105. # Unfortunately, on DOS this fails, as config.log is still kept open
  15106. # by configure, so config.status won't be able to write to it; its
  15107. # output is simply discarded. So we exec the FD to /dev/null,
  15108. # effectively closing config.log, so it can be properly (re)opened and
  15109. # appended to by config.status. When coming back to configure, we
  15110. # need to make the FD available again.
  15111. if test "$no_create" != yes; then
  15112. ac_cs_success=:
  15113. ac_config_status_args=
  15114. test "$silent" = yes &&
  15115. ac_config_status_args="$ac_config_status_args --quiet"
  15116. exec 5>/dev/null
  15117. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15118. exec 5>>config.log
  15119. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15120. # would make configure fail if this is the last instruction.
  15121. $ac_cs_success || as_fn_exit 1
  15122. fi
  15123. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15125. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15126. fi
  15127. echo " "
  15128. echo "Build: $build"
  15129. echo "Target: $target"
  15130. echo "Install prefix: $prefix"
  15131. echo "CXXFLAGS: $CXXFLAGS"
  15132. echo "CFLAGS: $CFLAGS"
  15133. echo "CPPFLAGS: $CPPFLAGS"
  15134. echo "LDFLAGS: $LDFLAGS"
  15135. echo "LIBS: $LIBS"
  15136. echo "SQLite3: $have_sqlite3"
  15137. echo "GnuTLS: $have_libgnutls"
  15138. echo "OpenSSL: $have_openssl"
  15139. echo "CA Bundle: $ca_bundle"
  15140. echo "LibXML2: $have_libxml2"
  15141. echo "LibExpat: $have_libexpat"
  15142. echo "LibCares: $have_libcares"
  15143. echo "Libz: $have_libz"
  15144. echo "Epoll: $have_epoll"
  15145. echo "Bittorrent: $enable_bittorrent"
  15146. echo "Metalink: $enable_metalink"
  15147. echo "XML-RPC: $enable_xml_rpc"