configure 475 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842
  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_DAEMON_FALSE
  557. HAVE_DAEMON_TRUE
  558. HAVE_TIMEGM_FALSE
  559. HAVE_TIMEGM_TRUE
  560. HAVE_STRPTIME_FALSE
  561. HAVE_STRPTIME_TRUE
  562. HAVE_LOCALTIME_R_FALSE
  563. HAVE_LOCALTIME_R_TRUE
  564. HAVE_INET_ATON_FALSE
  565. HAVE_INET_ATON_TRUE
  566. HAVE_GETTIMEOFDAY_FALSE
  567. HAVE_GETTIMEOFDAY_TRUE
  568. HAVE_GETADDRINFO_FALSE
  569. HAVE_GETADDRINFO_TRUE
  570. HAVE_GAI_STRERROR_FALSE
  571. HAVE_GAI_STRERROR_TRUE
  572. HAVE_BASENAME_FALSE
  573. HAVE_BASENAME_TRUE
  574. HAVE_ASCTIME_R_FALSE
  575. HAVE_ASCTIME_R_TRUE
  576. HAVE_POSIX_FALLOCATE_FALSE
  577. HAVE_POSIX_FALLOCATE_TRUE
  578. HAVE_EPOLL_FALSE
  579. HAVE_EPOLL_TRUE
  580. POW_LIB
  581. LIBOBJS
  582. POSUB
  583. LTLIBINTL
  584. LIBINTL
  585. INTLLIBS
  586. INTL_LIBTOOL_SUFFIX_PREFIX
  587. INTLOBJS
  588. GENCAT
  589. INSTOBJEXT
  590. DATADIRNAME
  591. CATOBJEXT
  592. USE_INCLUDED_LIBINTL
  593. BUILD_INCLUDED_LIBINTL
  594. LTLIBC
  595. WINDRES
  596. WOE32
  597. WOE32DLL
  598. HAVE_WPRINTF
  599. HAVE_SNPRINTF
  600. HAVE_ASPRINTF
  601. HAVE_POSIX_PRINTF
  602. INTL_MACOSX_LIBS
  603. GLIBC21
  604. INTLBISON
  605. LTLIBICONV
  606. LIBICONV
  607. LTLIBMULTITHREAD
  608. LIBMULTITHREAD
  609. LTLIBTHREAD
  610. LIBTHREAD
  611. LIBPTH_PREFIX
  612. LTLIBPTH
  613. LIBPTH
  614. PRI_MACROS_BROKEN
  615. HAVE_VISIBILITY
  616. CFLAG_VISIBILITY
  617. GLIBC2
  618. XGETTEXT_EXTRA_OPTIONS
  619. MSGMERGE
  620. XGETTEXT_015
  621. XGETTEXT
  622. GMSGFMT_015
  623. MSGFMT_015
  624. GMSGFMT
  625. MSGFMT
  626. GETTEXT_MACRO_VERSION
  627. USE_NLS
  628. ALLOCA
  629. HAVE_SQLITE3_FALSE
  630. HAVE_SQLITE3_TRUE
  631. HAVE_LIBZ_FALSE
  632. HAVE_LIBZ_TRUE
  633. ENABLE_ASYNC_DNS_FALSE
  634. ENABLE_ASYNC_DNS_TRUE
  635. HAVE_LIBEXPAT_FALSE
  636. HAVE_LIBEXPAT_TRUE
  637. HAVE_LIBXML2_FALSE
  638. HAVE_LIBXML2_TRUE
  639. ENABLE_XML_RPC_FALSE
  640. ENABLE_XML_RPC_TRUE
  641. ENABLE_METALINK_LIBEXPAT_FALSE
  642. ENABLE_METALINK_LIBEXPAT_TRUE
  643. ENABLE_METALINK_LIBXML2_FALSE
  644. ENABLE_METALINK_LIBXML2_TRUE
  645. ENABLE_METALINK_FALSE
  646. ENABLE_METALINK_TRUE
  647. ENABLE_BITTORRENT_FALSE
  648. ENABLE_BITTORRENT_TRUE
  649. ENABLE_MESSAGE_DIGEST_FALSE
  650. ENABLE_MESSAGE_DIGEST_TRUE
  651. HAVE_LIBSSL_FALSE
  652. HAVE_LIBSSL_TRUE
  653. HAVE_LIBGNUTLS_FALSE
  654. HAVE_LIBGNUTLS_TRUE
  655. ca_bundle
  656. ENABLE_SSL_FALSE
  657. ENABLE_SSL_TRUE
  658. LIBZ_CPPFLAGS
  659. LIBZ_LIBS
  660. LIBCARES_CPPFLAGS
  661. LIBCARES_LIBS
  662. OPENSSL_CFLAGS
  663. OPENSSL_LIBS
  664. LIBGCRYPT_LIBS
  665. LIBGCRYPT_CFLAGS
  666. LIBGCRYPT_CONFIG
  667. LIBGNUTLS_CONFIG
  668. LIBGNUTLS_LIBS
  669. LIBGNUTLS_CFLAGS
  670. SQLITE3_LIBS
  671. SQLITE3_CFLAGS
  672. LIBEXPAT_CPPFLAGS
  673. LIBEXPAT_LIBS
  674. XML_LIBS
  675. XML_CPPFLAGS
  676. XML2_CONFIG
  677. PKG_CONFIG
  678. EGREP
  679. GREP
  680. CXXCPP
  681. YFLAGS
  682. YACC
  683. RANLIB
  684. am__fastdepCC_FALSE
  685. am__fastdepCC_TRUE
  686. CCDEPMODE
  687. ac_ct_CC
  688. CFLAGS
  689. CC
  690. am__fastdepCXX_FALSE
  691. am__fastdepCXX_TRUE
  692. CXXDEPMODE
  693. AMDEPBACKSLASH
  694. AMDEP_FALSE
  695. AMDEP_TRUE
  696. am__quote
  697. am__include
  698. DEPDIR
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CXX
  702. CPPFLAGS
  703. LDFLAGS
  704. CXXFLAGS
  705. CXX
  706. WINSOCK_LIBS
  707. CPPUNIT_LIBS
  708. CPPUNIT_CFLAGS
  709. CPPUNIT_CONFIG
  710. am__untar
  711. am__tar
  712. AMTAR
  713. am__leading_dot
  714. SET_MAKE
  715. AWK
  716. mkdir_p
  717. MKDIR_P
  718. INSTALL_STRIP_PROGRAM
  719. STRIP
  720. install_sh
  721. MAKEINFO
  722. AUTOHEADER
  723. AUTOMAKE
  724. AUTOCONF
  725. ACLOCAL
  726. VERSION
  727. PACKAGE
  728. CYGPATH_W
  729. am__isrc
  730. INSTALL_DATA
  731. INSTALL_SCRIPT
  732. INSTALL_PROGRAM
  733. target_os
  734. target_vendor
  735. target_cpu
  736. target
  737. host_os
  738. host_vendor
  739. host_cpu
  740. host
  741. build_os
  742. build_vendor
  743. build_cpu
  744. build
  745. target_alias
  746. host_alias
  747. build_alias
  748. LIBS
  749. ECHO_T
  750. ECHO_N
  751. ECHO_C
  752. DEFS
  753. mandir
  754. localedir
  755. libdir
  756. psdir
  757. pdfdir
  758. dvidir
  759. htmldir
  760. infodir
  761. docdir
  762. oldincludedir
  763. includedir
  764. localstatedir
  765. sharedstatedir
  766. sysconfdir
  767. datadir
  768. datarootdir
  769. libexecdir
  770. sbindir
  771. bindir
  772. program_transform_name
  773. prefix
  774. exec_prefix
  775. PACKAGE_URL
  776. PACKAGE_BUGREPORT
  777. PACKAGE_STRING
  778. PACKAGE_VERSION
  779. PACKAGE_TARNAME
  780. PACKAGE_NAME
  781. PATH_SEPARATOR
  782. SHELL'
  783. ac_subst_files=''
  784. ac_user_opts='
  785. enable_option_checking
  786. with_cppunit_prefix
  787. with_cppunit_exec_prefix
  788. with_gnutls
  789. with_openssl
  790. with_sqlite3
  791. with_libxml2
  792. with_libexpat
  793. with_libcares
  794. with_libz
  795. enable_bittorrent
  796. enable_metalink
  797. enable_epoll
  798. with_ca_bundle
  799. enable_dependency_tracking
  800. with_xml_prefix
  801. with_xml_exec_prefix
  802. enable_xmltest
  803. with_libexpat_prefix
  804. with_sqlite3_prefix
  805. with_libgnutls_prefix
  806. with_libgcrypt_prefix
  807. with_openssl_prefix
  808. with_libcares_prefix
  809. with_libz_prefix
  810. enable_largefile
  811. enable_nls
  812. enable_threads
  813. with_gnu_ld
  814. enable_rpath
  815. with_libpth_prefix
  816. with_libiconv_prefix
  817. with_included_gettext
  818. with_libintl_prefix
  819. '
  820. ac_precious_vars='build_alias
  821. host_alias
  822. target_alias
  823. CXX
  824. CXXFLAGS
  825. LDFLAGS
  826. LIBS
  827. CPPFLAGS
  828. CCC
  829. CC
  830. CFLAGS
  831. YACC
  832. YFLAGS
  833. CXXCPP
  834. PKG_CONFIG
  835. SQLITE3_CFLAGS
  836. SQLITE3_LIBS
  837. LIBGNUTLS_CFLAGS
  838. LIBGNUTLS_LIBS'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=no ;;
  944. -docdir | --docdir | --docdi | --doc | --do)
  945. ac_prev=docdir ;;
  946. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  947. docdir=$ac_optarg ;;
  948. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  949. ac_prev=dvidir ;;
  950. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  951. dvidir=$ac_optarg ;;
  952. -enable-* | --enable-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. as_fn_error "invalid feature name: $ac_useropt"
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) as_fn_error "unrecognized option: \`$ac_option'
  1170. Try \`$0 --help' for more information."
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. case $ac_envvar in #(
  1176. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1177. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1178. esac
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. as_fn_error "missing argument to $ac_option"
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1220. done
  1221. # There might be people who depend on the old broken behavior: `$host'
  1222. # used to hold the argument of --host etc.
  1223. # FIXME: To remove some day.
  1224. build=$build_alias
  1225. host=$host_alias
  1226. target=$target_alias
  1227. # FIXME: To remove some day.
  1228. if test "x$host_alias" != x; then
  1229. if test "x$build_alias" = x; then
  1230. cross_compiling=maybe
  1231. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1232. If a cross compiler is detected then cross compile mode will be used." >&2
  1233. elif test "x$build_alias" != "x$host_alias"; then
  1234. cross_compiling=yes
  1235. fi
  1236. fi
  1237. ac_tool_prefix=
  1238. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1239. test "$silent" = yes && exec 6>/dev/null
  1240. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1241. ac_ls_di=`ls -di .` &&
  1242. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1243. as_fn_error "working directory cannot be determined"
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. as_fn_error "pwd does not report name of working directory"
  1246. # Find the source files, if location was not specified.
  1247. if test -z "$srcdir"; then
  1248. ac_srcdir_defaulted=yes
  1249. # Try the directory containing this script, then the parent directory.
  1250. ac_confdir=`$as_dirname -- "$as_myself" ||
  1251. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1252. X"$as_myself" : 'X\(//\)[^/]' \| \
  1253. X"$as_myself" : 'X\(//\)$' \| \
  1254. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1255. $as_echo X"$as_myself" |
  1256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)[^/].*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\).*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. s/.*/./; q'`
  1273. srcdir=$ac_confdir
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. srcdir=..
  1276. fi
  1277. else
  1278. ac_srcdir_defaulted=no
  1279. fi
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1282. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1287. pwd)`
  1288. # When building in place, set srcdir=.
  1289. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1290. srcdir=.
  1291. fi
  1292. # Remove unnecessary trailing slashes from srcdir.
  1293. # Double slashes in file names in object file debugging info
  1294. # mess up M-x gdb in Emacs.
  1295. case $srcdir in
  1296. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1297. esac
  1298. for ac_var in $ac_precious_vars; do
  1299. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_env_${ac_var}_value=\$${ac_var}
  1301. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1303. done
  1304. #
  1305. # Report the --help message.
  1306. #
  1307. if test "$ac_init_help" = "long"; then
  1308. # Omit some internal or obsolete options to make the list less imposing.
  1309. # This message is too long to be a string in the A/UX 3.1 sh.
  1310. cat <<_ACEOF
  1311. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1312. Usage: $0 [OPTION]... [VAR=VALUE]...
  1313. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1314. VAR=VALUE. See below for descriptions of some of the useful variables.
  1315. Defaults for the options are specified in brackets.
  1316. Configuration:
  1317. -h, --help display this help and exit
  1318. --help=short display options specific to this package
  1319. --help=recursive display the short help of all the included packages
  1320. -V, --version display version information and exit
  1321. -q, --quiet, --silent do not print \`checking...' messages
  1322. --cache-file=FILE cache test results in FILE [disabled]
  1323. -C, --config-cache alias for \`--cache-file=config.cache'
  1324. -n, --no-create do not create output files
  1325. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1326. Installation directories:
  1327. --prefix=PREFIX install architecture-independent files in PREFIX
  1328. [$ac_default_prefix]
  1329. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1330. [PREFIX]
  1331. By default, \`make install' will install all the files in
  1332. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1333. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1334. for instance \`--prefix=\$HOME'.
  1335. For better control, use the options below.
  1336. Fine tuning of the installation directories:
  1337. --bindir=DIR user executables [EPREFIX/bin]
  1338. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1339. --libexecdir=DIR program executables [EPREFIX/libexec]
  1340. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1341. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1342. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. --target=TARGET configure for building compilers for TARGET [HOST]
  1366. _ACEOF
  1367. fi
  1368. if test -n "$ac_init_help"; then
  1369. case $ac_init_help in
  1370. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1371. esac
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --enable-bittorrent Enable bittorrent support.
  1378. --enable-metalink Enable metalink support.
  1379. --enable-epoll Enable epoll support.
  1380. --disable-dependency-tracking speeds up one-time build
  1381. --enable-dependency-tracking do not reject slow dependency extractors
  1382. --disable-xmltest Do not try to compile and run a test LIBXML program
  1383. --disable-largefile omit support for large files
  1384. --disable-nls do not use Native Language Support
  1385. --enable-threads={posix|solaris|pth|win32}
  1386. specify multithreading API
  1387. --disable-threads build without multithread safety
  1388. --disable-rpath do not hardcode runtime library paths
  1389. Optional Packages:
  1390. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1391. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1392. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1393. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1394. --with-gnutls Use gnutls if it is installed.
  1395. --with-openssl Use openssl if it is installed.
  1396. --with-sqlite3 Use sqlite3 if it is installed.
  1397. --with-libxml2 Use libxml2 if it is installed.
  1398. --with-libexpat Use libexpat if it is installed.
  1399. --with-libcares Use libcares if it is installed.
  1400. --with-libz Use libz if it is installed.
  1401. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1402. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1403. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1404. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1405. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1406. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1407. --with-libgcrypt-prefix=PFX
  1408. prefix where LIBGCRYPT is installed (optional)
  1409. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1410. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1411. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1412. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1413. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1414. --without-libpth-prefix don't search for libpth in includedir and libdir
  1415. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1416. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1417. --with-included-gettext use the GNU gettext library included here
  1418. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1419. --without-libintl-prefix don't search for libintl in includedir and libdir
  1420. Some influential environment variables:
  1421. CXX C++ compiler command
  1422. CXXFLAGS C++ compiler flags
  1423. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1424. nonstandard directory <lib dir>
  1425. LIBS libraries to pass to the linker, e.g. -l<library>
  1426. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1427. you have headers in a nonstandard directory <include dir>
  1428. CC C compiler command
  1429. CFLAGS C compiler flags
  1430. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1431. the first program found out of: `bison -y', `byacc', `yacc'.
  1432. YFLAGS The list of arguments that will be passed by default to $YACC.
  1433. This script will default YFLAGS to the empty string to avoid a
  1434. default value of `-d' given by some make applications.
  1435. CXXCPP C++ preprocessor
  1436. PKG_CONFIG path to pkg-config utility
  1437. SQLITE3_CFLAGS
  1438. C compiler flags for SQLITE3, overriding pkg-config
  1439. SQLITE3_LIBS
  1440. linker flags for SQLITE3, overriding pkg-config
  1441. LIBGNUTLS_CFLAGS
  1442. C compiler flags for LIBGNUTLS, overriding pkg-config
  1443. LIBGNUTLS_LIBS
  1444. linker flags for LIBGNUTLS, overriding pkg-config
  1445. Use these variables to override the choices made by `configure' or to help
  1446. it to find libraries and programs with nonstandard names/locations.
  1447. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1448. aria2 home page: <http://aria2.sourceforge.net/>.
  1449. _ACEOF
  1450. ac_status=$?
  1451. fi
  1452. if test "$ac_init_help" = "recursive"; then
  1453. # If there are subdirs, report their specific --help.
  1454. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1455. test -d "$ac_dir" ||
  1456. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1457. continue
  1458. ac_builddir=.
  1459. case "$ac_dir" in
  1460. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461. *)
  1462. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1463. # A ".." for each directory in $ac_dir_suffix.
  1464. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1465. case $ac_top_builddir_sub in
  1466. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1467. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1468. esac ;;
  1469. esac
  1470. ac_abs_top_builddir=$ac_pwd
  1471. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1472. # for backward compatibility:
  1473. ac_top_builddir=$ac_top_build_prefix
  1474. case $srcdir in
  1475. .) # We are building in place.
  1476. ac_srcdir=.
  1477. ac_top_srcdir=$ac_top_builddir_sub
  1478. ac_abs_top_srcdir=$ac_pwd ;;
  1479. [\\/]* | ?:[\\/]* ) # Absolute name.
  1480. ac_srcdir=$srcdir$ac_dir_suffix;
  1481. ac_top_srcdir=$srcdir
  1482. ac_abs_top_srcdir=$srcdir ;;
  1483. *) # Relative name.
  1484. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1485. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1486. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1487. esac
  1488. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1489. cd "$ac_dir" || { ac_status=$?; continue; }
  1490. # Check for guested configure.
  1491. if test -f "$ac_srcdir/configure.gnu"; then
  1492. echo &&
  1493. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1494. elif test -f "$ac_srcdir/configure"; then
  1495. echo &&
  1496. $SHELL "$ac_srcdir/configure" --help=recursive
  1497. else
  1498. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1499. fi || ac_status=$?
  1500. cd "$ac_pwd" || { ac_status=$?; break; }
  1501. done
  1502. fi
  1503. test -n "$ac_init_help" && exit $ac_status
  1504. if $ac_init_version; then
  1505. cat <<\_ACEOF
  1506. aria2 configure 1.9.1
  1507. generated by GNU Autoconf 2.65
  1508. Copyright (C) 2009 Free Software Foundation, Inc.
  1509. This configure script is free software; the Free Software Foundation
  1510. gives unlimited permission to copy, distribute and modify it.
  1511. _ACEOF
  1512. exit
  1513. fi
  1514. ## ------------------------ ##
  1515. ## Autoconf initialization. ##
  1516. ## ------------------------ ##
  1517. # ac_fn_cxx_try_compile LINENO
  1518. # ----------------------------
  1519. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1520. ac_fn_cxx_try_compile ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. rm -f conftest.$ac_objext
  1524. if { { ac_try="$ac_compile"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_compile") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } && {
  1540. test -z "$ac_cxx_werror_flag" ||
  1541. test ! -s conftest.err
  1542. } && test -s conftest.$ac_objext; then :
  1543. ac_retval=0
  1544. else
  1545. $as_echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_retval=1
  1548. fi
  1549. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1550. as_fn_set_status $ac_retval
  1551. } # ac_fn_cxx_try_compile
  1552. # ac_fn_c_try_compile LINENO
  1553. # --------------------------
  1554. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1555. ac_fn_c_try_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. rm -f conftest.$ac_objext
  1559. if { { ac_try="$ac_compile"
  1560. case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_compile") 2>conftest.err
  1567. ac_status=$?
  1568. if test -s conftest.err; then
  1569. grep -v '^ *+' conftest.err >conftest.er1
  1570. cat conftest.er1 >&5
  1571. mv -f conftest.er1 conftest.err
  1572. fi
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && {
  1575. test -z "$ac_c_werror_flag" ||
  1576. test ! -s conftest.err
  1577. } && test -s conftest.$ac_objext; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=1
  1583. fi
  1584. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1585. as_fn_set_status $ac_retval
  1586. } # ac_fn_c_try_compile
  1587. # ac_fn_cxx_try_cpp LINENO
  1588. # ------------------------
  1589. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_cxx_try_cpp ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1594. case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1601. ac_status=$?
  1602. if test -s conftest.err; then
  1603. grep -v '^ *+' conftest.err >conftest.er1
  1604. cat conftest.er1 >&5
  1605. mv -f conftest.er1 conftest.err
  1606. fi
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; } >/dev/null && {
  1609. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1610. test ! -s conftest.err
  1611. }; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: failed program was:" >&5
  1615. sed 's/^/| /' conftest.$ac_ext >&5
  1616. ac_retval=1
  1617. fi
  1618. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_cxx_try_cpp
  1621. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1622. # ---------------------------------------------------------
  1623. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1624. # the include files in INCLUDES and setting the cache variable VAR
  1625. # accordingly.
  1626. ac_fn_cxx_check_header_mongrel ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1633. $as_echo_n "(cached) " >&6
  1634. fi
  1635. eval ac_res=\$$3
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1637. $as_echo "$ac_res" >&6; }
  1638. else
  1639. # Is the header compilable?
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1641. $as_echo_n "checking $2 usability... " >&6; }
  1642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1643. /* end confdefs.h. */
  1644. $4
  1645. #include <$2>
  1646. _ACEOF
  1647. if ac_fn_cxx_try_compile "$LINENO"; then :
  1648. ac_header_compiler=yes
  1649. else
  1650. ac_header_compiler=no
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1654. $as_echo "$ac_header_compiler" >&6; }
  1655. # Is the header present?
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1657. $as_echo_n "checking $2 presence... " >&6; }
  1658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. /* end confdefs.h. */
  1660. #include <$2>
  1661. _ACEOF
  1662. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1663. ac_header_preproc=yes
  1664. else
  1665. ac_header_preproc=no
  1666. fi
  1667. rm -f conftest.err conftest.$ac_ext
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1669. $as_echo "$ac_header_preproc" >&6; }
  1670. # So? What about this header?
  1671. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1672. yes:no: )
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1674. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1676. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1677. ;;
  1678. no:yes:* )
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1680. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1682. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1684. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1686. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1688. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1689. ( cat <<\_ASBOX
  1690. ## ----------------------------------------------- ##
  1691. ## Report this to t-tujikawa@users.sourceforge.net ##
  1692. ## ----------------------------------------------- ##
  1693. _ASBOX
  1694. ) | sed "s/^/$as_me: WARNING: /" >&2
  1695. ;;
  1696. esac
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1698. $as_echo_n "checking for $2... " >&6; }
  1699. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1700. $as_echo_n "(cached) " >&6
  1701. else
  1702. eval "$3=\$ac_header_compiler"
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. fi
  1708. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1709. } # ac_fn_cxx_check_header_mongrel
  1710. # ac_fn_cxx_try_run LINENO
  1711. # ------------------------
  1712. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1713. # that executables *can* be run.
  1714. ac_fn_cxx_try_run ()
  1715. {
  1716. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1717. if { { ac_try="$ac_link"
  1718. case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_link") 2>&5
  1725. ac_status=$?
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1728. { { case "(($ac_try" in
  1729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1730. *) ac_try_echo=$ac_try;;
  1731. esac
  1732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1733. $as_echo "$ac_try_echo"; } >&5
  1734. (eval "$ac_try") 2>&5
  1735. ac_status=$?
  1736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1737. test $ac_status = 0; }; }; then :
  1738. ac_retval=0
  1739. else
  1740. $as_echo "$as_me: program exited with status $ac_status" >&5
  1741. $as_echo "$as_me: failed program was:" >&5
  1742. sed 's/^/| /' conftest.$ac_ext >&5
  1743. ac_retval=$ac_status
  1744. fi
  1745. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. as_fn_set_status $ac_retval
  1748. } # ac_fn_cxx_try_run
  1749. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1750. # ---------------------------------------------------------
  1751. # Tests whether HEADER exists and can be compiled using the include files in
  1752. # INCLUDES, setting the cache variable VAR accordingly.
  1753. ac_fn_cxx_check_header_compile ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1757. $as_echo_n "checking for $2... " >&6; }
  1758. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1759. $as_echo_n "(cached) " >&6
  1760. else
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. $4
  1764. #include <$2>
  1765. _ACEOF
  1766. if ac_fn_cxx_try_compile "$LINENO"; then :
  1767. eval "$3=yes"
  1768. else
  1769. eval "$3=no"
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1777. } # ac_fn_cxx_check_header_compile
  1778. # ac_fn_cxx_try_link LINENO
  1779. # -------------------------
  1780. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_cxx_try_link ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. rm -f conftest.$ac_objext conftest$ac_exeext
  1785. if { { ac_try="$ac_link"
  1786. case "(($ac_try" in
  1787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1788. *) ac_try_echo=$ac_try;;
  1789. esac
  1790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1791. $as_echo "$ac_try_echo"; } >&5
  1792. (eval "$ac_link") 2>conftest.err
  1793. ac_status=$?
  1794. if test -s conftest.err; then
  1795. grep -v '^ *+' conftest.err >conftest.er1
  1796. cat conftest.er1 >&5
  1797. mv -f conftest.er1 conftest.err
  1798. fi
  1799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800. test $ac_status = 0; } && {
  1801. test -z "$ac_cxx_werror_flag" ||
  1802. test ! -s conftest.err
  1803. } && test -s conftest$ac_exeext && {
  1804. test "$cross_compiling" = yes ||
  1805. $as_test_x conftest$ac_exeext
  1806. }; then :
  1807. ac_retval=0
  1808. else
  1809. $as_echo "$as_me: failed program was:" >&5
  1810. sed 's/^/| /' conftest.$ac_ext >&5
  1811. ac_retval=1
  1812. fi
  1813. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1814. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1815. # interfere with the next link command; also delete a directory that is
  1816. # left behind by Apple's compiler. We do this before executing the actions.
  1817. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1818. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1819. as_fn_set_status $ac_retval
  1820. } # ac_fn_cxx_try_link
  1821. # ac_fn_cxx_check_func LINENO FUNC VAR
  1822. # ------------------------------------
  1823. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1824. ac_fn_cxx_check_func ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1828. $as_echo_n "checking for $2... " >&6; }
  1829. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1830. $as_echo_n "(cached) " >&6
  1831. else
  1832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1833. /* end confdefs.h. */
  1834. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1835. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1836. #define $2 innocuous_$2
  1837. /* System header to define __stub macros and hopefully few prototypes,
  1838. which can conflict with char $2 (); below.
  1839. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1840. <limits.h> exists even on freestanding compilers. */
  1841. #ifdef __STDC__
  1842. # include <limits.h>
  1843. #else
  1844. # include <assert.h>
  1845. #endif
  1846. #undef $2
  1847. /* Override any GCC internal prototype to avoid an error.
  1848. Use char because int might match the return type of a GCC
  1849. builtin and then its argument prototype would still apply. */
  1850. #ifdef __cplusplus
  1851. extern "C"
  1852. #endif
  1853. char $2 ();
  1854. /* The GNU C library defines this for functions which it implements
  1855. to always fail with ENOSYS. Some functions are actually named
  1856. something starting with __ and the normal name is an alias. */
  1857. #if defined __stub_$2 || defined __stub___$2
  1858. choke me
  1859. #endif
  1860. int
  1861. main ()
  1862. {
  1863. return $2 ();
  1864. ;
  1865. return 0;
  1866. }
  1867. _ACEOF
  1868. if ac_fn_cxx_try_link "$LINENO"; then :
  1869. eval "$3=yes"
  1870. else
  1871. eval "$3=no"
  1872. fi
  1873. rm -f core conftest.err conftest.$ac_objext \
  1874. conftest$ac_exeext conftest.$ac_ext
  1875. fi
  1876. eval ac_res=\$$3
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1878. $as_echo "$ac_res" >&6; }
  1879. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1880. } # ac_fn_cxx_check_func
  1881. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1882. # ---------------------------------------------
  1883. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1884. # variable VAR accordingly.
  1885. ac_fn_cxx_check_type ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. $as_echo_n "checking for $2... " >&6; }
  1890. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. eval "$3=no"
  1894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1895. /* end confdefs.h. */
  1896. $4
  1897. int
  1898. main ()
  1899. {
  1900. if (sizeof ($2))
  1901. return 0;
  1902. ;
  1903. return 0;
  1904. }
  1905. _ACEOF
  1906. if ac_fn_cxx_try_compile "$LINENO"; then :
  1907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1908. /* end confdefs.h. */
  1909. $4
  1910. int
  1911. main ()
  1912. {
  1913. if (sizeof (($2)))
  1914. return 0;
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_cxx_try_compile "$LINENO"; then :
  1920. else
  1921. eval "$3=yes"
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1931. } # ac_fn_cxx_check_type
  1932. # ac_fn_c_find_intX_t LINENO BITS VAR
  1933. # -----------------------------------
  1934. # Finds a signed integer type with width BITS, setting cache variable VAR
  1935. # accordingly.
  1936. ac_fn_c_find_intX_t ()
  1937. {
  1938. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1940. $as_echo_n "checking for int$2_t... " >&6; }
  1941. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1942. $as_echo_n "(cached) " >&6
  1943. else
  1944. eval "$3=no"
  1945. # Order is important - never check a type that is potentially smaller
  1946. # than half of the expected target width.
  1947. for ac_type in int$2_t 'int' 'long int' \
  1948. 'long long int' 'short int' 'signed char'; do
  1949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1950. /* end confdefs.h. */
  1951. $ac_includes_default
  1952. enum { N = $2 / 2 - 1 };
  1953. int
  1954. main ()
  1955. {
  1956. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1957. test_array [0] = 0
  1958. ;
  1959. return 0;
  1960. }
  1961. _ACEOF
  1962. if ac_fn_cxx_try_compile "$LINENO"; then :
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $ac_includes_default
  1966. enum { N = $2 / 2 - 1 };
  1967. int
  1968. main ()
  1969. {
  1970. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1971. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1972. test_array [0] = 0
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. if ac_fn_cxx_try_compile "$LINENO"; then :
  1978. else
  1979. case $ac_type in #(
  1980. int$2_t) :
  1981. eval "$3=yes" ;; #(
  1982. *) :
  1983. eval "$3=\$ac_type" ;;
  1984. esac
  1985. fi
  1986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1987. fi
  1988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1989. eval as_val=\$$3
  1990. if test "x$as_val" = x""no; then :
  1991. else
  1992. break
  1993. fi
  1994. done
  1995. fi
  1996. eval ac_res=\$$3
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. $as_echo "$ac_res" >&6; }
  1999. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2000. } # ac_fn_c_find_intX_t
  2001. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2002. # ------------------------------------
  2003. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2004. # accordingly.
  2005. ac_fn_c_find_uintX_t ()
  2006. {
  2007. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2009. $as_echo_n "checking for uint$2_t... " >&6; }
  2010. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2011. $as_echo_n "(cached) " >&6
  2012. else
  2013. eval "$3=no"
  2014. # Order is important - never check a type that is potentially smaller
  2015. # than half of the expected target width.
  2016. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2017. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2019. /* end confdefs.h. */
  2020. $ac_includes_default
  2021. int
  2022. main ()
  2023. {
  2024. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2025. test_array [0] = 0
  2026. ;
  2027. return 0;
  2028. }
  2029. _ACEOF
  2030. if ac_fn_cxx_try_compile "$LINENO"; then :
  2031. case $ac_type in #(
  2032. uint$2_t) :
  2033. eval "$3=yes" ;; #(
  2034. *) :
  2035. eval "$3=\$ac_type" ;;
  2036. esac
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. eval as_val=\$$3
  2040. if test "x$as_val" = x""no; then :
  2041. else
  2042. break
  2043. fi
  2044. done
  2045. fi
  2046. eval ac_res=\$$3
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2048. $as_echo "$ac_res" >&6; }
  2049. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2050. } # ac_fn_c_find_uintX_t
  2051. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2052. # ----------------------------------------------
  2053. # Tries to find the compile-time value of EXPR in a program that includes
  2054. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2055. # computed
  2056. ac_fn_cxx_compute_int ()
  2057. {
  2058. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2059. if test "$cross_compiling" = yes; then
  2060. # Depending upon the size, compute the lo and hi bounds.
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $4
  2064. int
  2065. main ()
  2066. {
  2067. static int test_array [1 - 2 * !(($2) >= 0)];
  2068. test_array [0] = 0
  2069. ;
  2070. return 0;
  2071. }
  2072. _ACEOF
  2073. if ac_fn_cxx_try_compile "$LINENO"; then :
  2074. ac_lo=0 ac_mid=0
  2075. while :; do
  2076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2077. /* end confdefs.h. */
  2078. $4
  2079. int
  2080. main ()
  2081. {
  2082. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2083. test_array [0] = 0
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. if ac_fn_cxx_try_compile "$LINENO"; then :
  2089. ac_hi=$ac_mid; break
  2090. else
  2091. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2092. if test $ac_lo -le $ac_mid; then
  2093. ac_lo= ac_hi=
  2094. break
  2095. fi
  2096. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2097. fi
  2098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2099. done
  2100. else
  2101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2102. /* end confdefs.h. */
  2103. $4
  2104. int
  2105. main ()
  2106. {
  2107. static int test_array [1 - 2 * !(($2) < 0)];
  2108. test_array [0] = 0
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_cxx_try_compile "$LINENO"; then :
  2114. ac_hi=-1 ac_mid=-1
  2115. while :; do
  2116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2117. /* end confdefs.h. */
  2118. $4
  2119. int
  2120. main ()
  2121. {
  2122. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2123. test_array [0] = 0
  2124. ;
  2125. return 0;
  2126. }
  2127. _ACEOF
  2128. if ac_fn_cxx_try_compile "$LINENO"; then :
  2129. ac_lo=$ac_mid; break
  2130. else
  2131. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2132. if test $ac_mid -le $ac_hi; then
  2133. ac_lo= ac_hi=
  2134. break
  2135. fi
  2136. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2137. fi
  2138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2139. done
  2140. else
  2141. ac_lo= ac_hi=
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. fi
  2145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2146. # Binary search between lo and hi bounds.
  2147. while test "x$ac_lo" != "x$ac_hi"; do
  2148. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2150. /* end confdefs.h. */
  2151. $4
  2152. int
  2153. main ()
  2154. {
  2155. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2156. test_array [0] = 0
  2157. ;
  2158. return 0;
  2159. }
  2160. _ACEOF
  2161. if ac_fn_cxx_try_compile "$LINENO"; then :
  2162. ac_hi=$ac_mid
  2163. else
  2164. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2165. fi
  2166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2167. done
  2168. case $ac_lo in #((
  2169. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2170. '') ac_retval=1 ;;
  2171. esac
  2172. else
  2173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2174. /* end confdefs.h. */
  2175. $4
  2176. static long int longval () { return $2; }
  2177. static unsigned long int ulongval () { return $2; }
  2178. #include <stdio.h>
  2179. #include <stdlib.h>
  2180. int
  2181. main ()
  2182. {
  2183. FILE *f = fopen ("conftest.val", "w");
  2184. if (! f)
  2185. return 1;
  2186. if (($2) < 0)
  2187. {
  2188. long int i = longval ();
  2189. if (i != ($2))
  2190. return 1;
  2191. fprintf (f, "%ld", i);
  2192. }
  2193. else
  2194. {
  2195. unsigned long int i = ulongval ();
  2196. if (i != ($2))
  2197. return 1;
  2198. fprintf (f, "%lu", i);
  2199. }
  2200. /* Do not output a trailing newline, as this causes \r\n confusion
  2201. on some platforms. */
  2202. return ferror (f) || fclose (f) != 0;
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_cxx_try_run "$LINENO"; then :
  2208. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2209. else
  2210. ac_retval=1
  2211. fi
  2212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2214. rm -f conftest.val
  2215. fi
  2216. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2217. as_fn_set_status $ac_retval
  2218. } # ac_fn_cxx_compute_int
  2219. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2220. # ------------------------------------------------------
  2221. # Tries to find if the field MEMBER exists in type AGGR, after including
  2222. # INCLUDES, setting cache variable VAR accordingly.
  2223. ac_fn_cxx_check_member ()
  2224. {
  2225. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2227. $as_echo_n "checking for $2.$3... " >&6; }
  2228. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2229. $as_echo_n "(cached) " >&6
  2230. else
  2231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232. /* end confdefs.h. */
  2233. $5
  2234. int
  2235. main ()
  2236. {
  2237. static $2 ac_aggr;
  2238. if (ac_aggr.$3)
  2239. return 0;
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. if ac_fn_cxx_try_compile "$LINENO"; then :
  2245. eval "$4=yes"
  2246. else
  2247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2248. /* end confdefs.h. */
  2249. $5
  2250. int
  2251. main ()
  2252. {
  2253. static $2 ac_aggr;
  2254. if (sizeof ac_aggr.$3)
  2255. return 0;
  2256. ;
  2257. return 0;
  2258. }
  2259. _ACEOF
  2260. if ac_fn_cxx_try_compile "$LINENO"; then :
  2261. eval "$4=yes"
  2262. else
  2263. eval "$4=no"
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266. fi
  2267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2268. fi
  2269. eval ac_res=\$$4
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2271. $as_echo "$ac_res" >&6; }
  2272. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2273. } # ac_fn_cxx_check_member
  2274. cat >config.log <<_ACEOF
  2275. This file contains any messages produced by compilers while
  2276. running configure, to aid debugging if configure makes a mistake.
  2277. It was created by aria2 $as_me 1.9.1, which was
  2278. generated by GNU Autoconf 2.65. Invocation command line was
  2279. $ $0 $@
  2280. _ACEOF
  2281. exec 5>>config.log
  2282. {
  2283. cat <<_ASUNAME
  2284. ## --------- ##
  2285. ## Platform. ##
  2286. ## --------- ##
  2287. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2288. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2289. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2290. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2291. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2292. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2293. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2294. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2295. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2296. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2297. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2298. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2299. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2300. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2301. _ASUNAME
  2302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2303. for as_dir in $PATH
  2304. do
  2305. IFS=$as_save_IFS
  2306. test -z "$as_dir" && as_dir=.
  2307. $as_echo "PATH: $as_dir"
  2308. done
  2309. IFS=$as_save_IFS
  2310. } >&5
  2311. cat >&5 <<_ACEOF
  2312. ## ----------- ##
  2313. ## Core tests. ##
  2314. ## ----------- ##
  2315. _ACEOF
  2316. # Keep a trace of the command line.
  2317. # Strip out --no-create and --no-recursion so they do not pile up.
  2318. # Strip out --silent because we don't want to record it for future runs.
  2319. # Also quote any args containing shell meta-characters.
  2320. # Make two passes to allow for proper duplicate-argument suppression.
  2321. ac_configure_args=
  2322. ac_configure_args0=
  2323. ac_configure_args1=
  2324. ac_must_keep_next=false
  2325. for ac_pass in 1 2
  2326. do
  2327. for ac_arg
  2328. do
  2329. case $ac_arg in
  2330. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2331. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2332. | -silent | --silent | --silen | --sile | --sil)
  2333. continue ;;
  2334. *\'*)
  2335. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2336. esac
  2337. case $ac_pass in
  2338. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2339. 2)
  2340. as_fn_append ac_configure_args1 " '$ac_arg'"
  2341. if test $ac_must_keep_next = true; then
  2342. ac_must_keep_next=false # Got value, back to normal.
  2343. else
  2344. case $ac_arg in
  2345. *=* | --config-cache | -C | -disable-* | --disable-* \
  2346. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2347. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2348. | -with-* | --with-* | -without-* | --without-* | --x)
  2349. case "$ac_configure_args0 " in
  2350. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2351. esac
  2352. ;;
  2353. -* ) ac_must_keep_next=true ;;
  2354. esac
  2355. fi
  2356. as_fn_append ac_configure_args " '$ac_arg'"
  2357. ;;
  2358. esac
  2359. done
  2360. done
  2361. { ac_configure_args0=; unset ac_configure_args0;}
  2362. { ac_configure_args1=; unset ac_configure_args1;}
  2363. # When interrupted or exit'd, cleanup temporary files, and complete
  2364. # config.log. We remove comments because anyway the quotes in there
  2365. # would cause problems or look ugly.
  2366. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2367. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2368. trap 'exit_status=$?
  2369. # Save into config.log some information that might help in debugging.
  2370. {
  2371. echo
  2372. cat <<\_ASBOX
  2373. ## ---------------- ##
  2374. ## Cache variables. ##
  2375. ## ---------------- ##
  2376. _ASBOX
  2377. echo
  2378. # The following way of writing the cache mishandles newlines in values,
  2379. (
  2380. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2381. eval ac_val=\$$ac_var
  2382. case $ac_val in #(
  2383. *${as_nl}*)
  2384. case $ac_var in #(
  2385. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2386. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2387. esac
  2388. case $ac_var in #(
  2389. _ | IFS | as_nl) ;; #(
  2390. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2391. *) { eval $ac_var=; unset $ac_var;} ;;
  2392. esac ;;
  2393. esac
  2394. done
  2395. (set) 2>&1 |
  2396. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2397. *${as_nl}ac_space=\ *)
  2398. sed -n \
  2399. "s/'\''/'\''\\\\'\'''\''/g;
  2400. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2401. ;; #(
  2402. *)
  2403. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2404. ;;
  2405. esac |
  2406. sort
  2407. )
  2408. echo
  2409. cat <<\_ASBOX
  2410. ## ----------------- ##
  2411. ## Output variables. ##
  2412. ## ----------------- ##
  2413. _ASBOX
  2414. echo
  2415. for ac_var in $ac_subst_vars
  2416. do
  2417. eval ac_val=\$$ac_var
  2418. case $ac_val in
  2419. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2420. esac
  2421. $as_echo "$ac_var='\''$ac_val'\''"
  2422. done | sort
  2423. echo
  2424. if test -n "$ac_subst_files"; then
  2425. cat <<\_ASBOX
  2426. ## ------------------- ##
  2427. ## File substitutions. ##
  2428. ## ------------------- ##
  2429. _ASBOX
  2430. echo
  2431. for ac_var in $ac_subst_files
  2432. do
  2433. eval ac_val=\$$ac_var
  2434. case $ac_val in
  2435. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2436. esac
  2437. $as_echo "$ac_var='\''$ac_val'\''"
  2438. done | sort
  2439. echo
  2440. fi
  2441. if test -s confdefs.h; then
  2442. cat <<\_ASBOX
  2443. ## ----------- ##
  2444. ## confdefs.h. ##
  2445. ## ----------- ##
  2446. _ASBOX
  2447. echo
  2448. cat confdefs.h
  2449. echo
  2450. fi
  2451. test "$ac_signal" != 0 &&
  2452. $as_echo "$as_me: caught signal $ac_signal"
  2453. $as_echo "$as_me: exit $exit_status"
  2454. } >&5
  2455. rm -f core *.core core.conftest.* &&
  2456. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2457. exit $exit_status
  2458. ' 0
  2459. for ac_signal in 1 2 13 15; do
  2460. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2461. done
  2462. ac_signal=0
  2463. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2464. rm -f -r conftest* confdefs.h
  2465. $as_echo "/* confdefs.h */" > confdefs.h
  2466. # Predefined preprocessor variables.
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_NAME "$PACKAGE_NAME"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2475. _ACEOF
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE_STRING "$PACKAGE_STRING"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2481. _ACEOF
  2482. cat >>confdefs.h <<_ACEOF
  2483. #define PACKAGE_URL "$PACKAGE_URL"
  2484. _ACEOF
  2485. # Let the site file select an alternate cache file if it wants to.
  2486. # Prefer an explicitly selected file to automatically selected ones.
  2487. ac_site_file1=NONE
  2488. ac_site_file2=NONE
  2489. if test -n "$CONFIG_SITE"; then
  2490. ac_site_file1=$CONFIG_SITE
  2491. elif test "x$prefix" != xNONE; then
  2492. ac_site_file1=$prefix/share/config.site
  2493. ac_site_file2=$prefix/etc/config.site
  2494. else
  2495. ac_site_file1=$ac_default_prefix/share/config.site
  2496. ac_site_file2=$ac_default_prefix/etc/config.site
  2497. fi
  2498. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2499. do
  2500. test "x$ac_site_file" = xNONE && continue
  2501. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2503. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2504. sed 's/^/| /' "$ac_site_file" >&5
  2505. . "$ac_site_file"
  2506. fi
  2507. done
  2508. if test -r "$cache_file"; then
  2509. # Some versions of bash will fail to source /dev/null (special files
  2510. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2511. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2513. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2514. case $cache_file in
  2515. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2516. *) . "./$cache_file";;
  2517. esac
  2518. fi
  2519. else
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2521. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2522. >$cache_file
  2523. fi
  2524. gt_needs="$gt_needs "
  2525. as_fn_append ac_header_list " stdlib.h"
  2526. as_fn_append ac_header_list " unistd.h"
  2527. as_fn_append ac_header_list " sys/param.h"
  2528. as_fn_append ac_header_list " sys/time.h"
  2529. as_fn_append ac_func_list " alarm"
  2530. # Check that the precious variables saved in the cache have kept the same
  2531. # value.
  2532. ac_cache_corrupted=false
  2533. for ac_var in $ac_precious_vars; do
  2534. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2535. eval ac_new_set=\$ac_env_${ac_var}_set
  2536. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2537. eval ac_new_val=\$ac_env_${ac_var}_value
  2538. case $ac_old_set,$ac_new_set in
  2539. set,)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2542. ac_cache_corrupted=: ;;
  2543. ,set)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,);;
  2548. *)
  2549. if test "x$ac_old_val" != "x$ac_new_val"; then
  2550. # differences in whitespace do not lead to failure.
  2551. ac_old_val_w=`echo x $ac_old_val`
  2552. ac_new_val_w=`echo x $ac_new_val`
  2553. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2556. ac_cache_corrupted=:
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2559. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2560. eval $ac_var=\$ac_old_val
  2561. fi
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2563. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2565. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2566. fi;;
  2567. esac
  2568. # Pass precious variables to config.status.
  2569. if test "$ac_new_set" = set; then
  2570. case $ac_new_val in
  2571. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2572. *) ac_arg=$ac_var=$ac_new_val ;;
  2573. esac
  2574. case " $ac_configure_args " in
  2575. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2576. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2577. esac
  2578. fi
  2579. done
  2580. if $ac_cache_corrupted; then
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2584. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2585. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2586. fi
  2587. ## -------------------- ##
  2588. ## Main body of script. ##
  2589. ## -------------------- ##
  2590. ac_ext=c
  2591. ac_cpp='$CPP $CPPFLAGS'
  2592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2595. ac_aux_dir=
  2596. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2597. for ac_t in install-sh install.sh shtool; do
  2598. if test -f "$ac_dir/$ac_t"; then
  2599. ac_aux_dir=$ac_dir
  2600. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2601. break 2
  2602. fi
  2603. done
  2604. done
  2605. if test -z "$ac_aux_dir"; then
  2606. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2607. fi
  2608. # These three variables are undocumented and unsupported,
  2609. # and are intended to be withdrawn in a future Autoconf release.
  2610. # They can cause serious problems if a builder's source tree is in a directory
  2611. # whose full name contains unusual characters.
  2612. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2613. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2614. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2615. # Make sure we can run config.sub.
  2616. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2617. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2619. $as_echo_n "checking build system type... " >&6; }
  2620. if test "${ac_cv_build+set}" = set; then :
  2621. $as_echo_n "(cached) " >&6
  2622. else
  2623. ac_build_alias=$build_alias
  2624. test "x$ac_build_alias" = x &&
  2625. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2626. test "x$ac_build_alias" = x &&
  2627. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2628. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2629. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2630. fi
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2632. $as_echo "$ac_cv_build" >&6; }
  2633. case $ac_cv_build in
  2634. *-*-*) ;;
  2635. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2636. esac
  2637. build=$ac_cv_build
  2638. ac_save_IFS=$IFS; IFS='-'
  2639. set x $ac_cv_build
  2640. shift
  2641. build_cpu=$1
  2642. build_vendor=$2
  2643. shift; shift
  2644. # Remember, the first character of IFS is used to create $*,
  2645. # except with old shells:
  2646. build_os=$*
  2647. IFS=$ac_save_IFS
  2648. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2650. $as_echo_n "checking host system type... " >&6; }
  2651. if test "${ac_cv_host+set}" = set; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. if test "x$host_alias" = x; then
  2655. ac_cv_host=$ac_cv_build
  2656. else
  2657. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2658. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2659. fi
  2660. fi
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2662. $as_echo "$ac_cv_host" >&6; }
  2663. case $ac_cv_host in
  2664. *-*-*) ;;
  2665. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2666. esac
  2667. host=$ac_cv_host
  2668. ac_save_IFS=$IFS; IFS='-'
  2669. set x $ac_cv_host
  2670. shift
  2671. host_cpu=$1
  2672. host_vendor=$2
  2673. shift; shift
  2674. # Remember, the first character of IFS is used to create $*,
  2675. # except with old shells:
  2676. host_os=$*
  2677. IFS=$ac_save_IFS
  2678. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2680. $as_echo_n "checking target system type... " >&6; }
  2681. if test "${ac_cv_target+set}" = set; then :
  2682. $as_echo_n "(cached) " >&6
  2683. else
  2684. if test "x$target_alias" = x; then
  2685. ac_cv_target=$ac_cv_host
  2686. else
  2687. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2688. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2689. fi
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2692. $as_echo "$ac_cv_target" >&6; }
  2693. case $ac_cv_target in
  2694. *-*-*) ;;
  2695. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2696. esac
  2697. target=$ac_cv_target
  2698. ac_save_IFS=$IFS; IFS='-'
  2699. set x $ac_cv_target
  2700. shift
  2701. target_cpu=$1
  2702. target_vendor=$2
  2703. shift; shift
  2704. # Remember, the first character of IFS is used to create $*,
  2705. # except with old shells:
  2706. target_os=$*
  2707. IFS=$ac_save_IFS
  2708. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2709. # The aliases save the names the user supplied, while $host etc.
  2710. # will get canonicalized.
  2711. test -n "$target_alias" &&
  2712. test "$program_prefix$program_suffix$program_transform_name" = \
  2713. NONENONEs,x,x, &&
  2714. program_prefix=${target_alias}-
  2715. am__api_version='1.11'
  2716. # Find a good install program. We prefer a C program (faster),
  2717. # so one script is as good as another. But avoid the broken or
  2718. # incompatible versions:
  2719. # SysV /etc/install, /usr/sbin/install
  2720. # SunOS /usr/etc/install
  2721. # IRIX /sbin/install
  2722. # AIX /bin/install
  2723. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2724. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2725. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2726. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2727. # OS/2's system install, which has a completely different semantic
  2728. # ./install, which can be erroneously created by make from ./install.sh.
  2729. # Reject install programs that cannot install multiple files.
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2731. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2732. if test -z "$INSTALL"; then
  2733. if test "${ac_cv_path_install+set}" = set; then :
  2734. $as_echo_n "(cached) " >&6
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. # Account for people who put trailing slashes in PATH elements.
  2742. case $as_dir/ in #((
  2743. ./ | .// | /[cC]/* | \
  2744. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2745. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2746. /usr/ucb/* ) ;;
  2747. *)
  2748. # OSF1 and SCO ODT 3.0 have their own names for install.
  2749. # Don't use installbsd from OSF since it installs stuff as root
  2750. # by default.
  2751. for ac_prog in ginstall scoinst install; do
  2752. for ac_exec_ext in '' $ac_executable_extensions; do
  2753. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2754. if test $ac_prog = install &&
  2755. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2756. # AIX install. It has an incompatible calling convention.
  2757. :
  2758. elif test $ac_prog = install &&
  2759. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2760. # program-specific install script used by HP pwplus--don't use.
  2761. :
  2762. else
  2763. rm -rf conftest.one conftest.two conftest.dir
  2764. echo one > conftest.one
  2765. echo two > conftest.two
  2766. mkdir conftest.dir
  2767. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2768. test -s conftest.one && test -s conftest.two &&
  2769. test -s conftest.dir/conftest.one &&
  2770. test -s conftest.dir/conftest.two
  2771. then
  2772. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2773. break 3
  2774. fi
  2775. fi
  2776. fi
  2777. done
  2778. done
  2779. ;;
  2780. esac
  2781. done
  2782. IFS=$as_save_IFS
  2783. rm -rf conftest.one conftest.two conftest.dir
  2784. fi
  2785. if test "${ac_cv_path_install+set}" = set; then
  2786. INSTALL=$ac_cv_path_install
  2787. else
  2788. # As a last resort, use the slow shell script. Don't cache a
  2789. # value for INSTALL within a source directory, because that will
  2790. # break other packages using the cache if that directory is
  2791. # removed, or if the value is a relative name.
  2792. INSTALL=$ac_install_sh
  2793. fi
  2794. fi
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2796. $as_echo "$INSTALL" >&6; }
  2797. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2798. # It thinks the first close brace ends the variable substitution.
  2799. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2800. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2801. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2803. $as_echo_n "checking whether build environment is sane... " >&6; }
  2804. # Just in case
  2805. sleep 1
  2806. echo timestamp > conftest.file
  2807. # Reject unsafe characters in $srcdir or the absolute working directory
  2808. # name. Accept space and tab only in the latter.
  2809. am_lf='
  2810. '
  2811. case `pwd` in
  2812. *[\\\"\#\$\&\'\`$am_lf]*)
  2813. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2814. esac
  2815. case $srcdir in
  2816. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2817. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2818. esac
  2819. # Do `set' in a subshell so we don't clobber the current shell's
  2820. # arguments. Must try -L first in case configure is actually a
  2821. # symlink; some systems play weird games with the mod time of symlinks
  2822. # (eg FreeBSD returns the mod time of the symlink's containing
  2823. # directory).
  2824. if (
  2825. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2826. if test "$*" = "X"; then
  2827. # -L didn't work.
  2828. set X `ls -t "$srcdir/configure" conftest.file`
  2829. fi
  2830. rm -f conftest.file
  2831. if test "$*" != "X $srcdir/configure conftest.file" \
  2832. && test "$*" != "X conftest.file $srcdir/configure"; then
  2833. # If neither matched, then we have a broken ls. This can happen
  2834. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2835. # broken ls alias from the environment. This has actually
  2836. # happened. Such a system could not be considered "sane".
  2837. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2838. alias in your environment" "$LINENO" 5
  2839. fi
  2840. test "$2" = conftest.file
  2841. )
  2842. then
  2843. # Ok.
  2844. :
  2845. else
  2846. as_fn_error "newly created file is older than distributed files!
  2847. Check your system clock" "$LINENO" 5
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2850. $as_echo "yes" >&6; }
  2851. test "$program_prefix" != NONE &&
  2852. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2853. # Use a double $ so make ignores it.
  2854. test "$program_suffix" != NONE &&
  2855. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2856. # Double any \ or $.
  2857. # By default was `s,x,x', remove it if useless.
  2858. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2859. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2860. # expand $ac_aux_dir to an absolute path
  2861. am_aux_dir=`cd $ac_aux_dir && pwd`
  2862. if test x"${MISSING+set}" != xset; then
  2863. case $am_aux_dir in
  2864. *\ * | *\ *)
  2865. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2866. *)
  2867. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2868. esac
  2869. fi
  2870. # Use eval to expand $SHELL
  2871. if eval "$MISSING --run true"; then
  2872. am_missing_run="$MISSING --run "
  2873. else
  2874. am_missing_run=
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2876. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2877. fi
  2878. if test x"${install_sh}" != xset; then
  2879. case $am_aux_dir in
  2880. *\ * | *\ *)
  2881. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2882. *)
  2883. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2884. esac
  2885. fi
  2886. # Installed binaries are usually stripped using `strip' when the user
  2887. # run `make install-strip'. However `strip' might not be the right
  2888. # tool to use in cross-compilation environments, therefore Automake
  2889. # will honor the `STRIP' environment variable to overrule this program.
  2890. if test "$cross_compiling" != no; then
  2891. if test -n "$ac_tool_prefix"; then
  2892. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2893. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2895. $as_echo_n "checking for $ac_word... " >&6; }
  2896. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2897. $as_echo_n "(cached) " >&6
  2898. else
  2899. if test -n "$STRIP"; then
  2900. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2901. else
  2902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2903. for as_dir in $PATH
  2904. do
  2905. IFS=$as_save_IFS
  2906. test -z "$as_dir" && as_dir=.
  2907. for ac_exec_ext in '' $ac_executable_extensions; do
  2908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2909. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. fi
  2917. fi
  2918. STRIP=$ac_cv_prog_STRIP
  2919. if test -n "$STRIP"; then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2921. $as_echo "$STRIP" >&6; }
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. fi
  2926. fi
  2927. if test -z "$ac_cv_prog_STRIP"; then
  2928. ac_ct_STRIP=$STRIP
  2929. # Extract the first word of "strip", so it can be a program name with args.
  2930. set dummy strip; ac_word=$2
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2932. $as_echo_n "checking for $ac_word... " >&6; }
  2933. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. if test -n "$ac_ct_STRIP"; then
  2937. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2938. else
  2939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2940. for as_dir in $PATH
  2941. do
  2942. IFS=$as_save_IFS
  2943. test -z "$as_dir" && as_dir=.
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2946. ac_cv_prog_ac_ct_STRIP="strip"
  2947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2948. break 2
  2949. fi
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. fi
  2954. fi
  2955. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2956. if test -n "$ac_ct_STRIP"; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2958. $as_echo "$ac_ct_STRIP" >&6; }
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. fi
  2963. if test "x$ac_ct_STRIP" = x; then
  2964. STRIP=":"
  2965. else
  2966. case $cross_compiling:$ac_tool_warned in
  2967. yes:)
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2969. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2970. ac_tool_warned=yes ;;
  2971. esac
  2972. STRIP=$ac_ct_STRIP
  2973. fi
  2974. else
  2975. STRIP="$ac_cv_prog_STRIP"
  2976. fi
  2977. fi
  2978. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2980. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2981. if test -z "$MKDIR_P"; then
  2982. if test "${ac_cv_path_mkdir+set}" = set; then :
  2983. $as_echo_n "(cached) " >&6
  2984. else
  2985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2986. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2987. do
  2988. IFS=$as_save_IFS
  2989. test -z "$as_dir" && as_dir=.
  2990. for ac_prog in mkdir gmkdir; do
  2991. for ac_exec_ext in '' $ac_executable_extensions; do
  2992. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2993. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2994. 'mkdir (GNU coreutils) '* | \
  2995. 'mkdir (coreutils) '* | \
  2996. 'mkdir (fileutils) '4.1*)
  2997. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2998. break 3;;
  2999. esac
  3000. done
  3001. done
  3002. done
  3003. IFS=$as_save_IFS
  3004. fi
  3005. test -d ./--version && rmdir ./--version
  3006. if test "${ac_cv_path_mkdir+set}" = set; then
  3007. MKDIR_P="$ac_cv_path_mkdir -p"
  3008. else
  3009. # As a last resort, use the slow shell script. Don't cache a
  3010. # value for MKDIR_P within a source directory, because that will
  3011. # break other packages using the cache if that directory is
  3012. # removed, or if the value is a relative name.
  3013. MKDIR_P="$ac_install_sh -d"
  3014. fi
  3015. fi
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3017. $as_echo "$MKDIR_P" >&6; }
  3018. mkdir_p="$MKDIR_P"
  3019. case $mkdir_p in
  3020. [\\/$]* | ?:[\\/]*) ;;
  3021. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3022. esac
  3023. for ac_prog in gawk mawk nawk awk
  3024. do
  3025. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3026. set dummy $ac_prog; ac_word=$2
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3028. $as_echo_n "checking for $ac_word... " >&6; }
  3029. if test "${ac_cv_prog_AWK+set}" = set; then :
  3030. $as_echo_n "(cached) " >&6
  3031. else
  3032. if test -n "$AWK"; then
  3033. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3034. else
  3035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3036. for as_dir in $PATH
  3037. do
  3038. IFS=$as_save_IFS
  3039. test -z "$as_dir" && as_dir=.
  3040. for ac_exec_ext in '' $ac_executable_extensions; do
  3041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3042. ac_cv_prog_AWK="$ac_prog"
  3043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3044. break 2
  3045. fi
  3046. done
  3047. done
  3048. IFS=$as_save_IFS
  3049. fi
  3050. fi
  3051. AWK=$ac_cv_prog_AWK
  3052. if test -n "$AWK"; then
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3054. $as_echo "$AWK" >&6; }
  3055. else
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3057. $as_echo "no" >&6; }
  3058. fi
  3059. test -n "$AWK" && break
  3060. done
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3062. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3063. set x ${MAKE-make}
  3064. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3065. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3066. $as_echo_n "(cached) " >&6
  3067. else
  3068. cat >conftest.make <<\_ACEOF
  3069. SHELL = /bin/sh
  3070. all:
  3071. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3072. _ACEOF
  3073. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3074. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3075. *@@@%%%=?*=@@@%%%*)
  3076. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3077. *)
  3078. eval ac_cv_prog_make_${ac_make}_set=no;;
  3079. esac
  3080. rm -f conftest.make
  3081. fi
  3082. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3084. $as_echo "yes" >&6; }
  3085. SET_MAKE=
  3086. else
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3088. $as_echo "no" >&6; }
  3089. SET_MAKE="MAKE=${MAKE-make}"
  3090. fi
  3091. rm -rf .tst 2>/dev/null
  3092. mkdir .tst 2>/dev/null
  3093. if test -d .tst; then
  3094. am__leading_dot=.
  3095. else
  3096. am__leading_dot=_
  3097. fi
  3098. rmdir .tst 2>/dev/null
  3099. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3100. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3101. # is not polluted with repeated "-I."
  3102. am__isrc=' -I$(srcdir)'
  3103. # test to see if srcdir already configured
  3104. if test -f $srcdir/config.status; then
  3105. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3106. fi
  3107. fi
  3108. # test whether we have cygpath
  3109. if test -z "$CYGPATH_W"; then
  3110. if (cygpath --version) >/dev/null 2>/dev/null; then
  3111. CYGPATH_W='cygpath -w'
  3112. else
  3113. CYGPATH_W=echo
  3114. fi
  3115. fi
  3116. # Define the identity of the package.
  3117. PACKAGE='aria2'
  3118. VERSION='1.9.1'
  3119. cat >>confdefs.h <<_ACEOF
  3120. #define PACKAGE "$PACKAGE"
  3121. _ACEOF
  3122. cat >>confdefs.h <<_ACEOF
  3123. #define VERSION "$VERSION"
  3124. _ACEOF
  3125. # Some tools Automake needs.
  3126. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3127. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3128. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3129. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3130. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3131. # We need awk for the "check" target. The system "awk" is bad on
  3132. # some platforms.
  3133. # Always define AMTAR for backward compatibility.
  3134. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3135. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3136. # Check whether --with-cppunit-prefix was given.
  3137. if test "${with_cppunit_prefix+set}" = set; then :
  3138. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3139. else
  3140. cppunit_config_prefix=""
  3141. fi
  3142. # Check whether --with-cppunit-exec-prefix was given.
  3143. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3144. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3145. else
  3146. cppunit_config_exec_prefix=""
  3147. fi
  3148. if test x$cppunit_config_exec_prefix != x ; then
  3149. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3150. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3151. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3152. fi
  3153. fi
  3154. if test x$cppunit_config_prefix != x ; then
  3155. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3156. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3157. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3158. fi
  3159. fi
  3160. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3161. set dummy cppunit-config; ac_word=$2
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3163. $as_echo_n "checking for $ac_word... " >&6; }
  3164. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. case $CPPUNIT_CONFIG in
  3168. [\\/]* | ?:[\\/]*)
  3169. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3170. ;;
  3171. *)
  3172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3173. for as_dir in $PATH
  3174. do
  3175. IFS=$as_save_IFS
  3176. test -z "$as_dir" && as_dir=.
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3179. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3181. break 2
  3182. fi
  3183. done
  3184. done
  3185. IFS=$as_save_IFS
  3186. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3187. ;;
  3188. esac
  3189. fi
  3190. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3191. if test -n "$CPPUNIT_CONFIG"; then
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3193. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3194. else
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3196. $as_echo "no" >&6; }
  3197. fi
  3198. cppunit_version_min=1.10.2
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3200. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3201. no_cppunit=""
  3202. if test "$CPPUNIT_CONFIG" = "no" ; then
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3204. $as_echo "no" >&6; }
  3205. no_cppunit=yes
  3206. else
  3207. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3208. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3209. cppunit_version=`$CPPUNIT_CONFIG --version`
  3210. cppunit_major_version=`echo $cppunit_version | \
  3211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3212. cppunit_minor_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3214. cppunit_micro_version=`echo $cppunit_version | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3216. cppunit_major_min=`echo $cppunit_version_min | \
  3217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3218. if test "x${cppunit_major_min}" = "x" ; then
  3219. cppunit_major_min=0
  3220. fi
  3221. cppunit_minor_min=`echo $cppunit_version_min | \
  3222. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3223. if test "x${cppunit_minor_min}" = "x" ; then
  3224. cppunit_minor_min=0
  3225. fi
  3226. cppunit_micro_min=`echo $cppunit_version_min | \
  3227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3228. if test "x${cppunit_micro_min}" = "x" ; then
  3229. cppunit_micro_min=0
  3230. fi
  3231. cppunit_version_proper=`expr \
  3232. $cppunit_major_version \> $cppunit_major_min \| \
  3233. $cppunit_major_version \= $cppunit_major_min \& \
  3234. $cppunit_minor_version \> $cppunit_minor_min \| \
  3235. $cppunit_major_version \= $cppunit_major_min \& \
  3236. $cppunit_minor_version \= $cppunit_minor_min \& \
  3237. $cppunit_micro_version \>= $cppunit_micro_min `
  3238. if test "$cppunit_version_proper" = "1" ; then
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3240. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3243. $as_echo "no" >&6; }
  3244. no_cppunit=yes
  3245. fi
  3246. fi
  3247. if test "x$no_cppunit" = x ; then
  3248. :
  3249. else
  3250. CPPUNIT_CFLAGS=""
  3251. CPPUNIT_LIBS=""
  3252. :
  3253. fi
  3254. ac_config_headers="$ac_config_headers config.h"
  3255. case "$target" in
  3256. *mingw*|*cygwin*)
  3257. WINSOCK_LIBS="-lws2_32"
  3258. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3259. ;;
  3260. esac
  3261. cat >>confdefs.h <<_ACEOF
  3262. #define TARGET "$target"
  3263. _ACEOF
  3264. # Checks for arguments.
  3265. # Check whether --with-gnutls was given.
  3266. if test "${with_gnutls+set}" = set; then :
  3267. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3268. else
  3269. with_gnutls=yes
  3270. fi
  3271. # Check whether --with-openssl was given.
  3272. if test "${with_openssl+set}" = set; then :
  3273. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3274. else
  3275. with_openssl=yes
  3276. fi
  3277. # Check whether --with-sqlite3 was given.
  3278. if test "${with_sqlite3+set}" = set; then :
  3279. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3280. else
  3281. with_sqlite3=yes
  3282. fi
  3283. # Check whether --with-libxml2 was given.
  3284. if test "${with_libxml2+set}" = set; then :
  3285. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3286. else
  3287. with_libxml2=yes
  3288. fi
  3289. # Check whether --with-libexpat was given.
  3290. if test "${with_libexpat+set}" = set; then :
  3291. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3292. else
  3293. with_libexpat=yes
  3294. fi
  3295. # Check whether --with-libcares was given.
  3296. if test "${with_libcares+set}" = set; then :
  3297. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3298. else
  3299. with_libcares=yes
  3300. fi
  3301. # Check whether --with-libz was given.
  3302. if test "${with_libz+set}" = set; then :
  3303. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3304. else
  3305. with_libz=yes
  3306. fi
  3307. # Check whether --enable-bittorrent was given.
  3308. if test "${enable_bittorrent+set}" = set; then :
  3309. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3310. else
  3311. enable_bittorrent=yes
  3312. fi
  3313. # Check whether --enable-metalink was given.
  3314. if test "${enable_metalink+set}" = set; then :
  3315. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3316. else
  3317. enable_metalink=yes
  3318. fi
  3319. # Check whether --enable-epoll was given.
  3320. if test "${enable_epoll+set}" = set; then :
  3321. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3322. else
  3323. enable_epoll=yes
  3324. fi
  3325. # Check whether --with-ca-bundle was given.
  3326. if test "${with_ca_bundle+set}" = set; then :
  3327. withval=$with_ca_bundle; ca_bundle=$withval
  3328. else
  3329. ca_bundle=""
  3330. fi
  3331. # Checks for programs.
  3332. ac_ext=cpp
  3333. ac_cpp='$CXXCPP $CPPFLAGS'
  3334. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3335. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3336. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3337. if test -z "$CXX"; then
  3338. if test -n "$CCC"; then
  3339. CXX=$CCC
  3340. else
  3341. if test -n "$ac_tool_prefix"; then
  3342. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3343. do
  3344. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3345. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3347. $as_echo_n "checking for $ac_word... " >&6; }
  3348. if test "${ac_cv_prog_CXX+set}" = set; then :
  3349. $as_echo_n "(cached) " >&6
  3350. else
  3351. if test -n "$CXX"; then
  3352. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3353. else
  3354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3355. for as_dir in $PATH
  3356. do
  3357. IFS=$as_save_IFS
  3358. test -z "$as_dir" && as_dir=.
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3361. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3363. break 2
  3364. fi
  3365. done
  3366. done
  3367. IFS=$as_save_IFS
  3368. fi
  3369. fi
  3370. CXX=$ac_cv_prog_CXX
  3371. if test -n "$CXX"; then
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3373. $as_echo "$CXX" >&6; }
  3374. else
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3376. $as_echo "no" >&6; }
  3377. fi
  3378. test -n "$CXX" && break
  3379. done
  3380. fi
  3381. if test -z "$CXX"; then
  3382. ac_ct_CXX=$CXX
  3383. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3384. do
  3385. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3386. set dummy $ac_prog; ac_word=$2
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3388. $as_echo_n "checking for $ac_word... " >&6; }
  3389. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -n "$ac_ct_CXX"; then
  3393. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3402. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3412. if test -n "$ac_ct_CXX"; then
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3414. $as_echo "$ac_ct_CXX" >&6; }
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. fi
  3419. test -n "$ac_ct_CXX" && break
  3420. done
  3421. if test "x$ac_ct_CXX" = x; then
  3422. CXX="g++"
  3423. else
  3424. case $cross_compiling:$ac_tool_warned in
  3425. yes:)
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3428. ac_tool_warned=yes ;;
  3429. esac
  3430. CXX=$ac_ct_CXX
  3431. fi
  3432. fi
  3433. fi
  3434. fi
  3435. # Provide some information about the compiler.
  3436. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3437. set X $ac_compile
  3438. ac_compiler=$2
  3439. for ac_option in --version -v -V -qversion; do
  3440. { { ac_try="$ac_compiler $ac_option >&5"
  3441. case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3446. $as_echo "$ac_try_echo"; } >&5
  3447. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3448. ac_status=$?
  3449. if test -s conftest.err; then
  3450. sed '10a\
  3451. ... rest of stderr output deleted ...
  3452. 10q' conftest.err >conftest.er1
  3453. cat conftest.er1 >&5
  3454. fi
  3455. rm -f conftest.er1 conftest.err
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3457. test $ac_status = 0; }
  3458. done
  3459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end confdefs.h. */
  3461. int
  3462. main ()
  3463. {
  3464. ;
  3465. return 0;
  3466. }
  3467. _ACEOF
  3468. ac_clean_files_save=$ac_clean_files
  3469. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3470. # Try to create an executable without -o first, disregard a.out.
  3471. # It will help us diagnose broken compilers, and finding out an intuition
  3472. # of exeext.
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3474. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3475. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3476. # The possible output files:
  3477. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3478. ac_rmfiles=
  3479. for ac_file in $ac_files
  3480. do
  3481. case $ac_file in
  3482. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3483. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3484. esac
  3485. done
  3486. rm -f $ac_rmfiles
  3487. if { { ac_try="$ac_link_default"
  3488. case "(($ac_try" in
  3489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3490. *) ac_try_echo=$ac_try;;
  3491. esac
  3492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3493. $as_echo "$ac_try_echo"; } >&5
  3494. (eval "$ac_link_default") 2>&5
  3495. ac_status=$?
  3496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3497. test $ac_status = 0; }; then :
  3498. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3499. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3500. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3501. # so that the user can short-circuit this test for compilers unknown to
  3502. # Autoconf.
  3503. for ac_file in $ac_files ''
  3504. do
  3505. test -f "$ac_file" || continue
  3506. case $ac_file in
  3507. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3508. ;;
  3509. [ab].out )
  3510. # We found the default executable, but exeext='' is most
  3511. # certainly right.
  3512. break;;
  3513. *.* )
  3514. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3515. then :; else
  3516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3517. fi
  3518. # We set ac_cv_exeext here because the later test for it is not
  3519. # safe: cross compilers may not add the suffix if given an `-o'
  3520. # argument, so we may need to know it at that point already.
  3521. # Even if this section looks crufty: it has the advantage of
  3522. # actually working.
  3523. break;;
  3524. * )
  3525. break;;
  3526. esac
  3527. done
  3528. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3529. else
  3530. ac_file=''
  3531. fi
  3532. if test -z "$ac_file"; then :
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3534. $as_echo "no" >&6; }
  3535. $as_echo "$as_me: failed program was:" >&5
  3536. sed 's/^/| /' conftest.$ac_ext >&5
  3537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3539. { as_fn_set_status 77
  3540. as_fn_error "C++ compiler cannot create executables
  3541. See \`config.log' for more details." "$LINENO" 5; }; }
  3542. else
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3544. $as_echo "yes" >&6; }
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3547. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3549. $as_echo "$ac_file" >&6; }
  3550. ac_exeext=$ac_cv_exeext
  3551. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3552. ac_clean_files=$ac_clean_files_save
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3554. $as_echo_n "checking for suffix of executables... " >&6; }
  3555. if { { ac_try="$ac_link"
  3556. case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3561. $as_echo "$ac_try_echo"; } >&5
  3562. (eval "$ac_link") 2>&5
  3563. ac_status=$?
  3564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3565. test $ac_status = 0; }; then :
  3566. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3567. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3568. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3569. # `rm'.
  3570. for ac_file in conftest.exe conftest conftest.*; do
  3571. test -f "$ac_file" || continue
  3572. case $ac_file in
  3573. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3574. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3575. break;;
  3576. * ) break;;
  3577. esac
  3578. done
  3579. else
  3580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3582. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3583. See \`config.log' for more details." "$LINENO" 5; }
  3584. fi
  3585. rm -f conftest conftest$ac_cv_exeext
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3587. $as_echo "$ac_cv_exeext" >&6; }
  3588. rm -f conftest.$ac_ext
  3589. EXEEXT=$ac_cv_exeext
  3590. ac_exeext=$EXEEXT
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. #include <stdio.h>
  3594. int
  3595. main ()
  3596. {
  3597. FILE *f = fopen ("conftest.out", "w");
  3598. return ferror (f) || fclose (f) != 0;
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. ac_clean_files="$ac_clean_files conftest.out"
  3604. # Check that the compiler produces executables we can run. If not, either
  3605. # the compiler is broken, or we cross compile.
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3607. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3608. if test "$cross_compiling" != yes; then
  3609. { { ac_try="$ac_link"
  3610. case "(($ac_try" in
  3611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3612. *) ac_try_echo=$ac_try;;
  3613. esac
  3614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3615. $as_echo "$ac_try_echo"; } >&5
  3616. (eval "$ac_link") 2>&5
  3617. ac_status=$?
  3618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3619. test $ac_status = 0; }
  3620. if { ac_try='./conftest$ac_cv_exeext'
  3621. { { case "(($ac_try" in
  3622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3623. *) ac_try_echo=$ac_try;;
  3624. esac
  3625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3626. $as_echo "$ac_try_echo"; } >&5
  3627. (eval "$ac_try") 2>&5
  3628. ac_status=$?
  3629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3630. test $ac_status = 0; }; }; then
  3631. cross_compiling=no
  3632. else
  3633. if test "$cross_compiling" = maybe; then
  3634. cross_compiling=yes
  3635. else
  3636. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3638. as_fn_error "cannot run C++ compiled programs.
  3639. If you meant to cross compile, use \`--host'.
  3640. See \`config.log' for more details." "$LINENO" 5; }
  3641. fi
  3642. fi
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3645. $as_echo "$cross_compiling" >&6; }
  3646. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3647. ac_clean_files=$ac_clean_files_save
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3649. $as_echo_n "checking for suffix of object files... " >&6; }
  3650. if test "${ac_cv_objext+set}" = set; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. rm -f conftest.o conftest.obj
  3663. if { { ac_try="$ac_compile"
  3664. case "(($ac_try" in
  3665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3666. *) ac_try_echo=$ac_try;;
  3667. esac
  3668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3669. $as_echo "$ac_try_echo"; } >&5
  3670. (eval "$ac_compile") 2>&5
  3671. ac_status=$?
  3672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3673. test $ac_status = 0; }; then :
  3674. for ac_file in conftest.o conftest.obj conftest.*; do
  3675. test -f "$ac_file" || continue;
  3676. case $ac_file in
  3677. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3678. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3679. break;;
  3680. esac
  3681. done
  3682. else
  3683. $as_echo "$as_me: failed program was:" >&5
  3684. sed 's/^/| /' conftest.$ac_ext >&5
  3685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3687. as_fn_error "cannot compute suffix of object files: cannot compile
  3688. See \`config.log' for more details." "$LINENO" 5; }
  3689. fi
  3690. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3691. fi
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3693. $as_echo "$ac_cv_objext" >&6; }
  3694. OBJEXT=$ac_cv_objext
  3695. ac_objext=$OBJEXT
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3697. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3698. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3702. /* end confdefs.h. */
  3703. int
  3704. main ()
  3705. {
  3706. #ifndef __GNUC__
  3707. choke me
  3708. #endif
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. if ac_fn_cxx_try_compile "$LINENO"; then :
  3714. ac_compiler_gnu=yes
  3715. else
  3716. ac_compiler_gnu=no
  3717. fi
  3718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3719. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3722. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3723. if test $ac_compiler_gnu = yes; then
  3724. GXX=yes
  3725. else
  3726. GXX=
  3727. fi
  3728. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3729. ac_save_CXXFLAGS=$CXXFLAGS
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3731. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3732. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3733. $as_echo_n "(cached) " >&6
  3734. else
  3735. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3736. ac_cxx_werror_flag=yes
  3737. ac_cv_prog_cxx_g=no
  3738. CXXFLAGS="-g"
  3739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3740. /* end confdefs.h. */
  3741. int
  3742. main ()
  3743. {
  3744. ;
  3745. return 0;
  3746. }
  3747. _ACEOF
  3748. if ac_fn_cxx_try_compile "$LINENO"; then :
  3749. ac_cv_prog_cxx_g=yes
  3750. else
  3751. CXXFLAGS=""
  3752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3753. /* end confdefs.h. */
  3754. int
  3755. main ()
  3756. {
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. if ac_fn_cxx_try_compile "$LINENO"; then :
  3762. else
  3763. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3764. CXXFLAGS="-g"
  3765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3766. /* end confdefs.h. */
  3767. int
  3768. main ()
  3769. {
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. if ac_fn_cxx_try_compile "$LINENO"; then :
  3775. ac_cv_prog_cxx_g=yes
  3776. fi
  3777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3785. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3786. if test "$ac_test_CXXFLAGS" = set; then
  3787. CXXFLAGS=$ac_save_CXXFLAGS
  3788. elif test $ac_cv_prog_cxx_g = yes; then
  3789. if test "$GXX" = yes; then
  3790. CXXFLAGS="-g -O2"
  3791. else
  3792. CXXFLAGS="-g"
  3793. fi
  3794. else
  3795. if test "$GXX" = yes; then
  3796. CXXFLAGS="-O2"
  3797. else
  3798. CXXFLAGS=
  3799. fi
  3800. fi
  3801. ac_ext=c
  3802. ac_cpp='$CPP $CPPFLAGS'
  3803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3806. DEPDIR="${am__leading_dot}deps"
  3807. ac_config_commands="$ac_config_commands depfiles"
  3808. am_make=${MAKE-make}
  3809. cat > confinc << 'END'
  3810. am__doit:
  3811. @echo this is the am__doit target
  3812. .PHONY: am__doit
  3813. END
  3814. # If we don't find an include directive, just comment out the code.
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3816. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3817. am__include="#"
  3818. am__quote=
  3819. _am_result=none
  3820. # First try GNU make style include.
  3821. echo "include confinc" > confmf
  3822. # Ignore all kinds of additional output from `make'.
  3823. case `$am_make -s -f confmf 2> /dev/null` in #(
  3824. *the\ am__doit\ target*)
  3825. am__include=include
  3826. am__quote=
  3827. _am_result=GNU
  3828. ;;
  3829. esac
  3830. # Now try BSD make style include.
  3831. if test "$am__include" = "#"; then
  3832. echo '.include "confinc"' > confmf
  3833. case `$am_make -s -f confmf 2> /dev/null` in #(
  3834. *the\ am__doit\ target*)
  3835. am__include=.include
  3836. am__quote="\""
  3837. _am_result=BSD
  3838. ;;
  3839. esac
  3840. fi
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3842. $as_echo "$_am_result" >&6; }
  3843. rm -f confinc confmf
  3844. # Check whether --enable-dependency-tracking was given.
  3845. if test "${enable_dependency_tracking+set}" = set; then :
  3846. enableval=$enable_dependency_tracking;
  3847. fi
  3848. if test "x$enable_dependency_tracking" != xno; then
  3849. am_depcomp="$ac_aux_dir/depcomp"
  3850. AMDEPBACKSLASH='\'
  3851. fi
  3852. if test "x$enable_dependency_tracking" != xno; then
  3853. AMDEP_TRUE=
  3854. AMDEP_FALSE='#'
  3855. else
  3856. AMDEP_TRUE='#'
  3857. AMDEP_FALSE=
  3858. fi
  3859. depcc="$CXX" am_compiler_list=
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3861. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3862. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3866. # We make a subdir and do the tests there. Otherwise we can end up
  3867. # making bogus files that we don't know about and never remove. For
  3868. # instance it was reported that on HP-UX the gcc test will end up
  3869. # making a dummy file named `D' -- because `-MD' means `put the output
  3870. # in D'.
  3871. mkdir conftest.dir
  3872. # Copy depcomp to subdir because otherwise we won't find it if we're
  3873. # using a relative directory.
  3874. cp "$am_depcomp" conftest.dir
  3875. cd conftest.dir
  3876. # We will build objects and dependencies in a subdirectory because
  3877. # it helps to detect inapplicable dependency modes. For instance
  3878. # both Tru64's cc and ICC support -MD to output dependencies as a
  3879. # side effect of compilation, but ICC will put the dependencies in
  3880. # the current directory while Tru64 will put them in the object
  3881. # directory.
  3882. mkdir sub
  3883. am_cv_CXX_dependencies_compiler_type=none
  3884. if test "$am_compiler_list" = ""; then
  3885. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3886. fi
  3887. am__universal=false
  3888. case " $depcc " in #(
  3889. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3890. esac
  3891. for depmode in $am_compiler_list; do
  3892. # Setup a source with many dependencies, because some compilers
  3893. # like to wrap large dependency lists on column 80 (with \), and
  3894. # we should not choose a depcomp mode which is confused by this.
  3895. #
  3896. # We need to recreate these files for each test, as the compiler may
  3897. # overwrite some of them when testing with obscure command lines.
  3898. # This happens at least with the AIX C compiler.
  3899. : > sub/conftest.c
  3900. for i in 1 2 3 4 5 6; do
  3901. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3902. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3903. # Solaris 8's {/usr,}/bin/sh.
  3904. touch sub/conftst$i.h
  3905. done
  3906. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3907. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3908. # mode. It turns out that the SunPro C++ compiler does not properly
  3909. # handle `-M -o', and we need to detect this. Also, some Intel
  3910. # versions had trouble with output in subdirs
  3911. am__obj=sub/conftest.${OBJEXT-o}
  3912. am__minus_obj="-o $am__obj"
  3913. case $depmode in
  3914. gcc)
  3915. # This depmode causes a compiler race in universal mode.
  3916. test "$am__universal" = false || continue
  3917. ;;
  3918. nosideeffect)
  3919. # after this tag, mechanisms are not by side-effect, so they'll
  3920. # only be used when explicitly requested
  3921. if test "x$enable_dependency_tracking" = xyes; then
  3922. continue
  3923. else
  3924. break
  3925. fi
  3926. ;;
  3927. msvisualcpp | msvcmsys)
  3928. # This compiler won't grok `-c -o', but also, the minuso test has
  3929. # not run yet. These depmodes are late enough in the game, and
  3930. # so weak that their functioning should not be impacted.
  3931. am__obj=conftest.${OBJEXT-o}
  3932. am__minus_obj=
  3933. ;;
  3934. none) break ;;
  3935. esac
  3936. if depmode=$depmode \
  3937. source=sub/conftest.c object=$am__obj \
  3938. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3939. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3940. >/dev/null 2>conftest.err &&
  3941. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3942. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3943. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3944. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3945. # icc doesn't choke on unknown options, it will just issue warnings
  3946. # or remarks (even with -Werror). So we grep stderr for any message
  3947. # that says an option was ignored or not supported.
  3948. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3949. # icc: Command line warning: ignoring option '-M'; no argument required
  3950. # The diagnosis changed in icc 8.0:
  3951. # icc: Command line remark: option '-MP' not supported
  3952. if (grep 'ignoring option' conftest.err ||
  3953. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3954. am_cv_CXX_dependencies_compiler_type=$depmode
  3955. break
  3956. fi
  3957. fi
  3958. done
  3959. cd ..
  3960. rm -rf conftest.dir
  3961. else
  3962. am_cv_CXX_dependencies_compiler_type=none
  3963. fi
  3964. fi
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3966. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3967. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3968. if
  3969. test "x$enable_dependency_tracking" != xno \
  3970. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3971. am__fastdepCXX_TRUE=
  3972. am__fastdepCXX_FALSE='#'
  3973. else
  3974. am__fastdepCXX_TRUE='#'
  3975. am__fastdepCXX_FALSE=
  3976. fi
  3977. ac_ext=c
  3978. ac_cpp='$CPP $CPPFLAGS'
  3979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. if test -n "$ac_tool_prefix"; then
  3983. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3984. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3986. $as_echo_n "checking for $ac_word... " >&6; }
  3987. if test "${ac_cv_prog_CC+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. if test -n "$CC"; then
  3991. ac_cv_prog_CC="$CC" # Let the user override the test.
  3992. else
  3993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3994. for as_dir in $PATH
  3995. do
  3996. IFS=$as_save_IFS
  3997. test -z "$as_dir" && as_dir=.
  3998. for ac_exec_ext in '' $ac_executable_extensions; do
  3999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4000. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4002. break 2
  4003. fi
  4004. done
  4005. done
  4006. IFS=$as_save_IFS
  4007. fi
  4008. fi
  4009. CC=$ac_cv_prog_CC
  4010. if test -n "$CC"; then
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4012. $as_echo "$CC" >&6; }
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4015. $as_echo "no" >&6; }
  4016. fi
  4017. fi
  4018. if test -z "$ac_cv_prog_CC"; then
  4019. ac_ct_CC=$CC
  4020. # Extract the first word of "gcc", so it can be a program name with args.
  4021. set dummy gcc; ac_word=$2
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4023. $as_echo_n "checking for $ac_word... " >&6; }
  4024. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. if test -n "$ac_ct_CC"; then
  4028. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4029. else
  4030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4031. for as_dir in $PATH
  4032. do
  4033. IFS=$as_save_IFS
  4034. test -z "$as_dir" && as_dir=.
  4035. for ac_exec_ext in '' $ac_executable_extensions; do
  4036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4037. ac_cv_prog_ac_ct_CC="gcc"
  4038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4039. break 2
  4040. fi
  4041. done
  4042. done
  4043. IFS=$as_save_IFS
  4044. fi
  4045. fi
  4046. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4047. if test -n "$ac_ct_CC"; then
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4049. $as_echo "$ac_ct_CC" >&6; }
  4050. else
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4052. $as_echo "no" >&6; }
  4053. fi
  4054. if test "x$ac_ct_CC" = x; then
  4055. CC=""
  4056. else
  4057. case $cross_compiling:$ac_tool_warned in
  4058. yes:)
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4061. ac_tool_warned=yes ;;
  4062. esac
  4063. CC=$ac_ct_CC
  4064. fi
  4065. else
  4066. CC="$ac_cv_prog_CC"
  4067. fi
  4068. if test -z "$CC"; then
  4069. if test -n "$ac_tool_prefix"; then
  4070. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4071. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4073. $as_echo_n "checking for $ac_word... " >&6; }
  4074. if test "${ac_cv_prog_CC+set}" = set; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. if test -n "$CC"; then
  4078. ac_cv_prog_CC="$CC" # Let the user override the test.
  4079. else
  4080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4081. for as_dir in $PATH
  4082. do
  4083. IFS=$as_save_IFS
  4084. test -z "$as_dir" && as_dir=.
  4085. for ac_exec_ext in '' $ac_executable_extensions; do
  4086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4087. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4089. break 2
  4090. fi
  4091. done
  4092. done
  4093. IFS=$as_save_IFS
  4094. fi
  4095. fi
  4096. CC=$ac_cv_prog_CC
  4097. if test -n "$CC"; then
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4099. $as_echo "$CC" >&6; }
  4100. else
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4102. $as_echo "no" >&6; }
  4103. fi
  4104. fi
  4105. fi
  4106. if test -z "$CC"; then
  4107. # Extract the first word of "cc", so it can be a program name with args.
  4108. set dummy cc; ac_word=$2
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4110. $as_echo_n "checking for $ac_word... " >&6; }
  4111. if test "${ac_cv_prog_CC+set}" = set; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. if test -n "$CC"; then
  4115. ac_cv_prog_CC="$CC" # Let the user override the test.
  4116. else
  4117. ac_prog_rejected=no
  4118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4119. for as_dir in $PATH
  4120. do
  4121. IFS=$as_save_IFS
  4122. test -z "$as_dir" && as_dir=.
  4123. for ac_exec_ext in '' $ac_executable_extensions; do
  4124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4125. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4126. ac_prog_rejected=yes
  4127. continue
  4128. fi
  4129. ac_cv_prog_CC="cc"
  4130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4131. break 2
  4132. fi
  4133. done
  4134. done
  4135. IFS=$as_save_IFS
  4136. if test $ac_prog_rejected = yes; then
  4137. # We found a bogon in the path, so make sure we never use it.
  4138. set dummy $ac_cv_prog_CC
  4139. shift
  4140. if test $# != 0; then
  4141. # We chose a different compiler from the bogus one.
  4142. # However, it has the same basename, so the bogon will be chosen
  4143. # first if we set CC to just the basename; use the full file name.
  4144. shift
  4145. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4146. fi
  4147. fi
  4148. fi
  4149. fi
  4150. CC=$ac_cv_prog_CC
  4151. if test -n "$CC"; then
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4153. $as_echo "$CC" >&6; }
  4154. else
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4156. $as_echo "no" >&6; }
  4157. fi
  4158. fi
  4159. if test -z "$CC"; then
  4160. if test -n "$ac_tool_prefix"; then
  4161. for ac_prog in cl.exe
  4162. do
  4163. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4164. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if test "${ac_cv_prog_CC+set}" = set; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$CC"; then
  4171. ac_cv_prog_CC="$CC" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4180. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. CC=$ac_cv_prog_CC
  4190. if test -n "$CC"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4192. $as_echo "$CC" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. test -n "$CC" && break
  4198. done
  4199. fi
  4200. if test -z "$CC"; then
  4201. ac_ct_CC=$CC
  4202. for ac_prog in cl.exe
  4203. do
  4204. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4205. set dummy $ac_prog; ac_word=$2
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4207. $as_echo_n "checking for $ac_word... " >&6; }
  4208. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. if test -n "$ac_ct_CC"; then
  4212. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4213. else
  4214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4215. for as_dir in $PATH
  4216. do
  4217. IFS=$as_save_IFS
  4218. test -z "$as_dir" && as_dir=.
  4219. for ac_exec_ext in '' $ac_executable_extensions; do
  4220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4221. ac_cv_prog_ac_ct_CC="$ac_prog"
  4222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4223. break 2
  4224. fi
  4225. done
  4226. done
  4227. IFS=$as_save_IFS
  4228. fi
  4229. fi
  4230. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4231. if test -n "$ac_ct_CC"; then
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4233. $as_echo "$ac_ct_CC" >&6; }
  4234. else
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4236. $as_echo "no" >&6; }
  4237. fi
  4238. test -n "$ac_ct_CC" && break
  4239. done
  4240. if test "x$ac_ct_CC" = x; then
  4241. CC=""
  4242. else
  4243. case $cross_compiling:$ac_tool_warned in
  4244. yes:)
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4246. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4247. ac_tool_warned=yes ;;
  4248. esac
  4249. CC=$ac_ct_CC
  4250. fi
  4251. fi
  4252. fi
  4253. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4255. as_fn_error "no acceptable C compiler found in \$PATH
  4256. See \`config.log' for more details." "$LINENO" 5; }
  4257. # Provide some information about the compiler.
  4258. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4259. set X $ac_compile
  4260. ac_compiler=$2
  4261. for ac_option in --version -v -V -qversion; do
  4262. { { ac_try="$ac_compiler $ac_option >&5"
  4263. case "(($ac_try" in
  4264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4265. *) ac_try_echo=$ac_try;;
  4266. esac
  4267. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4268. $as_echo "$ac_try_echo"; } >&5
  4269. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4270. ac_status=$?
  4271. if test -s conftest.err; then
  4272. sed '10a\
  4273. ... rest of stderr output deleted ...
  4274. 10q' conftest.err >conftest.er1
  4275. cat conftest.er1 >&5
  4276. fi
  4277. rm -f conftest.er1 conftest.err
  4278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4279. test $ac_status = 0; }
  4280. done
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4282. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4283. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. #ifndef __GNUC__
  4292. choke me
  4293. #endif
  4294. ;
  4295. return 0;
  4296. }
  4297. _ACEOF
  4298. if ac_fn_c_try_compile "$LINENO"; then :
  4299. ac_compiler_gnu=yes
  4300. else
  4301. ac_compiler_gnu=no
  4302. fi
  4303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4304. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4307. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4308. if test $ac_compiler_gnu = yes; then
  4309. GCC=yes
  4310. else
  4311. GCC=
  4312. fi
  4313. ac_test_CFLAGS=${CFLAGS+set}
  4314. ac_save_CFLAGS=$CFLAGS
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4316. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4317. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. ac_save_c_werror_flag=$ac_c_werror_flag
  4321. ac_c_werror_flag=yes
  4322. ac_cv_prog_cc_g=no
  4323. CFLAGS="-g"
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. int
  4327. main ()
  4328. {
  4329. ;
  4330. return 0;
  4331. }
  4332. _ACEOF
  4333. if ac_fn_c_try_compile "$LINENO"; then :
  4334. ac_cv_prog_cc_g=yes
  4335. else
  4336. CFLAGS=""
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. int
  4340. main ()
  4341. {
  4342. ;
  4343. return 0;
  4344. }
  4345. _ACEOF
  4346. if ac_fn_c_try_compile "$LINENO"; then :
  4347. else
  4348. ac_c_werror_flag=$ac_save_c_werror_flag
  4349. CFLAGS="-g"
  4350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h. */
  4352. int
  4353. main ()
  4354. {
  4355. ;
  4356. return 0;
  4357. }
  4358. _ACEOF
  4359. if ac_fn_c_try_compile "$LINENO"; then :
  4360. ac_cv_prog_cc_g=yes
  4361. fi
  4362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4370. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4371. if test "$ac_test_CFLAGS" = set; then
  4372. CFLAGS=$ac_save_CFLAGS
  4373. elif test $ac_cv_prog_cc_g = yes; then
  4374. if test "$GCC" = yes; then
  4375. CFLAGS="-g -O2"
  4376. else
  4377. CFLAGS="-g"
  4378. fi
  4379. else
  4380. if test "$GCC" = yes; then
  4381. CFLAGS="-O2"
  4382. else
  4383. CFLAGS=
  4384. fi
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4387. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4388. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4389. $as_echo_n "(cached) " >&6
  4390. else
  4391. ac_cv_prog_cc_c89=no
  4392. ac_save_CC=$CC
  4393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4394. /* end confdefs.h. */
  4395. #include <stdarg.h>
  4396. #include <stdio.h>
  4397. #include <sys/types.h>
  4398. #include <sys/stat.h>
  4399. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4400. struct buf { int x; };
  4401. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4402. static char *e (p, i)
  4403. char **p;
  4404. int i;
  4405. {
  4406. return p[i];
  4407. }
  4408. static char *f (char * (*g) (char **, int), char **p, ...)
  4409. {
  4410. char *s;
  4411. va_list v;
  4412. va_start (v,p);
  4413. s = g (p, va_arg (v,int));
  4414. va_end (v);
  4415. return s;
  4416. }
  4417. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4418. function prototypes and stuff, but not '\xHH' hex character constants.
  4419. These don't provoke an error unfortunately, instead are silently treated
  4420. as 'x'. The following induces an error, until -std is added to get
  4421. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4422. array size at least. It's necessary to write '\x00'==0 to get something
  4423. that's true only with -std. */
  4424. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4425. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4426. inside strings and character constants. */
  4427. #define FOO(x) 'x'
  4428. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4429. int test (int i, double x);
  4430. struct s1 {int (*f) (int a);};
  4431. struct s2 {int (*f) (double a);};
  4432. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4433. int argc;
  4434. char **argv;
  4435. int
  4436. main ()
  4437. {
  4438. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4439. ;
  4440. return 0;
  4441. }
  4442. _ACEOF
  4443. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4444. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4445. do
  4446. CC="$ac_save_CC $ac_arg"
  4447. if ac_fn_c_try_compile "$LINENO"; then :
  4448. ac_cv_prog_cc_c89=$ac_arg
  4449. fi
  4450. rm -f core conftest.err conftest.$ac_objext
  4451. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4452. done
  4453. rm -f conftest.$ac_ext
  4454. CC=$ac_save_CC
  4455. fi
  4456. # AC_CACHE_VAL
  4457. case "x$ac_cv_prog_cc_c89" in
  4458. x)
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4460. $as_echo "none needed" >&6; } ;;
  4461. xno)
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4463. $as_echo "unsupported" >&6; } ;;
  4464. *)
  4465. CC="$CC $ac_cv_prog_cc_c89"
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4467. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4468. esac
  4469. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4470. fi
  4471. ac_ext=c
  4472. ac_cpp='$CPP $CPPFLAGS'
  4473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4476. depcc="$CC" am_compiler_list=
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4478. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4479. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4483. # We make a subdir and do the tests there. Otherwise we can end up
  4484. # making bogus files that we don't know about and never remove. For
  4485. # instance it was reported that on HP-UX the gcc test will end up
  4486. # making a dummy file named `D' -- because `-MD' means `put the output
  4487. # in D'.
  4488. mkdir conftest.dir
  4489. # Copy depcomp to subdir because otherwise we won't find it if we're
  4490. # using a relative directory.
  4491. cp "$am_depcomp" conftest.dir
  4492. cd conftest.dir
  4493. # We will build objects and dependencies in a subdirectory because
  4494. # it helps to detect inapplicable dependency modes. For instance
  4495. # both Tru64's cc and ICC support -MD to output dependencies as a
  4496. # side effect of compilation, but ICC will put the dependencies in
  4497. # the current directory while Tru64 will put them in the object
  4498. # directory.
  4499. mkdir sub
  4500. am_cv_CC_dependencies_compiler_type=none
  4501. if test "$am_compiler_list" = ""; then
  4502. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4503. fi
  4504. am__universal=false
  4505. case " $depcc " in #(
  4506. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4507. esac
  4508. for depmode in $am_compiler_list; do
  4509. # Setup a source with many dependencies, because some compilers
  4510. # like to wrap large dependency lists on column 80 (with \), and
  4511. # we should not choose a depcomp mode which is confused by this.
  4512. #
  4513. # We need to recreate these files for each test, as the compiler may
  4514. # overwrite some of them when testing with obscure command lines.
  4515. # This happens at least with the AIX C compiler.
  4516. : > sub/conftest.c
  4517. for i in 1 2 3 4 5 6; do
  4518. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4519. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4520. # Solaris 8's {/usr,}/bin/sh.
  4521. touch sub/conftst$i.h
  4522. done
  4523. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4524. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4525. # mode. It turns out that the SunPro C++ compiler does not properly
  4526. # handle `-M -o', and we need to detect this. Also, some Intel
  4527. # versions had trouble with output in subdirs
  4528. am__obj=sub/conftest.${OBJEXT-o}
  4529. am__minus_obj="-o $am__obj"
  4530. case $depmode in
  4531. gcc)
  4532. # This depmode causes a compiler race in universal mode.
  4533. test "$am__universal" = false || continue
  4534. ;;
  4535. nosideeffect)
  4536. # after this tag, mechanisms are not by side-effect, so they'll
  4537. # only be used when explicitly requested
  4538. if test "x$enable_dependency_tracking" = xyes; then
  4539. continue
  4540. else
  4541. break
  4542. fi
  4543. ;;
  4544. msvisualcpp | msvcmsys)
  4545. # This compiler won't grok `-c -o', but also, the minuso test has
  4546. # not run yet. These depmodes are late enough in the game, and
  4547. # so weak that their functioning should not be impacted.
  4548. am__obj=conftest.${OBJEXT-o}
  4549. am__minus_obj=
  4550. ;;
  4551. none) break ;;
  4552. esac
  4553. if depmode=$depmode \
  4554. source=sub/conftest.c object=$am__obj \
  4555. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4556. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4557. >/dev/null 2>conftest.err &&
  4558. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4559. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4560. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4561. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4562. # icc doesn't choke on unknown options, it will just issue warnings
  4563. # or remarks (even with -Werror). So we grep stderr for any message
  4564. # that says an option was ignored or not supported.
  4565. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4566. # icc: Command line warning: ignoring option '-M'; no argument required
  4567. # The diagnosis changed in icc 8.0:
  4568. # icc: Command line remark: option '-MP' not supported
  4569. if (grep 'ignoring option' conftest.err ||
  4570. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4571. am_cv_CC_dependencies_compiler_type=$depmode
  4572. break
  4573. fi
  4574. fi
  4575. done
  4576. cd ..
  4577. rm -rf conftest.dir
  4578. else
  4579. am_cv_CC_dependencies_compiler_type=none
  4580. fi
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4583. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4584. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4585. if
  4586. test "x$enable_dependency_tracking" != xno \
  4587. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4588. am__fastdepCC_TRUE=
  4589. am__fastdepCC_FALSE='#'
  4590. else
  4591. am__fastdepCC_TRUE='#'
  4592. am__fastdepCC_FALSE=
  4593. fi
  4594. if test -n "$ac_tool_prefix"; then
  4595. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4596. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$RANLIB"; then
  4603. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4612. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. RANLIB=$ac_cv_prog_RANLIB
  4622. if test -n "$RANLIB"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4624. $as_echo "$RANLIB" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. fi
  4630. if test -z "$ac_cv_prog_RANLIB"; then
  4631. ac_ct_RANLIB=$RANLIB
  4632. # Extract the first word of "ranlib", so it can be a program name with args.
  4633. set dummy ranlib; ac_word=$2
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4635. $as_echo_n "checking for $ac_word... " >&6; }
  4636. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. if test -n "$ac_ct_RANLIB"; then
  4640. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4641. else
  4642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4643. for as_dir in $PATH
  4644. do
  4645. IFS=$as_save_IFS
  4646. test -z "$as_dir" && as_dir=.
  4647. for ac_exec_ext in '' $ac_executable_extensions; do
  4648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4649. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4651. break 2
  4652. fi
  4653. done
  4654. done
  4655. IFS=$as_save_IFS
  4656. fi
  4657. fi
  4658. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4659. if test -n "$ac_ct_RANLIB"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4661. $as_echo "$ac_ct_RANLIB" >&6; }
  4662. else
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4664. $as_echo "no" >&6; }
  4665. fi
  4666. if test "x$ac_ct_RANLIB" = x; then
  4667. RANLIB=":"
  4668. else
  4669. case $cross_compiling:$ac_tool_warned in
  4670. yes:)
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4673. ac_tool_warned=yes ;;
  4674. esac
  4675. RANLIB=$ac_ct_RANLIB
  4676. fi
  4677. else
  4678. RANLIB="$ac_cv_prog_RANLIB"
  4679. fi
  4680. for ac_prog in 'bison -y' byacc
  4681. do
  4682. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4683. set dummy $ac_prog; ac_word=$2
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4685. $as_echo_n "checking for $ac_word... " >&6; }
  4686. if test "${ac_cv_prog_YACC+set}" = set; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. if test -n "$YACC"; then
  4690. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4691. else
  4692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4693. for as_dir in $PATH
  4694. do
  4695. IFS=$as_save_IFS
  4696. test -z "$as_dir" && as_dir=.
  4697. for ac_exec_ext in '' $ac_executable_extensions; do
  4698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4699. ac_cv_prog_YACC="$ac_prog"
  4700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4701. break 2
  4702. fi
  4703. done
  4704. done
  4705. IFS=$as_save_IFS
  4706. fi
  4707. fi
  4708. YACC=$ac_cv_prog_YACC
  4709. if test -n "$YACC"; then
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4711. $as_echo "$YACC" >&6; }
  4712. else
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4714. $as_echo "no" >&6; }
  4715. fi
  4716. test -n "$YACC" && break
  4717. done
  4718. test -n "$YACC" || YACC="yacc"
  4719. # Setting language choice
  4720. ac_ext=cpp
  4721. ac_cpp='$CXXCPP $CPPFLAGS'
  4722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4725. # Enable system extensions
  4726. ac_ext=cpp
  4727. ac_cpp='$CXXCPP $CPPFLAGS'
  4728. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4729. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4730. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4732. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4733. if test -z "$CXXCPP"; then
  4734. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4735. $as_echo_n "(cached) " >&6
  4736. else
  4737. # Double quotes because CXXCPP needs to be expanded
  4738. for CXXCPP in "$CXX -E" "/lib/cpp"
  4739. do
  4740. ac_preproc_ok=false
  4741. for ac_cxx_preproc_warn_flag in '' yes
  4742. do
  4743. # Use a header file that comes with gcc, so configuring glibc
  4744. # with a fresh cross-compiler works.
  4745. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4746. # <limits.h> exists even on freestanding compilers.
  4747. # On the NeXT, cc -E runs the code through the compiler's parser,
  4748. # not just through cpp. "Syntax error" is here to catch this case.
  4749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4750. /* end confdefs.h. */
  4751. #ifdef __STDC__
  4752. # include <limits.h>
  4753. #else
  4754. # include <assert.h>
  4755. #endif
  4756. Syntax error
  4757. _ACEOF
  4758. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4759. else
  4760. # Broken: fails on valid input.
  4761. continue
  4762. fi
  4763. rm -f conftest.err conftest.$ac_ext
  4764. # OK, works on sane cases. Now check whether nonexistent headers
  4765. # can be detected and how.
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. #include <ac_nonexistent.h>
  4769. _ACEOF
  4770. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4771. # Broken: success on invalid input.
  4772. continue
  4773. else
  4774. # Passes both tests.
  4775. ac_preproc_ok=:
  4776. break
  4777. fi
  4778. rm -f conftest.err conftest.$ac_ext
  4779. done
  4780. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4781. rm -f conftest.err conftest.$ac_ext
  4782. if $ac_preproc_ok; then :
  4783. break
  4784. fi
  4785. done
  4786. ac_cv_prog_CXXCPP=$CXXCPP
  4787. fi
  4788. CXXCPP=$ac_cv_prog_CXXCPP
  4789. else
  4790. ac_cv_prog_CXXCPP=$CXXCPP
  4791. fi
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4793. $as_echo "$CXXCPP" >&6; }
  4794. ac_preproc_ok=false
  4795. for ac_cxx_preproc_warn_flag in '' yes
  4796. do
  4797. # Use a header file that comes with gcc, so configuring glibc
  4798. # with a fresh cross-compiler works.
  4799. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4800. # <limits.h> exists even on freestanding compilers.
  4801. # On the NeXT, cc -E runs the code through the compiler's parser,
  4802. # not just through cpp. "Syntax error" is here to catch this case.
  4803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4804. /* end confdefs.h. */
  4805. #ifdef __STDC__
  4806. # include <limits.h>
  4807. #else
  4808. # include <assert.h>
  4809. #endif
  4810. Syntax error
  4811. _ACEOF
  4812. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4813. else
  4814. # Broken: fails on valid input.
  4815. continue
  4816. fi
  4817. rm -f conftest.err conftest.$ac_ext
  4818. # OK, works on sane cases. Now check whether nonexistent headers
  4819. # can be detected and how.
  4820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4821. /* end confdefs.h. */
  4822. #include <ac_nonexistent.h>
  4823. _ACEOF
  4824. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4825. # Broken: success on invalid input.
  4826. continue
  4827. else
  4828. # Passes both tests.
  4829. ac_preproc_ok=:
  4830. break
  4831. fi
  4832. rm -f conftest.err conftest.$ac_ext
  4833. done
  4834. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4835. rm -f conftest.err conftest.$ac_ext
  4836. if $ac_preproc_ok; then :
  4837. else
  4838. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4839. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4840. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4841. See \`config.log' for more details." "$LINENO" 5; }
  4842. fi
  4843. ac_ext=cpp
  4844. ac_cpp='$CXXCPP $CPPFLAGS'
  4845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4849. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4850. if test "${ac_cv_path_GREP+set}" = set; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. if test -z "$GREP"; then
  4854. ac_path_GREP_found=false
  4855. # Loop through the user's path and test for each of PROGNAME-LIST
  4856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4857. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4858. do
  4859. IFS=$as_save_IFS
  4860. test -z "$as_dir" && as_dir=.
  4861. for ac_prog in grep ggrep; do
  4862. for ac_exec_ext in '' $ac_executable_extensions; do
  4863. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4864. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4865. # Check for GNU ac_path_GREP and select it if it is found.
  4866. # Check for GNU $ac_path_GREP
  4867. case `"$ac_path_GREP" --version 2>&1` in
  4868. *GNU*)
  4869. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4870. *)
  4871. ac_count=0
  4872. $as_echo_n 0123456789 >"conftest.in"
  4873. while :
  4874. do
  4875. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4876. mv "conftest.tmp" "conftest.in"
  4877. cp "conftest.in" "conftest.nl"
  4878. $as_echo 'GREP' >> "conftest.nl"
  4879. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4880. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4881. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4882. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4883. # Best one so far, save it but keep looking for a better one
  4884. ac_cv_path_GREP="$ac_path_GREP"
  4885. ac_path_GREP_max=$ac_count
  4886. fi
  4887. # 10*(2^10) chars as input seems more than enough
  4888. test $ac_count -gt 10 && break
  4889. done
  4890. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4891. esac
  4892. $ac_path_GREP_found && break 3
  4893. done
  4894. done
  4895. done
  4896. IFS=$as_save_IFS
  4897. if test -z "$ac_cv_path_GREP"; then
  4898. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4899. fi
  4900. else
  4901. ac_cv_path_GREP=$GREP
  4902. fi
  4903. fi
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4905. $as_echo "$ac_cv_path_GREP" >&6; }
  4906. GREP="$ac_cv_path_GREP"
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4908. $as_echo_n "checking for egrep... " >&6; }
  4909. if test "${ac_cv_path_EGREP+set}" = set; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4913. then ac_cv_path_EGREP="$GREP -E"
  4914. else
  4915. if test -z "$EGREP"; then
  4916. ac_path_EGREP_found=false
  4917. # Loop through the user's path and test for each of PROGNAME-LIST
  4918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4919. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4920. do
  4921. IFS=$as_save_IFS
  4922. test -z "$as_dir" && as_dir=.
  4923. for ac_prog in egrep; do
  4924. for ac_exec_ext in '' $ac_executable_extensions; do
  4925. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4926. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4927. # Check for GNU ac_path_EGREP and select it if it is found.
  4928. # Check for GNU $ac_path_EGREP
  4929. case `"$ac_path_EGREP" --version 2>&1` in
  4930. *GNU*)
  4931. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4932. *)
  4933. ac_count=0
  4934. $as_echo_n 0123456789 >"conftest.in"
  4935. while :
  4936. do
  4937. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4938. mv "conftest.tmp" "conftest.in"
  4939. cp "conftest.in" "conftest.nl"
  4940. $as_echo 'EGREP' >> "conftest.nl"
  4941. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4942. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4943. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4944. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4945. # Best one so far, save it but keep looking for a better one
  4946. ac_cv_path_EGREP="$ac_path_EGREP"
  4947. ac_path_EGREP_max=$ac_count
  4948. fi
  4949. # 10*(2^10) chars as input seems more than enough
  4950. test $ac_count -gt 10 && break
  4951. done
  4952. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4953. esac
  4954. $ac_path_EGREP_found && break 3
  4955. done
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. if test -z "$ac_cv_path_EGREP"; then
  4960. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4961. fi
  4962. else
  4963. ac_cv_path_EGREP=$EGREP
  4964. fi
  4965. fi
  4966. fi
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4968. $as_echo "$ac_cv_path_EGREP" >&6; }
  4969. EGREP="$ac_cv_path_EGREP"
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4971. $as_echo_n "checking for ANSI C header files... " >&6; }
  4972. if test "${ac_cv_header_stdc+set}" = set; then :
  4973. $as_echo_n "(cached) " >&6
  4974. else
  4975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4976. /* end confdefs.h. */
  4977. #include <stdlib.h>
  4978. #include <stdarg.h>
  4979. #include <string.h>
  4980. #include <float.h>
  4981. int
  4982. main ()
  4983. {
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. if ac_fn_cxx_try_compile "$LINENO"; then :
  4989. ac_cv_header_stdc=yes
  4990. else
  4991. ac_cv_header_stdc=no
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. if test $ac_cv_header_stdc = yes; then
  4995. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4997. /* end confdefs.h. */
  4998. #include <string.h>
  4999. _ACEOF
  5000. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5001. $EGREP "memchr" >/dev/null 2>&1; then :
  5002. else
  5003. ac_cv_header_stdc=no
  5004. fi
  5005. rm -f conftest*
  5006. fi
  5007. if test $ac_cv_header_stdc = yes; then
  5008. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. #include <stdlib.h>
  5012. _ACEOF
  5013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5014. $EGREP "free" >/dev/null 2>&1; then :
  5015. else
  5016. ac_cv_header_stdc=no
  5017. fi
  5018. rm -f conftest*
  5019. fi
  5020. if test $ac_cv_header_stdc = yes; then
  5021. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5022. if test "$cross_compiling" = yes; then :
  5023. :
  5024. else
  5025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5026. /* end confdefs.h. */
  5027. #include <ctype.h>
  5028. #include <stdlib.h>
  5029. #if ((' ' & 0x0FF) == 0x020)
  5030. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5031. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5032. #else
  5033. # define ISLOWER(c) \
  5034. (('a' <= (c) && (c) <= 'i') \
  5035. || ('j' <= (c) && (c) <= 'r') \
  5036. || ('s' <= (c) && (c) <= 'z'))
  5037. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5038. #endif
  5039. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5040. int
  5041. main ()
  5042. {
  5043. int i;
  5044. for (i = 0; i < 256; i++)
  5045. if (XOR (islower (i), ISLOWER (i))
  5046. || toupper (i) != TOUPPER (i))
  5047. return 2;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. if ac_fn_cxx_try_run "$LINENO"; then :
  5052. else
  5053. ac_cv_header_stdc=no
  5054. fi
  5055. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5056. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5057. fi
  5058. fi
  5059. fi
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5061. $as_echo "$ac_cv_header_stdc" >&6; }
  5062. if test $ac_cv_header_stdc = yes; then
  5063. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5064. fi
  5065. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5066. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5067. inttypes.h stdint.h unistd.h
  5068. do :
  5069. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5070. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5071. "
  5072. eval as_val=\$$as_ac_Header
  5073. if test "x$as_val" = x""yes; then :
  5074. cat >>confdefs.h <<_ACEOF
  5075. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5076. _ACEOF
  5077. fi
  5078. done
  5079. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5080. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5081. MINIX=yes
  5082. else
  5083. MINIX=
  5084. fi
  5085. if test "$MINIX" = yes; then
  5086. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5087. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5088. $as_echo "#define _MINIX 1" >>confdefs.h
  5089. fi
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5091. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5092. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5096. /* end confdefs.h. */
  5097. # define __EXTENSIONS__ 1
  5098. $ac_includes_default
  5099. int
  5100. main ()
  5101. {
  5102. ;
  5103. return 0;
  5104. }
  5105. _ACEOF
  5106. if ac_fn_cxx_try_compile "$LINENO"; then :
  5107. ac_cv_safe_to_define___extensions__=yes
  5108. else
  5109. ac_cv_safe_to_define___extensions__=no
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5114. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5115. test $ac_cv_safe_to_define___extensions__ = yes &&
  5116. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5117. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5118. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5119. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5120. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5121. # Check pkg-config is available
  5122. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5123. if test -n "$ac_tool_prefix"; then
  5124. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5125. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5127. $as_echo_n "checking for $ac_word... " >&6; }
  5128. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. case $PKG_CONFIG in
  5132. [\\/]* | ?:[\\/]*)
  5133. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5134. ;;
  5135. *)
  5136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5137. for as_dir in $PATH
  5138. do
  5139. IFS=$as_save_IFS
  5140. test -z "$as_dir" && as_dir=.
  5141. for ac_exec_ext in '' $ac_executable_extensions; do
  5142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5143. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5145. break 2
  5146. fi
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. ;;
  5151. esac
  5152. fi
  5153. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5154. if test -n "$PKG_CONFIG"; then
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5156. $as_echo "$PKG_CONFIG" >&6; }
  5157. else
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5159. $as_echo "no" >&6; }
  5160. fi
  5161. fi
  5162. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5163. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5164. # Extract the first word of "pkg-config", so it can be a program name with args.
  5165. set dummy pkg-config; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. case $ac_pt_PKG_CONFIG in
  5172. [\\/]* | ?:[\\/]*)
  5173. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5174. ;;
  5175. *)
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_exec_ext in '' $ac_executable_extensions; do
  5182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5183. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5185. break 2
  5186. fi
  5187. done
  5188. done
  5189. IFS=$as_save_IFS
  5190. ;;
  5191. esac
  5192. fi
  5193. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5194. if test -n "$ac_pt_PKG_CONFIG"; then
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5196. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5197. else
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5199. $as_echo "no" >&6; }
  5200. fi
  5201. if test "x$ac_pt_PKG_CONFIG" = x; then
  5202. PKG_CONFIG=""
  5203. else
  5204. case $cross_compiling:$ac_tool_warned in
  5205. yes:)
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5207. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5208. ac_tool_warned=yes ;;
  5209. esac
  5210. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5211. fi
  5212. else
  5213. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5214. fi
  5215. fi
  5216. if test -n "$PKG_CONFIG"; then
  5217. _pkg_min_version=0.20
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5219. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5220. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5222. $as_echo "yes" >&6; }
  5223. else
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5225. $as_echo "no" >&6; }
  5226. PKG_CONFIG=""
  5227. fi
  5228. fi
  5229. # Checks for libraries.
  5230. if test "x$with_libxml2" = "xyes"; then
  5231. # Check whether --with-xml-prefix was given.
  5232. if test "${with_xml_prefix+set}" = set; then :
  5233. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5234. else
  5235. xml_config_prefix=""
  5236. fi
  5237. # Check whether --with-xml-exec-prefix was given.
  5238. if test "${with_xml_exec_prefix+set}" = set; then :
  5239. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5240. else
  5241. xml_config_exec_prefix=""
  5242. fi
  5243. # Check whether --enable-xmltest was given.
  5244. if test "${enable_xmltest+set}" = set; then :
  5245. enableval=$enable_xmltest;
  5246. else
  5247. enable_xmltest=yes
  5248. fi
  5249. if test x$xml_config_exec_prefix != x ; then
  5250. xml_config_args="$xml_config_args"
  5251. if test x${XML2_CONFIG+set} != xset ; then
  5252. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5253. fi
  5254. fi
  5255. if test x$xml_config_prefix != x ; then
  5256. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5257. if test x${XML2_CONFIG+set} != xset ; then
  5258. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5259. fi
  5260. fi
  5261. # Extract the first word of "xml2-config", so it can be a program name with args.
  5262. set dummy xml2-config; ac_word=$2
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5264. $as_echo_n "checking for $ac_word... " >&6; }
  5265. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. case $XML2_CONFIG in
  5269. [\\/]* | ?:[\\/]*)
  5270. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5271. ;;
  5272. *)
  5273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5274. for as_dir in $PATH
  5275. do
  5276. IFS=$as_save_IFS
  5277. test -z "$as_dir" && as_dir=.
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5280. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5282. break 2
  5283. fi
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5288. ;;
  5289. esac
  5290. fi
  5291. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5292. if test -n "$XML2_CONFIG"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5294. $as_echo "$XML2_CONFIG" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5297. $as_echo "no" >&6; }
  5298. fi
  5299. min_xml_version=2.6.24
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5301. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5302. no_xml=""
  5303. if test "$XML2_CONFIG" = "no" ; then
  5304. no_xml=yes
  5305. else
  5306. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5307. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5308. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5309. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5310. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5312. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5313. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5314. if test "x$enable_xmltest" = "xyes" ; then
  5315. ac_save_CPPFLAGS="$CPPFLAGS"
  5316. ac_save_LIBS="$LIBS"
  5317. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5318. LIBS="$XML_LIBS $LIBS"
  5319. rm -f conf.xmltest
  5320. if test "$cross_compiling" = yes; then :
  5321. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5322. else
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. #include <stdlib.h>
  5326. #include <stdio.h>
  5327. #include <string.h>
  5328. #include <libxml/xmlversion.h>
  5329. int
  5330. main()
  5331. {
  5332. int xml_major_version, xml_minor_version, xml_micro_version;
  5333. int major, minor, micro;
  5334. char *tmp_version;
  5335. system("touch conf.xmltest");
  5336. /* Capture xml2-config output via autoconf/configure variables */
  5337. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5338. tmp_version = (char *)strdup("$min_xml_version");
  5339. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5340. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5341. exit(1);
  5342. }
  5343. free(tmp_version);
  5344. /* Capture the version information from the header files */
  5345. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5346. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5347. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5348. exit(1);
  5349. }
  5350. free(tmp_version);
  5351. /* Compare xml2-config output to the libxml headers */
  5352. if ((xml_major_version != $xml_config_major_version) ||
  5353. (xml_minor_version != $xml_config_minor_version) ||
  5354. (xml_micro_version != $xml_config_micro_version))
  5355. {
  5356. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5357. xml_major_version, xml_minor_version, xml_micro_version);
  5358. printf("*** xml2-config (version %d.%d.%d)\n",
  5359. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5360. return 1;
  5361. }
  5362. /* Compare the headers to the library to make sure we match */
  5363. /* Less than ideal -- doesn't provide us with return value feedback,
  5364. * only exits if there's a serious mismatch between header and library.
  5365. */
  5366. LIBXML_TEST_VERSION;
  5367. /* Test that the library is greater than our minimum version */
  5368. if ((xml_major_version > major) ||
  5369. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5370. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5371. (xml_micro_version >= micro)))
  5372. {
  5373. return 0;
  5374. }
  5375. else
  5376. {
  5377. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5378. xml_major_version, xml_minor_version, xml_micro_version);
  5379. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5380. major, minor, micro);
  5381. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5382. printf("***\n");
  5383. printf("*** If you have already installed a sufficiently new version, this error\n");
  5384. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5385. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5386. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5387. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5388. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5389. printf("*** so that the correct libraries are found at run-time))\n");
  5390. }
  5391. return 1;
  5392. }
  5393. _ACEOF
  5394. if ac_fn_cxx_try_run "$LINENO"; then :
  5395. else
  5396. no_xml=yes
  5397. fi
  5398. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5399. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5400. fi
  5401. CPPFLAGS="$ac_save_CPPFLAGS"
  5402. LIBS="$ac_save_LIBS"
  5403. fi
  5404. fi
  5405. if test "x$no_xml" = x ; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5407. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5408. have_libxml2=yes
  5409. else
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. if test "$XML2_CONFIG" = "no" ; then
  5413. echo "*** The xml2-config script installed by LIBXML could not be found"
  5414. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5415. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5416. echo "*** full path to xml2-config."
  5417. else
  5418. if test -f conf.xmltest ; then
  5419. :
  5420. else
  5421. echo "*** Could not run libxml test program, checking why..."
  5422. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5423. LIBS="$LIBS $XML_LIBS"
  5424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5425. /* end confdefs.h. */
  5426. #include <libxml/xmlversion.h>
  5427. #include <stdio.h>
  5428. int
  5429. main ()
  5430. {
  5431. LIBXML_TEST_VERSION; return 0;
  5432. ;
  5433. return 0;
  5434. }
  5435. _ACEOF
  5436. if ac_fn_cxx_try_link "$LINENO"; then :
  5437. echo "*** The test program compiled, but did not run. This usually means"
  5438. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5439. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5440. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5441. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5442. echo "*** is required on your system"
  5443. echo "***"
  5444. echo "*** If you have an old version installed, it is best to remove it, although"
  5445. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5446. else
  5447. echo "*** The test program failed to compile or link. See the file config.log for the"
  5448. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5449. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5450. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5451. fi
  5452. rm -f core conftest.err conftest.$ac_objext \
  5453. conftest$ac_exeext conftest.$ac_ext
  5454. CPPFLAGS="$ac_save_CPPFLAGS"
  5455. LIBS="$ac_save_LIBS"
  5456. fi
  5457. fi
  5458. XML_CPPFLAGS=""
  5459. XML_LIBS=""
  5460. :
  5461. fi
  5462. rm -f conf.xmltest
  5463. if test "x$have_libxml2" = "xyes"; then
  5464. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5465. elif test "x$with_libxml2_requested" = "xyes"; then
  5466. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5468. as_fn_error "libxml2 is requested but not found in the system.
  5469. See \`config.log' for more details." "$LINENO" 5; }
  5470. fi
  5471. fi
  5472. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5473. # Check whether --with-libexpat-prefix was given.
  5474. if test "${with_libexpat_prefix+set}" = set; then :
  5475. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5476. else
  5477. libexpat_prefix=""
  5478. fi
  5479. if test "x$libexpat_prefix" = "x"; then
  5480. libexpat_prefix="/usr"
  5481. fi
  5482. libexpat_prefix_lib=$libexpat_prefix/lib
  5483. libexpat_prefix_include=$libexpat_prefix/include
  5484. LIBS_save=$LIBS
  5485. CPPFLAGS_save=$CPPFLAGS
  5486. LIBS="-L$libexpat_prefix_lib $LIBS"
  5487. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5489. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5490. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. ac_check_lib_save_LIBS=$LIBS
  5494. LIBS="-lexpat $LIBS"
  5495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5496. /* end confdefs.h. */
  5497. /* Override any GCC internal prototype to avoid an error.
  5498. Use char because int might match the return type of a GCC
  5499. builtin and then its argument prototype would still apply. */
  5500. #ifdef __cplusplus
  5501. extern "C"
  5502. #endif
  5503. char XML_ParserCreate ();
  5504. int
  5505. main ()
  5506. {
  5507. return XML_ParserCreate ();
  5508. ;
  5509. return 0;
  5510. }
  5511. _ACEOF
  5512. if ac_fn_cxx_try_link "$LINENO"; then :
  5513. ac_cv_lib_expat_XML_ParserCreate=yes
  5514. else
  5515. ac_cv_lib_expat_XML_ParserCreate=no
  5516. fi
  5517. rm -f core conftest.err conftest.$ac_objext \
  5518. conftest$ac_exeext conftest.$ac_ext
  5519. LIBS=$ac_check_lib_save_LIBS
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5522. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5523. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5524. have_libexpat=yes
  5525. fi
  5526. if test "x$have_libexpat" = "xyes"; then
  5527. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5528. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5529. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5530. fi
  5531. LIBS=$LIBS_save
  5532. CPPFLAGS=$CPPFLAGS_save
  5533. if test "x$have_libexpat" != "xyes" &&
  5534. test "x$with_libexpat_requested" = "xyes"; then
  5535. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5537. as_fn_error "libexpat is requested but not found in the system.
  5538. See \`config.log' for more details." "$LINENO" 5; }
  5539. fi
  5540. fi
  5541. if test "x$with_sqlite3" = "xyes"; then
  5542. # Check whether --with-sqlite3-prefix was given.
  5543. if test "${with_sqlite3_prefix+set}" = set; then :
  5544. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5545. else
  5546. sqlite3_prefix=""
  5547. fi
  5548. if test "x$sqlite3_prefix" = "x"; then
  5549. sqlite3_prefix="/usr"
  5550. fi
  5551. LIBS_save=$LIBS
  5552. CPPFLAGS_save=$CPPFLAGS
  5553. pkg_failed=no
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5555. $as_echo_n "checking for SQLITE3... " >&6; }
  5556. if test -n "$PKG_CONFIG"; then
  5557. if test -n "$SQLITE3_CFLAGS"; then
  5558. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5559. else
  5560. if test -n "$PKG_CONFIG" && \
  5561. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5562. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5563. ac_status=$?
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5565. test $ac_status = 0; }; then
  5566. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5567. else
  5568. pkg_failed=yes
  5569. fi
  5570. fi
  5571. else
  5572. pkg_failed=untried
  5573. fi
  5574. if test -n "$PKG_CONFIG"; then
  5575. if test -n "$SQLITE3_LIBS"; then
  5576. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5577. else
  5578. if test -n "$PKG_CONFIG" && \
  5579. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5580. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5581. ac_status=$?
  5582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5583. test $ac_status = 0; }; then
  5584. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5585. else
  5586. pkg_failed=yes
  5587. fi
  5588. fi
  5589. else
  5590. pkg_failed=untried
  5591. fi
  5592. if test $pkg_failed = yes; then
  5593. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5594. _pkg_short_errors_supported=yes
  5595. else
  5596. _pkg_short_errors_supported=no
  5597. fi
  5598. if test $_pkg_short_errors_supported = yes; then
  5599. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5600. else
  5601. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5602. fi
  5603. # Put the nasty error message in config.log where it belongs
  5604. echo "$SQLITE3_PKG_ERRORS" >&5
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. have_sqlite3=no
  5608. elif test $pkg_failed = untried; then
  5609. have_sqlite3=no
  5610. else
  5611. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5612. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5614. $as_echo "yes" >&6; }
  5615. have_sqlite3=yes
  5616. fi
  5617. if test "x$have_sqlite3" != "xyes"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5619. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5620. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5621. sqlite3_prefix_include=$sqlite3_prefix/include
  5622. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5623. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5625. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5626. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. ac_check_lib_save_LIBS=$LIBS
  5630. LIBS="-lsqlite3 $LIBS"
  5631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5632. /* end confdefs.h. */
  5633. /* Override any GCC internal prototype to avoid an error.
  5634. Use char because int might match the return type of a GCC
  5635. builtin and then its argument prototype would still apply. */
  5636. #ifdef __cplusplus
  5637. extern "C"
  5638. #endif
  5639. char sqlite3_open ();
  5640. int
  5641. main ()
  5642. {
  5643. return sqlite3_open ();
  5644. ;
  5645. return 0;
  5646. }
  5647. _ACEOF
  5648. if ac_fn_cxx_try_link "$LINENO"; then :
  5649. ac_cv_lib_sqlite3_sqlite3_open=yes
  5650. else
  5651. ac_cv_lib_sqlite3_sqlite3_open=no
  5652. fi
  5653. rm -f core conftest.err conftest.$ac_objext \
  5654. conftest$ac_exeext conftest.$ac_ext
  5655. LIBS=$ac_check_lib_save_LIBS
  5656. fi
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5658. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5659. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5660. have_sqlite3=yes
  5661. fi
  5662. if test "x$have_sqlite3" = "xyes"; then
  5663. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5664. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5665. fi
  5666. fi
  5667. if test "x$have_sqlite3" = "xyes"; then
  5668. LIBS="$SQLITE3_LIBS $LIBS"
  5669. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5670. for ac_func in sqlite3_open_v2
  5671. do :
  5672. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5673. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5674. cat >>confdefs.h <<_ACEOF
  5675. #define HAVE_SQLITE3_OPEN_V2 1
  5676. _ACEOF
  5677. fi
  5678. done
  5679. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5680. fi
  5681. LIBS=$LIBS_save
  5682. CPPFLAGS=$CPPFLAGS_save
  5683. if test "x$have_sqlite3" != "xyes" &&
  5684. test "x$with_sqlite3_requested" = "xyes"; then
  5685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5687. as_fn_error "sqlite3 is requested but not found in the system.
  5688. See \`config.log' for more details." "$LINENO" 5; }
  5689. fi
  5690. fi
  5691. if test "x$with_gnutls" = "xyes"; then
  5692. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5693. # First check the presence of libgnutls using pkg-config.
  5694. pkg_failed=no
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5696. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5697. if test -n "$PKG_CONFIG"; then
  5698. if test -n "$LIBGNUTLS_CFLAGS"; then
  5699. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5700. else
  5701. if test -n "$PKG_CONFIG" && \
  5702. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5703. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5704. ac_status=$?
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5706. test $ac_status = 0; }; then
  5707. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5708. else
  5709. pkg_failed=yes
  5710. fi
  5711. fi
  5712. else
  5713. pkg_failed=untried
  5714. fi
  5715. if test -n "$PKG_CONFIG"; then
  5716. if test -n "$LIBGNUTLS_LIBS"; then
  5717. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5718. else
  5719. if test -n "$PKG_CONFIG" && \
  5720. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5721. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5722. ac_status=$?
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5724. test $ac_status = 0; }; then
  5725. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5726. else
  5727. pkg_failed=yes
  5728. fi
  5729. fi
  5730. else
  5731. pkg_failed=untried
  5732. fi
  5733. if test $pkg_failed = yes; then
  5734. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5735. _pkg_short_errors_supported=yes
  5736. else
  5737. _pkg_short_errors_supported=no
  5738. fi
  5739. if test $_pkg_short_errors_supported = yes; then
  5740. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5741. else
  5742. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5743. fi
  5744. # Put the nasty error message in config.log where it belongs
  5745. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5747. $as_echo "no" >&6; }
  5748. have_libgnutls=no
  5749. elif test $pkg_failed = untried; then
  5750. have_libgnutls=no
  5751. else
  5752. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5753. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5755. $as_echo "yes" >&6; }
  5756. have_libgnutls=yes
  5757. fi
  5758. # If no libgnutls found by pkg-config, fall back to old macro
  5759. if test "x$have_libgnutls" = "xno"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5761. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5762. # Check whether --with-libgnutls-prefix was given.
  5763. if test "${with_libgnutls_prefix+set}" = set; then :
  5764. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5765. else
  5766. libgnutls_config_prefix=""
  5767. fi
  5768. if test x$libgnutls_config_prefix != x ; then
  5769. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5770. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5771. fi
  5772. fi
  5773. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5774. set dummy libgnutls-config; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. case $LIBGNUTLS_CONFIG in
  5781. [\\/]* | ?:[\\/]*)
  5782. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5783. ;;
  5784. *)
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. test -z "$as_dir" && as_dir=.
  5790. for ac_exec_ext in '' $ac_executable_extensions; do
  5791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5792. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5794. break 2
  5795. fi
  5796. done
  5797. done
  5798. IFS=$as_save_IFS
  5799. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5800. ;;
  5801. esac
  5802. fi
  5803. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5804. if test -n "$LIBGNUTLS_CONFIG"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5806. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. min_libgnutls_version=1.2.9
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5813. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5814. no_libgnutls=""
  5815. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5816. no_libgnutls=yes
  5817. else
  5818. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5819. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5820. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5821. ac_save_CFLAGS="$CFLAGS"
  5822. ac_save_LIBS="$LIBS"
  5823. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5824. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5825. rm -f conf.libgnutlstest
  5826. if test "$cross_compiling" = yes; then :
  5827. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5828. else
  5829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5830. /* end confdefs.h. */
  5831. #include <stdio.h>
  5832. #include <stdlib.h>
  5833. #include <string.h>
  5834. #include <gnutls/gnutls.h>
  5835. int
  5836. main ()
  5837. {
  5838. system ("touch conf.libgnutlstest");
  5839. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5840. {
  5841. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5842. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5843. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5844. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5845. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5846. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5847. printf("*** required on your system.\n");
  5848. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5849. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5850. printf("*** before re-running configure\n");
  5851. }
  5852. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5853. {
  5854. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5855. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5856. }
  5857. else
  5858. {
  5859. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5860. {
  5861. return 0;
  5862. }
  5863. else
  5864. {
  5865. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5866. gnutls_check_version(NULL) );
  5867. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5868. "$min_libgnutls_version" );
  5869. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5870. printf("*** \n");
  5871. printf("*** If you have already installed a sufficiently new version, this error\n");
  5872. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5873. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5874. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5875. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5876. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5877. printf("*** so that the correct libraries are found at run-time))\n");
  5878. }
  5879. }
  5880. return 1;
  5881. }
  5882. _ACEOF
  5883. if ac_fn_cxx_try_run "$LINENO"; then :
  5884. else
  5885. no_libgnutls=yes
  5886. fi
  5887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5888. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5889. fi
  5890. CFLAGS="$ac_save_CFLAGS"
  5891. LIBS="$ac_save_LIBS"
  5892. fi
  5893. if test "x$no_libgnutls" = x ; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5895. $as_echo "yes" >&6; }
  5896. have_libgnutls=yes
  5897. else
  5898. if test -f conf.libgnutlstest ; then
  5899. :
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5902. $as_echo "no" >&6; }
  5903. fi
  5904. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5905. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5906. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5907. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5908. echo "*** full path to libgnutls-config."
  5909. else
  5910. if test -f conf.libgnutlstest ; then
  5911. :
  5912. else
  5913. echo "*** Could not run libgnutls test program, checking why..."
  5914. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5915. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917. /* end confdefs.h. */
  5918. #include <stdio.h>
  5919. #include <stdlib.h>
  5920. #include <string.h>
  5921. #include <gnutls/gnutls.h>
  5922. int
  5923. main ()
  5924. {
  5925. return !!gnutls_check_version(NULL);
  5926. ;
  5927. return 0;
  5928. }
  5929. _ACEOF
  5930. if ac_fn_cxx_try_link "$LINENO"; then :
  5931. echo "*** The test program compiled, but did not run. This usually means"
  5932. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5933. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5934. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5935. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5936. echo "*** is required on your system"
  5937. echo "***"
  5938. echo "*** If you have an old version installed, it is best to remove it, although"
  5939. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5940. echo "***"
  5941. else
  5942. echo "*** The test program failed to compile or link. See the file config.log for the"
  5943. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5944. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5945. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5946. fi
  5947. rm -f core conftest.err conftest.$ac_objext \
  5948. conftest$ac_exeext conftest.$ac_ext
  5949. CFLAGS="$ac_save_CFLAGS"
  5950. LIBS="$ac_save_LIBS"
  5951. fi
  5952. fi
  5953. LIBGNUTLS_CFLAGS=""
  5954. LIBGNUTLS_LIBS=""
  5955. :
  5956. fi
  5957. rm -f conf.libgnutlstest
  5958. fi
  5959. if test "x$have_libgnutls" = "xyes"; then
  5960. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5961. elif test "x$with_gnutls_requested" = "xyes"; then
  5962. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5964. as_fn_error "gnutls is requested but not found in the system.
  5965. See \`config.log' for more details." "$LINENO" 5; }
  5966. fi
  5967. fi
  5968. if test "x$have_libgnutls" = "xyes"; then
  5969. # Check whether --with-libgcrypt-prefix was given.
  5970. if test "${with_libgcrypt_prefix+set}" = set; then :
  5971. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5972. else
  5973. libgcrypt_config_prefix=""
  5974. fi
  5975. if test x$libgcrypt_config_prefix != x ; then
  5976. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5977. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5978. fi
  5979. fi
  5980. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5981. set dummy libgcrypt-config; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. case $LIBGCRYPT_CONFIG in
  5988. [\\/]* | ?:[\\/]*)
  5989. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5990. ;;
  5991. *)
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5999. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6007. ;;
  6008. esac
  6009. fi
  6010. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6011. if test -n "$LIBGCRYPT_CONFIG"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6013. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. tmp=1.2.2
  6019. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6020. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6021. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6022. else
  6023. req_libgcrypt_api=0
  6024. min_libgcrypt_version="$tmp"
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6027. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6028. ok=no
  6029. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6030. req_major=`echo $min_libgcrypt_version | \
  6031. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6032. req_minor=`echo $min_libgcrypt_version | \
  6033. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6034. req_micro=`echo $min_libgcrypt_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6036. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6037. major=`echo $libgcrypt_config_version | \
  6038. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6039. minor=`echo $libgcrypt_config_version | \
  6040. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6041. micro=`echo $libgcrypt_config_version | \
  6042. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6043. if test "$major" -gt "$req_major"; then
  6044. ok=yes
  6045. else
  6046. if test "$major" -eq "$req_major"; then
  6047. if test "$minor" -gt "$req_minor"; then
  6048. ok=yes
  6049. else
  6050. if test "$minor" -eq "$req_minor"; then
  6051. if test "$micro" -ge "$req_micro"; then
  6052. ok=yes
  6053. fi
  6054. fi
  6055. fi
  6056. fi
  6057. fi
  6058. fi
  6059. if test $ok = yes; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6061. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. if test $ok = yes; then
  6067. # If we have a recent libgcrypt, we should also check that the
  6068. # API is compatible
  6069. if test "$req_libgcrypt_api" -gt 0 ; then
  6070. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6071. if test "$tmp" -gt 0 ; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6073. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6074. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6076. $as_echo "okay" >&6; }
  6077. else
  6078. ok=no
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6080. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6081. fi
  6082. fi
  6083. fi
  6084. fi
  6085. if test $ok = yes; then
  6086. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6087. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6088. have_libgcrypt=yes
  6089. else
  6090. LIBGCRYPT_CFLAGS=""
  6091. LIBGCRYPT_LIBS=""
  6092. :
  6093. fi
  6094. if test "x$have_libgcrypt" = "xyes"; then
  6095. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6096. fi
  6097. fi
  6098. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6099. # Check whether --with-openssl-prefix was given.
  6100. if test "${with_openssl_prefix+set}" = set; then :
  6101. withval=$with_openssl_prefix; openssl_prefix=$withval
  6102. else
  6103. openssl_prefix=""
  6104. fi
  6105. if test "x$openssl_prefix" = "x"; then
  6106. openssl_prefix="/usr/local"
  6107. fi
  6108. LIBS_save=$LIBS
  6109. CPPFLAGS_save=$CPPFLAGS
  6110. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6111. if test -x $PKG_CONFIG; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6113. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6114. $PKG_CONFIG --exists openssl
  6115. if test "$?" = "0"; then
  6116. # Use pkg-config to detect LIBS and CFLAGS
  6117. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6118. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6119. LIBS="$OPENSSL_LIBS $LIBS"
  6120. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6121. have_openssl=yes
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6123. $as_echo "yes" >&6; }
  6124. else
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6126. $as_echo "no" >&6; }
  6127. fi
  6128. fi
  6129. if test "x$have_openssl" != "xyes"; then
  6130. openssl_prefix_lib=$openssl_prefix/lib
  6131. openssl_prefix_include=$openssl_prefix/include
  6132. LIBS="-L$openssl_prefix_lib $LIBS"
  6133. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6135. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6136. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. ac_check_lib_save_LIBS=$LIBS
  6140. LIBS="-lssl $LIBS"
  6141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6142. /* end confdefs.h. */
  6143. /* Override any GCC internal prototype to avoid an error.
  6144. Use char because int might match the return type of a GCC
  6145. builtin and then its argument prototype would still apply. */
  6146. #ifdef __cplusplus
  6147. extern "C"
  6148. #endif
  6149. char SSL_library_init ();
  6150. int
  6151. main ()
  6152. {
  6153. return SSL_library_init ();
  6154. ;
  6155. return 0;
  6156. }
  6157. _ACEOF
  6158. if ac_fn_cxx_try_link "$LINENO"; then :
  6159. ac_cv_lib_ssl_SSL_library_init=yes
  6160. else
  6161. ac_cv_lib_ssl_SSL_library_init=no
  6162. fi
  6163. rm -f core conftest.err conftest.$ac_objext \
  6164. conftest$ac_exeext conftest.$ac_ext
  6165. LIBS=$ac_check_lib_save_LIBS
  6166. fi
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6168. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6169. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6170. have_openssl=yes LIBS="-lssl $LIBS"
  6171. fi
  6172. if test "x$have_openssl" = "xyes"; then
  6173. have_openssl=no
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6175. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6176. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. ac_check_lib_save_LIBS=$LIBS
  6180. LIBS="-lcrypto $LIBS"
  6181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6182. /* end confdefs.h. */
  6183. int
  6184. main ()
  6185. {
  6186. return main ();
  6187. ;
  6188. return 0;
  6189. }
  6190. _ACEOF
  6191. if ac_fn_cxx_try_link "$LINENO"; then :
  6192. ac_cv_lib_crypto_main=yes
  6193. else
  6194. ac_cv_lib_crypto_main=no
  6195. fi
  6196. rm -f core conftest.err conftest.$ac_objext \
  6197. conftest$ac_exeext conftest.$ac_ext
  6198. LIBS=$ac_check_lib_save_LIBS
  6199. fi
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6201. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6202. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6203. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6204. fi
  6205. if test "x$have_openssl" = "xyes"; then
  6206. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6207. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6208. fi
  6209. fi
  6210. fi
  6211. if test "x$have_openssl" = "xyes"; then
  6212. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6213. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6214. for ac_func in EVP_DigestInit_ex
  6215. do :
  6216. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6217. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6218. cat >>confdefs.h <<_ACEOF
  6219. #define HAVE_EVP_DIGESTINIT_EX 1
  6220. _ACEOF
  6221. have_digestinit_ex=yes
  6222. fi
  6223. done
  6224. if test "x$have_digestinit_ex" = "x"; then
  6225. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6226. fi
  6227. # search for sha256 support
  6228. for ac_func in EVP_sha256
  6229. do :
  6230. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6231. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6232. cat >>confdefs.h <<_ACEOF
  6233. #define HAVE_EVP_SHA256 1
  6234. _ACEOF
  6235. fi
  6236. done
  6237. fi
  6238. LIBS=$LIBS_save
  6239. CPPFLAGS=$CPPFLAGS_save
  6240. if test "x$have_openssl" != "xyes" &&
  6241. test "x$with_openssl_requested" = "xyes"; then
  6242. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6243. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6244. as_fn_error "openssl is requested but not found in the system.
  6245. See \`config.log' for more details." "$LINENO" 5; }
  6246. fi
  6247. fi
  6248. if test "x$with_libcares" = "xyes"; then
  6249. # Check whether --with-libcares-prefix was given.
  6250. if test "${with_libcares_prefix+set}" = set; then :
  6251. withval=$with_libcares_prefix; libcares_prefix=$withval
  6252. else
  6253. libcares_prefix=""
  6254. fi
  6255. if test "x$libcares_prefix" = "x"; then
  6256. libcares_prefix="/usr"
  6257. fi
  6258. libcares_prefix_lib=$libcares_prefix/lib
  6259. libcares_prefix_include=$libcares_prefix/include
  6260. LIBS_save=$LIBS
  6261. CPPFLAGS_save=$CPPFLAGS
  6262. LIBS="-L$libcares_prefix_lib $LIBS"
  6263. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6265. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6266. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. ac_check_lib_save_LIBS=$LIBS
  6270. LIBS="-lcares $LIBS"
  6271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6272. /* end confdefs.h. */
  6273. /* Override any GCC internal prototype to avoid an error.
  6274. Use char because int might match the return type of a GCC
  6275. builtin and then its argument prototype would still apply. */
  6276. #ifdef __cplusplus
  6277. extern "C"
  6278. #endif
  6279. char ares_init ();
  6280. int
  6281. main ()
  6282. {
  6283. return ares_init ();
  6284. ;
  6285. return 0;
  6286. }
  6287. _ACEOF
  6288. if ac_fn_cxx_try_link "$LINENO"; then :
  6289. ac_cv_lib_cares_ares_init=yes
  6290. else
  6291. ac_cv_lib_cares_ares_init=no
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext \
  6294. conftest$ac_exeext conftest.$ac_ext
  6295. LIBS=$ac_check_lib_save_LIBS
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6298. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6299. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6300. have_libcares=yes
  6301. fi
  6302. if test "x$have_libcares" != "xyes"; then
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6304. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6305. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. ac_check_lib_save_LIBS=$LIBS
  6309. LIBS="-lcares -lrt $LIBS"
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. /* Override any GCC internal prototype to avoid an error.
  6313. Use char because int might match the return type of a GCC
  6314. builtin and then its argument prototype would still apply. */
  6315. #ifdef __cplusplus
  6316. extern "C"
  6317. #endif
  6318. char ares_init ();
  6319. int
  6320. main ()
  6321. {
  6322. return ares_init ();
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. if ac_fn_cxx_try_link "$LINENO"; then :
  6328. ac_cv_lib_cares_ares_init=yes
  6329. else
  6330. ac_cv_lib_cares_ares_init=no
  6331. fi
  6332. rm -f core conftest.err conftest.$ac_objext \
  6333. conftest$ac_exeext conftest.$ac_ext
  6334. LIBS=$ac_check_lib_save_LIBS
  6335. fi
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6337. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6338. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6339. have_libcares=yes need_librt=yes
  6340. fi
  6341. fi
  6342. if test "x$have_libcares" = "xyes"; then
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6344. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6346. /* end confdefs.h. */
  6347. #include <ares.h>
  6348. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6349. int
  6350. main ()
  6351. {
  6352. ares_channel channel;
  6353. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_cxx_try_compile "$LINENO"; then :
  6359. have_libcares1_5=yes
  6360. else
  6361. have_libcares1_5=no
  6362. fi
  6363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6365. $as_echo "$have_libcares1_5" >&6; }
  6366. if test "x$have_libcares1_5" = "xyes"; then
  6367. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6368. fi
  6369. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6370. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6371. if test "x$need_librt" = "xyes"; then
  6372. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6373. fi
  6374. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6375. fi
  6376. LIBS=$LIBS_save
  6377. CPPFLAGS=$CPPFLAGS_save
  6378. if test "x$have_libcares" != "xyes" &&
  6379. test "x$with_libcares_requested" = "xyes"; then
  6380. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6381. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6382. as_fn_error "libcares is requested but not found in the system.
  6383. See \`config.log' for more details." "$LINENO" 5; }
  6384. fi
  6385. fi
  6386. # Check availability of libz
  6387. if test "x$with_libz" = "xyes"; then
  6388. # Check whether --with-libz-prefix was given.
  6389. if test "${with_libz_prefix+set}" = set; then :
  6390. withval=$with_libz_prefix; libz_prefix=$withval
  6391. else
  6392. libz_prefix=""
  6393. fi
  6394. if test "x$libz_prefix" = "x"; then
  6395. libz_prefix="/usr"
  6396. fi
  6397. libz_prefix_lib=$libz_prefix/lib
  6398. libz_prefix_include=$libz_prefix/include
  6399. LIBS_save=$LIBS
  6400. CPPFLAGS_save=$CPPFLAGS
  6401. LIBS="-L$libz_prefix_lib $LIBS"
  6402. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6404. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6405. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. ac_check_lib_save_LIBS=$LIBS
  6409. LIBS="-lz $LIBS"
  6410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6411. /* end confdefs.h. */
  6412. /* Override any GCC internal prototype to avoid an error.
  6413. Use char because int might match the return type of a GCC
  6414. builtin and then its argument prototype would still apply. */
  6415. #ifdef __cplusplus
  6416. extern "C"
  6417. #endif
  6418. char zlibVersion ();
  6419. int
  6420. main ()
  6421. {
  6422. return zlibVersion ();
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. if ac_fn_cxx_try_link "$LINENO"; then :
  6428. ac_cv_lib_z_zlibVersion=yes
  6429. else
  6430. ac_cv_lib_z_zlibVersion=no
  6431. fi
  6432. rm -f core conftest.err conftest.$ac_objext \
  6433. conftest$ac_exeext conftest.$ac_ext
  6434. LIBS=$ac_check_lib_save_LIBS
  6435. fi
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6437. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6438. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6439. have_libz=yes
  6440. fi
  6441. if test "x$have_libz" = "xyes"; then
  6442. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6443. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6444. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6445. fi
  6446. LIBS=$LIBS_save
  6447. CPPFLAGS=$CPPFLAGS_save
  6448. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6449. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6450. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6451. as_fn_error "libz is requested but not found in the system.
  6452. See \`config.log' for more details." "$LINENO" 5; }
  6453. fi
  6454. fi
  6455. # Define variables based on the result of the checks for libraries.
  6456. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6457. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6458. if true; then
  6459. ENABLE_SSL_TRUE=
  6460. ENABLE_SSL_FALSE='#'
  6461. else
  6462. ENABLE_SSL_TRUE='#'
  6463. ENABLE_SSL_FALSE=
  6464. fi
  6465. else
  6466. if false; then
  6467. ENABLE_SSL_TRUE=
  6468. ENABLE_SSL_FALSE='#'
  6469. else
  6470. ENABLE_SSL_TRUE='#'
  6471. ENABLE_SSL_FALSE=
  6472. fi
  6473. fi
  6474. if test "x$have_libgnutls" = "xyes" ; then
  6475. HAVE_LIBGNUTLS_TRUE=
  6476. HAVE_LIBGNUTLS_FALSE='#'
  6477. else
  6478. HAVE_LIBGNUTLS_TRUE='#'
  6479. HAVE_LIBGNUTLS_FALSE=
  6480. fi
  6481. if test "x$have_openssl" = "xyes" ; then
  6482. HAVE_LIBSSL_TRUE=
  6483. HAVE_LIBSSL_FALSE='#'
  6484. else
  6485. HAVE_LIBSSL_TRUE='#'
  6486. HAVE_LIBSSL_FALSE=
  6487. fi
  6488. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6489. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6490. if true; then
  6491. ENABLE_MESSAGE_DIGEST_TRUE=
  6492. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6493. else
  6494. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6495. ENABLE_MESSAGE_DIGEST_FALSE=
  6496. fi
  6497. enable_message_digest=yes
  6498. else
  6499. if false; then
  6500. ENABLE_MESSAGE_DIGEST_TRUE=
  6501. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6502. else
  6503. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6504. ENABLE_MESSAGE_DIGEST_FALSE=
  6505. fi
  6506. fi
  6507. if test "x$enable_bittorrent" = "xyes" &&
  6508. test "x$enable_message_digest" = "xyes"; then
  6509. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6510. if true; then
  6511. ENABLE_BITTORRENT_TRUE=
  6512. ENABLE_BITTORRENT_FALSE='#'
  6513. else
  6514. ENABLE_BITTORRENT_TRUE='#'
  6515. ENABLE_BITTORRENT_FALSE=
  6516. fi
  6517. else
  6518. if test "x$enable_bittorrent_requested" = "xyes"; then
  6519. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6520. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6521. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6522. configuration.\
  6523. Make sure that dependent libraries are installed and configure script options\
  6524. are correct.
  6525. See \`config.log' for more details." "$LINENO" 5; }
  6526. fi
  6527. enable_bittorrent=no
  6528. if false; then
  6529. ENABLE_BITTORRENT_TRUE=
  6530. ENABLE_BITTORRENT_FALSE='#'
  6531. else
  6532. ENABLE_BITTORRENT_TRUE='#'
  6533. ENABLE_BITTORRENT_FALSE=
  6534. fi
  6535. fi
  6536. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6537. test "x$enable_metalink" = "xyes"; then
  6538. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6539. if true; then
  6540. ENABLE_METALINK_TRUE=
  6541. ENABLE_METALINK_FALSE='#'
  6542. else
  6543. ENABLE_METALINK_TRUE='#'
  6544. ENABLE_METALINK_FALSE=
  6545. fi
  6546. else
  6547. if test "x$enable_metalink_requested" = "xyes"; then
  6548. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6549. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6550. as_fn_error "metalink is requested but cannot be enabled with current\
  6551. configuration.\
  6552. Make sure that dependent libraries are installed and configure script options\
  6553. are correct.
  6554. See \`config.log' for more details." "$LINENO" 5; }
  6555. fi
  6556. enable_metalink=no
  6557. if false; then
  6558. ENABLE_METALINK_TRUE=
  6559. ENABLE_METALINK_FALSE='#'
  6560. else
  6561. ENABLE_METALINK_TRUE='#'
  6562. ENABLE_METALINK_FALSE=
  6563. fi
  6564. fi
  6565. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6566. ENABLE_METALINK_LIBXML2_TRUE=
  6567. ENABLE_METALINK_LIBXML2_FALSE='#'
  6568. else
  6569. ENABLE_METALINK_LIBXML2_TRUE='#'
  6570. ENABLE_METALINK_LIBXML2_FALSE=
  6571. fi
  6572. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6573. ENABLE_METALINK_LIBEXPAT_TRUE=
  6574. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6575. else
  6576. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6577. ENABLE_METALINK_LIBEXPAT_FALSE=
  6578. fi
  6579. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6580. enable_xml_rpc=yes
  6581. fi
  6582. if test "x$enable_xml_rpc" = "xyes"; then
  6583. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6584. fi
  6585. if test "x$enable_xml_rpc" = "xyes"; then
  6586. ENABLE_XML_RPC_TRUE=
  6587. ENABLE_XML_RPC_FALSE='#'
  6588. else
  6589. ENABLE_XML_RPC_TRUE='#'
  6590. ENABLE_XML_RPC_FALSE=
  6591. fi
  6592. if test "x$have_libxml2" = "xyes"; then
  6593. HAVE_LIBXML2_TRUE=
  6594. HAVE_LIBXML2_FALSE='#'
  6595. else
  6596. HAVE_LIBXML2_TRUE='#'
  6597. HAVE_LIBXML2_FALSE=
  6598. fi
  6599. if test "x$have_libexpat" = "xyes"; then
  6600. HAVE_LIBEXPAT_TRUE=
  6601. HAVE_LIBEXPAT_FALSE='#'
  6602. else
  6603. HAVE_LIBEXPAT_TRUE='#'
  6604. HAVE_LIBEXPAT_FALSE=
  6605. fi
  6606. if test "x$have_libcares" = "xyes"; then
  6607. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6608. if true; then
  6609. ENABLE_ASYNC_DNS_TRUE=
  6610. ENABLE_ASYNC_DNS_FALSE='#'
  6611. else
  6612. ENABLE_ASYNC_DNS_TRUE='#'
  6613. ENABLE_ASYNC_DNS_FALSE=
  6614. fi
  6615. else
  6616. if false; then
  6617. ENABLE_ASYNC_DNS_TRUE=
  6618. ENABLE_ASYNC_DNS_FALSE='#'
  6619. else
  6620. ENABLE_ASYNC_DNS_TRUE='#'
  6621. ENABLE_ASYNC_DNS_FALSE=
  6622. fi
  6623. fi
  6624. # Set conditional for libz
  6625. if test "x$have_libz" = "xyes"; then
  6626. HAVE_LIBZ_TRUE=
  6627. HAVE_LIBZ_FALSE='#'
  6628. else
  6629. HAVE_LIBZ_TRUE='#'
  6630. HAVE_LIBZ_FALSE=
  6631. fi
  6632. # Set conditional for sqlite3
  6633. if test "x$have_sqlite3" = "xyes"; then
  6634. HAVE_SQLITE3_TRUE=
  6635. HAVE_SQLITE3_FALSE='#'
  6636. else
  6637. HAVE_SQLITE3_TRUE='#'
  6638. HAVE_SQLITE3_FALSE=
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6641. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6642. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. ac_func_search_save_LIBS=$LIBS
  6646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6647. /* end confdefs.h. */
  6648. /* Override any GCC internal prototype to avoid an error.
  6649. Use char because int might match the return type of a GCC
  6650. builtin and then its argument prototype would still apply. */
  6651. #ifdef __cplusplus
  6652. extern "C"
  6653. #endif
  6654. char clock_gettime ();
  6655. int
  6656. main ()
  6657. {
  6658. return clock_gettime ();
  6659. ;
  6660. return 0;
  6661. }
  6662. _ACEOF
  6663. for ac_lib in '' rt; do
  6664. if test -z "$ac_lib"; then
  6665. ac_res="none required"
  6666. else
  6667. ac_res=-l$ac_lib
  6668. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6669. fi
  6670. if ac_fn_cxx_try_link "$LINENO"; then :
  6671. ac_cv_search_clock_gettime=$ac_res
  6672. fi
  6673. rm -f core conftest.err conftest.$ac_objext \
  6674. conftest$ac_exeext
  6675. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6676. break
  6677. fi
  6678. done
  6679. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6680. else
  6681. ac_cv_search_clock_gettime=no
  6682. fi
  6683. rm conftest.$ac_ext
  6684. LIBS=$ac_func_search_save_LIBS
  6685. fi
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6687. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6688. ac_res=$ac_cv_search_clock_gettime
  6689. if test "$ac_res" != no; then :
  6690. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6691. fi
  6692. case "$target" in
  6693. *solaris*)
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6695. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6696. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. ac_func_search_save_LIBS=$LIBS
  6700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6701. /* end confdefs.h. */
  6702. /* Override any GCC internal prototype to avoid an error.
  6703. Use char because int might match the return type of a GCC
  6704. builtin and then its argument prototype would still apply. */
  6705. #ifdef __cplusplus
  6706. extern "C"
  6707. #endif
  6708. char getaddrinfo ();
  6709. int
  6710. main ()
  6711. {
  6712. return getaddrinfo ();
  6713. ;
  6714. return 0;
  6715. }
  6716. _ACEOF
  6717. for ac_lib in '' nsl socket; do
  6718. if test -z "$ac_lib"; then
  6719. ac_res="none required"
  6720. else
  6721. ac_res=-l$ac_lib
  6722. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6723. fi
  6724. if ac_fn_cxx_try_link "$LINENO"; then :
  6725. ac_cv_search_getaddrinfo=$ac_res
  6726. fi
  6727. rm -f core conftest.err conftest.$ac_objext \
  6728. conftest$ac_exeext
  6729. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6730. break
  6731. fi
  6732. done
  6733. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6734. else
  6735. ac_cv_search_getaddrinfo=no
  6736. fi
  6737. rm conftest.$ac_ext
  6738. LIBS=$ac_func_search_save_LIBS
  6739. fi
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6741. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6742. ac_res=$ac_cv_search_getaddrinfo
  6743. if test "$ac_res" != no; then :
  6744. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6745. fi
  6746. ;;
  6747. esac
  6748. # Checks for header files.
  6749. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6750. # for constant arguments. Useless!
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6752. $as_echo_n "checking for working alloca.h... " >&6; }
  6753. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6757. /* end confdefs.h. */
  6758. #include <alloca.h>
  6759. int
  6760. main ()
  6761. {
  6762. char *p = (char *) alloca (2 * sizeof (int));
  6763. if (p) return 0;
  6764. ;
  6765. return 0;
  6766. }
  6767. _ACEOF
  6768. if ac_fn_cxx_try_link "$LINENO"; then :
  6769. ac_cv_working_alloca_h=yes
  6770. else
  6771. ac_cv_working_alloca_h=no
  6772. fi
  6773. rm -f core conftest.err conftest.$ac_objext \
  6774. conftest$ac_exeext conftest.$ac_ext
  6775. fi
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6777. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6778. if test $ac_cv_working_alloca_h = yes; then
  6779. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6780. fi
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6782. $as_echo_n "checking for alloca... " >&6; }
  6783. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6787. /* end confdefs.h. */
  6788. #ifdef __GNUC__
  6789. # define alloca __builtin_alloca
  6790. #else
  6791. # ifdef _MSC_VER
  6792. # include <malloc.h>
  6793. # define alloca _alloca
  6794. # else
  6795. # ifdef HAVE_ALLOCA_H
  6796. # include <alloca.h>
  6797. # else
  6798. # ifdef _AIX
  6799. #pragma alloca
  6800. # else
  6801. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6802. char *alloca ();
  6803. # endif
  6804. # endif
  6805. # endif
  6806. # endif
  6807. #endif
  6808. int
  6809. main ()
  6810. {
  6811. char *p = (char *) alloca (1);
  6812. if (p) return 0;
  6813. ;
  6814. return 0;
  6815. }
  6816. _ACEOF
  6817. if ac_fn_cxx_try_link "$LINENO"; then :
  6818. ac_cv_func_alloca_works=yes
  6819. else
  6820. ac_cv_func_alloca_works=no
  6821. fi
  6822. rm -f core conftest.err conftest.$ac_objext \
  6823. conftest$ac_exeext conftest.$ac_ext
  6824. fi
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6826. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6827. if test $ac_cv_func_alloca_works = yes; then
  6828. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6829. else
  6830. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6831. # that cause trouble. Some versions do not even contain alloca or
  6832. # contain a buggy version. If you still want to use their alloca,
  6833. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6834. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6835. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6837. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6838. if test "${ac_cv_os_cray+set}" = set; then :
  6839. $as_echo_n "(cached) " >&6
  6840. else
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. #if defined CRAY && ! defined CRAY2
  6844. webecray
  6845. #else
  6846. wenotbecray
  6847. #endif
  6848. _ACEOF
  6849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6850. $EGREP "webecray" >/dev/null 2>&1; then :
  6851. ac_cv_os_cray=yes
  6852. else
  6853. ac_cv_os_cray=no
  6854. fi
  6855. rm -f conftest*
  6856. fi
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6858. $as_echo "$ac_cv_os_cray" >&6; }
  6859. if test $ac_cv_os_cray = yes; then
  6860. for ac_func in _getb67 GETB67 getb67; do
  6861. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6862. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6863. eval as_val=\$$as_ac_var
  6864. if test "x$as_val" = x""yes; then :
  6865. cat >>confdefs.h <<_ACEOF
  6866. #define CRAY_STACKSEG_END $ac_func
  6867. _ACEOF
  6868. break
  6869. fi
  6870. done
  6871. fi
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6873. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6874. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. if test "$cross_compiling" = yes; then :
  6878. ac_cv_c_stack_direction=0
  6879. else
  6880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6881. /* end confdefs.h. */
  6882. $ac_includes_default
  6883. int
  6884. find_stack_direction ()
  6885. {
  6886. static char *addr = 0;
  6887. auto char dummy;
  6888. if (addr == 0)
  6889. {
  6890. addr = &dummy;
  6891. return find_stack_direction ();
  6892. }
  6893. else
  6894. return (&dummy > addr) ? 1 : -1;
  6895. }
  6896. int
  6897. main ()
  6898. {
  6899. return find_stack_direction () < 0;
  6900. }
  6901. _ACEOF
  6902. if ac_fn_cxx_try_run "$LINENO"; then :
  6903. ac_cv_c_stack_direction=1
  6904. else
  6905. ac_cv_c_stack_direction=-1
  6906. fi
  6907. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6908. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6909. fi
  6910. fi
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6912. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6913. cat >>confdefs.h <<_ACEOF
  6914. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6915. _ACEOF
  6916. fi
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6918. $as_echo_n "checking for ANSI C header files... " >&6; }
  6919. if test "${ac_cv_header_stdc+set}" = set; then :
  6920. $as_echo_n "(cached) " >&6
  6921. else
  6922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6923. /* end confdefs.h. */
  6924. #include <stdlib.h>
  6925. #include <stdarg.h>
  6926. #include <string.h>
  6927. #include <float.h>
  6928. int
  6929. main ()
  6930. {
  6931. ;
  6932. return 0;
  6933. }
  6934. _ACEOF
  6935. if ac_fn_cxx_try_compile "$LINENO"; then :
  6936. ac_cv_header_stdc=yes
  6937. else
  6938. ac_cv_header_stdc=no
  6939. fi
  6940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6941. if test $ac_cv_header_stdc = yes; then
  6942. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6944. /* end confdefs.h. */
  6945. #include <string.h>
  6946. _ACEOF
  6947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6948. $EGREP "memchr" >/dev/null 2>&1; then :
  6949. else
  6950. ac_cv_header_stdc=no
  6951. fi
  6952. rm -f conftest*
  6953. fi
  6954. if test $ac_cv_header_stdc = yes; then
  6955. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6957. /* end confdefs.h. */
  6958. #include <stdlib.h>
  6959. _ACEOF
  6960. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6961. $EGREP "free" >/dev/null 2>&1; then :
  6962. else
  6963. ac_cv_header_stdc=no
  6964. fi
  6965. rm -f conftest*
  6966. fi
  6967. if test $ac_cv_header_stdc = yes; then
  6968. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6969. if test "$cross_compiling" = yes; then :
  6970. :
  6971. else
  6972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6973. /* end confdefs.h. */
  6974. #include <ctype.h>
  6975. #include <stdlib.h>
  6976. #if ((' ' & 0x0FF) == 0x020)
  6977. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6978. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6979. #else
  6980. # define ISLOWER(c) \
  6981. (('a' <= (c) && (c) <= 'i') \
  6982. || ('j' <= (c) && (c) <= 'r') \
  6983. || ('s' <= (c) && (c) <= 'z'))
  6984. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6985. #endif
  6986. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6987. int
  6988. main ()
  6989. {
  6990. int i;
  6991. for (i = 0; i < 256; i++)
  6992. if (XOR (islower (i), ISLOWER (i))
  6993. || toupper (i) != TOUPPER (i))
  6994. return 2;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. if ac_fn_cxx_try_run "$LINENO"; then :
  6999. else
  7000. ac_cv_header_stdc=no
  7001. fi
  7002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7004. fi
  7005. fi
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7008. $as_echo "$ac_cv_header_stdc" >&6; }
  7009. if test $ac_cv_header_stdc = yes; then
  7010. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7011. fi
  7012. case "$target" in
  7013. *mingw*)
  7014. for ac_header in windows.h \
  7015. winsock2.h \
  7016. ws2tcpip.h \
  7017. mmsystem.h
  7018. do :
  7019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7020. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7021. # include <windows.h>
  7022. #endif
  7023. "
  7024. eval as_val=\$$as_ac_Header
  7025. if test "x$as_val" = x""yes; then :
  7026. cat >>confdefs.h <<_ACEOF
  7027. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7028. _ACEOF
  7029. fi
  7030. done
  7031. ;;
  7032. esac
  7033. for ac_header in argz.h \
  7034. arpa/inet.h \
  7035. fcntl.h \
  7036. float.h \
  7037. inttypes.h \
  7038. io.h \
  7039. langinfo.h \
  7040. libintl.h \
  7041. limits.h \
  7042. locale.h \
  7043. malloc.h \
  7044. netdb.h \
  7045. netinet/in.h \
  7046. stddef.h \
  7047. stdint.h \
  7048. stdio_ext.h \
  7049. stdlib.h \
  7050. string.h \
  7051. strings.h \
  7052. sys/ioctl.h \
  7053. sys/param.h \
  7054. sys/socket.h \
  7055. sys/time.h \
  7056. termios.h \
  7057. unistd.h \
  7058. utime.h \
  7059. wchar.h \
  7060. ifaddrs.h
  7061. do :
  7062. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7063. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7064. eval as_val=\$$as_ac_Header
  7065. if test "x$as_val" = x""yes; then :
  7066. cat >>confdefs.h <<_ACEOF
  7067. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7068. _ACEOF
  7069. fi
  7070. done
  7071. # Checks for typedefs, structures, and compiler characteristics.
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7073. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7074. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7078. /* end confdefs.h. */
  7079. #include <stdbool.h>
  7080. #ifndef bool
  7081. "error: bool is not defined"
  7082. #endif
  7083. #ifndef false
  7084. "error: false is not defined"
  7085. #endif
  7086. #if false
  7087. "error: false is not 0"
  7088. #endif
  7089. #ifndef true
  7090. "error: true is not defined"
  7091. #endif
  7092. #if true != 1
  7093. "error: true is not 1"
  7094. #endif
  7095. #ifndef __bool_true_false_are_defined
  7096. "error: __bool_true_false_are_defined is not defined"
  7097. #endif
  7098. struct s { _Bool s: 1; _Bool t; } s;
  7099. char a[true == 1 ? 1 : -1];
  7100. char b[false == 0 ? 1 : -1];
  7101. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7102. char d[(bool) 0.5 == true ? 1 : -1];
  7103. bool e = &s;
  7104. char f[(_Bool) 0.0 == false ? 1 : -1];
  7105. char g[true];
  7106. char h[sizeof (_Bool)];
  7107. char i[sizeof s.t];
  7108. enum { j = false, k = true, l = false * true, m = true * 256 };
  7109. /* The following fails for
  7110. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7111. _Bool n[m];
  7112. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7113. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7114. # if defined __xlc__ || defined __GNUC__
  7115. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7116. reported by James Lemley on 2005-10-05; see
  7117. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7118. This test is not quite right, since xlc is allowed to
  7119. reject this program, as the initializer for xlcbug is
  7120. not one of the forms that C requires support for.
  7121. However, doing the test right would require a runtime
  7122. test, and that would make cross-compilation harder.
  7123. Let us hope that IBM fixes the xlc bug, and also adds
  7124. support for this kind of constant expression. In the
  7125. meantime, this test will reject xlc, which is OK, since
  7126. our stdbool.h substitute should suffice. We also test
  7127. this with GCC, where it should work, to detect more
  7128. quickly whether someone messes up the test in the
  7129. future. */
  7130. char digs[] = "0123456789";
  7131. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7132. # endif
  7133. /* Catch a bug in an HP-UX C compiler. See
  7134. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7135. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7136. */
  7137. _Bool q = true;
  7138. _Bool *pq = &q;
  7139. int
  7140. main ()
  7141. {
  7142. *pq |= q;
  7143. *pq |= ! q;
  7144. /* Refer to every declared value, to avoid compiler optimizations. */
  7145. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7146. + !m + !n + !o + !p + !q + !pq);
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. if ac_fn_cxx_try_compile "$LINENO"; then :
  7152. ac_cv_header_stdbool_h=yes
  7153. else
  7154. ac_cv_header_stdbool_h=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7159. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7160. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7161. if test "x$ac_cv_type__Bool" = x""yes; then :
  7162. cat >>confdefs.h <<_ACEOF
  7163. #define HAVE__BOOL 1
  7164. _ACEOF
  7165. fi
  7166. if test $ac_cv_header_stdbool_h = yes; then
  7167. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7168. fi
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7170. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7171. if test "${ac_cv_c_const+set}" = set; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7175. /* end confdefs.h. */
  7176. int
  7177. main ()
  7178. {
  7179. /* FIXME: Include the comments suggested by Paul. */
  7180. #ifndef __cplusplus
  7181. /* Ultrix mips cc rejects this. */
  7182. typedef int charset[2];
  7183. const charset cs;
  7184. /* SunOS 4.1.1 cc rejects this. */
  7185. char const *const *pcpcc;
  7186. char **ppc;
  7187. /* NEC SVR4.0.2 mips cc rejects this. */
  7188. struct point {int x, y;};
  7189. static struct point const zero = {0,0};
  7190. /* AIX XL C 1.02.0.0 rejects this.
  7191. It does not let you subtract one const X* pointer from another in
  7192. an arm of an if-expression whose if-part is not a constant
  7193. expression */
  7194. const char *g = "string";
  7195. pcpcc = &g + (g ? g-g : 0);
  7196. /* HPUX 7.0 cc rejects these. */
  7197. ++pcpcc;
  7198. ppc = (char**) pcpcc;
  7199. pcpcc = (char const *const *) ppc;
  7200. { /* SCO 3.2v4 cc rejects this. */
  7201. char *t;
  7202. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7203. *t++ = 0;
  7204. if (s) return 0;
  7205. }
  7206. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7207. int x[] = {25, 17};
  7208. const int *foo = &x[0];
  7209. ++foo;
  7210. }
  7211. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7212. typedef const int *iptr;
  7213. iptr p = 0;
  7214. ++p;
  7215. }
  7216. { /* AIX XL C 1.02.0.0 rejects this saying
  7217. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7218. struct s { int j; const int *ap[3]; };
  7219. struct s *b; b->j = 5;
  7220. }
  7221. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7222. const int foo = 10;
  7223. if (!foo) return 0;
  7224. }
  7225. return !cs[0] && !zero.x;
  7226. #endif
  7227. ;
  7228. return 0;
  7229. }
  7230. _ACEOF
  7231. if ac_fn_cxx_try_compile "$LINENO"; then :
  7232. ac_cv_c_const=yes
  7233. else
  7234. ac_cv_c_const=no
  7235. fi
  7236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7237. fi
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7239. $as_echo "$ac_cv_c_const" >&6; }
  7240. if test $ac_cv_c_const = no; then
  7241. $as_echo "#define const /**/" >>confdefs.h
  7242. fi
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7244. $as_echo_n "checking for inline... " >&6; }
  7245. if test "${ac_cv_c_inline+set}" = set; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. ac_cv_c_inline=no
  7249. for ac_kw in inline __inline__ __inline; do
  7250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7251. /* end confdefs.h. */
  7252. #ifndef __cplusplus
  7253. typedef int foo_t;
  7254. static $ac_kw foo_t static_foo () {return 0; }
  7255. $ac_kw foo_t foo () {return 0; }
  7256. #endif
  7257. _ACEOF
  7258. if ac_fn_cxx_try_compile "$LINENO"; then :
  7259. ac_cv_c_inline=$ac_kw
  7260. fi
  7261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7262. test "$ac_cv_c_inline" != no && break
  7263. done
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7266. $as_echo "$ac_cv_c_inline" >&6; }
  7267. case $ac_cv_c_inline in
  7268. inline | yes) ;;
  7269. *)
  7270. case $ac_cv_c_inline in
  7271. no) ac_val=;;
  7272. *) ac_val=$ac_cv_c_inline;;
  7273. esac
  7274. cat >>confdefs.h <<_ACEOF
  7275. #ifndef __cplusplus
  7276. #define inline $ac_val
  7277. #endif
  7278. _ACEOF
  7279. ;;
  7280. esac
  7281. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7282. case $ac_cv_c_int16_t in #(
  7283. no|yes) ;; #(
  7284. *)
  7285. cat >>confdefs.h <<_ACEOF
  7286. #define int16_t $ac_cv_c_int16_t
  7287. _ACEOF
  7288. ;;
  7289. esac
  7290. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7291. case $ac_cv_c_int32_t in #(
  7292. no|yes) ;; #(
  7293. *)
  7294. cat >>confdefs.h <<_ACEOF
  7295. #define int32_t $ac_cv_c_int32_t
  7296. _ACEOF
  7297. ;;
  7298. esac
  7299. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7300. case $ac_cv_c_int64_t in #(
  7301. no|yes) ;; #(
  7302. *)
  7303. cat >>confdefs.h <<_ACEOF
  7304. #define int64_t $ac_cv_c_int64_t
  7305. _ACEOF
  7306. ;;
  7307. esac
  7308. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7309. case $ac_cv_c_int8_t in #(
  7310. no|yes) ;; #(
  7311. *)
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define int8_t $ac_cv_c_int8_t
  7314. _ACEOF
  7315. ;;
  7316. esac
  7317. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7318. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7319. else
  7320. cat >>confdefs.h <<_ACEOF
  7321. #define mode_t int
  7322. _ACEOF
  7323. fi
  7324. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7325. if test "x$ac_cv_type_off_t" = x""yes; then :
  7326. else
  7327. cat >>confdefs.h <<_ACEOF
  7328. #define off_t long int
  7329. _ACEOF
  7330. fi
  7331. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7332. if test "x$ac_cv_type_size_t" = x""yes; then :
  7333. else
  7334. cat >>confdefs.h <<_ACEOF
  7335. #define size_t unsigned int
  7336. _ACEOF
  7337. fi
  7338. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7339. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7340. else
  7341. cat >>confdefs.h <<_ACEOF
  7342. #define ssize_t int
  7343. _ACEOF
  7344. fi
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7346. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7347. if test "${ac_cv_header_time+set}" = set; then :
  7348. $as_echo_n "(cached) " >&6
  7349. else
  7350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7351. /* end confdefs.h. */
  7352. #include <sys/types.h>
  7353. #include <sys/time.h>
  7354. #include <time.h>
  7355. int
  7356. main ()
  7357. {
  7358. if ((struct tm *) 0)
  7359. return 0;
  7360. ;
  7361. return 0;
  7362. }
  7363. _ACEOF
  7364. if ac_fn_cxx_try_compile "$LINENO"; then :
  7365. ac_cv_header_time=yes
  7366. else
  7367. ac_cv_header_time=no
  7368. fi
  7369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7370. fi
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7372. $as_echo "$ac_cv_header_time" >&6; }
  7373. if test $ac_cv_header_time = yes; then
  7374. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7377. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7378. if test "${ac_cv_struct_tm+set}" = set; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7382. /* end confdefs.h. */
  7383. #include <sys/types.h>
  7384. #include <time.h>
  7385. int
  7386. main ()
  7387. {
  7388. struct tm tm;
  7389. int *p = &tm.tm_sec;
  7390. return !p;
  7391. ;
  7392. return 0;
  7393. }
  7394. _ACEOF
  7395. if ac_fn_cxx_try_compile "$LINENO"; then :
  7396. ac_cv_struct_tm=time.h
  7397. else
  7398. ac_cv_struct_tm=sys/time.h
  7399. fi
  7400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7403. $as_echo "$ac_cv_struct_tm" >&6; }
  7404. if test $ac_cv_struct_tm = sys/time.h; then
  7405. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7406. fi
  7407. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7408. case $ac_cv_c_uint16_t in #(
  7409. no|yes) ;; #(
  7410. *)
  7411. cat >>confdefs.h <<_ACEOF
  7412. #define uint16_t $ac_cv_c_uint16_t
  7413. _ACEOF
  7414. ;;
  7415. esac
  7416. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7417. case $ac_cv_c_uint32_t in #(
  7418. no|yes) ;; #(
  7419. *)
  7420. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7421. cat >>confdefs.h <<_ACEOF
  7422. #define uint32_t $ac_cv_c_uint32_t
  7423. _ACEOF
  7424. ;;
  7425. esac
  7426. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7427. case $ac_cv_c_uint64_t in #(
  7428. no|yes) ;; #(
  7429. *)
  7430. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7431. cat >>confdefs.h <<_ACEOF
  7432. #define uint64_t $ac_cv_c_uint64_t
  7433. _ACEOF
  7434. ;;
  7435. esac
  7436. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7437. case $ac_cv_c_uint8_t in #(
  7438. no|yes) ;; #(
  7439. *)
  7440. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7441. cat >>confdefs.h <<_ACEOF
  7442. #define uint8_t $ac_cv_c_uint8_t
  7443. _ACEOF
  7444. ;;
  7445. esac
  7446. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7447. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7448. else
  7449. cat >>confdefs.h <<_ACEOF
  7450. #define pid_t int
  7451. _ACEOF
  7452. fi
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7454. $as_echo_n "checking for working volatile... " >&6; }
  7455. if test "${ac_cv_c_volatile+set}" = set; then :
  7456. $as_echo_n "(cached) " >&6
  7457. else
  7458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7459. /* end confdefs.h. */
  7460. int
  7461. main ()
  7462. {
  7463. volatile int x;
  7464. int * volatile y = (int *) 0;
  7465. return !x && !y;
  7466. ;
  7467. return 0;
  7468. }
  7469. _ACEOF
  7470. if ac_fn_cxx_try_compile "$LINENO"; then :
  7471. ac_cv_c_volatile=yes
  7472. else
  7473. ac_cv_c_volatile=no
  7474. fi
  7475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7478. $as_echo "$ac_cv_c_volatile" >&6; }
  7479. if test $ac_cv_c_volatile = no; then
  7480. $as_echo "#define volatile /**/" >>confdefs.h
  7481. fi
  7482. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7483. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7484. cat >>confdefs.h <<_ACEOF
  7485. #define HAVE_PTRDIFF_T 1
  7486. _ACEOF
  7487. fi
  7488. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7489. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7490. cat >>confdefs.h <<_ACEOF
  7491. #define HAVE_STRUCT_TIMESPEC 1
  7492. _ACEOF
  7493. fi
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7495. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7496. if test "${ac_cv_c_bigendian+set}" = set; then :
  7497. $as_echo_n "(cached) " >&6
  7498. else
  7499. ac_cv_c_bigendian=unknown
  7500. # See if we're dealing with a universal compiler.
  7501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7502. /* end confdefs.h. */
  7503. #ifndef __APPLE_CC__
  7504. not a universal capable compiler
  7505. #endif
  7506. typedef int dummy;
  7507. _ACEOF
  7508. if ac_fn_cxx_try_compile "$LINENO"; then :
  7509. # Check for potential -arch flags. It is not universal unless
  7510. # there are at least two -arch flags with different values.
  7511. ac_arch=
  7512. ac_prev=
  7513. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7514. if test -n "$ac_prev"; then
  7515. case $ac_word in
  7516. i?86 | x86_64 | ppc | ppc64)
  7517. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7518. ac_arch=$ac_word
  7519. else
  7520. ac_cv_c_bigendian=universal
  7521. break
  7522. fi
  7523. ;;
  7524. esac
  7525. ac_prev=
  7526. elif test "x$ac_word" = "x-arch"; then
  7527. ac_prev=arch
  7528. fi
  7529. done
  7530. fi
  7531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7532. if test $ac_cv_c_bigendian = unknown; then
  7533. # See if sys/param.h defines the BYTE_ORDER macro.
  7534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7535. /* end confdefs.h. */
  7536. #include <sys/types.h>
  7537. #include <sys/param.h>
  7538. int
  7539. main ()
  7540. {
  7541. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7542. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7543. && LITTLE_ENDIAN)
  7544. bogus endian macros
  7545. #endif
  7546. ;
  7547. return 0;
  7548. }
  7549. _ACEOF
  7550. if ac_fn_cxx_try_compile "$LINENO"; then :
  7551. # It does; now see whether it defined to BIG_ENDIAN or not.
  7552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7553. /* end confdefs.h. */
  7554. #include <sys/types.h>
  7555. #include <sys/param.h>
  7556. int
  7557. main ()
  7558. {
  7559. #if BYTE_ORDER != BIG_ENDIAN
  7560. not big endian
  7561. #endif
  7562. ;
  7563. return 0;
  7564. }
  7565. _ACEOF
  7566. if ac_fn_cxx_try_compile "$LINENO"; then :
  7567. ac_cv_c_bigendian=yes
  7568. else
  7569. ac_cv_c_bigendian=no
  7570. fi
  7571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7572. fi
  7573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7574. fi
  7575. if test $ac_cv_c_bigendian = unknown; then
  7576. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7578. /* end confdefs.h. */
  7579. #include <limits.h>
  7580. int
  7581. main ()
  7582. {
  7583. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7584. bogus endian macros
  7585. #endif
  7586. ;
  7587. return 0;
  7588. }
  7589. _ACEOF
  7590. if ac_fn_cxx_try_compile "$LINENO"; then :
  7591. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7593. /* end confdefs.h. */
  7594. #include <limits.h>
  7595. int
  7596. main ()
  7597. {
  7598. #ifndef _BIG_ENDIAN
  7599. not big endian
  7600. #endif
  7601. ;
  7602. return 0;
  7603. }
  7604. _ACEOF
  7605. if ac_fn_cxx_try_compile "$LINENO"; then :
  7606. ac_cv_c_bigendian=yes
  7607. else
  7608. ac_cv_c_bigendian=no
  7609. fi
  7610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7613. fi
  7614. if test $ac_cv_c_bigendian = unknown; then
  7615. # Compile a test program.
  7616. if test "$cross_compiling" = yes; then :
  7617. # Try to guess by grepping values from an object file.
  7618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7619. /* end confdefs.h. */
  7620. short int ascii_mm[] =
  7621. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7622. short int ascii_ii[] =
  7623. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7624. int use_ascii (int i) {
  7625. return ascii_mm[i] + ascii_ii[i];
  7626. }
  7627. short int ebcdic_ii[] =
  7628. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7629. short int ebcdic_mm[] =
  7630. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7631. int use_ebcdic (int i) {
  7632. return ebcdic_mm[i] + ebcdic_ii[i];
  7633. }
  7634. extern int foo;
  7635. int
  7636. main ()
  7637. {
  7638. return use_ascii (foo) == use_ebcdic (foo);
  7639. ;
  7640. return 0;
  7641. }
  7642. _ACEOF
  7643. if ac_fn_cxx_try_compile "$LINENO"; then :
  7644. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7645. ac_cv_c_bigendian=yes
  7646. fi
  7647. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7648. if test "$ac_cv_c_bigendian" = unknown; then
  7649. ac_cv_c_bigendian=no
  7650. else
  7651. # finding both strings is unlikely to happen, but who knows?
  7652. ac_cv_c_bigendian=unknown
  7653. fi
  7654. fi
  7655. fi
  7656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7657. else
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. $ac_includes_default
  7661. int
  7662. main ()
  7663. {
  7664. /* Are we little or big endian? From Harbison&Steele. */
  7665. union
  7666. {
  7667. long int l;
  7668. char c[sizeof (long int)];
  7669. } u;
  7670. u.l = 1;
  7671. return u.c[sizeof (long int) - 1] == 1;
  7672. ;
  7673. return 0;
  7674. }
  7675. _ACEOF
  7676. if ac_fn_cxx_try_run "$LINENO"; then :
  7677. ac_cv_c_bigendian=no
  7678. else
  7679. ac_cv_c_bigendian=yes
  7680. fi
  7681. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7682. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7683. fi
  7684. fi
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7687. $as_echo "$ac_cv_c_bigendian" >&6; }
  7688. case $ac_cv_c_bigendian in #(
  7689. yes)
  7690. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7691. ;; #(
  7692. no)
  7693. ;; #(
  7694. universal)
  7695. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7696. ;; #(
  7697. *)
  7698. as_fn_error "unknown endianness
  7699. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7700. esac
  7701. # Check whether --enable-largefile was given.
  7702. if test "${enable_largefile+set}" = set; then :
  7703. enableval=$enable_largefile;
  7704. fi
  7705. if test "$enable_largefile" != no; then
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7707. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7708. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7709. $as_echo_n "(cached) " >&6
  7710. else
  7711. ac_cv_sys_largefile_CC=no
  7712. if test "$GCC" != yes; then
  7713. ac_save_CC=$CC
  7714. while :; do
  7715. # IRIX 6.2 and later do not support large files by default,
  7716. # so use the C compiler's -n32 option if that helps.
  7717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7718. /* end confdefs.h. */
  7719. #include <sys/types.h>
  7720. /* Check that off_t can represent 2**63 - 1 correctly.
  7721. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7722. since some C++ compilers masquerading as C compilers
  7723. incorrectly reject 9223372036854775807. */
  7724. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7725. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7726. && LARGE_OFF_T % 2147483647 == 1)
  7727. ? 1 : -1];
  7728. int
  7729. main ()
  7730. {
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. if ac_fn_cxx_try_compile "$LINENO"; then :
  7736. break
  7737. fi
  7738. rm -f core conftest.err conftest.$ac_objext
  7739. CC="$CC -n32"
  7740. if ac_fn_cxx_try_compile "$LINENO"; then :
  7741. ac_cv_sys_largefile_CC=' -n32'; break
  7742. fi
  7743. rm -f core conftest.err conftest.$ac_objext
  7744. break
  7745. done
  7746. CC=$ac_save_CC
  7747. rm -f conftest.$ac_ext
  7748. fi
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7751. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7752. if test "$ac_cv_sys_largefile_CC" != no; then
  7753. CC=$CC$ac_cv_sys_largefile_CC
  7754. fi
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7756. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7757. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7758. $as_echo_n "(cached) " >&6
  7759. else
  7760. while :; do
  7761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7762. /* end confdefs.h. */
  7763. #include <sys/types.h>
  7764. /* Check that off_t can represent 2**63 - 1 correctly.
  7765. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7766. since some C++ compilers masquerading as C compilers
  7767. incorrectly reject 9223372036854775807. */
  7768. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7769. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7770. && LARGE_OFF_T % 2147483647 == 1)
  7771. ? 1 : -1];
  7772. int
  7773. main ()
  7774. {
  7775. ;
  7776. return 0;
  7777. }
  7778. _ACEOF
  7779. if ac_fn_cxx_try_compile "$LINENO"; then :
  7780. ac_cv_sys_file_offset_bits=no; break
  7781. fi
  7782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7784. /* end confdefs.h. */
  7785. #define _FILE_OFFSET_BITS 64
  7786. #include <sys/types.h>
  7787. /* Check that off_t can represent 2**63 - 1 correctly.
  7788. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7789. since some C++ compilers masquerading as C compilers
  7790. incorrectly reject 9223372036854775807. */
  7791. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7792. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7793. && LARGE_OFF_T % 2147483647 == 1)
  7794. ? 1 : -1];
  7795. int
  7796. main ()
  7797. {
  7798. ;
  7799. return 0;
  7800. }
  7801. _ACEOF
  7802. if ac_fn_cxx_try_compile "$LINENO"; then :
  7803. ac_cv_sys_file_offset_bits=64; break
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7806. ac_cv_sys_file_offset_bits=unknown
  7807. break
  7808. done
  7809. fi
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7811. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7812. case $ac_cv_sys_file_offset_bits in #(
  7813. no | unknown) ;;
  7814. *)
  7815. cat >>confdefs.h <<_ACEOF
  7816. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7817. _ACEOF
  7818. ;;
  7819. esac
  7820. rm -rf conftest*
  7821. if test $ac_cv_sys_file_offset_bits = unknown; then
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7823. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7824. if test "${ac_cv_sys_large_files+set}" = set; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. while :; do
  7828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7829. /* end confdefs.h. */
  7830. #include <sys/types.h>
  7831. /* Check that off_t can represent 2**63 - 1 correctly.
  7832. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7833. since some C++ compilers masquerading as C compilers
  7834. incorrectly reject 9223372036854775807. */
  7835. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7836. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7837. && LARGE_OFF_T % 2147483647 == 1)
  7838. ? 1 : -1];
  7839. int
  7840. main ()
  7841. {
  7842. ;
  7843. return 0;
  7844. }
  7845. _ACEOF
  7846. if ac_fn_cxx_try_compile "$LINENO"; then :
  7847. ac_cv_sys_large_files=no; break
  7848. fi
  7849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7851. /* end confdefs.h. */
  7852. #define _LARGE_FILES 1
  7853. #include <sys/types.h>
  7854. /* Check that off_t can represent 2**63 - 1 correctly.
  7855. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7856. since some C++ compilers masquerading as C compilers
  7857. incorrectly reject 9223372036854775807. */
  7858. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7859. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7860. && LARGE_OFF_T % 2147483647 == 1)
  7861. ? 1 : -1];
  7862. int
  7863. main ()
  7864. {
  7865. ;
  7866. return 0;
  7867. }
  7868. _ACEOF
  7869. if ac_fn_cxx_try_compile "$LINENO"; then :
  7870. ac_cv_sys_large_files=1; break
  7871. fi
  7872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7873. ac_cv_sys_large_files=unknown
  7874. break
  7875. done
  7876. fi
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7878. $as_echo "$ac_cv_sys_large_files" >&6; }
  7879. case $ac_cv_sys_large_files in #(
  7880. no | unknown) ;;
  7881. *)
  7882. cat >>confdefs.h <<_ACEOF
  7883. #define _LARGE_FILES $ac_cv_sys_large_files
  7884. _ACEOF
  7885. ;;
  7886. esac
  7887. rm -rf conftest*
  7888. fi
  7889. fi
  7890. # Checks for library functions.
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7892. $as_echo_n "checking whether NLS is requested... " >&6; }
  7893. # Check whether --enable-nls was given.
  7894. if test "${enable_nls+set}" = set; then :
  7895. enableval=$enable_nls; USE_NLS=$enableval
  7896. else
  7897. USE_NLS=yes
  7898. fi
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7900. $as_echo "$USE_NLS" >&6; }
  7901. GETTEXT_MACRO_VERSION=0.17
  7902. # Prepare PATH_SEPARATOR.
  7903. # The user is always right.
  7904. if test "${PATH_SEPARATOR+set}" != set; then
  7905. echo "#! /bin/sh" >conf$$.sh
  7906. echo "exit 0" >>conf$$.sh
  7907. chmod +x conf$$.sh
  7908. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7909. PATH_SEPARATOR=';'
  7910. else
  7911. PATH_SEPARATOR=:
  7912. fi
  7913. rm -f conf$$.sh
  7914. fi
  7915. # Find out how to test for executable files. Don't use a zero-byte file,
  7916. # as systems may use methods other than mode bits to determine executability.
  7917. cat >conf$$.file <<_ASEOF
  7918. #! /bin/sh
  7919. exit 0
  7920. _ASEOF
  7921. chmod +x conf$$.file
  7922. if test -x conf$$.file >/dev/null 2>&1; then
  7923. ac_executable_p="test -x"
  7924. else
  7925. ac_executable_p="test -f"
  7926. fi
  7927. rm -f conf$$.file
  7928. # Extract the first word of "msgfmt", so it can be a program name with args.
  7929. set dummy msgfmt; ac_word=$2
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7931. $as_echo_n "checking for $ac_word... " >&6; }
  7932. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. case "$MSGFMT" in
  7936. [\\/]* | ?:[\\/]*)
  7937. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7938. ;;
  7939. *)
  7940. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7941. for ac_dir in $PATH; do
  7942. IFS="$ac_save_IFS"
  7943. test -z "$ac_dir" && ac_dir=.
  7944. for ac_exec_ext in '' $ac_executable_extensions; do
  7945. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7946. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7947. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7948. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7949. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7950. break 2
  7951. fi
  7952. fi
  7953. done
  7954. done
  7955. IFS="$ac_save_IFS"
  7956. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7957. ;;
  7958. esac
  7959. fi
  7960. MSGFMT="$ac_cv_path_MSGFMT"
  7961. if test "$MSGFMT" != ":"; then
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7963. $as_echo "$MSGFMT" >&6; }
  7964. else
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7966. $as_echo "no" >&6; }
  7967. fi
  7968. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7969. set dummy gmsgfmt; ac_word=$2
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7971. $as_echo_n "checking for $ac_word... " >&6; }
  7972. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7973. $as_echo_n "(cached) " >&6
  7974. else
  7975. case $GMSGFMT in
  7976. [\\/]* | ?:[\\/]*)
  7977. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7978. ;;
  7979. *)
  7980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7981. for as_dir in $PATH
  7982. do
  7983. IFS=$as_save_IFS
  7984. test -z "$as_dir" && as_dir=.
  7985. for ac_exec_ext in '' $ac_executable_extensions; do
  7986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7987. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7989. break 2
  7990. fi
  7991. done
  7992. done
  7993. IFS=$as_save_IFS
  7994. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7995. ;;
  7996. esac
  7997. fi
  7998. GMSGFMT=$ac_cv_path_GMSGFMT
  7999. if test -n "$GMSGFMT"; then
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8001. $as_echo "$GMSGFMT" >&6; }
  8002. else
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8004. $as_echo "no" >&6; }
  8005. fi
  8006. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8007. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8008. *) MSGFMT_015=$MSGFMT ;;
  8009. esac
  8010. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8011. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8012. *) GMSGFMT_015=$GMSGFMT ;;
  8013. esac
  8014. # Prepare PATH_SEPARATOR.
  8015. # The user is always right.
  8016. if test "${PATH_SEPARATOR+set}" != set; then
  8017. echo "#! /bin/sh" >conf$$.sh
  8018. echo "exit 0" >>conf$$.sh
  8019. chmod +x conf$$.sh
  8020. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8021. PATH_SEPARATOR=';'
  8022. else
  8023. PATH_SEPARATOR=:
  8024. fi
  8025. rm -f conf$$.sh
  8026. fi
  8027. # Find out how to test for executable files. Don't use a zero-byte file,
  8028. # as systems may use methods other than mode bits to determine executability.
  8029. cat >conf$$.file <<_ASEOF
  8030. #! /bin/sh
  8031. exit 0
  8032. _ASEOF
  8033. chmod +x conf$$.file
  8034. if test -x conf$$.file >/dev/null 2>&1; then
  8035. ac_executable_p="test -x"
  8036. else
  8037. ac_executable_p="test -f"
  8038. fi
  8039. rm -f conf$$.file
  8040. # Extract the first word of "xgettext", so it can be a program name with args.
  8041. set dummy xgettext; ac_word=$2
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8043. $as_echo_n "checking for $ac_word... " >&6; }
  8044. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8045. $as_echo_n "(cached) " >&6
  8046. else
  8047. case "$XGETTEXT" in
  8048. [\\/]* | ?:[\\/]*)
  8049. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8050. ;;
  8051. *)
  8052. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8053. for ac_dir in $PATH; do
  8054. IFS="$ac_save_IFS"
  8055. test -z "$ac_dir" && ac_dir=.
  8056. for ac_exec_ext in '' $ac_executable_extensions; do
  8057. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8058. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8059. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8060. (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
  8061. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8062. break 2
  8063. fi
  8064. fi
  8065. done
  8066. done
  8067. IFS="$ac_save_IFS"
  8068. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8069. ;;
  8070. esac
  8071. fi
  8072. XGETTEXT="$ac_cv_path_XGETTEXT"
  8073. if test "$XGETTEXT" != ":"; then
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8075. $as_echo "$XGETTEXT" >&6; }
  8076. else
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8078. $as_echo "no" >&6; }
  8079. fi
  8080. rm -f messages.po
  8081. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8082. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8083. *) XGETTEXT_015=$XGETTEXT ;;
  8084. esac
  8085. # Prepare PATH_SEPARATOR.
  8086. # The user is always right.
  8087. if test "${PATH_SEPARATOR+set}" != set; then
  8088. echo "#! /bin/sh" >conf$$.sh
  8089. echo "exit 0" >>conf$$.sh
  8090. chmod +x conf$$.sh
  8091. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8092. PATH_SEPARATOR=';'
  8093. else
  8094. PATH_SEPARATOR=:
  8095. fi
  8096. rm -f conf$$.sh
  8097. fi
  8098. # Find out how to test for executable files. Don't use a zero-byte file,
  8099. # as systems may use methods other than mode bits to determine executability.
  8100. cat >conf$$.file <<_ASEOF
  8101. #! /bin/sh
  8102. exit 0
  8103. _ASEOF
  8104. chmod +x conf$$.file
  8105. if test -x conf$$.file >/dev/null 2>&1; then
  8106. ac_executable_p="test -x"
  8107. else
  8108. ac_executable_p="test -f"
  8109. fi
  8110. rm -f conf$$.file
  8111. # Extract the first word of "msgmerge", so it can be a program name with args.
  8112. set dummy msgmerge; ac_word=$2
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8114. $as_echo_n "checking for $ac_word... " >&6; }
  8115. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8116. $as_echo_n "(cached) " >&6
  8117. else
  8118. case "$MSGMERGE" in
  8119. [\\/]* | ?:[\\/]*)
  8120. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8121. ;;
  8122. *)
  8123. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8124. for ac_dir in $PATH; do
  8125. IFS="$ac_save_IFS"
  8126. test -z "$ac_dir" && ac_dir=.
  8127. for ac_exec_ext in '' $ac_executable_extensions; do
  8128. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8129. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8130. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8131. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8132. break 2
  8133. fi
  8134. fi
  8135. done
  8136. done
  8137. IFS="$ac_save_IFS"
  8138. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8139. ;;
  8140. esac
  8141. fi
  8142. MSGMERGE="$ac_cv_path_MSGMERGE"
  8143. if test "$MSGMERGE" != ":"; then
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8145. $as_echo "$MSGMERGE" >&6; }
  8146. else
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8148. $as_echo "no" >&6; }
  8149. fi
  8150. test -n "$localedir" || localedir='${datadir}/locale'
  8151. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8152. ac_config_commands="$ac_config_commands po-directories"
  8153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8154. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8155. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8156. $as_echo_n "(cached) " >&6
  8157. else
  8158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8159. /* end confdefs.h. */
  8160. #include <features.h>
  8161. #ifdef __GNU_LIBRARY__
  8162. #if (__GLIBC__ >= 2)
  8163. Lucky GNU user
  8164. #endif
  8165. #endif
  8166. _ACEOF
  8167. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8168. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8169. ac_cv_gnu_library_2=yes
  8170. else
  8171. ac_cv_gnu_library_2=no
  8172. fi
  8173. rm -f conftest*
  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8176. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8177. GLIBC2="$ac_cv_gnu_library_2"
  8178. CFLAG_VISIBILITY=
  8179. HAVE_VISIBILITY=0
  8180. if test -n "$GCC"; then
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8182. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8183. if test "${gl_cv_cc_visibility+set}" = set; then :
  8184. $as_echo_n "(cached) " >&6
  8185. else
  8186. gl_save_CFLAGS="$CFLAGS"
  8187. CFLAGS="$CFLAGS -fvisibility=hidden"
  8188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8189. /* end confdefs.h. */
  8190. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8191. extern __attribute__((__visibility__("default"))) int exportedvar;
  8192. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8193. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8194. int
  8195. main ()
  8196. {
  8197. ;
  8198. return 0;
  8199. }
  8200. _ACEOF
  8201. if ac_fn_cxx_try_compile "$LINENO"; then :
  8202. gl_cv_cc_visibility=yes
  8203. else
  8204. gl_cv_cc_visibility=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8207. CFLAGS="$gl_save_CFLAGS"
  8208. fi
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8210. $as_echo "$gl_cv_cc_visibility" >&6; }
  8211. if test $gl_cv_cc_visibility = yes; then
  8212. CFLAG_VISIBILITY="-fvisibility=hidden"
  8213. HAVE_VISIBILITY=1
  8214. fi
  8215. fi
  8216. cat >>confdefs.h <<_ACEOF
  8217. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8218. _ACEOF
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8220. $as_echo_n "checking for stdint.h... " >&6; }
  8221. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8225. /* end confdefs.h. */
  8226. #include <sys/types.h>
  8227. #include <stdint.h>
  8228. int
  8229. main ()
  8230. {
  8231. uintmax_t i = (uintmax_t) -1; return !i;
  8232. ;
  8233. return 0;
  8234. }
  8235. _ACEOF
  8236. if ac_fn_cxx_try_compile "$LINENO"; then :
  8237. gl_cv_header_stdint_h=yes
  8238. else
  8239. gl_cv_header_stdint_h=no
  8240. fi
  8241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8242. fi
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8244. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8245. if test $gl_cv_header_stdint_h = yes; then
  8246. cat >>confdefs.h <<_ACEOF
  8247. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8248. _ACEOF
  8249. fi
  8250. for ac_header in $ac_header_list
  8251. do :
  8252. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8253. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8254. "
  8255. eval as_val=\$$as_ac_Header
  8256. if test "x$as_val" = x""yes; then :
  8257. cat >>confdefs.h <<_ACEOF
  8258. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8259. _ACEOF
  8260. fi
  8261. done
  8262. for ac_func in getpagesize
  8263. do :
  8264. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8265. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8266. cat >>confdefs.h <<_ACEOF
  8267. #define HAVE_GETPAGESIZE 1
  8268. _ACEOF
  8269. fi
  8270. done
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8272. $as_echo_n "checking for working mmap... " >&6; }
  8273. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8274. $as_echo_n "(cached) " >&6
  8275. else
  8276. if test "$cross_compiling" = yes; then :
  8277. ac_cv_func_mmap_fixed_mapped=no
  8278. else
  8279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8280. /* end confdefs.h. */
  8281. $ac_includes_default
  8282. /* malloc might have been renamed as rpl_malloc. */
  8283. #undef malloc
  8284. /* Thanks to Mike Haertel and Jim Avera for this test.
  8285. Here is a matrix of mmap possibilities:
  8286. mmap private not fixed
  8287. mmap private fixed at somewhere currently unmapped
  8288. mmap private fixed at somewhere already mapped
  8289. mmap shared not fixed
  8290. mmap shared fixed at somewhere currently unmapped
  8291. mmap shared fixed at somewhere already mapped
  8292. For private mappings, we should verify that changes cannot be read()
  8293. back from the file, nor mmap's back from the file at a different
  8294. address. (There have been systems where private was not correctly
  8295. implemented like the infamous i386 svr4.0, and systems where the
  8296. VM page cache was not coherent with the file system buffer cache
  8297. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8298. For shared mappings, we should conversely verify that changes get
  8299. propagated back to all the places they're supposed to be.
  8300. Grep wants private fixed already mapped.
  8301. The main things grep needs to know about mmap are:
  8302. * does it exist and is it safe to write into the mmap'd area
  8303. * how to use it (BSD variants) */
  8304. #include <fcntl.h>
  8305. #include <sys/mman.h>
  8306. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8307. char *malloc ();
  8308. #endif
  8309. /* This mess was copied from the GNU getpagesize.h. */
  8310. #ifndef HAVE_GETPAGESIZE
  8311. # ifdef _SC_PAGESIZE
  8312. # define getpagesize() sysconf(_SC_PAGESIZE)
  8313. # else /* no _SC_PAGESIZE */
  8314. # ifdef HAVE_SYS_PARAM_H
  8315. # include <sys/param.h>
  8316. # ifdef EXEC_PAGESIZE
  8317. # define getpagesize() EXEC_PAGESIZE
  8318. # else /* no EXEC_PAGESIZE */
  8319. # ifdef NBPG
  8320. # define getpagesize() NBPG * CLSIZE
  8321. # ifndef CLSIZE
  8322. # define CLSIZE 1
  8323. # endif /* no CLSIZE */
  8324. # else /* no NBPG */
  8325. # ifdef NBPC
  8326. # define getpagesize() NBPC
  8327. # else /* no NBPC */
  8328. # ifdef PAGESIZE
  8329. # define getpagesize() PAGESIZE
  8330. # endif /* PAGESIZE */
  8331. # endif /* no NBPC */
  8332. # endif /* no NBPG */
  8333. # endif /* no EXEC_PAGESIZE */
  8334. # else /* no HAVE_SYS_PARAM_H */
  8335. # define getpagesize() 8192 /* punt totally */
  8336. # endif /* no HAVE_SYS_PARAM_H */
  8337. # endif /* no _SC_PAGESIZE */
  8338. #endif /* no HAVE_GETPAGESIZE */
  8339. int
  8340. main ()
  8341. {
  8342. char *data, *data2, *data3;
  8343. const char *cdata2;
  8344. int i, pagesize;
  8345. int fd, fd2;
  8346. pagesize = getpagesize ();
  8347. /* First, make a file with some known garbage in it. */
  8348. data = (char *) malloc (pagesize);
  8349. if (!data)
  8350. return 1;
  8351. for (i = 0; i < pagesize; ++i)
  8352. *(data + i) = rand ();
  8353. umask (0);
  8354. fd = creat ("conftest.mmap", 0600);
  8355. if (fd < 0)
  8356. return 2;
  8357. if (write (fd, data, pagesize) != pagesize)
  8358. return 3;
  8359. close (fd);
  8360. /* Next, check that the tail of a page is zero-filled. File must have
  8361. non-zero length, otherwise we risk SIGBUS for entire page. */
  8362. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8363. if (fd2 < 0)
  8364. return 4;
  8365. cdata2 = "";
  8366. if (write (fd2, cdata2, 1) != 1)
  8367. return 5;
  8368. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8369. if (data2 == MAP_FAILED)
  8370. return 6;
  8371. for (i = 0; i < pagesize; ++i)
  8372. if (*(data2 + i))
  8373. return 7;
  8374. close (fd2);
  8375. if (munmap (data2, pagesize))
  8376. return 8;
  8377. /* Next, try to mmap the file at a fixed address which already has
  8378. something else allocated at it. If we can, also make sure that
  8379. we see the same garbage. */
  8380. fd = open ("conftest.mmap", O_RDWR);
  8381. if (fd < 0)
  8382. return 9;
  8383. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8384. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8385. return 10;
  8386. for (i = 0; i < pagesize; ++i)
  8387. if (*(data + i) != *(data2 + i))
  8388. return 11;
  8389. /* Finally, make sure that changes to the mapped area do not
  8390. percolate back to the file as seen by read(). (This is a bug on
  8391. some variants of i386 svr4.0.) */
  8392. for (i = 0; i < pagesize; ++i)
  8393. *(data2 + i) = *(data2 + i) + 1;
  8394. data3 = (char *) malloc (pagesize);
  8395. if (!data3)
  8396. return 12;
  8397. if (read (fd, data3, pagesize) != pagesize)
  8398. return 13;
  8399. for (i = 0; i < pagesize; ++i)
  8400. if (*(data + i) != *(data3 + i))
  8401. return 14;
  8402. close (fd);
  8403. return 0;
  8404. }
  8405. _ACEOF
  8406. if ac_fn_cxx_try_run "$LINENO"; then :
  8407. ac_cv_func_mmap_fixed_mapped=yes
  8408. else
  8409. ac_cv_func_mmap_fixed_mapped=no
  8410. fi
  8411. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8412. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8413. fi
  8414. fi
  8415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8416. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8417. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8418. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8419. fi
  8420. rm -f conftest.mmap conftest.txt
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8422. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8423. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. gt_cv_int_divbyzero_sigfpe=
  8427. case "$host_os" in
  8428. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8429. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8430. # compiling. If we were to perform the real test, 1 Crash Report
  8431. # dialog window would pop up.
  8432. case "$host_cpu" in
  8433. i[34567]86 | x86_64)
  8434. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8435. esac
  8436. ;;
  8437. esac
  8438. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8439. if test "$cross_compiling" = yes; then :
  8440. # Guess based on the CPU.
  8441. case "$host_cpu" in
  8442. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8443. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8444. *)
  8445. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8446. esac
  8447. else
  8448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8449. /* end confdefs.h. */
  8450. #include <stdlib.h>
  8451. #include <signal.h>
  8452. static void
  8453. sigfpe_handler (int sig)
  8454. {
  8455. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8456. exit (sig != SIGFPE);
  8457. }
  8458. int x = 1;
  8459. int y = 0;
  8460. int z;
  8461. int nan;
  8462. int main ()
  8463. {
  8464. signal (SIGFPE, sigfpe_handler);
  8465. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8466. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8467. signal (SIGTRAP, sigfpe_handler);
  8468. #endif
  8469. /* Linux/SPARC yields signal SIGILL. */
  8470. #if defined (__sparc__) && defined (__linux__)
  8471. signal (SIGILL, sigfpe_handler);
  8472. #endif
  8473. z = x / y;
  8474. nan = y / y;
  8475. exit (1);
  8476. }
  8477. _ACEOF
  8478. if ac_fn_cxx_try_run "$LINENO"; then :
  8479. gt_cv_int_divbyzero_sigfpe=yes
  8480. else
  8481. gt_cv_int_divbyzero_sigfpe=no
  8482. fi
  8483. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8484. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8485. fi
  8486. fi
  8487. fi
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8489. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8490. case "$gt_cv_int_divbyzero_sigfpe" in
  8491. *yes) value=1;;
  8492. *) value=0;;
  8493. esac
  8494. cat >>confdefs.h <<_ACEOF
  8495. #define INTDIV0_RAISES_SIGFPE $value
  8496. _ACEOF
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8498. $as_echo_n "checking for inttypes.h... " >&6; }
  8499. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8500. $as_echo_n "(cached) " >&6
  8501. else
  8502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8503. /* end confdefs.h. */
  8504. #include <sys/types.h>
  8505. #include <inttypes.h>
  8506. int
  8507. main ()
  8508. {
  8509. uintmax_t i = (uintmax_t) -1; return !i;
  8510. ;
  8511. return 0;
  8512. }
  8513. _ACEOF
  8514. if ac_fn_cxx_try_compile "$LINENO"; then :
  8515. gl_cv_header_inttypes_h=yes
  8516. else
  8517. gl_cv_header_inttypes_h=no
  8518. fi
  8519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8520. fi
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8522. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8523. if test $gl_cv_header_inttypes_h = yes; then
  8524. cat >>confdefs.h <<_ACEOF
  8525. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8526. _ACEOF
  8527. fi
  8528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8529. $as_echo_n "checking for unsigned long long int... " >&6; }
  8530. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8531. $as_echo_n "(cached) " >&6
  8532. else
  8533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8534. /* end confdefs.h. */
  8535. /* Test preprocessor. */
  8536. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8537. error in preprocessor;
  8538. #endif
  8539. #if ! (18446744073709551615ULL <= -1ull)
  8540. error in preprocessor;
  8541. #endif
  8542. /* Test literals. */
  8543. long long int ll = 9223372036854775807ll;
  8544. long long int nll = -9223372036854775807LL;
  8545. unsigned long long int ull = 18446744073709551615ULL;
  8546. /* Test constant expressions. */
  8547. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8548. ? 1 : -1)];
  8549. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8550. ? 1 : -1)];
  8551. int i = 63;
  8552. int
  8553. main ()
  8554. {
  8555. /* Test availability of runtime routines for shift and division. */
  8556. long long int llmax = 9223372036854775807ll;
  8557. unsigned long long int ullmax = 18446744073709551615ull;
  8558. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8559. | (llmax / ll) | (llmax % ll)
  8560. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8561. | (ullmax / ull) | (ullmax % ull));
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. if ac_fn_cxx_try_link "$LINENO"; then :
  8567. ac_cv_type_unsigned_long_long_int=yes
  8568. else
  8569. ac_cv_type_unsigned_long_long_int=no
  8570. fi
  8571. rm -f core conftest.err conftest.$ac_objext \
  8572. conftest$ac_exeext conftest.$ac_ext
  8573. fi
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8575. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8576. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8577. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8578. fi
  8579. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8580. test $ac_cv_type_unsigned_long_long_int = yes \
  8581. && ac_type='unsigned long long' \
  8582. || ac_type='unsigned long'
  8583. cat >>confdefs.h <<_ACEOF
  8584. #define uintmax_t $ac_type
  8585. _ACEOF
  8586. else
  8587. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8588. fi
  8589. for ac_header in inttypes.h
  8590. do :
  8591. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8592. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8593. cat >>confdefs.h <<_ACEOF
  8594. #define HAVE_INTTYPES_H 1
  8595. _ACEOF
  8596. fi
  8597. done
  8598. if test $ac_cv_header_inttypes_h = yes; then
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8600. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8601. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8602. $as_echo_n "(cached) " >&6
  8603. else
  8604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8605. /* end confdefs.h. */
  8606. #include <inttypes.h>
  8607. #ifdef PRId32
  8608. char *p = PRId32;
  8609. #endif
  8610. int
  8611. main ()
  8612. {
  8613. ;
  8614. return 0;
  8615. }
  8616. _ACEOF
  8617. if ac_fn_cxx_try_compile "$LINENO"; then :
  8618. gt_cv_inttypes_pri_broken=no
  8619. else
  8620. gt_cv_inttypes_pri_broken=yes
  8621. fi
  8622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8623. fi
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8625. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8626. fi
  8627. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8628. cat >>confdefs.h <<_ACEOF
  8629. #define PRI_MACROS_BROKEN 1
  8630. _ACEOF
  8631. PRI_MACROS_BROKEN=1
  8632. else
  8633. PRI_MACROS_BROKEN=0
  8634. fi
  8635. # Check whether --enable-threads was given.
  8636. if test "${enable_threads+set}" = set; then :
  8637. enableval=$enable_threads; gl_use_threads=$enableval
  8638. else
  8639. case "$host_os" in
  8640. osf*) gl_use_threads=no ;;
  8641. *) gl_use_threads=yes ;;
  8642. esac
  8643. fi
  8644. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8645. # For using <pthread.h>:
  8646. case "$host_os" in
  8647. osf*)
  8648. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8649. # groks <pthread.h>. cc also understands the flag -pthread, but
  8650. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8651. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8652. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8653. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8654. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8655. ;;
  8656. esac
  8657. # Some systems optimize for single-threaded programs by default, and
  8658. # need special flags to disable these optimizations. For example, the
  8659. # definition of 'errno' in <errno.h>.
  8660. case "$host_os" in
  8661. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8662. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8663. esac
  8664. fi
  8665. if test "X$prefix" = "XNONE"; then
  8666. acl_final_prefix="$ac_default_prefix"
  8667. else
  8668. acl_final_prefix="$prefix"
  8669. fi
  8670. if test "X$exec_prefix" = "XNONE"; then
  8671. acl_final_exec_prefix='${prefix}'
  8672. else
  8673. acl_final_exec_prefix="$exec_prefix"
  8674. fi
  8675. acl_save_prefix="$prefix"
  8676. prefix="$acl_final_prefix"
  8677. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8678. prefix="$acl_save_prefix"
  8679. # Check whether --with-gnu-ld was given.
  8680. if test "${with_gnu_ld+set}" = set; then :
  8681. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8682. else
  8683. with_gnu_ld=no
  8684. fi
  8685. # Prepare PATH_SEPARATOR.
  8686. # The user is always right.
  8687. if test "${PATH_SEPARATOR+set}" != set; then
  8688. echo "#! /bin/sh" >conf$$.sh
  8689. echo "exit 0" >>conf$$.sh
  8690. chmod +x conf$$.sh
  8691. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8692. PATH_SEPARATOR=';'
  8693. else
  8694. PATH_SEPARATOR=:
  8695. fi
  8696. rm -f conf$$.sh
  8697. fi
  8698. ac_prog=ld
  8699. if test "$GCC" = yes; then
  8700. # Check if gcc -print-prog-name=ld gives a path.
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8702. $as_echo_n "checking for ld used by GCC... " >&6; }
  8703. case $host in
  8704. *-*-mingw*)
  8705. # gcc leaves a trailing carriage return which upsets mingw
  8706. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8707. *)
  8708. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8709. esac
  8710. case $ac_prog in
  8711. # Accept absolute paths.
  8712. [\\/]* | [A-Za-z]:[\\/]*)
  8713. re_direlt='/[^/][^/]*/\.\./'
  8714. # Canonicalize the path of ld
  8715. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8716. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8717. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8718. done
  8719. test -z "$LD" && LD="$ac_prog"
  8720. ;;
  8721. "")
  8722. # If it fails, then pretend we aren't using GCC.
  8723. ac_prog=ld
  8724. ;;
  8725. *)
  8726. # If it is relative, then search for the first ld in PATH.
  8727. with_gnu_ld=unknown
  8728. ;;
  8729. esac
  8730. elif test "$with_gnu_ld" = yes; then
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8732. $as_echo_n "checking for GNU ld... " >&6; }
  8733. else
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8735. $as_echo_n "checking for non-GNU ld... " >&6; }
  8736. fi
  8737. if test "${acl_cv_path_LD+set}" = set; then :
  8738. $as_echo_n "(cached) " >&6
  8739. else
  8740. if test -z "$LD"; then
  8741. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8742. for ac_dir in $PATH; do
  8743. test -z "$ac_dir" && ac_dir=.
  8744. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8745. acl_cv_path_LD="$ac_dir/$ac_prog"
  8746. # Check to see if the program is GNU ld. I'd rather use --version,
  8747. # but apparently some GNU ld's only accept -v.
  8748. # Break only if it was the GNU/non-GNU ld that we prefer.
  8749. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8750. *GNU* | *'with BFD'*)
  8751. test "$with_gnu_ld" != no && break ;;
  8752. *)
  8753. test "$with_gnu_ld" != yes && break ;;
  8754. esac
  8755. fi
  8756. done
  8757. IFS="$ac_save_ifs"
  8758. else
  8759. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8760. fi
  8761. fi
  8762. LD="$acl_cv_path_LD"
  8763. if test -n "$LD"; then
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8765. $as_echo "$LD" >&6; }
  8766. else
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8768. $as_echo "no" >&6; }
  8769. fi
  8770. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8772. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8773. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8774. $as_echo_n "(cached) " >&6
  8775. else
  8776. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8777. case `$LD -v 2>&1 </dev/null` in
  8778. *GNU* | *'with BFD'*)
  8779. acl_cv_prog_gnu_ld=yes ;;
  8780. *)
  8781. acl_cv_prog_gnu_ld=no ;;
  8782. esac
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8785. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8786. with_gnu_ld=$acl_cv_prog_gnu_ld
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8788. $as_echo_n "checking for shared library run path origin... " >&6; }
  8789. if test "${acl_cv_rpath+set}" = set; then :
  8790. $as_echo_n "(cached) " >&6
  8791. else
  8792. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8793. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8794. . ./conftest.sh
  8795. rm -f ./conftest.sh
  8796. acl_cv_rpath=done
  8797. fi
  8798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8799. $as_echo "$acl_cv_rpath" >&6; }
  8800. wl="$acl_cv_wl"
  8801. acl_libext="$acl_cv_libext"
  8802. acl_shlibext="$acl_cv_shlibext"
  8803. acl_libname_spec="$acl_cv_libname_spec"
  8804. acl_library_names_spec="$acl_cv_library_names_spec"
  8805. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8806. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8807. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8808. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8809. # Check whether --enable-rpath was given.
  8810. if test "${enable_rpath+set}" = set; then :
  8811. enableval=$enable_rpath; :
  8812. else
  8813. enable_rpath=yes
  8814. fi
  8815. acl_libdirstem=lib
  8816. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8817. if test -n "$searchpath"; then
  8818. acl_save_IFS="${IFS= }"; IFS=":"
  8819. for searchdir in $searchpath; do
  8820. if test -d "$searchdir"; then
  8821. case "$searchdir" in
  8822. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8823. *) searchdir=`cd "$searchdir" && pwd`
  8824. case "$searchdir" in
  8825. */lib64 ) acl_libdirstem=lib64 ;;
  8826. esac ;;
  8827. esac
  8828. fi
  8829. done
  8830. IFS="$acl_save_IFS"
  8831. fi
  8832. gl_threads_api=none
  8833. LIBTHREAD=
  8834. LTLIBTHREAD=
  8835. LIBMULTITHREAD=
  8836. LTLIBMULTITHREAD=
  8837. if test "$gl_use_threads" != no; then
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8839. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8840. gl_have_weak=no
  8841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8842. /* end confdefs.h. */
  8843. extern void xyzzy ();
  8844. #pragma weak xyzzy
  8845. int
  8846. main ()
  8847. {
  8848. xyzzy();
  8849. ;
  8850. return 0;
  8851. }
  8852. _ACEOF
  8853. if ac_fn_cxx_try_link "$LINENO"; then :
  8854. gl_have_weak=yes
  8855. fi
  8856. rm -f core conftest.err conftest.$ac_objext \
  8857. conftest$ac_exeext conftest.$ac_ext
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8859. $as_echo "$gl_have_weak" >&6; }
  8860. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8861. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8862. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8863. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8864. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8865. gl_have_pthread_h=yes
  8866. else
  8867. gl_have_pthread_h=no
  8868. fi
  8869. if test "$gl_have_pthread_h" = yes; then
  8870. # Other possible tests:
  8871. # -lpthreads (FSU threads, PCthreads)
  8872. # -lgthreads
  8873. gl_have_pthread=
  8874. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8875. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8876. # the second one only in libpthread, and lock.c needs it.
  8877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8878. /* end confdefs.h. */
  8879. #include <pthread.h>
  8880. int
  8881. main ()
  8882. {
  8883. pthread_mutex_lock((pthread_mutex_t*)0);
  8884. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8885. ;
  8886. return 0;
  8887. }
  8888. _ACEOF
  8889. if ac_fn_cxx_try_link "$LINENO"; then :
  8890. gl_have_pthread=yes
  8891. fi
  8892. rm -f core conftest.err conftest.$ac_objext \
  8893. conftest$ac_exeext conftest.$ac_ext
  8894. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8895. # since it is defined as a macro on OSF/1.)
  8896. if test -n "$gl_have_pthread"; then
  8897. # The program links fine without libpthread. But it may actually
  8898. # need to link with libpthread in order to create multiple threads.
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8900. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8901. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8902. $as_echo_n "(cached) " >&6
  8903. else
  8904. ac_check_lib_save_LIBS=$LIBS
  8905. LIBS="-lpthread $LIBS"
  8906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8907. /* end confdefs.h. */
  8908. /* Override any GCC internal prototype to avoid an error.
  8909. Use char because int might match the return type of a GCC
  8910. builtin and then its argument prototype would still apply. */
  8911. #ifdef __cplusplus
  8912. extern "C"
  8913. #endif
  8914. char pthread_kill ();
  8915. int
  8916. main ()
  8917. {
  8918. return pthread_kill ();
  8919. ;
  8920. return 0;
  8921. }
  8922. _ACEOF
  8923. if ac_fn_cxx_try_link "$LINENO"; then :
  8924. ac_cv_lib_pthread_pthread_kill=yes
  8925. else
  8926. ac_cv_lib_pthread_pthread_kill=no
  8927. fi
  8928. rm -f core conftest.err conftest.$ac_objext \
  8929. conftest$ac_exeext conftest.$ac_ext
  8930. LIBS=$ac_check_lib_save_LIBS
  8931. fi
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8933. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8934. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8935. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8936. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8937. # Therefore pthread_in_use() needs to actually try to create a
  8938. # thread: pthread_create from libc will fail, whereas
  8939. # pthread_create will actually create a thread.
  8940. case "$host_os" in
  8941. solaris* | hpux*)
  8942. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8943. esac
  8944. fi
  8945. else
  8946. # Some library is needed. Try libpthread and libc_r.
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8948. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8949. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8950. $as_echo_n "(cached) " >&6
  8951. else
  8952. ac_check_lib_save_LIBS=$LIBS
  8953. LIBS="-lpthread $LIBS"
  8954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8955. /* end confdefs.h. */
  8956. /* Override any GCC internal prototype to avoid an error.
  8957. Use char because int might match the return type of a GCC
  8958. builtin and then its argument prototype would still apply. */
  8959. #ifdef __cplusplus
  8960. extern "C"
  8961. #endif
  8962. char pthread_kill ();
  8963. int
  8964. main ()
  8965. {
  8966. return pthread_kill ();
  8967. ;
  8968. return 0;
  8969. }
  8970. _ACEOF
  8971. if ac_fn_cxx_try_link "$LINENO"; then :
  8972. ac_cv_lib_pthread_pthread_kill=yes
  8973. else
  8974. ac_cv_lib_pthread_pthread_kill=no
  8975. fi
  8976. rm -f core conftest.err conftest.$ac_objext \
  8977. conftest$ac_exeext conftest.$ac_ext
  8978. LIBS=$ac_check_lib_save_LIBS
  8979. fi
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8981. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8982. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8983. gl_have_pthread=yes
  8984. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8985. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8986. fi
  8987. if test -z "$gl_have_pthread"; then
  8988. # For FreeBSD 4.
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8990. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8991. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8992. $as_echo_n "(cached) " >&6
  8993. else
  8994. ac_check_lib_save_LIBS=$LIBS
  8995. LIBS="-lc_r $LIBS"
  8996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8997. /* end confdefs.h. */
  8998. /* Override any GCC internal prototype to avoid an error.
  8999. Use char because int might match the return type of a GCC
  9000. builtin and then its argument prototype would still apply. */
  9001. #ifdef __cplusplus
  9002. extern "C"
  9003. #endif
  9004. char pthread_kill ();
  9005. int
  9006. main ()
  9007. {
  9008. return pthread_kill ();
  9009. ;
  9010. return 0;
  9011. }
  9012. _ACEOF
  9013. if ac_fn_cxx_try_link "$LINENO"; then :
  9014. ac_cv_lib_c_r_pthread_kill=yes
  9015. else
  9016. ac_cv_lib_c_r_pthread_kill=no
  9017. fi
  9018. rm -f core conftest.err conftest.$ac_objext \
  9019. conftest$ac_exeext conftest.$ac_ext
  9020. LIBS=$ac_check_lib_save_LIBS
  9021. fi
  9022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9023. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9024. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9025. gl_have_pthread=yes
  9026. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9027. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9028. fi
  9029. fi
  9030. fi
  9031. if test -n "$gl_have_pthread"; then
  9032. gl_threads_api=posix
  9033. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9034. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9035. if test $gl_have_weak = yes; then
  9036. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9037. LIBTHREAD=
  9038. LTLIBTHREAD=
  9039. fi
  9040. fi
  9041. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9042. # pthread_rwlock_* functions.
  9043. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9044. "
  9045. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9046. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9047. fi
  9048. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9050. /* end confdefs.h. */
  9051. #include <pthread.h>
  9052. int
  9053. main ()
  9054. {
  9055. #if __FreeBSD__ == 4
  9056. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9057. #else
  9058. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9059. return !x;
  9060. #endif
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. if ac_fn_cxx_try_compile "$LINENO"; then :
  9066. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9069. fi
  9070. fi
  9071. fi
  9072. if test -z "$gl_have_pthread"; then
  9073. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9074. gl_have_solaristhread=
  9075. gl_save_LIBS="$LIBS"
  9076. LIBS="$LIBS -lthread"
  9077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9078. /* end confdefs.h. */
  9079. #include <thread.h>
  9080. #include <synch.h>
  9081. int
  9082. main ()
  9083. {
  9084. thr_self();
  9085. ;
  9086. return 0;
  9087. }
  9088. _ACEOF
  9089. if ac_fn_cxx_try_link "$LINENO"; then :
  9090. gl_have_solaristhread=yes
  9091. fi
  9092. rm -f core conftest.err conftest.$ac_objext \
  9093. conftest$ac_exeext conftest.$ac_ext
  9094. LIBS="$gl_save_LIBS"
  9095. if test -n "$gl_have_solaristhread"; then
  9096. gl_threads_api=solaris
  9097. LIBTHREAD=-lthread
  9098. LTLIBTHREAD=-lthread
  9099. LIBMULTITHREAD="$LIBTHREAD"
  9100. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9101. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9102. if test $gl_have_weak = yes; then
  9103. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9104. LIBTHREAD=
  9105. LTLIBTHREAD=
  9106. fi
  9107. fi
  9108. fi
  9109. fi
  9110. if test "$gl_use_threads" = pth; then
  9111. gl_save_CPPFLAGS="$CPPFLAGS"
  9112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9113. $as_echo_n "checking how to link with libpth... " >&6; }
  9114. if test "${ac_cv_libpth_libs+set}" = set; then :
  9115. $as_echo_n "(cached) " >&6
  9116. else
  9117. use_additional=yes
  9118. acl_save_prefix="$prefix"
  9119. prefix="$acl_final_prefix"
  9120. acl_save_exec_prefix="$exec_prefix"
  9121. exec_prefix="$acl_final_exec_prefix"
  9122. eval additional_includedir=\"$includedir\"
  9123. eval additional_libdir=\"$libdir\"
  9124. exec_prefix="$acl_save_exec_prefix"
  9125. prefix="$acl_save_prefix"
  9126. # Check whether --with-libpth-prefix was given.
  9127. if test "${with_libpth_prefix+set}" = set; then :
  9128. withval=$with_libpth_prefix;
  9129. if test "X$withval" = "Xno"; then
  9130. use_additional=no
  9131. else
  9132. if test "X$withval" = "X"; then
  9133. acl_save_prefix="$prefix"
  9134. prefix="$acl_final_prefix"
  9135. acl_save_exec_prefix="$exec_prefix"
  9136. exec_prefix="$acl_final_exec_prefix"
  9137. eval additional_includedir=\"$includedir\"
  9138. eval additional_libdir=\"$libdir\"
  9139. exec_prefix="$acl_save_exec_prefix"
  9140. prefix="$acl_save_prefix"
  9141. else
  9142. additional_includedir="$withval/include"
  9143. additional_libdir="$withval/$acl_libdirstem"
  9144. fi
  9145. fi
  9146. fi
  9147. LIBPTH=
  9148. LTLIBPTH=
  9149. INCPTH=
  9150. LIBPTH_PREFIX=
  9151. rpathdirs=
  9152. ltrpathdirs=
  9153. names_already_handled=
  9154. names_next_round='pth '
  9155. while test -n "$names_next_round"; do
  9156. names_this_round="$names_next_round"
  9157. names_next_round=
  9158. for name in $names_this_round; do
  9159. already_handled=
  9160. for n in $names_already_handled; do
  9161. if test "$n" = "$name"; then
  9162. already_handled=yes
  9163. break
  9164. fi
  9165. done
  9166. if test -z "$already_handled"; then
  9167. names_already_handled="$names_already_handled $name"
  9168. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9169. eval value=\"\$HAVE_LIB$uppername\"
  9170. if test -n "$value"; then
  9171. if test "$value" = yes; then
  9172. eval value=\"\$LIB$uppername\"
  9173. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9174. eval value=\"\$LTLIB$uppername\"
  9175. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9176. else
  9177. :
  9178. fi
  9179. else
  9180. found_dir=
  9181. found_la=
  9182. found_so=
  9183. found_a=
  9184. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9185. if test -n "$acl_shlibext"; then
  9186. shrext=".$acl_shlibext" # typically: shrext=.so
  9187. else
  9188. shrext=
  9189. fi
  9190. if test $use_additional = yes; then
  9191. dir="$additional_libdir"
  9192. if test -n "$acl_shlibext"; then
  9193. if test -f "$dir/$libname$shrext"; then
  9194. found_dir="$dir"
  9195. found_so="$dir/$libname$shrext"
  9196. else
  9197. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9198. ver=`(cd "$dir" && \
  9199. for f in "$libname$shrext".*; do echo "$f"; done \
  9200. | sed -e "s,^$libname$shrext\\\\.,," \
  9201. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9202. | sed 1q ) 2>/dev/null`
  9203. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9204. found_dir="$dir"
  9205. found_so="$dir/$libname$shrext.$ver"
  9206. fi
  9207. else
  9208. eval library_names=\"$acl_library_names_spec\"
  9209. for f in $library_names; do
  9210. if test -f "$dir/$f"; then
  9211. found_dir="$dir"
  9212. found_so="$dir/$f"
  9213. break
  9214. fi
  9215. done
  9216. fi
  9217. fi
  9218. fi
  9219. if test "X$found_dir" = "X"; then
  9220. if test -f "$dir/$libname.$acl_libext"; then
  9221. found_dir="$dir"
  9222. found_a="$dir/$libname.$acl_libext"
  9223. fi
  9224. fi
  9225. if test "X$found_dir" != "X"; then
  9226. if test -f "$dir/$libname.la"; then
  9227. found_la="$dir/$libname.la"
  9228. fi
  9229. fi
  9230. fi
  9231. if test "X$found_dir" = "X"; then
  9232. for x in $LDFLAGS $LTLIBPTH; do
  9233. acl_save_prefix="$prefix"
  9234. prefix="$acl_final_prefix"
  9235. acl_save_exec_prefix="$exec_prefix"
  9236. exec_prefix="$acl_final_exec_prefix"
  9237. eval x=\"$x\"
  9238. exec_prefix="$acl_save_exec_prefix"
  9239. prefix="$acl_save_prefix"
  9240. case "$x" in
  9241. -L*)
  9242. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9243. if test -n "$acl_shlibext"; then
  9244. if test -f "$dir/$libname$shrext"; then
  9245. found_dir="$dir"
  9246. found_so="$dir/$libname$shrext"
  9247. else
  9248. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9249. ver=`(cd "$dir" && \
  9250. for f in "$libname$shrext".*; do echo "$f"; done \
  9251. | sed -e "s,^$libname$shrext\\\\.,," \
  9252. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9253. | sed 1q ) 2>/dev/null`
  9254. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9255. found_dir="$dir"
  9256. found_so="$dir/$libname$shrext.$ver"
  9257. fi
  9258. else
  9259. eval library_names=\"$acl_library_names_spec\"
  9260. for f in $library_names; do
  9261. if test -f "$dir/$f"; then
  9262. found_dir="$dir"
  9263. found_so="$dir/$f"
  9264. break
  9265. fi
  9266. done
  9267. fi
  9268. fi
  9269. fi
  9270. if test "X$found_dir" = "X"; then
  9271. if test -f "$dir/$libname.$acl_libext"; then
  9272. found_dir="$dir"
  9273. found_a="$dir/$libname.$acl_libext"
  9274. fi
  9275. fi
  9276. if test "X$found_dir" != "X"; then
  9277. if test -f "$dir/$libname.la"; then
  9278. found_la="$dir/$libname.la"
  9279. fi
  9280. fi
  9281. ;;
  9282. esac
  9283. if test "X$found_dir" != "X"; then
  9284. break
  9285. fi
  9286. done
  9287. fi
  9288. if test "X$found_dir" != "X"; then
  9289. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9290. if test "X$found_so" != "X"; then
  9291. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9292. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9293. else
  9294. haveit=
  9295. for x in $ltrpathdirs; do
  9296. if test "X$x" = "X$found_dir"; then
  9297. haveit=yes
  9298. break
  9299. fi
  9300. done
  9301. if test -z "$haveit"; then
  9302. ltrpathdirs="$ltrpathdirs $found_dir"
  9303. fi
  9304. if test "$acl_hardcode_direct" = yes; then
  9305. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9306. else
  9307. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9308. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9309. haveit=
  9310. for x in $rpathdirs; do
  9311. if test "X$x" = "X$found_dir"; then
  9312. haveit=yes
  9313. break
  9314. fi
  9315. done
  9316. if test -z "$haveit"; then
  9317. rpathdirs="$rpathdirs $found_dir"
  9318. fi
  9319. else
  9320. haveit=
  9321. for x in $LDFLAGS $LIBPTH; do
  9322. acl_save_prefix="$prefix"
  9323. prefix="$acl_final_prefix"
  9324. acl_save_exec_prefix="$exec_prefix"
  9325. exec_prefix="$acl_final_exec_prefix"
  9326. eval x=\"$x\"
  9327. exec_prefix="$acl_save_exec_prefix"
  9328. prefix="$acl_save_prefix"
  9329. if test "X$x" = "X-L$found_dir"; then
  9330. haveit=yes
  9331. break
  9332. fi
  9333. done
  9334. if test -z "$haveit"; then
  9335. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9336. fi
  9337. if test "$acl_hardcode_minus_L" != no; then
  9338. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9339. else
  9340. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9341. fi
  9342. fi
  9343. fi
  9344. fi
  9345. else
  9346. if test "X$found_a" != "X"; then
  9347. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9348. else
  9349. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9350. fi
  9351. fi
  9352. additional_includedir=
  9353. case "$found_dir" in
  9354. */$acl_libdirstem | */$acl_libdirstem/)
  9355. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9356. LIBPTH_PREFIX="$basedir"
  9357. additional_includedir="$basedir/include"
  9358. ;;
  9359. esac
  9360. if test "X$additional_includedir" != "X"; then
  9361. if test "X$additional_includedir" != "X/usr/include"; then
  9362. haveit=
  9363. if test "X$additional_includedir" = "X/usr/local/include"; then
  9364. if test -n "$GCC"; then
  9365. case $host_os in
  9366. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9367. esac
  9368. fi
  9369. fi
  9370. if test -z "$haveit"; then
  9371. for x in $CPPFLAGS $INCPTH; do
  9372. acl_save_prefix="$prefix"
  9373. prefix="$acl_final_prefix"
  9374. acl_save_exec_prefix="$exec_prefix"
  9375. exec_prefix="$acl_final_exec_prefix"
  9376. eval x=\"$x\"
  9377. exec_prefix="$acl_save_exec_prefix"
  9378. prefix="$acl_save_prefix"
  9379. if test "X$x" = "X-I$additional_includedir"; then
  9380. haveit=yes
  9381. break
  9382. fi
  9383. done
  9384. if test -z "$haveit"; then
  9385. if test -d "$additional_includedir"; then
  9386. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9387. fi
  9388. fi
  9389. fi
  9390. fi
  9391. fi
  9392. if test -n "$found_la"; then
  9393. save_libdir="$libdir"
  9394. case "$found_la" in
  9395. */* | *\\*) . "$found_la" ;;
  9396. *) . "./$found_la" ;;
  9397. esac
  9398. libdir="$save_libdir"
  9399. for dep in $dependency_libs; do
  9400. case "$dep" in
  9401. -L*)
  9402. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9403. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9404. haveit=
  9405. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9406. if test -n "$GCC"; then
  9407. case $host_os in
  9408. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9409. esac
  9410. fi
  9411. fi
  9412. if test -z "$haveit"; then
  9413. haveit=
  9414. for x in $LDFLAGS $LIBPTH; do
  9415. acl_save_prefix="$prefix"
  9416. prefix="$acl_final_prefix"
  9417. acl_save_exec_prefix="$exec_prefix"
  9418. exec_prefix="$acl_final_exec_prefix"
  9419. eval x=\"$x\"
  9420. exec_prefix="$acl_save_exec_prefix"
  9421. prefix="$acl_save_prefix"
  9422. if test "X$x" = "X-L$additional_libdir"; then
  9423. haveit=yes
  9424. break
  9425. fi
  9426. done
  9427. if test -z "$haveit"; then
  9428. if test -d "$additional_libdir"; then
  9429. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9430. fi
  9431. fi
  9432. haveit=
  9433. for x in $LDFLAGS $LTLIBPTH; do
  9434. acl_save_prefix="$prefix"
  9435. prefix="$acl_final_prefix"
  9436. acl_save_exec_prefix="$exec_prefix"
  9437. exec_prefix="$acl_final_exec_prefix"
  9438. eval x=\"$x\"
  9439. exec_prefix="$acl_save_exec_prefix"
  9440. prefix="$acl_save_prefix"
  9441. if test "X$x" = "X-L$additional_libdir"; then
  9442. haveit=yes
  9443. break
  9444. fi
  9445. done
  9446. if test -z "$haveit"; then
  9447. if test -d "$additional_libdir"; then
  9448. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9449. fi
  9450. fi
  9451. fi
  9452. fi
  9453. ;;
  9454. -R*)
  9455. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9456. if test "$enable_rpath" != no; then
  9457. haveit=
  9458. for x in $rpathdirs; do
  9459. if test "X$x" = "X$dir"; then
  9460. haveit=yes
  9461. break
  9462. fi
  9463. done
  9464. if test -z "$haveit"; then
  9465. rpathdirs="$rpathdirs $dir"
  9466. fi
  9467. haveit=
  9468. for x in $ltrpathdirs; do
  9469. if test "X$x" = "X$dir"; then
  9470. haveit=yes
  9471. break
  9472. fi
  9473. done
  9474. if test -z "$haveit"; then
  9475. ltrpathdirs="$ltrpathdirs $dir"
  9476. fi
  9477. fi
  9478. ;;
  9479. -l*)
  9480. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9481. ;;
  9482. *.la)
  9483. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9484. ;;
  9485. *)
  9486. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9487. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9488. ;;
  9489. esac
  9490. done
  9491. fi
  9492. else
  9493. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9494. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9495. fi
  9496. fi
  9497. fi
  9498. done
  9499. done
  9500. if test "X$rpathdirs" != "X"; then
  9501. if test -n "$acl_hardcode_libdir_separator"; then
  9502. alldirs=
  9503. for found_dir in $rpathdirs; do
  9504. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9505. done
  9506. acl_save_libdir="$libdir"
  9507. libdir="$alldirs"
  9508. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9509. libdir="$acl_save_libdir"
  9510. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9511. else
  9512. for found_dir in $rpathdirs; do
  9513. acl_save_libdir="$libdir"
  9514. libdir="$found_dir"
  9515. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9516. libdir="$acl_save_libdir"
  9517. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9518. done
  9519. fi
  9520. fi
  9521. if test "X$ltrpathdirs" != "X"; then
  9522. for found_dir in $ltrpathdirs; do
  9523. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9524. done
  9525. fi
  9526. ac_cv_libpth_libs="$LIBPTH"
  9527. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9528. ac_cv_libpth_cppflags="$INCPTH"
  9529. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9530. fi
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9532. $as_echo "$ac_cv_libpth_libs" >&6; }
  9533. LIBPTH="$ac_cv_libpth_libs"
  9534. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9535. INCPTH="$ac_cv_libpth_cppflags"
  9536. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9537. for element in $INCPTH; do
  9538. haveit=
  9539. for x in $CPPFLAGS; do
  9540. acl_save_prefix="$prefix"
  9541. prefix="$acl_final_prefix"
  9542. acl_save_exec_prefix="$exec_prefix"
  9543. exec_prefix="$acl_final_exec_prefix"
  9544. eval x=\"$x\"
  9545. exec_prefix="$acl_save_exec_prefix"
  9546. prefix="$acl_save_prefix"
  9547. if test "X$x" = "X$element"; then
  9548. haveit=yes
  9549. break
  9550. fi
  9551. done
  9552. if test -z "$haveit"; then
  9553. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9554. fi
  9555. done
  9556. HAVE_LIBPTH=yes
  9557. gl_have_pth=
  9558. gl_save_LIBS="$LIBS"
  9559. LIBS="$LIBS -lpth"
  9560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9561. /* end confdefs.h. */
  9562. #include <pth.h>
  9563. int
  9564. main ()
  9565. {
  9566. pth_self();
  9567. ;
  9568. return 0;
  9569. }
  9570. _ACEOF
  9571. if ac_fn_cxx_try_link "$LINENO"; then :
  9572. gl_have_pth=yes
  9573. fi
  9574. rm -f core conftest.err conftest.$ac_objext \
  9575. conftest$ac_exeext conftest.$ac_ext
  9576. LIBS="$gl_save_LIBS"
  9577. if test -n "$gl_have_pth"; then
  9578. gl_threads_api=pth
  9579. LIBTHREAD="$LIBPTH"
  9580. LTLIBTHREAD="$LTLIBPTH"
  9581. LIBMULTITHREAD="$LIBTHREAD"
  9582. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9583. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9584. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9585. if test $gl_have_weak = yes; then
  9586. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9587. LIBTHREAD=
  9588. LTLIBTHREAD=
  9589. fi
  9590. fi
  9591. else
  9592. CPPFLAGS="$gl_save_CPPFLAGS"
  9593. fi
  9594. fi
  9595. if test -z "$gl_have_pthread"; then
  9596. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9597. if { case "$host_os" in
  9598. mingw*) true;;
  9599. *) false;;
  9600. esac
  9601. }; then
  9602. gl_threads_api=win32
  9603. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9604. fi
  9605. fi
  9606. fi
  9607. fi
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9609. $as_echo_n "checking for multithread API to use... " >&6; }
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9611. $as_echo "$gl_threads_api" >&6; }
  9612. use_additional=yes
  9613. acl_save_prefix="$prefix"
  9614. prefix="$acl_final_prefix"
  9615. acl_save_exec_prefix="$exec_prefix"
  9616. exec_prefix="$acl_final_exec_prefix"
  9617. eval additional_includedir=\"$includedir\"
  9618. eval additional_libdir=\"$libdir\"
  9619. exec_prefix="$acl_save_exec_prefix"
  9620. prefix="$acl_save_prefix"
  9621. # Check whether --with-libiconv-prefix was given.
  9622. if test "${with_libiconv_prefix+set}" = set; then :
  9623. withval=$with_libiconv_prefix;
  9624. if test "X$withval" = "Xno"; then
  9625. use_additional=no
  9626. else
  9627. if test "X$withval" = "X"; then
  9628. acl_save_prefix="$prefix"
  9629. prefix="$acl_final_prefix"
  9630. acl_save_exec_prefix="$exec_prefix"
  9631. exec_prefix="$acl_final_exec_prefix"
  9632. eval additional_includedir=\"$includedir\"
  9633. eval additional_libdir=\"$libdir\"
  9634. exec_prefix="$acl_save_exec_prefix"
  9635. prefix="$acl_save_prefix"
  9636. else
  9637. additional_includedir="$withval/include"
  9638. additional_libdir="$withval/$acl_libdirstem"
  9639. fi
  9640. fi
  9641. fi
  9642. LIBICONV=
  9643. LTLIBICONV=
  9644. INCICONV=
  9645. LIBICONV_PREFIX=
  9646. rpathdirs=
  9647. ltrpathdirs=
  9648. names_already_handled=
  9649. names_next_round='iconv '
  9650. while test -n "$names_next_round"; do
  9651. names_this_round="$names_next_round"
  9652. names_next_round=
  9653. for name in $names_this_round; do
  9654. already_handled=
  9655. for n in $names_already_handled; do
  9656. if test "$n" = "$name"; then
  9657. already_handled=yes
  9658. break
  9659. fi
  9660. done
  9661. if test -z "$already_handled"; then
  9662. names_already_handled="$names_already_handled $name"
  9663. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9664. eval value=\"\$HAVE_LIB$uppername\"
  9665. if test -n "$value"; then
  9666. if test "$value" = yes; then
  9667. eval value=\"\$LIB$uppername\"
  9668. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9669. eval value=\"\$LTLIB$uppername\"
  9670. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9671. else
  9672. :
  9673. fi
  9674. else
  9675. found_dir=
  9676. found_la=
  9677. found_so=
  9678. found_a=
  9679. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9680. if test -n "$acl_shlibext"; then
  9681. shrext=".$acl_shlibext" # typically: shrext=.so
  9682. else
  9683. shrext=
  9684. fi
  9685. if test $use_additional = yes; then
  9686. dir="$additional_libdir"
  9687. if test -n "$acl_shlibext"; then
  9688. if test -f "$dir/$libname$shrext"; then
  9689. found_dir="$dir"
  9690. found_so="$dir/$libname$shrext"
  9691. else
  9692. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9693. ver=`(cd "$dir" && \
  9694. for f in "$libname$shrext".*; do echo "$f"; done \
  9695. | sed -e "s,^$libname$shrext\\\\.,," \
  9696. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9697. | sed 1q ) 2>/dev/null`
  9698. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9699. found_dir="$dir"
  9700. found_so="$dir/$libname$shrext.$ver"
  9701. fi
  9702. else
  9703. eval library_names=\"$acl_library_names_spec\"
  9704. for f in $library_names; do
  9705. if test -f "$dir/$f"; then
  9706. found_dir="$dir"
  9707. found_so="$dir/$f"
  9708. break
  9709. fi
  9710. done
  9711. fi
  9712. fi
  9713. fi
  9714. if test "X$found_dir" = "X"; then
  9715. if test -f "$dir/$libname.$acl_libext"; then
  9716. found_dir="$dir"
  9717. found_a="$dir/$libname.$acl_libext"
  9718. fi
  9719. fi
  9720. if test "X$found_dir" != "X"; then
  9721. if test -f "$dir/$libname.la"; then
  9722. found_la="$dir/$libname.la"
  9723. fi
  9724. fi
  9725. fi
  9726. if test "X$found_dir" = "X"; then
  9727. for x in $LDFLAGS $LTLIBICONV; do
  9728. acl_save_prefix="$prefix"
  9729. prefix="$acl_final_prefix"
  9730. acl_save_exec_prefix="$exec_prefix"
  9731. exec_prefix="$acl_final_exec_prefix"
  9732. eval x=\"$x\"
  9733. exec_prefix="$acl_save_exec_prefix"
  9734. prefix="$acl_save_prefix"
  9735. case "$x" in
  9736. -L*)
  9737. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9738. if test -n "$acl_shlibext"; then
  9739. if test -f "$dir/$libname$shrext"; then
  9740. found_dir="$dir"
  9741. found_so="$dir/$libname$shrext"
  9742. else
  9743. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9744. ver=`(cd "$dir" && \
  9745. for f in "$libname$shrext".*; do echo "$f"; done \
  9746. | sed -e "s,^$libname$shrext\\\\.,," \
  9747. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9748. | sed 1q ) 2>/dev/null`
  9749. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9750. found_dir="$dir"
  9751. found_so="$dir/$libname$shrext.$ver"
  9752. fi
  9753. else
  9754. eval library_names=\"$acl_library_names_spec\"
  9755. for f in $library_names; do
  9756. if test -f "$dir/$f"; then
  9757. found_dir="$dir"
  9758. found_so="$dir/$f"
  9759. break
  9760. fi
  9761. done
  9762. fi
  9763. fi
  9764. fi
  9765. if test "X$found_dir" = "X"; then
  9766. if test -f "$dir/$libname.$acl_libext"; then
  9767. found_dir="$dir"
  9768. found_a="$dir/$libname.$acl_libext"
  9769. fi
  9770. fi
  9771. if test "X$found_dir" != "X"; then
  9772. if test -f "$dir/$libname.la"; then
  9773. found_la="$dir/$libname.la"
  9774. fi
  9775. fi
  9776. ;;
  9777. esac
  9778. if test "X$found_dir" != "X"; then
  9779. break
  9780. fi
  9781. done
  9782. fi
  9783. if test "X$found_dir" != "X"; then
  9784. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9785. if test "X$found_so" != "X"; then
  9786. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9787. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9788. else
  9789. haveit=
  9790. for x in $ltrpathdirs; do
  9791. if test "X$x" = "X$found_dir"; then
  9792. haveit=yes
  9793. break
  9794. fi
  9795. done
  9796. if test -z "$haveit"; then
  9797. ltrpathdirs="$ltrpathdirs $found_dir"
  9798. fi
  9799. if test "$acl_hardcode_direct" = yes; then
  9800. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9801. else
  9802. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9803. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9804. haveit=
  9805. for x in $rpathdirs; do
  9806. if test "X$x" = "X$found_dir"; then
  9807. haveit=yes
  9808. break
  9809. fi
  9810. done
  9811. if test -z "$haveit"; then
  9812. rpathdirs="$rpathdirs $found_dir"
  9813. fi
  9814. else
  9815. haveit=
  9816. for x in $LDFLAGS $LIBICONV; do
  9817. acl_save_prefix="$prefix"
  9818. prefix="$acl_final_prefix"
  9819. acl_save_exec_prefix="$exec_prefix"
  9820. exec_prefix="$acl_final_exec_prefix"
  9821. eval x=\"$x\"
  9822. exec_prefix="$acl_save_exec_prefix"
  9823. prefix="$acl_save_prefix"
  9824. if test "X$x" = "X-L$found_dir"; then
  9825. haveit=yes
  9826. break
  9827. fi
  9828. done
  9829. if test -z "$haveit"; then
  9830. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9831. fi
  9832. if test "$acl_hardcode_minus_L" != no; then
  9833. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9834. else
  9835. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9836. fi
  9837. fi
  9838. fi
  9839. fi
  9840. else
  9841. if test "X$found_a" != "X"; then
  9842. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9843. else
  9844. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9845. fi
  9846. fi
  9847. additional_includedir=
  9848. case "$found_dir" in
  9849. */$acl_libdirstem | */$acl_libdirstem/)
  9850. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9851. LIBICONV_PREFIX="$basedir"
  9852. additional_includedir="$basedir/include"
  9853. ;;
  9854. esac
  9855. if test "X$additional_includedir" != "X"; then
  9856. if test "X$additional_includedir" != "X/usr/include"; then
  9857. haveit=
  9858. if test "X$additional_includedir" = "X/usr/local/include"; then
  9859. if test -n "$GCC"; then
  9860. case $host_os in
  9861. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9862. esac
  9863. fi
  9864. fi
  9865. if test -z "$haveit"; then
  9866. for x in $CPPFLAGS $INCICONV; do
  9867. acl_save_prefix="$prefix"
  9868. prefix="$acl_final_prefix"
  9869. acl_save_exec_prefix="$exec_prefix"
  9870. exec_prefix="$acl_final_exec_prefix"
  9871. eval x=\"$x\"
  9872. exec_prefix="$acl_save_exec_prefix"
  9873. prefix="$acl_save_prefix"
  9874. if test "X$x" = "X-I$additional_includedir"; then
  9875. haveit=yes
  9876. break
  9877. fi
  9878. done
  9879. if test -z "$haveit"; then
  9880. if test -d "$additional_includedir"; then
  9881. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9882. fi
  9883. fi
  9884. fi
  9885. fi
  9886. fi
  9887. if test -n "$found_la"; then
  9888. save_libdir="$libdir"
  9889. case "$found_la" in
  9890. */* | *\\*) . "$found_la" ;;
  9891. *) . "./$found_la" ;;
  9892. esac
  9893. libdir="$save_libdir"
  9894. for dep in $dependency_libs; do
  9895. case "$dep" in
  9896. -L*)
  9897. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9898. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9899. haveit=
  9900. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9901. if test -n "$GCC"; then
  9902. case $host_os in
  9903. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9904. esac
  9905. fi
  9906. fi
  9907. if test -z "$haveit"; then
  9908. haveit=
  9909. for x in $LDFLAGS $LIBICONV; do
  9910. acl_save_prefix="$prefix"
  9911. prefix="$acl_final_prefix"
  9912. acl_save_exec_prefix="$exec_prefix"
  9913. exec_prefix="$acl_final_exec_prefix"
  9914. eval x=\"$x\"
  9915. exec_prefix="$acl_save_exec_prefix"
  9916. prefix="$acl_save_prefix"
  9917. if test "X$x" = "X-L$additional_libdir"; then
  9918. haveit=yes
  9919. break
  9920. fi
  9921. done
  9922. if test -z "$haveit"; then
  9923. if test -d "$additional_libdir"; then
  9924. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9925. fi
  9926. fi
  9927. haveit=
  9928. for x in $LDFLAGS $LTLIBICONV; do
  9929. acl_save_prefix="$prefix"
  9930. prefix="$acl_final_prefix"
  9931. acl_save_exec_prefix="$exec_prefix"
  9932. exec_prefix="$acl_final_exec_prefix"
  9933. eval x=\"$x\"
  9934. exec_prefix="$acl_save_exec_prefix"
  9935. prefix="$acl_save_prefix"
  9936. if test "X$x" = "X-L$additional_libdir"; then
  9937. haveit=yes
  9938. break
  9939. fi
  9940. done
  9941. if test -z "$haveit"; then
  9942. if test -d "$additional_libdir"; then
  9943. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9944. fi
  9945. fi
  9946. fi
  9947. fi
  9948. ;;
  9949. -R*)
  9950. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9951. if test "$enable_rpath" != no; then
  9952. haveit=
  9953. for x in $rpathdirs; do
  9954. if test "X$x" = "X$dir"; then
  9955. haveit=yes
  9956. break
  9957. fi
  9958. done
  9959. if test -z "$haveit"; then
  9960. rpathdirs="$rpathdirs $dir"
  9961. fi
  9962. haveit=
  9963. for x in $ltrpathdirs; do
  9964. if test "X$x" = "X$dir"; then
  9965. haveit=yes
  9966. break
  9967. fi
  9968. done
  9969. if test -z "$haveit"; then
  9970. ltrpathdirs="$ltrpathdirs $dir"
  9971. fi
  9972. fi
  9973. ;;
  9974. -l*)
  9975. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9976. ;;
  9977. *.la)
  9978. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9979. ;;
  9980. *)
  9981. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9982. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9983. ;;
  9984. esac
  9985. done
  9986. fi
  9987. else
  9988. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9989. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9990. fi
  9991. fi
  9992. fi
  9993. done
  9994. done
  9995. if test "X$rpathdirs" != "X"; then
  9996. if test -n "$acl_hardcode_libdir_separator"; then
  9997. alldirs=
  9998. for found_dir in $rpathdirs; do
  9999. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10000. done
  10001. acl_save_libdir="$libdir"
  10002. libdir="$alldirs"
  10003. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10004. libdir="$acl_save_libdir"
  10005. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10006. else
  10007. for found_dir in $rpathdirs; do
  10008. acl_save_libdir="$libdir"
  10009. libdir="$found_dir"
  10010. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10011. libdir="$acl_save_libdir"
  10012. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10013. done
  10014. fi
  10015. fi
  10016. if test "X$ltrpathdirs" != "X"; then
  10017. for found_dir in $ltrpathdirs; do
  10018. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10019. done
  10020. fi
  10021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10022. /* end confdefs.h. */
  10023. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10024. int
  10025. main ()
  10026. {
  10027. ;
  10028. return 0;
  10029. }
  10030. _ACEOF
  10031. if ac_fn_cxx_try_link "$LINENO"; then :
  10032. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10033. fi
  10034. rm -f core conftest.err conftest.$ac_objext \
  10035. conftest$ac_exeext conftest.$ac_ext
  10036. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10037. do :
  10038. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10039. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10040. eval as_val=\$$as_ac_Header
  10041. if test "x$as_val" = x""yes; then :
  10042. cat >>confdefs.h <<_ACEOF
  10043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10044. _ACEOF
  10045. fi
  10046. done
  10047. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10048. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10049. argz_next __fsetlocking
  10050. do :
  10051. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10052. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10053. eval as_val=\$$as_ac_var
  10054. if test "x$as_val" = x""yes; then :
  10055. cat >>confdefs.h <<_ACEOF
  10056. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10057. _ACEOF
  10058. fi
  10059. done
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10061. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10062. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10063. $as_echo_n "(cached) " >&6
  10064. else
  10065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10066. /* end confdefs.h. */
  10067. #include <stdio.h>
  10068. int
  10069. main ()
  10070. {
  10071. #ifndef feof_unlocked
  10072. char *p = (char *) feof_unlocked;
  10073. #endif
  10074. ;
  10075. return 0;
  10076. }
  10077. _ACEOF
  10078. if ac_fn_cxx_try_compile "$LINENO"; then :
  10079. ac_cv_have_decl_feof_unlocked=yes
  10080. else
  10081. ac_cv_have_decl_feof_unlocked=no
  10082. fi
  10083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10086. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10087. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10088. gt_value=1
  10089. else
  10090. gt_value=0
  10091. fi
  10092. cat >>confdefs.h <<_ACEOF
  10093. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10094. _ACEOF
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10096. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10097. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10098. $as_echo_n "(cached) " >&6
  10099. else
  10100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10101. /* end confdefs.h. */
  10102. #include <stdio.h>
  10103. int
  10104. main ()
  10105. {
  10106. #ifndef fgets_unlocked
  10107. char *p = (char *) fgets_unlocked;
  10108. #endif
  10109. ;
  10110. return 0;
  10111. }
  10112. _ACEOF
  10113. if ac_fn_cxx_try_compile "$LINENO"; then :
  10114. ac_cv_have_decl_fgets_unlocked=yes
  10115. else
  10116. ac_cv_have_decl_fgets_unlocked=no
  10117. fi
  10118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10121. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10122. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10123. gt_value=1
  10124. else
  10125. gt_value=0
  10126. fi
  10127. cat >>confdefs.h <<_ACEOF
  10128. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10129. _ACEOF
  10130. am_save_CPPFLAGS="$CPPFLAGS"
  10131. for element in $INCICONV; do
  10132. haveit=
  10133. for x in $CPPFLAGS; do
  10134. acl_save_prefix="$prefix"
  10135. prefix="$acl_final_prefix"
  10136. acl_save_exec_prefix="$exec_prefix"
  10137. exec_prefix="$acl_final_exec_prefix"
  10138. eval x=\"$x\"
  10139. exec_prefix="$acl_save_exec_prefix"
  10140. prefix="$acl_save_prefix"
  10141. if test "X$x" = "X$element"; then
  10142. haveit=yes
  10143. break
  10144. fi
  10145. done
  10146. if test -z "$haveit"; then
  10147. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10148. fi
  10149. done
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10151. $as_echo_n "checking for iconv... " >&6; }
  10152. if test "${am_cv_func_iconv+set}" = set; then :
  10153. $as_echo_n "(cached) " >&6
  10154. else
  10155. am_cv_func_iconv="no, consider installing GNU libiconv"
  10156. am_cv_lib_iconv=no
  10157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10158. /* end confdefs.h. */
  10159. #include <stdlib.h>
  10160. #include <iconv.h>
  10161. int
  10162. main ()
  10163. {
  10164. iconv_t cd = iconv_open("","");
  10165. iconv(cd,NULL,NULL,NULL,NULL);
  10166. iconv_close(cd);
  10167. ;
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. if ac_fn_cxx_try_link "$LINENO"; then :
  10172. am_cv_func_iconv=yes
  10173. fi
  10174. rm -f core conftest.err conftest.$ac_objext \
  10175. conftest$ac_exeext conftest.$ac_ext
  10176. if test "$am_cv_func_iconv" != yes; then
  10177. am_save_LIBS="$LIBS"
  10178. LIBS="$LIBS $LIBICONV"
  10179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10180. /* end confdefs.h. */
  10181. #include <stdlib.h>
  10182. #include <iconv.h>
  10183. int
  10184. main ()
  10185. {
  10186. iconv_t cd = iconv_open("","");
  10187. iconv(cd,NULL,NULL,NULL,NULL);
  10188. iconv_close(cd);
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. if ac_fn_cxx_try_link "$LINENO"; then :
  10194. am_cv_lib_iconv=yes
  10195. am_cv_func_iconv=yes
  10196. fi
  10197. rm -f core conftest.err conftest.$ac_objext \
  10198. conftest$ac_exeext conftest.$ac_ext
  10199. LIBS="$am_save_LIBS"
  10200. fi
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10203. $as_echo "$am_cv_func_iconv" >&6; }
  10204. if test "$am_cv_func_iconv" = yes; then
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10206. $as_echo_n "checking for working iconv... " >&6; }
  10207. if test "${am_cv_func_iconv_works+set}" = set; then :
  10208. $as_echo_n "(cached) " >&6
  10209. else
  10210. am_save_LIBS="$LIBS"
  10211. if test $am_cv_lib_iconv = yes; then
  10212. LIBS="$LIBS $LIBICONV"
  10213. fi
  10214. if test "$cross_compiling" = yes; then :
  10215. case "$host_os" in
  10216. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10217. *) am_cv_func_iconv_works="guessing yes" ;;
  10218. esac
  10219. else
  10220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10221. /* end confdefs.h. */
  10222. #include <iconv.h>
  10223. #include <string.h>
  10224. int main ()
  10225. {
  10226. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10227. returns. */
  10228. {
  10229. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10230. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10231. {
  10232. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10233. char buf[10];
  10234. const char *inptr = input;
  10235. size_t inbytesleft = strlen (input);
  10236. char *outptr = buf;
  10237. size_t outbytesleft = sizeof (buf);
  10238. size_t res = iconv (cd_utf8_to_88591,
  10239. (char **) &inptr, &inbytesleft,
  10240. &outptr, &outbytesleft);
  10241. if (res == 0)
  10242. return 1;
  10243. }
  10244. }
  10245. #if 0 /* This bug could be worked around by the caller. */
  10246. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10247. {
  10248. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10249. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10250. {
  10251. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10252. char buf[50];
  10253. const char *inptr = input;
  10254. size_t inbytesleft = strlen (input);
  10255. char *outptr = buf;
  10256. size_t outbytesleft = sizeof (buf);
  10257. size_t res = iconv (cd_88591_to_utf8,
  10258. (char **) &inptr, &inbytesleft,
  10259. &outptr, &outbytesleft);
  10260. if ((int)res > 0)
  10261. return 1;
  10262. }
  10263. }
  10264. #endif
  10265. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10266. provided. */
  10267. if (/* Try standardized names. */
  10268. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10269. /* Try IRIX, OSF/1 names. */
  10270. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10271. /* Try AIX names. */
  10272. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10273. /* Try HP-UX names. */
  10274. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10275. return 1;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. if ac_fn_cxx_try_run "$LINENO"; then :
  10280. am_cv_func_iconv_works=yes
  10281. else
  10282. am_cv_func_iconv_works=no
  10283. fi
  10284. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10285. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10286. fi
  10287. LIBS="$am_save_LIBS"
  10288. fi
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10290. $as_echo "$am_cv_func_iconv_works" >&6; }
  10291. case "$am_cv_func_iconv_works" in
  10292. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10293. *) am_func_iconv=yes ;;
  10294. esac
  10295. else
  10296. am_func_iconv=no am_cv_lib_iconv=no
  10297. fi
  10298. if test "$am_func_iconv" = yes; then
  10299. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10300. fi
  10301. if test "$am_cv_lib_iconv" = yes; then
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10303. $as_echo_n "checking how to link with libiconv... " >&6; }
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10305. $as_echo "$LIBICONV" >&6; }
  10306. else
  10307. CPPFLAGS="$am_save_CPPFLAGS"
  10308. LIBICONV=
  10309. LTLIBICONV=
  10310. fi
  10311. if test "$am_cv_func_iconv" = yes; then
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10313. $as_echo_n "checking for iconv declaration... " >&6; }
  10314. if test "${am_cv_proto_iconv+set}" = set; then :
  10315. $as_echo_n "(cached) " >&6
  10316. else
  10317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10318. /* end confdefs.h. */
  10319. #include <stdlib.h>
  10320. #include <iconv.h>
  10321. extern
  10322. #ifdef __cplusplus
  10323. "C"
  10324. #endif
  10325. #if defined(__STDC__) || defined(__cplusplus)
  10326. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10327. #else
  10328. size_t iconv();
  10329. #endif
  10330. int
  10331. main ()
  10332. {
  10333. ;
  10334. return 0;
  10335. }
  10336. _ACEOF
  10337. if ac_fn_cxx_try_compile "$LINENO"; then :
  10338. am_cv_proto_iconv_arg1=""
  10339. else
  10340. am_cv_proto_iconv_arg1="const"
  10341. fi
  10342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10343. 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);"
  10344. fi
  10345. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10347. }$am_cv_proto_iconv" >&5
  10348. $as_echo "${ac_t:-
  10349. }$am_cv_proto_iconv" >&6; }
  10350. cat >>confdefs.h <<_ACEOF
  10351. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10352. _ACEOF
  10353. fi
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10355. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10356. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10357. $as_echo_n "(cached) " >&6
  10358. else
  10359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10360. /* end confdefs.h. */
  10361. #include <langinfo.h>
  10362. #include <locale.h>
  10363. int
  10364. main ()
  10365. {
  10366. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10367. return !cs;
  10368. ;
  10369. return 0;
  10370. }
  10371. _ACEOF
  10372. if ac_fn_cxx_try_link "$LINENO"; then :
  10373. gt_cv_nl_locale_name=yes
  10374. else
  10375. gt_cv_nl_locale_name=no
  10376. fi
  10377. rm -f core conftest.err conftest.$ac_objext \
  10378. conftest$ac_exeext conftest.$ac_ext
  10379. fi
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10381. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10382. if test $gt_cv_nl_locale_name = yes; then
  10383. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10384. fi
  10385. for ac_prog in bison
  10386. do
  10387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10388. set dummy $ac_prog; ac_word=$2
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10390. $as_echo_n "checking for $ac_word... " >&6; }
  10391. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. if test -n "$INTLBISON"; then
  10395. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10396. else
  10397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10398. for as_dir in $PATH
  10399. do
  10400. IFS=$as_save_IFS
  10401. test -z "$as_dir" && as_dir=.
  10402. for ac_exec_ext in '' $ac_executable_extensions; do
  10403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10404. ac_cv_prog_INTLBISON="$ac_prog"
  10405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10406. break 2
  10407. fi
  10408. done
  10409. done
  10410. IFS=$as_save_IFS
  10411. fi
  10412. fi
  10413. INTLBISON=$ac_cv_prog_INTLBISON
  10414. if test -n "$INTLBISON"; then
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10416. $as_echo "$INTLBISON" >&6; }
  10417. else
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10419. $as_echo "no" >&6; }
  10420. fi
  10421. test -n "$INTLBISON" && break
  10422. done
  10423. if test -z "$INTLBISON"; then
  10424. ac_verc_fail=yes
  10425. else
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10427. $as_echo_n "checking version of bison... " >&6; }
  10428. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10429. case $ac_prog_version in
  10430. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10431. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10432. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10433. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10434. esac
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10436. $as_echo "$ac_prog_version" >&6; }
  10437. fi
  10438. if test $ac_verc_fail = yes; then
  10439. INTLBISON=:
  10440. fi
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10442. $as_echo_n "checking for long long int... " >&6; }
  10443. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10444. $as_echo_n "(cached) " >&6
  10445. else
  10446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10447. /* end confdefs.h. */
  10448. /* Test preprocessor. */
  10449. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10450. error in preprocessor;
  10451. #endif
  10452. #if ! (18446744073709551615ULL <= -1ull)
  10453. error in preprocessor;
  10454. #endif
  10455. /* Test literals. */
  10456. long long int ll = 9223372036854775807ll;
  10457. long long int nll = -9223372036854775807LL;
  10458. unsigned long long int ull = 18446744073709551615ULL;
  10459. /* Test constant expressions. */
  10460. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10461. ? 1 : -1)];
  10462. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10463. ? 1 : -1)];
  10464. int i = 63;
  10465. int
  10466. main ()
  10467. {
  10468. /* Test availability of runtime routines for shift and division. */
  10469. long long int llmax = 9223372036854775807ll;
  10470. unsigned long long int ullmax = 18446744073709551615ull;
  10471. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10472. | (llmax / ll) | (llmax % ll)
  10473. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10474. | (ullmax / ull) | (ullmax % ull));
  10475. ;
  10476. return 0;
  10477. }
  10478. _ACEOF
  10479. if ac_fn_cxx_try_link "$LINENO"; then :
  10480. if test "$cross_compiling" = yes; then :
  10481. ac_cv_type_long_long_int=yes
  10482. else
  10483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10484. /* end confdefs.h. */
  10485. #include <limits.h>
  10486. #ifndef LLONG_MAX
  10487. # define HALF \
  10488. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10489. # define LLONG_MAX (HALF - 1 + HALF)
  10490. #endif
  10491. int
  10492. main ()
  10493. {
  10494. long long int n = 1;
  10495. int i;
  10496. for (i = 0; ; i++)
  10497. {
  10498. long long int m = n << i;
  10499. if (m >> i != n)
  10500. return 1;
  10501. if (LLONG_MAX / 2 < m)
  10502. break;
  10503. }
  10504. return 0;
  10505. ;
  10506. return 0;
  10507. }
  10508. _ACEOF
  10509. if ac_fn_cxx_try_run "$LINENO"; then :
  10510. ac_cv_type_long_long_int=yes
  10511. else
  10512. ac_cv_type_long_long_int=no
  10513. fi
  10514. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10515. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10516. fi
  10517. else
  10518. ac_cv_type_long_long_int=no
  10519. fi
  10520. rm -f core conftest.err conftest.$ac_objext \
  10521. conftest$ac_exeext conftest.$ac_ext
  10522. fi
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10524. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10525. if test $ac_cv_type_long_long_int = yes; then
  10526. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10527. fi
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10529. $as_echo_n "checking for wchar_t... " >&6; }
  10530. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10531. $as_echo_n "(cached) " >&6
  10532. else
  10533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10534. /* end confdefs.h. */
  10535. #include <stddef.h>
  10536. wchar_t foo = (wchar_t)'\0';
  10537. int
  10538. main ()
  10539. {
  10540. ;
  10541. return 0;
  10542. }
  10543. _ACEOF
  10544. if ac_fn_cxx_try_compile "$LINENO"; then :
  10545. gt_cv_c_wchar_t=yes
  10546. else
  10547. gt_cv_c_wchar_t=no
  10548. fi
  10549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10550. fi
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10552. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10553. if test $gt_cv_c_wchar_t = yes; then
  10554. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10555. fi
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10557. $as_echo_n "checking for wint_t... " >&6; }
  10558. if test "${gt_cv_c_wint_t+set}" = set; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10562. /* end confdefs.h. */
  10563. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10564. <wchar.h>.
  10565. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10566. before <wchar.h>. */
  10567. #include <stddef.h>
  10568. #include <stdio.h>
  10569. #include <time.h>
  10570. #include <wchar.h>
  10571. wint_t foo = (wchar_t)'\0';
  10572. int
  10573. main ()
  10574. {
  10575. ;
  10576. return 0;
  10577. }
  10578. _ACEOF
  10579. if ac_fn_cxx_try_compile "$LINENO"; then :
  10580. gt_cv_c_wint_t=yes
  10581. else
  10582. gt_cv_c_wint_t=no
  10583. fi
  10584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10585. fi
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10587. $as_echo "$gt_cv_c_wint_t" >&6; }
  10588. if test $gt_cv_c_wint_t = yes; then
  10589. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10590. fi
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10592. $as_echo_n "checking for intmax_t... " >&6; }
  10593. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. #include <stddef.h>
  10599. #include <stdlib.h>
  10600. #if HAVE_STDINT_H_WITH_UINTMAX
  10601. #include <stdint.h>
  10602. #endif
  10603. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10604. #include <inttypes.h>
  10605. #endif
  10606. int
  10607. main ()
  10608. {
  10609. intmax_t x = -1;
  10610. return !x;
  10611. ;
  10612. return 0;
  10613. }
  10614. _ACEOF
  10615. if ac_fn_cxx_try_compile "$LINENO"; then :
  10616. gt_cv_c_intmax_t=yes
  10617. else
  10618. gt_cv_c_intmax_t=no
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10621. fi
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10623. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10624. if test $gt_cv_c_intmax_t = yes; then
  10625. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10628. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10629. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10630. $as_echo_n "(cached) " >&6
  10631. else
  10632. if test "$cross_compiling" = yes; then :
  10633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10634. /* end confdefs.h. */
  10635. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10636. notposix
  10637. #endif
  10638. _ACEOF
  10639. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10640. $EGREP "notposix" >/dev/null 2>&1; then :
  10641. gt_cv_func_printf_posix="guessing no"
  10642. else
  10643. gt_cv_func_printf_posix="guessing yes"
  10644. fi
  10645. rm -f conftest*
  10646. else
  10647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10648. /* end confdefs.h. */
  10649. #include <stdio.h>
  10650. #include <string.h>
  10651. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10652. dollar expansion (possibly an autoconf bug). */
  10653. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10654. static char buf[100];
  10655. int main ()
  10656. {
  10657. sprintf (buf, format, 33, 55);
  10658. return (strcmp (buf, "55 33") != 0);
  10659. }
  10660. _ACEOF
  10661. if ac_fn_cxx_try_run "$LINENO"; then :
  10662. gt_cv_func_printf_posix=yes
  10663. else
  10664. gt_cv_func_printf_posix=no
  10665. fi
  10666. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10667. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10668. fi
  10669. fi
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10671. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10672. case $gt_cv_func_printf_posix in
  10673. *yes)
  10674. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10675. ;;
  10676. esac
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10678. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10679. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10680. $as_echo_n "(cached) " >&6
  10681. else
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. #include <features.h>
  10685. #ifdef __GNU_LIBRARY__
  10686. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10687. Lucky GNU user
  10688. #endif
  10689. #endif
  10690. _ACEOF
  10691. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10692. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10693. ac_cv_gnu_library_2_1=yes
  10694. else
  10695. ac_cv_gnu_library_2_1=no
  10696. fi
  10697. rm -f conftest*
  10698. fi
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10700. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10701. GLIBC21="$ac_cv_gnu_library_2_1"
  10702. for ac_header in stdint.h
  10703. do :
  10704. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10705. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10706. cat >>confdefs.h <<_ACEOF
  10707. #define HAVE_STDINT_H 1
  10708. _ACEOF
  10709. fi
  10710. done
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10712. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10713. if test "${gl_cv_size_max+set}" = set; then :
  10714. $as_echo_n "(cached) " >&6
  10715. else
  10716. gl_cv_size_max=
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. #include <limits.h>
  10720. #if HAVE_STDINT_H
  10721. #include <stdint.h>
  10722. #endif
  10723. #ifdef SIZE_MAX
  10724. Found it
  10725. #endif
  10726. _ACEOF
  10727. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10728. $EGREP "Found it" >/dev/null 2>&1; then :
  10729. gl_cv_size_max=yes
  10730. fi
  10731. rm -f conftest*
  10732. if test -z "$gl_cv_size_max"; then
  10733. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10734. #include <limits.h>"; then :
  10735. else
  10736. size_t_bits_minus_1=
  10737. fi
  10738. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10739. else
  10740. fits_in_uint=
  10741. fi
  10742. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10743. if test $fits_in_uint = 1; then
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. #include <stddef.h>
  10747. extern size_t foo;
  10748. extern unsigned long foo;
  10749. int
  10750. main ()
  10751. {
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. if ac_fn_cxx_try_compile "$LINENO"; then :
  10757. fits_in_uint=0
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10760. fi
  10761. if test $fits_in_uint = 1; then
  10762. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10763. else
  10764. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10765. fi
  10766. else
  10767. gl_cv_size_max='((size_t)~(size_t)0)'
  10768. fi
  10769. fi
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10772. $as_echo "$gl_cv_size_max" >&6; }
  10773. if test "$gl_cv_size_max" != yes; then
  10774. cat >>confdefs.h <<_ACEOF
  10775. #define SIZE_MAX $gl_cv_size_max
  10776. _ACEOF
  10777. fi
  10778. for ac_header in stdint.h
  10779. do :
  10780. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10781. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10782. cat >>confdefs.h <<_ACEOF
  10783. #define HAVE_STDINT_H 1
  10784. _ACEOF
  10785. fi
  10786. done
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10788. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10789. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10790. $as_echo_n "(cached) " >&6
  10791. else
  10792. gt_save_LIBS="$LIBS"
  10793. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10795. /* end confdefs.h. */
  10796. #include <CoreFoundation/CFPreferences.h>
  10797. int
  10798. main ()
  10799. {
  10800. CFPreferencesCopyAppValue(NULL, NULL)
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. if ac_fn_cxx_try_link "$LINENO"; then :
  10806. gt_cv_func_CFPreferencesCopyAppValue=yes
  10807. else
  10808. gt_cv_func_CFPreferencesCopyAppValue=no
  10809. fi
  10810. rm -f core conftest.err conftest.$ac_objext \
  10811. conftest$ac_exeext conftest.$ac_ext
  10812. LIBS="$gt_save_LIBS"
  10813. fi
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10815. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10816. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10817. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10818. fi
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10820. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10821. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10822. $as_echo_n "(cached) " >&6
  10823. else
  10824. gt_save_LIBS="$LIBS"
  10825. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10827. /* end confdefs.h. */
  10828. #include <CoreFoundation/CFLocale.h>
  10829. int
  10830. main ()
  10831. {
  10832. CFLocaleCopyCurrent();
  10833. ;
  10834. return 0;
  10835. }
  10836. _ACEOF
  10837. if ac_fn_cxx_try_link "$LINENO"; then :
  10838. gt_cv_func_CFLocaleCopyCurrent=yes
  10839. else
  10840. gt_cv_func_CFLocaleCopyCurrent=no
  10841. fi
  10842. rm -f core conftest.err conftest.$ac_objext \
  10843. conftest$ac_exeext conftest.$ac_ext
  10844. LIBS="$gt_save_LIBS"
  10845. fi
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10847. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10848. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10849. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10850. fi
  10851. INTL_MACOSX_LIBS=
  10852. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10853. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10854. fi
  10855. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10856. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10857. else
  10858. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10859. fi
  10860. for ac_header in stddef.h stdlib.h string.h
  10861. do :
  10862. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10863. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10864. eval as_val=\$$as_ac_Header
  10865. if test "x$as_val" = x""yes; then :
  10866. cat >>confdefs.h <<_ACEOF
  10867. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10868. _ACEOF
  10869. fi
  10870. done
  10871. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10872. do :
  10873. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10874. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10875. eval as_val=\$$as_ac_var
  10876. if test "x$as_val" = x""yes; then :
  10877. cat >>confdefs.h <<_ACEOF
  10878. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10879. _ACEOF
  10880. fi
  10881. done
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10883. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10884. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10885. $as_echo_n "(cached) " >&6
  10886. else
  10887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10888. /* end confdefs.h. */
  10889. #include <stdio.h>
  10890. int
  10891. main ()
  10892. {
  10893. #ifndef _snprintf
  10894. char *p = (char *) _snprintf;
  10895. #endif
  10896. ;
  10897. return 0;
  10898. }
  10899. _ACEOF
  10900. if ac_fn_cxx_try_compile "$LINENO"; then :
  10901. ac_cv_have_decl__snprintf=yes
  10902. else
  10903. ac_cv_have_decl__snprintf=no
  10904. fi
  10905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10906. fi
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10908. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10909. if test $ac_cv_have_decl__snprintf = yes; then
  10910. gt_value=1
  10911. else
  10912. gt_value=0
  10913. fi
  10914. cat >>confdefs.h <<_ACEOF
  10915. #define HAVE_DECL__SNPRINTF $gt_value
  10916. _ACEOF
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10918. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10919. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10920. $as_echo_n "(cached) " >&6
  10921. else
  10922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10923. /* end confdefs.h. */
  10924. #include <stdio.h>
  10925. int
  10926. main ()
  10927. {
  10928. #ifndef _snwprintf
  10929. char *p = (char *) _snwprintf;
  10930. #endif
  10931. ;
  10932. return 0;
  10933. }
  10934. _ACEOF
  10935. if ac_fn_cxx_try_compile "$LINENO"; then :
  10936. ac_cv_have_decl__snwprintf=yes
  10937. else
  10938. ac_cv_have_decl__snwprintf=no
  10939. fi
  10940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10941. fi
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10943. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10944. if test $ac_cv_have_decl__snwprintf = yes; then
  10945. gt_value=1
  10946. else
  10947. gt_value=0
  10948. fi
  10949. cat >>confdefs.h <<_ACEOF
  10950. #define HAVE_DECL__SNWPRINTF $gt_value
  10951. _ACEOF
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10953. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10954. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10955. $as_echo_n "(cached) " >&6
  10956. else
  10957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10958. /* end confdefs.h. */
  10959. #include <stdio.h>
  10960. int
  10961. main ()
  10962. {
  10963. #ifndef getc_unlocked
  10964. char *p = (char *) getc_unlocked;
  10965. #endif
  10966. ;
  10967. return 0;
  10968. }
  10969. _ACEOF
  10970. if ac_fn_cxx_try_compile "$LINENO"; then :
  10971. ac_cv_have_decl_getc_unlocked=yes
  10972. else
  10973. ac_cv_have_decl_getc_unlocked=no
  10974. fi
  10975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10976. fi
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10978. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10979. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10980. gt_value=1
  10981. else
  10982. gt_value=0
  10983. fi
  10984. cat >>confdefs.h <<_ACEOF
  10985. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10986. _ACEOF
  10987. case $gt_cv_func_printf_posix in
  10988. *yes) HAVE_POSIX_PRINTF=1 ;;
  10989. *) HAVE_POSIX_PRINTF=0 ;;
  10990. esac
  10991. if test "$ac_cv_func_asprintf" = yes; then
  10992. HAVE_ASPRINTF=1
  10993. else
  10994. HAVE_ASPRINTF=0
  10995. fi
  10996. if test "$ac_cv_func_snprintf" = yes; then
  10997. HAVE_SNPRINTF=1
  10998. else
  10999. HAVE_SNPRINTF=0
  11000. fi
  11001. if test "$ac_cv_func_wprintf" = yes; then
  11002. HAVE_WPRINTF=1
  11003. else
  11004. HAVE_WPRINTF=0
  11005. fi
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11007. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11008. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. #include <langinfo.h>
  11014. int
  11015. main ()
  11016. {
  11017. char* cs = nl_langinfo(CODESET); return !cs;
  11018. ;
  11019. return 0;
  11020. }
  11021. _ACEOF
  11022. if ac_fn_cxx_try_link "$LINENO"; then :
  11023. am_cv_langinfo_codeset=yes
  11024. else
  11025. am_cv_langinfo_codeset=no
  11026. fi
  11027. rm -f core conftest.err conftest.$ac_objext \
  11028. conftest$ac_exeext conftest.$ac_ext
  11029. fi
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11031. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11032. if test $am_cv_langinfo_codeset = yes; then
  11033. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11034. fi
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11036. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11037. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11038. $as_echo_n "(cached) " >&6
  11039. else
  11040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11041. /* end confdefs.h. */
  11042. #include <locale.h>
  11043. int
  11044. main ()
  11045. {
  11046. return LC_MESSAGES
  11047. ;
  11048. return 0;
  11049. }
  11050. _ACEOF
  11051. if ac_fn_cxx_try_link "$LINENO"; then :
  11052. gt_cv_val_LC_MESSAGES=yes
  11053. else
  11054. gt_cv_val_LC_MESSAGES=no
  11055. fi
  11056. rm -f core conftest.err conftest.$ac_objext \
  11057. conftest$ac_exeext conftest.$ac_ext
  11058. fi
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11060. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11061. if test $gt_cv_val_LC_MESSAGES = yes; then
  11062. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11063. fi
  11064. if test "$enable_shared" = yes; then
  11065. case "$host_os" in
  11066. mingw* | cygwin*) is_woe32dll=yes ;;
  11067. *) is_woe32dll=no ;;
  11068. esac
  11069. else
  11070. is_woe32dll=no
  11071. fi
  11072. WOE32DLL=$is_woe32dll
  11073. case "$host_os" in
  11074. mingw* | cygwin*) is_woe32=yes ;;
  11075. *) is_woe32=no ;;
  11076. esac
  11077. WOE32=$is_woe32
  11078. if test $WOE32 = yes; then
  11079. if test -n "$ac_tool_prefix"; then
  11080. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11081. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11083. $as_echo_n "checking for $ac_word... " >&6; }
  11084. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11085. $as_echo_n "(cached) " >&6
  11086. else
  11087. if test -n "$WINDRES"; then
  11088. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11089. else
  11090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11091. for as_dir in $PATH
  11092. do
  11093. IFS=$as_save_IFS
  11094. test -z "$as_dir" && as_dir=.
  11095. for ac_exec_ext in '' $ac_executable_extensions; do
  11096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11097. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11099. break 2
  11100. fi
  11101. done
  11102. done
  11103. IFS=$as_save_IFS
  11104. fi
  11105. fi
  11106. WINDRES=$ac_cv_prog_WINDRES
  11107. if test -n "$WINDRES"; then
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11109. $as_echo "$WINDRES" >&6; }
  11110. else
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11112. $as_echo "no" >&6; }
  11113. fi
  11114. fi
  11115. if test -z "$ac_cv_prog_WINDRES"; then
  11116. ac_ct_WINDRES=$WINDRES
  11117. # Extract the first word of "windres", so it can be a program name with args.
  11118. set dummy windres; ac_word=$2
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11120. $as_echo_n "checking for $ac_word... " >&6; }
  11121. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11122. $as_echo_n "(cached) " >&6
  11123. else
  11124. if test -n "$ac_ct_WINDRES"; then
  11125. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11126. else
  11127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11128. for as_dir in $PATH
  11129. do
  11130. IFS=$as_save_IFS
  11131. test -z "$as_dir" && as_dir=.
  11132. for ac_exec_ext in '' $ac_executable_extensions; do
  11133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11134. ac_cv_prog_ac_ct_WINDRES="windres"
  11135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11136. break 2
  11137. fi
  11138. done
  11139. done
  11140. IFS=$as_save_IFS
  11141. fi
  11142. fi
  11143. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11144. if test -n "$ac_ct_WINDRES"; then
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11146. $as_echo "$ac_ct_WINDRES" >&6; }
  11147. else
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11149. $as_echo "no" >&6; }
  11150. fi
  11151. if test "x$ac_ct_WINDRES" = x; then
  11152. WINDRES=""
  11153. else
  11154. case $cross_compiling:$ac_tool_warned in
  11155. yes:)
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11158. ac_tool_warned=yes ;;
  11159. esac
  11160. WINDRES=$ac_ct_WINDRES
  11161. fi
  11162. else
  11163. WINDRES="$ac_cv_prog_WINDRES"
  11164. fi
  11165. fi
  11166. case "$host_os" in
  11167. hpux*) LTLIBC="" ;;
  11168. *) LTLIBC="-lc" ;;
  11169. esac
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11171. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11172. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11173. $as_echo_n "(cached) " >&6
  11174. else
  11175. gt_save_LIBS="$LIBS"
  11176. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. #include <CoreFoundation/CFPreferences.h>
  11180. int
  11181. main ()
  11182. {
  11183. CFPreferencesCopyAppValue(NULL, NULL)
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_cxx_try_link "$LINENO"; then :
  11189. gt_cv_func_CFPreferencesCopyAppValue=yes
  11190. else
  11191. gt_cv_func_CFPreferencesCopyAppValue=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext \
  11194. conftest$ac_exeext conftest.$ac_ext
  11195. LIBS="$gt_save_LIBS"
  11196. fi
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11198. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11199. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11200. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11201. fi
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11203. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11204. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11205. $as_echo_n "(cached) " >&6
  11206. else
  11207. gt_save_LIBS="$LIBS"
  11208. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11210. /* end confdefs.h. */
  11211. #include <CoreFoundation/CFLocale.h>
  11212. int
  11213. main ()
  11214. {
  11215. CFLocaleCopyCurrent();
  11216. ;
  11217. return 0;
  11218. }
  11219. _ACEOF
  11220. if ac_fn_cxx_try_link "$LINENO"; then :
  11221. gt_cv_func_CFLocaleCopyCurrent=yes
  11222. else
  11223. gt_cv_func_CFLocaleCopyCurrent=no
  11224. fi
  11225. rm -f core conftest.err conftest.$ac_objext \
  11226. conftest$ac_exeext conftest.$ac_ext
  11227. LIBS="$gt_save_LIBS"
  11228. fi
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11230. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11231. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11232. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11233. fi
  11234. INTL_MACOSX_LIBS=
  11235. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11236. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11237. fi
  11238. BUILD_INCLUDED_LIBINTL=no
  11239. USE_INCLUDED_LIBINTL=no
  11240. LIBINTL=
  11241. LTLIBINTL=
  11242. POSUB=
  11243. case " $gt_needs " in
  11244. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11245. *" need-ngettext "*) gt_api_version=2 ;;
  11246. *) gt_api_version=1 ;;
  11247. esac
  11248. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11249. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11250. if test "$USE_NLS" = "yes"; then
  11251. gt_use_preinstalled_gnugettext=no
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11253. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11254. # Check whether --with-included-gettext was given.
  11255. if test "${with_included_gettext+set}" = set; then :
  11256. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11257. else
  11258. nls_cv_force_use_gnu_gettext=no
  11259. fi
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11261. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11262. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11263. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11264. if test $gt_api_version -ge 3; then
  11265. gt_revision_test_code='
  11266. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11267. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11268. #endif
  11269. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11270. '
  11271. else
  11272. gt_revision_test_code=
  11273. fi
  11274. if test $gt_api_version -ge 2; then
  11275. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11276. else
  11277. gt_expression_test_code=
  11278. fi
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11280. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11281. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11282. $as_echo_n "(cached) " >&6
  11283. else
  11284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11285. /* end confdefs.h. */
  11286. #include <libintl.h>
  11287. $gt_revision_test_code
  11288. extern int _nl_msg_cat_cntr;
  11289. extern int *_nl_domain_bindings;
  11290. int
  11291. main ()
  11292. {
  11293. bindtextdomain ("", "");
  11294. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11295. ;
  11296. return 0;
  11297. }
  11298. _ACEOF
  11299. if ac_fn_cxx_try_link "$LINENO"; then :
  11300. eval "$gt_func_gnugettext_libc=yes"
  11301. else
  11302. eval "$gt_func_gnugettext_libc=no"
  11303. fi
  11304. rm -f core conftest.err conftest.$ac_objext \
  11305. conftest$ac_exeext conftest.$ac_ext
  11306. fi
  11307. eval ac_res=\$$gt_func_gnugettext_libc
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11309. $as_echo "$ac_res" >&6; }
  11310. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11311. use_additional=yes
  11312. acl_save_prefix="$prefix"
  11313. prefix="$acl_final_prefix"
  11314. acl_save_exec_prefix="$exec_prefix"
  11315. exec_prefix="$acl_final_exec_prefix"
  11316. eval additional_includedir=\"$includedir\"
  11317. eval additional_libdir=\"$libdir\"
  11318. exec_prefix="$acl_save_exec_prefix"
  11319. prefix="$acl_save_prefix"
  11320. # Check whether --with-libintl-prefix was given.
  11321. if test "${with_libintl_prefix+set}" = set; then :
  11322. withval=$with_libintl_prefix;
  11323. if test "X$withval" = "Xno"; then
  11324. use_additional=no
  11325. else
  11326. if test "X$withval" = "X"; then
  11327. acl_save_prefix="$prefix"
  11328. prefix="$acl_final_prefix"
  11329. acl_save_exec_prefix="$exec_prefix"
  11330. exec_prefix="$acl_final_exec_prefix"
  11331. eval additional_includedir=\"$includedir\"
  11332. eval additional_libdir=\"$libdir\"
  11333. exec_prefix="$acl_save_exec_prefix"
  11334. prefix="$acl_save_prefix"
  11335. else
  11336. additional_includedir="$withval/include"
  11337. additional_libdir="$withval/$acl_libdirstem"
  11338. fi
  11339. fi
  11340. fi
  11341. LIBINTL=
  11342. LTLIBINTL=
  11343. INCINTL=
  11344. LIBINTL_PREFIX=
  11345. rpathdirs=
  11346. ltrpathdirs=
  11347. names_already_handled=
  11348. names_next_round='intl '
  11349. while test -n "$names_next_round"; do
  11350. names_this_round="$names_next_round"
  11351. names_next_round=
  11352. for name in $names_this_round; do
  11353. already_handled=
  11354. for n in $names_already_handled; do
  11355. if test "$n" = "$name"; then
  11356. already_handled=yes
  11357. break
  11358. fi
  11359. done
  11360. if test -z "$already_handled"; then
  11361. names_already_handled="$names_already_handled $name"
  11362. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11363. eval value=\"\$HAVE_LIB$uppername\"
  11364. if test -n "$value"; then
  11365. if test "$value" = yes; then
  11366. eval value=\"\$LIB$uppername\"
  11367. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11368. eval value=\"\$LTLIB$uppername\"
  11369. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11370. else
  11371. :
  11372. fi
  11373. else
  11374. found_dir=
  11375. found_la=
  11376. found_so=
  11377. found_a=
  11378. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11379. if test -n "$acl_shlibext"; then
  11380. shrext=".$acl_shlibext" # typically: shrext=.so
  11381. else
  11382. shrext=
  11383. fi
  11384. if test $use_additional = yes; then
  11385. dir="$additional_libdir"
  11386. if test -n "$acl_shlibext"; then
  11387. if test -f "$dir/$libname$shrext"; then
  11388. found_dir="$dir"
  11389. found_so="$dir/$libname$shrext"
  11390. else
  11391. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11392. ver=`(cd "$dir" && \
  11393. for f in "$libname$shrext".*; do echo "$f"; done \
  11394. | sed -e "s,^$libname$shrext\\\\.,," \
  11395. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11396. | sed 1q ) 2>/dev/null`
  11397. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11398. found_dir="$dir"
  11399. found_so="$dir/$libname$shrext.$ver"
  11400. fi
  11401. else
  11402. eval library_names=\"$acl_library_names_spec\"
  11403. for f in $library_names; do
  11404. if test -f "$dir/$f"; then
  11405. found_dir="$dir"
  11406. found_so="$dir/$f"
  11407. break
  11408. fi
  11409. done
  11410. fi
  11411. fi
  11412. fi
  11413. if test "X$found_dir" = "X"; then
  11414. if test -f "$dir/$libname.$acl_libext"; then
  11415. found_dir="$dir"
  11416. found_a="$dir/$libname.$acl_libext"
  11417. fi
  11418. fi
  11419. if test "X$found_dir" != "X"; then
  11420. if test -f "$dir/$libname.la"; then
  11421. found_la="$dir/$libname.la"
  11422. fi
  11423. fi
  11424. fi
  11425. if test "X$found_dir" = "X"; then
  11426. for x in $LDFLAGS $LTLIBINTL; do
  11427. acl_save_prefix="$prefix"
  11428. prefix="$acl_final_prefix"
  11429. acl_save_exec_prefix="$exec_prefix"
  11430. exec_prefix="$acl_final_exec_prefix"
  11431. eval x=\"$x\"
  11432. exec_prefix="$acl_save_exec_prefix"
  11433. prefix="$acl_save_prefix"
  11434. case "$x" in
  11435. -L*)
  11436. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11437. if test -n "$acl_shlibext"; then
  11438. if test -f "$dir/$libname$shrext"; then
  11439. found_dir="$dir"
  11440. found_so="$dir/$libname$shrext"
  11441. else
  11442. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11443. ver=`(cd "$dir" && \
  11444. for f in "$libname$shrext".*; do echo "$f"; done \
  11445. | sed -e "s,^$libname$shrext\\\\.,," \
  11446. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11447. | sed 1q ) 2>/dev/null`
  11448. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11449. found_dir="$dir"
  11450. found_so="$dir/$libname$shrext.$ver"
  11451. fi
  11452. else
  11453. eval library_names=\"$acl_library_names_spec\"
  11454. for f in $library_names; do
  11455. if test -f "$dir/$f"; then
  11456. found_dir="$dir"
  11457. found_so="$dir/$f"
  11458. break
  11459. fi
  11460. done
  11461. fi
  11462. fi
  11463. fi
  11464. if test "X$found_dir" = "X"; then
  11465. if test -f "$dir/$libname.$acl_libext"; then
  11466. found_dir="$dir"
  11467. found_a="$dir/$libname.$acl_libext"
  11468. fi
  11469. fi
  11470. if test "X$found_dir" != "X"; then
  11471. if test -f "$dir/$libname.la"; then
  11472. found_la="$dir/$libname.la"
  11473. fi
  11474. fi
  11475. ;;
  11476. esac
  11477. if test "X$found_dir" != "X"; then
  11478. break
  11479. fi
  11480. done
  11481. fi
  11482. if test "X$found_dir" != "X"; then
  11483. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11484. if test "X$found_so" != "X"; then
  11485. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11486. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11487. else
  11488. haveit=
  11489. for x in $ltrpathdirs; do
  11490. if test "X$x" = "X$found_dir"; then
  11491. haveit=yes
  11492. break
  11493. fi
  11494. done
  11495. if test -z "$haveit"; then
  11496. ltrpathdirs="$ltrpathdirs $found_dir"
  11497. fi
  11498. if test "$acl_hardcode_direct" = yes; then
  11499. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11500. else
  11501. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11502. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11503. haveit=
  11504. for x in $rpathdirs; do
  11505. if test "X$x" = "X$found_dir"; then
  11506. haveit=yes
  11507. break
  11508. fi
  11509. done
  11510. if test -z "$haveit"; then
  11511. rpathdirs="$rpathdirs $found_dir"
  11512. fi
  11513. else
  11514. haveit=
  11515. for x in $LDFLAGS $LIBINTL; do
  11516. acl_save_prefix="$prefix"
  11517. prefix="$acl_final_prefix"
  11518. acl_save_exec_prefix="$exec_prefix"
  11519. exec_prefix="$acl_final_exec_prefix"
  11520. eval x=\"$x\"
  11521. exec_prefix="$acl_save_exec_prefix"
  11522. prefix="$acl_save_prefix"
  11523. if test "X$x" = "X-L$found_dir"; then
  11524. haveit=yes
  11525. break
  11526. fi
  11527. done
  11528. if test -z "$haveit"; then
  11529. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11530. fi
  11531. if test "$acl_hardcode_minus_L" != no; then
  11532. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11533. else
  11534. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11535. fi
  11536. fi
  11537. fi
  11538. fi
  11539. else
  11540. if test "X$found_a" != "X"; then
  11541. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11542. else
  11543. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11544. fi
  11545. fi
  11546. additional_includedir=
  11547. case "$found_dir" in
  11548. */$acl_libdirstem | */$acl_libdirstem/)
  11549. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11550. LIBINTL_PREFIX="$basedir"
  11551. additional_includedir="$basedir/include"
  11552. ;;
  11553. esac
  11554. if test "X$additional_includedir" != "X"; then
  11555. if test "X$additional_includedir" != "X/usr/include"; then
  11556. haveit=
  11557. if test "X$additional_includedir" = "X/usr/local/include"; then
  11558. if test -n "$GCC"; then
  11559. case $host_os in
  11560. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11561. esac
  11562. fi
  11563. fi
  11564. if test -z "$haveit"; then
  11565. for x in $CPPFLAGS $INCINTL; do
  11566. acl_save_prefix="$prefix"
  11567. prefix="$acl_final_prefix"
  11568. acl_save_exec_prefix="$exec_prefix"
  11569. exec_prefix="$acl_final_exec_prefix"
  11570. eval x=\"$x\"
  11571. exec_prefix="$acl_save_exec_prefix"
  11572. prefix="$acl_save_prefix"
  11573. if test "X$x" = "X-I$additional_includedir"; then
  11574. haveit=yes
  11575. break
  11576. fi
  11577. done
  11578. if test -z "$haveit"; then
  11579. if test -d "$additional_includedir"; then
  11580. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11581. fi
  11582. fi
  11583. fi
  11584. fi
  11585. fi
  11586. if test -n "$found_la"; then
  11587. save_libdir="$libdir"
  11588. case "$found_la" in
  11589. */* | *\\*) . "$found_la" ;;
  11590. *) . "./$found_la" ;;
  11591. esac
  11592. libdir="$save_libdir"
  11593. for dep in $dependency_libs; do
  11594. case "$dep" in
  11595. -L*)
  11596. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11597. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11598. haveit=
  11599. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11600. if test -n "$GCC"; then
  11601. case $host_os in
  11602. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11603. esac
  11604. fi
  11605. fi
  11606. if test -z "$haveit"; then
  11607. haveit=
  11608. for x in $LDFLAGS $LIBINTL; do
  11609. acl_save_prefix="$prefix"
  11610. prefix="$acl_final_prefix"
  11611. acl_save_exec_prefix="$exec_prefix"
  11612. exec_prefix="$acl_final_exec_prefix"
  11613. eval x=\"$x\"
  11614. exec_prefix="$acl_save_exec_prefix"
  11615. prefix="$acl_save_prefix"
  11616. if test "X$x" = "X-L$additional_libdir"; then
  11617. haveit=yes
  11618. break
  11619. fi
  11620. done
  11621. if test -z "$haveit"; then
  11622. if test -d "$additional_libdir"; then
  11623. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11624. fi
  11625. fi
  11626. haveit=
  11627. for x in $LDFLAGS $LTLIBINTL; do
  11628. acl_save_prefix="$prefix"
  11629. prefix="$acl_final_prefix"
  11630. acl_save_exec_prefix="$exec_prefix"
  11631. exec_prefix="$acl_final_exec_prefix"
  11632. eval x=\"$x\"
  11633. exec_prefix="$acl_save_exec_prefix"
  11634. prefix="$acl_save_prefix"
  11635. if test "X$x" = "X-L$additional_libdir"; then
  11636. haveit=yes
  11637. break
  11638. fi
  11639. done
  11640. if test -z "$haveit"; then
  11641. if test -d "$additional_libdir"; then
  11642. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11643. fi
  11644. fi
  11645. fi
  11646. fi
  11647. ;;
  11648. -R*)
  11649. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11650. if test "$enable_rpath" != no; then
  11651. haveit=
  11652. for x in $rpathdirs; do
  11653. if test "X$x" = "X$dir"; then
  11654. haveit=yes
  11655. break
  11656. fi
  11657. done
  11658. if test -z "$haveit"; then
  11659. rpathdirs="$rpathdirs $dir"
  11660. fi
  11661. haveit=
  11662. for x in $ltrpathdirs; do
  11663. if test "X$x" = "X$dir"; then
  11664. haveit=yes
  11665. break
  11666. fi
  11667. done
  11668. if test -z "$haveit"; then
  11669. ltrpathdirs="$ltrpathdirs $dir"
  11670. fi
  11671. fi
  11672. ;;
  11673. -l*)
  11674. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11675. ;;
  11676. *.la)
  11677. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11678. ;;
  11679. *)
  11680. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11681. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11682. ;;
  11683. esac
  11684. done
  11685. fi
  11686. else
  11687. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11688. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11689. fi
  11690. fi
  11691. fi
  11692. done
  11693. done
  11694. if test "X$rpathdirs" != "X"; then
  11695. if test -n "$acl_hardcode_libdir_separator"; then
  11696. alldirs=
  11697. for found_dir in $rpathdirs; do
  11698. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11699. done
  11700. acl_save_libdir="$libdir"
  11701. libdir="$alldirs"
  11702. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11703. libdir="$acl_save_libdir"
  11704. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11705. else
  11706. for found_dir in $rpathdirs; do
  11707. acl_save_libdir="$libdir"
  11708. libdir="$found_dir"
  11709. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11710. libdir="$acl_save_libdir"
  11711. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11712. done
  11713. fi
  11714. fi
  11715. if test "X$ltrpathdirs" != "X"; then
  11716. for found_dir in $ltrpathdirs; do
  11717. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11718. done
  11719. fi
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11721. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11722. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11723. $as_echo_n "(cached) " >&6
  11724. else
  11725. gt_save_CPPFLAGS="$CPPFLAGS"
  11726. CPPFLAGS="$CPPFLAGS $INCINTL"
  11727. gt_save_LIBS="$LIBS"
  11728. LIBS="$LIBS $LIBINTL"
  11729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11730. /* end confdefs.h. */
  11731. #include <libintl.h>
  11732. $gt_revision_test_code
  11733. extern int _nl_msg_cat_cntr;
  11734. extern
  11735. #ifdef __cplusplus
  11736. "C"
  11737. #endif
  11738. const char *_nl_expand_alias (const char *);
  11739. int
  11740. main ()
  11741. {
  11742. bindtextdomain ("", "");
  11743. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11744. ;
  11745. return 0;
  11746. }
  11747. _ACEOF
  11748. if ac_fn_cxx_try_link "$LINENO"; then :
  11749. eval "$gt_func_gnugettext_libintl=yes"
  11750. else
  11751. eval "$gt_func_gnugettext_libintl=no"
  11752. fi
  11753. rm -f core conftest.err conftest.$ac_objext \
  11754. conftest$ac_exeext conftest.$ac_ext
  11755. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11756. LIBS="$LIBS $LIBICONV"
  11757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11758. /* end confdefs.h. */
  11759. #include <libintl.h>
  11760. $gt_revision_test_code
  11761. extern int _nl_msg_cat_cntr;
  11762. extern
  11763. #ifdef __cplusplus
  11764. "C"
  11765. #endif
  11766. const char *_nl_expand_alias (const char *);
  11767. int
  11768. main ()
  11769. {
  11770. bindtextdomain ("", "");
  11771. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11772. ;
  11773. return 0;
  11774. }
  11775. _ACEOF
  11776. if ac_fn_cxx_try_link "$LINENO"; then :
  11777. LIBINTL="$LIBINTL $LIBICONV"
  11778. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11779. eval "$gt_func_gnugettext_libintl=yes"
  11780. fi
  11781. rm -f core conftest.err conftest.$ac_objext \
  11782. conftest$ac_exeext conftest.$ac_ext
  11783. fi
  11784. CPPFLAGS="$gt_save_CPPFLAGS"
  11785. LIBS="$gt_save_LIBS"
  11786. fi
  11787. eval ac_res=\$$gt_func_gnugettext_libintl
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11789. $as_echo "$ac_res" >&6; }
  11790. fi
  11791. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11792. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11793. && test "$PACKAGE" != gettext-runtime \
  11794. && test "$PACKAGE" != gettext-tools; }; then
  11795. gt_use_preinstalled_gnugettext=yes
  11796. else
  11797. LIBINTL=
  11798. LTLIBINTL=
  11799. INCINTL=
  11800. fi
  11801. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11802. nls_cv_use_gnu_gettext=yes
  11803. fi
  11804. fi
  11805. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11806. BUILD_INCLUDED_LIBINTL=yes
  11807. USE_INCLUDED_LIBINTL=yes
  11808. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11809. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11810. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11811. fi
  11812. CATOBJEXT=
  11813. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11814. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11815. CATOBJEXT=.gmo
  11816. fi
  11817. if test -n "$INTL_MACOSX_LIBS"; then
  11818. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11819. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11820. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11821. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11822. fi
  11823. fi
  11824. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11825. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11826. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11827. else
  11828. USE_NLS=no
  11829. fi
  11830. fi
  11831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11832. $as_echo_n "checking whether to use NLS... " >&6; }
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11834. $as_echo "$USE_NLS" >&6; }
  11835. if test "$USE_NLS" = "yes"; then
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11837. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11838. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11839. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11840. gt_source="external libintl"
  11841. else
  11842. gt_source="libc"
  11843. fi
  11844. else
  11845. gt_source="included intl directory"
  11846. fi
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11848. $as_echo "$gt_source" >&6; }
  11849. fi
  11850. if test "$USE_NLS" = "yes"; then
  11851. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11852. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11854. $as_echo_n "checking how to link with libintl... " >&6; }
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11856. $as_echo "$LIBINTL" >&6; }
  11857. for element in $INCINTL; do
  11858. haveit=
  11859. for x in $CPPFLAGS; do
  11860. acl_save_prefix="$prefix"
  11861. prefix="$acl_final_prefix"
  11862. acl_save_exec_prefix="$exec_prefix"
  11863. exec_prefix="$acl_final_exec_prefix"
  11864. eval x=\"$x\"
  11865. exec_prefix="$acl_save_exec_prefix"
  11866. prefix="$acl_save_prefix"
  11867. if test "X$x" = "X$element"; then
  11868. haveit=yes
  11869. break
  11870. fi
  11871. done
  11872. if test -z "$haveit"; then
  11873. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11874. fi
  11875. done
  11876. fi
  11877. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11878. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11879. fi
  11880. POSUB=po
  11881. fi
  11882. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11883. BUILD_INCLUDED_LIBINTL=yes
  11884. fi
  11885. nls_cv_header_intl=
  11886. nls_cv_header_libgt=
  11887. DATADIRNAME=share
  11888. INSTOBJEXT=.mo
  11889. GENCAT=gencat
  11890. INTLOBJS=
  11891. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11892. INTLOBJS="\$(GETTOBJS)"
  11893. fi
  11894. INTL_LIBTOOL_SUFFIX_PREFIX=
  11895. INTLLIBS="$LIBINTL"
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11897. $as_echo_n "checking for error_at_line... " >&6; }
  11898. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11899. $as_echo_n "(cached) " >&6
  11900. else
  11901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11902. /* end confdefs.h. */
  11903. #include <error.h>
  11904. int
  11905. main ()
  11906. {
  11907. error_at_line (0, 0, "", 0, "an error occurred");
  11908. ;
  11909. return 0;
  11910. }
  11911. _ACEOF
  11912. if ac_fn_cxx_try_link "$LINENO"; then :
  11913. ac_cv_lib_error_at_line=yes
  11914. else
  11915. ac_cv_lib_error_at_line=no
  11916. fi
  11917. rm -f core conftest.err conftest.$ac_objext \
  11918. conftest$ac_exeext conftest.$ac_ext
  11919. fi
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11921. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11922. if test $ac_cv_lib_error_at_line = no; then
  11923. case " $LIBOBJS " in
  11924. *" error.$ac_objext "* ) ;;
  11925. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11926. ;;
  11927. esac
  11928. fi
  11929. if test $ac_cv_c_compiler_gnu = yes; then
  11930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11931. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11932. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11933. $as_echo_n "(cached) " >&6
  11934. else
  11935. ac_pattern="Autoconf.*'x'"
  11936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11937. /* end confdefs.h. */
  11938. #include <sgtty.h>
  11939. Autoconf TIOCGETP
  11940. _ACEOF
  11941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11942. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11943. ac_cv_prog_gcc_traditional=yes
  11944. else
  11945. ac_cv_prog_gcc_traditional=no
  11946. fi
  11947. rm -f conftest*
  11948. if test $ac_cv_prog_gcc_traditional = no; then
  11949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11950. /* end confdefs.h. */
  11951. #include <termio.h>
  11952. Autoconf TCGETA
  11953. _ACEOF
  11954. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11955. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11956. ac_cv_prog_gcc_traditional=yes
  11957. fi
  11958. rm -f conftest*
  11959. fi
  11960. fi
  11961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11962. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11963. if test $ac_cv_prog_gcc_traditional = yes; then
  11964. CC="$CC -traditional"
  11965. fi
  11966. fi
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11968. $as_echo_n "checking for working memcmp... " >&6; }
  11969. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11970. $as_echo_n "(cached) " >&6
  11971. else
  11972. if test "$cross_compiling" = yes; then :
  11973. ac_cv_func_memcmp_working=no
  11974. else
  11975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11976. /* end confdefs.h. */
  11977. $ac_includes_default
  11978. int
  11979. main ()
  11980. {
  11981. /* Some versions of memcmp are not 8-bit clean. */
  11982. char c0 = '\100', c1 = '\200', c2 = '\201';
  11983. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11984. return 1;
  11985. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11986. or more and with at least one buffer not starting on a 4-byte boundary.
  11987. William Lewis provided this test program. */
  11988. {
  11989. char foo[21];
  11990. char bar[21];
  11991. int i;
  11992. for (i = 0; i < 4; i++)
  11993. {
  11994. char *a = foo + i;
  11995. char *b = bar + i;
  11996. strcpy (a, "--------01111111");
  11997. strcpy (b, "--------10000000");
  11998. if (memcmp (a, b, 16) >= 0)
  11999. return 1;
  12000. }
  12001. return 0;
  12002. }
  12003. ;
  12004. return 0;
  12005. }
  12006. _ACEOF
  12007. if ac_fn_cxx_try_run "$LINENO"; then :
  12008. ac_cv_func_memcmp_working=yes
  12009. else
  12010. ac_cv_func_memcmp_working=no
  12011. fi
  12012. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12013. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12014. fi
  12015. fi
  12016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12017. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12018. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12019. *" memcmp.$ac_objext "* ) ;;
  12020. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12021. ;;
  12022. esac
  12023. for ac_func in $ac_func_list
  12024. do :
  12025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12026. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12027. eval as_val=\$$as_ac_var
  12028. if test "x$as_val" = x""yes; then :
  12029. cat >>confdefs.h <<_ACEOF
  12030. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12031. _ACEOF
  12032. fi
  12033. done
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12035. $as_echo_n "checking for working mktime... " >&6; }
  12036. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12037. $as_echo_n "(cached) " >&6
  12038. else
  12039. if test "$cross_compiling" = yes; then :
  12040. ac_cv_func_working_mktime=no
  12041. else
  12042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12043. /* end confdefs.h. */
  12044. /* Test program from Paul Eggert and Tony Leneis. */
  12045. #ifdef TIME_WITH_SYS_TIME
  12046. # include <sys/time.h>
  12047. # include <time.h>
  12048. #else
  12049. # ifdef HAVE_SYS_TIME_H
  12050. # include <sys/time.h>
  12051. # else
  12052. # include <time.h>
  12053. # endif
  12054. #endif
  12055. #include <limits.h>
  12056. #include <stdlib.h>
  12057. #ifdef HAVE_UNISTD_H
  12058. # include <unistd.h>
  12059. #endif
  12060. #ifndef HAVE_ALARM
  12061. # define alarm(X) /* empty */
  12062. #endif
  12063. /* Work around redefinition to rpl_putenv by other config tests. */
  12064. #undef putenv
  12065. static time_t time_t_max;
  12066. static time_t time_t_min;
  12067. /* Values we'll use to set the TZ environment variable. */
  12068. static char *tz_strings[] = {
  12069. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12070. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12071. };
  12072. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12073. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12074. Based on a problem report from Andreas Jaeger. */
  12075. static int
  12076. spring_forward_gap ()
  12077. {
  12078. /* glibc (up to about 1998-10-07) failed this test. */
  12079. struct tm tm;
  12080. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12081. instead of "TZ=America/Vancouver" in order to detect the bug even
  12082. on systems that don't support the Olson extension, or don't have the
  12083. full zoneinfo tables installed. */
  12084. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12085. tm.tm_year = 98;
  12086. tm.tm_mon = 3;
  12087. tm.tm_mday = 5;
  12088. tm.tm_hour = 2;
  12089. tm.tm_min = 0;
  12090. tm.tm_sec = 0;
  12091. tm.tm_isdst = -1;
  12092. return mktime (&tm) != (time_t) -1;
  12093. }
  12094. static int
  12095. mktime_test1 (now)
  12096. time_t now;
  12097. {
  12098. struct tm *lt;
  12099. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12100. }
  12101. static int
  12102. mktime_test (now)
  12103. time_t now;
  12104. {
  12105. return (mktime_test1 (now)
  12106. && mktime_test1 ((time_t) (time_t_max - now))
  12107. && mktime_test1 ((time_t) (time_t_min + now)));
  12108. }
  12109. static int
  12110. irix_6_4_bug ()
  12111. {
  12112. /* Based on code from Ariel Faigon. */
  12113. struct tm tm;
  12114. tm.tm_year = 96;
  12115. tm.tm_mon = 3;
  12116. tm.tm_mday = 0;
  12117. tm.tm_hour = 0;
  12118. tm.tm_min = 0;
  12119. tm.tm_sec = 0;
  12120. tm.tm_isdst = -1;
  12121. mktime (&tm);
  12122. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12123. }
  12124. static int
  12125. bigtime_test (j)
  12126. int j;
  12127. {
  12128. struct tm tm;
  12129. time_t now;
  12130. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12131. now = mktime (&tm);
  12132. if (now != (time_t) -1)
  12133. {
  12134. struct tm *lt = localtime (&now);
  12135. if (! (lt
  12136. && lt->tm_year == tm.tm_year
  12137. && lt->tm_mon == tm.tm_mon
  12138. && lt->tm_mday == tm.tm_mday
  12139. && lt->tm_hour == tm.tm_hour
  12140. && lt->tm_min == tm.tm_min
  12141. && lt->tm_sec == tm.tm_sec
  12142. && lt->tm_yday == tm.tm_yday
  12143. && lt->tm_wday == tm.tm_wday
  12144. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12145. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12146. return 0;
  12147. }
  12148. return 1;
  12149. }
  12150. static int
  12151. year_2050_test ()
  12152. {
  12153. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12154. ignoring leap seconds. */
  12155. unsigned long int answer = 2527315200UL;
  12156. struct tm tm;
  12157. time_t t;
  12158. tm.tm_year = 2050 - 1900;
  12159. tm.tm_mon = 2 - 1;
  12160. tm.tm_mday = 1;
  12161. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12162. tm.tm_isdst = -1;
  12163. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12164. instead of "TZ=America/Vancouver" in order to detect the bug even
  12165. on systems that don't support the Olson extension, or don't have the
  12166. full zoneinfo tables installed. */
  12167. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12168. t = mktime (&tm);
  12169. /* Check that the result is either a failure, or close enough
  12170. to the correct answer that we can assume the discrepancy is
  12171. due to leap seconds. */
  12172. return (t == (time_t) -1
  12173. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12174. }
  12175. int
  12176. main ()
  12177. {
  12178. time_t t, delta;
  12179. int i, j;
  12180. /* This test makes some buggy mktime implementations loop.
  12181. Give up after 60 seconds; a mktime slower than that
  12182. isn't worth using anyway. */
  12183. alarm (60);
  12184. for (;;)
  12185. {
  12186. t = (time_t_max << 1) + 1;
  12187. if (t <= time_t_max)
  12188. break;
  12189. time_t_max = t;
  12190. }
  12191. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12192. delta = time_t_max / 997; /* a suitable prime number */
  12193. for (i = 0; i < N_STRINGS; i++)
  12194. {
  12195. if (tz_strings[i])
  12196. putenv (tz_strings[i]);
  12197. for (t = 0; t <= time_t_max - delta; t += delta)
  12198. if (! mktime_test (t))
  12199. return 1;
  12200. if (! (mktime_test ((time_t) 1)
  12201. && mktime_test ((time_t) (60 * 60))
  12202. && mktime_test ((time_t) (60 * 60 * 24))))
  12203. return 1;
  12204. for (j = 1; ; j <<= 1)
  12205. if (! bigtime_test (j))
  12206. return 1;
  12207. else if (INT_MAX / 2 < j)
  12208. break;
  12209. if (! bigtime_test (INT_MAX))
  12210. return 1;
  12211. }
  12212. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12213. }
  12214. _ACEOF
  12215. if ac_fn_cxx_try_run "$LINENO"; then :
  12216. ac_cv_func_working_mktime=yes
  12217. else
  12218. ac_cv_func_working_mktime=no
  12219. fi
  12220. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12221. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12222. fi
  12223. fi
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12225. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12226. if test $ac_cv_func_working_mktime = no; then
  12227. case " $LIBOBJS " in
  12228. *" mktime.$ac_objext "* ) ;;
  12229. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12230. ;;
  12231. esac
  12232. fi
  12233. for ac_func in getpagesize
  12234. do :
  12235. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12236. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12237. cat >>confdefs.h <<_ACEOF
  12238. #define HAVE_GETPAGESIZE 1
  12239. _ACEOF
  12240. fi
  12241. done
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12243. $as_echo_n "checking for working mmap... " >&6; }
  12244. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12245. $as_echo_n "(cached) " >&6
  12246. else
  12247. if test "$cross_compiling" = yes; then :
  12248. ac_cv_func_mmap_fixed_mapped=no
  12249. else
  12250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h. */
  12252. $ac_includes_default
  12253. /* malloc might have been renamed as rpl_malloc. */
  12254. #undef malloc
  12255. /* Thanks to Mike Haertel and Jim Avera for this test.
  12256. Here is a matrix of mmap possibilities:
  12257. mmap private not fixed
  12258. mmap private fixed at somewhere currently unmapped
  12259. mmap private fixed at somewhere already mapped
  12260. mmap shared not fixed
  12261. mmap shared fixed at somewhere currently unmapped
  12262. mmap shared fixed at somewhere already mapped
  12263. For private mappings, we should verify that changes cannot be read()
  12264. back from the file, nor mmap's back from the file at a different
  12265. address. (There have been systems where private was not correctly
  12266. implemented like the infamous i386 svr4.0, and systems where the
  12267. VM page cache was not coherent with the file system buffer cache
  12268. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12269. For shared mappings, we should conversely verify that changes get
  12270. propagated back to all the places they're supposed to be.
  12271. Grep wants private fixed already mapped.
  12272. The main things grep needs to know about mmap are:
  12273. * does it exist and is it safe to write into the mmap'd area
  12274. * how to use it (BSD variants) */
  12275. #include <fcntl.h>
  12276. #include <sys/mman.h>
  12277. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12278. char *malloc ();
  12279. #endif
  12280. /* This mess was copied from the GNU getpagesize.h. */
  12281. #ifndef HAVE_GETPAGESIZE
  12282. # ifdef _SC_PAGESIZE
  12283. # define getpagesize() sysconf(_SC_PAGESIZE)
  12284. # else /* no _SC_PAGESIZE */
  12285. # ifdef HAVE_SYS_PARAM_H
  12286. # include <sys/param.h>
  12287. # ifdef EXEC_PAGESIZE
  12288. # define getpagesize() EXEC_PAGESIZE
  12289. # else /* no EXEC_PAGESIZE */
  12290. # ifdef NBPG
  12291. # define getpagesize() NBPG * CLSIZE
  12292. # ifndef CLSIZE
  12293. # define CLSIZE 1
  12294. # endif /* no CLSIZE */
  12295. # else /* no NBPG */
  12296. # ifdef NBPC
  12297. # define getpagesize() NBPC
  12298. # else /* no NBPC */
  12299. # ifdef PAGESIZE
  12300. # define getpagesize() PAGESIZE
  12301. # endif /* PAGESIZE */
  12302. # endif /* no NBPC */
  12303. # endif /* no NBPG */
  12304. # endif /* no EXEC_PAGESIZE */
  12305. # else /* no HAVE_SYS_PARAM_H */
  12306. # define getpagesize() 8192 /* punt totally */
  12307. # endif /* no HAVE_SYS_PARAM_H */
  12308. # endif /* no _SC_PAGESIZE */
  12309. #endif /* no HAVE_GETPAGESIZE */
  12310. int
  12311. main ()
  12312. {
  12313. char *data, *data2, *data3;
  12314. const char *cdata2;
  12315. int i, pagesize;
  12316. int fd, fd2;
  12317. pagesize = getpagesize ();
  12318. /* First, make a file with some known garbage in it. */
  12319. data = (char *) malloc (pagesize);
  12320. if (!data)
  12321. return 1;
  12322. for (i = 0; i < pagesize; ++i)
  12323. *(data + i) = rand ();
  12324. umask (0);
  12325. fd = creat ("conftest.mmap", 0600);
  12326. if (fd < 0)
  12327. return 2;
  12328. if (write (fd, data, pagesize) != pagesize)
  12329. return 3;
  12330. close (fd);
  12331. /* Next, check that the tail of a page is zero-filled. File must have
  12332. non-zero length, otherwise we risk SIGBUS for entire page. */
  12333. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12334. if (fd2 < 0)
  12335. return 4;
  12336. cdata2 = "";
  12337. if (write (fd2, cdata2, 1) != 1)
  12338. return 5;
  12339. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12340. if (data2 == MAP_FAILED)
  12341. return 6;
  12342. for (i = 0; i < pagesize; ++i)
  12343. if (*(data2 + i))
  12344. return 7;
  12345. close (fd2);
  12346. if (munmap (data2, pagesize))
  12347. return 8;
  12348. /* Next, try to mmap the file at a fixed address which already has
  12349. something else allocated at it. If we can, also make sure that
  12350. we see the same garbage. */
  12351. fd = open ("conftest.mmap", O_RDWR);
  12352. if (fd < 0)
  12353. return 9;
  12354. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12355. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12356. return 10;
  12357. for (i = 0; i < pagesize; ++i)
  12358. if (*(data + i) != *(data2 + i))
  12359. return 11;
  12360. /* Finally, make sure that changes to the mapped area do not
  12361. percolate back to the file as seen by read(). (This is a bug on
  12362. some variants of i386 svr4.0.) */
  12363. for (i = 0; i < pagesize; ++i)
  12364. *(data2 + i) = *(data2 + i) + 1;
  12365. data3 = (char *) malloc (pagesize);
  12366. if (!data3)
  12367. return 12;
  12368. if (read (fd, data3, pagesize) != pagesize)
  12369. return 13;
  12370. for (i = 0; i < pagesize; ++i)
  12371. if (*(data + i) != *(data3 + i))
  12372. return 14;
  12373. close (fd);
  12374. return 0;
  12375. }
  12376. _ACEOF
  12377. if ac_fn_cxx_try_run "$LINENO"; then :
  12378. ac_cv_func_mmap_fixed_mapped=yes
  12379. else
  12380. ac_cv_func_mmap_fixed_mapped=no
  12381. fi
  12382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12383. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12384. fi
  12385. fi
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12387. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12388. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12389. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12390. fi
  12391. rm -f conftest.mmap conftest.txt
  12392. for ac_header in sys/select.h sys/socket.h
  12393. do :
  12394. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12395. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12396. eval as_val=\$$as_ac_Header
  12397. if test "x$as_val" = x""yes; then :
  12398. cat >>confdefs.h <<_ACEOF
  12399. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12400. _ACEOF
  12401. fi
  12402. done
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12404. $as_echo_n "checking types of arguments for select... " >&6; }
  12405. if test "${ac_cv_func_select_args+set}" = set; then :
  12406. $as_echo_n "(cached) " >&6
  12407. else
  12408. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12409. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12410. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. $ac_includes_default
  12414. #ifdef HAVE_SYS_SELECT_H
  12415. # include <sys/select.h>
  12416. #endif
  12417. #ifdef HAVE_SYS_SOCKET_H
  12418. # include <sys/socket.h>
  12419. #endif
  12420. int
  12421. main ()
  12422. {
  12423. extern int select ($ac_arg1,
  12424. $ac_arg234, $ac_arg234, $ac_arg234,
  12425. $ac_arg5);
  12426. ;
  12427. return 0;
  12428. }
  12429. _ACEOF
  12430. if ac_fn_cxx_try_compile "$LINENO"; then :
  12431. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12432. fi
  12433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12434. done
  12435. done
  12436. done
  12437. # Provide a safe default value.
  12438. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12439. fi
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12441. $as_echo "$ac_cv_func_select_args" >&6; }
  12442. ac_save_IFS=$IFS; IFS=','
  12443. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12444. IFS=$ac_save_IFS
  12445. shift
  12446. cat >>confdefs.h <<_ACEOF
  12447. #define SELECT_TYPE_ARG1 $1
  12448. _ACEOF
  12449. cat >>confdefs.h <<_ACEOF
  12450. #define SELECT_TYPE_ARG234 ($2)
  12451. _ACEOF
  12452. cat >>confdefs.h <<_ACEOF
  12453. #define SELECT_TYPE_ARG5 ($3)
  12454. _ACEOF
  12455. rm -f conftest*
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12457. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12458. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12459. $as_echo_n "(cached) " >&6
  12460. else
  12461. rm -f conftest.sym conftest.file
  12462. echo >conftest.file
  12463. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12464. if test "$cross_compiling" = yes; then :
  12465. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12466. else
  12467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. $ac_includes_default
  12470. int
  12471. main ()
  12472. {
  12473. struct stat sbuf;
  12474. /* Linux will dereference the symlink and fail, as required by POSIX.
  12475. That is better in the sense that it means we will not
  12476. have to compile and use the lstat wrapper. */
  12477. return lstat ("conftest.sym/", &sbuf) == 0;
  12478. ;
  12479. return 0;
  12480. }
  12481. _ACEOF
  12482. if ac_fn_cxx_try_run "$LINENO"; then :
  12483. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12484. else
  12485. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12486. fi
  12487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12489. fi
  12490. else
  12491. # If the `ln -s' command failed, then we probably don't even
  12492. # have an lstat function.
  12493. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12494. fi
  12495. rm -f conftest.sym conftest.file
  12496. fi
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12498. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12499. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12500. cat >>confdefs.h <<_ACEOF
  12501. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12502. _ACEOF
  12503. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12504. case " $LIBOBJS " in
  12505. *" lstat.$ac_objext "* ) ;;
  12506. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12507. ;;
  12508. esac
  12509. fi
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12511. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12512. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12513. $as_echo_n "(cached) " >&6
  12514. else
  12515. if test "$cross_compiling" = yes; then :
  12516. ac_cv_func_stat_empty_string_bug=yes
  12517. else
  12518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12519. /* end confdefs.h. */
  12520. $ac_includes_default
  12521. int
  12522. main ()
  12523. {
  12524. struct stat sbuf;
  12525. return stat ("", &sbuf) == 0;
  12526. ;
  12527. return 0;
  12528. }
  12529. _ACEOF
  12530. if ac_fn_cxx_try_run "$LINENO"; then :
  12531. ac_cv_func_stat_empty_string_bug=no
  12532. else
  12533. ac_cv_func_stat_empty_string_bug=yes
  12534. fi
  12535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12536. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12537. fi
  12538. fi
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12540. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12541. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12542. case " $LIBOBJS " in
  12543. *" stat.$ac_objext "* ) ;;
  12544. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12545. ;;
  12546. esac
  12547. cat >>confdefs.h <<_ACEOF
  12548. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12549. _ACEOF
  12550. fi
  12551. for ac_func in strftime
  12552. do :
  12553. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12554. if test "x$ac_cv_func_strftime" = x""yes; then :
  12555. cat >>confdefs.h <<_ACEOF
  12556. #define HAVE_STRFTIME 1
  12557. _ACEOF
  12558. else
  12559. # strftime is in -lintl on SCO UNIX.
  12560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12561. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12562. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12563. $as_echo_n "(cached) " >&6
  12564. else
  12565. ac_check_lib_save_LIBS=$LIBS
  12566. LIBS="-lintl $LIBS"
  12567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12568. /* end confdefs.h. */
  12569. /* Override any GCC internal prototype to avoid an error.
  12570. Use char because int might match the return type of a GCC
  12571. builtin and then its argument prototype would still apply. */
  12572. #ifdef __cplusplus
  12573. extern "C"
  12574. #endif
  12575. char strftime ();
  12576. int
  12577. main ()
  12578. {
  12579. return strftime ();
  12580. ;
  12581. return 0;
  12582. }
  12583. _ACEOF
  12584. if ac_fn_cxx_try_link "$LINENO"; then :
  12585. ac_cv_lib_intl_strftime=yes
  12586. else
  12587. ac_cv_lib_intl_strftime=no
  12588. fi
  12589. rm -f core conftest.err conftest.$ac_objext \
  12590. conftest$ac_exeext conftest.$ac_ext
  12591. LIBS=$ac_check_lib_save_LIBS
  12592. fi
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12594. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12595. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12596. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12597. LIBS="-lintl $LIBS"
  12598. fi
  12599. fi
  12600. done
  12601. for ac_func in vprintf
  12602. do :
  12603. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12604. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12605. cat >>confdefs.h <<_ACEOF
  12606. #define HAVE_VPRINTF 1
  12607. _ACEOF
  12608. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12609. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12610. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12611. fi
  12612. fi
  12613. done
  12614. for ac_header in vfork.h
  12615. do :
  12616. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12617. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12618. cat >>confdefs.h <<_ACEOF
  12619. #define HAVE_VFORK_H 1
  12620. _ACEOF
  12621. fi
  12622. done
  12623. for ac_func in fork vfork
  12624. do :
  12625. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12626. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12627. eval as_val=\$$as_ac_var
  12628. if test "x$as_val" = x""yes; then :
  12629. cat >>confdefs.h <<_ACEOF
  12630. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12631. _ACEOF
  12632. fi
  12633. done
  12634. if test "x$ac_cv_func_fork" = xyes; then
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12636. $as_echo_n "checking for working fork... " >&6; }
  12637. if test "${ac_cv_func_fork_works+set}" = set; then :
  12638. $as_echo_n "(cached) " >&6
  12639. else
  12640. if test "$cross_compiling" = yes; then :
  12641. ac_cv_func_fork_works=cross
  12642. else
  12643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12644. /* end confdefs.h. */
  12645. $ac_includes_default
  12646. int
  12647. main ()
  12648. {
  12649. /* By Ruediger Kuhlmann. */
  12650. return fork () < 0;
  12651. ;
  12652. return 0;
  12653. }
  12654. _ACEOF
  12655. if ac_fn_cxx_try_run "$LINENO"; then :
  12656. ac_cv_func_fork_works=yes
  12657. else
  12658. ac_cv_func_fork_works=no
  12659. fi
  12660. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12661. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12662. fi
  12663. fi
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12665. $as_echo "$ac_cv_func_fork_works" >&6; }
  12666. else
  12667. ac_cv_func_fork_works=$ac_cv_func_fork
  12668. fi
  12669. if test "x$ac_cv_func_fork_works" = xcross; then
  12670. case $host in
  12671. *-*-amigaos* | *-*-msdosdjgpp*)
  12672. # Override, as these systems have only a dummy fork() stub
  12673. ac_cv_func_fork_works=no
  12674. ;;
  12675. *)
  12676. ac_cv_func_fork_works=yes
  12677. ;;
  12678. esac
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12680. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12681. fi
  12682. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12683. if test "x$ac_cv_func_vfork" = xyes; then
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12685. $as_echo_n "checking for working vfork... " >&6; }
  12686. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. if test "$cross_compiling" = yes; then :
  12690. ac_cv_func_vfork_works=cross
  12691. else
  12692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12693. /* end confdefs.h. */
  12694. /* Thanks to Paul Eggert for this test. */
  12695. $ac_includes_default
  12696. #include <sys/wait.h>
  12697. #ifdef HAVE_VFORK_H
  12698. # include <vfork.h>
  12699. #endif
  12700. /* On some sparc systems, changes by the child to local and incoming
  12701. argument registers are propagated back to the parent. The compiler
  12702. is told about this with #include <vfork.h>, but some compilers
  12703. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12704. static variable whose address is put into a register that is
  12705. clobbered by the vfork. */
  12706. static void
  12707. #ifdef __cplusplus
  12708. sparc_address_test (int arg)
  12709. # else
  12710. sparc_address_test (arg) int arg;
  12711. #endif
  12712. {
  12713. static pid_t child;
  12714. if (!child) {
  12715. child = vfork ();
  12716. if (child < 0) {
  12717. perror ("vfork");
  12718. _exit(2);
  12719. }
  12720. if (!child) {
  12721. arg = getpid();
  12722. write(-1, "", 0);
  12723. _exit (arg);
  12724. }
  12725. }
  12726. }
  12727. int
  12728. main ()
  12729. {
  12730. pid_t parent = getpid ();
  12731. pid_t child;
  12732. sparc_address_test (0);
  12733. child = vfork ();
  12734. if (child == 0) {
  12735. /* Here is another test for sparc vfork register problems. This
  12736. test uses lots of local variables, at least as many local
  12737. variables as main has allocated so far including compiler
  12738. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12739. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12740. reuse the register of parent for one of the local variables,
  12741. since it will think that parent can't possibly be used any more
  12742. in this routine. Assigning to the local variable will thus
  12743. munge parent in the parent process. */
  12744. pid_t
  12745. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12746. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12747. /* Convince the compiler that p..p7 are live; otherwise, it might
  12748. use the same hardware register for all 8 local variables. */
  12749. if (p != p1 || p != p2 || p != p3 || p != p4
  12750. || p != p5 || p != p6 || p != p7)
  12751. _exit(1);
  12752. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12753. from child file descriptors. If the child closes a descriptor
  12754. before it execs or exits, this munges the parent's descriptor
  12755. as well. Test for this by closing stdout in the child. */
  12756. _exit(close(fileno(stdout)) != 0);
  12757. } else {
  12758. int status;
  12759. struct stat st;
  12760. while (wait(&status) != child)
  12761. ;
  12762. return (
  12763. /* Was there some problem with vforking? */
  12764. child < 0
  12765. /* Did the child fail? (This shouldn't happen.) */
  12766. || status
  12767. /* Did the vfork/compiler bug occur? */
  12768. || parent != getpid()
  12769. /* Did the file descriptor bug occur? */
  12770. || fstat(fileno(stdout), &st) != 0
  12771. );
  12772. }
  12773. }
  12774. _ACEOF
  12775. if ac_fn_cxx_try_run "$LINENO"; then :
  12776. ac_cv_func_vfork_works=yes
  12777. else
  12778. ac_cv_func_vfork_works=no
  12779. fi
  12780. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12781. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12782. fi
  12783. fi
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12785. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12786. fi;
  12787. if test "x$ac_cv_func_fork_works" = xcross; then
  12788. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12790. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12791. fi
  12792. if test "x$ac_cv_func_vfork_works" = xyes; then
  12793. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12794. else
  12795. $as_echo "#define vfork fork" >>confdefs.h
  12796. fi
  12797. if test "x$ac_cv_func_fork_works" = xyes; then
  12798. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12799. fi
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12801. $as_echo_n "checking for working strtod... " >&6; }
  12802. if test "${ac_cv_func_strtod+set}" = set; then :
  12803. $as_echo_n "(cached) " >&6
  12804. else
  12805. if test "$cross_compiling" = yes; then :
  12806. ac_cv_func_strtod=no
  12807. else
  12808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12809. /* end confdefs.h. */
  12810. $ac_includes_default
  12811. #ifndef strtod
  12812. double strtod ();
  12813. #endif
  12814. int
  12815. main()
  12816. {
  12817. {
  12818. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12819. char *string = " +69";
  12820. char *term;
  12821. double value;
  12822. value = strtod (string, &term);
  12823. if (value != 69 || term != (string + 4))
  12824. return 1;
  12825. }
  12826. {
  12827. /* Under Solaris 2.4, strtod returns the wrong value for the
  12828. terminating character under some conditions. */
  12829. char *string = "NaN";
  12830. char *term;
  12831. strtod (string, &term);
  12832. if (term != string && *(term - 1) == 0)
  12833. return 1;
  12834. }
  12835. return 0;
  12836. }
  12837. _ACEOF
  12838. if ac_fn_cxx_try_run "$LINENO"; then :
  12839. ac_cv_func_strtod=yes
  12840. else
  12841. ac_cv_func_strtod=no
  12842. fi
  12843. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12844. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12845. fi
  12846. fi
  12847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12848. $as_echo "$ac_cv_func_strtod" >&6; }
  12849. if test $ac_cv_func_strtod = no; then
  12850. case " $LIBOBJS " in
  12851. *" strtod.$ac_objext "* ) ;;
  12852. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12853. ;;
  12854. esac
  12855. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12856. if test "x$ac_cv_func_pow" = x""yes; then :
  12857. fi
  12858. if test $ac_cv_func_pow = no; then
  12859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12860. $as_echo_n "checking for pow in -lm... " >&6; }
  12861. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12862. $as_echo_n "(cached) " >&6
  12863. else
  12864. ac_check_lib_save_LIBS=$LIBS
  12865. LIBS="-lm $LIBS"
  12866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12867. /* end confdefs.h. */
  12868. /* Override any GCC internal prototype to avoid an error.
  12869. Use char because int might match the return type of a GCC
  12870. builtin and then its argument prototype would still apply. */
  12871. #ifdef __cplusplus
  12872. extern "C"
  12873. #endif
  12874. char pow ();
  12875. int
  12876. main ()
  12877. {
  12878. return pow ();
  12879. ;
  12880. return 0;
  12881. }
  12882. _ACEOF
  12883. if ac_fn_cxx_try_link "$LINENO"; then :
  12884. ac_cv_lib_m_pow=yes
  12885. else
  12886. ac_cv_lib_m_pow=no
  12887. fi
  12888. rm -f core conftest.err conftest.$ac_objext \
  12889. conftest$ac_exeext conftest.$ac_ext
  12890. LIBS=$ac_check_lib_save_LIBS
  12891. fi
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12893. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12894. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12895. POW_LIB=-lm
  12896. else
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12898. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12899. fi
  12900. fi
  12901. fi
  12902. for ac_func in __argz_count \
  12903. __argz_next \
  12904. __argz_stringify \
  12905. atexit \
  12906. ftruncate \
  12907. getcwd \
  12908. gethostbyaddr \
  12909. gethostbyname \
  12910. getifaddrs \
  12911. getpagesize \
  12912. inet_ntoa \
  12913. memchr \
  12914. memmove \
  12915. mempcpy \
  12916. memset \
  12917. mkdir \
  12918. munmap \
  12919. nl_langinfo \
  12920. posix_memalign \
  12921. pow \
  12922. putenv \
  12923. rmdir \
  12924. select \
  12925. setlocale \
  12926. sleep \
  12927. socket \
  12928. stpcpy \
  12929. strcasecmp \
  12930. strchr \
  12931. strcspn \
  12932. strdup \
  12933. strerror \
  12934. strncasecmp \
  12935. strstr \
  12936. strtol \
  12937. strtoul \
  12938. strtoull \
  12939. tzset \
  12940. unsetenv \
  12941. usleep \
  12942. utime
  12943. do :
  12944. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12945. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12946. eval as_val=\$$as_ac_var
  12947. if test "x$as_val" = x""yes; then :
  12948. cat >>confdefs.h <<_ACEOF
  12949. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12950. _ACEOF
  12951. fi
  12952. done
  12953. if test "x$enable_epoll" = "xyes"; then
  12954. for ac_func in epoll_create
  12955. do :
  12956. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12957. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12958. cat >>confdefs.h <<_ACEOF
  12959. #define HAVE_EPOLL_CREATE 1
  12960. _ACEOF
  12961. have_epoll=yes
  12962. fi
  12963. done
  12964. if test "x$have_epoll" = "xyes"; then
  12965. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12966. fi
  12967. fi
  12968. if test "x$have_epoll" = "xyes"; then
  12969. HAVE_EPOLL_TRUE=
  12970. HAVE_EPOLL_FALSE='#'
  12971. else
  12972. HAVE_EPOLL_TRUE='#'
  12973. HAVE_EPOLL_FALSE=
  12974. fi
  12975. for ac_func in posix_fallocate
  12976. do :
  12977. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12978. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12979. cat >>confdefs.h <<_ACEOF
  12980. #define HAVE_POSIX_FALLOCATE 1
  12981. _ACEOF
  12982. have_posix_fallocate=yes
  12983. fi
  12984. done
  12985. if test "x$have_posix_fallocate" = "xyes"; then
  12986. HAVE_POSIX_FALLOCATE_TRUE=
  12987. HAVE_POSIX_FALLOCATE_FALSE='#'
  12988. else
  12989. HAVE_POSIX_FALLOCATE_TRUE='#'
  12990. HAVE_POSIX_FALLOCATE_FALSE=
  12991. fi
  12992. for ac_func in asctime_r
  12993. do :
  12994. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12995. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12996. cat >>confdefs.h <<_ACEOF
  12997. #define HAVE_ASCTIME_R 1
  12998. _ACEOF
  12999. if true; then
  13000. HAVE_ASCTIME_R_TRUE=
  13001. HAVE_ASCTIME_R_FALSE='#'
  13002. else
  13003. HAVE_ASCTIME_R_TRUE='#'
  13004. HAVE_ASCTIME_R_FALSE=
  13005. fi
  13006. else
  13007. if false; then
  13008. HAVE_ASCTIME_R_TRUE=
  13009. HAVE_ASCTIME_R_FALSE='#'
  13010. else
  13011. HAVE_ASCTIME_R_TRUE='#'
  13012. HAVE_ASCTIME_R_FALSE=
  13013. fi
  13014. fi
  13015. done
  13016. for ac_func in basename
  13017. do :
  13018. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13019. if test "x$ac_cv_func_basename" = x""yes; then :
  13020. cat >>confdefs.h <<_ACEOF
  13021. #define HAVE_BASENAME 1
  13022. _ACEOF
  13023. if true; then
  13024. HAVE_BASENAME_TRUE=
  13025. HAVE_BASENAME_FALSE='#'
  13026. else
  13027. HAVE_BASENAME_TRUE='#'
  13028. HAVE_BASENAME_FALSE=
  13029. fi
  13030. else
  13031. if false; then
  13032. HAVE_BASENAME_TRUE=
  13033. HAVE_BASENAME_FALSE='#'
  13034. else
  13035. HAVE_BASENAME_TRUE='#'
  13036. HAVE_BASENAME_FALSE=
  13037. fi
  13038. fi
  13039. done
  13040. for ac_func in gai_strerror
  13041. do :
  13042. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13043. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13044. cat >>confdefs.h <<_ACEOF
  13045. #define HAVE_GAI_STRERROR 1
  13046. _ACEOF
  13047. if true; then
  13048. HAVE_GAI_STRERROR_TRUE=
  13049. HAVE_GAI_STRERROR_FALSE='#'
  13050. else
  13051. HAVE_GAI_STRERROR_TRUE='#'
  13052. HAVE_GAI_STRERROR_FALSE=
  13053. fi
  13054. else
  13055. if false; then
  13056. HAVE_GAI_STRERROR_TRUE=
  13057. HAVE_GAI_STRERROR_FALSE='#'
  13058. else
  13059. HAVE_GAI_STRERROR_TRUE='#'
  13060. HAVE_GAI_STRERROR_FALSE=
  13061. fi
  13062. fi
  13063. done
  13064. for ac_func in getaddrinfo
  13065. do :
  13066. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13067. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13068. cat >>confdefs.h <<_ACEOF
  13069. #define HAVE_GETADDRINFO 1
  13070. _ACEOF
  13071. if true; then
  13072. HAVE_GETADDRINFO_TRUE=
  13073. HAVE_GETADDRINFO_FALSE='#'
  13074. else
  13075. HAVE_GETADDRINFO_TRUE='#'
  13076. HAVE_GETADDRINFO_FALSE=
  13077. fi
  13078. else
  13079. if false; then
  13080. HAVE_GETADDRINFO_TRUE=
  13081. HAVE_GETADDRINFO_FALSE='#'
  13082. else
  13083. HAVE_GETADDRINFO_TRUE='#'
  13084. HAVE_GETADDRINFO_FALSE=
  13085. fi
  13086. fi
  13087. done
  13088. for ac_func in gettimeofday
  13089. do :
  13090. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13091. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13092. cat >>confdefs.h <<_ACEOF
  13093. #define HAVE_GETTIMEOFDAY 1
  13094. _ACEOF
  13095. if true; then
  13096. HAVE_GETTIMEOFDAY_TRUE=
  13097. HAVE_GETTIMEOFDAY_FALSE='#'
  13098. else
  13099. HAVE_GETTIMEOFDAY_TRUE='#'
  13100. HAVE_GETTIMEOFDAY_FALSE=
  13101. fi
  13102. else
  13103. if false; then
  13104. HAVE_GETTIMEOFDAY_TRUE=
  13105. HAVE_GETTIMEOFDAY_FALSE='#'
  13106. else
  13107. HAVE_GETTIMEOFDAY_TRUE='#'
  13108. HAVE_GETTIMEOFDAY_FALSE=
  13109. fi
  13110. fi
  13111. done
  13112. for ac_func in inet_aton
  13113. do :
  13114. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13115. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13116. cat >>confdefs.h <<_ACEOF
  13117. #define HAVE_INET_ATON 1
  13118. _ACEOF
  13119. if true; then
  13120. HAVE_INET_ATON_TRUE=
  13121. HAVE_INET_ATON_FALSE='#'
  13122. else
  13123. HAVE_INET_ATON_TRUE='#'
  13124. HAVE_INET_ATON_FALSE=
  13125. fi
  13126. else
  13127. if false; then
  13128. HAVE_INET_ATON_TRUE=
  13129. HAVE_INET_ATON_FALSE='#'
  13130. else
  13131. HAVE_INET_ATON_TRUE='#'
  13132. HAVE_INET_ATON_FALSE=
  13133. fi
  13134. fi
  13135. done
  13136. for ac_func in localtime_r
  13137. do :
  13138. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13139. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13140. cat >>confdefs.h <<_ACEOF
  13141. #define HAVE_LOCALTIME_R 1
  13142. _ACEOF
  13143. if true; then
  13144. HAVE_LOCALTIME_R_TRUE=
  13145. HAVE_LOCALTIME_R_FALSE='#'
  13146. else
  13147. HAVE_LOCALTIME_R_TRUE='#'
  13148. HAVE_LOCALTIME_R_FALSE=
  13149. fi
  13150. else
  13151. if false; then
  13152. HAVE_LOCALTIME_R_TRUE=
  13153. HAVE_LOCALTIME_R_FALSE='#'
  13154. else
  13155. HAVE_LOCALTIME_R_TRUE='#'
  13156. HAVE_LOCALTIME_R_FALSE=
  13157. fi
  13158. fi
  13159. done
  13160. for ac_func in strptime
  13161. do :
  13162. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13163. if test "x$ac_cv_func_strptime" = x""yes; then :
  13164. cat >>confdefs.h <<_ACEOF
  13165. #define HAVE_STRPTIME 1
  13166. _ACEOF
  13167. if true; then
  13168. HAVE_STRPTIME_TRUE=
  13169. HAVE_STRPTIME_FALSE='#'
  13170. else
  13171. HAVE_STRPTIME_TRUE='#'
  13172. HAVE_STRPTIME_FALSE=
  13173. fi
  13174. else
  13175. if false; then
  13176. HAVE_STRPTIME_TRUE=
  13177. HAVE_STRPTIME_FALSE='#'
  13178. else
  13179. HAVE_STRPTIME_TRUE='#'
  13180. HAVE_STRPTIME_FALSE=
  13181. fi
  13182. fi
  13183. done
  13184. for ac_func in timegm
  13185. do :
  13186. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13187. if test "x$ac_cv_func_timegm" = x""yes; then :
  13188. cat >>confdefs.h <<_ACEOF
  13189. #define HAVE_TIMEGM 1
  13190. _ACEOF
  13191. if true; then
  13192. HAVE_TIMEGM_TRUE=
  13193. HAVE_TIMEGM_FALSE='#'
  13194. else
  13195. HAVE_TIMEGM_TRUE='#'
  13196. HAVE_TIMEGM_FALSE=
  13197. fi
  13198. else
  13199. if false; then
  13200. HAVE_TIMEGM_TRUE=
  13201. HAVE_TIMEGM_FALSE='#'
  13202. else
  13203. HAVE_TIMEGM_TRUE='#'
  13204. HAVE_TIMEGM_FALSE=
  13205. fi
  13206. fi
  13207. done
  13208. for ac_func in daemon
  13209. do :
  13210. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13211. if test "x$ac_cv_func_daemon" = x""yes; then :
  13212. cat >>confdefs.h <<_ACEOF
  13213. #define HAVE_DAEMON 1
  13214. _ACEOF
  13215. have_daemon=yes
  13216. fi
  13217. done
  13218. if test "x$have_daemon" = "xyes"; then
  13219. HAVE_DAEMON_TRUE=
  13220. HAVE_DAEMON_FALSE='#'
  13221. else
  13222. HAVE_DAEMON_TRUE='#'
  13223. HAVE_DAEMON_FALSE=
  13224. fi
  13225. for ac_func in clock_gettime
  13226. do :
  13227. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13228. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13229. cat >>confdefs.h <<_ACEOF
  13230. #define HAVE_CLOCK_GETTIME 1
  13231. _ACEOF
  13232. have_clock_gettime=yes
  13233. fi
  13234. done
  13235. case "$target" in
  13236. *mingw*)
  13237. if true; then
  13238. HAVE_GETADDRINFO_TRUE=
  13239. HAVE_GETADDRINFO_FALSE='#'
  13240. else
  13241. HAVE_GETADDRINFO_TRUE='#'
  13242. HAVE_GETADDRINFO_FALSE=
  13243. fi
  13244. if false; then
  13245. HAVE_GAI_STRERROR_TRUE=
  13246. HAVE_GAI_STRERROR_FALSE='#'
  13247. else
  13248. HAVE_GAI_STRERROR_TRUE='#'
  13249. HAVE_GAI_STRERROR_FALSE=
  13250. fi
  13251. if test "x$have_clock_gettime" != "xyes"; then
  13252. if true; then
  13253. HAVE_TIMEGETTIME_TRUE=
  13254. HAVE_TIMEGETTIME_FALSE='#'
  13255. else
  13256. HAVE_TIMEGETTIME_TRUE='#'
  13257. HAVE_TIMEGETTIME_FALSE=
  13258. fi
  13259. fi
  13260. ;;
  13261. esac
  13262. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13263. "
  13264. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13265. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13266. fi
  13267. # Check struct option.name is assignable from const char*. struct
  13268. # option.name in opensolaris is of type char*. In Linux, it is const
  13269. # char*
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13271. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13273. /* end confdefs.h. */
  13274. #include <unistd.h>
  13275. #include <getopt.h>
  13276. int
  13277. main ()
  13278. {
  13279. const char* s = "const char";
  13280. option op;
  13281. op.name = s;
  13282. ;
  13283. return 0;
  13284. }
  13285. _ACEOF
  13286. if ac_fn_cxx_try_compile "$LINENO"; then :
  13287. have_option_const_name=yes
  13288. else
  13289. have_option_const_name=no
  13290. fi
  13291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13293. $as_echo "$have_option_const_name" >&6; }
  13294. if test "x$have_option_const_name" = "xyes"; then
  13295. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13296. fi
  13297. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13298. cat >confcache <<\_ACEOF
  13299. # This file is a shell script that caches the results of configure
  13300. # tests run on this system so they can be shared between configure
  13301. # scripts and configure runs, see configure's option --config-cache.
  13302. # It is not useful on other systems. If it contains results you don't
  13303. # want to keep, you may remove or edit it.
  13304. #
  13305. # config.status only pays attention to the cache file if you give it
  13306. # the --recheck option to rerun configure.
  13307. #
  13308. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13309. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13310. # following values.
  13311. _ACEOF
  13312. # The following way of writing the cache mishandles newlines in values,
  13313. # but we know of no workaround that is simple, portable, and efficient.
  13314. # So, we kill variables containing newlines.
  13315. # Ultrix sh set writes to stderr and can't be redirected directly,
  13316. # and sets the high bit in the cache file unless we assign to the vars.
  13317. (
  13318. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13319. eval ac_val=\$$ac_var
  13320. case $ac_val in #(
  13321. *${as_nl}*)
  13322. case $ac_var in #(
  13323. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13324. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13325. esac
  13326. case $ac_var in #(
  13327. _ | IFS | as_nl) ;; #(
  13328. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13329. *) { eval $ac_var=; unset $ac_var;} ;;
  13330. esac ;;
  13331. esac
  13332. done
  13333. (set) 2>&1 |
  13334. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13335. *${as_nl}ac_space=\ *)
  13336. # `set' does not quote correctly, so add quotes: double-quote
  13337. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13338. sed -n \
  13339. "s/'/'\\\\''/g;
  13340. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13341. ;; #(
  13342. *)
  13343. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13344. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13345. ;;
  13346. esac |
  13347. sort
  13348. ) |
  13349. sed '
  13350. /^ac_cv_env_/b end
  13351. t clear
  13352. :clear
  13353. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13354. t end
  13355. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13356. :end' >>confcache
  13357. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13358. if test -w "$cache_file"; then
  13359. test "x$cache_file" != "x/dev/null" &&
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13361. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13362. cat confcache >$cache_file
  13363. else
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13365. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13366. fi
  13367. fi
  13368. rm -f confcache
  13369. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13370. # Let make expand exec_prefix.
  13371. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13372. DEFS=-DHAVE_CONFIG_H
  13373. ac_libobjs=
  13374. ac_ltlibobjs=
  13375. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13376. # 1. Remove the extension, and $U if already installed.
  13377. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13378. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13379. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13380. # will be set to the directory where LIBOBJS objects are built.
  13381. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13382. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13383. done
  13384. LIBOBJS=$ac_libobjs
  13385. LTLIBOBJS=$ac_ltlibobjs
  13386. if test -n "$EXEEXT"; then
  13387. am__EXEEXT_TRUE=
  13388. am__EXEEXT_FALSE='#'
  13389. else
  13390. am__EXEEXT_TRUE='#'
  13391. am__EXEEXT_FALSE=
  13392. fi
  13393. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13394. as_fn_error "conditional \"AMDEP\" was never defined.
  13395. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13396. fi
  13397. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13398. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13399. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13400. fi
  13401. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13402. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13403. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13404. fi
  13405. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13406. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13407. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13408. fi
  13409. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13410. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13411. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13412. fi
  13413. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13414. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13415. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13416. fi
  13417. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13418. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13419. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13420. fi
  13421. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13422. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13423. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13424. fi
  13425. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13426. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13427. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13428. fi
  13429. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13430. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13431. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13432. fi
  13433. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13434. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13436. fi
  13437. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13438. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13439. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13440. fi
  13441. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13442. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13443. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13444. fi
  13445. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13446. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13447. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13448. fi
  13449. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13450. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13451. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13452. fi
  13453. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13454. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13455. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13456. fi
  13457. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13458. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13459. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13460. fi
  13461. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13462. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13463. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13464. fi
  13465. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13466. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13467. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13468. fi
  13469. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13470. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13471. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13472. fi
  13473. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13474. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13475. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13476. fi
  13477. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13478. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13479. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13480. fi
  13481. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13482. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13483. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13484. fi
  13485. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13486. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13487. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13488. fi
  13489. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13490. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13492. fi
  13493. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13494. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13495. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13496. fi
  13497. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13498. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13499. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13500. fi
  13501. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13502. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13503. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13504. fi
  13505. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13506. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13507. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13508. fi
  13509. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13510. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13512. fi
  13513. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13514. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13516. fi
  13517. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13518. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13519. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13520. fi
  13521. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13522. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13523. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13524. fi
  13525. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13526. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13527. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13528. fi
  13529. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13530. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13532. fi
  13533. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13534. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13536. fi
  13537. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13538. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13540. fi
  13541. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13542. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13543. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13544. fi
  13545. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13546. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13547. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13548. fi
  13549. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13550. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13551. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13552. fi
  13553. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13554. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13555. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13556. fi
  13557. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13558. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13559. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13560. fi
  13561. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13562. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13564. fi
  13565. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13566. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13568. fi
  13569. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13570. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13572. fi
  13573. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13574. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13576. fi
  13577. : ${CONFIG_STATUS=./config.status}
  13578. ac_write_fail=0
  13579. ac_clean_files_save=$ac_clean_files
  13580. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13582. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13583. as_write_fail=0
  13584. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13585. #! $SHELL
  13586. # Generated by $as_me.
  13587. # Run this file to recreate the current configuration.
  13588. # Compiler output produced by configure, useful for debugging
  13589. # configure, is in config.log if it exists.
  13590. debug=false
  13591. ac_cs_recheck=false
  13592. ac_cs_silent=false
  13593. SHELL=\${CONFIG_SHELL-$SHELL}
  13594. export SHELL
  13595. _ASEOF
  13596. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13597. ## -------------------- ##
  13598. ## M4sh Initialization. ##
  13599. ## -------------------- ##
  13600. # Be more Bourne compatible
  13601. DUALCASE=1; export DUALCASE # for MKS sh
  13602. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13603. emulate sh
  13604. NULLCMD=:
  13605. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13606. # is contrary to our usage. Disable this feature.
  13607. alias -g '${1+"$@"}'='"$@"'
  13608. setopt NO_GLOB_SUBST
  13609. else
  13610. case `(set -o) 2>/dev/null` in #(
  13611. *posix*) :
  13612. set -o posix ;; #(
  13613. *) :
  13614. ;;
  13615. esac
  13616. fi
  13617. as_nl='
  13618. '
  13619. export as_nl
  13620. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13621. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13622. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13623. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13624. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13625. # but without wasting forks for bash or zsh.
  13626. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13627. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13628. as_echo='print -r --'
  13629. as_echo_n='print -rn --'
  13630. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13631. as_echo='printf %s\n'
  13632. as_echo_n='printf %s'
  13633. else
  13634. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13635. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13636. as_echo_n='/usr/ucb/echo -n'
  13637. else
  13638. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13639. as_echo_n_body='eval
  13640. arg=$1;
  13641. case $arg in #(
  13642. *"$as_nl"*)
  13643. expr "X$arg" : "X\\(.*\\)$as_nl";
  13644. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13645. esac;
  13646. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13647. '
  13648. export as_echo_n_body
  13649. as_echo_n='sh -c $as_echo_n_body as_echo'
  13650. fi
  13651. export as_echo_body
  13652. as_echo='sh -c $as_echo_body as_echo'
  13653. fi
  13654. # The user is always right.
  13655. if test "${PATH_SEPARATOR+set}" != set; then
  13656. PATH_SEPARATOR=:
  13657. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13658. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13659. PATH_SEPARATOR=';'
  13660. }
  13661. fi
  13662. # IFS
  13663. # We need space, tab and new line, in precisely that order. Quoting is
  13664. # there to prevent editors from complaining about space-tab.
  13665. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13666. # splitting by setting IFS to empty value.)
  13667. IFS=" "" $as_nl"
  13668. # Find who we are. Look in the path if we contain no directory separator.
  13669. case $0 in #((
  13670. *[\\/]* ) as_myself=$0 ;;
  13671. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13672. for as_dir in $PATH
  13673. do
  13674. IFS=$as_save_IFS
  13675. test -z "$as_dir" && as_dir=.
  13676. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13677. done
  13678. IFS=$as_save_IFS
  13679. ;;
  13680. esac
  13681. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13682. # in which case we are not to be found in the path.
  13683. if test "x$as_myself" = x; then
  13684. as_myself=$0
  13685. fi
  13686. if test ! -f "$as_myself"; then
  13687. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13688. exit 1
  13689. fi
  13690. # Unset variables that we do not need and which cause bugs (e.g. in
  13691. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13692. # suppresses any "Segmentation fault" message there. '((' could
  13693. # trigger a bug in pdksh 5.2.14.
  13694. for as_var in BASH_ENV ENV MAIL MAILPATH
  13695. do eval test x\${$as_var+set} = xset \
  13696. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13697. done
  13698. PS1='$ '
  13699. PS2='> '
  13700. PS4='+ '
  13701. # NLS nuisances.
  13702. LC_ALL=C
  13703. export LC_ALL
  13704. LANGUAGE=C
  13705. export LANGUAGE
  13706. # CDPATH.
  13707. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13708. # as_fn_error ERROR [LINENO LOG_FD]
  13709. # ---------------------------------
  13710. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13711. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13712. # script with status $?, using 1 if that was 0.
  13713. as_fn_error ()
  13714. {
  13715. as_status=$?; test $as_status -eq 0 && as_status=1
  13716. if test "$3"; then
  13717. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13718. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13719. fi
  13720. $as_echo "$as_me: error: $1" >&2
  13721. as_fn_exit $as_status
  13722. } # as_fn_error
  13723. # as_fn_set_status STATUS
  13724. # -----------------------
  13725. # Set $? to STATUS, without forking.
  13726. as_fn_set_status ()
  13727. {
  13728. return $1
  13729. } # as_fn_set_status
  13730. # as_fn_exit STATUS
  13731. # -----------------
  13732. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13733. as_fn_exit ()
  13734. {
  13735. set +e
  13736. as_fn_set_status $1
  13737. exit $1
  13738. } # as_fn_exit
  13739. # as_fn_unset VAR
  13740. # ---------------
  13741. # Portably unset VAR.
  13742. as_fn_unset ()
  13743. {
  13744. { eval $1=; unset $1;}
  13745. }
  13746. as_unset=as_fn_unset
  13747. # as_fn_append VAR VALUE
  13748. # ----------------------
  13749. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13750. # advantage of any shell optimizations that allow amortized linear growth over
  13751. # repeated appends, instead of the typical quadratic growth present in naive
  13752. # implementations.
  13753. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13754. eval 'as_fn_append ()
  13755. {
  13756. eval $1+=\$2
  13757. }'
  13758. else
  13759. as_fn_append ()
  13760. {
  13761. eval $1=\$$1\$2
  13762. }
  13763. fi # as_fn_append
  13764. # as_fn_arith ARG...
  13765. # ------------------
  13766. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13767. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13768. # must be portable across $(()) and expr.
  13769. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13770. eval 'as_fn_arith ()
  13771. {
  13772. as_val=$(( $* ))
  13773. }'
  13774. else
  13775. as_fn_arith ()
  13776. {
  13777. as_val=`expr "$@" || test $? -eq 1`
  13778. }
  13779. fi # as_fn_arith
  13780. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13781. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13782. as_expr=expr
  13783. else
  13784. as_expr=false
  13785. fi
  13786. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13787. as_basename=basename
  13788. else
  13789. as_basename=false
  13790. fi
  13791. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13792. as_dirname=dirname
  13793. else
  13794. as_dirname=false
  13795. fi
  13796. as_me=`$as_basename -- "$0" ||
  13797. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13798. X"$0" : 'X\(//\)$' \| \
  13799. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13800. $as_echo X/"$0" |
  13801. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13802. s//\1/
  13803. q
  13804. }
  13805. /^X\/\(\/\/\)$/{
  13806. s//\1/
  13807. q
  13808. }
  13809. /^X\/\(\/\).*/{
  13810. s//\1/
  13811. q
  13812. }
  13813. s/.*/./; q'`
  13814. # Avoid depending upon Character Ranges.
  13815. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13816. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13817. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13818. as_cr_digits='0123456789'
  13819. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13820. ECHO_C= ECHO_N= ECHO_T=
  13821. case `echo -n x` in #(((((
  13822. -n*)
  13823. case `echo 'xy\c'` in
  13824. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13825. xy) ECHO_C='\c';;
  13826. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13827. ECHO_T=' ';;
  13828. esac;;
  13829. *)
  13830. ECHO_N='-n';;
  13831. esac
  13832. rm -f conf$$ conf$$.exe conf$$.file
  13833. if test -d conf$$.dir; then
  13834. rm -f conf$$.dir/conf$$.file
  13835. else
  13836. rm -f conf$$.dir
  13837. mkdir conf$$.dir 2>/dev/null
  13838. fi
  13839. if (echo >conf$$.file) 2>/dev/null; then
  13840. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13841. as_ln_s='ln -s'
  13842. # ... but there are two gotchas:
  13843. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13844. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13845. # In both cases, we have to default to `cp -p'.
  13846. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13847. as_ln_s='cp -p'
  13848. elif ln conf$$.file conf$$ 2>/dev/null; then
  13849. as_ln_s=ln
  13850. else
  13851. as_ln_s='cp -p'
  13852. fi
  13853. else
  13854. as_ln_s='cp -p'
  13855. fi
  13856. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13857. rmdir conf$$.dir 2>/dev/null
  13858. # as_fn_mkdir_p
  13859. # -------------
  13860. # Create "$as_dir" as a directory, including parents if necessary.
  13861. as_fn_mkdir_p ()
  13862. {
  13863. case $as_dir in #(
  13864. -*) as_dir=./$as_dir;;
  13865. esac
  13866. test -d "$as_dir" || eval $as_mkdir_p || {
  13867. as_dirs=
  13868. while :; do
  13869. case $as_dir in #(
  13870. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13871. *) as_qdir=$as_dir;;
  13872. esac
  13873. as_dirs="'$as_qdir' $as_dirs"
  13874. as_dir=`$as_dirname -- "$as_dir" ||
  13875. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13876. X"$as_dir" : 'X\(//\)[^/]' \| \
  13877. X"$as_dir" : 'X\(//\)$' \| \
  13878. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13879. $as_echo X"$as_dir" |
  13880. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13881. s//\1/
  13882. q
  13883. }
  13884. /^X\(\/\/\)[^/].*/{
  13885. s//\1/
  13886. q
  13887. }
  13888. /^X\(\/\/\)$/{
  13889. s//\1/
  13890. q
  13891. }
  13892. /^X\(\/\).*/{
  13893. s//\1/
  13894. q
  13895. }
  13896. s/.*/./; q'`
  13897. test -d "$as_dir" && break
  13898. done
  13899. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13900. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13901. } # as_fn_mkdir_p
  13902. if mkdir -p . 2>/dev/null; then
  13903. as_mkdir_p='mkdir -p "$as_dir"'
  13904. else
  13905. test -d ./-p && rmdir ./-p
  13906. as_mkdir_p=false
  13907. fi
  13908. if test -x / >/dev/null 2>&1; then
  13909. as_test_x='test -x'
  13910. else
  13911. if ls -dL / >/dev/null 2>&1; then
  13912. as_ls_L_option=L
  13913. else
  13914. as_ls_L_option=
  13915. fi
  13916. as_test_x='
  13917. eval sh -c '\''
  13918. if test -d "$1"; then
  13919. test -d "$1/.";
  13920. else
  13921. case $1 in #(
  13922. -*)set "./$1";;
  13923. esac;
  13924. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13925. ???[sx]*):;;*)false;;esac;fi
  13926. '\'' sh
  13927. '
  13928. fi
  13929. as_executable_p=$as_test_x
  13930. # Sed expression to map a string onto a valid CPP name.
  13931. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13932. # Sed expression to map a string onto a valid variable name.
  13933. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13934. exec 6>&1
  13935. ## ----------------------------------- ##
  13936. ## Main body of $CONFIG_STATUS script. ##
  13937. ## ----------------------------------- ##
  13938. _ASEOF
  13939. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13941. # Save the log message, to keep $0 and so on meaningful, and to
  13942. # report actual input values of CONFIG_FILES etc. instead of their
  13943. # values after options handling.
  13944. ac_log="
  13945. This file was extended by aria2 $as_me 1.9.1, which was
  13946. generated by GNU Autoconf 2.65. Invocation command line was
  13947. CONFIG_FILES = $CONFIG_FILES
  13948. CONFIG_HEADERS = $CONFIG_HEADERS
  13949. CONFIG_LINKS = $CONFIG_LINKS
  13950. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13951. $ $0 $@
  13952. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13953. "
  13954. _ACEOF
  13955. case $ac_config_files in *"
  13956. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13957. esac
  13958. case $ac_config_headers in *"
  13959. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13960. esac
  13961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13962. # Files that config.status was made for.
  13963. config_files="$ac_config_files"
  13964. config_headers="$ac_config_headers"
  13965. config_commands="$ac_config_commands"
  13966. _ACEOF
  13967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13968. ac_cs_usage="\
  13969. \`$as_me' instantiates files and other configuration actions
  13970. from templates according to the current configuration. Unless the files
  13971. and actions are specified as TAGs, all are instantiated by default.
  13972. Usage: $0 [OPTION]... [TAG]...
  13973. -h, --help print this help, then exit
  13974. -V, --version print version number and configuration settings, then exit
  13975. --config print configuration, then exit
  13976. -q, --quiet, --silent
  13977. do not print progress messages
  13978. -d, --debug don't remove temporary files
  13979. --recheck update $as_me by reconfiguring in the same conditions
  13980. --file=FILE[:TEMPLATE]
  13981. instantiate the configuration file FILE
  13982. --header=FILE[:TEMPLATE]
  13983. instantiate the configuration header FILE
  13984. Configuration files:
  13985. $config_files
  13986. Configuration headers:
  13987. $config_headers
  13988. Configuration commands:
  13989. $config_commands
  13990. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13991. aria2 home page: <http://aria2.sourceforge.net/>."
  13992. _ACEOF
  13993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13994. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13995. ac_cs_version="\\
  13996. aria2 config.status 1.9.1
  13997. configured by $0, generated by GNU Autoconf 2.65,
  13998. with options \\"\$ac_cs_config\\"
  13999. Copyright (C) 2009 Free Software Foundation, Inc.
  14000. This config.status script is free software; the Free Software Foundation
  14001. gives unlimited permission to copy, distribute and modify it."
  14002. ac_pwd='$ac_pwd'
  14003. srcdir='$srcdir'
  14004. INSTALL='$INSTALL'
  14005. MKDIR_P='$MKDIR_P'
  14006. AWK='$AWK'
  14007. test -n "\$AWK" || AWK=awk
  14008. _ACEOF
  14009. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14010. # The default lists apply if the user does not specify any file.
  14011. ac_need_defaults=:
  14012. while test $# != 0
  14013. do
  14014. case $1 in
  14015. --*=*)
  14016. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14017. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14018. ac_shift=:
  14019. ;;
  14020. *)
  14021. ac_option=$1
  14022. ac_optarg=$2
  14023. ac_shift=shift
  14024. ;;
  14025. esac
  14026. case $ac_option in
  14027. # Handling of the options.
  14028. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14029. ac_cs_recheck=: ;;
  14030. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14031. $as_echo "$ac_cs_version"; exit ;;
  14032. --config | --confi | --conf | --con | --co | --c )
  14033. $as_echo "$ac_cs_config"; exit ;;
  14034. --debug | --debu | --deb | --de | --d | -d )
  14035. debug=: ;;
  14036. --file | --fil | --fi | --f )
  14037. $ac_shift
  14038. case $ac_optarg in
  14039. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14040. esac
  14041. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14042. ac_need_defaults=false;;
  14043. --header | --heade | --head | --hea )
  14044. $ac_shift
  14045. case $ac_optarg in
  14046. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14047. esac
  14048. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14049. ac_need_defaults=false;;
  14050. --he | --h)
  14051. # Conflict between --help and --header
  14052. as_fn_error "ambiguous option: \`$1'
  14053. Try \`$0 --help' for more information.";;
  14054. --help | --hel | -h )
  14055. $as_echo "$ac_cs_usage"; exit ;;
  14056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14057. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14058. ac_cs_silent=: ;;
  14059. # This is an error.
  14060. -*) as_fn_error "unrecognized option: \`$1'
  14061. Try \`$0 --help' for more information." ;;
  14062. *) as_fn_append ac_config_targets " $1"
  14063. ac_need_defaults=false ;;
  14064. esac
  14065. shift
  14066. done
  14067. ac_configure_extra_args=
  14068. if $ac_cs_silent; then
  14069. exec 6>/dev/null
  14070. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14071. fi
  14072. _ACEOF
  14073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14074. if \$ac_cs_recheck; then
  14075. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14076. shift
  14077. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14078. CONFIG_SHELL='$SHELL'
  14079. export CONFIG_SHELL
  14080. exec "\$@"
  14081. fi
  14082. _ACEOF
  14083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14084. exec 5>>config.log
  14085. {
  14086. echo
  14087. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14088. ## Running $as_me. ##
  14089. _ASBOX
  14090. $as_echo "$ac_log"
  14091. } >&5
  14092. _ACEOF
  14093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14094. #
  14095. # INIT-COMMANDS
  14096. #
  14097. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14098. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14099. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14100. # from automake < 1.5.
  14101. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14102. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14103. LINGUAS="${LINGUAS-%UNSET%}"
  14104. _ACEOF
  14105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14106. # Handling of arguments.
  14107. for ac_config_target in $ac_config_targets
  14108. do
  14109. case $ac_config_target in
  14110. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14111. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14112. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14113. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14114. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14115. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14116. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14117. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14118. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14119. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14120. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14121. esac
  14122. done
  14123. # If the user did not use the arguments to specify the items to instantiate,
  14124. # then the envvar interface is used. Set only those that are not.
  14125. # We use the long form for the default assignment because of an extremely
  14126. # bizarre bug on SunOS 4.1.3.
  14127. if $ac_need_defaults; then
  14128. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14129. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14130. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14131. fi
  14132. # Have a temporary directory for convenience. Make it in the build tree
  14133. # simply because there is no reason against having it here, and in addition,
  14134. # creating and moving files from /tmp can sometimes cause problems.
  14135. # Hook for its removal unless debugging.
  14136. # Note that there is a small window in which the directory will not be cleaned:
  14137. # after its creation but before its name has been assigned to `$tmp'.
  14138. $debug ||
  14139. {
  14140. tmp=
  14141. trap 'exit_status=$?
  14142. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14143. ' 0
  14144. trap 'as_fn_exit 1' 1 2 13 15
  14145. }
  14146. # Create a (secure) tmp directory for tmp files.
  14147. {
  14148. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14149. test -n "$tmp" && test -d "$tmp"
  14150. } ||
  14151. {
  14152. tmp=./conf$$-$RANDOM
  14153. (umask 077 && mkdir "$tmp")
  14154. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14155. # Set up the scripts for CONFIG_FILES section.
  14156. # No need to generate them if there are no CONFIG_FILES.
  14157. # This happens for instance with `./config.status config.h'.
  14158. if test -n "$CONFIG_FILES"; then
  14159. ac_cr=`echo X | tr X '\015'`
  14160. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14161. # But we know of no other shell where ac_cr would be empty at this
  14162. # point, so we can use a bashism as a fallback.
  14163. if test "x$ac_cr" = x; then
  14164. eval ac_cr=\$\'\\r\'
  14165. fi
  14166. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14167. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14168. ac_cs_awk_cr='\r'
  14169. else
  14170. ac_cs_awk_cr=$ac_cr
  14171. fi
  14172. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14173. _ACEOF
  14174. {
  14175. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14176. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14177. echo "_ACEOF"
  14178. } >conf$$subs.sh ||
  14179. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14180. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14181. ac_delim='%!_!# '
  14182. for ac_last_try in false false false false false :; do
  14183. . ./conf$$subs.sh ||
  14184. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14185. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14186. if test $ac_delim_n = $ac_delim_num; then
  14187. break
  14188. elif $ac_last_try; then
  14189. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14190. else
  14191. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14192. fi
  14193. done
  14194. rm -f conf$$subs.sh
  14195. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14196. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14197. _ACEOF
  14198. sed -n '
  14199. h
  14200. s/^/S["/; s/!.*/"]=/
  14201. p
  14202. g
  14203. s/^[^!]*!//
  14204. :repl
  14205. t repl
  14206. s/'"$ac_delim"'$//
  14207. t delim
  14208. :nl
  14209. h
  14210. s/\(.\{148\}\)..*/\1/
  14211. t more1
  14212. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14213. p
  14214. n
  14215. b repl
  14216. :more1
  14217. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14218. p
  14219. g
  14220. s/.\{148\}//
  14221. t nl
  14222. :delim
  14223. h
  14224. s/\(.\{148\}\)..*/\1/
  14225. t more2
  14226. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14227. p
  14228. b
  14229. :more2
  14230. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14231. p
  14232. g
  14233. s/.\{148\}//
  14234. t delim
  14235. ' <conf$$subs.awk | sed '
  14236. /^[^""]/{
  14237. N
  14238. s/\n//
  14239. }
  14240. ' >>$CONFIG_STATUS || ac_write_fail=1
  14241. rm -f conf$$subs.awk
  14242. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14243. _ACAWK
  14244. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14245. for (key in S) S_is_set[key] = 1
  14246. FS = ""
  14247. }
  14248. {
  14249. line = $ 0
  14250. nfields = split(line, field, "@")
  14251. substed = 0
  14252. len = length(field[1])
  14253. for (i = 2; i < nfields; i++) {
  14254. key = field[i]
  14255. keylen = length(key)
  14256. if (S_is_set[key]) {
  14257. value = S[key]
  14258. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14259. len += length(value) + length(field[++i])
  14260. substed = 1
  14261. } else
  14262. len += 1 + keylen
  14263. }
  14264. print line
  14265. }
  14266. _ACAWK
  14267. _ACEOF
  14268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14269. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14270. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14271. else
  14272. cat
  14273. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14274. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14275. _ACEOF
  14276. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14277. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14278. # trailing colons and then remove the whole line if VPATH becomes empty
  14279. # (actually we leave an empty line to preserve line numbers).
  14280. if test "x$srcdir" = x.; then
  14281. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14282. s/:*\$(srcdir):*/:/
  14283. s/:*\${srcdir}:*/:/
  14284. s/:*@srcdir@:*/:/
  14285. s/^\([^=]*=[ ]*\):*/\1/
  14286. s/:*$//
  14287. s/^[^=]*=[ ]*$//
  14288. }'
  14289. fi
  14290. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14291. fi # test -n "$CONFIG_FILES"
  14292. # Set up the scripts for CONFIG_HEADERS section.
  14293. # No need to generate them if there are no CONFIG_HEADERS.
  14294. # This happens for instance with `./config.status Makefile'.
  14295. if test -n "$CONFIG_HEADERS"; then
  14296. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14297. BEGIN {
  14298. _ACEOF
  14299. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14300. # here-document in config.status, that substitutes the proper values into
  14301. # config.h.in to produce config.h.
  14302. # Create a delimiter string that does not exist in confdefs.h, to ease
  14303. # handling of long lines.
  14304. ac_delim='%!_!# '
  14305. for ac_last_try in false false :; do
  14306. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14307. if test -z "$ac_t"; then
  14308. break
  14309. elif $ac_last_try; then
  14310. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14311. else
  14312. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14313. fi
  14314. done
  14315. # For the awk script, D is an array of macro values keyed by name,
  14316. # likewise P contains macro parameters if any. Preserve backslash
  14317. # newline sequences.
  14318. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14319. sed -n '
  14320. s/.\{148\}/&'"$ac_delim"'/g
  14321. t rset
  14322. :rset
  14323. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14324. t def
  14325. d
  14326. :def
  14327. s/\\$//
  14328. t bsnl
  14329. s/["\\]/\\&/g
  14330. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14331. D["\1"]=" \3"/p
  14332. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14333. d
  14334. :bsnl
  14335. s/["\\]/\\&/g
  14336. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14337. D["\1"]=" \3\\\\\\n"\\/p
  14338. t cont
  14339. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14340. t cont
  14341. d
  14342. :cont
  14343. n
  14344. s/.\{148\}/&'"$ac_delim"'/g
  14345. t clear
  14346. :clear
  14347. s/\\$//
  14348. t bsnlc
  14349. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14350. d
  14351. :bsnlc
  14352. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14353. b cont
  14354. ' <confdefs.h | sed '
  14355. s/'"$ac_delim"'/"\\\
  14356. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14357. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14358. for (key in D) D_is_set[key] = 1
  14359. FS = ""
  14360. }
  14361. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14362. line = \$ 0
  14363. split(line, arg, " ")
  14364. if (arg[1] == "#") {
  14365. defundef = arg[2]
  14366. mac1 = arg[3]
  14367. } else {
  14368. defundef = substr(arg[1], 2)
  14369. mac1 = arg[2]
  14370. }
  14371. split(mac1, mac2, "(") #)
  14372. macro = mac2[1]
  14373. prefix = substr(line, 1, index(line, defundef) - 1)
  14374. if (D_is_set[macro]) {
  14375. # Preserve the white space surrounding the "#".
  14376. print prefix "define", macro P[macro] D[macro]
  14377. next
  14378. } else {
  14379. # Replace #undef with comments. This is necessary, for example,
  14380. # in the case of _POSIX_SOURCE, which is predefined and required
  14381. # on some systems where configure will not decide to define it.
  14382. if (defundef == "undef") {
  14383. print "/*", prefix defundef, macro, "*/"
  14384. next
  14385. }
  14386. }
  14387. }
  14388. { print }
  14389. _ACAWK
  14390. _ACEOF
  14391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14392. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14393. fi # test -n "$CONFIG_HEADERS"
  14394. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14395. shift
  14396. for ac_tag
  14397. do
  14398. case $ac_tag in
  14399. :[FHLC]) ac_mode=$ac_tag; continue;;
  14400. esac
  14401. case $ac_mode$ac_tag in
  14402. :[FHL]*:*);;
  14403. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14404. :[FH]-) ac_tag=-:-;;
  14405. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14406. esac
  14407. ac_save_IFS=$IFS
  14408. IFS=:
  14409. set x $ac_tag
  14410. IFS=$ac_save_IFS
  14411. shift
  14412. ac_file=$1
  14413. shift
  14414. case $ac_mode in
  14415. :L) ac_source=$1;;
  14416. :[FH])
  14417. ac_file_inputs=
  14418. for ac_f
  14419. do
  14420. case $ac_f in
  14421. -) ac_f="$tmp/stdin";;
  14422. *) # Look for the file first in the build tree, then in the source tree
  14423. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14424. # because $ac_f cannot contain `:'.
  14425. test -f "$ac_f" ||
  14426. case $ac_f in
  14427. [\\/$]*) false;;
  14428. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14429. esac ||
  14430. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14431. esac
  14432. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14433. as_fn_append ac_file_inputs " '$ac_f'"
  14434. done
  14435. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14436. # use $as_me), people would be surprised to read:
  14437. # /* config.h. Generated by config.status. */
  14438. configure_input='Generated from '`
  14439. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14440. `' by configure.'
  14441. if test x"$ac_file" != x-; then
  14442. configure_input="$ac_file. $configure_input"
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14444. $as_echo "$as_me: creating $ac_file" >&6;}
  14445. fi
  14446. # Neutralize special characters interpreted by sed in replacement strings.
  14447. case $configure_input in #(
  14448. *\&* | *\|* | *\\* )
  14449. ac_sed_conf_input=`$as_echo "$configure_input" |
  14450. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14451. *) ac_sed_conf_input=$configure_input;;
  14452. esac
  14453. case $ac_tag in
  14454. *:-:* | *:-) cat >"$tmp/stdin" \
  14455. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14456. esac
  14457. ;;
  14458. esac
  14459. ac_dir=`$as_dirname -- "$ac_file" ||
  14460. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14461. X"$ac_file" : 'X\(//\)[^/]' \| \
  14462. X"$ac_file" : 'X\(//\)$' \| \
  14463. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14464. $as_echo X"$ac_file" |
  14465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14466. s//\1/
  14467. q
  14468. }
  14469. /^X\(\/\/\)[^/].*/{
  14470. s//\1/
  14471. q
  14472. }
  14473. /^X\(\/\/\)$/{
  14474. s//\1/
  14475. q
  14476. }
  14477. /^X\(\/\).*/{
  14478. s//\1/
  14479. q
  14480. }
  14481. s/.*/./; q'`
  14482. as_dir="$ac_dir"; as_fn_mkdir_p
  14483. ac_builddir=.
  14484. case "$ac_dir" in
  14485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14486. *)
  14487. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14488. # A ".." for each directory in $ac_dir_suffix.
  14489. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14490. case $ac_top_builddir_sub in
  14491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14493. esac ;;
  14494. esac
  14495. ac_abs_top_builddir=$ac_pwd
  14496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14497. # for backward compatibility:
  14498. ac_top_builddir=$ac_top_build_prefix
  14499. case $srcdir in
  14500. .) # We are building in place.
  14501. ac_srcdir=.
  14502. ac_top_srcdir=$ac_top_builddir_sub
  14503. ac_abs_top_srcdir=$ac_pwd ;;
  14504. [\\/]* | ?:[\\/]* ) # Absolute name.
  14505. ac_srcdir=$srcdir$ac_dir_suffix;
  14506. ac_top_srcdir=$srcdir
  14507. ac_abs_top_srcdir=$srcdir ;;
  14508. *) # Relative name.
  14509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14512. esac
  14513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14514. case $ac_mode in
  14515. :F)
  14516. #
  14517. # CONFIG_FILE
  14518. #
  14519. case $INSTALL in
  14520. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14521. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14522. esac
  14523. ac_MKDIR_P=$MKDIR_P
  14524. case $MKDIR_P in
  14525. [\\/$]* | ?:[\\/]* ) ;;
  14526. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14527. esac
  14528. _ACEOF
  14529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14530. # If the template does not know about datarootdir, expand it.
  14531. # FIXME: This hack should be removed a few years after 2.60.
  14532. ac_datarootdir_hack=; ac_datarootdir_seen=
  14533. ac_sed_dataroot='
  14534. /datarootdir/ {
  14535. p
  14536. q
  14537. }
  14538. /@datadir@/p
  14539. /@docdir@/p
  14540. /@infodir@/p
  14541. /@localedir@/p
  14542. /@mandir@/p'
  14543. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14544. *datarootdir*) ac_datarootdir_seen=yes;;
  14545. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14547. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14548. _ACEOF
  14549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14550. ac_datarootdir_hack='
  14551. s&@datadir@&$datadir&g
  14552. s&@docdir@&$docdir&g
  14553. s&@infodir@&$infodir&g
  14554. s&@localedir@&$localedir&g
  14555. s&@mandir@&$mandir&g
  14556. s&\\\${datarootdir}&$datarootdir&g' ;;
  14557. esac
  14558. _ACEOF
  14559. # Neutralize VPATH when `$srcdir' = `.'.
  14560. # Shell code in configure.ac might set extrasub.
  14561. # FIXME: do we really want to maintain this feature?
  14562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14563. ac_sed_extra="$ac_vpsub
  14564. $extrasub
  14565. _ACEOF
  14566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14567. :t
  14568. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14569. s|@configure_input@|$ac_sed_conf_input|;t t
  14570. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14571. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14572. s&@srcdir@&$ac_srcdir&;t t
  14573. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14574. s&@top_srcdir@&$ac_top_srcdir&;t t
  14575. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14576. s&@builddir@&$ac_builddir&;t t
  14577. s&@abs_builddir@&$ac_abs_builddir&;t t
  14578. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14579. s&@INSTALL@&$ac_INSTALL&;t t
  14580. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14581. $ac_datarootdir_hack
  14582. "
  14583. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14584. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14585. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14586. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14587. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14589. which seems to be undefined. Please make sure it is defined." >&5
  14590. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14591. which seems to be undefined. Please make sure it is defined." >&2;}
  14592. rm -f "$tmp/stdin"
  14593. case $ac_file in
  14594. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14595. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14596. esac \
  14597. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14598. ;;
  14599. :H)
  14600. #
  14601. # CONFIG_HEADER
  14602. #
  14603. if test x"$ac_file" != x-; then
  14604. {
  14605. $as_echo "/* $configure_input */" \
  14606. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14607. } >"$tmp/config.h" \
  14608. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14609. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14611. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14612. else
  14613. rm -f "$ac_file"
  14614. mv "$tmp/config.h" "$ac_file" \
  14615. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14616. fi
  14617. else
  14618. $as_echo "/* $configure_input */" \
  14619. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14620. || as_fn_error "could not create -" "$LINENO" 5
  14621. fi
  14622. # Compute "$ac_file"'s index in $config_headers.
  14623. _am_arg="$ac_file"
  14624. _am_stamp_count=1
  14625. for _am_header in $config_headers :; do
  14626. case $_am_header in
  14627. $_am_arg | $_am_arg:* )
  14628. break ;;
  14629. * )
  14630. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14631. esac
  14632. done
  14633. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14634. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14635. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14636. X"$_am_arg" : 'X\(//\)$' \| \
  14637. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14638. $as_echo X"$_am_arg" |
  14639. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14640. s//\1/
  14641. q
  14642. }
  14643. /^X\(\/\/\)[^/].*/{
  14644. s//\1/
  14645. q
  14646. }
  14647. /^X\(\/\/\)$/{
  14648. s//\1/
  14649. q
  14650. }
  14651. /^X\(\/\).*/{
  14652. s//\1/
  14653. q
  14654. }
  14655. s/.*/./; q'`/stamp-h$_am_stamp_count
  14656. ;;
  14657. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14658. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14659. ;;
  14660. esac
  14661. case $ac_file$ac_mode in
  14662. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14663. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14664. # are listed without --file. Let's play safe and only enable the eval
  14665. # if we detect the quoting.
  14666. case $CONFIG_FILES in
  14667. *\'*) eval set x "$CONFIG_FILES" ;;
  14668. *) set x $CONFIG_FILES ;;
  14669. esac
  14670. shift
  14671. for mf
  14672. do
  14673. # Strip MF so we end up with the name of the file.
  14674. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14675. # Check whether this is an Automake generated Makefile or not.
  14676. # We used to match only the files named `Makefile.in', but
  14677. # some people rename them; so instead we look at the file content.
  14678. # Grep'ing the first line is not enough: some people post-process
  14679. # each Makefile.in and add a new line on top of each file to say so.
  14680. # Grep'ing the whole file is not good either: AIX grep has a line
  14681. # limit of 2048, but all sed's we know have understand at least 4000.
  14682. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14683. dirpart=`$as_dirname -- "$mf" ||
  14684. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14685. X"$mf" : 'X\(//\)[^/]' \| \
  14686. X"$mf" : 'X\(//\)$' \| \
  14687. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14688. $as_echo X"$mf" |
  14689. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14690. s//\1/
  14691. q
  14692. }
  14693. /^X\(\/\/\)[^/].*/{
  14694. s//\1/
  14695. q
  14696. }
  14697. /^X\(\/\/\)$/{
  14698. s//\1/
  14699. q
  14700. }
  14701. /^X\(\/\).*/{
  14702. s//\1/
  14703. q
  14704. }
  14705. s/.*/./; q'`
  14706. else
  14707. continue
  14708. fi
  14709. # Extract the definition of DEPDIR, am__include, and am__quote
  14710. # from the Makefile without running `make'.
  14711. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14712. test -z "$DEPDIR" && continue
  14713. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14714. test -z "am__include" && continue
  14715. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14716. # When using ansi2knr, U may be empty or an underscore; expand it
  14717. U=`sed -n 's/^U = //p' < "$mf"`
  14718. # Find all dependency output files, they are included files with
  14719. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14720. # simplest approach to changing $(DEPDIR) to its actual value in the
  14721. # expansion.
  14722. for file in `sed -n "
  14723. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14724. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14725. # Make sure the directory exists.
  14726. test -f "$dirpart/$file" && continue
  14727. fdir=`$as_dirname -- "$file" ||
  14728. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14729. X"$file" : 'X\(//\)[^/]' \| \
  14730. X"$file" : 'X\(//\)$' \| \
  14731. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14732. $as_echo X"$file" |
  14733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14734. s//\1/
  14735. q
  14736. }
  14737. /^X\(\/\/\)[^/].*/{
  14738. s//\1/
  14739. q
  14740. }
  14741. /^X\(\/\/\)$/{
  14742. s//\1/
  14743. q
  14744. }
  14745. /^X\(\/\).*/{
  14746. s//\1/
  14747. q
  14748. }
  14749. s/.*/./; q'`
  14750. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14751. # echo "creating $dirpart/$file"
  14752. echo '# dummy' > "$dirpart/$file"
  14753. done
  14754. done
  14755. }
  14756. ;;
  14757. "po-directories":C)
  14758. for ac_file in $CONFIG_FILES; do
  14759. # Support "outfile[:infile[:infile...]]"
  14760. case "$ac_file" in
  14761. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14762. esac
  14763. # PO directories have a Makefile.in generated from Makefile.in.in.
  14764. case "$ac_file" in */Makefile.in)
  14765. # Adjust a relative srcdir.
  14766. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14767. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14768. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14769. # In autoconf-2.13 it is called $ac_given_srcdir.
  14770. # In autoconf-2.50 it is called $srcdir.
  14771. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14772. case "$ac_given_srcdir" in
  14773. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14774. /*) top_srcdir="$ac_given_srcdir" ;;
  14775. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14776. esac
  14777. # Treat a directory as a PO directory if and only if it has a
  14778. # POTFILES.in file. This allows packages to have multiple PO
  14779. # directories under different names or in different locations.
  14780. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14781. rm -f "$ac_dir/POTFILES"
  14782. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14783. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14784. POMAKEFILEDEPS="POTFILES.in"
  14785. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14786. # on $ac_dir but don't depend on user-specified configuration
  14787. # parameters.
  14788. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14789. # The LINGUAS file contains the set of available languages.
  14790. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14791. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14792. fi
  14793. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14794. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14795. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14796. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14797. else
  14798. # The set of available languages was given in configure.in.
  14799. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14800. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14801. fi
  14802. # Compute POFILES
  14803. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14804. # Compute UPDATEPOFILES
  14805. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14806. # Compute DUMMYPOFILES
  14807. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14808. # Compute GMOFILES
  14809. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14810. case "$ac_given_srcdir" in
  14811. .) srcdirpre= ;;
  14812. *) srcdirpre='$(srcdir)/' ;;
  14813. esac
  14814. POFILES=
  14815. UPDATEPOFILES=
  14816. DUMMYPOFILES=
  14817. GMOFILES=
  14818. for lang in $ALL_LINGUAS; do
  14819. POFILES="$POFILES $srcdirpre$lang.po"
  14820. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14821. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14822. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14823. done
  14824. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14825. # environment variable.
  14826. INST_LINGUAS=
  14827. if test -n "$ALL_LINGUAS"; then
  14828. for presentlang in $ALL_LINGUAS; do
  14829. useit=no
  14830. if test "%UNSET%" != "$LINGUAS"; then
  14831. desiredlanguages="$LINGUAS"
  14832. else
  14833. desiredlanguages="$ALL_LINGUAS"
  14834. fi
  14835. for desiredlang in $desiredlanguages; do
  14836. # Use the presentlang catalog if desiredlang is
  14837. # a. equal to presentlang, or
  14838. # b. a variant of presentlang (because in this case,
  14839. # presentlang can be used as a fallback for messages
  14840. # which are not translated in the desiredlang catalog).
  14841. case "$desiredlang" in
  14842. "$presentlang"*) useit=yes;;
  14843. esac
  14844. done
  14845. if test $useit = yes; then
  14846. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14847. fi
  14848. done
  14849. fi
  14850. CATALOGS=
  14851. if test -n "$INST_LINGUAS"; then
  14852. for lang in $INST_LINGUAS; do
  14853. CATALOGS="$CATALOGS $lang.gmo"
  14854. done
  14855. fi
  14856. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14857. 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"
  14858. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14859. if test -f "$f"; then
  14860. case "$f" in
  14861. *.orig | *.bak | *~) ;;
  14862. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14863. esac
  14864. fi
  14865. done
  14866. fi
  14867. ;;
  14868. esac
  14869. done ;;
  14870. esac
  14871. done # for ac_tag
  14872. as_fn_exit 0
  14873. _ACEOF
  14874. ac_clean_files=$ac_clean_files_save
  14875. test $ac_write_fail = 0 ||
  14876. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14877. # configure is writing to config.log, and then calls config.status.
  14878. # config.status does its own redirection, appending to config.log.
  14879. # Unfortunately, on DOS this fails, as config.log is still kept open
  14880. # by configure, so config.status won't be able to write to it; its
  14881. # output is simply discarded. So we exec the FD to /dev/null,
  14882. # effectively closing config.log, so it can be properly (re)opened and
  14883. # appended to by config.status. When coming back to configure, we
  14884. # need to make the FD available again.
  14885. if test "$no_create" != yes; then
  14886. ac_cs_success=:
  14887. ac_config_status_args=
  14888. test "$silent" = yes &&
  14889. ac_config_status_args="$ac_config_status_args --quiet"
  14890. exec 5>/dev/null
  14891. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14892. exec 5>>config.log
  14893. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14894. # would make configure fail if this is the last instruction.
  14895. $ac_cs_success || as_fn_exit $?
  14896. fi
  14897. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14899. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14900. fi
  14901. echo " "
  14902. echo "Build: $build"
  14903. echo "Target: $target"
  14904. echo "Install prefix: $prefix"
  14905. echo "CXXFLAGS: $CXXFLAGS"
  14906. echo "CFLAGS: $CFLAGS"
  14907. echo "CPPFLAGS: $CPPFLAGS"
  14908. echo "LDFLAGS: $LDFLAGS"
  14909. echo "LIBS: $LIBS"
  14910. echo "SQLite3: $have_sqlite3"
  14911. echo "GnuTLS: $have_libgnutls"
  14912. echo "OpenSSL: $have_openssl"
  14913. echo "CA Bundle: $ca_bundle"
  14914. echo "LibXML2: $have_libxml2"
  14915. echo "LibExpat: $have_libexpat"
  14916. echo "LibCares: $have_libcares"
  14917. echo "Libz: $have_libz"
  14918. echo "Epoll: $have_epoll"
  14919. echo "Bittorrent: $enable_bittorrent"
  14920. echo "Metalink: $enable_metalink"
  14921. echo "XML-RPC: $enable_xml_rpc"