configure 477 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.1.
  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 Free Software Foundation,
  10. # 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 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=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&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, 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.9.1'
  509. PACKAGE_STRING='aria2 1.9.1'
  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_TIMEGETTIME_FALSE
  555. HAVE_TIMEGETTIME_TRUE
  556. HAVE_MACH_ABSOLUTE_TIME_FALSE
  557. HAVE_MACH_ABSOLUTE_TIME_TRUE
  558. HAVE_DAEMON_FALSE
  559. HAVE_DAEMON_TRUE
  560. HAVE_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. POW_LIB
  583. LIBOBJS
  584. POSUB
  585. LTLIBINTL
  586. LIBINTL
  587. INTLLIBS
  588. INTL_LIBTOOL_SUFFIX_PREFIX
  589. INTLOBJS
  590. GENCAT
  591. INSTOBJEXT
  592. DATADIRNAME
  593. CATOBJEXT
  594. USE_INCLUDED_LIBINTL
  595. BUILD_INCLUDED_LIBINTL
  596. LTLIBC
  597. WINDRES
  598. WOE32
  599. WOE32DLL
  600. HAVE_WPRINTF
  601. HAVE_SNPRINTF
  602. HAVE_ASPRINTF
  603. HAVE_POSIX_PRINTF
  604. INTL_MACOSX_LIBS
  605. GLIBC21
  606. INTLBISON
  607. LTLIBICONV
  608. LIBICONV
  609. LTLIBMULTITHREAD
  610. LIBMULTITHREAD
  611. LTLIBTHREAD
  612. LIBTHREAD
  613. LIBPTH_PREFIX
  614. LTLIBPTH
  615. LIBPTH
  616. PRI_MACROS_BROKEN
  617. HAVE_VISIBILITY
  618. CFLAG_VISIBILITY
  619. GLIBC2
  620. XGETTEXT_EXTRA_OPTIONS
  621. MSGMERGE
  622. XGETTEXT_015
  623. XGETTEXT
  624. GMSGFMT_015
  625. MSGFMT_015
  626. GMSGFMT
  627. MSGFMT
  628. GETTEXT_MACRO_VERSION
  629. USE_NLS
  630. ALLOCA
  631. HAVE_SQLITE3_FALSE
  632. HAVE_SQLITE3_TRUE
  633. HAVE_LIBZ_FALSE
  634. HAVE_LIBZ_TRUE
  635. ENABLE_ASYNC_DNS_FALSE
  636. ENABLE_ASYNC_DNS_TRUE
  637. HAVE_LIBEXPAT_FALSE
  638. HAVE_LIBEXPAT_TRUE
  639. HAVE_LIBXML2_FALSE
  640. HAVE_LIBXML2_TRUE
  641. ENABLE_XML_RPC_FALSE
  642. ENABLE_XML_RPC_TRUE
  643. ENABLE_METALINK_LIBEXPAT_FALSE
  644. ENABLE_METALINK_LIBEXPAT_TRUE
  645. ENABLE_METALINK_LIBXML2_FALSE
  646. ENABLE_METALINK_LIBXML2_TRUE
  647. ENABLE_METALINK_FALSE
  648. ENABLE_METALINK_TRUE
  649. ENABLE_BITTORRENT_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_MESSAGE_DIGEST_FALSE
  652. ENABLE_MESSAGE_DIGEST_TRUE
  653. HAVE_LIBSSL_FALSE
  654. HAVE_LIBSSL_TRUE
  655. HAVE_LIBGNUTLS_FALSE
  656. HAVE_LIBGNUTLS_TRUE
  657. ca_bundle
  658. ENABLE_SSL_FALSE
  659. ENABLE_SSL_TRUE
  660. LIBZ_CPPFLAGS
  661. LIBZ_LIBS
  662. LIBCARES_CPPFLAGS
  663. LIBCARES_LIBS
  664. OPENSSL_CFLAGS
  665. OPENSSL_LIBS
  666. LIBGCRYPT_LIBS
  667. LIBGCRYPT_CFLAGS
  668. LIBGCRYPT_CONFIG
  669. LIBGNUTLS_CONFIG
  670. LIBGNUTLS_LIBS
  671. LIBGNUTLS_CFLAGS
  672. SQLITE3_LIBS
  673. SQLITE3_CFLAGS
  674. LIBEXPAT_CPPFLAGS
  675. LIBEXPAT_LIBS
  676. XML_LIBS
  677. XML_CPPFLAGS
  678. XML2_CONFIG
  679. PKG_CONFIG
  680. EGREP
  681. GREP
  682. CXXCPP
  683. YFLAGS
  684. YACC
  685. RANLIB
  686. am__fastdepCC_FALSE
  687. am__fastdepCC_TRUE
  688. CCDEPMODE
  689. ac_ct_CC
  690. CFLAGS
  691. CC
  692. am__fastdepCXX_FALSE
  693. am__fastdepCXX_TRUE
  694. CXXDEPMODE
  695. AMDEPBACKSLASH
  696. AMDEP_FALSE
  697. AMDEP_TRUE
  698. am__quote
  699. am__include
  700. DEPDIR
  701. OBJEXT
  702. EXEEXT
  703. ac_ct_CXX
  704. CPPFLAGS
  705. LDFLAGS
  706. CXXFLAGS
  707. CXX
  708. WINSOCK_LIBS
  709. CPPUNIT_LIBS
  710. CPPUNIT_CFLAGS
  711. CPPUNIT_CONFIG
  712. am__untar
  713. am__tar
  714. AMTAR
  715. am__leading_dot
  716. SET_MAKE
  717. AWK
  718. mkdir_p
  719. MKDIR_P
  720. INSTALL_STRIP_PROGRAM
  721. STRIP
  722. install_sh
  723. MAKEINFO
  724. AUTOHEADER
  725. AUTOMAKE
  726. AUTOCONF
  727. ACLOCAL
  728. VERSION
  729. PACKAGE
  730. CYGPATH_W
  731. am__isrc
  732. INSTALL_DATA
  733. INSTALL_SCRIPT
  734. INSTALL_PROGRAM
  735. target_os
  736. target_vendor
  737. target_cpu
  738. target
  739. host_os
  740. host_vendor
  741. host_cpu
  742. host
  743. build_os
  744. build_vendor
  745. build_cpu
  746. build
  747. target_alias
  748. host_alias
  749. build_alias
  750. LIBS
  751. ECHO_T
  752. ECHO_N
  753. ECHO_C
  754. DEFS
  755. mandir
  756. localedir
  757. libdir
  758. psdir
  759. pdfdir
  760. dvidir
  761. htmldir
  762. infodir
  763. docdir
  764. oldincludedir
  765. includedir
  766. localstatedir
  767. sharedstatedir
  768. sysconfdir
  769. datadir
  770. datarootdir
  771. libexecdir
  772. sbindir
  773. bindir
  774. program_transform_name
  775. prefix
  776. exec_prefix
  777. PACKAGE_URL
  778. PACKAGE_BUGREPORT
  779. PACKAGE_STRING
  780. PACKAGE_VERSION
  781. PACKAGE_TARNAME
  782. PACKAGE_NAME
  783. PATH_SEPARATOR
  784. SHELL'
  785. ac_subst_files=''
  786. ac_user_opts='
  787. enable_option_checking
  788. with_cppunit_prefix
  789. with_cppunit_exec_prefix
  790. with_gnutls
  791. with_openssl
  792. with_sqlite3
  793. with_libxml2
  794. with_libexpat
  795. with_libcares
  796. with_libz
  797. enable_bittorrent
  798. enable_metalink
  799. enable_epoll
  800. with_ca_bundle
  801. enable_dependency_tracking
  802. with_xml_prefix
  803. with_xml_exec_prefix
  804. enable_xmltest
  805. with_libexpat_prefix
  806. with_sqlite3_prefix
  807. with_libgnutls_prefix
  808. with_libgcrypt_prefix
  809. with_openssl_prefix
  810. with_libcares_prefix
  811. with_libz_prefix
  812. enable_largefile
  813. enable_nls
  814. enable_threads
  815. with_gnu_ld
  816. enable_rpath
  817. with_libpth_prefix
  818. with_libiconv_prefix
  819. with_included_gettext
  820. with_libintl_prefix
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CXX
  826. CXXFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CCC
  831. CC
  832. CFLAGS
  833. YACC
  834. YFLAGS
  835. CXXCPP
  836. PKG_CONFIG
  837. SQLITE3_CFLAGS
  838. SQLITE3_LIBS
  839. LIBGNUTLS_CFLAGS
  840. LIBGNUTLS_LIBS'
  841. # Initialize some variables set by options.
  842. ac_init_help=
  843. ac_init_version=false
  844. ac_unrecognized_opts=
  845. ac_unrecognized_sep=
  846. # The variables have the same names as the options, with
  847. # dashes changed to underlines.
  848. cache_file=/dev/null
  849. exec_prefix=NONE
  850. no_create=
  851. no_recursion=
  852. prefix=NONE
  853. program_prefix=NONE
  854. program_suffix=NONE
  855. program_transform_name=s,x,x,
  856. silent=
  857. site=
  858. srcdir=
  859. verbose=
  860. x_includes=NONE
  861. x_libraries=NONE
  862. # Installation directory options.
  863. # These are left unexpanded so users can "make install exec_prefix=/foo"
  864. # and all the variables that are supposed to be based on exec_prefix
  865. # by default will actually change.
  866. # Use braces instead of parens because sh, perl, etc. also accept them.
  867. # (The list follows the same order as the GNU Coding Standards.)
  868. bindir='${exec_prefix}/bin'
  869. sbindir='${exec_prefix}/sbin'
  870. libexecdir='${exec_prefix}/libexec'
  871. datarootdir='${prefix}/share'
  872. datadir='${datarootdir}'
  873. sysconfdir='${prefix}/etc'
  874. sharedstatedir='${prefix}/com'
  875. localstatedir='${prefix}/var'
  876. includedir='${prefix}/include'
  877. oldincludedir='/usr/include'
  878. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  879. infodir='${datarootdir}/info'
  880. htmldir='${docdir}'
  881. dvidir='${docdir}'
  882. pdfdir='${docdir}'
  883. psdir='${docdir}'
  884. libdir='${exec_prefix}/lib'
  885. localedir='${datarootdir}/locale'
  886. mandir='${datarootdir}/man'
  887. ac_prev=
  888. ac_dashdash=
  889. for ac_option
  890. do
  891. # If the previous option needs an argument, assign it.
  892. if test -n "$ac_prev"; then
  893. eval $ac_prev=\$ac_option
  894. ac_prev=
  895. continue
  896. fi
  897. case $ac_option in
  898. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error "invalid package name: $ac_useropt"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=\$ac_optarg ;;
  1141. -without-* | --without-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) as_fn_error "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information."
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. case $ac_envvar in #(
  1178. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1179. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1180. esac
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. as_fn_error "missing argument to $ac_option"
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1234. If a cross compiler is detected then cross compile mode will be used." >&2
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. as_fn_error "working directory cannot be determined"
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. as_fn_error "pwd does not report name of working directory"
  1248. # Find the source files, if location was not specified.
  1249. if test -z "$srcdir"; then
  1250. ac_srcdir_defaulted=yes
  1251. # Try the directory containing this script, then the parent directory.
  1252. ac_confdir=`$as_dirname -- "$as_myself" ||
  1253. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1254. X"$as_myself" : 'X\(//\)[^/]' \| \
  1255. X"$as_myself" : 'X\(//\)$' \| \
  1256. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1257. $as_echo X"$as_myself" |
  1258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)[^/].*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\).*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. s/.*/./; q'`
  1275. srcdir=$ac_confdir
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. srcdir=..
  1278. fi
  1279. else
  1280. ac_srcdir_defaulted=no
  1281. fi
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1284. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1289. pwd)`
  1290. # When building in place, set srcdir=.
  1291. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1292. srcdir=.
  1293. fi
  1294. # Remove unnecessary trailing slashes from srcdir.
  1295. # Double slashes in file names in object file debugging info
  1296. # mess up M-x gdb in Emacs.
  1297. case $srcdir in
  1298. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1299. esac
  1300. for ac_var in $ac_precious_vars; do
  1301. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_env_${ac_var}_value=\$${ac_var}
  1303. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1305. done
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1314. Usage: $0 [OPTION]... [VAR=VALUE]...
  1315. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1316. VAR=VALUE. See below for descriptions of some of the useful variables.
  1317. Defaults for the options are specified in brackets.
  1318. Configuration:
  1319. -h, --help display this help and exit
  1320. --help=short display options specific to this package
  1321. --help=recursive display the short help of all the included packages
  1322. -V, --version display version information and exit
  1323. -q, --quiet, --silent do not print \`checking...' messages
  1324. --cache-file=FILE cache test results in FILE [disabled]
  1325. -C, --config-cache alias for \`--cache-file=config.cache'
  1326. -n, --no-create do not create output files
  1327. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1328. Installation directories:
  1329. --prefix=PREFIX install architecture-independent files in PREFIX
  1330. [$ac_default_prefix]
  1331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1332. [PREFIX]
  1333. By default, \`make install' will install all the files in
  1334. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1335. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1336. for instance \`--prefix=\$HOME'.
  1337. For better control, use the options below.
  1338. Fine tuning of the installation directories:
  1339. --bindir=DIR user executables [EPREFIX/bin]
  1340. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1341. --libexecdir=DIR program executables [EPREFIX/libexec]
  1342. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1343. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1344. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1345. --libdir=DIR object code libraries [EPREFIX/lib]
  1346. --includedir=DIR C header files [PREFIX/include]
  1347. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1348. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1349. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1350. --infodir=DIR info documentation [DATAROOTDIR/info]
  1351. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1352. --mandir=DIR man documentation [DATAROOTDIR/man]
  1353. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1354. --htmldir=DIR html documentation [DOCDIR]
  1355. --dvidir=DIR dvi documentation [DOCDIR]
  1356. --pdfdir=DIR pdf documentation [DOCDIR]
  1357. --psdir=DIR ps documentation [DOCDIR]
  1358. _ACEOF
  1359. cat <<\_ACEOF
  1360. Program names:
  1361. --program-prefix=PREFIX prepend PREFIX to installed program names
  1362. --program-suffix=SUFFIX append SUFFIX to installed program names
  1363. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1364. System types:
  1365. --build=BUILD configure for building on BUILD [guessed]
  1366. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1367. --target=TARGET configure for building compilers for TARGET [HOST]
  1368. _ACEOF
  1369. fi
  1370. if test -n "$ac_init_help"; then
  1371. case $ac_init_help in
  1372. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1373. esac
  1374. cat <<\_ACEOF
  1375. Optional Features:
  1376. --disable-option-checking ignore unrecognized --enable/--with options
  1377. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1378. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1379. --enable-bittorrent Enable bittorrent support.
  1380. --enable-metalink Enable metalink support.
  1381. --enable-epoll Enable epoll support.
  1382. --disable-dependency-tracking speeds up one-time build
  1383. --enable-dependency-tracking do not reject slow dependency extractors
  1384. --disable-xmltest Do not try to compile and run a test LIBXML program
  1385. --disable-largefile omit support for large files
  1386. --disable-nls do not use Native Language Support
  1387. --enable-threads={posix|solaris|pth|win32}
  1388. specify multithreading API
  1389. --disable-threads build without multithread safety
  1390. --disable-rpath do not hardcode runtime library paths
  1391. Optional Packages:
  1392. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1393. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1394. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1395. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1396. --with-gnutls Use gnutls if it is installed.
  1397. --with-openssl Use openssl if it is installed.
  1398. --with-sqlite3 Use sqlite3 if it is installed.
  1399. --with-libxml2 Use libxml2 if it is installed.
  1400. --with-libexpat Use libexpat if it is installed.
  1401. --with-libcares Use libcares if it is installed.
  1402. --with-libz Use libz if it is installed.
  1403. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1404. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1405. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1406. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1407. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1408. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1409. --with-libgcrypt-prefix=PFX
  1410. prefix where LIBGCRYPT is installed (optional)
  1411. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1412. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1413. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1414. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1415. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1416. --without-libpth-prefix don't search for libpth in includedir and libdir
  1417. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1418. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1419. --with-included-gettext use the GNU gettext library included here
  1420. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1421. --without-libintl-prefix don't search for libintl in includedir and libdir
  1422. Some influential environment variables:
  1423. CXX C++ compiler command
  1424. CXXFLAGS C++ compiler flags
  1425. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1426. nonstandard directory <lib dir>
  1427. LIBS libraries to pass to the linker, e.g. -l<library>
  1428. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1429. you have headers in a nonstandard directory <include dir>
  1430. CC C compiler command
  1431. CFLAGS C compiler flags
  1432. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1433. the first program found out of: `bison -y', `byacc', `yacc'.
  1434. YFLAGS The list of arguments that will be passed by default to $YACC.
  1435. This script will default YFLAGS to the empty string to avoid a
  1436. default value of `-d' given by some make applications.
  1437. CXXCPP C++ preprocessor
  1438. PKG_CONFIG path to pkg-config utility
  1439. SQLITE3_CFLAGS
  1440. C compiler flags for SQLITE3, overriding pkg-config
  1441. SQLITE3_LIBS
  1442. linker flags for SQLITE3, overriding pkg-config
  1443. LIBGNUTLS_CFLAGS
  1444. C compiler flags for LIBGNUTLS, overriding pkg-config
  1445. LIBGNUTLS_LIBS
  1446. linker flags for LIBGNUTLS, overriding pkg-config
  1447. Use these variables to override the choices made by `configure' or to help
  1448. it to find libraries and programs with nonstandard names/locations.
  1449. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1450. aria2 home page: <http://aria2.sourceforge.net/>.
  1451. _ACEOF
  1452. ac_status=$?
  1453. fi
  1454. if test "$ac_init_help" = "recursive"; then
  1455. # If there are subdirs, report their specific --help.
  1456. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1457. test -d "$ac_dir" ||
  1458. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1459. continue
  1460. ac_builddir=.
  1461. case "$ac_dir" in
  1462. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *)
  1464. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1465. # A ".." for each directory in $ac_dir_suffix.
  1466. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1467. case $ac_top_builddir_sub in
  1468. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1469. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1470. esac ;;
  1471. esac
  1472. ac_abs_top_builddir=$ac_pwd
  1473. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1474. # for backward compatibility:
  1475. ac_top_builddir=$ac_top_build_prefix
  1476. case $srcdir in
  1477. .) # We are building in place.
  1478. ac_srcdir=.
  1479. ac_top_srcdir=$ac_top_builddir_sub
  1480. ac_abs_top_srcdir=$ac_pwd ;;
  1481. [\\/]* | ?:[\\/]* ) # Absolute name.
  1482. ac_srcdir=$srcdir$ac_dir_suffix;
  1483. ac_top_srcdir=$srcdir
  1484. ac_abs_top_srcdir=$srcdir ;;
  1485. *) # Relative name.
  1486. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1487. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1488. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1489. esac
  1490. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1491. cd "$ac_dir" || { ac_status=$?; continue; }
  1492. # Check for guested configure.
  1493. if test -f "$ac_srcdir/configure.gnu"; then
  1494. echo &&
  1495. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1496. elif test -f "$ac_srcdir/configure"; then
  1497. echo &&
  1498. $SHELL "$ac_srcdir/configure" --help=recursive
  1499. else
  1500. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1501. fi || ac_status=$?
  1502. cd "$ac_pwd" || { ac_status=$?; break; }
  1503. done
  1504. fi
  1505. test -n "$ac_init_help" && exit $ac_status
  1506. if $ac_init_version; then
  1507. cat <<\_ACEOF
  1508. aria2 configure 1.9.1
  1509. generated by GNU Autoconf 2.65
  1510. Copyright (C) 2009 Free Software Foundation, Inc.
  1511. This configure script is free software; the Free Software Foundation
  1512. gives unlimited permission to copy, distribute and modify it.
  1513. _ACEOF
  1514. exit
  1515. fi
  1516. ## ------------------------ ##
  1517. ## Autoconf initialization. ##
  1518. ## ------------------------ ##
  1519. # ac_fn_cxx_try_compile LINENO
  1520. # ----------------------------
  1521. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_cxx_try_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. rm -f conftest.$ac_objext
  1526. if { { ac_try="$ac_compile"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_compile") 2>conftest.err
  1534. ac_status=$?
  1535. if test -s conftest.err; then
  1536. grep -v '^ *+' conftest.err >conftest.er1
  1537. cat conftest.er1 >&5
  1538. mv -f conftest.er1 conftest.err
  1539. fi
  1540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1541. test $ac_status = 0; } && {
  1542. test -z "$ac_cxx_werror_flag" ||
  1543. test ! -s conftest.err
  1544. } && test -s conftest.$ac_objext; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_retval=1
  1550. fi
  1551. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1552. as_fn_set_status $ac_retval
  1553. } # ac_fn_cxx_try_compile
  1554. # ac_fn_c_try_compile LINENO
  1555. # --------------------------
  1556. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1557. ac_fn_c_try_compile ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. rm -f conftest.$ac_objext
  1561. if { { ac_try="$ac_compile"
  1562. case "(($ac_try" in
  1563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1564. *) ac_try_echo=$ac_try;;
  1565. esac
  1566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1567. $as_echo "$ac_try_echo"; } >&5
  1568. (eval "$ac_compile") 2>conftest.err
  1569. ac_status=$?
  1570. if test -s conftest.err; then
  1571. grep -v '^ *+' conftest.err >conftest.er1
  1572. cat conftest.er1 >&5
  1573. mv -f conftest.er1 conftest.err
  1574. fi
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; } && {
  1577. test -z "$ac_c_werror_flag" ||
  1578. test ! -s conftest.err
  1579. } && test -s conftest.$ac_objext; then :
  1580. ac_retval=0
  1581. else
  1582. $as_echo "$as_me: failed program was:" >&5
  1583. sed 's/^/| /' conftest.$ac_ext >&5
  1584. ac_retval=1
  1585. fi
  1586. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1587. as_fn_set_status $ac_retval
  1588. } # ac_fn_c_try_compile
  1589. # ac_fn_cxx_try_cpp LINENO
  1590. # ------------------------
  1591. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1592. ac_fn_cxx_try_cpp ()
  1593. {
  1594. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1595. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } >/dev/null && {
  1611. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1612. test ! -s conftest.err
  1613. }; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_cxx_try_cpp
  1623. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1624. # ---------------------------------------------------------
  1625. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1626. # the include files in INCLUDES and setting the cache variable VAR
  1627. # accordingly.
  1628. ac_fn_cxx_check_header_mongrel ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1633. $as_echo_n "checking for $2... " >&6; }
  1634. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1635. $as_echo_n "(cached) " >&6
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. else
  1641. # Is the header compilable?
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1643. $as_echo_n "checking $2 usability... " >&6; }
  1644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1645. /* end confdefs.h. */
  1646. $4
  1647. #include <$2>
  1648. _ACEOF
  1649. if ac_fn_cxx_try_compile "$LINENO"; then :
  1650. ac_header_compiler=yes
  1651. else
  1652. ac_header_compiler=no
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1656. $as_echo "$ac_header_compiler" >&6; }
  1657. # Is the header present?
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1659. $as_echo_n "checking $2 presence... " >&6; }
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. #include <$2>
  1663. _ACEOF
  1664. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1665. ac_header_preproc=yes
  1666. else
  1667. ac_header_preproc=no
  1668. fi
  1669. rm -f conftest.err conftest.$ac_ext
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1671. $as_echo "$ac_header_preproc" >&6; }
  1672. # So? What about this header?
  1673. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1674. yes:no: )
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1676. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1678. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1679. ;;
  1680. no:yes:* )
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1682. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1684. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1686. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1688. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1690. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1691. ( cat <<\_ASBOX
  1692. ## ----------------------------------------------- ##
  1693. ## Report this to t-tujikawa@users.sourceforge.net ##
  1694. ## ----------------------------------------------- ##
  1695. _ASBOX
  1696. ) | sed "s/^/$as_me: WARNING: /" >&2
  1697. ;;
  1698. esac
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. eval "$3=\$ac_header_compiler"
  1705. fi
  1706. eval ac_res=\$$3
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709. fi
  1710. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1711. } # ac_fn_cxx_check_header_mongrel
  1712. # ac_fn_cxx_try_run LINENO
  1713. # ------------------------
  1714. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1715. # that executables *can* be run.
  1716. ac_fn_cxx_try_run ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. if { { ac_try="$ac_link"
  1720. case "(($ac_try" in
  1721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1722. *) ac_try_echo=$ac_try;;
  1723. esac
  1724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1725. $as_echo "$ac_try_echo"; } >&5
  1726. (eval "$ac_link") 2>&5
  1727. ac_status=$?
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1730. { { case "(($ac_try" in
  1731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1732. *) ac_try_echo=$ac_try;;
  1733. esac
  1734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1735. $as_echo "$ac_try_echo"; } >&5
  1736. (eval "$ac_try") 2>&5
  1737. ac_status=$?
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; }; }; then :
  1740. ac_retval=0
  1741. else
  1742. $as_echo "$as_me: program exited with status $ac_status" >&5
  1743. $as_echo "$as_me: failed program was:" >&5
  1744. sed 's/^/| /' conftest.$ac_ext >&5
  1745. ac_retval=$ac_status
  1746. fi
  1747. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1748. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1749. as_fn_set_status $ac_retval
  1750. } # ac_fn_cxx_try_run
  1751. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1752. # ---------------------------------------------------------
  1753. # Tests whether HEADER exists and can be compiled using the include files in
  1754. # INCLUDES, setting the cache variable VAR accordingly.
  1755. ac_fn_cxx_check_header_compile ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1759. $as_echo_n "checking for $2... " >&6; }
  1760. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1761. $as_echo_n "(cached) " >&6
  1762. else
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $4
  1766. #include <$2>
  1767. _ACEOF
  1768. if ac_fn_cxx_try_compile "$LINENO"; then :
  1769. eval "$3=yes"
  1770. else
  1771. eval "$3=no"
  1772. fi
  1773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1774. fi
  1775. eval ac_res=\$$3
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1777. $as_echo "$ac_res" >&6; }
  1778. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1779. } # ac_fn_cxx_check_header_compile
  1780. # ac_fn_cxx_try_link LINENO
  1781. # -------------------------
  1782. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1783. ac_fn_cxx_try_link ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. rm -f conftest.$ac_objext conftest$ac_exeext
  1787. if { { ac_try="$ac_link"
  1788. case "(($ac_try" in
  1789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790. *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1793. $as_echo "$ac_try_echo"; } >&5
  1794. (eval "$ac_link") 2>conftest.err
  1795. ac_status=$?
  1796. if test -s conftest.err; then
  1797. grep -v '^ *+' conftest.err >conftest.er1
  1798. cat conftest.er1 >&5
  1799. mv -f conftest.er1 conftest.err
  1800. fi
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802. test $ac_status = 0; } && {
  1803. test -z "$ac_cxx_werror_flag" ||
  1804. test ! -s conftest.err
  1805. } && test -s conftest$ac_exeext && {
  1806. test "$cross_compiling" = yes ||
  1807. $as_test_x conftest$ac_exeext
  1808. }; then :
  1809. ac_retval=0
  1810. else
  1811. $as_echo "$as_me: failed program was:" >&5
  1812. sed 's/^/| /' conftest.$ac_ext >&5
  1813. ac_retval=1
  1814. fi
  1815. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1816. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1817. # interfere with the next link command; also delete a directory that is
  1818. # left behind by Apple's compiler. We do this before executing the actions.
  1819. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1820. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1821. as_fn_set_status $ac_retval
  1822. } # ac_fn_cxx_try_link
  1823. # ac_fn_cxx_check_func LINENO FUNC VAR
  1824. # ------------------------------------
  1825. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1826. ac_fn_cxx_check_func ()
  1827. {
  1828. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1830. $as_echo_n "checking for $2... " >&6; }
  1831. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1832. $as_echo_n "(cached) " >&6
  1833. else
  1834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1835. /* end confdefs.h. */
  1836. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1838. #define $2 innocuous_$2
  1839. /* System header to define __stub macros and hopefully few prototypes,
  1840. which can conflict with char $2 (); below.
  1841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1842. <limits.h> exists even on freestanding compilers. */
  1843. #ifdef __STDC__
  1844. # include <limits.h>
  1845. #else
  1846. # include <assert.h>
  1847. #endif
  1848. #undef $2
  1849. /* Override any GCC internal prototype to avoid an error.
  1850. Use char because int might match the return type of a GCC
  1851. builtin and then its argument prototype would still apply. */
  1852. #ifdef __cplusplus
  1853. extern "C"
  1854. #endif
  1855. char $2 ();
  1856. /* The GNU C library defines this for functions which it implements
  1857. to always fail with ENOSYS. Some functions are actually named
  1858. something starting with __ and the normal name is an alias. */
  1859. #if defined __stub_$2 || defined __stub___$2
  1860. choke me
  1861. #endif
  1862. int
  1863. main ()
  1864. {
  1865. return $2 ();
  1866. ;
  1867. return 0;
  1868. }
  1869. _ACEOF
  1870. if ac_fn_cxx_try_link "$LINENO"; then :
  1871. eval "$3=yes"
  1872. else
  1873. eval "$3=no"
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext \
  1876. conftest$ac_exeext conftest.$ac_ext
  1877. fi
  1878. eval ac_res=\$$3
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1880. $as_echo "$ac_res" >&6; }
  1881. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1882. } # ac_fn_cxx_check_func
  1883. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1884. # ---------------------------------------------
  1885. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1886. # variable VAR accordingly.
  1887. ac_fn_cxx_check_type ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. $as_echo_n "checking for $2... " >&6; }
  1892. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. eval "$3=no"
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. int
  1900. main ()
  1901. {
  1902. if (sizeof ($2))
  1903. return 0;
  1904. ;
  1905. return 0;
  1906. }
  1907. _ACEOF
  1908. if ac_fn_cxx_try_compile "$LINENO"; then :
  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. else
  1923. eval "$3=yes"
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1933. } # ac_fn_cxx_check_type
  1934. # ac_fn_c_find_intX_t LINENO BITS VAR
  1935. # -----------------------------------
  1936. # Finds a signed integer type with width BITS, setting cache variable VAR
  1937. # accordingly.
  1938. ac_fn_c_find_intX_t ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1942. $as_echo_n "checking for int$2_t... " >&6; }
  1943. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1944. $as_echo_n "(cached) " >&6
  1945. else
  1946. eval "$3=no"
  1947. # Order is important - never check a type that is potentially smaller
  1948. # than half of the expected target width.
  1949. for ac_type in int$2_t 'int' 'long int' \
  1950. 'long long int' 'short int' 'signed char'; do
  1951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1952. /* end confdefs.h. */
  1953. $ac_includes_default
  1954. enum { N = $2 / 2 - 1 };
  1955. int
  1956. main ()
  1957. {
  1958. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1959. test_array [0] = 0
  1960. ;
  1961. return 0;
  1962. }
  1963. _ACEOF
  1964. if ac_fn_cxx_try_compile "$LINENO"; then :
  1965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1966. /* end confdefs.h. */
  1967. $ac_includes_default
  1968. enum { N = $2 / 2 - 1 };
  1969. int
  1970. main ()
  1971. {
  1972. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1973. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1974. test_array [0] = 0
  1975. ;
  1976. return 0;
  1977. }
  1978. _ACEOF
  1979. if ac_fn_cxx_try_compile "$LINENO"; then :
  1980. else
  1981. case $ac_type in #(
  1982. int$2_t) :
  1983. eval "$3=yes" ;; #(
  1984. *) :
  1985. eval "$3=\$ac_type" ;;
  1986. esac
  1987. fi
  1988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. eval as_val=\$$3
  1992. if test "x$as_val" = x""no; then :
  1993. else
  1994. break
  1995. fi
  1996. done
  1997. fi
  1998. eval ac_res=\$$3
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2000. $as_echo "$ac_res" >&6; }
  2001. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2002. } # ac_fn_c_find_intX_t
  2003. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2004. # ------------------------------------
  2005. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2006. # accordingly.
  2007. ac_fn_c_find_uintX_t ()
  2008. {
  2009. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2011. $as_echo_n "checking for uint$2_t... " >&6; }
  2012. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. eval "$3=no"
  2016. # Order is important - never check a type that is potentially smaller
  2017. # than half of the expected target width.
  2018. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2019. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $ac_includes_default
  2023. int
  2024. main ()
  2025. {
  2026. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2027. test_array [0] = 0
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_cxx_try_compile "$LINENO"; then :
  2033. case $ac_type in #(
  2034. uint$2_t) :
  2035. eval "$3=yes" ;; #(
  2036. *) :
  2037. eval "$3=\$ac_type" ;;
  2038. esac
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. eval as_val=\$$3
  2042. if test "x$as_val" = x""no; then :
  2043. else
  2044. break
  2045. fi
  2046. done
  2047. fi
  2048. eval ac_res=\$$3
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2050. $as_echo "$ac_res" >&6; }
  2051. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2052. } # ac_fn_c_find_uintX_t
  2053. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2054. # ----------------------------------------------
  2055. # Tries to find the compile-time value of EXPR in a program that includes
  2056. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2057. # computed
  2058. ac_fn_cxx_compute_int ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if test "$cross_compiling" = yes; then
  2062. # Depending upon the size, compute the lo and hi bounds.
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $4
  2066. int
  2067. main ()
  2068. {
  2069. static int test_array [1 - 2 * !(($2) >= 0)];
  2070. test_array [0] = 0
  2071. ;
  2072. return 0;
  2073. }
  2074. _ACEOF
  2075. if ac_fn_cxx_try_compile "$LINENO"; then :
  2076. ac_lo=0 ac_mid=0
  2077. while :; do
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $4
  2081. int
  2082. main ()
  2083. {
  2084. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2085. test_array [0] = 0
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. if ac_fn_cxx_try_compile "$LINENO"; then :
  2091. ac_hi=$ac_mid; break
  2092. else
  2093. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2094. if test $ac_lo -le $ac_mid; then
  2095. ac_lo= ac_hi=
  2096. break
  2097. fi
  2098. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. done
  2102. else
  2103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2104. /* end confdefs.h. */
  2105. $4
  2106. int
  2107. main ()
  2108. {
  2109. static int test_array [1 - 2 * !(($2) < 0)];
  2110. test_array [0] = 0
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. if ac_fn_cxx_try_compile "$LINENO"; then :
  2116. ac_hi=-1 ac_mid=-1
  2117. while :; do
  2118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h. */
  2120. $4
  2121. int
  2122. main ()
  2123. {
  2124. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2125. test_array [0] = 0
  2126. ;
  2127. return 0;
  2128. }
  2129. _ACEOF
  2130. if ac_fn_cxx_try_compile "$LINENO"; then :
  2131. ac_lo=$ac_mid; break
  2132. else
  2133. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2134. if test $ac_mid -le $ac_hi; then
  2135. ac_lo= ac_hi=
  2136. break
  2137. fi
  2138. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2139. fi
  2140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2141. done
  2142. else
  2143. ac_lo= ac_hi=
  2144. fi
  2145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2146. fi
  2147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. # Binary search between lo and hi bounds.
  2149. while test "x$ac_lo" != "x$ac_hi"; do
  2150. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. int
  2155. main ()
  2156. {
  2157. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2158. test_array [0] = 0
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_cxx_try_compile "$LINENO"; then :
  2164. ac_hi=$ac_mid
  2165. else
  2166. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2169. done
  2170. case $ac_lo in #((
  2171. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2172. '') ac_retval=1 ;;
  2173. esac
  2174. else
  2175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2176. /* end confdefs.h. */
  2177. $4
  2178. static long int longval () { return $2; }
  2179. static unsigned long int ulongval () { return $2; }
  2180. #include <stdio.h>
  2181. #include <stdlib.h>
  2182. int
  2183. main ()
  2184. {
  2185. FILE *f = fopen ("conftest.val", "w");
  2186. if (! f)
  2187. return 1;
  2188. if (($2) < 0)
  2189. {
  2190. long int i = longval ();
  2191. if (i != ($2))
  2192. return 1;
  2193. fprintf (f, "%ld", i);
  2194. }
  2195. else
  2196. {
  2197. unsigned long int i = ulongval ();
  2198. if (i != ($2))
  2199. return 1;
  2200. fprintf (f, "%lu", i);
  2201. }
  2202. /* Do not output a trailing newline, as this causes \r\n confusion
  2203. on some platforms. */
  2204. return ferror (f) || fclose (f) != 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_cxx_try_run "$LINENO"; then :
  2210. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2211. else
  2212. ac_retval=1
  2213. fi
  2214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2215. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2216. rm -f conftest.val
  2217. fi
  2218. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2219. as_fn_set_status $ac_retval
  2220. } # ac_fn_cxx_compute_int
  2221. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2222. # ------------------------------------------------------
  2223. # Tries to find if the field MEMBER exists in type AGGR, after including
  2224. # INCLUDES, setting cache variable VAR accordingly.
  2225. ac_fn_cxx_check_member ()
  2226. {
  2227. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2229. $as_echo_n "checking for $2.$3... " >&6; }
  2230. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2231. $as_echo_n "(cached) " >&6
  2232. else
  2233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2234. /* end confdefs.h. */
  2235. $5
  2236. int
  2237. main ()
  2238. {
  2239. static $2 ac_aggr;
  2240. if (ac_aggr.$3)
  2241. return 0;
  2242. ;
  2243. return 0;
  2244. }
  2245. _ACEOF
  2246. if ac_fn_cxx_try_compile "$LINENO"; then :
  2247. eval "$4=yes"
  2248. else
  2249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2250. /* end confdefs.h. */
  2251. $5
  2252. int
  2253. main ()
  2254. {
  2255. static $2 ac_aggr;
  2256. if (sizeof ac_aggr.$3)
  2257. return 0;
  2258. ;
  2259. return 0;
  2260. }
  2261. _ACEOF
  2262. if ac_fn_cxx_try_compile "$LINENO"; then :
  2263. eval "$4=yes"
  2264. else
  2265. eval "$4=no"
  2266. fi
  2267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2268. fi
  2269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2270. fi
  2271. eval ac_res=\$$4
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2273. $as_echo "$ac_res" >&6; }
  2274. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2275. } # ac_fn_cxx_check_member
  2276. cat >config.log <<_ACEOF
  2277. This file contains any messages produced by compilers while
  2278. running configure, to aid debugging if configure makes a mistake.
  2279. It was created by aria2 $as_me 1.9.1, which was
  2280. generated by GNU Autoconf 2.65. Invocation command line was
  2281. $ $0 $@
  2282. _ACEOF
  2283. exec 5>>config.log
  2284. {
  2285. cat <<_ASUNAME
  2286. ## --------- ##
  2287. ## Platform. ##
  2288. ## --------- ##
  2289. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2290. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2291. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2292. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2293. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2294. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2295. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2296. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2297. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2298. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2299. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2300. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2301. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2302. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2303. _ASUNAME
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. $as_echo "PATH: $as_dir"
  2310. done
  2311. IFS=$as_save_IFS
  2312. } >&5
  2313. cat >&5 <<_ACEOF
  2314. ## ----------- ##
  2315. ## Core tests. ##
  2316. ## ----------- ##
  2317. _ACEOF
  2318. # Keep a trace of the command line.
  2319. # Strip out --no-create and --no-recursion so they do not pile up.
  2320. # Strip out --silent because we don't want to record it for future runs.
  2321. # Also quote any args containing shell meta-characters.
  2322. # Make two passes to allow for proper duplicate-argument suppression.
  2323. ac_configure_args=
  2324. ac_configure_args0=
  2325. ac_configure_args1=
  2326. ac_must_keep_next=false
  2327. for ac_pass in 1 2
  2328. do
  2329. for ac_arg
  2330. do
  2331. case $ac_arg in
  2332. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2333. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2334. | -silent | --silent | --silen | --sile | --sil)
  2335. continue ;;
  2336. *\'*)
  2337. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2338. esac
  2339. case $ac_pass in
  2340. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2341. 2)
  2342. as_fn_append ac_configure_args1 " '$ac_arg'"
  2343. if test $ac_must_keep_next = true; then
  2344. ac_must_keep_next=false # Got value, back to normal.
  2345. else
  2346. case $ac_arg in
  2347. *=* | --config-cache | -C | -disable-* | --disable-* \
  2348. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2349. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2350. | -with-* | --with-* | -without-* | --without-* | --x)
  2351. case "$ac_configure_args0 " in
  2352. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2353. esac
  2354. ;;
  2355. -* ) ac_must_keep_next=true ;;
  2356. esac
  2357. fi
  2358. as_fn_append ac_configure_args " '$ac_arg'"
  2359. ;;
  2360. esac
  2361. done
  2362. done
  2363. { ac_configure_args0=; unset ac_configure_args0;}
  2364. { ac_configure_args1=; unset ac_configure_args1;}
  2365. # When interrupted or exit'd, cleanup temporary files, and complete
  2366. # config.log. We remove comments because anyway the quotes in there
  2367. # would cause problems or look ugly.
  2368. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2369. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2370. trap 'exit_status=$?
  2371. # Save into config.log some information that might help in debugging.
  2372. {
  2373. echo
  2374. cat <<\_ASBOX
  2375. ## ---------------- ##
  2376. ## Cache variables. ##
  2377. ## ---------------- ##
  2378. _ASBOX
  2379. echo
  2380. # The following way of writing the cache mishandles newlines in values,
  2381. (
  2382. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2383. eval ac_val=\$$ac_var
  2384. case $ac_val in #(
  2385. *${as_nl}*)
  2386. case $ac_var in #(
  2387. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2388. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2389. esac
  2390. case $ac_var in #(
  2391. _ | IFS | as_nl) ;; #(
  2392. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2393. *) { eval $ac_var=; unset $ac_var;} ;;
  2394. esac ;;
  2395. esac
  2396. done
  2397. (set) 2>&1 |
  2398. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2399. *${as_nl}ac_space=\ *)
  2400. sed -n \
  2401. "s/'\''/'\''\\\\'\'''\''/g;
  2402. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2403. ;; #(
  2404. *)
  2405. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2406. ;;
  2407. esac |
  2408. sort
  2409. )
  2410. echo
  2411. cat <<\_ASBOX
  2412. ## ----------------- ##
  2413. ## Output variables. ##
  2414. ## ----------------- ##
  2415. _ASBOX
  2416. echo
  2417. for ac_var in $ac_subst_vars
  2418. do
  2419. eval ac_val=\$$ac_var
  2420. case $ac_val in
  2421. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2422. esac
  2423. $as_echo "$ac_var='\''$ac_val'\''"
  2424. done | sort
  2425. echo
  2426. if test -n "$ac_subst_files"; then
  2427. cat <<\_ASBOX
  2428. ## ------------------- ##
  2429. ## File substitutions. ##
  2430. ## ------------------- ##
  2431. _ASBOX
  2432. echo
  2433. for ac_var in $ac_subst_files
  2434. do
  2435. eval ac_val=\$$ac_var
  2436. case $ac_val in
  2437. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2438. esac
  2439. $as_echo "$ac_var='\''$ac_val'\''"
  2440. done | sort
  2441. echo
  2442. fi
  2443. if test -s confdefs.h; then
  2444. cat <<\_ASBOX
  2445. ## ----------- ##
  2446. ## confdefs.h. ##
  2447. ## ----------- ##
  2448. _ASBOX
  2449. echo
  2450. cat confdefs.h
  2451. echo
  2452. fi
  2453. test "$ac_signal" != 0 &&
  2454. $as_echo "$as_me: caught signal $ac_signal"
  2455. $as_echo "$as_me: exit $exit_status"
  2456. } >&5
  2457. rm -f core *.core core.conftest.* &&
  2458. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2459. exit $exit_status
  2460. ' 0
  2461. for ac_signal in 1 2 13 15; do
  2462. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2463. done
  2464. ac_signal=0
  2465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2466. rm -f -r conftest* confdefs.h
  2467. $as_echo "/* confdefs.h */" > confdefs.h
  2468. # Predefined preprocessor variables.
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_NAME "$PACKAGE_NAME"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_STRING "$PACKAGE_STRING"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_URL "$PACKAGE_URL"
  2486. _ACEOF
  2487. # Let the site file select an alternate cache file if it wants to.
  2488. # Prefer an explicitly selected file to automatically selected ones.
  2489. ac_site_file1=NONE
  2490. ac_site_file2=NONE
  2491. if test -n "$CONFIG_SITE"; then
  2492. ac_site_file1=$CONFIG_SITE
  2493. elif test "x$prefix" != xNONE; then
  2494. ac_site_file1=$prefix/share/config.site
  2495. ac_site_file2=$prefix/etc/config.site
  2496. else
  2497. ac_site_file1=$ac_default_prefix/share/config.site
  2498. ac_site_file2=$ac_default_prefix/etc/config.site
  2499. fi
  2500. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2501. do
  2502. test "x$ac_site_file" = xNONE && continue
  2503. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2505. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2506. sed 's/^/| /' "$ac_site_file" >&5
  2507. . "$ac_site_file"
  2508. fi
  2509. done
  2510. if test -r "$cache_file"; then
  2511. # Some versions of bash will fail to source /dev/null (special files
  2512. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2513. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2515. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2516. case $cache_file in
  2517. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2518. *) . "./$cache_file";;
  2519. esac
  2520. fi
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2523. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2524. >$cache_file
  2525. fi
  2526. gt_needs="$gt_needs "
  2527. as_fn_append ac_header_list " stdlib.h"
  2528. as_fn_append ac_header_list " unistd.h"
  2529. as_fn_append ac_header_list " sys/param.h"
  2530. as_fn_append ac_header_list " sys/time.h"
  2531. as_fn_append ac_func_list " alarm"
  2532. # Check that the precious variables saved in the cache have kept the same
  2533. # value.
  2534. ac_cache_corrupted=false
  2535. for ac_var in $ac_precious_vars; do
  2536. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2537. eval ac_new_set=\$ac_env_${ac_var}_set
  2538. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2539. eval ac_new_val=\$ac_env_${ac_var}_value
  2540. case $ac_old_set,$ac_new_set in
  2541. set,)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,set)
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2547. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2548. ac_cache_corrupted=: ;;
  2549. ,);;
  2550. *)
  2551. if test "x$ac_old_val" != "x$ac_new_val"; then
  2552. # differences in whitespace do not lead to failure.
  2553. ac_old_val_w=`echo x $ac_old_val`
  2554. ac_new_val_w=`echo x $ac_new_val`
  2555. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2557. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2558. ac_cache_corrupted=:
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2561. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2562. eval $ac_var=\$ac_old_val
  2563. fi
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2565. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2567. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2568. fi;;
  2569. esac
  2570. # Pass precious variables to config.status.
  2571. if test "$ac_new_set" = set; then
  2572. case $ac_new_val in
  2573. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2574. *) ac_arg=$ac_var=$ac_new_val ;;
  2575. esac
  2576. case " $ac_configure_args " in
  2577. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2578. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2579. esac
  2580. fi
  2581. done
  2582. if $ac_cache_corrupted; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2584. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2586. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2587. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2588. fi
  2589. ## -------------------- ##
  2590. ## Main body of script. ##
  2591. ## -------------------- ##
  2592. ac_ext=c
  2593. ac_cpp='$CPP $CPPFLAGS'
  2594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2597. ac_aux_dir=
  2598. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2599. for ac_t in install-sh install.sh shtool; do
  2600. if test -f "$ac_dir/$ac_t"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2603. break 2
  2604. fi
  2605. done
  2606. done
  2607. if test -z "$ac_aux_dir"; then
  2608. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2609. fi
  2610. # These three variables are undocumented and unsupported,
  2611. # and are intended to be withdrawn in a future Autoconf release.
  2612. # They can cause serious problems if a builder's source tree is in a directory
  2613. # whose full name contains unusual characters.
  2614. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2615. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2616. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2617. # Make sure we can run config.sub.
  2618. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2619. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2621. $as_echo_n "checking build system type... " >&6; }
  2622. if test "${ac_cv_build+set}" = set; then :
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. ac_build_alias=$build_alias
  2626. test "x$ac_build_alias" = x &&
  2627. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2628. test "x$ac_build_alias" = x &&
  2629. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2630. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2631. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2632. fi
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2634. $as_echo "$ac_cv_build" >&6; }
  2635. case $ac_cv_build in
  2636. *-*-*) ;;
  2637. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2638. esac
  2639. build=$ac_cv_build
  2640. ac_save_IFS=$IFS; IFS='-'
  2641. set x $ac_cv_build
  2642. shift
  2643. build_cpu=$1
  2644. build_vendor=$2
  2645. shift; shift
  2646. # Remember, the first character of IFS is used to create $*,
  2647. # except with old shells:
  2648. build_os=$*
  2649. IFS=$ac_save_IFS
  2650. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2652. $as_echo_n "checking host system type... " >&6; }
  2653. if test "${ac_cv_host+set}" = set; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. if test "x$host_alias" = x; then
  2657. ac_cv_host=$ac_cv_build
  2658. else
  2659. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2660. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2661. fi
  2662. fi
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2664. $as_echo "$ac_cv_host" >&6; }
  2665. case $ac_cv_host in
  2666. *-*-*) ;;
  2667. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2668. esac
  2669. host=$ac_cv_host
  2670. ac_save_IFS=$IFS; IFS='-'
  2671. set x $ac_cv_host
  2672. shift
  2673. host_cpu=$1
  2674. host_vendor=$2
  2675. shift; shift
  2676. # Remember, the first character of IFS is used to create $*,
  2677. # except with old shells:
  2678. host_os=$*
  2679. IFS=$ac_save_IFS
  2680. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2682. $as_echo_n "checking target system type... " >&6; }
  2683. if test "${ac_cv_target+set}" = set; then :
  2684. $as_echo_n "(cached) " >&6
  2685. else
  2686. if test "x$target_alias" = x; then
  2687. ac_cv_target=$ac_cv_host
  2688. else
  2689. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2690. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2691. fi
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2694. $as_echo "$ac_cv_target" >&6; }
  2695. case $ac_cv_target in
  2696. *-*-*) ;;
  2697. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2698. esac
  2699. target=$ac_cv_target
  2700. ac_save_IFS=$IFS; IFS='-'
  2701. set x $ac_cv_target
  2702. shift
  2703. target_cpu=$1
  2704. target_vendor=$2
  2705. shift; shift
  2706. # Remember, the first character of IFS is used to create $*,
  2707. # except with old shells:
  2708. target_os=$*
  2709. IFS=$ac_save_IFS
  2710. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2711. # The aliases save the names the user supplied, while $host etc.
  2712. # will get canonicalized.
  2713. test -n "$target_alias" &&
  2714. test "$program_prefix$program_suffix$program_transform_name" = \
  2715. NONENONEs,x,x, &&
  2716. program_prefix=${target_alias}-
  2717. am__api_version='1.11'
  2718. # Find a good install program. We prefer a C program (faster),
  2719. # so one script is as good as another. But avoid the broken or
  2720. # incompatible versions:
  2721. # SysV /etc/install, /usr/sbin/install
  2722. # SunOS /usr/etc/install
  2723. # IRIX /sbin/install
  2724. # AIX /bin/install
  2725. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2726. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2727. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2728. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2729. # OS/2's system install, which has a completely different semantic
  2730. # ./install, which can be erroneously created by make from ./install.sh.
  2731. # Reject install programs that cannot install multiple files.
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2733. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2734. if test -z "$INSTALL"; then
  2735. if test "${ac_cv_path_install+set}" = set; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. # Account for people who put trailing slashes in PATH elements.
  2744. case $as_dir/ in #((
  2745. ./ | .// | /[cC]/* | \
  2746. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2747. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2748. /usr/ucb/* ) ;;
  2749. *)
  2750. # OSF1 and SCO ODT 3.0 have their own names for install.
  2751. # Don't use installbsd from OSF since it installs stuff as root
  2752. # by default.
  2753. for ac_prog in ginstall scoinst install; do
  2754. for ac_exec_ext in '' $ac_executable_extensions; do
  2755. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2756. if test $ac_prog = install &&
  2757. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2758. # AIX install. It has an incompatible calling convention.
  2759. :
  2760. elif test $ac_prog = install &&
  2761. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2762. # program-specific install script used by HP pwplus--don't use.
  2763. :
  2764. else
  2765. rm -rf conftest.one conftest.two conftest.dir
  2766. echo one > conftest.one
  2767. echo two > conftest.two
  2768. mkdir conftest.dir
  2769. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2770. test -s conftest.one && test -s conftest.two &&
  2771. test -s conftest.dir/conftest.one &&
  2772. test -s conftest.dir/conftest.two
  2773. then
  2774. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2775. break 3
  2776. fi
  2777. fi
  2778. fi
  2779. done
  2780. done
  2781. ;;
  2782. esac
  2783. done
  2784. IFS=$as_save_IFS
  2785. rm -rf conftest.one conftest.two conftest.dir
  2786. fi
  2787. if test "${ac_cv_path_install+set}" = set; then
  2788. INSTALL=$ac_cv_path_install
  2789. else
  2790. # As a last resort, use the slow shell script. Don't cache a
  2791. # value for INSTALL within a source directory, because that will
  2792. # break other packages using the cache if that directory is
  2793. # removed, or if the value is a relative name.
  2794. INSTALL=$ac_install_sh
  2795. fi
  2796. fi
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2798. $as_echo "$INSTALL" >&6; }
  2799. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2800. # It thinks the first close brace ends the variable substitution.
  2801. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2802. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2803. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2805. $as_echo_n "checking whether build environment is sane... " >&6; }
  2806. # Just in case
  2807. sleep 1
  2808. echo timestamp > conftest.file
  2809. # Reject unsafe characters in $srcdir or the absolute working directory
  2810. # name. Accept space and tab only in the latter.
  2811. am_lf='
  2812. '
  2813. case `pwd` in
  2814. *[\\\"\#\$\&\'\`$am_lf]*)
  2815. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2816. esac
  2817. case $srcdir in
  2818. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2819. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2820. esac
  2821. # Do `set' in a subshell so we don't clobber the current shell's
  2822. # arguments. Must try -L first in case configure is actually a
  2823. # symlink; some systems play weird games with the mod time of symlinks
  2824. # (eg FreeBSD returns the mod time of the symlink's containing
  2825. # directory).
  2826. if (
  2827. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2828. if test "$*" = "X"; then
  2829. # -L didn't work.
  2830. set X `ls -t "$srcdir/configure" conftest.file`
  2831. fi
  2832. rm -f conftest.file
  2833. if test "$*" != "X $srcdir/configure conftest.file" \
  2834. && test "$*" != "X conftest.file $srcdir/configure"; then
  2835. # If neither matched, then we have a broken ls. This can happen
  2836. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2837. # broken ls alias from the environment. This has actually
  2838. # happened. Such a system could not be considered "sane".
  2839. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2840. alias in your environment" "$LINENO" 5
  2841. fi
  2842. test "$2" = conftest.file
  2843. )
  2844. then
  2845. # Ok.
  2846. :
  2847. else
  2848. as_fn_error "newly created file is older than distributed files!
  2849. Check your system clock" "$LINENO" 5
  2850. fi
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2852. $as_echo "yes" >&6; }
  2853. test "$program_prefix" != NONE &&
  2854. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2855. # Use a double $ so make ignores it.
  2856. test "$program_suffix" != NONE &&
  2857. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2858. # Double any \ or $.
  2859. # By default was `s,x,x', remove it if useless.
  2860. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2861. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2862. # expand $ac_aux_dir to an absolute path
  2863. am_aux_dir=`cd $ac_aux_dir && pwd`
  2864. if test x"${MISSING+set}" != xset; then
  2865. case $am_aux_dir in
  2866. *\ * | *\ *)
  2867. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2868. *)
  2869. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2870. esac
  2871. fi
  2872. # Use eval to expand $SHELL
  2873. if eval "$MISSING --run true"; then
  2874. am_missing_run="$MISSING --run "
  2875. else
  2876. am_missing_run=
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2878. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2879. fi
  2880. if test x"${install_sh}" != xset; then
  2881. case $am_aux_dir in
  2882. *\ * | *\ *)
  2883. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2884. *)
  2885. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2886. esac
  2887. fi
  2888. # Installed binaries are usually stripped using `strip' when the user
  2889. # run `make install-strip'. However `strip' might not be the right
  2890. # tool to use in cross-compilation environments, therefore Automake
  2891. # will honor the `STRIP' environment variable to overrule this program.
  2892. if test "$cross_compiling" != no; then
  2893. if test -n "$ac_tool_prefix"; then
  2894. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2895. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. $as_echo_n "checking for $ac_word... " >&6; }
  2898. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. if test -n "$STRIP"; then
  2902. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. test -z "$as_dir" && as_dir=.
  2909. for ac_exec_ext in '' $ac_executable_extensions; do
  2910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2911. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. fi
  2920. STRIP=$ac_cv_prog_STRIP
  2921. if test -n "$STRIP"; then
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2923. $as_echo "$STRIP" >&6; }
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927. fi
  2928. fi
  2929. if test -z "$ac_cv_prog_STRIP"; then
  2930. ac_ct_STRIP=$STRIP
  2931. # Extract the first word of "strip", so it can be a program name with args.
  2932. set dummy strip; ac_word=$2
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2934. $as_echo_n "checking for $ac_word... " >&6; }
  2935. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. if test -n "$ac_ct_STRIP"; then
  2939. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2948. ac_cv_prog_ac_ct_STRIP="strip"
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2958. if test -n "$ac_ct_STRIP"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2960. $as_echo "$ac_ct_STRIP" >&6; }
  2961. else
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. fi
  2965. if test "x$ac_ct_STRIP" = x; then
  2966. STRIP=":"
  2967. else
  2968. case $cross_compiling:$ac_tool_warned in
  2969. yes:)
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2972. ac_tool_warned=yes ;;
  2973. esac
  2974. STRIP=$ac_ct_STRIP
  2975. fi
  2976. else
  2977. STRIP="$ac_cv_prog_STRIP"
  2978. fi
  2979. fi
  2980. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2982. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2983. if test -z "$MKDIR_P"; then
  2984. if test "${ac_cv_path_mkdir+set}" = set; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2988. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2989. do
  2990. IFS=$as_save_IFS
  2991. test -z "$as_dir" && as_dir=.
  2992. for ac_prog in mkdir gmkdir; do
  2993. for ac_exec_ext in '' $ac_executable_extensions; do
  2994. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2995. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2996. 'mkdir (GNU coreutils) '* | \
  2997. 'mkdir (coreutils) '* | \
  2998. 'mkdir (fileutils) '4.1*)
  2999. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3000. break 3;;
  3001. esac
  3002. done
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. test -d ./--version && rmdir ./--version
  3008. if test "${ac_cv_path_mkdir+set}" = set; then
  3009. MKDIR_P="$ac_cv_path_mkdir -p"
  3010. else
  3011. # As a last resort, use the slow shell script. Don't cache a
  3012. # value for MKDIR_P within a source directory, because that will
  3013. # break other packages using the cache if that directory is
  3014. # removed, or if the value is a relative name.
  3015. MKDIR_P="$ac_install_sh -d"
  3016. fi
  3017. fi
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3019. $as_echo "$MKDIR_P" >&6; }
  3020. mkdir_p="$MKDIR_P"
  3021. case $mkdir_p in
  3022. [\\/$]* | ?:[\\/]*) ;;
  3023. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3024. esac
  3025. for ac_prog in gawk mawk nawk awk
  3026. do
  3027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3028. set dummy $ac_prog; ac_word=$2
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3030. $as_echo_n "checking for $ac_word... " >&6; }
  3031. if test "${ac_cv_prog_AWK+set}" = set; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. if test -n "$AWK"; then
  3035. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3044. ac_cv_prog_AWK="$ac_prog"
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. IFS=$as_save_IFS
  3051. fi
  3052. fi
  3053. AWK=$ac_cv_prog_AWK
  3054. if test -n "$AWK"; then
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3056. $as_echo "$AWK" >&6; }
  3057. else
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3059. $as_echo "no" >&6; }
  3060. fi
  3061. test -n "$AWK" && break
  3062. done
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3064. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3065. set x ${MAKE-make}
  3066. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3067. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. cat >conftest.make <<\_ACEOF
  3071. SHELL = /bin/sh
  3072. all:
  3073. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3074. _ACEOF
  3075. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3076. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3077. *@@@%%%=?*=@@@%%%*)
  3078. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3079. *)
  3080. eval ac_cv_prog_make_${ac_make}_set=no;;
  3081. esac
  3082. rm -f conftest.make
  3083. fi
  3084. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3086. $as_echo "yes" >&6; }
  3087. SET_MAKE=
  3088. else
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3090. $as_echo "no" >&6; }
  3091. SET_MAKE="MAKE=${MAKE-make}"
  3092. fi
  3093. rm -rf .tst 2>/dev/null
  3094. mkdir .tst 2>/dev/null
  3095. if test -d .tst; then
  3096. am__leading_dot=.
  3097. else
  3098. am__leading_dot=_
  3099. fi
  3100. rmdir .tst 2>/dev/null
  3101. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3102. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3103. # is not polluted with repeated "-I."
  3104. am__isrc=' -I$(srcdir)'
  3105. # test to see if srcdir already configured
  3106. if test -f $srcdir/config.status; then
  3107. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3108. fi
  3109. fi
  3110. # test whether we have cygpath
  3111. if test -z "$CYGPATH_W"; then
  3112. if (cygpath --version) >/dev/null 2>/dev/null; then
  3113. CYGPATH_W='cygpath -w'
  3114. else
  3115. CYGPATH_W=echo
  3116. fi
  3117. fi
  3118. # Define the identity of the package.
  3119. PACKAGE='aria2'
  3120. VERSION='1.9.1'
  3121. cat >>confdefs.h <<_ACEOF
  3122. #define PACKAGE "$PACKAGE"
  3123. _ACEOF
  3124. cat >>confdefs.h <<_ACEOF
  3125. #define VERSION "$VERSION"
  3126. _ACEOF
  3127. # Some tools Automake needs.
  3128. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3129. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3130. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3131. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3132. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3133. # We need awk for the "check" target. The system "awk" is bad on
  3134. # some platforms.
  3135. # Always define AMTAR for backward compatibility.
  3136. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3137. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3138. # Check whether --with-cppunit-prefix was given.
  3139. if test "${with_cppunit_prefix+set}" = set; then :
  3140. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3141. else
  3142. cppunit_config_prefix=""
  3143. fi
  3144. # Check whether --with-cppunit-exec-prefix was given.
  3145. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3146. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3147. else
  3148. cppunit_config_exec_prefix=""
  3149. fi
  3150. if test x$cppunit_config_exec_prefix != x ; then
  3151. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3152. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3153. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3154. fi
  3155. fi
  3156. if test x$cppunit_config_prefix != x ; then
  3157. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3158. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3159. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3160. fi
  3161. fi
  3162. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3163. set dummy cppunit-config; ac_word=$2
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3165. $as_echo_n "checking for $ac_word... " >&6; }
  3166. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3167. $as_echo_n "(cached) " >&6
  3168. else
  3169. case $CPPUNIT_CONFIG in
  3170. [\\/]* | ?:[\\/]*)
  3171. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3172. ;;
  3173. *)
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3181. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3189. ;;
  3190. esac
  3191. fi
  3192. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3193. if test -n "$CPPUNIT_CONFIG"; then
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3195. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3196. else
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3198. $as_echo "no" >&6; }
  3199. fi
  3200. cppunit_version_min=1.10.2
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3202. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3203. no_cppunit=""
  3204. if test "$CPPUNIT_CONFIG" = "no" ; then
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3206. $as_echo "no" >&6; }
  3207. no_cppunit=yes
  3208. else
  3209. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3210. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3211. cppunit_version=`$CPPUNIT_CONFIG --version`
  3212. cppunit_major_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3214. cppunit_minor_version=`echo $cppunit_version | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3216. cppunit_micro_version=`echo $cppunit_version | \
  3217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3218. cppunit_major_min=`echo $cppunit_version_min | \
  3219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3220. if test "x${cppunit_major_min}" = "x" ; then
  3221. cppunit_major_min=0
  3222. fi
  3223. cppunit_minor_min=`echo $cppunit_version_min | \
  3224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3225. if test "x${cppunit_minor_min}" = "x" ; then
  3226. cppunit_minor_min=0
  3227. fi
  3228. cppunit_micro_min=`echo $cppunit_version_min | \
  3229. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3230. if test "x${cppunit_micro_min}" = "x" ; then
  3231. cppunit_micro_min=0
  3232. fi
  3233. cppunit_version_proper=`expr \
  3234. $cppunit_major_version \> $cppunit_major_min \| \
  3235. $cppunit_major_version \= $cppunit_major_min \& \
  3236. $cppunit_minor_version \> $cppunit_minor_min \| \
  3237. $cppunit_major_version \= $cppunit_major_min \& \
  3238. $cppunit_minor_version \= $cppunit_minor_min \& \
  3239. $cppunit_micro_version \>= $cppunit_micro_min `
  3240. if test "$cppunit_version_proper" = "1" ; then
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3242. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3243. else
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3245. $as_echo "no" >&6; }
  3246. no_cppunit=yes
  3247. fi
  3248. fi
  3249. if test "x$no_cppunit" = x ; then
  3250. :
  3251. else
  3252. CPPUNIT_CFLAGS=""
  3253. CPPUNIT_LIBS=""
  3254. :
  3255. fi
  3256. ac_config_headers="$ac_config_headers config.h"
  3257. case "$target" in
  3258. *mingw*|*cygwin*)
  3259. WINSOCK_LIBS="-lws2_32"
  3260. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3261. ;;
  3262. esac
  3263. cat >>confdefs.h <<_ACEOF
  3264. #define TARGET "$target"
  3265. _ACEOF
  3266. # Checks for arguments.
  3267. # Check whether --with-gnutls was given.
  3268. if test "${with_gnutls+set}" = set; then :
  3269. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3270. else
  3271. with_gnutls=yes
  3272. fi
  3273. # Check whether --with-openssl was given.
  3274. if test "${with_openssl+set}" = set; then :
  3275. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3276. else
  3277. with_openssl=yes
  3278. fi
  3279. # Check whether --with-sqlite3 was given.
  3280. if test "${with_sqlite3+set}" = set; then :
  3281. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3282. else
  3283. with_sqlite3=yes
  3284. fi
  3285. # Check whether --with-libxml2 was given.
  3286. if test "${with_libxml2+set}" = set; then :
  3287. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3288. else
  3289. with_libxml2=yes
  3290. fi
  3291. # Check whether --with-libexpat was given.
  3292. if test "${with_libexpat+set}" = set; then :
  3293. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3294. else
  3295. with_libexpat=yes
  3296. fi
  3297. # Check whether --with-libcares was given.
  3298. if test "${with_libcares+set}" = set; then :
  3299. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3300. else
  3301. with_libcares=yes
  3302. fi
  3303. # Check whether --with-libz was given.
  3304. if test "${with_libz+set}" = set; then :
  3305. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3306. else
  3307. with_libz=yes
  3308. fi
  3309. # Check whether --enable-bittorrent was given.
  3310. if test "${enable_bittorrent+set}" = set; then :
  3311. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3312. else
  3313. enable_bittorrent=yes
  3314. fi
  3315. # Check whether --enable-metalink was given.
  3316. if test "${enable_metalink+set}" = set; then :
  3317. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3318. else
  3319. enable_metalink=yes
  3320. fi
  3321. # Check whether --enable-epoll was given.
  3322. if test "${enable_epoll+set}" = set; then :
  3323. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3324. else
  3325. enable_epoll=yes
  3326. fi
  3327. # Check whether --with-ca-bundle was given.
  3328. if test "${with_ca_bundle+set}" = set; then :
  3329. withval=$with_ca_bundle; ca_bundle=$withval
  3330. else
  3331. ca_bundle=""
  3332. fi
  3333. # Checks for programs.
  3334. ac_ext=cpp
  3335. ac_cpp='$CXXCPP $CPPFLAGS'
  3336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3339. if test -z "$CXX"; then
  3340. if test -n "$CCC"; then
  3341. CXX=$CCC
  3342. else
  3343. if test -n "$ac_tool_prefix"; then
  3344. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3345. do
  3346. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3347. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3349. $as_echo_n "checking for $ac_word... " >&6; }
  3350. if test "${ac_cv_prog_CXX+set}" = set; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. if test -n "$CXX"; then
  3354. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3355. else
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3363. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. CXX=$ac_cv_prog_CXX
  3373. if test -n "$CXX"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3375. $as_echo "$CXX" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. test -n "$CXX" && break
  3381. done
  3382. fi
  3383. if test -z "$CXX"; then
  3384. ac_ct_CXX=$CXX
  3385. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3386. do
  3387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3388. set dummy $ac_prog; ac_word=$2
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3390. $as_echo_n "checking for $ac_word... " >&6; }
  3391. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. if test -n "$ac_ct_CXX"; then
  3395. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. test -z "$as_dir" && as_dir=.
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3404. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3414. if test -n "$ac_ct_CXX"; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3416. $as_echo "$ac_ct_CXX" >&6; }
  3417. else
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421. test -n "$ac_ct_CXX" && break
  3422. done
  3423. if test "x$ac_ct_CXX" = x; then
  3424. CXX="g++"
  3425. else
  3426. case $cross_compiling:$ac_tool_warned in
  3427. yes:)
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3430. ac_tool_warned=yes ;;
  3431. esac
  3432. CXX=$ac_ct_CXX
  3433. fi
  3434. fi
  3435. fi
  3436. fi
  3437. # Provide some information about the compiler.
  3438. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3439. set X $ac_compile
  3440. ac_compiler=$2
  3441. for ac_option in --version -v -V -qversion; do
  3442. { { ac_try="$ac_compiler $ac_option >&5"
  3443. case "(($ac_try" in
  3444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445. *) ac_try_echo=$ac_try;;
  3446. esac
  3447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3448. $as_echo "$ac_try_echo"; } >&5
  3449. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3450. ac_status=$?
  3451. if test -s conftest.err; then
  3452. sed '10a\
  3453. ... rest of stderr output deleted ...
  3454. 10q' conftest.err >conftest.er1
  3455. cat conftest.er1 >&5
  3456. fi
  3457. rm -f conftest.er1 conftest.err
  3458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3459. test $ac_status = 0; }
  3460. done
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. ac_clean_files_save=$ac_clean_files
  3471. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3472. # Try to create an executable without -o first, disregard a.out.
  3473. # It will help us diagnose broken compilers, and finding out an intuition
  3474. # of exeext.
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3476. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3477. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3478. # The possible output files:
  3479. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3480. ac_rmfiles=
  3481. for ac_file in $ac_files
  3482. do
  3483. case $ac_file in
  3484. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3485. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3486. esac
  3487. done
  3488. rm -f $ac_rmfiles
  3489. if { { ac_try="$ac_link_default"
  3490. case "(($ac_try" in
  3491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3492. *) ac_try_echo=$ac_try;;
  3493. esac
  3494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3495. $as_echo "$ac_try_echo"; } >&5
  3496. (eval "$ac_link_default") 2>&5
  3497. ac_status=$?
  3498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3499. test $ac_status = 0; }; then :
  3500. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3501. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3502. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3503. # so that the user can short-circuit this test for compilers unknown to
  3504. # Autoconf.
  3505. for ac_file in $ac_files ''
  3506. do
  3507. test -f "$ac_file" || continue
  3508. case $ac_file in
  3509. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3510. ;;
  3511. [ab].out )
  3512. # We found the default executable, but exeext='' is most
  3513. # certainly right.
  3514. break;;
  3515. *.* )
  3516. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3517. then :; else
  3518. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3519. fi
  3520. # We set ac_cv_exeext here because the later test for it is not
  3521. # safe: cross compilers may not add the suffix if given an `-o'
  3522. # argument, so we may need to know it at that point already.
  3523. # Even if this section looks crufty: it has the advantage of
  3524. # actually working.
  3525. break;;
  3526. * )
  3527. break;;
  3528. esac
  3529. done
  3530. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3531. else
  3532. ac_file=''
  3533. fi
  3534. if test -z "$ac_file"; then :
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3536. $as_echo "no" >&6; }
  3537. $as_echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3541. { as_fn_set_status 77
  3542. as_fn_error "C++ compiler cannot create executables
  3543. See \`config.log' for more details." "$LINENO" 5; }; }
  3544. else
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3546. $as_echo "yes" >&6; }
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3549. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3551. $as_echo "$ac_file" >&6; }
  3552. ac_exeext=$ac_cv_exeext
  3553. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3554. ac_clean_files=$ac_clean_files_save
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3556. $as_echo_n "checking for suffix of executables... " >&6; }
  3557. if { { ac_try="$ac_link"
  3558. case "(($ac_try" in
  3559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3560. *) ac_try_echo=$ac_try;;
  3561. esac
  3562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3563. $as_echo "$ac_try_echo"; } >&5
  3564. (eval "$ac_link") 2>&5
  3565. ac_status=$?
  3566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3567. test $ac_status = 0; }; then :
  3568. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3569. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3570. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3571. # `rm'.
  3572. for ac_file in conftest.exe conftest conftest.*; do
  3573. test -f "$ac_file" || continue
  3574. case $ac_file in
  3575. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3576. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3577. break;;
  3578. * ) break;;
  3579. esac
  3580. done
  3581. else
  3582. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3584. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3585. See \`config.log' for more details." "$LINENO" 5; }
  3586. fi
  3587. rm -f conftest conftest$ac_cv_exeext
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3589. $as_echo "$ac_cv_exeext" >&6; }
  3590. rm -f conftest.$ac_ext
  3591. EXEEXT=$ac_cv_exeext
  3592. ac_exeext=$EXEEXT
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. #include <stdio.h>
  3596. int
  3597. main ()
  3598. {
  3599. FILE *f = fopen ("conftest.out", "w");
  3600. return ferror (f) || fclose (f) != 0;
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. ac_clean_files="$ac_clean_files conftest.out"
  3606. # Check that the compiler produces executables we can run. If not, either
  3607. # the compiler is broken, or we cross compile.
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3609. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3610. if test "$cross_compiling" != yes; then
  3611. { { ac_try="$ac_link"
  3612. case "(($ac_try" in
  3613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3614. *) ac_try_echo=$ac_try;;
  3615. esac
  3616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3617. $as_echo "$ac_try_echo"; } >&5
  3618. (eval "$ac_link") 2>&5
  3619. ac_status=$?
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3621. test $ac_status = 0; }
  3622. if { ac_try='./conftest$ac_cv_exeext'
  3623. { { case "(($ac_try" in
  3624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3625. *) ac_try_echo=$ac_try;;
  3626. esac
  3627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3628. $as_echo "$ac_try_echo"; } >&5
  3629. (eval "$ac_try") 2>&5
  3630. ac_status=$?
  3631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3632. test $ac_status = 0; }; }; then
  3633. cross_compiling=no
  3634. else
  3635. if test "$cross_compiling" = maybe; then
  3636. cross_compiling=yes
  3637. else
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3640. as_fn_error "cannot run C++ compiled programs.
  3641. If you meant to cross compile, use \`--host'.
  3642. See \`config.log' for more details." "$LINENO" 5; }
  3643. fi
  3644. fi
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3647. $as_echo "$cross_compiling" >&6; }
  3648. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3649. ac_clean_files=$ac_clean_files_save
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3651. $as_echo_n "checking for suffix of object files... " >&6; }
  3652. if test "${ac_cv_objext+set}" = set; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. int
  3658. main ()
  3659. {
  3660. ;
  3661. return 0;
  3662. }
  3663. _ACEOF
  3664. rm -f conftest.o conftest.obj
  3665. if { { ac_try="$ac_compile"
  3666. case "(($ac_try" in
  3667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3668. *) ac_try_echo=$ac_try;;
  3669. esac
  3670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3671. $as_echo "$ac_try_echo"; } >&5
  3672. (eval "$ac_compile") 2>&5
  3673. ac_status=$?
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3675. test $ac_status = 0; }; then :
  3676. for ac_file in conftest.o conftest.obj conftest.*; do
  3677. test -f "$ac_file" || continue;
  3678. case $ac_file in
  3679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3680. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3681. break;;
  3682. esac
  3683. done
  3684. else
  3685. $as_echo "$as_me: failed program was:" >&5
  3686. sed 's/^/| /' conftest.$ac_ext >&5
  3687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3689. as_fn_error "cannot compute suffix of object files: cannot compile
  3690. See \`config.log' for more details." "$LINENO" 5; }
  3691. fi
  3692. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3695. $as_echo "$ac_cv_objext" >&6; }
  3696. OBJEXT=$ac_cv_objext
  3697. ac_objext=$OBJEXT
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3699. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3700. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3701. $as_echo_n "(cached) " >&6
  3702. else
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. #ifndef __GNUC__
  3709. choke me
  3710. #endif
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. if ac_fn_cxx_try_compile "$LINENO"; then :
  3716. ac_compiler_gnu=yes
  3717. else
  3718. ac_compiler_gnu=no
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3721. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3724. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3725. if test $ac_compiler_gnu = yes; then
  3726. GXX=yes
  3727. else
  3728. GXX=
  3729. fi
  3730. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3731. ac_save_CXXFLAGS=$CXXFLAGS
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3733. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3734. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3738. ac_cxx_werror_flag=yes
  3739. ac_cv_prog_cxx_g=no
  3740. CXXFLAGS="-g"
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. int
  3744. main ()
  3745. {
  3746. ;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. if ac_fn_cxx_try_compile "$LINENO"; then :
  3751. ac_cv_prog_cxx_g=yes
  3752. else
  3753. CXXFLAGS=""
  3754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3755. /* end confdefs.h. */
  3756. int
  3757. main ()
  3758. {
  3759. ;
  3760. return 0;
  3761. }
  3762. _ACEOF
  3763. if ac_fn_cxx_try_compile "$LINENO"; then :
  3764. else
  3765. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3766. CXXFLAGS="-g"
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int
  3770. main ()
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. if ac_fn_cxx_try_compile "$LINENO"; then :
  3777. ac_cv_prog_cxx_g=yes
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. fi
  3781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3782. fi
  3783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3784. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3785. fi
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3787. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3788. if test "$ac_test_CXXFLAGS" = set; then
  3789. CXXFLAGS=$ac_save_CXXFLAGS
  3790. elif test $ac_cv_prog_cxx_g = yes; then
  3791. if test "$GXX" = yes; then
  3792. CXXFLAGS="-g -O2"
  3793. else
  3794. CXXFLAGS="-g"
  3795. fi
  3796. else
  3797. if test "$GXX" = yes; then
  3798. CXXFLAGS="-O2"
  3799. else
  3800. CXXFLAGS=
  3801. fi
  3802. fi
  3803. ac_ext=c
  3804. ac_cpp='$CPP $CPPFLAGS'
  3805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3808. DEPDIR="${am__leading_dot}deps"
  3809. ac_config_commands="$ac_config_commands depfiles"
  3810. am_make=${MAKE-make}
  3811. cat > confinc << 'END'
  3812. am__doit:
  3813. @echo this is the am__doit target
  3814. .PHONY: am__doit
  3815. END
  3816. # If we don't find an include directive, just comment out the code.
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3818. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3819. am__include="#"
  3820. am__quote=
  3821. _am_result=none
  3822. # First try GNU make style include.
  3823. echo "include confinc" > confmf
  3824. # Ignore all kinds of additional output from `make'.
  3825. case `$am_make -s -f confmf 2> /dev/null` in #(
  3826. *the\ am__doit\ target*)
  3827. am__include=include
  3828. am__quote=
  3829. _am_result=GNU
  3830. ;;
  3831. esac
  3832. # Now try BSD make style include.
  3833. if test "$am__include" = "#"; then
  3834. echo '.include "confinc"' > confmf
  3835. case `$am_make -s -f confmf 2> /dev/null` in #(
  3836. *the\ am__doit\ target*)
  3837. am__include=.include
  3838. am__quote="\""
  3839. _am_result=BSD
  3840. ;;
  3841. esac
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3844. $as_echo "$_am_result" >&6; }
  3845. rm -f confinc confmf
  3846. # Check whether --enable-dependency-tracking was given.
  3847. if test "${enable_dependency_tracking+set}" = set; then :
  3848. enableval=$enable_dependency_tracking;
  3849. fi
  3850. if test "x$enable_dependency_tracking" != xno; then
  3851. am_depcomp="$ac_aux_dir/depcomp"
  3852. AMDEPBACKSLASH='\'
  3853. fi
  3854. if test "x$enable_dependency_tracking" != xno; then
  3855. AMDEP_TRUE=
  3856. AMDEP_FALSE='#'
  3857. else
  3858. AMDEP_TRUE='#'
  3859. AMDEP_FALSE=
  3860. fi
  3861. depcc="$CXX" am_compiler_list=
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3863. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3864. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3868. # We make a subdir and do the tests there. Otherwise we can end up
  3869. # making bogus files that we don't know about and never remove. For
  3870. # instance it was reported that on HP-UX the gcc test will end up
  3871. # making a dummy file named `D' -- because `-MD' means `put the output
  3872. # in D'.
  3873. mkdir conftest.dir
  3874. # Copy depcomp to subdir because otherwise we won't find it if we're
  3875. # using a relative directory.
  3876. cp "$am_depcomp" conftest.dir
  3877. cd conftest.dir
  3878. # We will build objects and dependencies in a subdirectory because
  3879. # it helps to detect inapplicable dependency modes. For instance
  3880. # both Tru64's cc and ICC support -MD to output dependencies as a
  3881. # side effect of compilation, but ICC will put the dependencies in
  3882. # the current directory while Tru64 will put them in the object
  3883. # directory.
  3884. mkdir sub
  3885. am_cv_CXX_dependencies_compiler_type=none
  3886. if test "$am_compiler_list" = ""; then
  3887. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3888. fi
  3889. am__universal=false
  3890. case " $depcc " in #(
  3891. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3892. esac
  3893. for depmode in $am_compiler_list; do
  3894. # Setup a source with many dependencies, because some compilers
  3895. # like to wrap large dependency lists on column 80 (with \), and
  3896. # we should not choose a depcomp mode which is confused by this.
  3897. #
  3898. # We need to recreate these files for each test, as the compiler may
  3899. # overwrite some of them when testing with obscure command lines.
  3900. # This happens at least with the AIX C compiler.
  3901. : > sub/conftest.c
  3902. for i in 1 2 3 4 5 6; do
  3903. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3904. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3905. # Solaris 8's {/usr,}/bin/sh.
  3906. touch sub/conftst$i.h
  3907. done
  3908. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3909. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3910. # mode. It turns out that the SunPro C++ compiler does not properly
  3911. # handle `-M -o', and we need to detect this. Also, some Intel
  3912. # versions had trouble with output in subdirs
  3913. am__obj=sub/conftest.${OBJEXT-o}
  3914. am__minus_obj="-o $am__obj"
  3915. case $depmode in
  3916. gcc)
  3917. # This depmode causes a compiler race in universal mode.
  3918. test "$am__universal" = false || continue
  3919. ;;
  3920. nosideeffect)
  3921. # after this tag, mechanisms are not by side-effect, so they'll
  3922. # only be used when explicitly requested
  3923. if test "x$enable_dependency_tracking" = xyes; then
  3924. continue
  3925. else
  3926. break
  3927. fi
  3928. ;;
  3929. msvisualcpp | msvcmsys)
  3930. # This compiler won't grok `-c -o', but also, the minuso test has
  3931. # not run yet. These depmodes are late enough in the game, and
  3932. # so weak that their functioning should not be impacted.
  3933. am__obj=conftest.${OBJEXT-o}
  3934. am__minus_obj=
  3935. ;;
  3936. none) break ;;
  3937. esac
  3938. if depmode=$depmode \
  3939. source=sub/conftest.c object=$am__obj \
  3940. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3941. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3942. >/dev/null 2>conftest.err &&
  3943. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3944. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3945. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3946. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3947. # icc doesn't choke on unknown options, it will just issue warnings
  3948. # or remarks (even with -Werror). So we grep stderr for any message
  3949. # that says an option was ignored or not supported.
  3950. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3951. # icc: Command line warning: ignoring option '-M'; no argument required
  3952. # The diagnosis changed in icc 8.0:
  3953. # icc: Command line remark: option '-MP' not supported
  3954. if (grep 'ignoring option' conftest.err ||
  3955. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3956. am_cv_CXX_dependencies_compiler_type=$depmode
  3957. break
  3958. fi
  3959. fi
  3960. done
  3961. cd ..
  3962. rm -rf conftest.dir
  3963. else
  3964. am_cv_CXX_dependencies_compiler_type=none
  3965. fi
  3966. fi
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3968. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3969. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3970. if
  3971. test "x$enable_dependency_tracking" != xno \
  3972. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3973. am__fastdepCXX_TRUE=
  3974. am__fastdepCXX_FALSE='#'
  3975. else
  3976. am__fastdepCXX_TRUE='#'
  3977. am__fastdepCXX_FALSE=
  3978. fi
  3979. ac_ext=c
  3980. ac_cpp='$CPP $CPPFLAGS'
  3981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3984. if test -n "$ac_tool_prefix"; then
  3985. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3986. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3988. $as_echo_n "checking for $ac_word... " >&6; }
  3989. if test "${ac_cv_prog_CC+set}" = set; then :
  3990. $as_echo_n "(cached) " >&6
  3991. else
  3992. if test -n "$CC"; then
  3993. ac_cv_prog_CC="$CC" # Let the user override the test.
  3994. else
  3995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3996. for as_dir in $PATH
  3997. do
  3998. IFS=$as_save_IFS
  3999. test -z "$as_dir" && as_dir=.
  4000. for ac_exec_ext in '' $ac_executable_extensions; do
  4001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4002. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4004. break 2
  4005. fi
  4006. done
  4007. done
  4008. IFS=$as_save_IFS
  4009. fi
  4010. fi
  4011. CC=$ac_cv_prog_CC
  4012. if test -n "$CC"; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4014. $as_echo "$CC" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4017. $as_echo "no" >&6; }
  4018. fi
  4019. fi
  4020. if test -z "$ac_cv_prog_CC"; then
  4021. ac_ct_CC=$CC
  4022. # Extract the first word of "gcc", so it can be a program name with args.
  4023. set dummy gcc; ac_word=$2
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4025. $as_echo_n "checking for $ac_word... " >&6; }
  4026. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. if test -n "$ac_ct_CC"; then
  4030. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4031. else
  4032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4033. for as_dir in $PATH
  4034. do
  4035. IFS=$as_save_IFS
  4036. test -z "$as_dir" && as_dir=.
  4037. for ac_exec_ext in '' $ac_executable_extensions; do
  4038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4039. ac_cv_prog_ac_ct_CC="gcc"
  4040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4041. break 2
  4042. fi
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. fi
  4047. fi
  4048. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4049. if test -n "$ac_ct_CC"; then
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4051. $as_echo "$ac_ct_CC" >&6; }
  4052. else
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4054. $as_echo "no" >&6; }
  4055. fi
  4056. if test "x$ac_ct_CC" = x; then
  4057. CC=""
  4058. else
  4059. case $cross_compiling:$ac_tool_warned in
  4060. yes:)
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4063. ac_tool_warned=yes ;;
  4064. esac
  4065. CC=$ac_ct_CC
  4066. fi
  4067. else
  4068. CC="$ac_cv_prog_CC"
  4069. fi
  4070. if test -z "$CC"; then
  4071. if test -n "$ac_tool_prefix"; then
  4072. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4073. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if test "${ac_cv_prog_CC+set}" = set; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$CC"; then
  4080. ac_cv_prog_CC="$CC" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. CC=$ac_cv_prog_CC
  4099. if test -n "$CC"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4101. $as_echo "$CC" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. fi
  4107. fi
  4108. if test -z "$CC"; then
  4109. # Extract the first word of "cc", so it can be a program name with args.
  4110. set dummy cc; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if test "${ac_cv_prog_CC+set}" = set; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$CC"; then
  4117. ac_cv_prog_CC="$CC" # Let the user override the test.
  4118. else
  4119. ac_prog_rejected=no
  4120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4121. for as_dir in $PATH
  4122. do
  4123. IFS=$as_save_IFS
  4124. test -z "$as_dir" && as_dir=.
  4125. for ac_exec_ext in '' $ac_executable_extensions; do
  4126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4127. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4128. ac_prog_rejected=yes
  4129. continue
  4130. fi
  4131. ac_cv_prog_CC="cc"
  4132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4133. break 2
  4134. fi
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. if test $ac_prog_rejected = yes; then
  4139. # We found a bogon in the path, so make sure we never use it.
  4140. set dummy $ac_cv_prog_CC
  4141. shift
  4142. if test $# != 0; then
  4143. # We chose a different compiler from the bogus one.
  4144. # However, it has the same basename, so the bogon will be chosen
  4145. # first if we set CC to just the basename; use the full file name.
  4146. shift
  4147. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4148. fi
  4149. fi
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. fi
  4161. if test -z "$CC"; then
  4162. if test -n "$ac_tool_prefix"; then
  4163. for ac_prog in cl.exe
  4164. do
  4165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4168. $as_echo_n "checking for $ac_word... " >&6; }
  4169. if test "${ac_cv_prog_CC+set}" = set; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -n "$CC"; then
  4173. ac_cv_prog_CC="$CC" # Let the user override the test.
  4174. else
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_exec_ext in '' $ac_executable_extensions; do
  4181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4182. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4184. break 2
  4185. fi
  4186. done
  4187. done
  4188. IFS=$as_save_IFS
  4189. fi
  4190. fi
  4191. CC=$ac_cv_prog_CC
  4192. if test -n "$CC"; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4194. $as_echo "$CC" >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4197. $as_echo "no" >&6; }
  4198. fi
  4199. test -n "$CC" && break
  4200. done
  4201. fi
  4202. if test -z "$CC"; then
  4203. ac_ct_CC=$CC
  4204. for ac_prog in cl.exe
  4205. do
  4206. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4207. set dummy $ac_prog; ac_word=$2
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4209. $as_echo_n "checking for $ac_word... " >&6; }
  4210. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -n "$ac_ct_CC"; then
  4214. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4215. else
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_exec_ext in '' $ac_executable_extensions; do
  4222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4223. ac_cv_prog_ac_ct_CC="$ac_prog"
  4224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4225. break 2
  4226. fi
  4227. done
  4228. done
  4229. IFS=$as_save_IFS
  4230. fi
  4231. fi
  4232. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4233. if test -n "$ac_ct_CC"; then
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4235. $as_echo "$ac_ct_CC" >&6; }
  4236. else
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4238. $as_echo "no" >&6; }
  4239. fi
  4240. test -n "$ac_ct_CC" && break
  4241. done
  4242. if test "x$ac_ct_CC" = x; then
  4243. CC=""
  4244. else
  4245. case $cross_compiling:$ac_tool_warned in
  4246. yes:)
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4249. ac_tool_warned=yes ;;
  4250. esac
  4251. CC=$ac_ct_CC
  4252. fi
  4253. fi
  4254. fi
  4255. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4257. as_fn_error "no acceptable C compiler found in \$PATH
  4258. See \`config.log' for more details." "$LINENO" 5; }
  4259. # Provide some information about the compiler.
  4260. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4261. set X $ac_compile
  4262. ac_compiler=$2
  4263. for ac_option in --version -v -V -qversion; do
  4264. { { ac_try="$ac_compiler $ac_option >&5"
  4265. case "(($ac_try" in
  4266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4267. *) ac_try_echo=$ac_try;;
  4268. esac
  4269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4270. $as_echo "$ac_try_echo"; } >&5
  4271. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4272. ac_status=$?
  4273. if test -s conftest.err; then
  4274. sed '10a\
  4275. ... rest of stderr output deleted ...
  4276. 10q' conftest.err >conftest.er1
  4277. cat conftest.er1 >&5
  4278. fi
  4279. rm -f conftest.er1 conftest.err
  4280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4281. test $ac_status = 0; }
  4282. done
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4284. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4285. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int
  4291. main ()
  4292. {
  4293. #ifndef __GNUC__
  4294. choke me
  4295. #endif
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_compiler_gnu=yes
  4302. else
  4303. ac_compiler_gnu=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4309. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4310. if test $ac_compiler_gnu = yes; then
  4311. GCC=yes
  4312. else
  4313. GCC=
  4314. fi
  4315. ac_test_CFLAGS=${CFLAGS+set}
  4316. ac_save_CFLAGS=$CFLAGS
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4318. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4319. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. ac_save_c_werror_flag=$ac_c_werror_flag
  4323. ac_c_werror_flag=yes
  4324. ac_cv_prog_cc_g=no
  4325. CFLAGS="-g"
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. int
  4329. main ()
  4330. {
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_compile "$LINENO"; then :
  4336. ac_cv_prog_cc_g=yes
  4337. else
  4338. CFLAGS=""
  4339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4340. /* end confdefs.h. */
  4341. int
  4342. main ()
  4343. {
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. if ac_fn_c_try_compile "$LINENO"; then :
  4349. else
  4350. ac_c_werror_flag=$ac_save_c_werror_flag
  4351. CFLAGS="-g"
  4352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4353. /* end confdefs.h. */
  4354. int
  4355. main ()
  4356. {
  4357. ;
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_compile "$LINENO"; then :
  4362. ac_cv_prog_cc_g=yes
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. ac_c_werror_flag=$ac_save_c_werror_flag
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4372. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4373. if test "$ac_test_CFLAGS" = set; then
  4374. CFLAGS=$ac_save_CFLAGS
  4375. elif test $ac_cv_prog_cc_g = yes; then
  4376. if test "$GCC" = yes; then
  4377. CFLAGS="-g -O2"
  4378. else
  4379. CFLAGS="-g"
  4380. fi
  4381. else
  4382. if test "$GCC" = yes; then
  4383. CFLAGS="-O2"
  4384. else
  4385. CFLAGS=
  4386. fi
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4389. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4390. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. ac_cv_prog_cc_c89=no
  4394. ac_save_CC=$CC
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h. */
  4397. #include <stdarg.h>
  4398. #include <stdio.h>
  4399. #include <sys/types.h>
  4400. #include <sys/stat.h>
  4401. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4402. struct buf { int x; };
  4403. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4404. static char *e (p, i)
  4405. char **p;
  4406. int i;
  4407. {
  4408. return p[i];
  4409. }
  4410. static char *f (char * (*g) (char **, int), char **p, ...)
  4411. {
  4412. char *s;
  4413. va_list v;
  4414. va_start (v,p);
  4415. s = g (p, va_arg (v,int));
  4416. va_end (v);
  4417. return s;
  4418. }
  4419. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4420. function prototypes and stuff, but not '\xHH' hex character constants.
  4421. These don't provoke an error unfortunately, instead are silently treated
  4422. as 'x'. The following induces an error, until -std is added to get
  4423. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4424. array size at least. It's necessary to write '\x00'==0 to get something
  4425. that's true only with -std. */
  4426. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4427. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4428. inside strings and character constants. */
  4429. #define FOO(x) 'x'
  4430. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4431. int test (int i, double x);
  4432. struct s1 {int (*f) (int a);};
  4433. struct s2 {int (*f) (double a);};
  4434. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4435. int argc;
  4436. char **argv;
  4437. int
  4438. main ()
  4439. {
  4440. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4441. ;
  4442. return 0;
  4443. }
  4444. _ACEOF
  4445. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4446. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4447. do
  4448. CC="$ac_save_CC $ac_arg"
  4449. if ac_fn_c_try_compile "$LINENO"; then :
  4450. ac_cv_prog_cc_c89=$ac_arg
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext
  4453. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4454. done
  4455. rm -f conftest.$ac_ext
  4456. CC=$ac_save_CC
  4457. fi
  4458. # AC_CACHE_VAL
  4459. case "x$ac_cv_prog_cc_c89" in
  4460. x)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4462. $as_echo "none needed" >&6; } ;;
  4463. xno)
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4465. $as_echo "unsupported" >&6; } ;;
  4466. *)
  4467. CC="$CC $ac_cv_prog_cc_c89"
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4469. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4470. esac
  4471. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4472. fi
  4473. ac_ext=c
  4474. ac_cpp='$CPP $CPPFLAGS'
  4475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4478. depcc="$CC" am_compiler_list=
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4480. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4481. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4485. # We make a subdir and do the tests there. Otherwise we can end up
  4486. # making bogus files that we don't know about and never remove. For
  4487. # instance it was reported that on HP-UX the gcc test will end up
  4488. # making a dummy file named `D' -- because `-MD' means `put the output
  4489. # in D'.
  4490. mkdir conftest.dir
  4491. # Copy depcomp to subdir because otherwise we won't find it if we're
  4492. # using a relative directory.
  4493. cp "$am_depcomp" conftest.dir
  4494. cd conftest.dir
  4495. # We will build objects and dependencies in a subdirectory because
  4496. # it helps to detect inapplicable dependency modes. For instance
  4497. # both Tru64's cc and ICC support -MD to output dependencies as a
  4498. # side effect of compilation, but ICC will put the dependencies in
  4499. # the current directory while Tru64 will put them in the object
  4500. # directory.
  4501. mkdir sub
  4502. am_cv_CC_dependencies_compiler_type=none
  4503. if test "$am_compiler_list" = ""; then
  4504. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4505. fi
  4506. am__universal=false
  4507. case " $depcc " in #(
  4508. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4509. esac
  4510. for depmode in $am_compiler_list; do
  4511. # Setup a source with many dependencies, because some compilers
  4512. # like to wrap large dependency lists on column 80 (with \), and
  4513. # we should not choose a depcomp mode which is confused by this.
  4514. #
  4515. # We need to recreate these files for each test, as the compiler may
  4516. # overwrite some of them when testing with obscure command lines.
  4517. # This happens at least with the AIX C compiler.
  4518. : > sub/conftest.c
  4519. for i in 1 2 3 4 5 6; do
  4520. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4521. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4522. # Solaris 8's {/usr,}/bin/sh.
  4523. touch sub/conftst$i.h
  4524. done
  4525. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4526. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4527. # mode. It turns out that the SunPro C++ compiler does not properly
  4528. # handle `-M -o', and we need to detect this. Also, some Intel
  4529. # versions had trouble with output in subdirs
  4530. am__obj=sub/conftest.${OBJEXT-o}
  4531. am__minus_obj="-o $am__obj"
  4532. case $depmode in
  4533. gcc)
  4534. # This depmode causes a compiler race in universal mode.
  4535. test "$am__universal" = false || continue
  4536. ;;
  4537. nosideeffect)
  4538. # after this tag, mechanisms are not by side-effect, so they'll
  4539. # only be used when explicitly requested
  4540. if test "x$enable_dependency_tracking" = xyes; then
  4541. continue
  4542. else
  4543. break
  4544. fi
  4545. ;;
  4546. msvisualcpp | msvcmsys)
  4547. # This compiler won't grok `-c -o', but also, the minuso test has
  4548. # not run yet. These depmodes are late enough in the game, and
  4549. # so weak that their functioning should not be impacted.
  4550. am__obj=conftest.${OBJEXT-o}
  4551. am__minus_obj=
  4552. ;;
  4553. none) break ;;
  4554. esac
  4555. if depmode=$depmode \
  4556. source=sub/conftest.c object=$am__obj \
  4557. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4558. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4559. >/dev/null 2>conftest.err &&
  4560. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4561. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4562. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4563. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4564. # icc doesn't choke on unknown options, it will just issue warnings
  4565. # or remarks (even with -Werror). So we grep stderr for any message
  4566. # that says an option was ignored or not supported.
  4567. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4568. # icc: Command line warning: ignoring option '-M'; no argument required
  4569. # The diagnosis changed in icc 8.0:
  4570. # icc: Command line remark: option '-MP' not supported
  4571. if (grep 'ignoring option' conftest.err ||
  4572. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4573. am_cv_CC_dependencies_compiler_type=$depmode
  4574. break
  4575. fi
  4576. fi
  4577. done
  4578. cd ..
  4579. rm -rf conftest.dir
  4580. else
  4581. am_cv_CC_dependencies_compiler_type=none
  4582. fi
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4585. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4586. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4587. if
  4588. test "x$enable_dependency_tracking" != xno \
  4589. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4590. am__fastdepCC_TRUE=
  4591. am__fastdepCC_FALSE='#'
  4592. else
  4593. am__fastdepCC_TRUE='#'
  4594. am__fastdepCC_FALSE=
  4595. fi
  4596. if test -n "$ac_tool_prefix"; then
  4597. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4598. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4600. $as_echo_n "checking for $ac_word... " >&6; }
  4601. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. if test -n "$RANLIB"; then
  4605. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4606. else
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_exec_ext in '' $ac_executable_extensions; do
  4613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4614. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4616. break 2
  4617. fi
  4618. done
  4619. done
  4620. IFS=$as_save_IFS
  4621. fi
  4622. fi
  4623. RANLIB=$ac_cv_prog_RANLIB
  4624. if test -n "$RANLIB"; then
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4626. $as_echo "$RANLIB" >&6; }
  4627. else
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4629. $as_echo "no" >&6; }
  4630. fi
  4631. fi
  4632. if test -z "$ac_cv_prog_RANLIB"; then
  4633. ac_ct_RANLIB=$RANLIB
  4634. # Extract the first word of "ranlib", so it can be a program name with args.
  4635. set dummy ranlib; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$ac_ct_RANLIB"; then
  4642. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4651. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4661. if test -n "$ac_ct_RANLIB"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4663. $as_echo "$ac_ct_RANLIB" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. if test "x$ac_ct_RANLIB" = x; then
  4669. RANLIB=":"
  4670. else
  4671. case $cross_compiling:$ac_tool_warned in
  4672. yes:)
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4675. ac_tool_warned=yes ;;
  4676. esac
  4677. RANLIB=$ac_ct_RANLIB
  4678. fi
  4679. else
  4680. RANLIB="$ac_cv_prog_RANLIB"
  4681. fi
  4682. for ac_prog in 'bison -y' byacc
  4683. do
  4684. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_prog; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if test "${ac_cv_prog_YACC+set}" = set; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$YACC"; then
  4692. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701. ac_cv_prog_YACC="$ac_prog"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. YACC=$ac_cv_prog_YACC
  4711. if test -n "$YACC"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4713. $as_echo "$YACC" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -n "$YACC" && break
  4719. done
  4720. test -n "$YACC" || YACC="yacc"
  4721. # Setting language choice
  4722. ac_ext=cpp
  4723. ac_cpp='$CXXCPP $CPPFLAGS'
  4724. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4725. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4726. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4727. # Enable system extensions
  4728. ac_ext=cpp
  4729. ac_cpp='$CXXCPP $CPPFLAGS'
  4730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4734. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4735. if test -z "$CXXCPP"; then
  4736. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. # Double quotes because CXXCPP needs to be expanded
  4740. for CXXCPP in "$CXX -E" "/lib/cpp"
  4741. do
  4742. ac_preproc_ok=false
  4743. for ac_cxx_preproc_warn_flag in '' yes
  4744. do
  4745. # Use a header file that comes with gcc, so configuring glibc
  4746. # with a fresh cross-compiler works.
  4747. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4748. # <limits.h> exists even on freestanding compilers.
  4749. # On the NeXT, cc -E runs the code through the compiler's parser,
  4750. # not just through cpp. "Syntax error" is here to catch this case.
  4751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4752. /* end confdefs.h. */
  4753. #ifdef __STDC__
  4754. # include <limits.h>
  4755. #else
  4756. # include <assert.h>
  4757. #endif
  4758. Syntax error
  4759. _ACEOF
  4760. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4761. else
  4762. # Broken: fails on valid input.
  4763. continue
  4764. fi
  4765. rm -f conftest.err conftest.$ac_ext
  4766. # OK, works on sane cases. Now check whether nonexistent headers
  4767. # can be detected and how.
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. #include <ac_nonexistent.h>
  4771. _ACEOF
  4772. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4773. # Broken: success on invalid input.
  4774. continue
  4775. else
  4776. # Passes both tests.
  4777. ac_preproc_ok=:
  4778. break
  4779. fi
  4780. rm -f conftest.err conftest.$ac_ext
  4781. done
  4782. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4783. rm -f conftest.err conftest.$ac_ext
  4784. if $ac_preproc_ok; then :
  4785. break
  4786. fi
  4787. done
  4788. ac_cv_prog_CXXCPP=$CXXCPP
  4789. fi
  4790. CXXCPP=$ac_cv_prog_CXXCPP
  4791. else
  4792. ac_cv_prog_CXXCPP=$CXXCPP
  4793. fi
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4795. $as_echo "$CXXCPP" >&6; }
  4796. ac_preproc_ok=false
  4797. for ac_cxx_preproc_warn_flag in '' yes
  4798. do
  4799. # Use a header file that comes with gcc, so configuring glibc
  4800. # with a fresh cross-compiler works.
  4801. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4802. # <limits.h> exists even on freestanding compilers.
  4803. # On the NeXT, cc -E runs the code through the compiler's parser,
  4804. # not just through cpp. "Syntax error" is here to catch this case.
  4805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end confdefs.h. */
  4807. #ifdef __STDC__
  4808. # include <limits.h>
  4809. #else
  4810. # include <assert.h>
  4811. #endif
  4812. Syntax error
  4813. _ACEOF
  4814. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4815. else
  4816. # Broken: fails on valid input.
  4817. continue
  4818. fi
  4819. rm -f conftest.err conftest.$ac_ext
  4820. # OK, works on sane cases. Now check whether nonexistent headers
  4821. # can be detected and how.
  4822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4823. /* end confdefs.h. */
  4824. #include <ac_nonexistent.h>
  4825. _ACEOF
  4826. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4827. # Broken: success on invalid input.
  4828. continue
  4829. else
  4830. # Passes both tests.
  4831. ac_preproc_ok=:
  4832. break
  4833. fi
  4834. rm -f conftest.err conftest.$ac_ext
  4835. done
  4836. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4837. rm -f conftest.err conftest.$ac_ext
  4838. if $ac_preproc_ok; then :
  4839. else
  4840. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4842. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4843. See \`config.log' for more details." "$LINENO" 5; }
  4844. fi
  4845. ac_ext=cpp
  4846. ac_cpp='$CXXCPP $CPPFLAGS'
  4847. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4848. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4849. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4851. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4852. if test "${ac_cv_path_GREP+set}" = set; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. if test -z "$GREP"; then
  4856. ac_path_GREP_found=false
  4857. # Loop through the user's path and test for each of PROGNAME-LIST
  4858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4859. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4860. do
  4861. IFS=$as_save_IFS
  4862. test -z "$as_dir" && as_dir=.
  4863. for ac_prog in grep ggrep; do
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4866. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4867. # Check for GNU ac_path_GREP and select it if it is found.
  4868. # Check for GNU $ac_path_GREP
  4869. case `"$ac_path_GREP" --version 2>&1` in
  4870. *GNU*)
  4871. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4872. *)
  4873. ac_count=0
  4874. $as_echo_n 0123456789 >"conftest.in"
  4875. while :
  4876. do
  4877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4878. mv "conftest.tmp" "conftest.in"
  4879. cp "conftest.in" "conftest.nl"
  4880. $as_echo 'GREP' >> "conftest.nl"
  4881. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4883. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4884. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4885. # Best one so far, save it but keep looking for a better one
  4886. ac_cv_path_GREP="$ac_path_GREP"
  4887. ac_path_GREP_max=$ac_count
  4888. fi
  4889. # 10*(2^10) chars as input seems more than enough
  4890. test $ac_count -gt 10 && break
  4891. done
  4892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4893. esac
  4894. $ac_path_GREP_found && break 3
  4895. done
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. if test -z "$ac_cv_path_GREP"; then
  4900. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4901. fi
  4902. else
  4903. ac_cv_path_GREP=$GREP
  4904. fi
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4907. $as_echo "$ac_cv_path_GREP" >&6; }
  4908. GREP="$ac_cv_path_GREP"
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4910. $as_echo_n "checking for egrep... " >&6; }
  4911. if test "${ac_cv_path_EGREP+set}" = set; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4915. then ac_cv_path_EGREP="$GREP -E"
  4916. else
  4917. if test -z "$EGREP"; then
  4918. ac_path_EGREP_found=false
  4919. # Loop through the user's path and test for each of PROGNAME-LIST
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_prog in egrep; do
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4928. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4929. # Check for GNU ac_path_EGREP and select it if it is found.
  4930. # Check for GNU $ac_path_EGREP
  4931. case `"$ac_path_EGREP" --version 2>&1` in
  4932. *GNU*)
  4933. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4934. *)
  4935. ac_count=0
  4936. $as_echo_n 0123456789 >"conftest.in"
  4937. while :
  4938. do
  4939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4940. mv "conftest.tmp" "conftest.in"
  4941. cp "conftest.in" "conftest.nl"
  4942. $as_echo 'EGREP' >> "conftest.nl"
  4943. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4945. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4946. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4947. # Best one so far, save it but keep looking for a better one
  4948. ac_cv_path_EGREP="$ac_path_EGREP"
  4949. ac_path_EGREP_max=$ac_count
  4950. fi
  4951. # 10*(2^10) chars as input seems more than enough
  4952. test $ac_count -gt 10 && break
  4953. done
  4954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4955. esac
  4956. $ac_path_EGREP_found && break 3
  4957. done
  4958. done
  4959. done
  4960. IFS=$as_save_IFS
  4961. if test -z "$ac_cv_path_EGREP"; then
  4962. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4963. fi
  4964. else
  4965. ac_cv_path_EGREP=$EGREP
  4966. fi
  4967. fi
  4968. fi
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4970. $as_echo "$ac_cv_path_EGREP" >&6; }
  4971. EGREP="$ac_cv_path_EGREP"
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4973. $as_echo_n "checking for ANSI C header files... " >&6; }
  4974. if test "${ac_cv_header_stdc+set}" = set; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4978. /* end confdefs.h. */
  4979. #include <stdlib.h>
  4980. #include <stdarg.h>
  4981. #include <string.h>
  4982. #include <float.h>
  4983. int
  4984. main ()
  4985. {
  4986. ;
  4987. return 0;
  4988. }
  4989. _ACEOF
  4990. if ac_fn_cxx_try_compile "$LINENO"; then :
  4991. ac_cv_header_stdc=yes
  4992. else
  4993. ac_cv_header_stdc=no
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4996. if test $ac_cv_header_stdc = yes; then
  4997. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4999. /* end confdefs.h. */
  5000. #include <string.h>
  5001. _ACEOF
  5002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5003. $EGREP "memchr" >/dev/null 2>&1; then :
  5004. else
  5005. ac_cv_header_stdc=no
  5006. fi
  5007. rm -f conftest*
  5008. fi
  5009. if test $ac_cv_header_stdc = yes; then
  5010. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5012. /* end confdefs.h. */
  5013. #include <stdlib.h>
  5014. _ACEOF
  5015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5016. $EGREP "free" >/dev/null 2>&1; then :
  5017. else
  5018. ac_cv_header_stdc=no
  5019. fi
  5020. rm -f conftest*
  5021. fi
  5022. if test $ac_cv_header_stdc = yes; then
  5023. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5024. if test "$cross_compiling" = yes; then :
  5025. :
  5026. else
  5027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5028. /* end confdefs.h. */
  5029. #include <ctype.h>
  5030. #include <stdlib.h>
  5031. #if ((' ' & 0x0FF) == 0x020)
  5032. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5033. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5034. #else
  5035. # define ISLOWER(c) \
  5036. (('a' <= (c) && (c) <= 'i') \
  5037. || ('j' <= (c) && (c) <= 'r') \
  5038. || ('s' <= (c) && (c) <= 'z'))
  5039. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5040. #endif
  5041. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5042. int
  5043. main ()
  5044. {
  5045. int i;
  5046. for (i = 0; i < 256; i++)
  5047. if (XOR (islower (i), ISLOWER (i))
  5048. || toupper (i) != TOUPPER (i))
  5049. return 2;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. if ac_fn_cxx_try_run "$LINENO"; then :
  5054. else
  5055. ac_cv_header_stdc=no
  5056. fi
  5057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5058. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5059. fi
  5060. fi
  5061. fi
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5063. $as_echo "$ac_cv_header_stdc" >&6; }
  5064. if test $ac_cv_header_stdc = yes; then
  5065. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5066. fi
  5067. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5068. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5069. inttypes.h stdint.h unistd.h
  5070. do :
  5071. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5072. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5073. "
  5074. eval as_val=\$$as_ac_Header
  5075. if test "x$as_val" = x""yes; then :
  5076. cat >>confdefs.h <<_ACEOF
  5077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5078. _ACEOF
  5079. fi
  5080. done
  5081. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5082. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5083. MINIX=yes
  5084. else
  5085. MINIX=
  5086. fi
  5087. if test "$MINIX" = yes; then
  5088. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5089. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5090. $as_echo "#define _MINIX 1" >>confdefs.h
  5091. fi
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5093. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5094. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end confdefs.h. */
  5099. # define __EXTENSIONS__ 1
  5100. $ac_includes_default
  5101. int
  5102. main ()
  5103. {
  5104. ;
  5105. return 0;
  5106. }
  5107. _ACEOF
  5108. if ac_fn_cxx_try_compile "$LINENO"; then :
  5109. ac_cv_safe_to_define___extensions__=yes
  5110. else
  5111. ac_cv_safe_to_define___extensions__=no
  5112. fi
  5113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5114. fi
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5116. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5117. test $ac_cv_safe_to_define___extensions__ = yes &&
  5118. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5119. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5120. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5121. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5122. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5123. # Check pkg-config is available
  5124. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5125. if test -n "$ac_tool_prefix"; then
  5126. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5127. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. case $PKG_CONFIG in
  5134. [\\/]* | ?:[\\/]*)
  5135. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5136. ;;
  5137. *)
  5138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5139. for as_dir in $PATH
  5140. do
  5141. IFS=$as_save_IFS
  5142. test -z "$as_dir" && as_dir=.
  5143. for ac_exec_ext in '' $ac_executable_extensions; do
  5144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5145. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5147. break 2
  5148. fi
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. ;;
  5153. esac
  5154. fi
  5155. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5156. if test -n "$PKG_CONFIG"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5158. $as_echo "$PKG_CONFIG" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. fi
  5164. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5165. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5166. # Extract the first word of "pkg-config", so it can be a program name with args.
  5167. set dummy pkg-config; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. case $ac_pt_PKG_CONFIG in
  5174. [\\/]* | ?:[\\/]*)
  5175. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5176. ;;
  5177. *)
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5185. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. ;;
  5193. esac
  5194. fi
  5195. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5196. if test -n "$ac_pt_PKG_CONFIG"; then
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5198. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5199. else
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5201. $as_echo "no" >&6; }
  5202. fi
  5203. if test "x$ac_pt_PKG_CONFIG" = x; then
  5204. PKG_CONFIG=""
  5205. else
  5206. case $cross_compiling:$ac_tool_warned in
  5207. yes:)
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5210. ac_tool_warned=yes ;;
  5211. esac
  5212. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5213. fi
  5214. else
  5215. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5216. fi
  5217. fi
  5218. if test -n "$PKG_CONFIG"; then
  5219. _pkg_min_version=0.20
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5221. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5222. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5224. $as_echo "yes" >&6; }
  5225. else
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5227. $as_echo "no" >&6; }
  5228. PKG_CONFIG=""
  5229. fi
  5230. fi
  5231. # Checks for libraries.
  5232. if test "x$with_libxml2" = "xyes"; then
  5233. # Check whether --with-xml-prefix was given.
  5234. if test "${with_xml_prefix+set}" = set; then :
  5235. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5236. else
  5237. xml_config_prefix=""
  5238. fi
  5239. # Check whether --with-xml-exec-prefix was given.
  5240. if test "${with_xml_exec_prefix+set}" = set; then :
  5241. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5242. else
  5243. xml_config_exec_prefix=""
  5244. fi
  5245. # Check whether --enable-xmltest was given.
  5246. if test "${enable_xmltest+set}" = set; then :
  5247. enableval=$enable_xmltest;
  5248. else
  5249. enable_xmltest=yes
  5250. fi
  5251. if test x$xml_config_exec_prefix != x ; then
  5252. xml_config_args="$xml_config_args"
  5253. if test x${XML2_CONFIG+set} != xset ; then
  5254. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5255. fi
  5256. fi
  5257. if test x$xml_config_prefix != x ; then
  5258. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5259. if test x${XML2_CONFIG+set} != xset ; then
  5260. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5261. fi
  5262. fi
  5263. # Extract the first word of "xml2-config", so it can be a program name with args.
  5264. set dummy xml2-config; ac_word=$2
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. case $XML2_CONFIG in
  5271. [\\/]* | ?:[\\/]*)
  5272. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5273. ;;
  5274. *)
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH
  5277. do
  5278. IFS=$as_save_IFS
  5279. test -z "$as_dir" && as_dir=.
  5280. for ac_exec_ext in '' $ac_executable_extensions; do
  5281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5282. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5284. break 2
  5285. fi
  5286. done
  5287. done
  5288. IFS=$as_save_IFS
  5289. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5290. ;;
  5291. esac
  5292. fi
  5293. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5294. if test -n "$XML2_CONFIG"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5296. $as_echo "$XML2_CONFIG" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. min_xml_version=2.6.24
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5303. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5304. no_xml=""
  5305. if test "$XML2_CONFIG" = "no" ; then
  5306. no_xml=yes
  5307. else
  5308. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5309. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5310. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5312. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5313. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5314. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5315. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5316. if test "x$enable_xmltest" = "xyes" ; then
  5317. ac_save_CPPFLAGS="$CPPFLAGS"
  5318. ac_save_LIBS="$LIBS"
  5319. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5320. LIBS="$XML_LIBS $LIBS"
  5321. rm -f conf.xmltest
  5322. if test "$cross_compiling" = yes; then :
  5323. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5324. else
  5325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5326. /* end confdefs.h. */
  5327. #include <stdlib.h>
  5328. #include <stdio.h>
  5329. #include <string.h>
  5330. #include <libxml/xmlversion.h>
  5331. int
  5332. main()
  5333. {
  5334. int xml_major_version, xml_minor_version, xml_micro_version;
  5335. int major, minor, micro;
  5336. char *tmp_version;
  5337. system("touch conf.xmltest");
  5338. /* Capture xml2-config output via autoconf/configure variables */
  5339. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5340. tmp_version = (char *)strdup("$min_xml_version");
  5341. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5342. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5343. exit(1);
  5344. }
  5345. free(tmp_version);
  5346. /* Capture the version information from the header files */
  5347. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5348. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5349. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5350. exit(1);
  5351. }
  5352. free(tmp_version);
  5353. /* Compare xml2-config output to the libxml headers */
  5354. if ((xml_major_version != $xml_config_major_version) ||
  5355. (xml_minor_version != $xml_config_minor_version) ||
  5356. (xml_micro_version != $xml_config_micro_version))
  5357. {
  5358. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5359. xml_major_version, xml_minor_version, xml_micro_version);
  5360. printf("*** xml2-config (version %d.%d.%d)\n",
  5361. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5362. return 1;
  5363. }
  5364. /* Compare the headers to the library to make sure we match */
  5365. /* Less than ideal -- doesn't provide us with return value feedback,
  5366. * only exits if there's a serious mismatch between header and library.
  5367. */
  5368. LIBXML_TEST_VERSION;
  5369. /* Test that the library is greater than our minimum version */
  5370. if ((xml_major_version > major) ||
  5371. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5372. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5373. (xml_micro_version >= micro)))
  5374. {
  5375. return 0;
  5376. }
  5377. else
  5378. {
  5379. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5380. xml_major_version, xml_minor_version, xml_micro_version);
  5381. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5382. major, minor, micro);
  5383. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5384. printf("***\n");
  5385. printf("*** If you have already installed a sufficiently new version, this error\n");
  5386. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5387. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5388. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5389. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5390. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5391. printf("*** so that the correct libraries are found at run-time))\n");
  5392. }
  5393. return 1;
  5394. }
  5395. _ACEOF
  5396. if ac_fn_cxx_try_run "$LINENO"; then :
  5397. else
  5398. no_xml=yes
  5399. fi
  5400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5402. fi
  5403. CPPFLAGS="$ac_save_CPPFLAGS"
  5404. LIBS="$ac_save_LIBS"
  5405. fi
  5406. fi
  5407. if test "x$no_xml" = x ; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5409. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5410. have_libxml2=yes
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. if test "$XML2_CONFIG" = "no" ; then
  5415. echo "*** The xml2-config script installed by LIBXML could not be found"
  5416. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5417. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5418. echo "*** full path to xml2-config."
  5419. else
  5420. if test -f conf.xmltest ; then
  5421. :
  5422. else
  5423. echo "*** Could not run libxml test program, checking why..."
  5424. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5425. LIBS="$LIBS $XML_LIBS"
  5426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end confdefs.h. */
  5428. #include <libxml/xmlversion.h>
  5429. #include <stdio.h>
  5430. int
  5431. main ()
  5432. {
  5433. LIBXML_TEST_VERSION; return 0;
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. if ac_fn_cxx_try_link "$LINENO"; then :
  5439. echo "*** The test program compiled, but did not run. This usually means"
  5440. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5441. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5442. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5443. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5444. echo "*** is required on your system"
  5445. echo "***"
  5446. echo "*** If you have an old version installed, it is best to remove it, although"
  5447. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5448. else
  5449. echo "*** The test program failed to compile or link. See the file config.log for the"
  5450. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5451. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5452. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. CPPFLAGS="$ac_save_CPPFLAGS"
  5457. LIBS="$ac_save_LIBS"
  5458. fi
  5459. fi
  5460. XML_CPPFLAGS=""
  5461. XML_LIBS=""
  5462. :
  5463. fi
  5464. rm -f conf.xmltest
  5465. if test "x$have_libxml2" = "xyes"; then
  5466. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5467. elif test "x$with_libxml2_requested" = "xyes"; then
  5468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5470. as_fn_error "libxml2 is requested but not found in the system.
  5471. See \`config.log' for more details." "$LINENO" 5; }
  5472. fi
  5473. fi
  5474. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5475. # Check whether --with-libexpat-prefix was given.
  5476. if test "${with_libexpat_prefix+set}" = set; then :
  5477. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5478. else
  5479. libexpat_prefix=""
  5480. fi
  5481. if test "x$libexpat_prefix" = "x"; then
  5482. libexpat_prefix="/usr"
  5483. fi
  5484. libexpat_prefix_lib=$libexpat_prefix/lib
  5485. libexpat_prefix_include=$libexpat_prefix/include
  5486. LIBS_save=$LIBS
  5487. CPPFLAGS_save=$CPPFLAGS
  5488. LIBS="-L$libexpat_prefix_lib $LIBS"
  5489. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5491. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5492. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5493. $as_echo_n "(cached) " >&6
  5494. else
  5495. ac_check_lib_save_LIBS=$LIBS
  5496. LIBS="-lexpat $LIBS"
  5497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5498. /* end confdefs.h. */
  5499. /* Override any GCC internal prototype to avoid an error.
  5500. Use char because int might match the return type of a GCC
  5501. builtin and then its argument prototype would still apply. */
  5502. #ifdef __cplusplus
  5503. extern "C"
  5504. #endif
  5505. char XML_ParserCreate ();
  5506. int
  5507. main ()
  5508. {
  5509. return XML_ParserCreate ();
  5510. ;
  5511. return 0;
  5512. }
  5513. _ACEOF
  5514. if ac_fn_cxx_try_link "$LINENO"; then :
  5515. ac_cv_lib_expat_XML_ParserCreate=yes
  5516. else
  5517. ac_cv_lib_expat_XML_ParserCreate=no
  5518. fi
  5519. rm -f core conftest.err conftest.$ac_objext \
  5520. conftest$ac_exeext conftest.$ac_ext
  5521. LIBS=$ac_check_lib_save_LIBS
  5522. fi
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5524. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5525. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5526. have_libexpat=yes
  5527. fi
  5528. if test "x$have_libexpat" = "xyes"; then
  5529. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5530. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5531. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5532. fi
  5533. LIBS=$LIBS_save
  5534. CPPFLAGS=$CPPFLAGS_save
  5535. if test "x$have_libexpat" != "xyes" &&
  5536. test "x$with_libexpat_requested" = "xyes"; then
  5537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5539. as_fn_error "libexpat is requested but not found in the system.
  5540. See \`config.log' for more details." "$LINENO" 5; }
  5541. fi
  5542. fi
  5543. if test "x$with_sqlite3" = "xyes"; then
  5544. # Check whether --with-sqlite3-prefix was given.
  5545. if test "${with_sqlite3_prefix+set}" = set; then :
  5546. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5547. else
  5548. sqlite3_prefix=""
  5549. fi
  5550. if test "x$sqlite3_prefix" = "x"; then
  5551. sqlite3_prefix="/usr"
  5552. fi
  5553. LIBS_save=$LIBS
  5554. CPPFLAGS_save=$CPPFLAGS
  5555. pkg_failed=no
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5557. $as_echo_n "checking for SQLITE3... " >&6; }
  5558. if test -n "$PKG_CONFIG"; then
  5559. if test -n "$SQLITE3_CFLAGS"; then
  5560. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5561. else
  5562. if test -n "$PKG_CONFIG" && \
  5563. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5564. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5565. ac_status=$?
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5567. test $ac_status = 0; }; then
  5568. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5569. else
  5570. pkg_failed=yes
  5571. fi
  5572. fi
  5573. else
  5574. pkg_failed=untried
  5575. fi
  5576. if test -n "$PKG_CONFIG"; then
  5577. if test -n "$SQLITE3_LIBS"; then
  5578. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5579. else
  5580. if test -n "$PKG_CONFIG" && \
  5581. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5582. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5583. ac_status=$?
  5584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5585. test $ac_status = 0; }; then
  5586. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5587. else
  5588. pkg_failed=yes
  5589. fi
  5590. fi
  5591. else
  5592. pkg_failed=untried
  5593. fi
  5594. if test $pkg_failed = yes; then
  5595. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5596. _pkg_short_errors_supported=yes
  5597. else
  5598. _pkg_short_errors_supported=no
  5599. fi
  5600. if test $_pkg_short_errors_supported = yes; then
  5601. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5602. else
  5603. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5604. fi
  5605. # Put the nasty error message in config.log where it belongs
  5606. echo "$SQLITE3_PKG_ERRORS" >&5
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. have_sqlite3=no
  5610. elif test $pkg_failed = untried; then
  5611. have_sqlite3=no
  5612. else
  5613. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5614. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5616. $as_echo "yes" >&6; }
  5617. have_sqlite3=yes
  5618. fi
  5619. if test "x$have_sqlite3" != "xyes"; then
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5621. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5622. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5623. sqlite3_prefix_include=$sqlite3_prefix/include
  5624. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5625. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5627. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5628. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. ac_check_lib_save_LIBS=$LIBS
  5632. LIBS="-lsqlite3 $LIBS"
  5633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5634. /* end confdefs.h. */
  5635. /* Override any GCC internal prototype to avoid an error.
  5636. Use char because int might match the return type of a GCC
  5637. builtin and then its argument prototype would still apply. */
  5638. #ifdef __cplusplus
  5639. extern "C"
  5640. #endif
  5641. char sqlite3_open ();
  5642. int
  5643. main ()
  5644. {
  5645. return sqlite3_open ();
  5646. ;
  5647. return 0;
  5648. }
  5649. _ACEOF
  5650. if ac_fn_cxx_try_link "$LINENO"; then :
  5651. ac_cv_lib_sqlite3_sqlite3_open=yes
  5652. else
  5653. ac_cv_lib_sqlite3_sqlite3_open=no
  5654. fi
  5655. rm -f core conftest.err conftest.$ac_objext \
  5656. conftest$ac_exeext conftest.$ac_ext
  5657. LIBS=$ac_check_lib_save_LIBS
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5660. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5661. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5662. have_sqlite3=yes
  5663. fi
  5664. if test "x$have_sqlite3" = "xyes"; then
  5665. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5666. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5667. fi
  5668. fi
  5669. if test "x$have_sqlite3" = "xyes"; then
  5670. LIBS="$SQLITE3_LIBS $LIBS"
  5671. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5672. for ac_func in sqlite3_open_v2
  5673. do :
  5674. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5675. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define HAVE_SQLITE3_OPEN_V2 1
  5678. _ACEOF
  5679. fi
  5680. done
  5681. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5682. fi
  5683. LIBS=$LIBS_save
  5684. CPPFLAGS=$CPPFLAGS_save
  5685. if test "x$have_sqlite3" != "xyes" &&
  5686. test "x$with_sqlite3_requested" = "xyes"; then
  5687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5689. as_fn_error "sqlite3 is requested but not found in the system.
  5690. See \`config.log' for more details." "$LINENO" 5; }
  5691. fi
  5692. fi
  5693. if test "x$with_gnutls" = "xyes"; then
  5694. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5695. # First check the presence of libgnutls using pkg-config.
  5696. pkg_failed=no
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5698. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5699. if test -n "$PKG_CONFIG"; then
  5700. if test -n "$LIBGNUTLS_CFLAGS"; then
  5701. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5702. else
  5703. if test -n "$PKG_CONFIG" && \
  5704. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5705. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5706. ac_status=$?
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5708. test $ac_status = 0; }; then
  5709. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5710. else
  5711. pkg_failed=yes
  5712. fi
  5713. fi
  5714. else
  5715. pkg_failed=untried
  5716. fi
  5717. if test -n "$PKG_CONFIG"; then
  5718. if test -n "$LIBGNUTLS_LIBS"; then
  5719. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5720. else
  5721. if test -n "$PKG_CONFIG" && \
  5722. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5723. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5724. ac_status=$?
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5726. test $ac_status = 0; }; then
  5727. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5728. else
  5729. pkg_failed=yes
  5730. fi
  5731. fi
  5732. else
  5733. pkg_failed=untried
  5734. fi
  5735. if test $pkg_failed = yes; then
  5736. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5737. _pkg_short_errors_supported=yes
  5738. else
  5739. _pkg_short_errors_supported=no
  5740. fi
  5741. if test $_pkg_short_errors_supported = yes; then
  5742. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5743. else
  5744. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5745. fi
  5746. # Put the nasty error message in config.log where it belongs
  5747. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. $as_echo "no" >&6; }
  5750. have_libgnutls=no
  5751. elif test $pkg_failed = untried; then
  5752. have_libgnutls=no
  5753. else
  5754. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5755. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5757. $as_echo "yes" >&6; }
  5758. have_libgnutls=yes
  5759. fi
  5760. # If no libgnutls found by pkg-config, fall back to old macro
  5761. if test "x$have_libgnutls" = "xno"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5763. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5764. # Check whether --with-libgnutls-prefix was given.
  5765. if test "${with_libgnutls_prefix+set}" = set; then :
  5766. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5767. else
  5768. libgnutls_config_prefix=""
  5769. fi
  5770. if test x$libgnutls_config_prefix != x ; then
  5771. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5772. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5773. fi
  5774. fi
  5775. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5776. set dummy libgnutls-config; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. case $LIBGNUTLS_CONFIG in
  5783. [\\/]* | ?:[\\/]*)
  5784. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5785. ;;
  5786. *)
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5794. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5802. ;;
  5803. esac
  5804. fi
  5805. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5806. if test -n "$LIBGNUTLS_CONFIG"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5808. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. min_libgnutls_version=1.2.9
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5815. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5816. no_libgnutls=""
  5817. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5818. no_libgnutls=yes
  5819. else
  5820. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5821. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5822. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5823. ac_save_CFLAGS="$CFLAGS"
  5824. ac_save_LIBS="$LIBS"
  5825. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5826. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5827. rm -f conf.libgnutlstest
  5828. if test "$cross_compiling" = yes; then :
  5829. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5830. else
  5831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5832. /* end confdefs.h. */
  5833. #include <stdio.h>
  5834. #include <stdlib.h>
  5835. #include <string.h>
  5836. #include <gnutls/gnutls.h>
  5837. int
  5838. main ()
  5839. {
  5840. system ("touch conf.libgnutlstest");
  5841. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5842. {
  5843. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5844. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5845. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5846. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5847. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5848. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5849. printf("*** required on your system.\n");
  5850. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5851. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5852. printf("*** before re-running configure\n");
  5853. }
  5854. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5855. {
  5856. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5857. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5858. }
  5859. else
  5860. {
  5861. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5862. {
  5863. return 0;
  5864. }
  5865. else
  5866. {
  5867. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5868. gnutls_check_version(NULL) );
  5869. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5870. "$min_libgnutls_version" );
  5871. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5872. printf("*** \n");
  5873. printf("*** If you have already installed a sufficiently new version, this error\n");
  5874. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5875. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5876. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5877. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5878. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5879. printf("*** so that the correct libraries are found at run-time))\n");
  5880. }
  5881. }
  5882. return 1;
  5883. }
  5884. _ACEOF
  5885. if ac_fn_cxx_try_run "$LINENO"; then :
  5886. else
  5887. no_libgnutls=yes
  5888. fi
  5889. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5890. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5891. fi
  5892. CFLAGS="$ac_save_CFLAGS"
  5893. LIBS="$ac_save_LIBS"
  5894. fi
  5895. if test "x$no_libgnutls" = x ; then
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5897. $as_echo "yes" >&6; }
  5898. have_libgnutls=yes
  5899. else
  5900. if test -f conf.libgnutlstest ; then
  5901. :
  5902. else
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5904. $as_echo "no" >&6; }
  5905. fi
  5906. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5907. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5908. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5909. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5910. echo "*** full path to libgnutls-config."
  5911. else
  5912. if test -f conf.libgnutlstest ; then
  5913. :
  5914. else
  5915. echo "*** Could not run libgnutls test program, checking why..."
  5916. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5917. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. #include <stdio.h>
  5921. #include <stdlib.h>
  5922. #include <string.h>
  5923. #include <gnutls/gnutls.h>
  5924. int
  5925. main ()
  5926. {
  5927. return !!gnutls_check_version(NULL);
  5928. ;
  5929. return 0;
  5930. }
  5931. _ACEOF
  5932. if ac_fn_cxx_try_link "$LINENO"; then :
  5933. echo "*** The test program compiled, but did not run. This usually means"
  5934. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5935. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5936. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5937. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5938. echo "*** is required on your system"
  5939. echo "***"
  5940. echo "*** If you have an old version installed, it is best to remove it, although"
  5941. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5942. echo "***"
  5943. else
  5944. echo "*** The test program failed to compile or link. See the file config.log for the"
  5945. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5946. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5947. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5948. fi
  5949. rm -f core conftest.err conftest.$ac_objext \
  5950. conftest$ac_exeext conftest.$ac_ext
  5951. CFLAGS="$ac_save_CFLAGS"
  5952. LIBS="$ac_save_LIBS"
  5953. fi
  5954. fi
  5955. LIBGNUTLS_CFLAGS=""
  5956. LIBGNUTLS_LIBS=""
  5957. :
  5958. fi
  5959. rm -f conf.libgnutlstest
  5960. fi
  5961. if test "x$have_libgnutls" = "xyes"; then
  5962. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5963. elif test "x$with_gnutls_requested" = "xyes"; then
  5964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5966. as_fn_error "gnutls is requested but not found in the system.
  5967. See \`config.log' for more details." "$LINENO" 5; }
  5968. fi
  5969. fi
  5970. if test "x$have_libgnutls" = "xyes"; then
  5971. # Check whether --with-libgcrypt-prefix was given.
  5972. if test "${with_libgcrypt_prefix+set}" = set; then :
  5973. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5974. else
  5975. libgcrypt_config_prefix=""
  5976. fi
  5977. if test x$libgcrypt_config_prefix != x ; then
  5978. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5979. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5980. fi
  5981. fi
  5982. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5983. set dummy libgcrypt-config; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. case $LIBGCRYPT_CONFIG in
  5990. [\\/]* | ?:[\\/]*)
  5991. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5992. ;;
  5993. *)
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6001. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6009. ;;
  6010. esac
  6011. fi
  6012. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6013. if test -n "$LIBGCRYPT_CONFIG"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6015. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. tmp=1.2.2
  6021. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6022. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6023. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6024. else
  6025. req_libgcrypt_api=0
  6026. min_libgcrypt_version="$tmp"
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6029. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6030. ok=no
  6031. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6032. req_major=`echo $min_libgcrypt_version | \
  6033. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6034. req_minor=`echo $min_libgcrypt_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6036. req_micro=`echo $min_libgcrypt_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6038. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6039. major=`echo $libgcrypt_config_version | \
  6040. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6041. minor=`echo $libgcrypt_config_version | \
  6042. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6043. micro=`echo $libgcrypt_config_version | \
  6044. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6045. if test "$major" -gt "$req_major"; then
  6046. ok=yes
  6047. else
  6048. if test "$major" -eq "$req_major"; then
  6049. if test "$minor" -gt "$req_minor"; then
  6050. ok=yes
  6051. else
  6052. if test "$minor" -eq "$req_minor"; then
  6053. if test "$micro" -ge "$req_micro"; then
  6054. ok=yes
  6055. fi
  6056. fi
  6057. fi
  6058. fi
  6059. fi
  6060. fi
  6061. if test $ok = yes; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6063. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. if test $ok = yes; then
  6069. # If we have a recent libgcrypt, we should also check that the
  6070. # API is compatible
  6071. if test "$req_libgcrypt_api" -gt 0 ; then
  6072. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6073. if test "$tmp" -gt 0 ; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6075. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6076. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6078. $as_echo "okay" >&6; }
  6079. else
  6080. ok=no
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6082. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6083. fi
  6084. fi
  6085. fi
  6086. fi
  6087. if test $ok = yes; then
  6088. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6089. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6090. have_libgcrypt=yes
  6091. else
  6092. LIBGCRYPT_CFLAGS=""
  6093. LIBGCRYPT_LIBS=""
  6094. :
  6095. fi
  6096. if test "x$have_libgcrypt" = "xyes"; then
  6097. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6098. fi
  6099. fi
  6100. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6101. # Check whether --with-openssl-prefix was given.
  6102. if test "${with_openssl_prefix+set}" = set; then :
  6103. withval=$with_openssl_prefix; openssl_prefix=$withval
  6104. else
  6105. openssl_prefix=""
  6106. fi
  6107. if test "x$openssl_prefix" = "x"; then
  6108. openssl_prefix="/usr/local"
  6109. fi
  6110. LIBS_save=$LIBS
  6111. CPPFLAGS_save=$CPPFLAGS
  6112. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6113. if test -x $PKG_CONFIG; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6115. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6116. $PKG_CONFIG --exists openssl
  6117. if test "$?" = "0"; then
  6118. # Use pkg-config to detect LIBS and CFLAGS
  6119. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6120. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6121. LIBS="$OPENSSL_LIBS $LIBS"
  6122. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6123. have_openssl=yes
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6125. $as_echo "yes" >&6; }
  6126. else
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. fi
  6131. if test "x$have_openssl" != "xyes"; then
  6132. openssl_prefix_lib=$openssl_prefix/lib
  6133. openssl_prefix_include=$openssl_prefix/include
  6134. LIBS="-L$openssl_prefix_lib $LIBS"
  6135. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6137. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6138. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. ac_check_lib_save_LIBS=$LIBS
  6142. LIBS="-lssl $LIBS"
  6143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6144. /* end confdefs.h. */
  6145. /* Override any GCC internal prototype to avoid an error.
  6146. Use char because int might match the return type of a GCC
  6147. builtin and then its argument prototype would still apply. */
  6148. #ifdef __cplusplus
  6149. extern "C"
  6150. #endif
  6151. char SSL_library_init ();
  6152. int
  6153. main ()
  6154. {
  6155. return SSL_library_init ();
  6156. ;
  6157. return 0;
  6158. }
  6159. _ACEOF
  6160. if ac_fn_cxx_try_link "$LINENO"; then :
  6161. ac_cv_lib_ssl_SSL_library_init=yes
  6162. else
  6163. ac_cv_lib_ssl_SSL_library_init=no
  6164. fi
  6165. rm -f core conftest.err conftest.$ac_objext \
  6166. conftest$ac_exeext conftest.$ac_ext
  6167. LIBS=$ac_check_lib_save_LIBS
  6168. fi
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6170. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6171. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6172. have_openssl=yes LIBS="-lssl $LIBS"
  6173. fi
  6174. if test "x$have_openssl" = "xyes"; then
  6175. have_openssl=no
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6177. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6178. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. ac_check_lib_save_LIBS=$LIBS
  6182. LIBS="-lcrypto $LIBS"
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. int
  6186. main ()
  6187. {
  6188. return main ();
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_cxx_try_link "$LINENO"; then :
  6194. ac_cv_lib_crypto_main=yes
  6195. else
  6196. ac_cv_lib_crypto_main=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext \
  6199. conftest$ac_exeext conftest.$ac_ext
  6200. LIBS=$ac_check_lib_save_LIBS
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6203. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6204. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6205. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6206. fi
  6207. if test "x$have_openssl" = "xyes"; then
  6208. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6209. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6210. fi
  6211. fi
  6212. fi
  6213. if test "x$have_openssl" = "xyes"; then
  6214. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6215. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6216. for ac_func in EVP_DigestInit_ex
  6217. do :
  6218. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6219. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6220. cat >>confdefs.h <<_ACEOF
  6221. #define HAVE_EVP_DIGESTINIT_EX 1
  6222. _ACEOF
  6223. have_digestinit_ex=yes
  6224. fi
  6225. done
  6226. if test "x$have_digestinit_ex" = "x"; then
  6227. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6228. fi
  6229. # search for sha256 support
  6230. for ac_func in EVP_sha256
  6231. do :
  6232. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6233. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define HAVE_EVP_SHA256 1
  6236. _ACEOF
  6237. fi
  6238. done
  6239. fi
  6240. LIBS=$LIBS_save
  6241. CPPFLAGS=$CPPFLAGS_save
  6242. if test "x$have_openssl" != "xyes" &&
  6243. test "x$with_openssl_requested" = "xyes"; then
  6244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6246. as_fn_error "openssl is requested but not found in the system.
  6247. See \`config.log' for more details." "$LINENO" 5; }
  6248. fi
  6249. fi
  6250. if test "x$with_libcares" = "xyes"; then
  6251. # Check whether --with-libcares-prefix was given.
  6252. if test "${with_libcares_prefix+set}" = set; then :
  6253. withval=$with_libcares_prefix; libcares_prefix=$withval
  6254. else
  6255. libcares_prefix=""
  6256. fi
  6257. if test "x$libcares_prefix" = "x"; then
  6258. libcares_prefix="/usr"
  6259. fi
  6260. libcares_prefix_lib=$libcares_prefix/lib
  6261. libcares_prefix_include=$libcares_prefix/include
  6262. LIBS_save=$LIBS
  6263. CPPFLAGS_save=$CPPFLAGS
  6264. LIBS="-L$libcares_prefix_lib $LIBS"
  6265. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6267. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6268. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. ac_check_lib_save_LIBS=$LIBS
  6272. LIBS="-lcares $LIBS"
  6273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6274. /* end confdefs.h. */
  6275. /* Override any GCC internal prototype to avoid an error.
  6276. Use char because int might match the return type of a GCC
  6277. builtin and then its argument prototype would still apply. */
  6278. #ifdef __cplusplus
  6279. extern "C"
  6280. #endif
  6281. char ares_init ();
  6282. int
  6283. main ()
  6284. {
  6285. return ares_init ();
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_link "$LINENO"; then :
  6291. ac_cv_lib_cares_ares_init=yes
  6292. else
  6293. ac_cv_lib_cares_ares_init=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext \
  6296. conftest$ac_exeext conftest.$ac_ext
  6297. LIBS=$ac_check_lib_save_LIBS
  6298. fi
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6300. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6301. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6302. have_libcares=yes
  6303. fi
  6304. if test "x$have_libcares" != "xyes"; then
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6306. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6307. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. ac_check_lib_save_LIBS=$LIBS
  6311. LIBS="-lcares -lrt $LIBS"
  6312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6313. /* end confdefs.h. */
  6314. /* Override any GCC internal prototype to avoid an error.
  6315. Use char because int might match the return type of a GCC
  6316. builtin and then its argument prototype would still apply. */
  6317. #ifdef __cplusplus
  6318. extern "C"
  6319. #endif
  6320. char ares_init ();
  6321. int
  6322. main ()
  6323. {
  6324. return ares_init ();
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. if ac_fn_cxx_try_link "$LINENO"; then :
  6330. ac_cv_lib_cares_ares_init=yes
  6331. else
  6332. ac_cv_lib_cares_ares_init=no
  6333. fi
  6334. rm -f core conftest.err conftest.$ac_objext \
  6335. conftest$ac_exeext conftest.$ac_ext
  6336. LIBS=$ac_check_lib_save_LIBS
  6337. fi
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6339. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6340. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6341. have_libcares=yes need_librt=yes
  6342. fi
  6343. fi
  6344. if test "x$have_libcares" = "xyes"; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6346. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6348. /* end confdefs.h. */
  6349. #include <ares.h>
  6350. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6351. int
  6352. main ()
  6353. {
  6354. ares_channel channel;
  6355. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6356. ;
  6357. return 0;
  6358. }
  6359. _ACEOF
  6360. if ac_fn_cxx_try_compile "$LINENO"; then :
  6361. have_libcares1_5=yes
  6362. else
  6363. have_libcares1_5=no
  6364. fi
  6365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6367. $as_echo "$have_libcares1_5" >&6; }
  6368. if test "x$have_libcares1_5" = "xyes"; then
  6369. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6370. fi
  6371. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6372. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6373. if test "x$need_librt" = "xyes"; then
  6374. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6375. fi
  6376. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6377. fi
  6378. LIBS=$LIBS_save
  6379. CPPFLAGS=$CPPFLAGS_save
  6380. if test "x$have_libcares" != "xyes" &&
  6381. test "x$with_libcares_requested" = "xyes"; then
  6382. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6384. as_fn_error "libcares is requested but not found in the system.
  6385. See \`config.log' for more details." "$LINENO" 5; }
  6386. fi
  6387. fi
  6388. # Check availability of libz
  6389. if test "x$with_libz" = "xyes"; then
  6390. # Check whether --with-libz-prefix was given.
  6391. if test "${with_libz_prefix+set}" = set; then :
  6392. withval=$with_libz_prefix; libz_prefix=$withval
  6393. else
  6394. libz_prefix=""
  6395. fi
  6396. if test "x$libz_prefix" = "x"; then
  6397. libz_prefix="/usr"
  6398. fi
  6399. libz_prefix_lib=$libz_prefix/lib
  6400. libz_prefix_include=$libz_prefix/include
  6401. LIBS_save=$LIBS
  6402. CPPFLAGS_save=$CPPFLAGS
  6403. LIBS="-L$libz_prefix_lib $LIBS"
  6404. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6406. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6407. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. ac_check_lib_save_LIBS=$LIBS
  6411. LIBS="-lz $LIBS"
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. /* Override any GCC internal prototype to avoid an error.
  6415. Use char because int might match the return type of a GCC
  6416. builtin and then its argument prototype would still apply. */
  6417. #ifdef __cplusplus
  6418. extern "C"
  6419. #endif
  6420. char zlibVersion ();
  6421. int
  6422. main ()
  6423. {
  6424. return zlibVersion ();
  6425. ;
  6426. return 0;
  6427. }
  6428. _ACEOF
  6429. if ac_fn_cxx_try_link "$LINENO"; then :
  6430. ac_cv_lib_z_zlibVersion=yes
  6431. else
  6432. ac_cv_lib_z_zlibVersion=no
  6433. fi
  6434. rm -f core conftest.err conftest.$ac_objext \
  6435. conftest$ac_exeext conftest.$ac_ext
  6436. LIBS=$ac_check_lib_save_LIBS
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6439. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6440. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6441. have_libz=yes
  6442. fi
  6443. if test "x$have_libz" = "xyes"; then
  6444. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6445. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6446. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6447. fi
  6448. LIBS=$LIBS_save
  6449. CPPFLAGS=$CPPFLAGS_save
  6450. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6451. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6453. as_fn_error "libz is requested but not found in the system.
  6454. See \`config.log' for more details." "$LINENO" 5; }
  6455. fi
  6456. fi
  6457. # Define variables based on the result of the checks for libraries.
  6458. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6459. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6460. if true; then
  6461. ENABLE_SSL_TRUE=
  6462. ENABLE_SSL_FALSE='#'
  6463. else
  6464. ENABLE_SSL_TRUE='#'
  6465. ENABLE_SSL_FALSE=
  6466. fi
  6467. else
  6468. if false; then
  6469. ENABLE_SSL_TRUE=
  6470. ENABLE_SSL_FALSE='#'
  6471. else
  6472. ENABLE_SSL_TRUE='#'
  6473. ENABLE_SSL_FALSE=
  6474. fi
  6475. fi
  6476. if test "x$have_libgnutls" = "xyes" ; then
  6477. HAVE_LIBGNUTLS_TRUE=
  6478. HAVE_LIBGNUTLS_FALSE='#'
  6479. else
  6480. HAVE_LIBGNUTLS_TRUE='#'
  6481. HAVE_LIBGNUTLS_FALSE=
  6482. fi
  6483. if test "x$have_openssl" = "xyes" ; then
  6484. HAVE_LIBSSL_TRUE=
  6485. HAVE_LIBSSL_FALSE='#'
  6486. else
  6487. HAVE_LIBSSL_TRUE='#'
  6488. HAVE_LIBSSL_FALSE=
  6489. fi
  6490. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6491. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6492. if true; then
  6493. ENABLE_MESSAGE_DIGEST_TRUE=
  6494. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6495. else
  6496. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6497. ENABLE_MESSAGE_DIGEST_FALSE=
  6498. fi
  6499. enable_message_digest=yes
  6500. else
  6501. if false; then
  6502. ENABLE_MESSAGE_DIGEST_TRUE=
  6503. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6504. else
  6505. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6506. ENABLE_MESSAGE_DIGEST_FALSE=
  6507. fi
  6508. fi
  6509. if test "x$enable_bittorrent" = "xyes" &&
  6510. test "x$enable_message_digest" = "xyes"; then
  6511. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6512. if true; then
  6513. ENABLE_BITTORRENT_TRUE=
  6514. ENABLE_BITTORRENT_FALSE='#'
  6515. else
  6516. ENABLE_BITTORRENT_TRUE='#'
  6517. ENABLE_BITTORRENT_FALSE=
  6518. fi
  6519. else
  6520. if test "x$enable_bittorrent_requested" = "xyes"; then
  6521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6523. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6524. configuration.\
  6525. Make sure that dependent libraries are installed and configure script options\
  6526. are correct.
  6527. See \`config.log' for more details." "$LINENO" 5; }
  6528. fi
  6529. enable_bittorrent=no
  6530. if false; then
  6531. ENABLE_BITTORRENT_TRUE=
  6532. ENABLE_BITTORRENT_FALSE='#'
  6533. else
  6534. ENABLE_BITTORRENT_TRUE='#'
  6535. ENABLE_BITTORRENT_FALSE=
  6536. fi
  6537. fi
  6538. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6539. test "x$enable_metalink" = "xyes"; then
  6540. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6541. if true; then
  6542. ENABLE_METALINK_TRUE=
  6543. ENABLE_METALINK_FALSE='#'
  6544. else
  6545. ENABLE_METALINK_TRUE='#'
  6546. ENABLE_METALINK_FALSE=
  6547. fi
  6548. else
  6549. if test "x$enable_metalink_requested" = "xyes"; then
  6550. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6551. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6552. as_fn_error "metalink is requested but cannot be enabled with current\
  6553. configuration.\
  6554. Make sure that dependent libraries are installed and configure script options\
  6555. are correct.
  6556. See \`config.log' for more details." "$LINENO" 5; }
  6557. fi
  6558. enable_metalink=no
  6559. if false; then
  6560. ENABLE_METALINK_TRUE=
  6561. ENABLE_METALINK_FALSE='#'
  6562. else
  6563. ENABLE_METALINK_TRUE='#'
  6564. ENABLE_METALINK_FALSE=
  6565. fi
  6566. fi
  6567. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6568. ENABLE_METALINK_LIBXML2_TRUE=
  6569. ENABLE_METALINK_LIBXML2_FALSE='#'
  6570. else
  6571. ENABLE_METALINK_LIBXML2_TRUE='#'
  6572. ENABLE_METALINK_LIBXML2_FALSE=
  6573. fi
  6574. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6575. ENABLE_METALINK_LIBEXPAT_TRUE=
  6576. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6577. else
  6578. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6579. ENABLE_METALINK_LIBEXPAT_FALSE=
  6580. fi
  6581. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6582. enable_xml_rpc=yes
  6583. fi
  6584. if test "x$enable_xml_rpc" = "xyes"; then
  6585. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6586. fi
  6587. if test "x$enable_xml_rpc" = "xyes"; then
  6588. ENABLE_XML_RPC_TRUE=
  6589. ENABLE_XML_RPC_FALSE='#'
  6590. else
  6591. ENABLE_XML_RPC_TRUE='#'
  6592. ENABLE_XML_RPC_FALSE=
  6593. fi
  6594. if test "x$have_libxml2" = "xyes"; then
  6595. HAVE_LIBXML2_TRUE=
  6596. HAVE_LIBXML2_FALSE='#'
  6597. else
  6598. HAVE_LIBXML2_TRUE='#'
  6599. HAVE_LIBXML2_FALSE=
  6600. fi
  6601. if test "x$have_libexpat" = "xyes"; then
  6602. HAVE_LIBEXPAT_TRUE=
  6603. HAVE_LIBEXPAT_FALSE='#'
  6604. else
  6605. HAVE_LIBEXPAT_TRUE='#'
  6606. HAVE_LIBEXPAT_FALSE=
  6607. fi
  6608. if test "x$have_libcares" = "xyes"; then
  6609. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6610. if true; then
  6611. ENABLE_ASYNC_DNS_TRUE=
  6612. ENABLE_ASYNC_DNS_FALSE='#'
  6613. else
  6614. ENABLE_ASYNC_DNS_TRUE='#'
  6615. ENABLE_ASYNC_DNS_FALSE=
  6616. fi
  6617. else
  6618. if false; then
  6619. ENABLE_ASYNC_DNS_TRUE=
  6620. ENABLE_ASYNC_DNS_FALSE='#'
  6621. else
  6622. ENABLE_ASYNC_DNS_TRUE='#'
  6623. ENABLE_ASYNC_DNS_FALSE=
  6624. fi
  6625. fi
  6626. # Set conditional for libz
  6627. if test "x$have_libz" = "xyes"; then
  6628. HAVE_LIBZ_TRUE=
  6629. HAVE_LIBZ_FALSE='#'
  6630. else
  6631. HAVE_LIBZ_TRUE='#'
  6632. HAVE_LIBZ_FALSE=
  6633. fi
  6634. # Set conditional for sqlite3
  6635. if test "x$have_sqlite3" = "xyes"; then
  6636. HAVE_SQLITE3_TRUE=
  6637. HAVE_SQLITE3_FALSE='#'
  6638. else
  6639. HAVE_SQLITE3_TRUE='#'
  6640. HAVE_SQLITE3_FALSE=
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6643. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6644. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. ac_func_search_save_LIBS=$LIBS
  6648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end confdefs.h. */
  6650. /* Override any GCC internal prototype to avoid an error.
  6651. Use char because int might match the return type of a GCC
  6652. builtin and then its argument prototype would still apply. */
  6653. #ifdef __cplusplus
  6654. extern "C"
  6655. #endif
  6656. char clock_gettime ();
  6657. int
  6658. main ()
  6659. {
  6660. return clock_gettime ();
  6661. ;
  6662. return 0;
  6663. }
  6664. _ACEOF
  6665. for ac_lib in '' rt; do
  6666. if test -z "$ac_lib"; then
  6667. ac_res="none required"
  6668. else
  6669. ac_res=-l$ac_lib
  6670. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6671. fi
  6672. if ac_fn_cxx_try_link "$LINENO"; then :
  6673. ac_cv_search_clock_gettime=$ac_res
  6674. fi
  6675. rm -f core conftest.err conftest.$ac_objext \
  6676. conftest$ac_exeext
  6677. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6678. break
  6679. fi
  6680. done
  6681. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6682. else
  6683. ac_cv_search_clock_gettime=no
  6684. fi
  6685. rm conftest.$ac_ext
  6686. LIBS=$ac_func_search_save_LIBS
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6689. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6690. ac_res=$ac_cv_search_clock_gettime
  6691. if test "$ac_res" != no; then :
  6692. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6693. fi
  6694. case "$target" in
  6695. *solaris*)
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6697. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6698. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. ac_func_search_save_LIBS=$LIBS
  6702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6703. /* end confdefs.h. */
  6704. /* Override any GCC internal prototype to avoid an error.
  6705. Use char because int might match the return type of a GCC
  6706. builtin and then its argument prototype would still apply. */
  6707. #ifdef __cplusplus
  6708. extern "C"
  6709. #endif
  6710. char getaddrinfo ();
  6711. int
  6712. main ()
  6713. {
  6714. return getaddrinfo ();
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. for ac_lib in '' nsl socket; do
  6720. if test -z "$ac_lib"; then
  6721. ac_res="none required"
  6722. else
  6723. ac_res=-l$ac_lib
  6724. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6725. fi
  6726. if ac_fn_cxx_try_link "$LINENO"; then :
  6727. ac_cv_search_getaddrinfo=$ac_res
  6728. fi
  6729. rm -f core conftest.err conftest.$ac_objext \
  6730. conftest$ac_exeext
  6731. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6732. break
  6733. fi
  6734. done
  6735. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6736. else
  6737. ac_cv_search_getaddrinfo=no
  6738. fi
  6739. rm conftest.$ac_ext
  6740. LIBS=$ac_func_search_save_LIBS
  6741. fi
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6743. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6744. ac_res=$ac_cv_search_getaddrinfo
  6745. if test "$ac_res" != no; then :
  6746. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6747. fi
  6748. ;;
  6749. esac
  6750. # Checks for header files.
  6751. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6752. # for constant arguments. Useless!
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6754. $as_echo_n "checking for working alloca.h... " >&6; }
  6755. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end confdefs.h. */
  6760. #include <alloca.h>
  6761. int
  6762. main ()
  6763. {
  6764. char *p = (char *) alloca (2 * sizeof (int));
  6765. if (p) return 0;
  6766. ;
  6767. return 0;
  6768. }
  6769. _ACEOF
  6770. if ac_fn_cxx_try_link "$LINENO"; then :
  6771. ac_cv_working_alloca_h=yes
  6772. else
  6773. ac_cv_working_alloca_h=no
  6774. fi
  6775. rm -f core conftest.err conftest.$ac_objext \
  6776. conftest$ac_exeext conftest.$ac_ext
  6777. fi
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6779. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6780. if test $ac_cv_working_alloca_h = yes; then
  6781. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6782. fi
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6784. $as_echo_n "checking for alloca... " >&6; }
  6785. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6789. /* end confdefs.h. */
  6790. #ifdef __GNUC__
  6791. # define alloca __builtin_alloca
  6792. #else
  6793. # ifdef _MSC_VER
  6794. # include <malloc.h>
  6795. # define alloca _alloca
  6796. # else
  6797. # ifdef HAVE_ALLOCA_H
  6798. # include <alloca.h>
  6799. # else
  6800. # ifdef _AIX
  6801. #pragma alloca
  6802. # else
  6803. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6804. char *alloca ();
  6805. # endif
  6806. # endif
  6807. # endif
  6808. # endif
  6809. #endif
  6810. int
  6811. main ()
  6812. {
  6813. char *p = (char *) alloca (1);
  6814. if (p) return 0;
  6815. ;
  6816. return 0;
  6817. }
  6818. _ACEOF
  6819. if ac_fn_cxx_try_link "$LINENO"; then :
  6820. ac_cv_func_alloca_works=yes
  6821. else
  6822. ac_cv_func_alloca_works=no
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext \
  6825. conftest$ac_exeext conftest.$ac_ext
  6826. fi
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6828. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6829. if test $ac_cv_func_alloca_works = yes; then
  6830. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6831. else
  6832. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6833. # that cause trouble. Some versions do not even contain alloca or
  6834. # contain a buggy version. If you still want to use their alloca,
  6835. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6836. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6837. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6839. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6840. if test "${ac_cv_os_cray+set}" = set; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6844. /* end confdefs.h. */
  6845. #if defined CRAY && ! defined CRAY2
  6846. webecray
  6847. #else
  6848. wenotbecray
  6849. #endif
  6850. _ACEOF
  6851. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6852. $EGREP "webecray" >/dev/null 2>&1; then :
  6853. ac_cv_os_cray=yes
  6854. else
  6855. ac_cv_os_cray=no
  6856. fi
  6857. rm -f conftest*
  6858. fi
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6860. $as_echo "$ac_cv_os_cray" >&6; }
  6861. if test $ac_cv_os_cray = yes; then
  6862. for ac_func in _getb67 GETB67 getb67; do
  6863. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6864. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6865. eval as_val=\$$as_ac_var
  6866. if test "x$as_val" = x""yes; then :
  6867. cat >>confdefs.h <<_ACEOF
  6868. #define CRAY_STACKSEG_END $ac_func
  6869. _ACEOF
  6870. break
  6871. fi
  6872. done
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6875. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6876. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6877. $as_echo_n "(cached) " >&6
  6878. else
  6879. if test "$cross_compiling" = yes; then :
  6880. ac_cv_c_stack_direction=0
  6881. else
  6882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6883. /* end confdefs.h. */
  6884. $ac_includes_default
  6885. int
  6886. find_stack_direction ()
  6887. {
  6888. static char *addr = 0;
  6889. auto char dummy;
  6890. if (addr == 0)
  6891. {
  6892. addr = &dummy;
  6893. return find_stack_direction ();
  6894. }
  6895. else
  6896. return (&dummy > addr) ? 1 : -1;
  6897. }
  6898. int
  6899. main ()
  6900. {
  6901. return find_stack_direction () < 0;
  6902. }
  6903. _ACEOF
  6904. if ac_fn_cxx_try_run "$LINENO"; then :
  6905. ac_cv_c_stack_direction=1
  6906. else
  6907. ac_cv_c_stack_direction=-1
  6908. fi
  6909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6911. fi
  6912. fi
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6914. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6915. cat >>confdefs.h <<_ACEOF
  6916. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6917. _ACEOF
  6918. fi
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6920. $as_echo_n "checking for ANSI C header files... " >&6; }
  6921. if test "${ac_cv_header_stdc+set}" = set; then :
  6922. $as_echo_n "(cached) " >&6
  6923. else
  6924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6925. /* end confdefs.h. */
  6926. #include <stdlib.h>
  6927. #include <stdarg.h>
  6928. #include <string.h>
  6929. #include <float.h>
  6930. int
  6931. main ()
  6932. {
  6933. ;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. if ac_fn_cxx_try_compile "$LINENO"; then :
  6938. ac_cv_header_stdc=yes
  6939. else
  6940. ac_cv_header_stdc=no
  6941. fi
  6942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6943. if test $ac_cv_header_stdc = yes; then
  6944. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6946. /* end confdefs.h. */
  6947. #include <string.h>
  6948. _ACEOF
  6949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6950. $EGREP "memchr" >/dev/null 2>&1; then :
  6951. else
  6952. ac_cv_header_stdc=no
  6953. fi
  6954. rm -f conftest*
  6955. fi
  6956. if test $ac_cv_header_stdc = yes; then
  6957. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6959. /* end confdefs.h. */
  6960. #include <stdlib.h>
  6961. _ACEOF
  6962. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6963. $EGREP "free" >/dev/null 2>&1; then :
  6964. else
  6965. ac_cv_header_stdc=no
  6966. fi
  6967. rm -f conftest*
  6968. fi
  6969. if test $ac_cv_header_stdc = yes; then
  6970. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6971. if test "$cross_compiling" = yes; then :
  6972. :
  6973. else
  6974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6975. /* end confdefs.h. */
  6976. #include <ctype.h>
  6977. #include <stdlib.h>
  6978. #if ((' ' & 0x0FF) == 0x020)
  6979. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6980. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6981. #else
  6982. # define ISLOWER(c) \
  6983. (('a' <= (c) && (c) <= 'i') \
  6984. || ('j' <= (c) && (c) <= 'r') \
  6985. || ('s' <= (c) && (c) <= 'z'))
  6986. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6987. #endif
  6988. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6989. int
  6990. main ()
  6991. {
  6992. int i;
  6993. for (i = 0; i < 256; i++)
  6994. if (XOR (islower (i), ISLOWER (i))
  6995. || toupper (i) != TOUPPER (i))
  6996. return 2;
  6997. return 0;
  6998. }
  6999. _ACEOF
  7000. if ac_fn_cxx_try_run "$LINENO"; then :
  7001. else
  7002. ac_cv_header_stdc=no
  7003. fi
  7004. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7005. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7006. fi
  7007. fi
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7010. $as_echo "$ac_cv_header_stdc" >&6; }
  7011. if test $ac_cv_header_stdc = yes; then
  7012. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7013. fi
  7014. case "$target" in
  7015. *mingw*)
  7016. for ac_header in windows.h \
  7017. winsock2.h \
  7018. ws2tcpip.h \
  7019. mmsystem.h
  7020. do :
  7021. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7022. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7023. # include <windows.h>
  7024. #endif
  7025. "
  7026. eval as_val=\$$as_ac_Header
  7027. if test "x$as_val" = x""yes; then :
  7028. cat >>confdefs.h <<_ACEOF
  7029. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7030. _ACEOF
  7031. fi
  7032. done
  7033. ;;
  7034. esac
  7035. for ac_header in argz.h \
  7036. arpa/inet.h \
  7037. fcntl.h \
  7038. float.h \
  7039. inttypes.h \
  7040. io.h \
  7041. langinfo.h \
  7042. libintl.h \
  7043. limits.h \
  7044. locale.h \
  7045. malloc.h \
  7046. netdb.h \
  7047. netinet/in.h \
  7048. stddef.h \
  7049. stdint.h \
  7050. stdio_ext.h \
  7051. stdlib.h \
  7052. string.h \
  7053. strings.h \
  7054. sys/ioctl.h \
  7055. sys/param.h \
  7056. sys/socket.h \
  7057. sys/time.h \
  7058. termios.h \
  7059. unistd.h \
  7060. utime.h \
  7061. wchar.h \
  7062. ifaddrs.h
  7063. do :
  7064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7065. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7066. eval as_val=\$$as_ac_Header
  7067. if test "x$as_val" = x""yes; then :
  7068. cat >>confdefs.h <<_ACEOF
  7069. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7070. _ACEOF
  7071. fi
  7072. done
  7073. # Checks for typedefs, structures, and compiler characteristics.
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7075. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7076. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7080. /* end confdefs.h. */
  7081. #include <stdbool.h>
  7082. #ifndef bool
  7083. "error: bool is not defined"
  7084. #endif
  7085. #ifndef false
  7086. "error: false is not defined"
  7087. #endif
  7088. #if false
  7089. "error: false is not 0"
  7090. #endif
  7091. #ifndef true
  7092. "error: true is not defined"
  7093. #endif
  7094. #if true != 1
  7095. "error: true is not 1"
  7096. #endif
  7097. #ifndef __bool_true_false_are_defined
  7098. "error: __bool_true_false_are_defined is not defined"
  7099. #endif
  7100. struct s { _Bool s: 1; _Bool t; } s;
  7101. char a[true == 1 ? 1 : -1];
  7102. char b[false == 0 ? 1 : -1];
  7103. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7104. char d[(bool) 0.5 == true ? 1 : -1];
  7105. bool e = &s;
  7106. char f[(_Bool) 0.0 == false ? 1 : -1];
  7107. char g[true];
  7108. char h[sizeof (_Bool)];
  7109. char i[sizeof s.t];
  7110. enum { j = false, k = true, l = false * true, m = true * 256 };
  7111. /* The following fails for
  7112. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7113. _Bool n[m];
  7114. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7115. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7116. # if defined __xlc__ || defined __GNUC__
  7117. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7118. reported by James Lemley on 2005-10-05; see
  7119. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7120. This test is not quite right, since xlc is allowed to
  7121. reject this program, as the initializer for xlcbug is
  7122. not one of the forms that C requires support for.
  7123. However, doing the test right would require a runtime
  7124. test, and that would make cross-compilation harder.
  7125. Let us hope that IBM fixes the xlc bug, and also adds
  7126. support for this kind of constant expression. In the
  7127. meantime, this test will reject xlc, which is OK, since
  7128. our stdbool.h substitute should suffice. We also test
  7129. this with GCC, where it should work, to detect more
  7130. quickly whether someone messes up the test in the
  7131. future. */
  7132. char digs[] = "0123456789";
  7133. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7134. # endif
  7135. /* Catch a bug in an HP-UX C compiler. See
  7136. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7137. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7138. */
  7139. _Bool q = true;
  7140. _Bool *pq = &q;
  7141. int
  7142. main ()
  7143. {
  7144. *pq |= q;
  7145. *pq |= ! q;
  7146. /* Refer to every declared value, to avoid compiler optimizations. */
  7147. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7148. + !m + !n + !o + !p + !q + !pq);
  7149. ;
  7150. return 0;
  7151. }
  7152. _ACEOF
  7153. if ac_fn_cxx_try_compile "$LINENO"; then :
  7154. ac_cv_header_stdbool_h=yes
  7155. else
  7156. ac_cv_header_stdbool_h=no
  7157. fi
  7158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7159. fi
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7161. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7162. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7163. if test "x$ac_cv_type__Bool" = x""yes; then :
  7164. cat >>confdefs.h <<_ACEOF
  7165. #define HAVE__BOOL 1
  7166. _ACEOF
  7167. fi
  7168. if test $ac_cv_header_stdbool_h = yes; then
  7169. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7170. fi
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7172. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7173. if test "${ac_cv_c_const+set}" = set; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7177. /* end confdefs.h. */
  7178. int
  7179. main ()
  7180. {
  7181. /* FIXME: Include the comments suggested by Paul. */
  7182. #ifndef __cplusplus
  7183. /* Ultrix mips cc rejects this. */
  7184. typedef int charset[2];
  7185. const charset cs;
  7186. /* SunOS 4.1.1 cc rejects this. */
  7187. char const *const *pcpcc;
  7188. char **ppc;
  7189. /* NEC SVR4.0.2 mips cc rejects this. */
  7190. struct point {int x, y;};
  7191. static struct point const zero = {0,0};
  7192. /* AIX XL C 1.02.0.0 rejects this.
  7193. It does not let you subtract one const X* pointer from another in
  7194. an arm of an if-expression whose if-part is not a constant
  7195. expression */
  7196. const char *g = "string";
  7197. pcpcc = &g + (g ? g-g : 0);
  7198. /* HPUX 7.0 cc rejects these. */
  7199. ++pcpcc;
  7200. ppc = (char**) pcpcc;
  7201. pcpcc = (char const *const *) ppc;
  7202. { /* SCO 3.2v4 cc rejects this. */
  7203. char *t;
  7204. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7205. *t++ = 0;
  7206. if (s) return 0;
  7207. }
  7208. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7209. int x[] = {25, 17};
  7210. const int *foo = &x[0];
  7211. ++foo;
  7212. }
  7213. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7214. typedef const int *iptr;
  7215. iptr p = 0;
  7216. ++p;
  7217. }
  7218. { /* AIX XL C 1.02.0.0 rejects this saying
  7219. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7220. struct s { int j; const int *ap[3]; };
  7221. struct s *b; b->j = 5;
  7222. }
  7223. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7224. const int foo = 10;
  7225. if (!foo) return 0;
  7226. }
  7227. return !cs[0] && !zero.x;
  7228. #endif
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. if ac_fn_cxx_try_compile "$LINENO"; then :
  7234. ac_cv_c_const=yes
  7235. else
  7236. ac_cv_c_const=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7241. $as_echo "$ac_cv_c_const" >&6; }
  7242. if test $ac_cv_c_const = no; then
  7243. $as_echo "#define const /**/" >>confdefs.h
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7246. $as_echo_n "checking for inline... " >&6; }
  7247. if test "${ac_cv_c_inline+set}" = set; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. ac_cv_c_inline=no
  7251. for ac_kw in inline __inline__ __inline; do
  7252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7253. /* end confdefs.h. */
  7254. #ifndef __cplusplus
  7255. typedef int foo_t;
  7256. static $ac_kw foo_t static_foo () {return 0; }
  7257. $ac_kw foo_t foo () {return 0; }
  7258. #endif
  7259. _ACEOF
  7260. if ac_fn_cxx_try_compile "$LINENO"; then :
  7261. ac_cv_c_inline=$ac_kw
  7262. fi
  7263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7264. test "$ac_cv_c_inline" != no && break
  7265. done
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7268. $as_echo "$ac_cv_c_inline" >&6; }
  7269. case $ac_cv_c_inline in
  7270. inline | yes) ;;
  7271. *)
  7272. case $ac_cv_c_inline in
  7273. no) ac_val=;;
  7274. *) ac_val=$ac_cv_c_inline;;
  7275. esac
  7276. cat >>confdefs.h <<_ACEOF
  7277. #ifndef __cplusplus
  7278. #define inline $ac_val
  7279. #endif
  7280. _ACEOF
  7281. ;;
  7282. esac
  7283. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7284. case $ac_cv_c_int16_t in #(
  7285. no|yes) ;; #(
  7286. *)
  7287. cat >>confdefs.h <<_ACEOF
  7288. #define int16_t $ac_cv_c_int16_t
  7289. _ACEOF
  7290. ;;
  7291. esac
  7292. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7293. case $ac_cv_c_int32_t in #(
  7294. no|yes) ;; #(
  7295. *)
  7296. cat >>confdefs.h <<_ACEOF
  7297. #define int32_t $ac_cv_c_int32_t
  7298. _ACEOF
  7299. ;;
  7300. esac
  7301. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7302. case $ac_cv_c_int64_t in #(
  7303. no|yes) ;; #(
  7304. *)
  7305. cat >>confdefs.h <<_ACEOF
  7306. #define int64_t $ac_cv_c_int64_t
  7307. _ACEOF
  7308. ;;
  7309. esac
  7310. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7311. case $ac_cv_c_int8_t in #(
  7312. no|yes) ;; #(
  7313. *)
  7314. cat >>confdefs.h <<_ACEOF
  7315. #define int8_t $ac_cv_c_int8_t
  7316. _ACEOF
  7317. ;;
  7318. esac
  7319. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7320. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7321. else
  7322. cat >>confdefs.h <<_ACEOF
  7323. #define mode_t int
  7324. _ACEOF
  7325. fi
  7326. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7327. if test "x$ac_cv_type_off_t" = x""yes; then :
  7328. else
  7329. cat >>confdefs.h <<_ACEOF
  7330. #define off_t long int
  7331. _ACEOF
  7332. fi
  7333. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7334. if test "x$ac_cv_type_size_t" = x""yes; then :
  7335. else
  7336. cat >>confdefs.h <<_ACEOF
  7337. #define size_t unsigned int
  7338. _ACEOF
  7339. fi
  7340. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7341. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7342. else
  7343. cat >>confdefs.h <<_ACEOF
  7344. #define ssize_t int
  7345. _ACEOF
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7348. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7349. if test "${ac_cv_header_time+set}" = set; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7353. /* end confdefs.h. */
  7354. #include <sys/types.h>
  7355. #include <sys/time.h>
  7356. #include <time.h>
  7357. int
  7358. main ()
  7359. {
  7360. if ((struct tm *) 0)
  7361. return 0;
  7362. ;
  7363. return 0;
  7364. }
  7365. _ACEOF
  7366. if ac_fn_cxx_try_compile "$LINENO"; then :
  7367. ac_cv_header_time=yes
  7368. else
  7369. ac_cv_header_time=no
  7370. fi
  7371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7374. $as_echo "$ac_cv_header_time" >&6; }
  7375. if test $ac_cv_header_time = yes; then
  7376. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7377. fi
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7379. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7380. if test "${ac_cv_struct_tm+set}" = set; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7384. /* end confdefs.h. */
  7385. #include <sys/types.h>
  7386. #include <time.h>
  7387. int
  7388. main ()
  7389. {
  7390. struct tm tm;
  7391. int *p = &tm.tm_sec;
  7392. return !p;
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. if ac_fn_cxx_try_compile "$LINENO"; then :
  7398. ac_cv_struct_tm=time.h
  7399. else
  7400. ac_cv_struct_tm=sys/time.h
  7401. fi
  7402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7403. fi
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7405. $as_echo "$ac_cv_struct_tm" >&6; }
  7406. if test $ac_cv_struct_tm = sys/time.h; then
  7407. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7408. fi
  7409. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7410. case $ac_cv_c_uint16_t in #(
  7411. no|yes) ;; #(
  7412. *)
  7413. cat >>confdefs.h <<_ACEOF
  7414. #define uint16_t $ac_cv_c_uint16_t
  7415. _ACEOF
  7416. ;;
  7417. esac
  7418. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7419. case $ac_cv_c_uint32_t in #(
  7420. no|yes) ;; #(
  7421. *)
  7422. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define uint32_t $ac_cv_c_uint32_t
  7425. _ACEOF
  7426. ;;
  7427. esac
  7428. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7429. case $ac_cv_c_uint64_t in #(
  7430. no|yes) ;; #(
  7431. *)
  7432. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7433. cat >>confdefs.h <<_ACEOF
  7434. #define uint64_t $ac_cv_c_uint64_t
  7435. _ACEOF
  7436. ;;
  7437. esac
  7438. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7439. case $ac_cv_c_uint8_t in #(
  7440. no|yes) ;; #(
  7441. *)
  7442. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7443. cat >>confdefs.h <<_ACEOF
  7444. #define uint8_t $ac_cv_c_uint8_t
  7445. _ACEOF
  7446. ;;
  7447. esac
  7448. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7449. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7450. else
  7451. cat >>confdefs.h <<_ACEOF
  7452. #define pid_t int
  7453. _ACEOF
  7454. fi
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7456. $as_echo_n "checking for working volatile... " >&6; }
  7457. if test "${ac_cv_c_volatile+set}" = set; then :
  7458. $as_echo_n "(cached) " >&6
  7459. else
  7460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7461. /* end confdefs.h. */
  7462. int
  7463. main ()
  7464. {
  7465. volatile int x;
  7466. int * volatile y = (int *) 0;
  7467. return !x && !y;
  7468. ;
  7469. return 0;
  7470. }
  7471. _ACEOF
  7472. if ac_fn_cxx_try_compile "$LINENO"; then :
  7473. ac_cv_c_volatile=yes
  7474. else
  7475. ac_cv_c_volatile=no
  7476. fi
  7477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7478. fi
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7480. $as_echo "$ac_cv_c_volatile" >&6; }
  7481. if test $ac_cv_c_volatile = no; then
  7482. $as_echo "#define volatile /**/" >>confdefs.h
  7483. fi
  7484. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7485. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7486. cat >>confdefs.h <<_ACEOF
  7487. #define HAVE_PTRDIFF_T 1
  7488. _ACEOF
  7489. fi
  7490. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7491. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7492. cat >>confdefs.h <<_ACEOF
  7493. #define HAVE_STRUCT_TIMESPEC 1
  7494. _ACEOF
  7495. fi
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7497. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7498. if test "${ac_cv_c_bigendian+set}" = set; then :
  7499. $as_echo_n "(cached) " >&6
  7500. else
  7501. ac_cv_c_bigendian=unknown
  7502. # See if we're dealing with a universal compiler.
  7503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7504. /* end confdefs.h. */
  7505. #ifndef __APPLE_CC__
  7506. not a universal capable compiler
  7507. #endif
  7508. typedef int dummy;
  7509. _ACEOF
  7510. if ac_fn_cxx_try_compile "$LINENO"; then :
  7511. # Check for potential -arch flags. It is not universal unless
  7512. # there are at least two -arch flags with different values.
  7513. ac_arch=
  7514. ac_prev=
  7515. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7516. if test -n "$ac_prev"; then
  7517. case $ac_word in
  7518. i?86 | x86_64 | ppc | ppc64)
  7519. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7520. ac_arch=$ac_word
  7521. else
  7522. ac_cv_c_bigendian=universal
  7523. break
  7524. fi
  7525. ;;
  7526. esac
  7527. ac_prev=
  7528. elif test "x$ac_word" = "x-arch"; then
  7529. ac_prev=arch
  7530. fi
  7531. done
  7532. fi
  7533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7534. if test $ac_cv_c_bigendian = unknown; then
  7535. # See if sys/param.h defines the BYTE_ORDER macro.
  7536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7537. /* end confdefs.h. */
  7538. #include <sys/types.h>
  7539. #include <sys/param.h>
  7540. int
  7541. main ()
  7542. {
  7543. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7544. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7545. && LITTLE_ENDIAN)
  7546. bogus endian macros
  7547. #endif
  7548. ;
  7549. return 0;
  7550. }
  7551. _ACEOF
  7552. if ac_fn_cxx_try_compile "$LINENO"; then :
  7553. # It does; now see whether it defined to BIG_ENDIAN or not.
  7554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7555. /* end confdefs.h. */
  7556. #include <sys/types.h>
  7557. #include <sys/param.h>
  7558. int
  7559. main ()
  7560. {
  7561. #if BYTE_ORDER != BIG_ENDIAN
  7562. not big endian
  7563. #endif
  7564. ;
  7565. return 0;
  7566. }
  7567. _ACEOF
  7568. if ac_fn_cxx_try_compile "$LINENO"; then :
  7569. ac_cv_c_bigendian=yes
  7570. else
  7571. ac_cv_c_bigendian=no
  7572. fi
  7573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7574. fi
  7575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7576. fi
  7577. if test $ac_cv_c_bigendian = unknown; then
  7578. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7580. /* end confdefs.h. */
  7581. #include <limits.h>
  7582. int
  7583. main ()
  7584. {
  7585. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7586. bogus endian macros
  7587. #endif
  7588. ;
  7589. return 0;
  7590. }
  7591. _ACEOF
  7592. if ac_fn_cxx_try_compile "$LINENO"; then :
  7593. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7595. /* end confdefs.h. */
  7596. #include <limits.h>
  7597. int
  7598. main ()
  7599. {
  7600. #ifndef _BIG_ENDIAN
  7601. not big endian
  7602. #endif
  7603. ;
  7604. return 0;
  7605. }
  7606. _ACEOF
  7607. if ac_fn_cxx_try_compile "$LINENO"; then :
  7608. ac_cv_c_bigendian=yes
  7609. else
  7610. ac_cv_c_bigendian=no
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7613. fi
  7614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7615. fi
  7616. if test $ac_cv_c_bigendian = unknown; then
  7617. # Compile a test program.
  7618. if test "$cross_compiling" = yes; then :
  7619. # Try to guess by grepping values from an object file.
  7620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7621. /* end confdefs.h. */
  7622. short int ascii_mm[] =
  7623. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7624. short int ascii_ii[] =
  7625. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7626. int use_ascii (int i) {
  7627. return ascii_mm[i] + ascii_ii[i];
  7628. }
  7629. short int ebcdic_ii[] =
  7630. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7631. short int ebcdic_mm[] =
  7632. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7633. int use_ebcdic (int i) {
  7634. return ebcdic_mm[i] + ebcdic_ii[i];
  7635. }
  7636. extern int foo;
  7637. int
  7638. main ()
  7639. {
  7640. return use_ascii (foo) == use_ebcdic (foo);
  7641. ;
  7642. return 0;
  7643. }
  7644. _ACEOF
  7645. if ac_fn_cxx_try_compile "$LINENO"; then :
  7646. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7647. ac_cv_c_bigendian=yes
  7648. fi
  7649. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7650. if test "$ac_cv_c_bigendian" = unknown; then
  7651. ac_cv_c_bigendian=no
  7652. else
  7653. # finding both strings is unlikely to happen, but who knows?
  7654. ac_cv_c_bigendian=unknown
  7655. fi
  7656. fi
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7659. else
  7660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7661. /* end confdefs.h. */
  7662. $ac_includes_default
  7663. int
  7664. main ()
  7665. {
  7666. /* Are we little or big endian? From Harbison&Steele. */
  7667. union
  7668. {
  7669. long int l;
  7670. char c[sizeof (long int)];
  7671. } u;
  7672. u.l = 1;
  7673. return u.c[sizeof (long int) - 1] == 1;
  7674. ;
  7675. return 0;
  7676. }
  7677. _ACEOF
  7678. if ac_fn_cxx_try_run "$LINENO"; then :
  7679. ac_cv_c_bigendian=no
  7680. else
  7681. ac_cv_c_bigendian=yes
  7682. fi
  7683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7685. fi
  7686. fi
  7687. fi
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7689. $as_echo "$ac_cv_c_bigendian" >&6; }
  7690. case $ac_cv_c_bigendian in #(
  7691. yes)
  7692. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7693. ;; #(
  7694. no)
  7695. ;; #(
  7696. universal)
  7697. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7698. ;; #(
  7699. *)
  7700. as_fn_error "unknown endianness
  7701. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7702. esac
  7703. # Check whether --enable-largefile was given.
  7704. if test "${enable_largefile+set}" = set; then :
  7705. enableval=$enable_largefile;
  7706. fi
  7707. if test "$enable_largefile" != no; then
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7709. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7710. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713. ac_cv_sys_largefile_CC=no
  7714. if test "$GCC" != yes; then
  7715. ac_save_CC=$CC
  7716. while :; do
  7717. # IRIX 6.2 and later do not support large files by default,
  7718. # so use the C compiler's -n32 option if that helps.
  7719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7720. /* end confdefs.h. */
  7721. #include <sys/types.h>
  7722. /* Check that off_t can represent 2**63 - 1 correctly.
  7723. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7724. since some C++ compilers masquerading as C compilers
  7725. incorrectly reject 9223372036854775807. */
  7726. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7727. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7728. && LARGE_OFF_T % 2147483647 == 1)
  7729. ? 1 : -1];
  7730. int
  7731. main ()
  7732. {
  7733. ;
  7734. return 0;
  7735. }
  7736. _ACEOF
  7737. if ac_fn_cxx_try_compile "$LINENO"; then :
  7738. break
  7739. fi
  7740. rm -f core conftest.err conftest.$ac_objext
  7741. CC="$CC -n32"
  7742. if ac_fn_cxx_try_compile "$LINENO"; then :
  7743. ac_cv_sys_largefile_CC=' -n32'; break
  7744. fi
  7745. rm -f core conftest.err conftest.$ac_objext
  7746. break
  7747. done
  7748. CC=$ac_save_CC
  7749. rm -f conftest.$ac_ext
  7750. fi
  7751. fi
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7753. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7754. if test "$ac_cv_sys_largefile_CC" != no; then
  7755. CC=$CC$ac_cv_sys_largefile_CC
  7756. fi
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7758. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7759. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7760. $as_echo_n "(cached) " >&6
  7761. else
  7762. while :; do
  7763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7764. /* end confdefs.h. */
  7765. #include <sys/types.h>
  7766. /* Check that off_t can represent 2**63 - 1 correctly.
  7767. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7768. since some C++ compilers masquerading as C compilers
  7769. incorrectly reject 9223372036854775807. */
  7770. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7771. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7772. && LARGE_OFF_T % 2147483647 == 1)
  7773. ? 1 : -1];
  7774. int
  7775. main ()
  7776. {
  7777. ;
  7778. return 0;
  7779. }
  7780. _ACEOF
  7781. if ac_fn_cxx_try_compile "$LINENO"; then :
  7782. ac_cv_sys_file_offset_bits=no; break
  7783. fi
  7784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7786. /* end confdefs.h. */
  7787. #define _FILE_OFFSET_BITS 64
  7788. #include <sys/types.h>
  7789. /* Check that off_t can represent 2**63 - 1 correctly.
  7790. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7791. since some C++ compilers masquerading as C compilers
  7792. incorrectly reject 9223372036854775807. */
  7793. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7794. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7795. && LARGE_OFF_T % 2147483647 == 1)
  7796. ? 1 : -1];
  7797. int
  7798. main ()
  7799. {
  7800. ;
  7801. return 0;
  7802. }
  7803. _ACEOF
  7804. if ac_fn_cxx_try_compile "$LINENO"; then :
  7805. ac_cv_sys_file_offset_bits=64; break
  7806. fi
  7807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7808. ac_cv_sys_file_offset_bits=unknown
  7809. break
  7810. done
  7811. fi
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7813. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7814. case $ac_cv_sys_file_offset_bits in #(
  7815. no | unknown) ;;
  7816. *)
  7817. cat >>confdefs.h <<_ACEOF
  7818. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7819. _ACEOF
  7820. ;;
  7821. esac
  7822. rm -rf conftest*
  7823. if test $ac_cv_sys_file_offset_bits = unknown; then
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7825. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7826. if test "${ac_cv_sys_large_files+set}" = set; then :
  7827. $as_echo_n "(cached) " >&6
  7828. else
  7829. while :; do
  7830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7831. /* end confdefs.h. */
  7832. #include <sys/types.h>
  7833. /* Check that off_t can represent 2**63 - 1 correctly.
  7834. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7835. since some C++ compilers masquerading as C compilers
  7836. incorrectly reject 9223372036854775807. */
  7837. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7838. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7839. && LARGE_OFF_T % 2147483647 == 1)
  7840. ? 1 : -1];
  7841. int
  7842. main ()
  7843. {
  7844. ;
  7845. return 0;
  7846. }
  7847. _ACEOF
  7848. if ac_fn_cxx_try_compile "$LINENO"; then :
  7849. ac_cv_sys_large_files=no; break
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7853. /* end confdefs.h. */
  7854. #define _LARGE_FILES 1
  7855. #include <sys/types.h>
  7856. /* Check that off_t can represent 2**63 - 1 correctly.
  7857. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7858. since some C++ compilers masquerading as C compilers
  7859. incorrectly reject 9223372036854775807. */
  7860. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7861. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7862. && LARGE_OFF_T % 2147483647 == 1)
  7863. ? 1 : -1];
  7864. int
  7865. main ()
  7866. {
  7867. ;
  7868. return 0;
  7869. }
  7870. _ACEOF
  7871. if ac_fn_cxx_try_compile "$LINENO"; then :
  7872. ac_cv_sys_large_files=1; break
  7873. fi
  7874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7875. ac_cv_sys_large_files=unknown
  7876. break
  7877. done
  7878. fi
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7880. $as_echo "$ac_cv_sys_large_files" >&6; }
  7881. case $ac_cv_sys_large_files in #(
  7882. no | unknown) ;;
  7883. *)
  7884. cat >>confdefs.h <<_ACEOF
  7885. #define _LARGE_FILES $ac_cv_sys_large_files
  7886. _ACEOF
  7887. ;;
  7888. esac
  7889. rm -rf conftest*
  7890. fi
  7891. fi
  7892. # Checks for library functions.
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7894. $as_echo_n "checking whether NLS is requested... " >&6; }
  7895. # Check whether --enable-nls was given.
  7896. if test "${enable_nls+set}" = set; then :
  7897. enableval=$enable_nls; USE_NLS=$enableval
  7898. else
  7899. USE_NLS=yes
  7900. fi
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7902. $as_echo "$USE_NLS" >&6; }
  7903. GETTEXT_MACRO_VERSION=0.17
  7904. # Prepare PATH_SEPARATOR.
  7905. # The user is always right.
  7906. if test "${PATH_SEPARATOR+set}" != set; then
  7907. echo "#! /bin/sh" >conf$$.sh
  7908. echo "exit 0" >>conf$$.sh
  7909. chmod +x conf$$.sh
  7910. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7911. PATH_SEPARATOR=';'
  7912. else
  7913. PATH_SEPARATOR=:
  7914. fi
  7915. rm -f conf$$.sh
  7916. fi
  7917. # Find out how to test for executable files. Don't use a zero-byte file,
  7918. # as systems may use methods other than mode bits to determine executability.
  7919. cat >conf$$.file <<_ASEOF
  7920. #! /bin/sh
  7921. exit 0
  7922. _ASEOF
  7923. chmod +x conf$$.file
  7924. if test -x conf$$.file >/dev/null 2>&1; then
  7925. ac_executable_p="test -x"
  7926. else
  7927. ac_executable_p="test -f"
  7928. fi
  7929. rm -f conf$$.file
  7930. # Extract the first word of "msgfmt", so it can be a program name with args.
  7931. set dummy msgfmt; ac_word=$2
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7933. $as_echo_n "checking for $ac_word... " >&6; }
  7934. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7935. $as_echo_n "(cached) " >&6
  7936. else
  7937. case "$MSGFMT" in
  7938. [\\/]* | ?:[\\/]*)
  7939. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7940. ;;
  7941. *)
  7942. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7943. for ac_dir in $PATH; do
  7944. IFS="$ac_save_IFS"
  7945. test -z "$ac_dir" && ac_dir=.
  7946. for ac_exec_ext in '' $ac_executable_extensions; do
  7947. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7948. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7949. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7950. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7951. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7952. break 2
  7953. fi
  7954. fi
  7955. done
  7956. done
  7957. IFS="$ac_save_IFS"
  7958. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7959. ;;
  7960. esac
  7961. fi
  7962. MSGFMT="$ac_cv_path_MSGFMT"
  7963. if test "$MSGFMT" != ":"; then
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7965. $as_echo "$MSGFMT" >&6; }
  7966. else
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7968. $as_echo "no" >&6; }
  7969. fi
  7970. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7971. set dummy gmsgfmt; ac_word=$2
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7973. $as_echo_n "checking for $ac_word... " >&6; }
  7974. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7975. $as_echo_n "(cached) " >&6
  7976. else
  7977. case $GMSGFMT in
  7978. [\\/]* | ?:[\\/]*)
  7979. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7980. ;;
  7981. *)
  7982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7983. for as_dir in $PATH
  7984. do
  7985. IFS=$as_save_IFS
  7986. test -z "$as_dir" && as_dir=.
  7987. for ac_exec_ext in '' $ac_executable_extensions; do
  7988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7989. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7991. break 2
  7992. fi
  7993. done
  7994. done
  7995. IFS=$as_save_IFS
  7996. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7997. ;;
  7998. esac
  7999. fi
  8000. GMSGFMT=$ac_cv_path_GMSGFMT
  8001. if test -n "$GMSGFMT"; then
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8003. $as_echo "$GMSGFMT" >&6; }
  8004. else
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8006. $as_echo "no" >&6; }
  8007. fi
  8008. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8009. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8010. *) MSGFMT_015=$MSGFMT ;;
  8011. esac
  8012. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8013. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8014. *) GMSGFMT_015=$GMSGFMT ;;
  8015. esac
  8016. # Prepare PATH_SEPARATOR.
  8017. # The user is always right.
  8018. if test "${PATH_SEPARATOR+set}" != set; then
  8019. echo "#! /bin/sh" >conf$$.sh
  8020. echo "exit 0" >>conf$$.sh
  8021. chmod +x conf$$.sh
  8022. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8023. PATH_SEPARATOR=';'
  8024. else
  8025. PATH_SEPARATOR=:
  8026. fi
  8027. rm -f conf$$.sh
  8028. fi
  8029. # Find out how to test for executable files. Don't use a zero-byte file,
  8030. # as systems may use methods other than mode bits to determine executability.
  8031. cat >conf$$.file <<_ASEOF
  8032. #! /bin/sh
  8033. exit 0
  8034. _ASEOF
  8035. chmod +x conf$$.file
  8036. if test -x conf$$.file >/dev/null 2>&1; then
  8037. ac_executable_p="test -x"
  8038. else
  8039. ac_executable_p="test -f"
  8040. fi
  8041. rm -f conf$$.file
  8042. # Extract the first word of "xgettext", so it can be a program name with args.
  8043. set dummy xgettext; ac_word=$2
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8045. $as_echo_n "checking for $ac_word... " >&6; }
  8046. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8047. $as_echo_n "(cached) " >&6
  8048. else
  8049. case "$XGETTEXT" in
  8050. [\\/]* | ?:[\\/]*)
  8051. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8052. ;;
  8053. *)
  8054. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8055. for ac_dir in $PATH; do
  8056. IFS="$ac_save_IFS"
  8057. test -z "$ac_dir" && ac_dir=.
  8058. for ac_exec_ext in '' $ac_executable_extensions; do
  8059. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8060. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8061. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8062. (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
  8063. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8064. break 2
  8065. fi
  8066. fi
  8067. done
  8068. done
  8069. IFS="$ac_save_IFS"
  8070. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8071. ;;
  8072. esac
  8073. fi
  8074. XGETTEXT="$ac_cv_path_XGETTEXT"
  8075. if test "$XGETTEXT" != ":"; then
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8077. $as_echo "$XGETTEXT" >&6; }
  8078. else
  8079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8080. $as_echo "no" >&6; }
  8081. fi
  8082. rm -f messages.po
  8083. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8084. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8085. *) XGETTEXT_015=$XGETTEXT ;;
  8086. esac
  8087. # Prepare PATH_SEPARATOR.
  8088. # The user is always right.
  8089. if test "${PATH_SEPARATOR+set}" != set; then
  8090. echo "#! /bin/sh" >conf$$.sh
  8091. echo "exit 0" >>conf$$.sh
  8092. chmod +x conf$$.sh
  8093. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8094. PATH_SEPARATOR=';'
  8095. else
  8096. PATH_SEPARATOR=:
  8097. fi
  8098. rm -f conf$$.sh
  8099. fi
  8100. # Find out how to test for executable files. Don't use a zero-byte file,
  8101. # as systems may use methods other than mode bits to determine executability.
  8102. cat >conf$$.file <<_ASEOF
  8103. #! /bin/sh
  8104. exit 0
  8105. _ASEOF
  8106. chmod +x conf$$.file
  8107. if test -x conf$$.file >/dev/null 2>&1; then
  8108. ac_executable_p="test -x"
  8109. else
  8110. ac_executable_p="test -f"
  8111. fi
  8112. rm -f conf$$.file
  8113. # Extract the first word of "msgmerge", so it can be a program name with args.
  8114. set dummy msgmerge; ac_word=$2
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8116. $as_echo_n "checking for $ac_word... " >&6; }
  8117. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. case "$MSGMERGE" in
  8121. [\\/]* | ?:[\\/]*)
  8122. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8123. ;;
  8124. *)
  8125. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8126. for ac_dir in $PATH; do
  8127. IFS="$ac_save_IFS"
  8128. test -z "$ac_dir" && ac_dir=.
  8129. for ac_exec_ext in '' $ac_executable_extensions; do
  8130. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8131. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8132. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8133. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8134. break 2
  8135. fi
  8136. fi
  8137. done
  8138. done
  8139. IFS="$ac_save_IFS"
  8140. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8141. ;;
  8142. esac
  8143. fi
  8144. MSGMERGE="$ac_cv_path_MSGMERGE"
  8145. if test "$MSGMERGE" != ":"; then
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8147. $as_echo "$MSGMERGE" >&6; }
  8148. else
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8150. $as_echo "no" >&6; }
  8151. fi
  8152. test -n "$localedir" || localedir='${datadir}/locale'
  8153. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8154. ac_config_commands="$ac_config_commands po-directories"
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8156. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8157. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8158. $as_echo_n "(cached) " >&6
  8159. else
  8160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8161. /* end confdefs.h. */
  8162. #include <features.h>
  8163. #ifdef __GNU_LIBRARY__
  8164. #if (__GLIBC__ >= 2)
  8165. Lucky GNU user
  8166. #endif
  8167. #endif
  8168. _ACEOF
  8169. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8170. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8171. ac_cv_gnu_library_2=yes
  8172. else
  8173. ac_cv_gnu_library_2=no
  8174. fi
  8175. rm -f conftest*
  8176. fi
  8177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8178. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8179. GLIBC2="$ac_cv_gnu_library_2"
  8180. CFLAG_VISIBILITY=
  8181. HAVE_VISIBILITY=0
  8182. if test -n "$GCC"; then
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8184. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8185. if test "${gl_cv_cc_visibility+set}" = set; then :
  8186. $as_echo_n "(cached) " >&6
  8187. else
  8188. gl_save_CFLAGS="$CFLAGS"
  8189. CFLAGS="$CFLAGS -fvisibility=hidden"
  8190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8191. /* end confdefs.h. */
  8192. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8193. extern __attribute__((__visibility__("default"))) int exportedvar;
  8194. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8195. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8196. int
  8197. main ()
  8198. {
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. if ac_fn_cxx_try_compile "$LINENO"; then :
  8204. gl_cv_cc_visibility=yes
  8205. else
  8206. gl_cv_cc_visibility=no
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8209. CFLAGS="$gl_save_CFLAGS"
  8210. fi
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8212. $as_echo "$gl_cv_cc_visibility" >&6; }
  8213. if test $gl_cv_cc_visibility = yes; then
  8214. CFLAG_VISIBILITY="-fvisibility=hidden"
  8215. HAVE_VISIBILITY=1
  8216. fi
  8217. fi
  8218. cat >>confdefs.h <<_ACEOF
  8219. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8220. _ACEOF
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8222. $as_echo_n "checking for stdint.h... " >&6; }
  8223. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8224. $as_echo_n "(cached) " >&6
  8225. else
  8226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8227. /* end confdefs.h. */
  8228. #include <sys/types.h>
  8229. #include <stdint.h>
  8230. int
  8231. main ()
  8232. {
  8233. uintmax_t i = (uintmax_t) -1; return !i;
  8234. ;
  8235. return 0;
  8236. }
  8237. _ACEOF
  8238. if ac_fn_cxx_try_compile "$LINENO"; then :
  8239. gl_cv_header_stdint_h=yes
  8240. else
  8241. gl_cv_header_stdint_h=no
  8242. fi
  8243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8244. fi
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8246. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8247. if test $gl_cv_header_stdint_h = yes; then
  8248. cat >>confdefs.h <<_ACEOF
  8249. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8250. _ACEOF
  8251. fi
  8252. for ac_header in $ac_header_list
  8253. do :
  8254. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8255. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8256. "
  8257. eval as_val=\$$as_ac_Header
  8258. if test "x$as_val" = x""yes; then :
  8259. cat >>confdefs.h <<_ACEOF
  8260. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8261. _ACEOF
  8262. fi
  8263. done
  8264. for ac_func in getpagesize
  8265. do :
  8266. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8267. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8268. cat >>confdefs.h <<_ACEOF
  8269. #define HAVE_GETPAGESIZE 1
  8270. _ACEOF
  8271. fi
  8272. done
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8274. $as_echo_n "checking for working mmap... " >&6; }
  8275. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8276. $as_echo_n "(cached) " >&6
  8277. else
  8278. if test "$cross_compiling" = yes; then :
  8279. ac_cv_func_mmap_fixed_mapped=no
  8280. else
  8281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8282. /* end confdefs.h. */
  8283. $ac_includes_default
  8284. /* malloc might have been renamed as rpl_malloc. */
  8285. #undef malloc
  8286. /* Thanks to Mike Haertel and Jim Avera for this test.
  8287. Here is a matrix of mmap possibilities:
  8288. mmap private not fixed
  8289. mmap private fixed at somewhere currently unmapped
  8290. mmap private fixed at somewhere already mapped
  8291. mmap shared not fixed
  8292. mmap shared fixed at somewhere currently unmapped
  8293. mmap shared fixed at somewhere already mapped
  8294. For private mappings, we should verify that changes cannot be read()
  8295. back from the file, nor mmap's back from the file at a different
  8296. address. (There have been systems where private was not correctly
  8297. implemented like the infamous i386 svr4.0, and systems where the
  8298. VM page cache was not coherent with the file system buffer cache
  8299. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8300. For shared mappings, we should conversely verify that changes get
  8301. propagated back to all the places they're supposed to be.
  8302. Grep wants private fixed already mapped.
  8303. The main things grep needs to know about mmap are:
  8304. * does it exist and is it safe to write into the mmap'd area
  8305. * how to use it (BSD variants) */
  8306. #include <fcntl.h>
  8307. #include <sys/mman.h>
  8308. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8309. char *malloc ();
  8310. #endif
  8311. /* This mess was copied from the GNU getpagesize.h. */
  8312. #ifndef HAVE_GETPAGESIZE
  8313. # ifdef _SC_PAGESIZE
  8314. # define getpagesize() sysconf(_SC_PAGESIZE)
  8315. # else /* no _SC_PAGESIZE */
  8316. # ifdef HAVE_SYS_PARAM_H
  8317. # include <sys/param.h>
  8318. # ifdef EXEC_PAGESIZE
  8319. # define getpagesize() EXEC_PAGESIZE
  8320. # else /* no EXEC_PAGESIZE */
  8321. # ifdef NBPG
  8322. # define getpagesize() NBPG * CLSIZE
  8323. # ifndef CLSIZE
  8324. # define CLSIZE 1
  8325. # endif /* no CLSIZE */
  8326. # else /* no NBPG */
  8327. # ifdef NBPC
  8328. # define getpagesize() NBPC
  8329. # else /* no NBPC */
  8330. # ifdef PAGESIZE
  8331. # define getpagesize() PAGESIZE
  8332. # endif /* PAGESIZE */
  8333. # endif /* no NBPC */
  8334. # endif /* no NBPG */
  8335. # endif /* no EXEC_PAGESIZE */
  8336. # else /* no HAVE_SYS_PARAM_H */
  8337. # define getpagesize() 8192 /* punt totally */
  8338. # endif /* no HAVE_SYS_PARAM_H */
  8339. # endif /* no _SC_PAGESIZE */
  8340. #endif /* no HAVE_GETPAGESIZE */
  8341. int
  8342. main ()
  8343. {
  8344. char *data, *data2, *data3;
  8345. const char *cdata2;
  8346. int i, pagesize;
  8347. int fd, fd2;
  8348. pagesize = getpagesize ();
  8349. /* First, make a file with some known garbage in it. */
  8350. data = (char *) malloc (pagesize);
  8351. if (!data)
  8352. return 1;
  8353. for (i = 0; i < pagesize; ++i)
  8354. *(data + i) = rand ();
  8355. umask (0);
  8356. fd = creat ("conftest.mmap", 0600);
  8357. if (fd < 0)
  8358. return 2;
  8359. if (write (fd, data, pagesize) != pagesize)
  8360. return 3;
  8361. close (fd);
  8362. /* Next, check that the tail of a page is zero-filled. File must have
  8363. non-zero length, otherwise we risk SIGBUS for entire page. */
  8364. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8365. if (fd2 < 0)
  8366. return 4;
  8367. cdata2 = "";
  8368. if (write (fd2, cdata2, 1) != 1)
  8369. return 5;
  8370. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8371. if (data2 == MAP_FAILED)
  8372. return 6;
  8373. for (i = 0; i < pagesize; ++i)
  8374. if (*(data2 + i))
  8375. return 7;
  8376. close (fd2);
  8377. if (munmap (data2, pagesize))
  8378. return 8;
  8379. /* Next, try to mmap the file at a fixed address which already has
  8380. something else allocated at it. If we can, also make sure that
  8381. we see the same garbage. */
  8382. fd = open ("conftest.mmap", O_RDWR);
  8383. if (fd < 0)
  8384. return 9;
  8385. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8386. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8387. return 10;
  8388. for (i = 0; i < pagesize; ++i)
  8389. if (*(data + i) != *(data2 + i))
  8390. return 11;
  8391. /* Finally, make sure that changes to the mapped area do not
  8392. percolate back to the file as seen by read(). (This is a bug on
  8393. some variants of i386 svr4.0.) */
  8394. for (i = 0; i < pagesize; ++i)
  8395. *(data2 + i) = *(data2 + i) + 1;
  8396. data3 = (char *) malloc (pagesize);
  8397. if (!data3)
  8398. return 12;
  8399. if (read (fd, data3, pagesize) != pagesize)
  8400. return 13;
  8401. for (i = 0; i < pagesize; ++i)
  8402. if (*(data + i) != *(data3 + i))
  8403. return 14;
  8404. close (fd);
  8405. return 0;
  8406. }
  8407. _ACEOF
  8408. if ac_fn_cxx_try_run "$LINENO"; then :
  8409. ac_cv_func_mmap_fixed_mapped=yes
  8410. else
  8411. ac_cv_func_mmap_fixed_mapped=no
  8412. fi
  8413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8414. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8415. fi
  8416. fi
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8418. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8419. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8420. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8421. fi
  8422. rm -f conftest.mmap conftest.txt
  8423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8424. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8425. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8426. $as_echo_n "(cached) " >&6
  8427. else
  8428. gt_cv_int_divbyzero_sigfpe=
  8429. case "$host_os" in
  8430. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8431. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8432. # compiling. If we were to perform the real test, 1 Crash Report
  8433. # dialog window would pop up.
  8434. case "$host_cpu" in
  8435. i[34567]86 | x86_64)
  8436. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8437. esac
  8438. ;;
  8439. esac
  8440. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8441. if test "$cross_compiling" = yes; then :
  8442. # Guess based on the CPU.
  8443. case "$host_cpu" in
  8444. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8445. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8446. *)
  8447. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8448. esac
  8449. else
  8450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8451. /* end confdefs.h. */
  8452. #include <stdlib.h>
  8453. #include <signal.h>
  8454. static void
  8455. sigfpe_handler (int sig)
  8456. {
  8457. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8458. exit (sig != SIGFPE);
  8459. }
  8460. int x = 1;
  8461. int y = 0;
  8462. int z;
  8463. int nan;
  8464. int main ()
  8465. {
  8466. signal (SIGFPE, sigfpe_handler);
  8467. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8468. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8469. signal (SIGTRAP, sigfpe_handler);
  8470. #endif
  8471. /* Linux/SPARC yields signal SIGILL. */
  8472. #if defined (__sparc__) && defined (__linux__)
  8473. signal (SIGILL, sigfpe_handler);
  8474. #endif
  8475. z = x / y;
  8476. nan = y / y;
  8477. exit (1);
  8478. }
  8479. _ACEOF
  8480. if ac_fn_cxx_try_run "$LINENO"; then :
  8481. gt_cv_int_divbyzero_sigfpe=yes
  8482. else
  8483. gt_cv_int_divbyzero_sigfpe=no
  8484. fi
  8485. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8486. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8487. fi
  8488. fi
  8489. fi
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8491. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8492. case "$gt_cv_int_divbyzero_sigfpe" in
  8493. *yes) value=1;;
  8494. *) value=0;;
  8495. esac
  8496. cat >>confdefs.h <<_ACEOF
  8497. #define INTDIV0_RAISES_SIGFPE $value
  8498. _ACEOF
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8500. $as_echo_n "checking for inttypes.h... " >&6; }
  8501. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8502. $as_echo_n "(cached) " >&6
  8503. else
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. #include <sys/types.h>
  8507. #include <inttypes.h>
  8508. int
  8509. main ()
  8510. {
  8511. uintmax_t i = (uintmax_t) -1; return !i;
  8512. ;
  8513. return 0;
  8514. }
  8515. _ACEOF
  8516. if ac_fn_cxx_try_compile "$LINENO"; then :
  8517. gl_cv_header_inttypes_h=yes
  8518. else
  8519. gl_cv_header_inttypes_h=no
  8520. fi
  8521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8522. fi
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8524. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8525. if test $gl_cv_header_inttypes_h = yes; then
  8526. cat >>confdefs.h <<_ACEOF
  8527. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8528. _ACEOF
  8529. fi
  8530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8531. $as_echo_n "checking for unsigned long long int... " >&6; }
  8532. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8533. $as_echo_n "(cached) " >&6
  8534. else
  8535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8536. /* end confdefs.h. */
  8537. /* Test preprocessor. */
  8538. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8539. error in preprocessor;
  8540. #endif
  8541. #if ! (18446744073709551615ULL <= -1ull)
  8542. error in preprocessor;
  8543. #endif
  8544. /* Test literals. */
  8545. long long int ll = 9223372036854775807ll;
  8546. long long int nll = -9223372036854775807LL;
  8547. unsigned long long int ull = 18446744073709551615ULL;
  8548. /* Test constant expressions. */
  8549. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8550. ? 1 : -1)];
  8551. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8552. ? 1 : -1)];
  8553. int i = 63;
  8554. int
  8555. main ()
  8556. {
  8557. /* Test availability of runtime routines for shift and division. */
  8558. long long int llmax = 9223372036854775807ll;
  8559. unsigned long long int ullmax = 18446744073709551615ull;
  8560. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8561. | (llmax / ll) | (llmax % ll)
  8562. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8563. | (ullmax / ull) | (ullmax % ull));
  8564. ;
  8565. return 0;
  8566. }
  8567. _ACEOF
  8568. if ac_fn_cxx_try_link "$LINENO"; then :
  8569. ac_cv_type_unsigned_long_long_int=yes
  8570. else
  8571. ac_cv_type_unsigned_long_long_int=no
  8572. fi
  8573. rm -f core conftest.err conftest.$ac_objext \
  8574. conftest$ac_exeext conftest.$ac_ext
  8575. fi
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8577. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8578. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8579. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8580. fi
  8581. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8582. test $ac_cv_type_unsigned_long_long_int = yes \
  8583. && ac_type='unsigned long long' \
  8584. || ac_type='unsigned long'
  8585. cat >>confdefs.h <<_ACEOF
  8586. #define uintmax_t $ac_type
  8587. _ACEOF
  8588. else
  8589. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8590. fi
  8591. for ac_header in inttypes.h
  8592. do :
  8593. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8594. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8595. cat >>confdefs.h <<_ACEOF
  8596. #define HAVE_INTTYPES_H 1
  8597. _ACEOF
  8598. fi
  8599. done
  8600. if test $ac_cv_header_inttypes_h = yes; then
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8602. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8603. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8604. $as_echo_n "(cached) " >&6
  8605. else
  8606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8607. /* end confdefs.h. */
  8608. #include <inttypes.h>
  8609. #ifdef PRId32
  8610. char *p = PRId32;
  8611. #endif
  8612. int
  8613. main ()
  8614. {
  8615. ;
  8616. return 0;
  8617. }
  8618. _ACEOF
  8619. if ac_fn_cxx_try_compile "$LINENO"; then :
  8620. gt_cv_inttypes_pri_broken=no
  8621. else
  8622. gt_cv_inttypes_pri_broken=yes
  8623. fi
  8624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8625. fi
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8627. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8628. fi
  8629. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8630. cat >>confdefs.h <<_ACEOF
  8631. #define PRI_MACROS_BROKEN 1
  8632. _ACEOF
  8633. PRI_MACROS_BROKEN=1
  8634. else
  8635. PRI_MACROS_BROKEN=0
  8636. fi
  8637. # Check whether --enable-threads was given.
  8638. if test "${enable_threads+set}" = set; then :
  8639. enableval=$enable_threads; gl_use_threads=$enableval
  8640. else
  8641. case "$host_os" in
  8642. osf*) gl_use_threads=no ;;
  8643. *) gl_use_threads=yes ;;
  8644. esac
  8645. fi
  8646. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8647. # For using <pthread.h>:
  8648. case "$host_os" in
  8649. osf*)
  8650. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8651. # groks <pthread.h>. cc also understands the flag -pthread, but
  8652. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8653. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8654. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8655. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8656. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8657. ;;
  8658. esac
  8659. # Some systems optimize for single-threaded programs by default, and
  8660. # need special flags to disable these optimizations. For example, the
  8661. # definition of 'errno' in <errno.h>.
  8662. case "$host_os" in
  8663. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8664. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8665. esac
  8666. fi
  8667. if test "X$prefix" = "XNONE"; then
  8668. acl_final_prefix="$ac_default_prefix"
  8669. else
  8670. acl_final_prefix="$prefix"
  8671. fi
  8672. if test "X$exec_prefix" = "XNONE"; then
  8673. acl_final_exec_prefix='${prefix}'
  8674. else
  8675. acl_final_exec_prefix="$exec_prefix"
  8676. fi
  8677. acl_save_prefix="$prefix"
  8678. prefix="$acl_final_prefix"
  8679. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8680. prefix="$acl_save_prefix"
  8681. # Check whether --with-gnu-ld was given.
  8682. if test "${with_gnu_ld+set}" = set; then :
  8683. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8684. else
  8685. with_gnu_ld=no
  8686. fi
  8687. # Prepare PATH_SEPARATOR.
  8688. # The user is always right.
  8689. if test "${PATH_SEPARATOR+set}" != set; then
  8690. echo "#! /bin/sh" >conf$$.sh
  8691. echo "exit 0" >>conf$$.sh
  8692. chmod +x conf$$.sh
  8693. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8694. PATH_SEPARATOR=';'
  8695. else
  8696. PATH_SEPARATOR=:
  8697. fi
  8698. rm -f conf$$.sh
  8699. fi
  8700. ac_prog=ld
  8701. if test "$GCC" = yes; then
  8702. # Check if gcc -print-prog-name=ld gives a path.
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8704. $as_echo_n "checking for ld used by GCC... " >&6; }
  8705. case $host in
  8706. *-*-mingw*)
  8707. # gcc leaves a trailing carriage return which upsets mingw
  8708. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8709. *)
  8710. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8711. esac
  8712. case $ac_prog in
  8713. # Accept absolute paths.
  8714. [\\/]* | [A-Za-z]:[\\/]*)
  8715. re_direlt='/[^/][^/]*/\.\./'
  8716. # Canonicalize the path of ld
  8717. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8718. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8719. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8720. done
  8721. test -z "$LD" && LD="$ac_prog"
  8722. ;;
  8723. "")
  8724. # If it fails, then pretend we aren't using GCC.
  8725. ac_prog=ld
  8726. ;;
  8727. *)
  8728. # If it is relative, then search for the first ld in PATH.
  8729. with_gnu_ld=unknown
  8730. ;;
  8731. esac
  8732. elif test "$with_gnu_ld" = yes; then
  8733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8734. $as_echo_n "checking for GNU ld... " >&6; }
  8735. else
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8737. $as_echo_n "checking for non-GNU ld... " >&6; }
  8738. fi
  8739. if test "${acl_cv_path_LD+set}" = set; then :
  8740. $as_echo_n "(cached) " >&6
  8741. else
  8742. if test -z "$LD"; then
  8743. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8744. for ac_dir in $PATH; do
  8745. test -z "$ac_dir" && ac_dir=.
  8746. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8747. acl_cv_path_LD="$ac_dir/$ac_prog"
  8748. # Check to see if the program is GNU ld. I'd rather use --version,
  8749. # but apparently some GNU ld's only accept -v.
  8750. # Break only if it was the GNU/non-GNU ld that we prefer.
  8751. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8752. *GNU* | *'with BFD'*)
  8753. test "$with_gnu_ld" != no && break ;;
  8754. *)
  8755. test "$with_gnu_ld" != yes && break ;;
  8756. esac
  8757. fi
  8758. done
  8759. IFS="$ac_save_ifs"
  8760. else
  8761. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8762. fi
  8763. fi
  8764. LD="$acl_cv_path_LD"
  8765. if test -n "$LD"; then
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8767. $as_echo "$LD" >&6; }
  8768. else
  8769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8770. $as_echo "no" >&6; }
  8771. fi
  8772. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8774. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8775. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8776. $as_echo_n "(cached) " >&6
  8777. else
  8778. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8779. case `$LD -v 2>&1 </dev/null` in
  8780. *GNU* | *'with BFD'*)
  8781. acl_cv_prog_gnu_ld=yes ;;
  8782. *)
  8783. acl_cv_prog_gnu_ld=no ;;
  8784. esac
  8785. fi
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8787. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8788. with_gnu_ld=$acl_cv_prog_gnu_ld
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8790. $as_echo_n "checking for shared library run path origin... " >&6; }
  8791. if test "${acl_cv_rpath+set}" = set; then :
  8792. $as_echo_n "(cached) " >&6
  8793. else
  8794. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8795. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8796. . ./conftest.sh
  8797. rm -f ./conftest.sh
  8798. acl_cv_rpath=done
  8799. fi
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8801. $as_echo "$acl_cv_rpath" >&6; }
  8802. wl="$acl_cv_wl"
  8803. acl_libext="$acl_cv_libext"
  8804. acl_shlibext="$acl_cv_shlibext"
  8805. acl_libname_spec="$acl_cv_libname_spec"
  8806. acl_library_names_spec="$acl_cv_library_names_spec"
  8807. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8808. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8809. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8810. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8811. # Check whether --enable-rpath was given.
  8812. if test "${enable_rpath+set}" = set; then :
  8813. enableval=$enable_rpath; :
  8814. else
  8815. enable_rpath=yes
  8816. fi
  8817. acl_libdirstem=lib
  8818. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8819. if test -n "$searchpath"; then
  8820. acl_save_IFS="${IFS= }"; IFS=":"
  8821. for searchdir in $searchpath; do
  8822. if test -d "$searchdir"; then
  8823. case "$searchdir" in
  8824. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8825. *) searchdir=`cd "$searchdir" && pwd`
  8826. case "$searchdir" in
  8827. */lib64 ) acl_libdirstem=lib64 ;;
  8828. esac ;;
  8829. esac
  8830. fi
  8831. done
  8832. IFS="$acl_save_IFS"
  8833. fi
  8834. gl_threads_api=none
  8835. LIBTHREAD=
  8836. LTLIBTHREAD=
  8837. LIBMULTITHREAD=
  8838. LTLIBMULTITHREAD=
  8839. if test "$gl_use_threads" != no; then
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8841. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8842. gl_have_weak=no
  8843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8844. /* end confdefs.h. */
  8845. extern void xyzzy ();
  8846. #pragma weak xyzzy
  8847. int
  8848. main ()
  8849. {
  8850. xyzzy();
  8851. ;
  8852. return 0;
  8853. }
  8854. _ACEOF
  8855. if ac_fn_cxx_try_link "$LINENO"; then :
  8856. gl_have_weak=yes
  8857. fi
  8858. rm -f core conftest.err conftest.$ac_objext \
  8859. conftest$ac_exeext conftest.$ac_ext
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8861. $as_echo "$gl_have_weak" >&6; }
  8862. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8863. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8864. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8865. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8866. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8867. gl_have_pthread_h=yes
  8868. else
  8869. gl_have_pthread_h=no
  8870. fi
  8871. if test "$gl_have_pthread_h" = yes; then
  8872. # Other possible tests:
  8873. # -lpthreads (FSU threads, PCthreads)
  8874. # -lgthreads
  8875. gl_have_pthread=
  8876. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8877. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8878. # the second one only in libpthread, and lock.c needs it.
  8879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8880. /* end confdefs.h. */
  8881. #include <pthread.h>
  8882. int
  8883. main ()
  8884. {
  8885. pthread_mutex_lock((pthread_mutex_t*)0);
  8886. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8887. ;
  8888. return 0;
  8889. }
  8890. _ACEOF
  8891. if ac_fn_cxx_try_link "$LINENO"; then :
  8892. gl_have_pthread=yes
  8893. fi
  8894. rm -f core conftest.err conftest.$ac_objext \
  8895. conftest$ac_exeext conftest.$ac_ext
  8896. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8897. # since it is defined as a macro on OSF/1.)
  8898. if test -n "$gl_have_pthread"; then
  8899. # The program links fine without libpthread. But it may actually
  8900. # need to link with libpthread in order to create multiple threads.
  8901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8902. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8903. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8904. $as_echo_n "(cached) " >&6
  8905. else
  8906. ac_check_lib_save_LIBS=$LIBS
  8907. LIBS="-lpthread $LIBS"
  8908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8909. /* end confdefs.h. */
  8910. /* Override any GCC internal prototype to avoid an error.
  8911. Use char because int might match the return type of a GCC
  8912. builtin and then its argument prototype would still apply. */
  8913. #ifdef __cplusplus
  8914. extern "C"
  8915. #endif
  8916. char pthread_kill ();
  8917. int
  8918. main ()
  8919. {
  8920. return pthread_kill ();
  8921. ;
  8922. return 0;
  8923. }
  8924. _ACEOF
  8925. if ac_fn_cxx_try_link "$LINENO"; then :
  8926. ac_cv_lib_pthread_pthread_kill=yes
  8927. else
  8928. ac_cv_lib_pthread_pthread_kill=no
  8929. fi
  8930. rm -f core conftest.err conftest.$ac_objext \
  8931. conftest$ac_exeext conftest.$ac_ext
  8932. LIBS=$ac_check_lib_save_LIBS
  8933. fi
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8935. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8936. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8937. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8938. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8939. # Therefore pthread_in_use() needs to actually try to create a
  8940. # thread: pthread_create from libc will fail, whereas
  8941. # pthread_create will actually create a thread.
  8942. case "$host_os" in
  8943. solaris* | hpux*)
  8944. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8945. esac
  8946. fi
  8947. else
  8948. # Some library is needed. Try libpthread and libc_r.
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8950. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8951. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8952. $as_echo_n "(cached) " >&6
  8953. else
  8954. ac_check_lib_save_LIBS=$LIBS
  8955. LIBS="-lpthread $LIBS"
  8956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8957. /* end confdefs.h. */
  8958. /* Override any GCC internal prototype to avoid an error.
  8959. Use char because int might match the return type of a GCC
  8960. builtin and then its argument prototype would still apply. */
  8961. #ifdef __cplusplus
  8962. extern "C"
  8963. #endif
  8964. char pthread_kill ();
  8965. int
  8966. main ()
  8967. {
  8968. return pthread_kill ();
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. if ac_fn_cxx_try_link "$LINENO"; then :
  8974. ac_cv_lib_pthread_pthread_kill=yes
  8975. else
  8976. ac_cv_lib_pthread_pthread_kill=no
  8977. fi
  8978. rm -f core conftest.err conftest.$ac_objext \
  8979. conftest$ac_exeext conftest.$ac_ext
  8980. LIBS=$ac_check_lib_save_LIBS
  8981. fi
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8983. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8984. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8985. gl_have_pthread=yes
  8986. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8987. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8988. fi
  8989. if test -z "$gl_have_pthread"; then
  8990. # For FreeBSD 4.
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8992. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8993. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. ac_check_lib_save_LIBS=$LIBS
  8997. LIBS="-lc_r $LIBS"
  8998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8999. /* end confdefs.h. */
  9000. /* Override any GCC internal prototype to avoid an error.
  9001. Use char because int might match the return type of a GCC
  9002. builtin and then its argument prototype would still apply. */
  9003. #ifdef __cplusplus
  9004. extern "C"
  9005. #endif
  9006. char pthread_kill ();
  9007. int
  9008. main ()
  9009. {
  9010. return pthread_kill ();
  9011. ;
  9012. return 0;
  9013. }
  9014. _ACEOF
  9015. if ac_fn_cxx_try_link "$LINENO"; then :
  9016. ac_cv_lib_c_r_pthread_kill=yes
  9017. else
  9018. ac_cv_lib_c_r_pthread_kill=no
  9019. fi
  9020. rm -f core conftest.err conftest.$ac_objext \
  9021. conftest$ac_exeext conftest.$ac_ext
  9022. LIBS=$ac_check_lib_save_LIBS
  9023. fi
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9025. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9026. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9027. gl_have_pthread=yes
  9028. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9029. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9030. fi
  9031. fi
  9032. fi
  9033. if test -n "$gl_have_pthread"; then
  9034. gl_threads_api=posix
  9035. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9036. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9037. if test $gl_have_weak = yes; then
  9038. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9039. LIBTHREAD=
  9040. LTLIBTHREAD=
  9041. fi
  9042. fi
  9043. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9044. # pthread_rwlock_* functions.
  9045. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9046. "
  9047. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9048. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9049. fi
  9050. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9052. /* end confdefs.h. */
  9053. #include <pthread.h>
  9054. int
  9055. main ()
  9056. {
  9057. #if __FreeBSD__ == 4
  9058. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9059. #else
  9060. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9061. return !x;
  9062. #endif
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. if ac_fn_cxx_try_compile "$LINENO"; then :
  9068. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9069. fi
  9070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9071. fi
  9072. fi
  9073. fi
  9074. if test -z "$gl_have_pthread"; then
  9075. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9076. gl_have_solaristhread=
  9077. gl_save_LIBS="$LIBS"
  9078. LIBS="$LIBS -lthread"
  9079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9080. /* end confdefs.h. */
  9081. #include <thread.h>
  9082. #include <synch.h>
  9083. int
  9084. main ()
  9085. {
  9086. thr_self();
  9087. ;
  9088. return 0;
  9089. }
  9090. _ACEOF
  9091. if ac_fn_cxx_try_link "$LINENO"; then :
  9092. gl_have_solaristhread=yes
  9093. fi
  9094. rm -f core conftest.err conftest.$ac_objext \
  9095. conftest$ac_exeext conftest.$ac_ext
  9096. LIBS="$gl_save_LIBS"
  9097. if test -n "$gl_have_solaristhread"; then
  9098. gl_threads_api=solaris
  9099. LIBTHREAD=-lthread
  9100. LTLIBTHREAD=-lthread
  9101. LIBMULTITHREAD="$LIBTHREAD"
  9102. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9103. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9104. if test $gl_have_weak = yes; then
  9105. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9106. LIBTHREAD=
  9107. LTLIBTHREAD=
  9108. fi
  9109. fi
  9110. fi
  9111. fi
  9112. if test "$gl_use_threads" = pth; then
  9113. gl_save_CPPFLAGS="$CPPFLAGS"
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9115. $as_echo_n "checking how to link with libpth... " >&6; }
  9116. if test "${ac_cv_libpth_libs+set}" = set; then :
  9117. $as_echo_n "(cached) " >&6
  9118. else
  9119. use_additional=yes
  9120. acl_save_prefix="$prefix"
  9121. prefix="$acl_final_prefix"
  9122. acl_save_exec_prefix="$exec_prefix"
  9123. exec_prefix="$acl_final_exec_prefix"
  9124. eval additional_includedir=\"$includedir\"
  9125. eval additional_libdir=\"$libdir\"
  9126. exec_prefix="$acl_save_exec_prefix"
  9127. prefix="$acl_save_prefix"
  9128. # Check whether --with-libpth-prefix was given.
  9129. if test "${with_libpth_prefix+set}" = set; then :
  9130. withval=$with_libpth_prefix;
  9131. if test "X$withval" = "Xno"; then
  9132. use_additional=no
  9133. else
  9134. if test "X$withval" = "X"; then
  9135. acl_save_prefix="$prefix"
  9136. prefix="$acl_final_prefix"
  9137. acl_save_exec_prefix="$exec_prefix"
  9138. exec_prefix="$acl_final_exec_prefix"
  9139. eval additional_includedir=\"$includedir\"
  9140. eval additional_libdir=\"$libdir\"
  9141. exec_prefix="$acl_save_exec_prefix"
  9142. prefix="$acl_save_prefix"
  9143. else
  9144. additional_includedir="$withval/include"
  9145. additional_libdir="$withval/$acl_libdirstem"
  9146. fi
  9147. fi
  9148. fi
  9149. LIBPTH=
  9150. LTLIBPTH=
  9151. INCPTH=
  9152. LIBPTH_PREFIX=
  9153. rpathdirs=
  9154. ltrpathdirs=
  9155. names_already_handled=
  9156. names_next_round='pth '
  9157. while test -n "$names_next_round"; do
  9158. names_this_round="$names_next_round"
  9159. names_next_round=
  9160. for name in $names_this_round; do
  9161. already_handled=
  9162. for n in $names_already_handled; do
  9163. if test "$n" = "$name"; then
  9164. already_handled=yes
  9165. break
  9166. fi
  9167. done
  9168. if test -z "$already_handled"; then
  9169. names_already_handled="$names_already_handled $name"
  9170. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9171. eval value=\"\$HAVE_LIB$uppername\"
  9172. if test -n "$value"; then
  9173. if test "$value" = yes; then
  9174. eval value=\"\$LIB$uppername\"
  9175. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9176. eval value=\"\$LTLIB$uppername\"
  9177. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9178. else
  9179. :
  9180. fi
  9181. else
  9182. found_dir=
  9183. found_la=
  9184. found_so=
  9185. found_a=
  9186. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9187. if test -n "$acl_shlibext"; then
  9188. shrext=".$acl_shlibext" # typically: shrext=.so
  9189. else
  9190. shrext=
  9191. fi
  9192. if test $use_additional = yes; then
  9193. dir="$additional_libdir"
  9194. if test -n "$acl_shlibext"; then
  9195. if test -f "$dir/$libname$shrext"; then
  9196. found_dir="$dir"
  9197. found_so="$dir/$libname$shrext"
  9198. else
  9199. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9200. ver=`(cd "$dir" && \
  9201. for f in "$libname$shrext".*; do echo "$f"; done \
  9202. | sed -e "s,^$libname$shrext\\\\.,," \
  9203. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9204. | sed 1q ) 2>/dev/null`
  9205. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9206. found_dir="$dir"
  9207. found_so="$dir/$libname$shrext.$ver"
  9208. fi
  9209. else
  9210. eval library_names=\"$acl_library_names_spec\"
  9211. for f in $library_names; do
  9212. if test -f "$dir/$f"; then
  9213. found_dir="$dir"
  9214. found_so="$dir/$f"
  9215. break
  9216. fi
  9217. done
  9218. fi
  9219. fi
  9220. fi
  9221. if test "X$found_dir" = "X"; then
  9222. if test -f "$dir/$libname.$acl_libext"; then
  9223. found_dir="$dir"
  9224. found_a="$dir/$libname.$acl_libext"
  9225. fi
  9226. fi
  9227. if test "X$found_dir" != "X"; then
  9228. if test -f "$dir/$libname.la"; then
  9229. found_la="$dir/$libname.la"
  9230. fi
  9231. fi
  9232. fi
  9233. if test "X$found_dir" = "X"; then
  9234. for x in $LDFLAGS $LTLIBPTH; do
  9235. acl_save_prefix="$prefix"
  9236. prefix="$acl_final_prefix"
  9237. acl_save_exec_prefix="$exec_prefix"
  9238. exec_prefix="$acl_final_exec_prefix"
  9239. eval x=\"$x\"
  9240. exec_prefix="$acl_save_exec_prefix"
  9241. prefix="$acl_save_prefix"
  9242. case "$x" in
  9243. -L*)
  9244. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9245. if test -n "$acl_shlibext"; then
  9246. if test -f "$dir/$libname$shrext"; then
  9247. found_dir="$dir"
  9248. found_so="$dir/$libname$shrext"
  9249. else
  9250. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9251. ver=`(cd "$dir" && \
  9252. for f in "$libname$shrext".*; do echo "$f"; done \
  9253. | sed -e "s,^$libname$shrext\\\\.,," \
  9254. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9255. | sed 1q ) 2>/dev/null`
  9256. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9257. found_dir="$dir"
  9258. found_so="$dir/$libname$shrext.$ver"
  9259. fi
  9260. else
  9261. eval library_names=\"$acl_library_names_spec\"
  9262. for f in $library_names; do
  9263. if test -f "$dir/$f"; then
  9264. found_dir="$dir"
  9265. found_so="$dir/$f"
  9266. break
  9267. fi
  9268. done
  9269. fi
  9270. fi
  9271. fi
  9272. if test "X$found_dir" = "X"; then
  9273. if test -f "$dir/$libname.$acl_libext"; then
  9274. found_dir="$dir"
  9275. found_a="$dir/$libname.$acl_libext"
  9276. fi
  9277. fi
  9278. if test "X$found_dir" != "X"; then
  9279. if test -f "$dir/$libname.la"; then
  9280. found_la="$dir/$libname.la"
  9281. fi
  9282. fi
  9283. ;;
  9284. esac
  9285. if test "X$found_dir" != "X"; then
  9286. break
  9287. fi
  9288. done
  9289. fi
  9290. if test "X$found_dir" != "X"; then
  9291. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9292. if test "X$found_so" != "X"; then
  9293. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9294. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9295. else
  9296. haveit=
  9297. for x in $ltrpathdirs; do
  9298. if test "X$x" = "X$found_dir"; then
  9299. haveit=yes
  9300. break
  9301. fi
  9302. done
  9303. if test -z "$haveit"; then
  9304. ltrpathdirs="$ltrpathdirs $found_dir"
  9305. fi
  9306. if test "$acl_hardcode_direct" = yes; then
  9307. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9308. else
  9309. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9310. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9311. haveit=
  9312. for x in $rpathdirs; do
  9313. if test "X$x" = "X$found_dir"; then
  9314. haveit=yes
  9315. break
  9316. fi
  9317. done
  9318. if test -z "$haveit"; then
  9319. rpathdirs="$rpathdirs $found_dir"
  9320. fi
  9321. else
  9322. haveit=
  9323. for x in $LDFLAGS $LIBPTH; do
  9324. acl_save_prefix="$prefix"
  9325. prefix="$acl_final_prefix"
  9326. acl_save_exec_prefix="$exec_prefix"
  9327. exec_prefix="$acl_final_exec_prefix"
  9328. eval x=\"$x\"
  9329. exec_prefix="$acl_save_exec_prefix"
  9330. prefix="$acl_save_prefix"
  9331. if test "X$x" = "X-L$found_dir"; then
  9332. haveit=yes
  9333. break
  9334. fi
  9335. done
  9336. if test -z "$haveit"; then
  9337. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9338. fi
  9339. if test "$acl_hardcode_minus_L" != no; then
  9340. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9341. else
  9342. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9343. fi
  9344. fi
  9345. fi
  9346. fi
  9347. else
  9348. if test "X$found_a" != "X"; then
  9349. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9350. else
  9351. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9352. fi
  9353. fi
  9354. additional_includedir=
  9355. case "$found_dir" in
  9356. */$acl_libdirstem | */$acl_libdirstem/)
  9357. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9358. LIBPTH_PREFIX="$basedir"
  9359. additional_includedir="$basedir/include"
  9360. ;;
  9361. esac
  9362. if test "X$additional_includedir" != "X"; then
  9363. if test "X$additional_includedir" != "X/usr/include"; then
  9364. haveit=
  9365. if test "X$additional_includedir" = "X/usr/local/include"; then
  9366. if test -n "$GCC"; then
  9367. case $host_os in
  9368. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9369. esac
  9370. fi
  9371. fi
  9372. if test -z "$haveit"; then
  9373. for x in $CPPFLAGS $INCPTH; do
  9374. acl_save_prefix="$prefix"
  9375. prefix="$acl_final_prefix"
  9376. acl_save_exec_prefix="$exec_prefix"
  9377. exec_prefix="$acl_final_exec_prefix"
  9378. eval x=\"$x\"
  9379. exec_prefix="$acl_save_exec_prefix"
  9380. prefix="$acl_save_prefix"
  9381. if test "X$x" = "X-I$additional_includedir"; then
  9382. haveit=yes
  9383. break
  9384. fi
  9385. done
  9386. if test -z "$haveit"; then
  9387. if test -d "$additional_includedir"; then
  9388. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9389. fi
  9390. fi
  9391. fi
  9392. fi
  9393. fi
  9394. if test -n "$found_la"; then
  9395. save_libdir="$libdir"
  9396. case "$found_la" in
  9397. */* | *\\*) . "$found_la" ;;
  9398. *) . "./$found_la" ;;
  9399. esac
  9400. libdir="$save_libdir"
  9401. for dep in $dependency_libs; do
  9402. case "$dep" in
  9403. -L*)
  9404. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9405. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9406. haveit=
  9407. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9408. if test -n "$GCC"; then
  9409. case $host_os in
  9410. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9411. esac
  9412. fi
  9413. fi
  9414. if test -z "$haveit"; then
  9415. haveit=
  9416. for x in $LDFLAGS $LIBPTH; do
  9417. acl_save_prefix="$prefix"
  9418. prefix="$acl_final_prefix"
  9419. acl_save_exec_prefix="$exec_prefix"
  9420. exec_prefix="$acl_final_exec_prefix"
  9421. eval x=\"$x\"
  9422. exec_prefix="$acl_save_exec_prefix"
  9423. prefix="$acl_save_prefix"
  9424. if test "X$x" = "X-L$additional_libdir"; then
  9425. haveit=yes
  9426. break
  9427. fi
  9428. done
  9429. if test -z "$haveit"; then
  9430. if test -d "$additional_libdir"; then
  9431. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9432. fi
  9433. fi
  9434. haveit=
  9435. for x in $LDFLAGS $LTLIBPTH; do
  9436. acl_save_prefix="$prefix"
  9437. prefix="$acl_final_prefix"
  9438. acl_save_exec_prefix="$exec_prefix"
  9439. exec_prefix="$acl_final_exec_prefix"
  9440. eval x=\"$x\"
  9441. exec_prefix="$acl_save_exec_prefix"
  9442. prefix="$acl_save_prefix"
  9443. if test "X$x" = "X-L$additional_libdir"; then
  9444. haveit=yes
  9445. break
  9446. fi
  9447. done
  9448. if test -z "$haveit"; then
  9449. if test -d "$additional_libdir"; then
  9450. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9451. fi
  9452. fi
  9453. fi
  9454. fi
  9455. ;;
  9456. -R*)
  9457. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9458. if test "$enable_rpath" != no; then
  9459. haveit=
  9460. for x in $rpathdirs; do
  9461. if test "X$x" = "X$dir"; then
  9462. haveit=yes
  9463. break
  9464. fi
  9465. done
  9466. if test -z "$haveit"; then
  9467. rpathdirs="$rpathdirs $dir"
  9468. fi
  9469. haveit=
  9470. for x in $ltrpathdirs; do
  9471. if test "X$x" = "X$dir"; then
  9472. haveit=yes
  9473. break
  9474. fi
  9475. done
  9476. if test -z "$haveit"; then
  9477. ltrpathdirs="$ltrpathdirs $dir"
  9478. fi
  9479. fi
  9480. ;;
  9481. -l*)
  9482. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9483. ;;
  9484. *.la)
  9485. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9486. ;;
  9487. *)
  9488. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9489. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9490. ;;
  9491. esac
  9492. done
  9493. fi
  9494. else
  9495. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9496. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9497. fi
  9498. fi
  9499. fi
  9500. done
  9501. done
  9502. if test "X$rpathdirs" != "X"; then
  9503. if test -n "$acl_hardcode_libdir_separator"; then
  9504. alldirs=
  9505. for found_dir in $rpathdirs; do
  9506. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9507. done
  9508. acl_save_libdir="$libdir"
  9509. libdir="$alldirs"
  9510. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9511. libdir="$acl_save_libdir"
  9512. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9513. else
  9514. for found_dir in $rpathdirs; do
  9515. acl_save_libdir="$libdir"
  9516. libdir="$found_dir"
  9517. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9518. libdir="$acl_save_libdir"
  9519. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9520. done
  9521. fi
  9522. fi
  9523. if test "X$ltrpathdirs" != "X"; then
  9524. for found_dir in $ltrpathdirs; do
  9525. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9526. done
  9527. fi
  9528. ac_cv_libpth_libs="$LIBPTH"
  9529. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9530. ac_cv_libpth_cppflags="$INCPTH"
  9531. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9532. fi
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9534. $as_echo "$ac_cv_libpth_libs" >&6; }
  9535. LIBPTH="$ac_cv_libpth_libs"
  9536. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9537. INCPTH="$ac_cv_libpth_cppflags"
  9538. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9539. for element in $INCPTH; do
  9540. haveit=
  9541. for x in $CPPFLAGS; do
  9542. acl_save_prefix="$prefix"
  9543. prefix="$acl_final_prefix"
  9544. acl_save_exec_prefix="$exec_prefix"
  9545. exec_prefix="$acl_final_exec_prefix"
  9546. eval x=\"$x\"
  9547. exec_prefix="$acl_save_exec_prefix"
  9548. prefix="$acl_save_prefix"
  9549. if test "X$x" = "X$element"; then
  9550. haveit=yes
  9551. break
  9552. fi
  9553. done
  9554. if test -z "$haveit"; then
  9555. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9556. fi
  9557. done
  9558. HAVE_LIBPTH=yes
  9559. gl_have_pth=
  9560. gl_save_LIBS="$LIBS"
  9561. LIBS="$LIBS -lpth"
  9562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9563. /* end confdefs.h. */
  9564. #include <pth.h>
  9565. int
  9566. main ()
  9567. {
  9568. pth_self();
  9569. ;
  9570. return 0;
  9571. }
  9572. _ACEOF
  9573. if ac_fn_cxx_try_link "$LINENO"; then :
  9574. gl_have_pth=yes
  9575. fi
  9576. rm -f core conftest.err conftest.$ac_objext \
  9577. conftest$ac_exeext conftest.$ac_ext
  9578. LIBS="$gl_save_LIBS"
  9579. if test -n "$gl_have_pth"; then
  9580. gl_threads_api=pth
  9581. LIBTHREAD="$LIBPTH"
  9582. LTLIBTHREAD="$LTLIBPTH"
  9583. LIBMULTITHREAD="$LIBTHREAD"
  9584. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9585. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9586. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9587. if test $gl_have_weak = yes; then
  9588. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9589. LIBTHREAD=
  9590. LTLIBTHREAD=
  9591. fi
  9592. fi
  9593. else
  9594. CPPFLAGS="$gl_save_CPPFLAGS"
  9595. fi
  9596. fi
  9597. if test -z "$gl_have_pthread"; then
  9598. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9599. if { case "$host_os" in
  9600. mingw*) true;;
  9601. *) false;;
  9602. esac
  9603. }; then
  9604. gl_threads_api=win32
  9605. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9606. fi
  9607. fi
  9608. fi
  9609. fi
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9611. $as_echo_n "checking for multithread API to use... " >&6; }
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9613. $as_echo "$gl_threads_api" >&6; }
  9614. use_additional=yes
  9615. acl_save_prefix="$prefix"
  9616. prefix="$acl_final_prefix"
  9617. acl_save_exec_prefix="$exec_prefix"
  9618. exec_prefix="$acl_final_exec_prefix"
  9619. eval additional_includedir=\"$includedir\"
  9620. eval additional_libdir=\"$libdir\"
  9621. exec_prefix="$acl_save_exec_prefix"
  9622. prefix="$acl_save_prefix"
  9623. # Check whether --with-libiconv-prefix was given.
  9624. if test "${with_libiconv_prefix+set}" = set; then :
  9625. withval=$with_libiconv_prefix;
  9626. if test "X$withval" = "Xno"; then
  9627. use_additional=no
  9628. else
  9629. if test "X$withval" = "X"; then
  9630. acl_save_prefix="$prefix"
  9631. prefix="$acl_final_prefix"
  9632. acl_save_exec_prefix="$exec_prefix"
  9633. exec_prefix="$acl_final_exec_prefix"
  9634. eval additional_includedir=\"$includedir\"
  9635. eval additional_libdir=\"$libdir\"
  9636. exec_prefix="$acl_save_exec_prefix"
  9637. prefix="$acl_save_prefix"
  9638. else
  9639. additional_includedir="$withval/include"
  9640. additional_libdir="$withval/$acl_libdirstem"
  9641. fi
  9642. fi
  9643. fi
  9644. LIBICONV=
  9645. LTLIBICONV=
  9646. INCICONV=
  9647. LIBICONV_PREFIX=
  9648. rpathdirs=
  9649. ltrpathdirs=
  9650. names_already_handled=
  9651. names_next_round='iconv '
  9652. while test -n "$names_next_round"; do
  9653. names_this_round="$names_next_round"
  9654. names_next_round=
  9655. for name in $names_this_round; do
  9656. already_handled=
  9657. for n in $names_already_handled; do
  9658. if test "$n" = "$name"; then
  9659. already_handled=yes
  9660. break
  9661. fi
  9662. done
  9663. if test -z "$already_handled"; then
  9664. names_already_handled="$names_already_handled $name"
  9665. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9666. eval value=\"\$HAVE_LIB$uppername\"
  9667. if test -n "$value"; then
  9668. if test "$value" = yes; then
  9669. eval value=\"\$LIB$uppername\"
  9670. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9671. eval value=\"\$LTLIB$uppername\"
  9672. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9673. else
  9674. :
  9675. fi
  9676. else
  9677. found_dir=
  9678. found_la=
  9679. found_so=
  9680. found_a=
  9681. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9682. if test -n "$acl_shlibext"; then
  9683. shrext=".$acl_shlibext" # typically: shrext=.so
  9684. else
  9685. shrext=
  9686. fi
  9687. if test $use_additional = yes; then
  9688. dir="$additional_libdir"
  9689. if test -n "$acl_shlibext"; then
  9690. if test -f "$dir/$libname$shrext"; then
  9691. found_dir="$dir"
  9692. found_so="$dir/$libname$shrext"
  9693. else
  9694. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9695. ver=`(cd "$dir" && \
  9696. for f in "$libname$shrext".*; do echo "$f"; done \
  9697. | sed -e "s,^$libname$shrext\\\\.,," \
  9698. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9699. | sed 1q ) 2>/dev/null`
  9700. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9701. found_dir="$dir"
  9702. found_so="$dir/$libname$shrext.$ver"
  9703. fi
  9704. else
  9705. eval library_names=\"$acl_library_names_spec\"
  9706. for f in $library_names; do
  9707. if test -f "$dir/$f"; then
  9708. found_dir="$dir"
  9709. found_so="$dir/$f"
  9710. break
  9711. fi
  9712. done
  9713. fi
  9714. fi
  9715. fi
  9716. if test "X$found_dir" = "X"; then
  9717. if test -f "$dir/$libname.$acl_libext"; then
  9718. found_dir="$dir"
  9719. found_a="$dir/$libname.$acl_libext"
  9720. fi
  9721. fi
  9722. if test "X$found_dir" != "X"; then
  9723. if test -f "$dir/$libname.la"; then
  9724. found_la="$dir/$libname.la"
  9725. fi
  9726. fi
  9727. fi
  9728. if test "X$found_dir" = "X"; then
  9729. for x in $LDFLAGS $LTLIBICONV; do
  9730. acl_save_prefix="$prefix"
  9731. prefix="$acl_final_prefix"
  9732. acl_save_exec_prefix="$exec_prefix"
  9733. exec_prefix="$acl_final_exec_prefix"
  9734. eval x=\"$x\"
  9735. exec_prefix="$acl_save_exec_prefix"
  9736. prefix="$acl_save_prefix"
  9737. case "$x" in
  9738. -L*)
  9739. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9740. if test -n "$acl_shlibext"; then
  9741. if test -f "$dir/$libname$shrext"; then
  9742. found_dir="$dir"
  9743. found_so="$dir/$libname$shrext"
  9744. else
  9745. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9746. ver=`(cd "$dir" && \
  9747. for f in "$libname$shrext".*; do echo "$f"; done \
  9748. | sed -e "s,^$libname$shrext\\\\.,," \
  9749. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9750. | sed 1q ) 2>/dev/null`
  9751. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9752. found_dir="$dir"
  9753. found_so="$dir/$libname$shrext.$ver"
  9754. fi
  9755. else
  9756. eval library_names=\"$acl_library_names_spec\"
  9757. for f in $library_names; do
  9758. if test -f "$dir/$f"; then
  9759. found_dir="$dir"
  9760. found_so="$dir/$f"
  9761. break
  9762. fi
  9763. done
  9764. fi
  9765. fi
  9766. fi
  9767. if test "X$found_dir" = "X"; then
  9768. if test -f "$dir/$libname.$acl_libext"; then
  9769. found_dir="$dir"
  9770. found_a="$dir/$libname.$acl_libext"
  9771. fi
  9772. fi
  9773. if test "X$found_dir" != "X"; then
  9774. if test -f "$dir/$libname.la"; then
  9775. found_la="$dir/$libname.la"
  9776. fi
  9777. fi
  9778. ;;
  9779. esac
  9780. if test "X$found_dir" != "X"; then
  9781. break
  9782. fi
  9783. done
  9784. fi
  9785. if test "X$found_dir" != "X"; then
  9786. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9787. if test "X$found_so" != "X"; then
  9788. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9789. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9790. else
  9791. haveit=
  9792. for x in $ltrpathdirs; do
  9793. if test "X$x" = "X$found_dir"; then
  9794. haveit=yes
  9795. break
  9796. fi
  9797. done
  9798. if test -z "$haveit"; then
  9799. ltrpathdirs="$ltrpathdirs $found_dir"
  9800. fi
  9801. if test "$acl_hardcode_direct" = yes; then
  9802. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9803. else
  9804. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9805. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9806. haveit=
  9807. for x in $rpathdirs; do
  9808. if test "X$x" = "X$found_dir"; then
  9809. haveit=yes
  9810. break
  9811. fi
  9812. done
  9813. if test -z "$haveit"; then
  9814. rpathdirs="$rpathdirs $found_dir"
  9815. fi
  9816. else
  9817. haveit=
  9818. for x in $LDFLAGS $LIBICONV; do
  9819. acl_save_prefix="$prefix"
  9820. prefix="$acl_final_prefix"
  9821. acl_save_exec_prefix="$exec_prefix"
  9822. exec_prefix="$acl_final_exec_prefix"
  9823. eval x=\"$x\"
  9824. exec_prefix="$acl_save_exec_prefix"
  9825. prefix="$acl_save_prefix"
  9826. if test "X$x" = "X-L$found_dir"; then
  9827. haveit=yes
  9828. break
  9829. fi
  9830. done
  9831. if test -z "$haveit"; then
  9832. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9833. fi
  9834. if test "$acl_hardcode_minus_L" != no; then
  9835. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9836. else
  9837. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9838. fi
  9839. fi
  9840. fi
  9841. fi
  9842. else
  9843. if test "X$found_a" != "X"; then
  9844. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9845. else
  9846. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9847. fi
  9848. fi
  9849. additional_includedir=
  9850. case "$found_dir" in
  9851. */$acl_libdirstem | */$acl_libdirstem/)
  9852. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9853. LIBICONV_PREFIX="$basedir"
  9854. additional_includedir="$basedir/include"
  9855. ;;
  9856. esac
  9857. if test "X$additional_includedir" != "X"; then
  9858. if test "X$additional_includedir" != "X/usr/include"; then
  9859. haveit=
  9860. if test "X$additional_includedir" = "X/usr/local/include"; then
  9861. if test -n "$GCC"; then
  9862. case $host_os in
  9863. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9864. esac
  9865. fi
  9866. fi
  9867. if test -z "$haveit"; then
  9868. for x in $CPPFLAGS $INCICONV; do
  9869. acl_save_prefix="$prefix"
  9870. prefix="$acl_final_prefix"
  9871. acl_save_exec_prefix="$exec_prefix"
  9872. exec_prefix="$acl_final_exec_prefix"
  9873. eval x=\"$x\"
  9874. exec_prefix="$acl_save_exec_prefix"
  9875. prefix="$acl_save_prefix"
  9876. if test "X$x" = "X-I$additional_includedir"; then
  9877. haveit=yes
  9878. break
  9879. fi
  9880. done
  9881. if test -z "$haveit"; then
  9882. if test -d "$additional_includedir"; then
  9883. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9884. fi
  9885. fi
  9886. fi
  9887. fi
  9888. fi
  9889. if test -n "$found_la"; then
  9890. save_libdir="$libdir"
  9891. case "$found_la" in
  9892. */* | *\\*) . "$found_la" ;;
  9893. *) . "./$found_la" ;;
  9894. esac
  9895. libdir="$save_libdir"
  9896. for dep in $dependency_libs; do
  9897. case "$dep" in
  9898. -L*)
  9899. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9900. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9901. haveit=
  9902. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9903. if test -n "$GCC"; then
  9904. case $host_os in
  9905. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9906. esac
  9907. fi
  9908. fi
  9909. if test -z "$haveit"; then
  9910. haveit=
  9911. for x in $LDFLAGS $LIBICONV; do
  9912. acl_save_prefix="$prefix"
  9913. prefix="$acl_final_prefix"
  9914. acl_save_exec_prefix="$exec_prefix"
  9915. exec_prefix="$acl_final_exec_prefix"
  9916. eval x=\"$x\"
  9917. exec_prefix="$acl_save_exec_prefix"
  9918. prefix="$acl_save_prefix"
  9919. if test "X$x" = "X-L$additional_libdir"; then
  9920. haveit=yes
  9921. break
  9922. fi
  9923. done
  9924. if test -z "$haveit"; then
  9925. if test -d "$additional_libdir"; then
  9926. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9927. fi
  9928. fi
  9929. haveit=
  9930. for x in $LDFLAGS $LTLIBICONV; do
  9931. acl_save_prefix="$prefix"
  9932. prefix="$acl_final_prefix"
  9933. acl_save_exec_prefix="$exec_prefix"
  9934. exec_prefix="$acl_final_exec_prefix"
  9935. eval x=\"$x\"
  9936. exec_prefix="$acl_save_exec_prefix"
  9937. prefix="$acl_save_prefix"
  9938. if test "X$x" = "X-L$additional_libdir"; then
  9939. haveit=yes
  9940. break
  9941. fi
  9942. done
  9943. if test -z "$haveit"; then
  9944. if test -d "$additional_libdir"; then
  9945. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9946. fi
  9947. fi
  9948. fi
  9949. fi
  9950. ;;
  9951. -R*)
  9952. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9953. if test "$enable_rpath" != no; then
  9954. haveit=
  9955. for x in $rpathdirs; do
  9956. if test "X$x" = "X$dir"; then
  9957. haveit=yes
  9958. break
  9959. fi
  9960. done
  9961. if test -z "$haveit"; then
  9962. rpathdirs="$rpathdirs $dir"
  9963. fi
  9964. haveit=
  9965. for x in $ltrpathdirs; do
  9966. if test "X$x" = "X$dir"; then
  9967. haveit=yes
  9968. break
  9969. fi
  9970. done
  9971. if test -z "$haveit"; then
  9972. ltrpathdirs="$ltrpathdirs $dir"
  9973. fi
  9974. fi
  9975. ;;
  9976. -l*)
  9977. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9978. ;;
  9979. *.la)
  9980. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9981. ;;
  9982. *)
  9983. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9984. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9985. ;;
  9986. esac
  9987. done
  9988. fi
  9989. else
  9990. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9991. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9992. fi
  9993. fi
  9994. fi
  9995. done
  9996. done
  9997. if test "X$rpathdirs" != "X"; then
  9998. if test -n "$acl_hardcode_libdir_separator"; then
  9999. alldirs=
  10000. for found_dir in $rpathdirs; do
  10001. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10002. done
  10003. acl_save_libdir="$libdir"
  10004. libdir="$alldirs"
  10005. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10006. libdir="$acl_save_libdir"
  10007. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10008. else
  10009. for found_dir in $rpathdirs; do
  10010. acl_save_libdir="$libdir"
  10011. libdir="$found_dir"
  10012. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10013. libdir="$acl_save_libdir"
  10014. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10015. done
  10016. fi
  10017. fi
  10018. if test "X$ltrpathdirs" != "X"; then
  10019. for found_dir in $ltrpathdirs; do
  10020. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10021. done
  10022. fi
  10023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10024. /* end confdefs.h. */
  10025. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10026. int
  10027. main ()
  10028. {
  10029. ;
  10030. return 0;
  10031. }
  10032. _ACEOF
  10033. if ac_fn_cxx_try_link "$LINENO"; then :
  10034. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10035. fi
  10036. rm -f core conftest.err conftest.$ac_objext \
  10037. conftest$ac_exeext conftest.$ac_ext
  10038. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10039. do :
  10040. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10041. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10042. eval as_val=\$$as_ac_Header
  10043. if test "x$as_val" = x""yes; then :
  10044. cat >>confdefs.h <<_ACEOF
  10045. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10046. _ACEOF
  10047. fi
  10048. done
  10049. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10050. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10051. argz_next __fsetlocking
  10052. do :
  10053. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10054. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10055. eval as_val=\$$as_ac_var
  10056. if test "x$as_val" = x""yes; then :
  10057. cat >>confdefs.h <<_ACEOF
  10058. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10059. _ACEOF
  10060. fi
  10061. done
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10063. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10064. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10065. $as_echo_n "(cached) " >&6
  10066. else
  10067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10068. /* end confdefs.h. */
  10069. #include <stdio.h>
  10070. int
  10071. main ()
  10072. {
  10073. #ifndef feof_unlocked
  10074. char *p = (char *) feof_unlocked;
  10075. #endif
  10076. ;
  10077. return 0;
  10078. }
  10079. _ACEOF
  10080. if ac_fn_cxx_try_compile "$LINENO"; then :
  10081. ac_cv_have_decl_feof_unlocked=yes
  10082. else
  10083. ac_cv_have_decl_feof_unlocked=no
  10084. fi
  10085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10086. fi
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10088. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10089. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10090. gt_value=1
  10091. else
  10092. gt_value=0
  10093. fi
  10094. cat >>confdefs.h <<_ACEOF
  10095. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10096. _ACEOF
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10098. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10099. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10103. /* end confdefs.h. */
  10104. #include <stdio.h>
  10105. int
  10106. main ()
  10107. {
  10108. #ifndef fgets_unlocked
  10109. char *p = (char *) fgets_unlocked;
  10110. #endif
  10111. ;
  10112. return 0;
  10113. }
  10114. _ACEOF
  10115. if ac_fn_cxx_try_compile "$LINENO"; then :
  10116. ac_cv_have_decl_fgets_unlocked=yes
  10117. else
  10118. ac_cv_have_decl_fgets_unlocked=no
  10119. fi
  10120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10121. fi
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10123. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10124. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10125. gt_value=1
  10126. else
  10127. gt_value=0
  10128. fi
  10129. cat >>confdefs.h <<_ACEOF
  10130. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10131. _ACEOF
  10132. am_save_CPPFLAGS="$CPPFLAGS"
  10133. for element in $INCICONV; do
  10134. haveit=
  10135. for x in $CPPFLAGS; do
  10136. acl_save_prefix="$prefix"
  10137. prefix="$acl_final_prefix"
  10138. acl_save_exec_prefix="$exec_prefix"
  10139. exec_prefix="$acl_final_exec_prefix"
  10140. eval x=\"$x\"
  10141. exec_prefix="$acl_save_exec_prefix"
  10142. prefix="$acl_save_prefix"
  10143. if test "X$x" = "X$element"; then
  10144. haveit=yes
  10145. break
  10146. fi
  10147. done
  10148. if test -z "$haveit"; then
  10149. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10150. fi
  10151. done
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10153. $as_echo_n "checking for iconv... " >&6; }
  10154. if test "${am_cv_func_iconv+set}" = set; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. am_cv_func_iconv="no, consider installing GNU libiconv"
  10158. am_cv_lib_iconv=no
  10159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10160. /* end confdefs.h. */
  10161. #include <stdlib.h>
  10162. #include <iconv.h>
  10163. int
  10164. main ()
  10165. {
  10166. iconv_t cd = iconv_open("","");
  10167. iconv(cd,NULL,NULL,NULL,NULL);
  10168. iconv_close(cd);
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. if ac_fn_cxx_try_link "$LINENO"; then :
  10174. am_cv_func_iconv=yes
  10175. fi
  10176. rm -f core conftest.err conftest.$ac_objext \
  10177. conftest$ac_exeext conftest.$ac_ext
  10178. if test "$am_cv_func_iconv" != yes; then
  10179. am_save_LIBS="$LIBS"
  10180. LIBS="$LIBS $LIBICONV"
  10181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10182. /* end confdefs.h. */
  10183. #include <stdlib.h>
  10184. #include <iconv.h>
  10185. int
  10186. main ()
  10187. {
  10188. iconv_t cd = iconv_open("","");
  10189. iconv(cd,NULL,NULL,NULL,NULL);
  10190. iconv_close(cd);
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_cxx_try_link "$LINENO"; then :
  10196. am_cv_lib_iconv=yes
  10197. am_cv_func_iconv=yes
  10198. fi
  10199. rm -f core conftest.err conftest.$ac_objext \
  10200. conftest$ac_exeext conftest.$ac_ext
  10201. LIBS="$am_save_LIBS"
  10202. fi
  10203. fi
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10205. $as_echo "$am_cv_func_iconv" >&6; }
  10206. if test "$am_cv_func_iconv" = yes; then
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10208. $as_echo_n "checking for working iconv... " >&6; }
  10209. if test "${am_cv_func_iconv_works+set}" = set; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. am_save_LIBS="$LIBS"
  10213. if test $am_cv_lib_iconv = yes; then
  10214. LIBS="$LIBS $LIBICONV"
  10215. fi
  10216. if test "$cross_compiling" = yes; then :
  10217. case "$host_os" in
  10218. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10219. *) am_cv_func_iconv_works="guessing yes" ;;
  10220. esac
  10221. else
  10222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10223. /* end confdefs.h. */
  10224. #include <iconv.h>
  10225. #include <string.h>
  10226. int main ()
  10227. {
  10228. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10229. returns. */
  10230. {
  10231. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10232. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10233. {
  10234. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10235. char buf[10];
  10236. const char *inptr = input;
  10237. size_t inbytesleft = strlen (input);
  10238. char *outptr = buf;
  10239. size_t outbytesleft = sizeof (buf);
  10240. size_t res = iconv (cd_utf8_to_88591,
  10241. (char **) &inptr, &inbytesleft,
  10242. &outptr, &outbytesleft);
  10243. if (res == 0)
  10244. return 1;
  10245. }
  10246. }
  10247. #if 0 /* This bug could be worked around by the caller. */
  10248. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10249. {
  10250. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10251. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10252. {
  10253. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10254. char buf[50];
  10255. const char *inptr = input;
  10256. size_t inbytesleft = strlen (input);
  10257. char *outptr = buf;
  10258. size_t outbytesleft = sizeof (buf);
  10259. size_t res = iconv (cd_88591_to_utf8,
  10260. (char **) &inptr, &inbytesleft,
  10261. &outptr, &outbytesleft);
  10262. if ((int)res > 0)
  10263. return 1;
  10264. }
  10265. }
  10266. #endif
  10267. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10268. provided. */
  10269. if (/* Try standardized names. */
  10270. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10271. /* Try IRIX, OSF/1 names. */
  10272. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10273. /* Try AIX names. */
  10274. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10275. /* Try HP-UX names. */
  10276. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10277. return 1;
  10278. return 0;
  10279. }
  10280. _ACEOF
  10281. if ac_fn_cxx_try_run "$LINENO"; then :
  10282. am_cv_func_iconv_works=yes
  10283. else
  10284. am_cv_func_iconv_works=no
  10285. fi
  10286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10287. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10288. fi
  10289. LIBS="$am_save_LIBS"
  10290. fi
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10292. $as_echo "$am_cv_func_iconv_works" >&6; }
  10293. case "$am_cv_func_iconv_works" in
  10294. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10295. *) am_func_iconv=yes ;;
  10296. esac
  10297. else
  10298. am_func_iconv=no am_cv_lib_iconv=no
  10299. fi
  10300. if test "$am_func_iconv" = yes; then
  10301. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10302. fi
  10303. if test "$am_cv_lib_iconv" = yes; then
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10305. $as_echo_n "checking how to link with libiconv... " >&6; }
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10307. $as_echo "$LIBICONV" >&6; }
  10308. else
  10309. CPPFLAGS="$am_save_CPPFLAGS"
  10310. LIBICONV=
  10311. LTLIBICONV=
  10312. fi
  10313. if test "$am_cv_func_iconv" = yes; then
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10315. $as_echo_n "checking for iconv declaration... " >&6; }
  10316. if test "${am_cv_proto_iconv+set}" = set; then :
  10317. $as_echo_n "(cached) " >&6
  10318. else
  10319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10320. /* end confdefs.h. */
  10321. #include <stdlib.h>
  10322. #include <iconv.h>
  10323. extern
  10324. #ifdef __cplusplus
  10325. "C"
  10326. #endif
  10327. #if defined(__STDC__) || defined(__cplusplus)
  10328. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10329. #else
  10330. size_t iconv();
  10331. #endif
  10332. int
  10333. main ()
  10334. {
  10335. ;
  10336. return 0;
  10337. }
  10338. _ACEOF
  10339. if ac_fn_cxx_try_compile "$LINENO"; then :
  10340. am_cv_proto_iconv_arg1=""
  10341. else
  10342. am_cv_proto_iconv_arg1="const"
  10343. fi
  10344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10345. 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);"
  10346. fi
  10347. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10349. }$am_cv_proto_iconv" >&5
  10350. $as_echo "${ac_t:-
  10351. }$am_cv_proto_iconv" >&6; }
  10352. cat >>confdefs.h <<_ACEOF
  10353. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10354. _ACEOF
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10357. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10358. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. #include <langinfo.h>
  10364. #include <locale.h>
  10365. int
  10366. main ()
  10367. {
  10368. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10369. return !cs;
  10370. ;
  10371. return 0;
  10372. }
  10373. _ACEOF
  10374. if ac_fn_cxx_try_link "$LINENO"; then :
  10375. gt_cv_nl_locale_name=yes
  10376. else
  10377. gt_cv_nl_locale_name=no
  10378. fi
  10379. rm -f core conftest.err conftest.$ac_objext \
  10380. conftest$ac_exeext conftest.$ac_ext
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10383. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10384. if test $gt_cv_nl_locale_name = yes; then
  10385. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10386. fi
  10387. for ac_prog in bison
  10388. do
  10389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10390. set dummy $ac_prog; ac_word=$2
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10392. $as_echo_n "checking for $ac_word... " >&6; }
  10393. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. if test -n "$INTLBISON"; then
  10397. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10398. else
  10399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10400. for as_dir in $PATH
  10401. do
  10402. IFS=$as_save_IFS
  10403. test -z "$as_dir" && as_dir=.
  10404. for ac_exec_ext in '' $ac_executable_extensions; do
  10405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10406. ac_cv_prog_INTLBISON="$ac_prog"
  10407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10408. break 2
  10409. fi
  10410. done
  10411. done
  10412. IFS=$as_save_IFS
  10413. fi
  10414. fi
  10415. INTLBISON=$ac_cv_prog_INTLBISON
  10416. if test -n "$INTLBISON"; then
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10418. $as_echo "$INTLBISON" >&6; }
  10419. else
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10421. $as_echo "no" >&6; }
  10422. fi
  10423. test -n "$INTLBISON" && break
  10424. done
  10425. if test -z "$INTLBISON"; then
  10426. ac_verc_fail=yes
  10427. else
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10429. $as_echo_n "checking version of bison... " >&6; }
  10430. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10431. case $ac_prog_version in
  10432. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10433. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10434. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10435. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10436. esac
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10438. $as_echo "$ac_prog_version" >&6; }
  10439. fi
  10440. if test $ac_verc_fail = yes; then
  10441. INTLBISON=:
  10442. fi
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10444. $as_echo_n "checking for long long int... " >&6; }
  10445. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10449. /* end confdefs.h. */
  10450. /* Test preprocessor. */
  10451. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10452. error in preprocessor;
  10453. #endif
  10454. #if ! (18446744073709551615ULL <= -1ull)
  10455. error in preprocessor;
  10456. #endif
  10457. /* Test literals. */
  10458. long long int ll = 9223372036854775807ll;
  10459. long long int nll = -9223372036854775807LL;
  10460. unsigned long long int ull = 18446744073709551615ULL;
  10461. /* Test constant expressions. */
  10462. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10463. ? 1 : -1)];
  10464. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10465. ? 1 : -1)];
  10466. int i = 63;
  10467. int
  10468. main ()
  10469. {
  10470. /* Test availability of runtime routines for shift and division. */
  10471. long long int llmax = 9223372036854775807ll;
  10472. unsigned long long int ullmax = 18446744073709551615ull;
  10473. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10474. | (llmax / ll) | (llmax % ll)
  10475. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10476. | (ullmax / ull) | (ullmax % ull));
  10477. ;
  10478. return 0;
  10479. }
  10480. _ACEOF
  10481. if ac_fn_cxx_try_link "$LINENO"; then :
  10482. if test "$cross_compiling" = yes; then :
  10483. ac_cv_type_long_long_int=yes
  10484. else
  10485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10486. /* end confdefs.h. */
  10487. #include <limits.h>
  10488. #ifndef LLONG_MAX
  10489. # define HALF \
  10490. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10491. # define LLONG_MAX (HALF - 1 + HALF)
  10492. #endif
  10493. int
  10494. main ()
  10495. {
  10496. long long int n = 1;
  10497. int i;
  10498. for (i = 0; ; i++)
  10499. {
  10500. long long int m = n << i;
  10501. if (m >> i != n)
  10502. return 1;
  10503. if (LLONG_MAX / 2 < m)
  10504. break;
  10505. }
  10506. return 0;
  10507. ;
  10508. return 0;
  10509. }
  10510. _ACEOF
  10511. if ac_fn_cxx_try_run "$LINENO"; then :
  10512. ac_cv_type_long_long_int=yes
  10513. else
  10514. ac_cv_type_long_long_int=no
  10515. fi
  10516. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10517. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10518. fi
  10519. else
  10520. ac_cv_type_long_long_int=no
  10521. fi
  10522. rm -f core conftest.err conftest.$ac_objext \
  10523. conftest$ac_exeext conftest.$ac_ext
  10524. fi
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10526. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10527. if test $ac_cv_type_long_long_int = yes; then
  10528. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10531. $as_echo_n "checking for wchar_t... " >&6; }
  10532. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10533. $as_echo_n "(cached) " >&6
  10534. else
  10535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10536. /* end confdefs.h. */
  10537. #include <stddef.h>
  10538. wchar_t foo = (wchar_t)'\0';
  10539. int
  10540. main ()
  10541. {
  10542. ;
  10543. return 0;
  10544. }
  10545. _ACEOF
  10546. if ac_fn_cxx_try_compile "$LINENO"; then :
  10547. gt_cv_c_wchar_t=yes
  10548. else
  10549. gt_cv_c_wchar_t=no
  10550. fi
  10551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10552. fi
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10554. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10555. if test $gt_cv_c_wchar_t = yes; then
  10556. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10557. fi
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10559. $as_echo_n "checking for wint_t... " >&6; }
  10560. if test "${gt_cv_c_wint_t+set}" = set; then :
  10561. $as_echo_n "(cached) " >&6
  10562. else
  10563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10564. /* end confdefs.h. */
  10565. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10566. <wchar.h>.
  10567. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10568. before <wchar.h>. */
  10569. #include <stddef.h>
  10570. #include <stdio.h>
  10571. #include <time.h>
  10572. #include <wchar.h>
  10573. wint_t foo = (wchar_t)'\0';
  10574. int
  10575. main ()
  10576. {
  10577. ;
  10578. return 0;
  10579. }
  10580. _ACEOF
  10581. if ac_fn_cxx_try_compile "$LINENO"; then :
  10582. gt_cv_c_wint_t=yes
  10583. else
  10584. gt_cv_c_wint_t=no
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10589. $as_echo "$gt_cv_c_wint_t" >&6; }
  10590. if test $gt_cv_c_wint_t = yes; then
  10591. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10592. fi
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10594. $as_echo_n "checking for intmax_t... " >&6; }
  10595. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #include <stddef.h>
  10601. #include <stdlib.h>
  10602. #if HAVE_STDINT_H_WITH_UINTMAX
  10603. #include <stdint.h>
  10604. #endif
  10605. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10606. #include <inttypes.h>
  10607. #endif
  10608. int
  10609. main ()
  10610. {
  10611. intmax_t x = -1;
  10612. return !x;
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_cxx_try_compile "$LINENO"; then :
  10618. gt_cv_c_intmax_t=yes
  10619. else
  10620. gt_cv_c_intmax_t=no
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10625. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10626. if test $gt_cv_c_intmax_t = yes; then
  10627. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10628. fi
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10630. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10631. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10632. $as_echo_n "(cached) " >&6
  10633. else
  10634. if test "$cross_compiling" = yes; then :
  10635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10636. /* end confdefs.h. */
  10637. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10638. notposix
  10639. #endif
  10640. _ACEOF
  10641. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10642. $EGREP "notposix" >/dev/null 2>&1; then :
  10643. gt_cv_func_printf_posix="guessing no"
  10644. else
  10645. gt_cv_func_printf_posix="guessing yes"
  10646. fi
  10647. rm -f conftest*
  10648. else
  10649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10650. /* end confdefs.h. */
  10651. #include <stdio.h>
  10652. #include <string.h>
  10653. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10654. dollar expansion (possibly an autoconf bug). */
  10655. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10656. static char buf[100];
  10657. int main ()
  10658. {
  10659. sprintf (buf, format, 33, 55);
  10660. return (strcmp (buf, "55 33") != 0);
  10661. }
  10662. _ACEOF
  10663. if ac_fn_cxx_try_run "$LINENO"; then :
  10664. gt_cv_func_printf_posix=yes
  10665. else
  10666. gt_cv_func_printf_posix=no
  10667. fi
  10668. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10669. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10670. fi
  10671. fi
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10673. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10674. case $gt_cv_func_printf_posix in
  10675. *yes)
  10676. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10677. ;;
  10678. esac
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10680. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10681. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10685. /* end confdefs.h. */
  10686. #include <features.h>
  10687. #ifdef __GNU_LIBRARY__
  10688. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10689. Lucky GNU user
  10690. #endif
  10691. #endif
  10692. _ACEOF
  10693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10694. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10695. ac_cv_gnu_library_2_1=yes
  10696. else
  10697. ac_cv_gnu_library_2_1=no
  10698. fi
  10699. rm -f conftest*
  10700. fi
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10702. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10703. GLIBC21="$ac_cv_gnu_library_2_1"
  10704. for ac_header in stdint.h
  10705. do :
  10706. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10707. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10708. cat >>confdefs.h <<_ACEOF
  10709. #define HAVE_STDINT_H 1
  10710. _ACEOF
  10711. fi
  10712. done
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10714. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10715. if test "${gl_cv_size_max+set}" = set; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. gl_cv_size_max=
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. #include <limits.h>
  10722. #if HAVE_STDINT_H
  10723. #include <stdint.h>
  10724. #endif
  10725. #ifdef SIZE_MAX
  10726. Found it
  10727. #endif
  10728. _ACEOF
  10729. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10730. $EGREP "Found it" >/dev/null 2>&1; then :
  10731. gl_cv_size_max=yes
  10732. fi
  10733. rm -f conftest*
  10734. if test -z "$gl_cv_size_max"; then
  10735. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10736. #include <limits.h>"; then :
  10737. else
  10738. size_t_bits_minus_1=
  10739. fi
  10740. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10741. else
  10742. fits_in_uint=
  10743. fi
  10744. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10745. if test $fits_in_uint = 1; then
  10746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10747. /* end confdefs.h. */
  10748. #include <stddef.h>
  10749. extern size_t foo;
  10750. extern unsigned long foo;
  10751. int
  10752. main ()
  10753. {
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. if ac_fn_cxx_try_compile "$LINENO"; then :
  10759. fits_in_uint=0
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10762. fi
  10763. if test $fits_in_uint = 1; then
  10764. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10765. else
  10766. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10767. fi
  10768. else
  10769. gl_cv_size_max='((size_t)~(size_t)0)'
  10770. fi
  10771. fi
  10772. fi
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10774. $as_echo "$gl_cv_size_max" >&6; }
  10775. if test "$gl_cv_size_max" != yes; then
  10776. cat >>confdefs.h <<_ACEOF
  10777. #define SIZE_MAX $gl_cv_size_max
  10778. _ACEOF
  10779. fi
  10780. for ac_header in stdint.h
  10781. do :
  10782. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10783. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10784. cat >>confdefs.h <<_ACEOF
  10785. #define HAVE_STDINT_H 1
  10786. _ACEOF
  10787. fi
  10788. done
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10790. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10791. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10792. $as_echo_n "(cached) " >&6
  10793. else
  10794. gt_save_LIBS="$LIBS"
  10795. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10797. /* end confdefs.h. */
  10798. #include <CoreFoundation/CFPreferences.h>
  10799. int
  10800. main ()
  10801. {
  10802. CFPreferencesCopyAppValue(NULL, NULL)
  10803. ;
  10804. return 0;
  10805. }
  10806. _ACEOF
  10807. if ac_fn_cxx_try_link "$LINENO"; then :
  10808. gt_cv_func_CFPreferencesCopyAppValue=yes
  10809. else
  10810. gt_cv_func_CFPreferencesCopyAppValue=no
  10811. fi
  10812. rm -f core conftest.err conftest.$ac_objext \
  10813. conftest$ac_exeext conftest.$ac_ext
  10814. LIBS="$gt_save_LIBS"
  10815. fi
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10817. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10818. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10819. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10820. fi
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10822. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10823. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10824. $as_echo_n "(cached) " >&6
  10825. else
  10826. gt_save_LIBS="$LIBS"
  10827. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10829. /* end confdefs.h. */
  10830. #include <CoreFoundation/CFLocale.h>
  10831. int
  10832. main ()
  10833. {
  10834. CFLocaleCopyCurrent();
  10835. ;
  10836. return 0;
  10837. }
  10838. _ACEOF
  10839. if ac_fn_cxx_try_link "$LINENO"; then :
  10840. gt_cv_func_CFLocaleCopyCurrent=yes
  10841. else
  10842. gt_cv_func_CFLocaleCopyCurrent=no
  10843. fi
  10844. rm -f core conftest.err conftest.$ac_objext \
  10845. conftest$ac_exeext conftest.$ac_ext
  10846. LIBS="$gt_save_LIBS"
  10847. fi
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10849. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10850. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10851. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10852. fi
  10853. INTL_MACOSX_LIBS=
  10854. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10855. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10856. fi
  10857. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10858. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10859. else
  10860. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10861. fi
  10862. for ac_header in stddef.h stdlib.h string.h
  10863. do :
  10864. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10865. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10866. eval as_val=\$$as_ac_Header
  10867. if test "x$as_val" = x""yes; then :
  10868. cat >>confdefs.h <<_ACEOF
  10869. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10870. _ACEOF
  10871. fi
  10872. done
  10873. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10874. do :
  10875. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10876. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10877. eval as_val=\$$as_ac_var
  10878. if test "x$as_val" = x""yes; then :
  10879. cat >>confdefs.h <<_ACEOF
  10880. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10881. _ACEOF
  10882. fi
  10883. done
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10885. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10886. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10887. $as_echo_n "(cached) " >&6
  10888. else
  10889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10890. /* end confdefs.h. */
  10891. #include <stdio.h>
  10892. int
  10893. main ()
  10894. {
  10895. #ifndef _snprintf
  10896. char *p = (char *) _snprintf;
  10897. #endif
  10898. ;
  10899. return 0;
  10900. }
  10901. _ACEOF
  10902. if ac_fn_cxx_try_compile "$LINENO"; then :
  10903. ac_cv_have_decl__snprintf=yes
  10904. else
  10905. ac_cv_have_decl__snprintf=no
  10906. fi
  10907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10908. fi
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10910. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10911. if test $ac_cv_have_decl__snprintf = yes; then
  10912. gt_value=1
  10913. else
  10914. gt_value=0
  10915. fi
  10916. cat >>confdefs.h <<_ACEOF
  10917. #define HAVE_DECL__SNPRINTF $gt_value
  10918. _ACEOF
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10920. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10921. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10922. $as_echo_n "(cached) " >&6
  10923. else
  10924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10925. /* end confdefs.h. */
  10926. #include <stdio.h>
  10927. int
  10928. main ()
  10929. {
  10930. #ifndef _snwprintf
  10931. char *p = (char *) _snwprintf;
  10932. #endif
  10933. ;
  10934. return 0;
  10935. }
  10936. _ACEOF
  10937. if ac_fn_cxx_try_compile "$LINENO"; then :
  10938. ac_cv_have_decl__snwprintf=yes
  10939. else
  10940. ac_cv_have_decl__snwprintf=no
  10941. fi
  10942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10943. fi
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10945. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10946. if test $ac_cv_have_decl__snwprintf = yes; then
  10947. gt_value=1
  10948. else
  10949. gt_value=0
  10950. fi
  10951. cat >>confdefs.h <<_ACEOF
  10952. #define HAVE_DECL__SNWPRINTF $gt_value
  10953. _ACEOF
  10954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10955. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10956. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10957. $as_echo_n "(cached) " >&6
  10958. else
  10959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10960. /* end confdefs.h. */
  10961. #include <stdio.h>
  10962. int
  10963. main ()
  10964. {
  10965. #ifndef getc_unlocked
  10966. char *p = (char *) getc_unlocked;
  10967. #endif
  10968. ;
  10969. return 0;
  10970. }
  10971. _ACEOF
  10972. if ac_fn_cxx_try_compile "$LINENO"; then :
  10973. ac_cv_have_decl_getc_unlocked=yes
  10974. else
  10975. ac_cv_have_decl_getc_unlocked=no
  10976. fi
  10977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10978. fi
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10980. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10981. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10982. gt_value=1
  10983. else
  10984. gt_value=0
  10985. fi
  10986. cat >>confdefs.h <<_ACEOF
  10987. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10988. _ACEOF
  10989. case $gt_cv_func_printf_posix in
  10990. *yes) HAVE_POSIX_PRINTF=1 ;;
  10991. *) HAVE_POSIX_PRINTF=0 ;;
  10992. esac
  10993. if test "$ac_cv_func_asprintf" = yes; then
  10994. HAVE_ASPRINTF=1
  10995. else
  10996. HAVE_ASPRINTF=0
  10997. fi
  10998. if test "$ac_cv_func_snprintf" = yes; then
  10999. HAVE_SNPRINTF=1
  11000. else
  11001. HAVE_SNPRINTF=0
  11002. fi
  11003. if test "$ac_cv_func_wprintf" = yes; then
  11004. HAVE_WPRINTF=1
  11005. else
  11006. HAVE_WPRINTF=0
  11007. fi
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11009. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11010. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11014. /* end confdefs.h. */
  11015. #include <langinfo.h>
  11016. int
  11017. main ()
  11018. {
  11019. char* cs = nl_langinfo(CODESET); return !cs;
  11020. ;
  11021. return 0;
  11022. }
  11023. _ACEOF
  11024. if ac_fn_cxx_try_link "$LINENO"; then :
  11025. am_cv_langinfo_codeset=yes
  11026. else
  11027. am_cv_langinfo_codeset=no
  11028. fi
  11029. rm -f core conftest.err conftest.$ac_objext \
  11030. conftest$ac_exeext conftest.$ac_ext
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11033. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11034. if test $am_cv_langinfo_codeset = yes; then
  11035. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11036. fi
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11038. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11039. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11040. $as_echo_n "(cached) " >&6
  11041. else
  11042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11043. /* end confdefs.h. */
  11044. #include <locale.h>
  11045. int
  11046. main ()
  11047. {
  11048. return LC_MESSAGES
  11049. ;
  11050. return 0;
  11051. }
  11052. _ACEOF
  11053. if ac_fn_cxx_try_link "$LINENO"; then :
  11054. gt_cv_val_LC_MESSAGES=yes
  11055. else
  11056. gt_cv_val_LC_MESSAGES=no
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext \
  11059. conftest$ac_exeext conftest.$ac_ext
  11060. fi
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11062. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11063. if test $gt_cv_val_LC_MESSAGES = yes; then
  11064. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11065. fi
  11066. if test "$enable_shared" = yes; then
  11067. case "$host_os" in
  11068. mingw* | cygwin*) is_woe32dll=yes ;;
  11069. *) is_woe32dll=no ;;
  11070. esac
  11071. else
  11072. is_woe32dll=no
  11073. fi
  11074. WOE32DLL=$is_woe32dll
  11075. case "$host_os" in
  11076. mingw* | cygwin*) is_woe32=yes ;;
  11077. *) is_woe32=no ;;
  11078. esac
  11079. WOE32=$is_woe32
  11080. if test $WOE32 = yes; then
  11081. if test -n "$ac_tool_prefix"; then
  11082. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11083. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11085. $as_echo_n "checking for $ac_word... " >&6; }
  11086. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11087. $as_echo_n "(cached) " >&6
  11088. else
  11089. if test -n "$WINDRES"; then
  11090. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11091. else
  11092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11093. for as_dir in $PATH
  11094. do
  11095. IFS=$as_save_IFS
  11096. test -z "$as_dir" && as_dir=.
  11097. for ac_exec_ext in '' $ac_executable_extensions; do
  11098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11099. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11101. break 2
  11102. fi
  11103. done
  11104. done
  11105. IFS=$as_save_IFS
  11106. fi
  11107. fi
  11108. WINDRES=$ac_cv_prog_WINDRES
  11109. if test -n "$WINDRES"; then
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11111. $as_echo "$WINDRES" >&6; }
  11112. else
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11114. $as_echo "no" >&6; }
  11115. fi
  11116. fi
  11117. if test -z "$ac_cv_prog_WINDRES"; then
  11118. ac_ct_WINDRES=$WINDRES
  11119. # Extract the first word of "windres", so it can be a program name with args.
  11120. set dummy windres; ac_word=$2
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11122. $as_echo_n "checking for $ac_word... " >&6; }
  11123. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11124. $as_echo_n "(cached) " >&6
  11125. else
  11126. if test -n "$ac_ct_WINDRES"; then
  11127. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11128. else
  11129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11130. for as_dir in $PATH
  11131. do
  11132. IFS=$as_save_IFS
  11133. test -z "$as_dir" && as_dir=.
  11134. for ac_exec_ext in '' $ac_executable_extensions; do
  11135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11136. ac_cv_prog_ac_ct_WINDRES="windres"
  11137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11138. break 2
  11139. fi
  11140. done
  11141. done
  11142. IFS=$as_save_IFS
  11143. fi
  11144. fi
  11145. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11146. if test -n "$ac_ct_WINDRES"; then
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11148. $as_echo "$ac_ct_WINDRES" >&6; }
  11149. else
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11151. $as_echo "no" >&6; }
  11152. fi
  11153. if test "x$ac_ct_WINDRES" = x; then
  11154. WINDRES=""
  11155. else
  11156. case $cross_compiling:$ac_tool_warned in
  11157. yes:)
  11158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11160. ac_tool_warned=yes ;;
  11161. esac
  11162. WINDRES=$ac_ct_WINDRES
  11163. fi
  11164. else
  11165. WINDRES="$ac_cv_prog_WINDRES"
  11166. fi
  11167. fi
  11168. case "$host_os" in
  11169. hpux*) LTLIBC="" ;;
  11170. *) LTLIBC="-lc" ;;
  11171. esac
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11173. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11174. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11175. $as_echo_n "(cached) " >&6
  11176. else
  11177. gt_save_LIBS="$LIBS"
  11178. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11180. /* end confdefs.h. */
  11181. #include <CoreFoundation/CFPreferences.h>
  11182. int
  11183. main ()
  11184. {
  11185. CFPreferencesCopyAppValue(NULL, NULL)
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_cxx_try_link "$LINENO"; then :
  11191. gt_cv_func_CFPreferencesCopyAppValue=yes
  11192. else
  11193. gt_cv_func_CFPreferencesCopyAppValue=no
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext \
  11196. conftest$ac_exeext conftest.$ac_ext
  11197. LIBS="$gt_save_LIBS"
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11200. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11201. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11202. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11205. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11206. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11207. $as_echo_n "(cached) " >&6
  11208. else
  11209. gt_save_LIBS="$LIBS"
  11210. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11212. /* end confdefs.h. */
  11213. #include <CoreFoundation/CFLocale.h>
  11214. int
  11215. main ()
  11216. {
  11217. CFLocaleCopyCurrent();
  11218. ;
  11219. return 0;
  11220. }
  11221. _ACEOF
  11222. if ac_fn_cxx_try_link "$LINENO"; then :
  11223. gt_cv_func_CFLocaleCopyCurrent=yes
  11224. else
  11225. gt_cv_func_CFLocaleCopyCurrent=no
  11226. fi
  11227. rm -f core conftest.err conftest.$ac_objext \
  11228. conftest$ac_exeext conftest.$ac_ext
  11229. LIBS="$gt_save_LIBS"
  11230. fi
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11232. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11233. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11234. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11235. fi
  11236. INTL_MACOSX_LIBS=
  11237. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11238. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11239. fi
  11240. BUILD_INCLUDED_LIBINTL=no
  11241. USE_INCLUDED_LIBINTL=no
  11242. LIBINTL=
  11243. LTLIBINTL=
  11244. POSUB=
  11245. case " $gt_needs " in
  11246. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11247. *" need-ngettext "*) gt_api_version=2 ;;
  11248. *) gt_api_version=1 ;;
  11249. esac
  11250. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11251. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11252. if test "$USE_NLS" = "yes"; then
  11253. gt_use_preinstalled_gnugettext=no
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11255. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11256. # Check whether --with-included-gettext was given.
  11257. if test "${with_included_gettext+set}" = set; then :
  11258. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11259. else
  11260. nls_cv_force_use_gnu_gettext=no
  11261. fi
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11263. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11264. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11265. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11266. if test $gt_api_version -ge 3; then
  11267. gt_revision_test_code='
  11268. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11269. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11270. #endif
  11271. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11272. '
  11273. else
  11274. gt_revision_test_code=
  11275. fi
  11276. if test $gt_api_version -ge 2; then
  11277. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11278. else
  11279. gt_expression_test_code=
  11280. fi
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11282. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11283. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11284. $as_echo_n "(cached) " >&6
  11285. else
  11286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11287. /* end confdefs.h. */
  11288. #include <libintl.h>
  11289. $gt_revision_test_code
  11290. extern int _nl_msg_cat_cntr;
  11291. extern int *_nl_domain_bindings;
  11292. int
  11293. main ()
  11294. {
  11295. bindtextdomain ("", "");
  11296. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11297. ;
  11298. return 0;
  11299. }
  11300. _ACEOF
  11301. if ac_fn_cxx_try_link "$LINENO"; then :
  11302. eval "$gt_func_gnugettext_libc=yes"
  11303. else
  11304. eval "$gt_func_gnugettext_libc=no"
  11305. fi
  11306. rm -f core conftest.err conftest.$ac_objext \
  11307. conftest$ac_exeext conftest.$ac_ext
  11308. fi
  11309. eval ac_res=\$$gt_func_gnugettext_libc
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11311. $as_echo "$ac_res" >&6; }
  11312. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11313. use_additional=yes
  11314. acl_save_prefix="$prefix"
  11315. prefix="$acl_final_prefix"
  11316. acl_save_exec_prefix="$exec_prefix"
  11317. exec_prefix="$acl_final_exec_prefix"
  11318. eval additional_includedir=\"$includedir\"
  11319. eval additional_libdir=\"$libdir\"
  11320. exec_prefix="$acl_save_exec_prefix"
  11321. prefix="$acl_save_prefix"
  11322. # Check whether --with-libintl-prefix was given.
  11323. if test "${with_libintl_prefix+set}" = set; then :
  11324. withval=$with_libintl_prefix;
  11325. if test "X$withval" = "Xno"; then
  11326. use_additional=no
  11327. else
  11328. if test "X$withval" = "X"; then
  11329. acl_save_prefix="$prefix"
  11330. prefix="$acl_final_prefix"
  11331. acl_save_exec_prefix="$exec_prefix"
  11332. exec_prefix="$acl_final_exec_prefix"
  11333. eval additional_includedir=\"$includedir\"
  11334. eval additional_libdir=\"$libdir\"
  11335. exec_prefix="$acl_save_exec_prefix"
  11336. prefix="$acl_save_prefix"
  11337. else
  11338. additional_includedir="$withval/include"
  11339. additional_libdir="$withval/$acl_libdirstem"
  11340. fi
  11341. fi
  11342. fi
  11343. LIBINTL=
  11344. LTLIBINTL=
  11345. INCINTL=
  11346. LIBINTL_PREFIX=
  11347. rpathdirs=
  11348. ltrpathdirs=
  11349. names_already_handled=
  11350. names_next_round='intl '
  11351. while test -n "$names_next_round"; do
  11352. names_this_round="$names_next_round"
  11353. names_next_round=
  11354. for name in $names_this_round; do
  11355. already_handled=
  11356. for n in $names_already_handled; do
  11357. if test "$n" = "$name"; then
  11358. already_handled=yes
  11359. break
  11360. fi
  11361. done
  11362. if test -z "$already_handled"; then
  11363. names_already_handled="$names_already_handled $name"
  11364. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11365. eval value=\"\$HAVE_LIB$uppername\"
  11366. if test -n "$value"; then
  11367. if test "$value" = yes; then
  11368. eval value=\"\$LIB$uppername\"
  11369. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11370. eval value=\"\$LTLIB$uppername\"
  11371. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11372. else
  11373. :
  11374. fi
  11375. else
  11376. found_dir=
  11377. found_la=
  11378. found_so=
  11379. found_a=
  11380. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11381. if test -n "$acl_shlibext"; then
  11382. shrext=".$acl_shlibext" # typically: shrext=.so
  11383. else
  11384. shrext=
  11385. fi
  11386. if test $use_additional = yes; then
  11387. dir="$additional_libdir"
  11388. if test -n "$acl_shlibext"; then
  11389. if test -f "$dir/$libname$shrext"; then
  11390. found_dir="$dir"
  11391. found_so="$dir/$libname$shrext"
  11392. else
  11393. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11394. ver=`(cd "$dir" && \
  11395. for f in "$libname$shrext".*; do echo "$f"; done \
  11396. | sed -e "s,^$libname$shrext\\\\.,," \
  11397. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11398. | sed 1q ) 2>/dev/null`
  11399. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11400. found_dir="$dir"
  11401. found_so="$dir/$libname$shrext.$ver"
  11402. fi
  11403. else
  11404. eval library_names=\"$acl_library_names_spec\"
  11405. for f in $library_names; do
  11406. if test -f "$dir/$f"; then
  11407. found_dir="$dir"
  11408. found_so="$dir/$f"
  11409. break
  11410. fi
  11411. done
  11412. fi
  11413. fi
  11414. fi
  11415. if test "X$found_dir" = "X"; then
  11416. if test -f "$dir/$libname.$acl_libext"; then
  11417. found_dir="$dir"
  11418. found_a="$dir/$libname.$acl_libext"
  11419. fi
  11420. fi
  11421. if test "X$found_dir" != "X"; then
  11422. if test -f "$dir/$libname.la"; then
  11423. found_la="$dir/$libname.la"
  11424. fi
  11425. fi
  11426. fi
  11427. if test "X$found_dir" = "X"; then
  11428. for x in $LDFLAGS $LTLIBINTL; do
  11429. acl_save_prefix="$prefix"
  11430. prefix="$acl_final_prefix"
  11431. acl_save_exec_prefix="$exec_prefix"
  11432. exec_prefix="$acl_final_exec_prefix"
  11433. eval x=\"$x\"
  11434. exec_prefix="$acl_save_exec_prefix"
  11435. prefix="$acl_save_prefix"
  11436. case "$x" in
  11437. -L*)
  11438. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11439. if test -n "$acl_shlibext"; then
  11440. if test -f "$dir/$libname$shrext"; then
  11441. found_dir="$dir"
  11442. found_so="$dir/$libname$shrext"
  11443. else
  11444. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11445. ver=`(cd "$dir" && \
  11446. for f in "$libname$shrext".*; do echo "$f"; done \
  11447. | sed -e "s,^$libname$shrext\\\\.,," \
  11448. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11449. | sed 1q ) 2>/dev/null`
  11450. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11451. found_dir="$dir"
  11452. found_so="$dir/$libname$shrext.$ver"
  11453. fi
  11454. else
  11455. eval library_names=\"$acl_library_names_spec\"
  11456. for f in $library_names; do
  11457. if test -f "$dir/$f"; then
  11458. found_dir="$dir"
  11459. found_so="$dir/$f"
  11460. break
  11461. fi
  11462. done
  11463. fi
  11464. fi
  11465. fi
  11466. if test "X$found_dir" = "X"; then
  11467. if test -f "$dir/$libname.$acl_libext"; then
  11468. found_dir="$dir"
  11469. found_a="$dir/$libname.$acl_libext"
  11470. fi
  11471. fi
  11472. if test "X$found_dir" != "X"; then
  11473. if test -f "$dir/$libname.la"; then
  11474. found_la="$dir/$libname.la"
  11475. fi
  11476. fi
  11477. ;;
  11478. esac
  11479. if test "X$found_dir" != "X"; then
  11480. break
  11481. fi
  11482. done
  11483. fi
  11484. if test "X$found_dir" != "X"; then
  11485. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11486. if test "X$found_so" != "X"; then
  11487. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11488. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11489. else
  11490. haveit=
  11491. for x in $ltrpathdirs; do
  11492. if test "X$x" = "X$found_dir"; then
  11493. haveit=yes
  11494. break
  11495. fi
  11496. done
  11497. if test -z "$haveit"; then
  11498. ltrpathdirs="$ltrpathdirs $found_dir"
  11499. fi
  11500. if test "$acl_hardcode_direct" = yes; then
  11501. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11502. else
  11503. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11504. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11505. haveit=
  11506. for x in $rpathdirs; do
  11507. if test "X$x" = "X$found_dir"; then
  11508. haveit=yes
  11509. break
  11510. fi
  11511. done
  11512. if test -z "$haveit"; then
  11513. rpathdirs="$rpathdirs $found_dir"
  11514. fi
  11515. else
  11516. haveit=
  11517. for x in $LDFLAGS $LIBINTL; do
  11518. acl_save_prefix="$prefix"
  11519. prefix="$acl_final_prefix"
  11520. acl_save_exec_prefix="$exec_prefix"
  11521. exec_prefix="$acl_final_exec_prefix"
  11522. eval x=\"$x\"
  11523. exec_prefix="$acl_save_exec_prefix"
  11524. prefix="$acl_save_prefix"
  11525. if test "X$x" = "X-L$found_dir"; then
  11526. haveit=yes
  11527. break
  11528. fi
  11529. done
  11530. if test -z "$haveit"; then
  11531. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11532. fi
  11533. if test "$acl_hardcode_minus_L" != no; then
  11534. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11535. else
  11536. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11537. fi
  11538. fi
  11539. fi
  11540. fi
  11541. else
  11542. if test "X$found_a" != "X"; then
  11543. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11544. else
  11545. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11546. fi
  11547. fi
  11548. additional_includedir=
  11549. case "$found_dir" in
  11550. */$acl_libdirstem | */$acl_libdirstem/)
  11551. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11552. LIBINTL_PREFIX="$basedir"
  11553. additional_includedir="$basedir/include"
  11554. ;;
  11555. esac
  11556. if test "X$additional_includedir" != "X"; then
  11557. if test "X$additional_includedir" != "X/usr/include"; then
  11558. haveit=
  11559. if test "X$additional_includedir" = "X/usr/local/include"; then
  11560. if test -n "$GCC"; then
  11561. case $host_os in
  11562. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11563. esac
  11564. fi
  11565. fi
  11566. if test -z "$haveit"; then
  11567. for x in $CPPFLAGS $INCINTL; do
  11568. acl_save_prefix="$prefix"
  11569. prefix="$acl_final_prefix"
  11570. acl_save_exec_prefix="$exec_prefix"
  11571. exec_prefix="$acl_final_exec_prefix"
  11572. eval x=\"$x\"
  11573. exec_prefix="$acl_save_exec_prefix"
  11574. prefix="$acl_save_prefix"
  11575. if test "X$x" = "X-I$additional_includedir"; then
  11576. haveit=yes
  11577. break
  11578. fi
  11579. done
  11580. if test -z "$haveit"; then
  11581. if test -d "$additional_includedir"; then
  11582. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11583. fi
  11584. fi
  11585. fi
  11586. fi
  11587. fi
  11588. if test -n "$found_la"; then
  11589. save_libdir="$libdir"
  11590. case "$found_la" in
  11591. */* | *\\*) . "$found_la" ;;
  11592. *) . "./$found_la" ;;
  11593. esac
  11594. libdir="$save_libdir"
  11595. for dep in $dependency_libs; do
  11596. case "$dep" in
  11597. -L*)
  11598. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11599. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11600. haveit=
  11601. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11602. if test -n "$GCC"; then
  11603. case $host_os in
  11604. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11605. esac
  11606. fi
  11607. fi
  11608. if test -z "$haveit"; then
  11609. haveit=
  11610. for x in $LDFLAGS $LIBINTL; do
  11611. acl_save_prefix="$prefix"
  11612. prefix="$acl_final_prefix"
  11613. acl_save_exec_prefix="$exec_prefix"
  11614. exec_prefix="$acl_final_exec_prefix"
  11615. eval x=\"$x\"
  11616. exec_prefix="$acl_save_exec_prefix"
  11617. prefix="$acl_save_prefix"
  11618. if test "X$x" = "X-L$additional_libdir"; then
  11619. haveit=yes
  11620. break
  11621. fi
  11622. done
  11623. if test -z "$haveit"; then
  11624. if test -d "$additional_libdir"; then
  11625. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11626. fi
  11627. fi
  11628. haveit=
  11629. for x in $LDFLAGS $LTLIBINTL; do
  11630. acl_save_prefix="$prefix"
  11631. prefix="$acl_final_prefix"
  11632. acl_save_exec_prefix="$exec_prefix"
  11633. exec_prefix="$acl_final_exec_prefix"
  11634. eval x=\"$x\"
  11635. exec_prefix="$acl_save_exec_prefix"
  11636. prefix="$acl_save_prefix"
  11637. if test "X$x" = "X-L$additional_libdir"; then
  11638. haveit=yes
  11639. break
  11640. fi
  11641. done
  11642. if test -z "$haveit"; then
  11643. if test -d "$additional_libdir"; then
  11644. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11645. fi
  11646. fi
  11647. fi
  11648. fi
  11649. ;;
  11650. -R*)
  11651. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11652. if test "$enable_rpath" != no; then
  11653. haveit=
  11654. for x in $rpathdirs; do
  11655. if test "X$x" = "X$dir"; then
  11656. haveit=yes
  11657. break
  11658. fi
  11659. done
  11660. if test -z "$haveit"; then
  11661. rpathdirs="$rpathdirs $dir"
  11662. fi
  11663. haveit=
  11664. for x in $ltrpathdirs; do
  11665. if test "X$x" = "X$dir"; then
  11666. haveit=yes
  11667. break
  11668. fi
  11669. done
  11670. if test -z "$haveit"; then
  11671. ltrpathdirs="$ltrpathdirs $dir"
  11672. fi
  11673. fi
  11674. ;;
  11675. -l*)
  11676. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11677. ;;
  11678. *.la)
  11679. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11680. ;;
  11681. *)
  11682. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11683. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11684. ;;
  11685. esac
  11686. done
  11687. fi
  11688. else
  11689. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11690. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11691. fi
  11692. fi
  11693. fi
  11694. done
  11695. done
  11696. if test "X$rpathdirs" != "X"; then
  11697. if test -n "$acl_hardcode_libdir_separator"; then
  11698. alldirs=
  11699. for found_dir in $rpathdirs; do
  11700. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11701. done
  11702. acl_save_libdir="$libdir"
  11703. libdir="$alldirs"
  11704. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11705. libdir="$acl_save_libdir"
  11706. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11707. else
  11708. for found_dir in $rpathdirs; do
  11709. acl_save_libdir="$libdir"
  11710. libdir="$found_dir"
  11711. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11712. libdir="$acl_save_libdir"
  11713. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11714. done
  11715. fi
  11716. fi
  11717. if test "X$ltrpathdirs" != "X"; then
  11718. for found_dir in $ltrpathdirs; do
  11719. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11720. done
  11721. fi
  11722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11723. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11724. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11725. $as_echo_n "(cached) " >&6
  11726. else
  11727. gt_save_CPPFLAGS="$CPPFLAGS"
  11728. CPPFLAGS="$CPPFLAGS $INCINTL"
  11729. gt_save_LIBS="$LIBS"
  11730. LIBS="$LIBS $LIBINTL"
  11731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11732. /* end confdefs.h. */
  11733. #include <libintl.h>
  11734. $gt_revision_test_code
  11735. extern int _nl_msg_cat_cntr;
  11736. extern
  11737. #ifdef __cplusplus
  11738. "C"
  11739. #endif
  11740. const char *_nl_expand_alias (const char *);
  11741. int
  11742. main ()
  11743. {
  11744. bindtextdomain ("", "");
  11745. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11746. ;
  11747. return 0;
  11748. }
  11749. _ACEOF
  11750. if ac_fn_cxx_try_link "$LINENO"; then :
  11751. eval "$gt_func_gnugettext_libintl=yes"
  11752. else
  11753. eval "$gt_func_gnugettext_libintl=no"
  11754. fi
  11755. rm -f core conftest.err conftest.$ac_objext \
  11756. conftest$ac_exeext conftest.$ac_ext
  11757. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11758. LIBS="$LIBS $LIBICONV"
  11759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11760. /* end confdefs.h. */
  11761. #include <libintl.h>
  11762. $gt_revision_test_code
  11763. extern int _nl_msg_cat_cntr;
  11764. extern
  11765. #ifdef __cplusplus
  11766. "C"
  11767. #endif
  11768. const char *_nl_expand_alias (const char *);
  11769. int
  11770. main ()
  11771. {
  11772. bindtextdomain ("", "");
  11773. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11774. ;
  11775. return 0;
  11776. }
  11777. _ACEOF
  11778. if ac_fn_cxx_try_link "$LINENO"; then :
  11779. LIBINTL="$LIBINTL $LIBICONV"
  11780. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11781. eval "$gt_func_gnugettext_libintl=yes"
  11782. fi
  11783. rm -f core conftest.err conftest.$ac_objext \
  11784. conftest$ac_exeext conftest.$ac_ext
  11785. fi
  11786. CPPFLAGS="$gt_save_CPPFLAGS"
  11787. LIBS="$gt_save_LIBS"
  11788. fi
  11789. eval ac_res=\$$gt_func_gnugettext_libintl
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11791. $as_echo "$ac_res" >&6; }
  11792. fi
  11793. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11794. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11795. && test "$PACKAGE" != gettext-runtime \
  11796. && test "$PACKAGE" != gettext-tools; }; then
  11797. gt_use_preinstalled_gnugettext=yes
  11798. else
  11799. LIBINTL=
  11800. LTLIBINTL=
  11801. INCINTL=
  11802. fi
  11803. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11804. nls_cv_use_gnu_gettext=yes
  11805. fi
  11806. fi
  11807. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11808. BUILD_INCLUDED_LIBINTL=yes
  11809. USE_INCLUDED_LIBINTL=yes
  11810. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11811. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11812. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11813. fi
  11814. CATOBJEXT=
  11815. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11816. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11817. CATOBJEXT=.gmo
  11818. fi
  11819. if test -n "$INTL_MACOSX_LIBS"; then
  11820. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11821. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11822. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11823. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11824. fi
  11825. fi
  11826. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11827. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11828. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11829. else
  11830. USE_NLS=no
  11831. fi
  11832. fi
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11834. $as_echo_n "checking whether to use NLS... " >&6; }
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11836. $as_echo "$USE_NLS" >&6; }
  11837. if test "$USE_NLS" = "yes"; then
  11838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11839. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11840. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11841. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11842. gt_source="external libintl"
  11843. else
  11844. gt_source="libc"
  11845. fi
  11846. else
  11847. gt_source="included intl directory"
  11848. fi
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11850. $as_echo "$gt_source" >&6; }
  11851. fi
  11852. if test "$USE_NLS" = "yes"; then
  11853. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11854. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11856. $as_echo_n "checking how to link with libintl... " >&6; }
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11858. $as_echo "$LIBINTL" >&6; }
  11859. for element in $INCINTL; do
  11860. haveit=
  11861. for x in $CPPFLAGS; do
  11862. acl_save_prefix="$prefix"
  11863. prefix="$acl_final_prefix"
  11864. acl_save_exec_prefix="$exec_prefix"
  11865. exec_prefix="$acl_final_exec_prefix"
  11866. eval x=\"$x\"
  11867. exec_prefix="$acl_save_exec_prefix"
  11868. prefix="$acl_save_prefix"
  11869. if test "X$x" = "X$element"; then
  11870. haveit=yes
  11871. break
  11872. fi
  11873. done
  11874. if test -z "$haveit"; then
  11875. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11876. fi
  11877. done
  11878. fi
  11879. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11880. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11881. fi
  11882. POSUB=po
  11883. fi
  11884. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11885. BUILD_INCLUDED_LIBINTL=yes
  11886. fi
  11887. nls_cv_header_intl=
  11888. nls_cv_header_libgt=
  11889. DATADIRNAME=share
  11890. INSTOBJEXT=.mo
  11891. GENCAT=gencat
  11892. INTLOBJS=
  11893. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11894. INTLOBJS="\$(GETTOBJS)"
  11895. fi
  11896. INTL_LIBTOOL_SUFFIX_PREFIX=
  11897. INTLLIBS="$LIBINTL"
  11898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11899. $as_echo_n "checking for error_at_line... " >&6; }
  11900. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11901. $as_echo_n "(cached) " >&6
  11902. else
  11903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11904. /* end confdefs.h. */
  11905. #include <error.h>
  11906. int
  11907. main ()
  11908. {
  11909. error_at_line (0, 0, "", 0, "an error occurred");
  11910. ;
  11911. return 0;
  11912. }
  11913. _ACEOF
  11914. if ac_fn_cxx_try_link "$LINENO"; then :
  11915. ac_cv_lib_error_at_line=yes
  11916. else
  11917. ac_cv_lib_error_at_line=no
  11918. fi
  11919. rm -f core conftest.err conftest.$ac_objext \
  11920. conftest$ac_exeext conftest.$ac_ext
  11921. fi
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11923. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11924. if test $ac_cv_lib_error_at_line = no; then
  11925. case " $LIBOBJS " in
  11926. *" error.$ac_objext "* ) ;;
  11927. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11928. ;;
  11929. esac
  11930. fi
  11931. if test $ac_cv_c_compiler_gnu = yes; then
  11932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11933. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11934. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11935. $as_echo_n "(cached) " >&6
  11936. else
  11937. ac_pattern="Autoconf.*'x'"
  11938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11939. /* end confdefs.h. */
  11940. #include <sgtty.h>
  11941. Autoconf TIOCGETP
  11942. _ACEOF
  11943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11944. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11945. ac_cv_prog_gcc_traditional=yes
  11946. else
  11947. ac_cv_prog_gcc_traditional=no
  11948. fi
  11949. rm -f conftest*
  11950. if test $ac_cv_prog_gcc_traditional = no; then
  11951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11952. /* end confdefs.h. */
  11953. #include <termio.h>
  11954. Autoconf TCGETA
  11955. _ACEOF
  11956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11957. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11958. ac_cv_prog_gcc_traditional=yes
  11959. fi
  11960. rm -f conftest*
  11961. fi
  11962. fi
  11963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11964. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11965. if test $ac_cv_prog_gcc_traditional = yes; then
  11966. CC="$CC -traditional"
  11967. fi
  11968. fi
  11969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11970. $as_echo_n "checking for working memcmp... " >&6; }
  11971. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11972. $as_echo_n "(cached) " >&6
  11973. else
  11974. if test "$cross_compiling" = yes; then :
  11975. ac_cv_func_memcmp_working=no
  11976. else
  11977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11978. /* end confdefs.h. */
  11979. $ac_includes_default
  11980. int
  11981. main ()
  11982. {
  11983. /* Some versions of memcmp are not 8-bit clean. */
  11984. char c0 = '\100', c1 = '\200', c2 = '\201';
  11985. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11986. return 1;
  11987. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11988. or more and with at least one buffer not starting on a 4-byte boundary.
  11989. William Lewis provided this test program. */
  11990. {
  11991. char foo[21];
  11992. char bar[21];
  11993. int i;
  11994. for (i = 0; i < 4; i++)
  11995. {
  11996. char *a = foo + i;
  11997. char *b = bar + i;
  11998. strcpy (a, "--------01111111");
  11999. strcpy (b, "--------10000000");
  12000. if (memcmp (a, b, 16) >= 0)
  12001. return 1;
  12002. }
  12003. return 0;
  12004. }
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. if ac_fn_cxx_try_run "$LINENO"; then :
  12010. ac_cv_func_memcmp_working=yes
  12011. else
  12012. ac_cv_func_memcmp_working=no
  12013. fi
  12014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12015. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12016. fi
  12017. fi
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12019. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12020. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12021. *" memcmp.$ac_objext "* ) ;;
  12022. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12023. ;;
  12024. esac
  12025. for ac_func in $ac_func_list
  12026. do :
  12027. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12028. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12029. eval as_val=\$$as_ac_var
  12030. if test "x$as_val" = x""yes; then :
  12031. cat >>confdefs.h <<_ACEOF
  12032. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12033. _ACEOF
  12034. fi
  12035. done
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12037. $as_echo_n "checking for working mktime... " >&6; }
  12038. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12039. $as_echo_n "(cached) " >&6
  12040. else
  12041. if test "$cross_compiling" = yes; then :
  12042. ac_cv_func_working_mktime=no
  12043. else
  12044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12045. /* end confdefs.h. */
  12046. /* Test program from Paul Eggert and Tony Leneis. */
  12047. #ifdef TIME_WITH_SYS_TIME
  12048. # include <sys/time.h>
  12049. # include <time.h>
  12050. #else
  12051. # ifdef HAVE_SYS_TIME_H
  12052. # include <sys/time.h>
  12053. # else
  12054. # include <time.h>
  12055. # endif
  12056. #endif
  12057. #include <limits.h>
  12058. #include <stdlib.h>
  12059. #ifdef HAVE_UNISTD_H
  12060. # include <unistd.h>
  12061. #endif
  12062. #ifndef HAVE_ALARM
  12063. # define alarm(X) /* empty */
  12064. #endif
  12065. /* Work around redefinition to rpl_putenv by other config tests. */
  12066. #undef putenv
  12067. static time_t time_t_max;
  12068. static time_t time_t_min;
  12069. /* Values we'll use to set the TZ environment variable. */
  12070. static char *tz_strings[] = {
  12071. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12072. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12073. };
  12074. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12075. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12076. Based on a problem report from Andreas Jaeger. */
  12077. static int
  12078. spring_forward_gap ()
  12079. {
  12080. /* glibc (up to about 1998-10-07) failed this test. */
  12081. struct tm tm;
  12082. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12083. instead of "TZ=America/Vancouver" in order to detect the bug even
  12084. on systems that don't support the Olson extension, or don't have the
  12085. full zoneinfo tables installed. */
  12086. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12087. tm.tm_year = 98;
  12088. tm.tm_mon = 3;
  12089. tm.tm_mday = 5;
  12090. tm.tm_hour = 2;
  12091. tm.tm_min = 0;
  12092. tm.tm_sec = 0;
  12093. tm.tm_isdst = -1;
  12094. return mktime (&tm) != (time_t) -1;
  12095. }
  12096. static int
  12097. mktime_test1 (now)
  12098. time_t now;
  12099. {
  12100. struct tm *lt;
  12101. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12102. }
  12103. static int
  12104. mktime_test (now)
  12105. time_t now;
  12106. {
  12107. return (mktime_test1 (now)
  12108. && mktime_test1 ((time_t) (time_t_max - now))
  12109. && mktime_test1 ((time_t) (time_t_min + now)));
  12110. }
  12111. static int
  12112. irix_6_4_bug ()
  12113. {
  12114. /* Based on code from Ariel Faigon. */
  12115. struct tm tm;
  12116. tm.tm_year = 96;
  12117. tm.tm_mon = 3;
  12118. tm.tm_mday = 0;
  12119. tm.tm_hour = 0;
  12120. tm.tm_min = 0;
  12121. tm.tm_sec = 0;
  12122. tm.tm_isdst = -1;
  12123. mktime (&tm);
  12124. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12125. }
  12126. static int
  12127. bigtime_test (j)
  12128. int j;
  12129. {
  12130. struct tm tm;
  12131. time_t now;
  12132. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12133. now = mktime (&tm);
  12134. if (now != (time_t) -1)
  12135. {
  12136. struct tm *lt = localtime (&now);
  12137. if (! (lt
  12138. && lt->tm_year == tm.tm_year
  12139. && lt->tm_mon == tm.tm_mon
  12140. && lt->tm_mday == tm.tm_mday
  12141. && lt->tm_hour == tm.tm_hour
  12142. && lt->tm_min == tm.tm_min
  12143. && lt->tm_sec == tm.tm_sec
  12144. && lt->tm_yday == tm.tm_yday
  12145. && lt->tm_wday == tm.tm_wday
  12146. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12147. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12148. return 0;
  12149. }
  12150. return 1;
  12151. }
  12152. static int
  12153. year_2050_test ()
  12154. {
  12155. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12156. ignoring leap seconds. */
  12157. unsigned long int answer = 2527315200UL;
  12158. struct tm tm;
  12159. time_t t;
  12160. tm.tm_year = 2050 - 1900;
  12161. tm.tm_mon = 2 - 1;
  12162. tm.tm_mday = 1;
  12163. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12164. tm.tm_isdst = -1;
  12165. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12166. instead of "TZ=America/Vancouver" in order to detect the bug even
  12167. on systems that don't support the Olson extension, or don't have the
  12168. full zoneinfo tables installed. */
  12169. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12170. t = mktime (&tm);
  12171. /* Check that the result is either a failure, or close enough
  12172. to the correct answer that we can assume the discrepancy is
  12173. due to leap seconds. */
  12174. return (t == (time_t) -1
  12175. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12176. }
  12177. int
  12178. main ()
  12179. {
  12180. time_t t, delta;
  12181. int i, j;
  12182. /* This test makes some buggy mktime implementations loop.
  12183. Give up after 60 seconds; a mktime slower than that
  12184. isn't worth using anyway. */
  12185. alarm (60);
  12186. for (;;)
  12187. {
  12188. t = (time_t_max << 1) + 1;
  12189. if (t <= time_t_max)
  12190. break;
  12191. time_t_max = t;
  12192. }
  12193. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12194. delta = time_t_max / 997; /* a suitable prime number */
  12195. for (i = 0; i < N_STRINGS; i++)
  12196. {
  12197. if (tz_strings[i])
  12198. putenv (tz_strings[i]);
  12199. for (t = 0; t <= time_t_max - delta; t += delta)
  12200. if (! mktime_test (t))
  12201. return 1;
  12202. if (! (mktime_test ((time_t) 1)
  12203. && mktime_test ((time_t) (60 * 60))
  12204. && mktime_test ((time_t) (60 * 60 * 24))))
  12205. return 1;
  12206. for (j = 1; ; j <<= 1)
  12207. if (! bigtime_test (j))
  12208. return 1;
  12209. else if (INT_MAX / 2 < j)
  12210. break;
  12211. if (! bigtime_test (INT_MAX))
  12212. return 1;
  12213. }
  12214. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12215. }
  12216. _ACEOF
  12217. if ac_fn_cxx_try_run "$LINENO"; then :
  12218. ac_cv_func_working_mktime=yes
  12219. else
  12220. ac_cv_func_working_mktime=no
  12221. fi
  12222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12223. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12224. fi
  12225. fi
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12227. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12228. if test $ac_cv_func_working_mktime = no; then
  12229. case " $LIBOBJS " in
  12230. *" mktime.$ac_objext "* ) ;;
  12231. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12232. ;;
  12233. esac
  12234. fi
  12235. for ac_func in getpagesize
  12236. do :
  12237. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12238. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12239. cat >>confdefs.h <<_ACEOF
  12240. #define HAVE_GETPAGESIZE 1
  12241. _ACEOF
  12242. fi
  12243. done
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12245. $as_echo_n "checking for working mmap... " >&6; }
  12246. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12247. $as_echo_n "(cached) " >&6
  12248. else
  12249. if test "$cross_compiling" = yes; then :
  12250. ac_cv_func_mmap_fixed_mapped=no
  12251. else
  12252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12253. /* end confdefs.h. */
  12254. $ac_includes_default
  12255. /* malloc might have been renamed as rpl_malloc. */
  12256. #undef malloc
  12257. /* Thanks to Mike Haertel and Jim Avera for this test.
  12258. Here is a matrix of mmap possibilities:
  12259. mmap private not fixed
  12260. mmap private fixed at somewhere currently unmapped
  12261. mmap private fixed at somewhere already mapped
  12262. mmap shared not fixed
  12263. mmap shared fixed at somewhere currently unmapped
  12264. mmap shared fixed at somewhere already mapped
  12265. For private mappings, we should verify that changes cannot be read()
  12266. back from the file, nor mmap's back from the file at a different
  12267. address. (There have been systems where private was not correctly
  12268. implemented like the infamous i386 svr4.0, and systems where the
  12269. VM page cache was not coherent with the file system buffer cache
  12270. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12271. For shared mappings, we should conversely verify that changes get
  12272. propagated back to all the places they're supposed to be.
  12273. Grep wants private fixed already mapped.
  12274. The main things grep needs to know about mmap are:
  12275. * does it exist and is it safe to write into the mmap'd area
  12276. * how to use it (BSD variants) */
  12277. #include <fcntl.h>
  12278. #include <sys/mman.h>
  12279. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12280. char *malloc ();
  12281. #endif
  12282. /* This mess was copied from the GNU getpagesize.h. */
  12283. #ifndef HAVE_GETPAGESIZE
  12284. # ifdef _SC_PAGESIZE
  12285. # define getpagesize() sysconf(_SC_PAGESIZE)
  12286. # else /* no _SC_PAGESIZE */
  12287. # ifdef HAVE_SYS_PARAM_H
  12288. # include <sys/param.h>
  12289. # ifdef EXEC_PAGESIZE
  12290. # define getpagesize() EXEC_PAGESIZE
  12291. # else /* no EXEC_PAGESIZE */
  12292. # ifdef NBPG
  12293. # define getpagesize() NBPG * CLSIZE
  12294. # ifndef CLSIZE
  12295. # define CLSIZE 1
  12296. # endif /* no CLSIZE */
  12297. # else /* no NBPG */
  12298. # ifdef NBPC
  12299. # define getpagesize() NBPC
  12300. # else /* no NBPC */
  12301. # ifdef PAGESIZE
  12302. # define getpagesize() PAGESIZE
  12303. # endif /* PAGESIZE */
  12304. # endif /* no NBPC */
  12305. # endif /* no NBPG */
  12306. # endif /* no EXEC_PAGESIZE */
  12307. # else /* no HAVE_SYS_PARAM_H */
  12308. # define getpagesize() 8192 /* punt totally */
  12309. # endif /* no HAVE_SYS_PARAM_H */
  12310. # endif /* no _SC_PAGESIZE */
  12311. #endif /* no HAVE_GETPAGESIZE */
  12312. int
  12313. main ()
  12314. {
  12315. char *data, *data2, *data3;
  12316. const char *cdata2;
  12317. int i, pagesize;
  12318. int fd, fd2;
  12319. pagesize = getpagesize ();
  12320. /* First, make a file with some known garbage in it. */
  12321. data = (char *) malloc (pagesize);
  12322. if (!data)
  12323. return 1;
  12324. for (i = 0; i < pagesize; ++i)
  12325. *(data + i) = rand ();
  12326. umask (0);
  12327. fd = creat ("conftest.mmap", 0600);
  12328. if (fd < 0)
  12329. return 2;
  12330. if (write (fd, data, pagesize) != pagesize)
  12331. return 3;
  12332. close (fd);
  12333. /* Next, check that the tail of a page is zero-filled. File must have
  12334. non-zero length, otherwise we risk SIGBUS for entire page. */
  12335. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12336. if (fd2 < 0)
  12337. return 4;
  12338. cdata2 = "";
  12339. if (write (fd2, cdata2, 1) != 1)
  12340. return 5;
  12341. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12342. if (data2 == MAP_FAILED)
  12343. return 6;
  12344. for (i = 0; i < pagesize; ++i)
  12345. if (*(data2 + i))
  12346. return 7;
  12347. close (fd2);
  12348. if (munmap (data2, pagesize))
  12349. return 8;
  12350. /* Next, try to mmap the file at a fixed address which already has
  12351. something else allocated at it. If we can, also make sure that
  12352. we see the same garbage. */
  12353. fd = open ("conftest.mmap", O_RDWR);
  12354. if (fd < 0)
  12355. return 9;
  12356. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12357. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12358. return 10;
  12359. for (i = 0; i < pagesize; ++i)
  12360. if (*(data + i) != *(data2 + i))
  12361. return 11;
  12362. /* Finally, make sure that changes to the mapped area do not
  12363. percolate back to the file as seen by read(). (This is a bug on
  12364. some variants of i386 svr4.0.) */
  12365. for (i = 0; i < pagesize; ++i)
  12366. *(data2 + i) = *(data2 + i) + 1;
  12367. data3 = (char *) malloc (pagesize);
  12368. if (!data3)
  12369. return 12;
  12370. if (read (fd, data3, pagesize) != pagesize)
  12371. return 13;
  12372. for (i = 0; i < pagesize; ++i)
  12373. if (*(data + i) != *(data3 + i))
  12374. return 14;
  12375. close (fd);
  12376. return 0;
  12377. }
  12378. _ACEOF
  12379. if ac_fn_cxx_try_run "$LINENO"; then :
  12380. ac_cv_func_mmap_fixed_mapped=yes
  12381. else
  12382. ac_cv_func_mmap_fixed_mapped=no
  12383. fi
  12384. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12385. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12386. fi
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12389. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12390. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12391. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12392. fi
  12393. rm -f conftest.mmap conftest.txt
  12394. for ac_header in sys/select.h sys/socket.h
  12395. do :
  12396. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12397. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12398. eval as_val=\$$as_ac_Header
  12399. if test "x$as_val" = x""yes; then :
  12400. cat >>confdefs.h <<_ACEOF
  12401. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12402. _ACEOF
  12403. fi
  12404. done
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12406. $as_echo_n "checking types of arguments for select... " >&6; }
  12407. if test "${ac_cv_func_select_args+set}" = set; then :
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12411. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12412. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12414. /* end confdefs.h. */
  12415. $ac_includes_default
  12416. #ifdef HAVE_SYS_SELECT_H
  12417. # include <sys/select.h>
  12418. #endif
  12419. #ifdef HAVE_SYS_SOCKET_H
  12420. # include <sys/socket.h>
  12421. #endif
  12422. int
  12423. main ()
  12424. {
  12425. extern int select ($ac_arg1,
  12426. $ac_arg234, $ac_arg234, $ac_arg234,
  12427. $ac_arg5);
  12428. ;
  12429. return 0;
  12430. }
  12431. _ACEOF
  12432. if ac_fn_cxx_try_compile "$LINENO"; then :
  12433. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12434. fi
  12435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12436. done
  12437. done
  12438. done
  12439. # Provide a safe default value.
  12440. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12441. fi
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12443. $as_echo "$ac_cv_func_select_args" >&6; }
  12444. ac_save_IFS=$IFS; IFS=','
  12445. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12446. IFS=$ac_save_IFS
  12447. shift
  12448. cat >>confdefs.h <<_ACEOF
  12449. #define SELECT_TYPE_ARG1 $1
  12450. _ACEOF
  12451. cat >>confdefs.h <<_ACEOF
  12452. #define SELECT_TYPE_ARG234 ($2)
  12453. _ACEOF
  12454. cat >>confdefs.h <<_ACEOF
  12455. #define SELECT_TYPE_ARG5 ($3)
  12456. _ACEOF
  12457. rm -f conftest*
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12459. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12460. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12461. $as_echo_n "(cached) " >&6
  12462. else
  12463. rm -f conftest.sym conftest.file
  12464. echo >conftest.file
  12465. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12466. if test "$cross_compiling" = yes; then :
  12467. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12468. else
  12469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12470. /* end confdefs.h. */
  12471. $ac_includes_default
  12472. int
  12473. main ()
  12474. {
  12475. struct stat sbuf;
  12476. /* Linux will dereference the symlink and fail, as required by POSIX.
  12477. That is better in the sense that it means we will not
  12478. have to compile and use the lstat wrapper. */
  12479. return lstat ("conftest.sym/", &sbuf) == 0;
  12480. ;
  12481. return 0;
  12482. }
  12483. _ACEOF
  12484. if ac_fn_cxx_try_run "$LINENO"; then :
  12485. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12486. else
  12487. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12488. fi
  12489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12491. fi
  12492. else
  12493. # If the `ln -s' command failed, then we probably don't even
  12494. # have an lstat function.
  12495. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12496. fi
  12497. rm -f conftest.sym conftest.file
  12498. fi
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12500. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12501. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12502. cat >>confdefs.h <<_ACEOF
  12503. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12504. _ACEOF
  12505. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12506. case " $LIBOBJS " in
  12507. *" lstat.$ac_objext "* ) ;;
  12508. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12509. ;;
  12510. esac
  12511. fi
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12513. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12514. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12515. $as_echo_n "(cached) " >&6
  12516. else
  12517. if test "$cross_compiling" = yes; then :
  12518. ac_cv_func_stat_empty_string_bug=yes
  12519. else
  12520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12521. /* end confdefs.h. */
  12522. $ac_includes_default
  12523. int
  12524. main ()
  12525. {
  12526. struct stat sbuf;
  12527. return stat ("", &sbuf) == 0;
  12528. ;
  12529. return 0;
  12530. }
  12531. _ACEOF
  12532. if ac_fn_cxx_try_run "$LINENO"; then :
  12533. ac_cv_func_stat_empty_string_bug=no
  12534. else
  12535. ac_cv_func_stat_empty_string_bug=yes
  12536. fi
  12537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12539. fi
  12540. fi
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12542. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12543. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12544. case " $LIBOBJS " in
  12545. *" stat.$ac_objext "* ) ;;
  12546. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12547. ;;
  12548. esac
  12549. cat >>confdefs.h <<_ACEOF
  12550. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12551. _ACEOF
  12552. fi
  12553. for ac_func in strftime
  12554. do :
  12555. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12556. if test "x$ac_cv_func_strftime" = x""yes; then :
  12557. cat >>confdefs.h <<_ACEOF
  12558. #define HAVE_STRFTIME 1
  12559. _ACEOF
  12560. else
  12561. # strftime is in -lintl on SCO UNIX.
  12562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12563. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12564. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12565. $as_echo_n "(cached) " >&6
  12566. else
  12567. ac_check_lib_save_LIBS=$LIBS
  12568. LIBS="-lintl $LIBS"
  12569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12570. /* end confdefs.h. */
  12571. /* Override any GCC internal prototype to avoid an error.
  12572. Use char because int might match the return type of a GCC
  12573. builtin and then its argument prototype would still apply. */
  12574. #ifdef __cplusplus
  12575. extern "C"
  12576. #endif
  12577. char strftime ();
  12578. int
  12579. main ()
  12580. {
  12581. return strftime ();
  12582. ;
  12583. return 0;
  12584. }
  12585. _ACEOF
  12586. if ac_fn_cxx_try_link "$LINENO"; then :
  12587. ac_cv_lib_intl_strftime=yes
  12588. else
  12589. ac_cv_lib_intl_strftime=no
  12590. fi
  12591. rm -f core conftest.err conftest.$ac_objext \
  12592. conftest$ac_exeext conftest.$ac_ext
  12593. LIBS=$ac_check_lib_save_LIBS
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12596. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12597. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12598. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12599. LIBS="-lintl $LIBS"
  12600. fi
  12601. fi
  12602. done
  12603. for ac_func in vprintf
  12604. do :
  12605. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12606. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12607. cat >>confdefs.h <<_ACEOF
  12608. #define HAVE_VPRINTF 1
  12609. _ACEOF
  12610. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12611. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12612. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12613. fi
  12614. fi
  12615. done
  12616. for ac_header in vfork.h
  12617. do :
  12618. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12619. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12620. cat >>confdefs.h <<_ACEOF
  12621. #define HAVE_VFORK_H 1
  12622. _ACEOF
  12623. fi
  12624. done
  12625. for ac_func in fork vfork
  12626. do :
  12627. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12628. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12629. eval as_val=\$$as_ac_var
  12630. if test "x$as_val" = x""yes; then :
  12631. cat >>confdefs.h <<_ACEOF
  12632. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12633. _ACEOF
  12634. fi
  12635. done
  12636. if test "x$ac_cv_func_fork" = xyes; then
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12638. $as_echo_n "checking for working fork... " >&6; }
  12639. if test "${ac_cv_func_fork_works+set}" = set; then :
  12640. $as_echo_n "(cached) " >&6
  12641. else
  12642. if test "$cross_compiling" = yes; then :
  12643. ac_cv_func_fork_works=cross
  12644. else
  12645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12646. /* end confdefs.h. */
  12647. $ac_includes_default
  12648. int
  12649. main ()
  12650. {
  12651. /* By Ruediger Kuhlmann. */
  12652. return fork () < 0;
  12653. ;
  12654. return 0;
  12655. }
  12656. _ACEOF
  12657. if ac_fn_cxx_try_run "$LINENO"; then :
  12658. ac_cv_func_fork_works=yes
  12659. else
  12660. ac_cv_func_fork_works=no
  12661. fi
  12662. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12663. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12664. fi
  12665. fi
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12667. $as_echo "$ac_cv_func_fork_works" >&6; }
  12668. else
  12669. ac_cv_func_fork_works=$ac_cv_func_fork
  12670. fi
  12671. if test "x$ac_cv_func_fork_works" = xcross; then
  12672. case $host in
  12673. *-*-amigaos* | *-*-msdosdjgpp*)
  12674. # Override, as these systems have only a dummy fork() stub
  12675. ac_cv_func_fork_works=no
  12676. ;;
  12677. *)
  12678. ac_cv_func_fork_works=yes
  12679. ;;
  12680. esac
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12682. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12683. fi
  12684. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12685. if test "x$ac_cv_func_vfork" = xyes; then
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12687. $as_echo_n "checking for working vfork... " >&6; }
  12688. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12689. $as_echo_n "(cached) " >&6
  12690. else
  12691. if test "$cross_compiling" = yes; then :
  12692. ac_cv_func_vfork_works=cross
  12693. else
  12694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12695. /* end confdefs.h. */
  12696. /* Thanks to Paul Eggert for this test. */
  12697. $ac_includes_default
  12698. #include <sys/wait.h>
  12699. #ifdef HAVE_VFORK_H
  12700. # include <vfork.h>
  12701. #endif
  12702. /* On some sparc systems, changes by the child to local and incoming
  12703. argument registers are propagated back to the parent. The compiler
  12704. is told about this with #include <vfork.h>, but some compilers
  12705. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12706. static variable whose address is put into a register that is
  12707. clobbered by the vfork. */
  12708. static void
  12709. #ifdef __cplusplus
  12710. sparc_address_test (int arg)
  12711. # else
  12712. sparc_address_test (arg) int arg;
  12713. #endif
  12714. {
  12715. static pid_t child;
  12716. if (!child) {
  12717. child = vfork ();
  12718. if (child < 0) {
  12719. perror ("vfork");
  12720. _exit(2);
  12721. }
  12722. if (!child) {
  12723. arg = getpid();
  12724. write(-1, "", 0);
  12725. _exit (arg);
  12726. }
  12727. }
  12728. }
  12729. int
  12730. main ()
  12731. {
  12732. pid_t parent = getpid ();
  12733. pid_t child;
  12734. sparc_address_test (0);
  12735. child = vfork ();
  12736. if (child == 0) {
  12737. /* Here is another test for sparc vfork register problems. This
  12738. test uses lots of local variables, at least as many local
  12739. variables as main has allocated so far including compiler
  12740. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12741. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12742. reuse the register of parent for one of the local variables,
  12743. since it will think that parent can't possibly be used any more
  12744. in this routine. Assigning to the local variable will thus
  12745. munge parent in the parent process. */
  12746. pid_t
  12747. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12748. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12749. /* Convince the compiler that p..p7 are live; otherwise, it might
  12750. use the same hardware register for all 8 local variables. */
  12751. if (p != p1 || p != p2 || p != p3 || p != p4
  12752. || p != p5 || p != p6 || p != p7)
  12753. _exit(1);
  12754. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12755. from child file descriptors. If the child closes a descriptor
  12756. before it execs or exits, this munges the parent's descriptor
  12757. as well. Test for this by closing stdout in the child. */
  12758. _exit(close(fileno(stdout)) != 0);
  12759. } else {
  12760. int status;
  12761. struct stat st;
  12762. while (wait(&status) != child)
  12763. ;
  12764. return (
  12765. /* Was there some problem with vforking? */
  12766. child < 0
  12767. /* Did the child fail? (This shouldn't happen.) */
  12768. || status
  12769. /* Did the vfork/compiler bug occur? */
  12770. || parent != getpid()
  12771. /* Did the file descriptor bug occur? */
  12772. || fstat(fileno(stdout), &st) != 0
  12773. );
  12774. }
  12775. }
  12776. _ACEOF
  12777. if ac_fn_cxx_try_run "$LINENO"; then :
  12778. ac_cv_func_vfork_works=yes
  12779. else
  12780. ac_cv_func_vfork_works=no
  12781. fi
  12782. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12783. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12784. fi
  12785. fi
  12786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12787. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12788. fi;
  12789. if test "x$ac_cv_func_fork_works" = xcross; then
  12790. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12792. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12793. fi
  12794. if test "x$ac_cv_func_vfork_works" = xyes; then
  12795. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12796. else
  12797. $as_echo "#define vfork fork" >>confdefs.h
  12798. fi
  12799. if test "x$ac_cv_func_fork_works" = xyes; then
  12800. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12801. fi
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12803. $as_echo_n "checking for working strtod... " >&6; }
  12804. if test "${ac_cv_func_strtod+set}" = set; then :
  12805. $as_echo_n "(cached) " >&6
  12806. else
  12807. if test "$cross_compiling" = yes; then :
  12808. ac_cv_func_strtod=no
  12809. else
  12810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12811. /* end confdefs.h. */
  12812. $ac_includes_default
  12813. #ifndef strtod
  12814. double strtod ();
  12815. #endif
  12816. int
  12817. main()
  12818. {
  12819. {
  12820. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12821. char *string = " +69";
  12822. char *term;
  12823. double value;
  12824. value = strtod (string, &term);
  12825. if (value != 69 || term != (string + 4))
  12826. return 1;
  12827. }
  12828. {
  12829. /* Under Solaris 2.4, strtod returns the wrong value for the
  12830. terminating character under some conditions. */
  12831. char *string = "NaN";
  12832. char *term;
  12833. strtod (string, &term);
  12834. if (term != string && *(term - 1) == 0)
  12835. return 1;
  12836. }
  12837. return 0;
  12838. }
  12839. _ACEOF
  12840. if ac_fn_cxx_try_run "$LINENO"; then :
  12841. ac_cv_func_strtod=yes
  12842. else
  12843. ac_cv_func_strtod=no
  12844. fi
  12845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12847. fi
  12848. fi
  12849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12850. $as_echo "$ac_cv_func_strtod" >&6; }
  12851. if test $ac_cv_func_strtod = no; then
  12852. case " $LIBOBJS " in
  12853. *" strtod.$ac_objext "* ) ;;
  12854. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12855. ;;
  12856. esac
  12857. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12858. if test "x$ac_cv_func_pow" = x""yes; then :
  12859. fi
  12860. if test $ac_cv_func_pow = no; then
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12862. $as_echo_n "checking for pow in -lm... " >&6; }
  12863. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12864. $as_echo_n "(cached) " >&6
  12865. else
  12866. ac_check_lib_save_LIBS=$LIBS
  12867. LIBS="-lm $LIBS"
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. /* Override any GCC internal prototype to avoid an error.
  12871. Use char because int might match the return type of a GCC
  12872. builtin and then its argument prototype would still apply. */
  12873. #ifdef __cplusplus
  12874. extern "C"
  12875. #endif
  12876. char pow ();
  12877. int
  12878. main ()
  12879. {
  12880. return pow ();
  12881. ;
  12882. return 0;
  12883. }
  12884. _ACEOF
  12885. if ac_fn_cxx_try_link "$LINENO"; then :
  12886. ac_cv_lib_m_pow=yes
  12887. else
  12888. ac_cv_lib_m_pow=no
  12889. fi
  12890. rm -f core conftest.err conftest.$ac_objext \
  12891. conftest$ac_exeext conftest.$ac_ext
  12892. LIBS=$ac_check_lib_save_LIBS
  12893. fi
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12895. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12896. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12897. POW_LIB=-lm
  12898. else
  12899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12900. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12901. fi
  12902. fi
  12903. fi
  12904. for ac_func in __argz_count \
  12905. __argz_next \
  12906. __argz_stringify \
  12907. atexit \
  12908. ftruncate \
  12909. getcwd \
  12910. gethostbyaddr \
  12911. gethostbyname \
  12912. getifaddrs \
  12913. getpagesize \
  12914. inet_ntoa \
  12915. memchr \
  12916. memmove \
  12917. mempcpy \
  12918. memset \
  12919. mkdir \
  12920. munmap \
  12921. nl_langinfo \
  12922. posix_memalign \
  12923. pow \
  12924. putenv \
  12925. rmdir \
  12926. select \
  12927. setlocale \
  12928. sleep \
  12929. socket \
  12930. stpcpy \
  12931. strcasecmp \
  12932. strchr \
  12933. strcspn \
  12934. strdup \
  12935. strerror \
  12936. strncasecmp \
  12937. strstr \
  12938. strtol \
  12939. strtoul \
  12940. strtoull \
  12941. tzset \
  12942. unsetenv \
  12943. usleep \
  12944. utime
  12945. do :
  12946. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12947. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12948. eval as_val=\$$as_ac_var
  12949. if test "x$as_val" = x""yes; then :
  12950. cat >>confdefs.h <<_ACEOF
  12951. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12952. _ACEOF
  12953. fi
  12954. done
  12955. if test "x$enable_epoll" = "xyes"; then
  12956. for ac_func in epoll_create
  12957. do :
  12958. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12959. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12960. cat >>confdefs.h <<_ACEOF
  12961. #define HAVE_EPOLL_CREATE 1
  12962. _ACEOF
  12963. have_epoll=yes
  12964. fi
  12965. done
  12966. if test "x$have_epoll" = "xyes"; then
  12967. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12968. fi
  12969. fi
  12970. if test "x$have_epoll" = "xyes"; then
  12971. HAVE_EPOLL_TRUE=
  12972. HAVE_EPOLL_FALSE='#'
  12973. else
  12974. HAVE_EPOLL_TRUE='#'
  12975. HAVE_EPOLL_FALSE=
  12976. fi
  12977. for ac_func in posix_fallocate
  12978. do :
  12979. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12980. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12981. cat >>confdefs.h <<_ACEOF
  12982. #define HAVE_POSIX_FALLOCATE 1
  12983. _ACEOF
  12984. have_posix_fallocate=yes
  12985. fi
  12986. done
  12987. if test "x$have_posix_fallocate" = "xyes"; then
  12988. HAVE_POSIX_FALLOCATE_TRUE=
  12989. HAVE_POSIX_FALLOCATE_FALSE='#'
  12990. else
  12991. HAVE_POSIX_FALLOCATE_TRUE='#'
  12992. HAVE_POSIX_FALLOCATE_FALSE=
  12993. fi
  12994. for ac_func in asctime_r
  12995. do :
  12996. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12997. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12998. cat >>confdefs.h <<_ACEOF
  12999. #define HAVE_ASCTIME_R 1
  13000. _ACEOF
  13001. if true; then
  13002. HAVE_ASCTIME_R_TRUE=
  13003. HAVE_ASCTIME_R_FALSE='#'
  13004. else
  13005. HAVE_ASCTIME_R_TRUE='#'
  13006. HAVE_ASCTIME_R_FALSE=
  13007. fi
  13008. else
  13009. if false; then
  13010. HAVE_ASCTIME_R_TRUE=
  13011. HAVE_ASCTIME_R_FALSE='#'
  13012. else
  13013. HAVE_ASCTIME_R_TRUE='#'
  13014. HAVE_ASCTIME_R_FALSE=
  13015. fi
  13016. fi
  13017. done
  13018. for ac_func in basename
  13019. do :
  13020. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13021. if test "x$ac_cv_func_basename" = x""yes; then :
  13022. cat >>confdefs.h <<_ACEOF
  13023. #define HAVE_BASENAME 1
  13024. _ACEOF
  13025. if true; then
  13026. HAVE_BASENAME_TRUE=
  13027. HAVE_BASENAME_FALSE='#'
  13028. else
  13029. HAVE_BASENAME_TRUE='#'
  13030. HAVE_BASENAME_FALSE=
  13031. fi
  13032. else
  13033. if false; then
  13034. HAVE_BASENAME_TRUE=
  13035. HAVE_BASENAME_FALSE='#'
  13036. else
  13037. HAVE_BASENAME_TRUE='#'
  13038. HAVE_BASENAME_FALSE=
  13039. fi
  13040. fi
  13041. done
  13042. for ac_func in gai_strerror
  13043. do :
  13044. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13045. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13046. cat >>confdefs.h <<_ACEOF
  13047. #define HAVE_GAI_STRERROR 1
  13048. _ACEOF
  13049. if true; then
  13050. HAVE_GAI_STRERROR_TRUE=
  13051. HAVE_GAI_STRERROR_FALSE='#'
  13052. else
  13053. HAVE_GAI_STRERROR_TRUE='#'
  13054. HAVE_GAI_STRERROR_FALSE=
  13055. fi
  13056. else
  13057. if false; then
  13058. HAVE_GAI_STRERROR_TRUE=
  13059. HAVE_GAI_STRERROR_FALSE='#'
  13060. else
  13061. HAVE_GAI_STRERROR_TRUE='#'
  13062. HAVE_GAI_STRERROR_FALSE=
  13063. fi
  13064. fi
  13065. done
  13066. for ac_func in getaddrinfo
  13067. do :
  13068. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13069. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13070. cat >>confdefs.h <<_ACEOF
  13071. #define HAVE_GETADDRINFO 1
  13072. _ACEOF
  13073. if true; then
  13074. HAVE_GETADDRINFO_TRUE=
  13075. HAVE_GETADDRINFO_FALSE='#'
  13076. else
  13077. HAVE_GETADDRINFO_TRUE='#'
  13078. HAVE_GETADDRINFO_FALSE=
  13079. fi
  13080. else
  13081. if false; then
  13082. HAVE_GETADDRINFO_TRUE=
  13083. HAVE_GETADDRINFO_FALSE='#'
  13084. else
  13085. HAVE_GETADDRINFO_TRUE='#'
  13086. HAVE_GETADDRINFO_FALSE=
  13087. fi
  13088. fi
  13089. done
  13090. for ac_func in gettimeofday
  13091. do :
  13092. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13093. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13094. cat >>confdefs.h <<_ACEOF
  13095. #define HAVE_GETTIMEOFDAY 1
  13096. _ACEOF
  13097. if true; then
  13098. HAVE_GETTIMEOFDAY_TRUE=
  13099. HAVE_GETTIMEOFDAY_FALSE='#'
  13100. else
  13101. HAVE_GETTIMEOFDAY_TRUE='#'
  13102. HAVE_GETTIMEOFDAY_FALSE=
  13103. fi
  13104. else
  13105. if false; then
  13106. HAVE_GETTIMEOFDAY_TRUE=
  13107. HAVE_GETTIMEOFDAY_FALSE='#'
  13108. else
  13109. HAVE_GETTIMEOFDAY_TRUE='#'
  13110. HAVE_GETTIMEOFDAY_FALSE=
  13111. fi
  13112. fi
  13113. done
  13114. for ac_func in inet_aton
  13115. do :
  13116. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13117. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13118. cat >>confdefs.h <<_ACEOF
  13119. #define HAVE_INET_ATON 1
  13120. _ACEOF
  13121. if true; then
  13122. HAVE_INET_ATON_TRUE=
  13123. HAVE_INET_ATON_FALSE='#'
  13124. else
  13125. HAVE_INET_ATON_TRUE='#'
  13126. HAVE_INET_ATON_FALSE=
  13127. fi
  13128. else
  13129. if false; then
  13130. HAVE_INET_ATON_TRUE=
  13131. HAVE_INET_ATON_FALSE='#'
  13132. else
  13133. HAVE_INET_ATON_TRUE='#'
  13134. HAVE_INET_ATON_FALSE=
  13135. fi
  13136. fi
  13137. done
  13138. for ac_func in localtime_r
  13139. do :
  13140. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13141. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13142. cat >>confdefs.h <<_ACEOF
  13143. #define HAVE_LOCALTIME_R 1
  13144. _ACEOF
  13145. if true; then
  13146. HAVE_LOCALTIME_R_TRUE=
  13147. HAVE_LOCALTIME_R_FALSE='#'
  13148. else
  13149. HAVE_LOCALTIME_R_TRUE='#'
  13150. HAVE_LOCALTIME_R_FALSE=
  13151. fi
  13152. else
  13153. if false; then
  13154. HAVE_LOCALTIME_R_TRUE=
  13155. HAVE_LOCALTIME_R_FALSE='#'
  13156. else
  13157. HAVE_LOCALTIME_R_TRUE='#'
  13158. HAVE_LOCALTIME_R_FALSE=
  13159. fi
  13160. fi
  13161. done
  13162. for ac_func in strptime
  13163. do :
  13164. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13165. if test "x$ac_cv_func_strptime" = x""yes; then :
  13166. cat >>confdefs.h <<_ACEOF
  13167. #define HAVE_STRPTIME 1
  13168. _ACEOF
  13169. if true; then
  13170. HAVE_STRPTIME_TRUE=
  13171. HAVE_STRPTIME_FALSE='#'
  13172. else
  13173. HAVE_STRPTIME_TRUE='#'
  13174. HAVE_STRPTIME_FALSE=
  13175. fi
  13176. else
  13177. if false; then
  13178. HAVE_STRPTIME_TRUE=
  13179. HAVE_STRPTIME_FALSE='#'
  13180. else
  13181. HAVE_STRPTIME_TRUE='#'
  13182. HAVE_STRPTIME_FALSE=
  13183. fi
  13184. fi
  13185. done
  13186. for ac_func in timegm
  13187. do :
  13188. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13189. if test "x$ac_cv_func_timegm" = x""yes; then :
  13190. cat >>confdefs.h <<_ACEOF
  13191. #define HAVE_TIMEGM 1
  13192. _ACEOF
  13193. if true; then
  13194. HAVE_TIMEGM_TRUE=
  13195. HAVE_TIMEGM_FALSE='#'
  13196. else
  13197. HAVE_TIMEGM_TRUE='#'
  13198. HAVE_TIMEGM_FALSE=
  13199. fi
  13200. else
  13201. if false; then
  13202. HAVE_TIMEGM_TRUE=
  13203. HAVE_TIMEGM_FALSE='#'
  13204. else
  13205. HAVE_TIMEGM_TRUE='#'
  13206. HAVE_TIMEGM_FALSE=
  13207. fi
  13208. fi
  13209. done
  13210. for ac_func in daemon
  13211. do :
  13212. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13213. if test "x$ac_cv_func_daemon" = x""yes; then :
  13214. cat >>confdefs.h <<_ACEOF
  13215. #define HAVE_DAEMON 1
  13216. _ACEOF
  13217. have_daemon=yes
  13218. fi
  13219. done
  13220. if test "x$have_daemon" = "xyes"; then
  13221. HAVE_DAEMON_TRUE=
  13222. HAVE_DAEMON_FALSE='#'
  13223. else
  13224. HAVE_DAEMON_TRUE='#'
  13225. HAVE_DAEMON_FALSE=
  13226. fi
  13227. for ac_func in clock_gettime
  13228. do :
  13229. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13230. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13231. cat >>confdefs.h <<_ACEOF
  13232. #define HAVE_CLOCK_GETTIME 1
  13233. _ACEOF
  13234. have_clock_gettime=yes
  13235. fi
  13236. done
  13237. if test "x$have_clock_gettime" != "xyes"; then
  13238. for ac_func in mach_absolute_time
  13239. do :
  13240. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13241. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13242. cat >>confdefs.h <<_ACEOF
  13243. #define HAVE_MACH_ABSOLUTE_TIME 1
  13244. _ACEOF
  13245. have_mach_absolute_time=yes
  13246. fi
  13247. done
  13248. fi
  13249. if test "x$have_mach_absolute_time" = "xyes"; then
  13250. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13251. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13252. else
  13253. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13254. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13255. fi
  13256. case "$target" in
  13257. *mingw*)
  13258. if true; then
  13259. HAVE_GETADDRINFO_TRUE=
  13260. HAVE_GETADDRINFO_FALSE='#'
  13261. else
  13262. HAVE_GETADDRINFO_TRUE='#'
  13263. HAVE_GETADDRINFO_FALSE=
  13264. fi
  13265. if false; then
  13266. HAVE_GAI_STRERROR_TRUE=
  13267. HAVE_GAI_STRERROR_FALSE='#'
  13268. else
  13269. HAVE_GAI_STRERROR_TRUE='#'
  13270. HAVE_GAI_STRERROR_FALSE=
  13271. fi
  13272. if test "x$have_clock_gettime" != "xyes"; then
  13273. if true; then
  13274. HAVE_TIMEGETTIME_TRUE=
  13275. HAVE_TIMEGETTIME_FALSE='#'
  13276. else
  13277. HAVE_TIMEGETTIME_TRUE='#'
  13278. HAVE_TIMEGETTIME_FALSE=
  13279. fi
  13280. fi
  13281. ;;
  13282. *)
  13283. if false; then
  13284. HAVE_TIMEGETTIME_TRUE=
  13285. HAVE_TIMEGETTIME_FALSE='#'
  13286. else
  13287. HAVE_TIMEGETTIME_TRUE='#'
  13288. HAVE_TIMEGETTIME_FALSE=
  13289. fi
  13290. ;;
  13291. esac
  13292. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13293. "
  13294. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13295. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13296. fi
  13297. # Check struct option.name is assignable from const char*. struct
  13298. # option.name in opensolaris is of type char*. In Linux, it is const
  13299. # char*
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13301. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13303. /* end confdefs.h. */
  13304. #include <unistd.h>
  13305. #include <getopt.h>
  13306. int
  13307. main ()
  13308. {
  13309. const char* s = "const char";
  13310. option op;
  13311. op.name = s;
  13312. ;
  13313. return 0;
  13314. }
  13315. _ACEOF
  13316. if ac_fn_cxx_try_compile "$LINENO"; then :
  13317. have_option_const_name=yes
  13318. else
  13319. have_option_const_name=no
  13320. fi
  13321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13323. $as_echo "$have_option_const_name" >&6; }
  13324. if test "x$have_option_const_name" = "xyes"; then
  13325. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13326. fi
  13327. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13328. cat >confcache <<\_ACEOF
  13329. # This file is a shell script that caches the results of configure
  13330. # tests run on this system so they can be shared between configure
  13331. # scripts and configure runs, see configure's option --config-cache.
  13332. # It is not useful on other systems. If it contains results you don't
  13333. # want to keep, you may remove or edit it.
  13334. #
  13335. # config.status only pays attention to the cache file if you give it
  13336. # the --recheck option to rerun configure.
  13337. #
  13338. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13339. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13340. # following values.
  13341. _ACEOF
  13342. # The following way of writing the cache mishandles newlines in values,
  13343. # but we know of no workaround that is simple, portable, and efficient.
  13344. # So, we kill variables containing newlines.
  13345. # Ultrix sh set writes to stderr and can't be redirected directly,
  13346. # and sets the high bit in the cache file unless we assign to the vars.
  13347. (
  13348. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13349. eval ac_val=\$$ac_var
  13350. case $ac_val in #(
  13351. *${as_nl}*)
  13352. case $ac_var in #(
  13353. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13354. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13355. esac
  13356. case $ac_var in #(
  13357. _ | IFS | as_nl) ;; #(
  13358. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13359. *) { eval $ac_var=; unset $ac_var;} ;;
  13360. esac ;;
  13361. esac
  13362. done
  13363. (set) 2>&1 |
  13364. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13365. *${as_nl}ac_space=\ *)
  13366. # `set' does not quote correctly, so add quotes: double-quote
  13367. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13368. sed -n \
  13369. "s/'/'\\\\''/g;
  13370. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13371. ;; #(
  13372. *)
  13373. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13374. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13375. ;;
  13376. esac |
  13377. sort
  13378. ) |
  13379. sed '
  13380. /^ac_cv_env_/b end
  13381. t clear
  13382. :clear
  13383. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13384. t end
  13385. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13386. :end' >>confcache
  13387. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13388. if test -w "$cache_file"; then
  13389. test "x$cache_file" != "x/dev/null" &&
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13391. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13392. cat confcache >$cache_file
  13393. else
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13395. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13396. fi
  13397. fi
  13398. rm -f confcache
  13399. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13400. # Let make expand exec_prefix.
  13401. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13402. DEFS=-DHAVE_CONFIG_H
  13403. ac_libobjs=
  13404. ac_ltlibobjs=
  13405. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13406. # 1. Remove the extension, and $U if already installed.
  13407. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13408. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13409. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13410. # will be set to the directory where LIBOBJS objects are built.
  13411. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13412. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13413. done
  13414. LIBOBJS=$ac_libobjs
  13415. LTLIBOBJS=$ac_ltlibobjs
  13416. if test -n "$EXEEXT"; then
  13417. am__EXEEXT_TRUE=
  13418. am__EXEEXT_FALSE='#'
  13419. else
  13420. am__EXEEXT_TRUE='#'
  13421. am__EXEEXT_FALSE=
  13422. fi
  13423. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13424. as_fn_error "conditional \"AMDEP\" was never defined.
  13425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13426. fi
  13427. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13428. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13430. fi
  13431. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13432. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13434. fi
  13435. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13436. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13438. fi
  13439. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13440. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13442. fi
  13443. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13444. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13446. fi
  13447. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13448. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13450. fi
  13451. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13452. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13454. fi
  13455. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13456. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13458. fi
  13459. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13460. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13462. fi
  13463. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13464. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13466. fi
  13467. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13468. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13470. fi
  13471. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13472. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13474. fi
  13475. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13476. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13478. fi
  13479. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13480. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13482. fi
  13483. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13484. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13486. fi
  13487. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13488. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13490. fi
  13491. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13492. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13494. fi
  13495. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13496. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13498. fi
  13499. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13500. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13502. fi
  13503. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13504. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13506. fi
  13507. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13508. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13510. fi
  13511. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13512. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13514. fi
  13515. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13516. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13520. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13524. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13528. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13532. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13536. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13538. fi
  13539. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13540. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13542. fi
  13543. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13544. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13546. fi
  13547. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13548. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13550. fi
  13551. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13552. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13554. fi
  13555. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13556. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13558. fi
  13559. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13560. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13562. fi
  13563. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13564. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13566. fi
  13567. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13568. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13572. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13576. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13580. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13584. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13588. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13592. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13596. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13600. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13604. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13608. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13612. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. : ${CONFIG_STATUS=./config.status}
  13616. ac_write_fail=0
  13617. ac_clean_files_save=$ac_clean_files
  13618. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13620. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13621. as_write_fail=0
  13622. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13623. #! $SHELL
  13624. # Generated by $as_me.
  13625. # Run this file to recreate the current configuration.
  13626. # Compiler output produced by configure, useful for debugging
  13627. # configure, is in config.log if it exists.
  13628. debug=false
  13629. ac_cs_recheck=false
  13630. ac_cs_silent=false
  13631. SHELL=\${CONFIG_SHELL-$SHELL}
  13632. export SHELL
  13633. _ASEOF
  13634. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13635. ## -------------------- ##
  13636. ## M4sh Initialization. ##
  13637. ## -------------------- ##
  13638. # Be more Bourne compatible
  13639. DUALCASE=1; export DUALCASE # for MKS sh
  13640. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13641. emulate sh
  13642. NULLCMD=:
  13643. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13644. # is contrary to our usage. Disable this feature.
  13645. alias -g '${1+"$@"}'='"$@"'
  13646. setopt NO_GLOB_SUBST
  13647. else
  13648. case `(set -o) 2>/dev/null` in #(
  13649. *posix*) :
  13650. set -o posix ;; #(
  13651. *) :
  13652. ;;
  13653. esac
  13654. fi
  13655. as_nl='
  13656. '
  13657. export as_nl
  13658. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13659. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13660. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13661. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13662. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13663. # but without wasting forks for bash or zsh.
  13664. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13665. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13666. as_echo='print -r --'
  13667. as_echo_n='print -rn --'
  13668. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13669. as_echo='printf %s\n'
  13670. as_echo_n='printf %s'
  13671. else
  13672. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13673. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13674. as_echo_n='/usr/ucb/echo -n'
  13675. else
  13676. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13677. as_echo_n_body='eval
  13678. arg=$1;
  13679. case $arg in #(
  13680. *"$as_nl"*)
  13681. expr "X$arg" : "X\\(.*\\)$as_nl";
  13682. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13683. esac;
  13684. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13685. '
  13686. export as_echo_n_body
  13687. as_echo_n='sh -c $as_echo_n_body as_echo'
  13688. fi
  13689. export as_echo_body
  13690. as_echo='sh -c $as_echo_body as_echo'
  13691. fi
  13692. # The user is always right.
  13693. if test "${PATH_SEPARATOR+set}" != set; then
  13694. PATH_SEPARATOR=:
  13695. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13696. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13697. PATH_SEPARATOR=';'
  13698. }
  13699. fi
  13700. # IFS
  13701. # We need space, tab and new line, in precisely that order. Quoting is
  13702. # there to prevent editors from complaining about space-tab.
  13703. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13704. # splitting by setting IFS to empty value.)
  13705. IFS=" "" $as_nl"
  13706. # Find who we are. Look in the path if we contain no directory separator.
  13707. case $0 in #((
  13708. *[\\/]* ) as_myself=$0 ;;
  13709. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13710. for as_dir in $PATH
  13711. do
  13712. IFS=$as_save_IFS
  13713. test -z "$as_dir" && as_dir=.
  13714. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13715. done
  13716. IFS=$as_save_IFS
  13717. ;;
  13718. esac
  13719. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13720. # in which case we are not to be found in the path.
  13721. if test "x$as_myself" = x; then
  13722. as_myself=$0
  13723. fi
  13724. if test ! -f "$as_myself"; then
  13725. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13726. exit 1
  13727. fi
  13728. # Unset variables that we do not need and which cause bugs (e.g. in
  13729. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13730. # suppresses any "Segmentation fault" message there. '((' could
  13731. # trigger a bug in pdksh 5.2.14.
  13732. for as_var in BASH_ENV ENV MAIL MAILPATH
  13733. do eval test x\${$as_var+set} = xset \
  13734. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13735. done
  13736. PS1='$ '
  13737. PS2='> '
  13738. PS4='+ '
  13739. # NLS nuisances.
  13740. LC_ALL=C
  13741. export LC_ALL
  13742. LANGUAGE=C
  13743. export LANGUAGE
  13744. # CDPATH.
  13745. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13746. # as_fn_error ERROR [LINENO LOG_FD]
  13747. # ---------------------------------
  13748. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13749. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13750. # script with status $?, using 1 if that was 0.
  13751. as_fn_error ()
  13752. {
  13753. as_status=$?; test $as_status -eq 0 && as_status=1
  13754. if test "$3"; then
  13755. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13756. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13757. fi
  13758. $as_echo "$as_me: error: $1" >&2
  13759. as_fn_exit $as_status
  13760. } # as_fn_error
  13761. # as_fn_set_status STATUS
  13762. # -----------------------
  13763. # Set $? to STATUS, without forking.
  13764. as_fn_set_status ()
  13765. {
  13766. return $1
  13767. } # as_fn_set_status
  13768. # as_fn_exit STATUS
  13769. # -----------------
  13770. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13771. as_fn_exit ()
  13772. {
  13773. set +e
  13774. as_fn_set_status $1
  13775. exit $1
  13776. } # as_fn_exit
  13777. # as_fn_unset VAR
  13778. # ---------------
  13779. # Portably unset VAR.
  13780. as_fn_unset ()
  13781. {
  13782. { eval $1=; unset $1;}
  13783. }
  13784. as_unset=as_fn_unset
  13785. # as_fn_append VAR VALUE
  13786. # ----------------------
  13787. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13788. # advantage of any shell optimizations that allow amortized linear growth over
  13789. # repeated appends, instead of the typical quadratic growth present in naive
  13790. # implementations.
  13791. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13792. eval 'as_fn_append ()
  13793. {
  13794. eval $1+=\$2
  13795. }'
  13796. else
  13797. as_fn_append ()
  13798. {
  13799. eval $1=\$$1\$2
  13800. }
  13801. fi # as_fn_append
  13802. # as_fn_arith ARG...
  13803. # ------------------
  13804. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13805. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13806. # must be portable across $(()) and expr.
  13807. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13808. eval 'as_fn_arith ()
  13809. {
  13810. as_val=$(( $* ))
  13811. }'
  13812. else
  13813. as_fn_arith ()
  13814. {
  13815. as_val=`expr "$@" || test $? -eq 1`
  13816. }
  13817. fi # as_fn_arith
  13818. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13819. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13820. as_expr=expr
  13821. else
  13822. as_expr=false
  13823. fi
  13824. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13825. as_basename=basename
  13826. else
  13827. as_basename=false
  13828. fi
  13829. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13830. as_dirname=dirname
  13831. else
  13832. as_dirname=false
  13833. fi
  13834. as_me=`$as_basename -- "$0" ||
  13835. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13836. X"$0" : 'X\(//\)$' \| \
  13837. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13838. $as_echo X/"$0" |
  13839. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13840. s//\1/
  13841. q
  13842. }
  13843. /^X\/\(\/\/\)$/{
  13844. s//\1/
  13845. q
  13846. }
  13847. /^X\/\(\/\).*/{
  13848. s//\1/
  13849. q
  13850. }
  13851. s/.*/./; q'`
  13852. # Avoid depending upon Character Ranges.
  13853. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13854. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13855. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13856. as_cr_digits='0123456789'
  13857. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13858. ECHO_C= ECHO_N= ECHO_T=
  13859. case `echo -n x` in #(((((
  13860. -n*)
  13861. case `echo 'xy\c'` in
  13862. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13863. xy) ECHO_C='\c';;
  13864. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13865. ECHO_T=' ';;
  13866. esac;;
  13867. *)
  13868. ECHO_N='-n';;
  13869. esac
  13870. rm -f conf$$ conf$$.exe conf$$.file
  13871. if test -d conf$$.dir; then
  13872. rm -f conf$$.dir/conf$$.file
  13873. else
  13874. rm -f conf$$.dir
  13875. mkdir conf$$.dir 2>/dev/null
  13876. fi
  13877. if (echo >conf$$.file) 2>/dev/null; then
  13878. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13879. as_ln_s='ln -s'
  13880. # ... but there are two gotchas:
  13881. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13882. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13883. # In both cases, we have to default to `cp -p'.
  13884. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13885. as_ln_s='cp -p'
  13886. elif ln conf$$.file conf$$ 2>/dev/null; then
  13887. as_ln_s=ln
  13888. else
  13889. as_ln_s='cp -p'
  13890. fi
  13891. else
  13892. as_ln_s='cp -p'
  13893. fi
  13894. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13895. rmdir conf$$.dir 2>/dev/null
  13896. # as_fn_mkdir_p
  13897. # -------------
  13898. # Create "$as_dir" as a directory, including parents if necessary.
  13899. as_fn_mkdir_p ()
  13900. {
  13901. case $as_dir in #(
  13902. -*) as_dir=./$as_dir;;
  13903. esac
  13904. test -d "$as_dir" || eval $as_mkdir_p || {
  13905. as_dirs=
  13906. while :; do
  13907. case $as_dir in #(
  13908. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13909. *) as_qdir=$as_dir;;
  13910. esac
  13911. as_dirs="'$as_qdir' $as_dirs"
  13912. as_dir=`$as_dirname -- "$as_dir" ||
  13913. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13914. X"$as_dir" : 'X\(//\)[^/]' \| \
  13915. X"$as_dir" : 'X\(//\)$' \| \
  13916. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13917. $as_echo X"$as_dir" |
  13918. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13919. s//\1/
  13920. q
  13921. }
  13922. /^X\(\/\/\)[^/].*/{
  13923. s//\1/
  13924. q
  13925. }
  13926. /^X\(\/\/\)$/{
  13927. s//\1/
  13928. q
  13929. }
  13930. /^X\(\/\).*/{
  13931. s//\1/
  13932. q
  13933. }
  13934. s/.*/./; q'`
  13935. test -d "$as_dir" && break
  13936. done
  13937. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13938. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13939. } # as_fn_mkdir_p
  13940. if mkdir -p . 2>/dev/null; then
  13941. as_mkdir_p='mkdir -p "$as_dir"'
  13942. else
  13943. test -d ./-p && rmdir ./-p
  13944. as_mkdir_p=false
  13945. fi
  13946. if test -x / >/dev/null 2>&1; then
  13947. as_test_x='test -x'
  13948. else
  13949. if ls -dL / >/dev/null 2>&1; then
  13950. as_ls_L_option=L
  13951. else
  13952. as_ls_L_option=
  13953. fi
  13954. as_test_x='
  13955. eval sh -c '\''
  13956. if test -d "$1"; then
  13957. test -d "$1/.";
  13958. else
  13959. case $1 in #(
  13960. -*)set "./$1";;
  13961. esac;
  13962. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13963. ???[sx]*):;;*)false;;esac;fi
  13964. '\'' sh
  13965. '
  13966. fi
  13967. as_executable_p=$as_test_x
  13968. # Sed expression to map a string onto a valid CPP name.
  13969. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13970. # Sed expression to map a string onto a valid variable name.
  13971. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13972. exec 6>&1
  13973. ## ----------------------------------- ##
  13974. ## Main body of $CONFIG_STATUS script. ##
  13975. ## ----------------------------------- ##
  13976. _ASEOF
  13977. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13978. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13979. # Save the log message, to keep $0 and so on meaningful, and to
  13980. # report actual input values of CONFIG_FILES etc. instead of their
  13981. # values after options handling.
  13982. ac_log="
  13983. This file was extended by aria2 $as_me 1.9.1, which was
  13984. generated by GNU Autoconf 2.65. Invocation command line was
  13985. CONFIG_FILES = $CONFIG_FILES
  13986. CONFIG_HEADERS = $CONFIG_HEADERS
  13987. CONFIG_LINKS = $CONFIG_LINKS
  13988. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13989. $ $0 $@
  13990. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13991. "
  13992. _ACEOF
  13993. case $ac_config_files in *"
  13994. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13995. esac
  13996. case $ac_config_headers in *"
  13997. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13998. esac
  13999. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14000. # Files that config.status was made for.
  14001. config_files="$ac_config_files"
  14002. config_headers="$ac_config_headers"
  14003. config_commands="$ac_config_commands"
  14004. _ACEOF
  14005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14006. ac_cs_usage="\
  14007. \`$as_me' instantiates files and other configuration actions
  14008. from templates according to the current configuration. Unless the files
  14009. and actions are specified as TAGs, all are instantiated by default.
  14010. Usage: $0 [OPTION]... [TAG]...
  14011. -h, --help print this help, then exit
  14012. -V, --version print version number and configuration settings, then exit
  14013. --config print configuration, then exit
  14014. -q, --quiet, --silent
  14015. do not print progress messages
  14016. -d, --debug don't remove temporary files
  14017. --recheck update $as_me by reconfiguring in the same conditions
  14018. --file=FILE[:TEMPLATE]
  14019. instantiate the configuration file FILE
  14020. --header=FILE[:TEMPLATE]
  14021. instantiate the configuration header FILE
  14022. Configuration files:
  14023. $config_files
  14024. Configuration headers:
  14025. $config_headers
  14026. Configuration commands:
  14027. $config_commands
  14028. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14029. aria2 home page: <http://aria2.sourceforge.net/>."
  14030. _ACEOF
  14031. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14032. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14033. ac_cs_version="\\
  14034. aria2 config.status 1.9.1
  14035. configured by $0, generated by GNU Autoconf 2.65,
  14036. with options \\"\$ac_cs_config\\"
  14037. Copyright (C) 2009 Free Software Foundation, Inc.
  14038. This config.status script is free software; the Free Software Foundation
  14039. gives unlimited permission to copy, distribute and modify it."
  14040. ac_pwd='$ac_pwd'
  14041. srcdir='$srcdir'
  14042. INSTALL='$INSTALL'
  14043. MKDIR_P='$MKDIR_P'
  14044. AWK='$AWK'
  14045. test -n "\$AWK" || AWK=awk
  14046. _ACEOF
  14047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14048. # The default lists apply if the user does not specify any file.
  14049. ac_need_defaults=:
  14050. while test $# != 0
  14051. do
  14052. case $1 in
  14053. --*=*)
  14054. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14055. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14056. ac_shift=:
  14057. ;;
  14058. *)
  14059. ac_option=$1
  14060. ac_optarg=$2
  14061. ac_shift=shift
  14062. ;;
  14063. esac
  14064. case $ac_option in
  14065. # Handling of the options.
  14066. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14067. ac_cs_recheck=: ;;
  14068. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14069. $as_echo "$ac_cs_version"; exit ;;
  14070. --config | --confi | --conf | --con | --co | --c )
  14071. $as_echo "$ac_cs_config"; exit ;;
  14072. --debug | --debu | --deb | --de | --d | -d )
  14073. debug=: ;;
  14074. --file | --fil | --fi | --f )
  14075. $ac_shift
  14076. case $ac_optarg in
  14077. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14078. esac
  14079. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14080. ac_need_defaults=false;;
  14081. --header | --heade | --head | --hea )
  14082. $ac_shift
  14083. case $ac_optarg in
  14084. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14085. esac
  14086. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14087. ac_need_defaults=false;;
  14088. --he | --h)
  14089. # Conflict between --help and --header
  14090. as_fn_error "ambiguous option: \`$1'
  14091. Try \`$0 --help' for more information.";;
  14092. --help | --hel | -h )
  14093. $as_echo "$ac_cs_usage"; exit ;;
  14094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14095. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14096. ac_cs_silent=: ;;
  14097. # This is an error.
  14098. -*) as_fn_error "unrecognized option: \`$1'
  14099. Try \`$0 --help' for more information." ;;
  14100. *) as_fn_append ac_config_targets " $1"
  14101. ac_need_defaults=false ;;
  14102. esac
  14103. shift
  14104. done
  14105. ac_configure_extra_args=
  14106. if $ac_cs_silent; then
  14107. exec 6>/dev/null
  14108. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14109. fi
  14110. _ACEOF
  14111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14112. if \$ac_cs_recheck; then
  14113. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14114. shift
  14115. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14116. CONFIG_SHELL='$SHELL'
  14117. export CONFIG_SHELL
  14118. exec "\$@"
  14119. fi
  14120. _ACEOF
  14121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14122. exec 5>>config.log
  14123. {
  14124. echo
  14125. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14126. ## Running $as_me. ##
  14127. _ASBOX
  14128. $as_echo "$ac_log"
  14129. } >&5
  14130. _ACEOF
  14131. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14132. #
  14133. # INIT-COMMANDS
  14134. #
  14135. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14136. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14137. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14138. # from automake < 1.5.
  14139. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14140. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14141. LINGUAS="${LINGUAS-%UNSET%}"
  14142. _ACEOF
  14143. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14144. # Handling of arguments.
  14145. for ac_config_target in $ac_config_targets
  14146. do
  14147. case $ac_config_target in
  14148. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14149. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14150. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14151. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14152. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14153. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14154. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14155. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14156. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14157. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14158. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14159. esac
  14160. done
  14161. # If the user did not use the arguments to specify the items to instantiate,
  14162. # then the envvar interface is used. Set only those that are not.
  14163. # We use the long form for the default assignment because of an extremely
  14164. # bizarre bug on SunOS 4.1.3.
  14165. if $ac_need_defaults; then
  14166. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14167. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14168. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14169. fi
  14170. # Have a temporary directory for convenience. Make it in the build tree
  14171. # simply because there is no reason against having it here, and in addition,
  14172. # creating and moving files from /tmp can sometimes cause problems.
  14173. # Hook for its removal unless debugging.
  14174. # Note that there is a small window in which the directory will not be cleaned:
  14175. # after its creation but before its name has been assigned to `$tmp'.
  14176. $debug ||
  14177. {
  14178. tmp=
  14179. trap 'exit_status=$?
  14180. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14181. ' 0
  14182. trap 'as_fn_exit 1' 1 2 13 15
  14183. }
  14184. # Create a (secure) tmp directory for tmp files.
  14185. {
  14186. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14187. test -n "$tmp" && test -d "$tmp"
  14188. } ||
  14189. {
  14190. tmp=./conf$$-$RANDOM
  14191. (umask 077 && mkdir "$tmp")
  14192. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14193. # Set up the scripts for CONFIG_FILES section.
  14194. # No need to generate them if there are no CONFIG_FILES.
  14195. # This happens for instance with `./config.status config.h'.
  14196. if test -n "$CONFIG_FILES"; then
  14197. ac_cr=`echo X | tr X '\015'`
  14198. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14199. # But we know of no other shell where ac_cr would be empty at this
  14200. # point, so we can use a bashism as a fallback.
  14201. if test "x$ac_cr" = x; then
  14202. eval ac_cr=\$\'\\r\'
  14203. fi
  14204. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14205. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14206. ac_cs_awk_cr='\r'
  14207. else
  14208. ac_cs_awk_cr=$ac_cr
  14209. fi
  14210. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14211. _ACEOF
  14212. {
  14213. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14214. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14215. echo "_ACEOF"
  14216. } >conf$$subs.sh ||
  14217. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14218. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14219. ac_delim='%!_!# '
  14220. for ac_last_try in false false false false false :; do
  14221. . ./conf$$subs.sh ||
  14222. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14223. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14224. if test $ac_delim_n = $ac_delim_num; then
  14225. break
  14226. elif $ac_last_try; then
  14227. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14228. else
  14229. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14230. fi
  14231. done
  14232. rm -f conf$$subs.sh
  14233. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14234. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14235. _ACEOF
  14236. sed -n '
  14237. h
  14238. s/^/S["/; s/!.*/"]=/
  14239. p
  14240. g
  14241. s/^[^!]*!//
  14242. :repl
  14243. t repl
  14244. s/'"$ac_delim"'$//
  14245. t delim
  14246. :nl
  14247. h
  14248. s/\(.\{148\}\)..*/\1/
  14249. t more1
  14250. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14251. p
  14252. n
  14253. b repl
  14254. :more1
  14255. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14256. p
  14257. g
  14258. s/.\{148\}//
  14259. t nl
  14260. :delim
  14261. h
  14262. s/\(.\{148\}\)..*/\1/
  14263. t more2
  14264. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14265. p
  14266. b
  14267. :more2
  14268. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14269. p
  14270. g
  14271. s/.\{148\}//
  14272. t delim
  14273. ' <conf$$subs.awk | sed '
  14274. /^[^""]/{
  14275. N
  14276. s/\n//
  14277. }
  14278. ' >>$CONFIG_STATUS || ac_write_fail=1
  14279. rm -f conf$$subs.awk
  14280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14281. _ACAWK
  14282. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14283. for (key in S) S_is_set[key] = 1
  14284. FS = ""
  14285. }
  14286. {
  14287. line = $ 0
  14288. nfields = split(line, field, "@")
  14289. substed = 0
  14290. len = length(field[1])
  14291. for (i = 2; i < nfields; i++) {
  14292. key = field[i]
  14293. keylen = length(key)
  14294. if (S_is_set[key]) {
  14295. value = S[key]
  14296. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14297. len += length(value) + length(field[++i])
  14298. substed = 1
  14299. } else
  14300. len += 1 + keylen
  14301. }
  14302. print line
  14303. }
  14304. _ACAWK
  14305. _ACEOF
  14306. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14307. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14308. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14309. else
  14310. cat
  14311. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14312. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14313. _ACEOF
  14314. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14315. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14316. # trailing colons and then remove the whole line if VPATH becomes empty
  14317. # (actually we leave an empty line to preserve line numbers).
  14318. if test "x$srcdir" = x.; then
  14319. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14320. s/:*\$(srcdir):*/:/
  14321. s/:*\${srcdir}:*/:/
  14322. s/:*@srcdir@:*/:/
  14323. s/^\([^=]*=[ ]*\):*/\1/
  14324. s/:*$//
  14325. s/^[^=]*=[ ]*$//
  14326. }'
  14327. fi
  14328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14329. fi # test -n "$CONFIG_FILES"
  14330. # Set up the scripts for CONFIG_HEADERS section.
  14331. # No need to generate them if there are no CONFIG_HEADERS.
  14332. # This happens for instance with `./config.status Makefile'.
  14333. if test -n "$CONFIG_HEADERS"; then
  14334. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14335. BEGIN {
  14336. _ACEOF
  14337. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14338. # here-document in config.status, that substitutes the proper values into
  14339. # config.h.in to produce config.h.
  14340. # Create a delimiter string that does not exist in confdefs.h, to ease
  14341. # handling of long lines.
  14342. ac_delim='%!_!# '
  14343. for ac_last_try in false false :; do
  14344. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14345. if test -z "$ac_t"; then
  14346. break
  14347. elif $ac_last_try; then
  14348. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14349. else
  14350. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14351. fi
  14352. done
  14353. # For the awk script, D is an array of macro values keyed by name,
  14354. # likewise P contains macro parameters if any. Preserve backslash
  14355. # newline sequences.
  14356. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14357. sed -n '
  14358. s/.\{148\}/&'"$ac_delim"'/g
  14359. t rset
  14360. :rset
  14361. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14362. t def
  14363. d
  14364. :def
  14365. s/\\$//
  14366. t bsnl
  14367. s/["\\]/\\&/g
  14368. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14369. D["\1"]=" \3"/p
  14370. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14371. d
  14372. :bsnl
  14373. s/["\\]/\\&/g
  14374. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14375. D["\1"]=" \3\\\\\\n"\\/p
  14376. t cont
  14377. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14378. t cont
  14379. d
  14380. :cont
  14381. n
  14382. s/.\{148\}/&'"$ac_delim"'/g
  14383. t clear
  14384. :clear
  14385. s/\\$//
  14386. t bsnlc
  14387. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14388. d
  14389. :bsnlc
  14390. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14391. b cont
  14392. ' <confdefs.h | sed '
  14393. s/'"$ac_delim"'/"\\\
  14394. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14395. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14396. for (key in D) D_is_set[key] = 1
  14397. FS = ""
  14398. }
  14399. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14400. line = \$ 0
  14401. split(line, arg, " ")
  14402. if (arg[1] == "#") {
  14403. defundef = arg[2]
  14404. mac1 = arg[3]
  14405. } else {
  14406. defundef = substr(arg[1], 2)
  14407. mac1 = arg[2]
  14408. }
  14409. split(mac1, mac2, "(") #)
  14410. macro = mac2[1]
  14411. prefix = substr(line, 1, index(line, defundef) - 1)
  14412. if (D_is_set[macro]) {
  14413. # Preserve the white space surrounding the "#".
  14414. print prefix "define", macro P[macro] D[macro]
  14415. next
  14416. } else {
  14417. # Replace #undef with comments. This is necessary, for example,
  14418. # in the case of _POSIX_SOURCE, which is predefined and required
  14419. # on some systems where configure will not decide to define it.
  14420. if (defundef == "undef") {
  14421. print "/*", prefix defundef, macro, "*/"
  14422. next
  14423. }
  14424. }
  14425. }
  14426. { print }
  14427. _ACAWK
  14428. _ACEOF
  14429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14430. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14431. fi # test -n "$CONFIG_HEADERS"
  14432. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14433. shift
  14434. for ac_tag
  14435. do
  14436. case $ac_tag in
  14437. :[FHLC]) ac_mode=$ac_tag; continue;;
  14438. esac
  14439. case $ac_mode$ac_tag in
  14440. :[FHL]*:*);;
  14441. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14442. :[FH]-) ac_tag=-:-;;
  14443. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14444. esac
  14445. ac_save_IFS=$IFS
  14446. IFS=:
  14447. set x $ac_tag
  14448. IFS=$ac_save_IFS
  14449. shift
  14450. ac_file=$1
  14451. shift
  14452. case $ac_mode in
  14453. :L) ac_source=$1;;
  14454. :[FH])
  14455. ac_file_inputs=
  14456. for ac_f
  14457. do
  14458. case $ac_f in
  14459. -) ac_f="$tmp/stdin";;
  14460. *) # Look for the file first in the build tree, then in the source tree
  14461. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14462. # because $ac_f cannot contain `:'.
  14463. test -f "$ac_f" ||
  14464. case $ac_f in
  14465. [\\/$]*) false;;
  14466. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14467. esac ||
  14468. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14469. esac
  14470. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14471. as_fn_append ac_file_inputs " '$ac_f'"
  14472. done
  14473. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14474. # use $as_me), people would be surprised to read:
  14475. # /* config.h. Generated by config.status. */
  14476. configure_input='Generated from '`
  14477. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14478. `' by configure.'
  14479. if test x"$ac_file" != x-; then
  14480. configure_input="$ac_file. $configure_input"
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14482. $as_echo "$as_me: creating $ac_file" >&6;}
  14483. fi
  14484. # Neutralize special characters interpreted by sed in replacement strings.
  14485. case $configure_input in #(
  14486. *\&* | *\|* | *\\* )
  14487. ac_sed_conf_input=`$as_echo "$configure_input" |
  14488. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14489. *) ac_sed_conf_input=$configure_input;;
  14490. esac
  14491. case $ac_tag in
  14492. *:-:* | *:-) cat >"$tmp/stdin" \
  14493. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14494. esac
  14495. ;;
  14496. esac
  14497. ac_dir=`$as_dirname -- "$ac_file" ||
  14498. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14499. X"$ac_file" : 'X\(//\)[^/]' \| \
  14500. X"$ac_file" : 'X\(//\)$' \| \
  14501. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14502. $as_echo X"$ac_file" |
  14503. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14504. s//\1/
  14505. q
  14506. }
  14507. /^X\(\/\/\)[^/].*/{
  14508. s//\1/
  14509. q
  14510. }
  14511. /^X\(\/\/\)$/{
  14512. s//\1/
  14513. q
  14514. }
  14515. /^X\(\/\).*/{
  14516. s//\1/
  14517. q
  14518. }
  14519. s/.*/./; q'`
  14520. as_dir="$ac_dir"; as_fn_mkdir_p
  14521. ac_builddir=.
  14522. case "$ac_dir" in
  14523. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14524. *)
  14525. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14526. # A ".." for each directory in $ac_dir_suffix.
  14527. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14528. case $ac_top_builddir_sub in
  14529. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14530. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14531. esac ;;
  14532. esac
  14533. ac_abs_top_builddir=$ac_pwd
  14534. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14535. # for backward compatibility:
  14536. ac_top_builddir=$ac_top_build_prefix
  14537. case $srcdir in
  14538. .) # We are building in place.
  14539. ac_srcdir=.
  14540. ac_top_srcdir=$ac_top_builddir_sub
  14541. ac_abs_top_srcdir=$ac_pwd ;;
  14542. [\\/]* | ?:[\\/]* ) # Absolute name.
  14543. ac_srcdir=$srcdir$ac_dir_suffix;
  14544. ac_top_srcdir=$srcdir
  14545. ac_abs_top_srcdir=$srcdir ;;
  14546. *) # Relative name.
  14547. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14548. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14549. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14550. esac
  14551. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14552. case $ac_mode in
  14553. :F)
  14554. #
  14555. # CONFIG_FILE
  14556. #
  14557. case $INSTALL in
  14558. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14559. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14560. esac
  14561. ac_MKDIR_P=$MKDIR_P
  14562. case $MKDIR_P in
  14563. [\\/$]* | ?:[\\/]* ) ;;
  14564. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14565. esac
  14566. _ACEOF
  14567. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14568. # If the template does not know about datarootdir, expand it.
  14569. # FIXME: This hack should be removed a few years after 2.60.
  14570. ac_datarootdir_hack=; ac_datarootdir_seen=
  14571. ac_sed_dataroot='
  14572. /datarootdir/ {
  14573. p
  14574. q
  14575. }
  14576. /@datadir@/p
  14577. /@docdir@/p
  14578. /@infodir@/p
  14579. /@localedir@/p
  14580. /@mandir@/p'
  14581. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14582. *datarootdir*) ac_datarootdir_seen=yes;;
  14583. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14585. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14586. _ACEOF
  14587. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14588. ac_datarootdir_hack='
  14589. s&@datadir@&$datadir&g
  14590. s&@docdir@&$docdir&g
  14591. s&@infodir@&$infodir&g
  14592. s&@localedir@&$localedir&g
  14593. s&@mandir@&$mandir&g
  14594. s&\\\${datarootdir}&$datarootdir&g' ;;
  14595. esac
  14596. _ACEOF
  14597. # Neutralize VPATH when `$srcdir' = `.'.
  14598. # Shell code in configure.ac might set extrasub.
  14599. # FIXME: do we really want to maintain this feature?
  14600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14601. ac_sed_extra="$ac_vpsub
  14602. $extrasub
  14603. _ACEOF
  14604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14605. :t
  14606. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14607. s|@configure_input@|$ac_sed_conf_input|;t t
  14608. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14609. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14610. s&@srcdir@&$ac_srcdir&;t t
  14611. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14612. s&@top_srcdir@&$ac_top_srcdir&;t t
  14613. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14614. s&@builddir@&$ac_builddir&;t t
  14615. s&@abs_builddir@&$ac_abs_builddir&;t t
  14616. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14617. s&@INSTALL@&$ac_INSTALL&;t t
  14618. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14619. $ac_datarootdir_hack
  14620. "
  14621. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14622. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14623. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14624. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14625. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14627. which seems to be undefined. Please make sure it is defined." >&5
  14628. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14629. which seems to be undefined. Please make sure it is defined." >&2;}
  14630. rm -f "$tmp/stdin"
  14631. case $ac_file in
  14632. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14633. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14634. esac \
  14635. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14636. ;;
  14637. :H)
  14638. #
  14639. # CONFIG_HEADER
  14640. #
  14641. if test x"$ac_file" != x-; then
  14642. {
  14643. $as_echo "/* $configure_input */" \
  14644. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14645. } >"$tmp/config.h" \
  14646. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14647. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14649. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14650. else
  14651. rm -f "$ac_file"
  14652. mv "$tmp/config.h" "$ac_file" \
  14653. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14654. fi
  14655. else
  14656. $as_echo "/* $configure_input */" \
  14657. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14658. || as_fn_error "could not create -" "$LINENO" 5
  14659. fi
  14660. # Compute "$ac_file"'s index in $config_headers.
  14661. _am_arg="$ac_file"
  14662. _am_stamp_count=1
  14663. for _am_header in $config_headers :; do
  14664. case $_am_header in
  14665. $_am_arg | $_am_arg:* )
  14666. break ;;
  14667. * )
  14668. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14669. esac
  14670. done
  14671. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14672. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14673. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14674. X"$_am_arg" : 'X\(//\)$' \| \
  14675. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14676. $as_echo X"$_am_arg" |
  14677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14678. s//\1/
  14679. q
  14680. }
  14681. /^X\(\/\/\)[^/].*/{
  14682. s//\1/
  14683. q
  14684. }
  14685. /^X\(\/\/\)$/{
  14686. s//\1/
  14687. q
  14688. }
  14689. /^X\(\/\).*/{
  14690. s//\1/
  14691. q
  14692. }
  14693. s/.*/./; q'`/stamp-h$_am_stamp_count
  14694. ;;
  14695. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14696. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14697. ;;
  14698. esac
  14699. case $ac_file$ac_mode in
  14700. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14701. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14702. # are listed without --file. Let's play safe and only enable the eval
  14703. # if we detect the quoting.
  14704. case $CONFIG_FILES in
  14705. *\'*) eval set x "$CONFIG_FILES" ;;
  14706. *) set x $CONFIG_FILES ;;
  14707. esac
  14708. shift
  14709. for mf
  14710. do
  14711. # Strip MF so we end up with the name of the file.
  14712. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14713. # Check whether this is an Automake generated Makefile or not.
  14714. # We used to match only the files named `Makefile.in', but
  14715. # some people rename them; so instead we look at the file content.
  14716. # Grep'ing the first line is not enough: some people post-process
  14717. # each Makefile.in and add a new line on top of each file to say so.
  14718. # Grep'ing the whole file is not good either: AIX grep has a line
  14719. # limit of 2048, but all sed's we know have understand at least 4000.
  14720. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14721. dirpart=`$as_dirname -- "$mf" ||
  14722. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14723. X"$mf" : 'X\(//\)[^/]' \| \
  14724. X"$mf" : 'X\(//\)$' \| \
  14725. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14726. $as_echo X"$mf" |
  14727. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14728. s//\1/
  14729. q
  14730. }
  14731. /^X\(\/\/\)[^/].*/{
  14732. s//\1/
  14733. q
  14734. }
  14735. /^X\(\/\/\)$/{
  14736. s//\1/
  14737. q
  14738. }
  14739. /^X\(\/\).*/{
  14740. s//\1/
  14741. q
  14742. }
  14743. s/.*/./; q'`
  14744. else
  14745. continue
  14746. fi
  14747. # Extract the definition of DEPDIR, am__include, and am__quote
  14748. # from the Makefile without running `make'.
  14749. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14750. test -z "$DEPDIR" && continue
  14751. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14752. test -z "am__include" && continue
  14753. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14754. # When using ansi2knr, U may be empty or an underscore; expand it
  14755. U=`sed -n 's/^U = //p' < "$mf"`
  14756. # Find all dependency output files, they are included files with
  14757. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14758. # simplest approach to changing $(DEPDIR) to its actual value in the
  14759. # expansion.
  14760. for file in `sed -n "
  14761. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14762. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14763. # Make sure the directory exists.
  14764. test -f "$dirpart/$file" && continue
  14765. fdir=`$as_dirname -- "$file" ||
  14766. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14767. X"$file" : 'X\(//\)[^/]' \| \
  14768. X"$file" : 'X\(//\)$' \| \
  14769. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14770. $as_echo X"$file" |
  14771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14772. s//\1/
  14773. q
  14774. }
  14775. /^X\(\/\/\)[^/].*/{
  14776. s//\1/
  14777. q
  14778. }
  14779. /^X\(\/\/\)$/{
  14780. s//\1/
  14781. q
  14782. }
  14783. /^X\(\/\).*/{
  14784. s//\1/
  14785. q
  14786. }
  14787. s/.*/./; q'`
  14788. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14789. # echo "creating $dirpart/$file"
  14790. echo '# dummy' > "$dirpart/$file"
  14791. done
  14792. done
  14793. }
  14794. ;;
  14795. "po-directories":C)
  14796. for ac_file in $CONFIG_FILES; do
  14797. # Support "outfile[:infile[:infile...]]"
  14798. case "$ac_file" in
  14799. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14800. esac
  14801. # PO directories have a Makefile.in generated from Makefile.in.in.
  14802. case "$ac_file" in */Makefile.in)
  14803. # Adjust a relative srcdir.
  14804. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14805. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14806. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14807. # In autoconf-2.13 it is called $ac_given_srcdir.
  14808. # In autoconf-2.50 it is called $srcdir.
  14809. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14810. case "$ac_given_srcdir" in
  14811. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14812. /*) top_srcdir="$ac_given_srcdir" ;;
  14813. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14814. esac
  14815. # Treat a directory as a PO directory if and only if it has a
  14816. # POTFILES.in file. This allows packages to have multiple PO
  14817. # directories under different names or in different locations.
  14818. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14819. rm -f "$ac_dir/POTFILES"
  14820. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14821. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14822. POMAKEFILEDEPS="POTFILES.in"
  14823. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14824. # on $ac_dir but don't depend on user-specified configuration
  14825. # parameters.
  14826. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14827. # The LINGUAS file contains the set of available languages.
  14828. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14829. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14830. fi
  14831. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14832. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14833. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14834. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14835. else
  14836. # The set of available languages was given in configure.in.
  14837. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14838. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14839. fi
  14840. # Compute POFILES
  14841. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14842. # Compute UPDATEPOFILES
  14843. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14844. # Compute DUMMYPOFILES
  14845. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14846. # Compute GMOFILES
  14847. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14848. case "$ac_given_srcdir" in
  14849. .) srcdirpre= ;;
  14850. *) srcdirpre='$(srcdir)/' ;;
  14851. esac
  14852. POFILES=
  14853. UPDATEPOFILES=
  14854. DUMMYPOFILES=
  14855. GMOFILES=
  14856. for lang in $ALL_LINGUAS; do
  14857. POFILES="$POFILES $srcdirpre$lang.po"
  14858. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14859. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14860. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14861. done
  14862. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14863. # environment variable.
  14864. INST_LINGUAS=
  14865. if test -n "$ALL_LINGUAS"; then
  14866. for presentlang in $ALL_LINGUAS; do
  14867. useit=no
  14868. if test "%UNSET%" != "$LINGUAS"; then
  14869. desiredlanguages="$LINGUAS"
  14870. else
  14871. desiredlanguages="$ALL_LINGUAS"
  14872. fi
  14873. for desiredlang in $desiredlanguages; do
  14874. # Use the presentlang catalog if desiredlang is
  14875. # a. equal to presentlang, or
  14876. # b. a variant of presentlang (because in this case,
  14877. # presentlang can be used as a fallback for messages
  14878. # which are not translated in the desiredlang catalog).
  14879. case "$desiredlang" in
  14880. "$presentlang"*) useit=yes;;
  14881. esac
  14882. done
  14883. if test $useit = yes; then
  14884. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14885. fi
  14886. done
  14887. fi
  14888. CATALOGS=
  14889. if test -n "$INST_LINGUAS"; then
  14890. for lang in $INST_LINGUAS; do
  14891. CATALOGS="$CATALOGS $lang.gmo"
  14892. done
  14893. fi
  14894. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14895. 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"
  14896. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14897. if test -f "$f"; then
  14898. case "$f" in
  14899. *.orig | *.bak | *~) ;;
  14900. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14901. esac
  14902. fi
  14903. done
  14904. fi
  14905. ;;
  14906. esac
  14907. done ;;
  14908. esac
  14909. done # for ac_tag
  14910. as_fn_exit 0
  14911. _ACEOF
  14912. ac_clean_files=$ac_clean_files_save
  14913. test $ac_write_fail = 0 ||
  14914. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14915. # configure is writing to config.log, and then calls config.status.
  14916. # config.status does its own redirection, appending to config.log.
  14917. # Unfortunately, on DOS this fails, as config.log is still kept open
  14918. # by configure, so config.status won't be able to write to it; its
  14919. # output is simply discarded. So we exec the FD to /dev/null,
  14920. # effectively closing config.log, so it can be properly (re)opened and
  14921. # appended to by config.status. When coming back to configure, we
  14922. # need to make the FD available again.
  14923. if test "$no_create" != yes; then
  14924. ac_cs_success=:
  14925. ac_config_status_args=
  14926. test "$silent" = yes &&
  14927. ac_config_status_args="$ac_config_status_args --quiet"
  14928. exec 5>/dev/null
  14929. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14930. exec 5>>config.log
  14931. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14932. # would make configure fail if this is the last instruction.
  14933. $ac_cs_success || as_fn_exit $?
  14934. fi
  14935. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14937. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14938. fi
  14939. echo " "
  14940. echo "Build: $build"
  14941. echo "Target: $target"
  14942. echo "Install prefix: $prefix"
  14943. echo "CXXFLAGS: $CXXFLAGS"
  14944. echo "CFLAGS: $CFLAGS"
  14945. echo "CPPFLAGS: $CPPFLAGS"
  14946. echo "LDFLAGS: $LDFLAGS"
  14947. echo "LIBS: $LIBS"
  14948. echo "SQLite3: $have_sqlite3"
  14949. echo "GnuTLS: $have_libgnutls"
  14950. echo "OpenSSL: $have_openssl"
  14951. echo "CA Bundle: $ca_bundle"
  14952. echo "LibXML2: $have_libxml2"
  14953. echo "LibExpat: $have_libexpat"
  14954. echo "LibCares: $have_libcares"
  14955. echo "Libz: $have_libz"
  14956. echo "Epoll: $have_epoll"
  14957. echo "Bittorrent: $enable_bittorrent"
  14958. echo "Metalink: $enable_metalink"
  14959. echo "XML-RPC: $enable_xml_rpc"