configure 473 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747
  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_DAEMON_FALSE
  555. HAVE_DAEMON_TRUE
  556. HAVE_TIMEGM_FALSE
  557. HAVE_TIMEGM_TRUE
  558. HAVE_STRPTIME_FALSE
  559. HAVE_STRPTIME_TRUE
  560. HAVE_LOCALTIME_R_FALSE
  561. HAVE_LOCALTIME_R_TRUE
  562. HAVE_INET_ATON_FALSE
  563. HAVE_INET_ATON_TRUE
  564. HAVE_GETTIMEOFDAY_FALSE
  565. HAVE_GETTIMEOFDAY_TRUE
  566. HAVE_GETADDRINFO_FALSE
  567. HAVE_GETADDRINFO_TRUE
  568. HAVE_GAI_STRERROR_FALSE
  569. HAVE_GAI_STRERROR_TRUE
  570. HAVE_BASENAME_FALSE
  571. HAVE_BASENAME_TRUE
  572. HAVE_ASCTIME_R_FALSE
  573. HAVE_ASCTIME_R_TRUE
  574. HAVE_POSIX_FALLOCATE_FALSE
  575. HAVE_POSIX_FALLOCATE_TRUE
  576. HAVE_EPOLL_FALSE
  577. HAVE_EPOLL_TRUE
  578. POW_LIB
  579. LIBOBJS
  580. POSUB
  581. LTLIBINTL
  582. LIBINTL
  583. INTLLIBS
  584. INTL_LIBTOOL_SUFFIX_PREFIX
  585. INTLOBJS
  586. GENCAT
  587. INSTOBJEXT
  588. DATADIRNAME
  589. CATOBJEXT
  590. USE_INCLUDED_LIBINTL
  591. BUILD_INCLUDED_LIBINTL
  592. LTLIBC
  593. WINDRES
  594. WOE32
  595. WOE32DLL
  596. HAVE_WPRINTF
  597. HAVE_SNPRINTF
  598. HAVE_ASPRINTF
  599. HAVE_POSIX_PRINTF
  600. INTL_MACOSX_LIBS
  601. GLIBC21
  602. INTLBISON
  603. LTLIBICONV
  604. LIBICONV
  605. LTLIBMULTITHREAD
  606. LIBMULTITHREAD
  607. LTLIBTHREAD
  608. LIBTHREAD
  609. LIBPTH_PREFIX
  610. LTLIBPTH
  611. LIBPTH
  612. PRI_MACROS_BROKEN
  613. HAVE_VISIBILITY
  614. CFLAG_VISIBILITY
  615. GLIBC2
  616. XGETTEXT_EXTRA_OPTIONS
  617. MSGMERGE
  618. XGETTEXT_015
  619. XGETTEXT
  620. GMSGFMT_015
  621. MSGFMT_015
  622. GMSGFMT
  623. MSGFMT
  624. GETTEXT_MACRO_VERSION
  625. USE_NLS
  626. ALLOCA
  627. HAVE_SQLITE3_FALSE
  628. HAVE_SQLITE3_TRUE
  629. HAVE_LIBZ_FALSE
  630. HAVE_LIBZ_TRUE
  631. ENABLE_ASYNC_DNS_FALSE
  632. ENABLE_ASYNC_DNS_TRUE
  633. HAVE_LIBEXPAT_FALSE
  634. HAVE_LIBEXPAT_TRUE
  635. HAVE_LIBXML2_FALSE
  636. HAVE_LIBXML2_TRUE
  637. ENABLE_XML_RPC_FALSE
  638. ENABLE_XML_RPC_TRUE
  639. ENABLE_METALINK_LIBEXPAT_FALSE
  640. ENABLE_METALINK_LIBEXPAT_TRUE
  641. ENABLE_METALINK_LIBXML2_FALSE
  642. ENABLE_METALINK_LIBXML2_TRUE
  643. ENABLE_METALINK_FALSE
  644. ENABLE_METALINK_TRUE
  645. ENABLE_BITTORRENT_FALSE
  646. ENABLE_BITTORRENT_TRUE
  647. ENABLE_MESSAGE_DIGEST_FALSE
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. HAVE_LIBSSL_FALSE
  650. HAVE_LIBSSL_TRUE
  651. HAVE_LIBGNUTLS_FALSE
  652. HAVE_LIBGNUTLS_TRUE
  653. ca_bundle
  654. ENABLE_SSL_FALSE
  655. ENABLE_SSL_TRUE
  656. LIBZ_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBCARES_CPPFLAGS
  659. LIBCARES_LIBS
  660. OPENSSL_CFLAGS
  661. OPENSSL_LIBS
  662. LIBGCRYPT_LIBS
  663. LIBGCRYPT_CFLAGS
  664. LIBGCRYPT_CONFIG
  665. LIBGNUTLS_CONFIG
  666. LIBGNUTLS_LIBS
  667. LIBGNUTLS_CFLAGS
  668. SQLITE3_LIBS
  669. SQLITE3_CFLAGS
  670. LIBEXPAT_CPPFLAGS
  671. LIBEXPAT_LIBS
  672. XML_LIBS
  673. XML_CPPFLAGS
  674. XML2_CONFIG
  675. PKG_CONFIG
  676. EGREP
  677. GREP
  678. CXXCPP
  679. YFLAGS
  680. YACC
  681. RANLIB
  682. am__fastdepCC_FALSE
  683. am__fastdepCC_TRUE
  684. CCDEPMODE
  685. ac_ct_CC
  686. CFLAGS
  687. CC
  688. am__fastdepCXX_FALSE
  689. am__fastdepCXX_TRUE
  690. CXXDEPMODE
  691. AMDEPBACKSLASH
  692. AMDEP_FALSE
  693. AMDEP_TRUE
  694. am__quote
  695. am__include
  696. DEPDIR
  697. OBJEXT
  698. EXEEXT
  699. ac_ct_CXX
  700. CPPFLAGS
  701. LDFLAGS
  702. CXXFLAGS
  703. CXX
  704. WINSOCK_LIBS
  705. CPPUNIT_LIBS
  706. CPPUNIT_CFLAGS
  707. CPPUNIT_CONFIG
  708. am__untar
  709. am__tar
  710. AMTAR
  711. am__leading_dot
  712. SET_MAKE
  713. AWK
  714. mkdir_p
  715. MKDIR_P
  716. INSTALL_STRIP_PROGRAM
  717. STRIP
  718. install_sh
  719. MAKEINFO
  720. AUTOHEADER
  721. AUTOMAKE
  722. AUTOCONF
  723. ACLOCAL
  724. VERSION
  725. PACKAGE
  726. CYGPATH_W
  727. am__isrc
  728. INSTALL_DATA
  729. INSTALL_SCRIPT
  730. INSTALL_PROGRAM
  731. target_os
  732. target_vendor
  733. target_cpu
  734. target
  735. host_os
  736. host_vendor
  737. host_cpu
  738. host
  739. build_os
  740. build_vendor
  741. build_cpu
  742. build
  743. target_alias
  744. host_alias
  745. build_alias
  746. LIBS
  747. ECHO_T
  748. ECHO_N
  749. ECHO_C
  750. DEFS
  751. mandir
  752. localedir
  753. libdir
  754. psdir
  755. pdfdir
  756. dvidir
  757. htmldir
  758. infodir
  759. docdir
  760. oldincludedir
  761. includedir
  762. localstatedir
  763. sharedstatedir
  764. sysconfdir
  765. datadir
  766. datarootdir
  767. libexecdir
  768. sbindir
  769. bindir
  770. program_transform_name
  771. prefix
  772. exec_prefix
  773. PACKAGE_URL
  774. PACKAGE_BUGREPORT
  775. PACKAGE_STRING
  776. PACKAGE_VERSION
  777. PACKAGE_TARNAME
  778. PACKAGE_NAME
  779. PATH_SEPARATOR
  780. SHELL'
  781. ac_subst_files=''
  782. ac_user_opts='
  783. enable_option_checking
  784. with_cppunit_prefix
  785. with_cppunit_exec_prefix
  786. with_gnutls
  787. with_openssl
  788. with_sqlite3
  789. with_libxml2
  790. with_libexpat
  791. with_libcares
  792. with_libz
  793. enable_bittorrent
  794. enable_metalink
  795. enable_epoll
  796. with_ca_bundle
  797. enable_dependency_tracking
  798. with_xml_prefix
  799. with_xml_exec_prefix
  800. enable_xmltest
  801. with_libexpat_prefix
  802. with_sqlite3_prefix
  803. with_libgnutls_prefix
  804. with_libgcrypt_prefix
  805. with_openssl_prefix
  806. with_libcares_prefix
  807. with_libz_prefix
  808. enable_largefile
  809. enable_nls
  810. enable_threads
  811. with_gnu_ld
  812. enable_rpath
  813. with_libpth_prefix
  814. with_libiconv_prefix
  815. with_included_gettext
  816. with_libintl_prefix
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CXX
  822. CXXFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CCC
  827. CC
  828. CFLAGS
  829. YACC
  830. YFLAGS
  831. CXXCPP
  832. PKG_CONFIG
  833. SQLITE3_CFLAGS
  834. SQLITE3_LIBS
  835. LIBGNUTLS_CFLAGS
  836. LIBGNUTLS_LIBS'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information."
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1230. If a cross compiler is detected then cross compile mode will be used." >&2
  1231. elif test "x$build_alias" != "x$host_alias"; then
  1232. cross_compiling=yes
  1233. fi
  1234. fi
  1235. ac_tool_prefix=
  1236. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1237. test "$silent" = yes && exec 6>/dev/null
  1238. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1239. ac_ls_di=`ls -di .` &&
  1240. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1241. as_fn_error "working directory cannot be determined"
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. as_fn_error "pwd does not report name of working directory"
  1244. # Find the source files, if location was not specified.
  1245. if test -z "$srcdir"; then
  1246. ac_srcdir_defaulted=yes
  1247. # Try the directory containing this script, then the parent directory.
  1248. ac_confdir=`$as_dirname -- "$as_myself" ||
  1249. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1250. X"$as_myself" : 'X\(//\)[^/]' \| \
  1251. X"$as_myself" : 'X\(//\)$' \| \
  1252. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1253. $as_echo X"$as_myself" |
  1254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)[^/].*/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\).*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. s/.*/./; q'`
  1271. srcdir=$ac_confdir
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. srcdir=..
  1274. fi
  1275. else
  1276. ac_srcdir_defaulted=no
  1277. fi
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1280. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. Program names:
  1357. --program-prefix=PREFIX prepend PREFIX to installed program names
  1358. --program-suffix=SUFFIX append SUFFIX to installed program names
  1359. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. --target=TARGET configure for building compilers for TARGET [HOST]
  1364. _ACEOF
  1365. fi
  1366. if test -n "$ac_init_help"; then
  1367. case $ac_init_help in
  1368. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1369. esac
  1370. cat <<\_ACEOF
  1371. Optional Features:
  1372. --disable-option-checking ignore unrecognized --enable/--with options
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --enable-bittorrent Enable bittorrent support.
  1376. --enable-metalink Enable metalink support.
  1377. --enable-epoll Enable epoll support.
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --disable-xmltest Do not try to compile and run a test LIBXML program
  1381. --disable-largefile omit support for large files
  1382. --disable-nls do not use Native Language Support
  1383. --enable-threads={posix|solaris|pth|win32}
  1384. specify multithreading API
  1385. --disable-threads build without multithread safety
  1386. --disable-rpath do not hardcode runtime library paths
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1391. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1392. --with-gnutls Use gnutls if it is installed.
  1393. --with-openssl Use openssl if it is installed.
  1394. --with-sqlite3 Use sqlite3 if it is installed.
  1395. --with-libxml2 Use libxml2 if it is installed.
  1396. --with-libexpat Use libexpat if it is installed.
  1397. --with-libcares Use libcares if it is installed.
  1398. --with-libz Use libz if it is installed.
  1399. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1400. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1401. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1402. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1403. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1404. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1405. --with-libgcrypt-prefix=PFX
  1406. prefix where LIBGCRYPT is installed (optional)
  1407. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1408. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1409. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1410. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1411. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1412. --without-libpth-prefix don't search for libpth in includedir and libdir
  1413. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1414. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1415. --with-included-gettext use the GNU gettext library included here
  1416. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1417. --without-libintl-prefix don't search for libintl in includedir and libdir
  1418. Some influential environment variables:
  1419. CXX C++ compiler command
  1420. CXXFLAGS C++ compiler flags
  1421. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1422. nonstandard directory <lib dir>
  1423. LIBS libraries to pass to the linker, e.g. -l<library>
  1424. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1425. you have headers in a nonstandard directory <include dir>
  1426. CC C compiler command
  1427. CFLAGS C compiler flags
  1428. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1429. the first program found out of: `bison -y', `byacc', `yacc'.
  1430. YFLAGS The list of arguments that will be passed by default to $YACC.
  1431. This script will default YFLAGS to the empty string to avoid a
  1432. default value of `-d' given by some make applications.
  1433. CXXCPP C++ preprocessor
  1434. PKG_CONFIG path to pkg-config utility
  1435. SQLITE3_CFLAGS
  1436. C compiler flags for SQLITE3, overriding pkg-config
  1437. SQLITE3_LIBS
  1438. linker flags for SQLITE3, overriding pkg-config
  1439. LIBGNUTLS_CFLAGS
  1440. C compiler flags for LIBGNUTLS, overriding pkg-config
  1441. LIBGNUTLS_LIBS
  1442. linker flags for LIBGNUTLS, overriding pkg-config
  1443. Use these variables to override the choices made by `configure' or to help
  1444. it to find libraries and programs with nonstandard names/locations.
  1445. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1446. aria2 home page: <http://aria2.sourceforge.net/>.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450. if test "$ac_init_help" = "recursive"; then
  1451. # If there are subdirs, report their specific --help.
  1452. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453. test -d "$ac_dir" ||
  1454. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1455. continue
  1456. ac_builddir=.
  1457. case "$ac_dir" in
  1458. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1459. *)
  1460. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1461. # A ".." for each directory in $ac_dir_suffix.
  1462. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1463. case $ac_top_builddir_sub in
  1464. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1465. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1466. esac ;;
  1467. esac
  1468. ac_abs_top_builddir=$ac_pwd
  1469. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1470. # for backward compatibility:
  1471. ac_top_builddir=$ac_top_build_prefix
  1472. case $srcdir in
  1473. .) # We are building in place.
  1474. ac_srcdir=.
  1475. ac_top_srcdir=$ac_top_builddir_sub
  1476. ac_abs_top_srcdir=$ac_pwd ;;
  1477. [\\/]* | ?:[\\/]* ) # Absolute name.
  1478. ac_srcdir=$srcdir$ac_dir_suffix;
  1479. ac_top_srcdir=$srcdir
  1480. ac_abs_top_srcdir=$srcdir ;;
  1481. *) # Relative name.
  1482. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1483. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1484. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1485. esac
  1486. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1487. cd "$ac_dir" || { ac_status=$?; continue; }
  1488. # Check for guested configure.
  1489. if test -f "$ac_srcdir/configure.gnu"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1492. elif test -f "$ac_srcdir/configure"; then
  1493. echo &&
  1494. $SHELL "$ac_srcdir/configure" --help=recursive
  1495. else
  1496. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1497. fi || ac_status=$?
  1498. cd "$ac_pwd" || { ac_status=$?; break; }
  1499. done
  1500. fi
  1501. test -n "$ac_init_help" && exit $ac_status
  1502. if $ac_init_version; then
  1503. cat <<\_ACEOF
  1504. aria2 configure 1.9.1
  1505. generated by GNU Autoconf 2.65
  1506. Copyright (C) 2009 Free Software Foundation, Inc.
  1507. This configure script is free software; the Free Software Foundation
  1508. gives unlimited permission to copy, distribute and modify it.
  1509. _ACEOF
  1510. exit
  1511. fi
  1512. ## ------------------------ ##
  1513. ## Autoconf initialization. ##
  1514. ## ------------------------ ##
  1515. # ac_fn_cxx_try_compile LINENO
  1516. # ----------------------------
  1517. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_cxx_try_compile ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. rm -f conftest.$ac_objext
  1522. if { { ac_try="$ac_compile"
  1523. case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_compile") 2>conftest.err
  1530. ac_status=$?
  1531. if test -s conftest.err; then
  1532. grep -v '^ *+' conftest.err >conftest.er1
  1533. cat conftest.er1 >&5
  1534. mv -f conftest.er1 conftest.err
  1535. fi
  1536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537. test $ac_status = 0; } && {
  1538. test -z "$ac_cxx_werror_flag" ||
  1539. test ! -s conftest.err
  1540. } && test -s conftest.$ac_objext; then :
  1541. ac_retval=0
  1542. else
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=1
  1546. fi
  1547. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1548. as_fn_set_status $ac_retval
  1549. } # ac_fn_cxx_try_compile
  1550. # ac_fn_c_try_compile LINENO
  1551. # --------------------------
  1552. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_compile ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext
  1557. if { { ac_try="$ac_compile"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_compile") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest.$ac_objext; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1583. as_fn_set_status $ac_retval
  1584. } # ac_fn_c_try_compile
  1585. # ac_fn_cxx_try_cpp LINENO
  1586. # ------------------------
  1587. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1588. ac_fn_cxx_try_cpp ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } >/dev/null && {
  1607. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1608. test ! -s conftest.err
  1609. }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_cxx_try_cpp
  1619. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1620. # ---------------------------------------------------------
  1621. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1622. # the include files in INCLUDES and setting the cache variable VAR
  1623. # accordingly.
  1624. ac_fn_cxx_check_header_mongrel ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1631. $as_echo_n "(cached) " >&6
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. else
  1637. # Is the header compilable?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1639. $as_echo_n "checking $2 usability... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. ac_header_compiler=yes
  1647. else
  1648. ac_header_compiler=no
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1652. $as_echo "$ac_header_compiler" >&6; }
  1653. # Is the header present?
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1655. $as_echo_n "checking $2 presence... " >&6; }
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. #include <$2>
  1659. _ACEOF
  1660. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1661. ac_header_preproc=yes
  1662. else
  1663. ac_header_preproc=no
  1664. fi
  1665. rm -f conftest.err conftest.$ac_ext
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1667. $as_echo "$ac_header_preproc" >&6; }
  1668. # So? What about this header?
  1669. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1670. yes:no: )
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1672. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1674. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1675. ;;
  1676. no:yes:* )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1678. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1680. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1682. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1684. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1686. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1687. ( cat <<\_ASBOX
  1688. ## ----------------------------------------------- ##
  1689. ## Report this to t-tujikawa@users.sourceforge.net ##
  1690. ## ----------------------------------------------- ##
  1691. _ASBOX
  1692. ) | sed "s/^/$as_me: WARNING: /" >&2
  1693. ;;
  1694. esac
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1707. } # ac_fn_cxx_check_header_mongrel
  1708. # ac_fn_cxx_try_run LINENO
  1709. # ------------------------
  1710. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1711. # that executables *can* be run.
  1712. ac_fn_cxx_try_run ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. if { { ac_try="$ac_link"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo"; } >&5
  1722. (eval "$ac_link") 2>&5
  1723. ac_status=$?
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1726. { { case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_try") 2>&5
  1733. ac_status=$?
  1734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1735. test $ac_status = 0; }; }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: program exited with status $ac_status" >&5
  1739. $as_echo "$as_me: failed program was:" >&5
  1740. sed 's/^/| /' conftest.$ac_ext >&5
  1741. ac_retval=$ac_status
  1742. fi
  1743. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1744. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1745. as_fn_set_status $ac_retval
  1746. } # ac_fn_cxx_try_run
  1747. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1748. # ---------------------------------------------------------
  1749. # Tests whether HEADER exists and can be compiled using the include files in
  1750. # INCLUDES, setting the cache variable VAR accordingly.
  1751. ac_fn_cxx_check_header_compile ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. $4
  1762. #include <$2>
  1763. _ACEOF
  1764. if ac_fn_cxx_try_compile "$LINENO"; then :
  1765. eval "$3=yes"
  1766. else
  1767. eval "$3=no"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1775. } # ac_fn_cxx_check_header_compile
  1776. # ac_fn_cxx_try_link LINENO
  1777. # -------------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. $as_test_x conftest$ac_exeext
  1804. }; then :
  1805. ac_retval=0
  1806. else
  1807. $as_echo "$as_me: failed program was:" >&5
  1808. sed 's/^/| /' conftest.$ac_ext >&5
  1809. ac_retval=1
  1810. fi
  1811. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1812. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1813. # interfere with the next link command; also delete a directory that is
  1814. # left behind by Apple's compiler. We do this before executing the actions.
  1815. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_cxx_try_link
  1819. # ac_fn_cxx_check_func LINENO FUNC VAR
  1820. # ------------------------------------
  1821. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1822. ac_fn_cxx_check_func ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. $as_echo_n "checking for $2... " >&6; }
  1827. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1828. $as_echo_n "(cached) " >&6
  1829. else
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1833. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1834. #define $2 innocuous_$2
  1835. /* System header to define __stub macros and hopefully few prototypes,
  1836. which can conflict with char $2 (); below.
  1837. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1838. <limits.h> exists even on freestanding compilers. */
  1839. #ifdef __STDC__
  1840. # include <limits.h>
  1841. #else
  1842. # include <assert.h>
  1843. #endif
  1844. #undef $2
  1845. /* Override any GCC internal prototype to avoid an error.
  1846. Use char because int might match the return type of a GCC
  1847. builtin and then its argument prototype would still apply. */
  1848. #ifdef __cplusplus
  1849. extern "C"
  1850. #endif
  1851. char $2 ();
  1852. /* The GNU C library defines this for functions which it implements
  1853. to always fail with ENOSYS. Some functions are actually named
  1854. something starting with __ and the normal name is an alias. */
  1855. #if defined __stub_$2 || defined __stub___$2
  1856. choke me
  1857. #endif
  1858. int
  1859. main ()
  1860. {
  1861. return $2 ();
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_cxx_try_link "$LINENO"; then :
  1867. eval "$3=yes"
  1868. else
  1869. eval "$3=no"
  1870. fi
  1871. rm -f core conftest.err conftest.$ac_objext \
  1872. conftest$ac_exeext conftest.$ac_ext
  1873. fi
  1874. eval ac_res=\$$3
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1876. $as_echo "$ac_res" >&6; }
  1877. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1878. } # ac_fn_cxx_check_func
  1879. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1880. # ---------------------------------------------
  1881. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1882. # variable VAR accordingly.
  1883. ac_fn_cxx_check_type ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1887. $as_echo_n "checking for $2... " >&6; }
  1888. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1889. $as_echo_n "(cached) " >&6
  1890. else
  1891. eval "$3=no"
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. $4
  1895. int
  1896. main ()
  1897. {
  1898. if (sizeof ($2))
  1899. return 0;
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_cxx_try_compile "$LINENO"; then :
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. int
  1909. main ()
  1910. {
  1911. if (sizeof (($2)))
  1912. return 0;
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_cxx_try_compile "$LINENO"; then :
  1918. else
  1919. eval "$3=yes"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1929. } # ac_fn_cxx_check_type
  1930. # ac_fn_c_find_intX_t LINENO BITS VAR
  1931. # -----------------------------------
  1932. # Finds a signed integer type with width BITS, setting cache variable VAR
  1933. # accordingly.
  1934. ac_fn_c_find_intX_t ()
  1935. {
  1936. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1938. $as_echo_n "checking for int$2_t... " >&6; }
  1939. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1940. $as_echo_n "(cached) " >&6
  1941. else
  1942. eval "$3=no"
  1943. # Order is important - never check a type that is potentially smaller
  1944. # than half of the expected target width.
  1945. for ac_type in int$2_t 'int' 'long int' \
  1946. 'long long int' 'short int' 'signed char'; do
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $ac_includes_default
  1950. enum { N = $2 / 2 - 1 };
  1951. int
  1952. main ()
  1953. {
  1954. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1955. test_array [0] = 0
  1956. ;
  1957. return 0;
  1958. }
  1959. _ACEOF
  1960. if ac_fn_cxx_try_compile "$LINENO"; then :
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $ac_includes_default
  1964. enum { N = $2 / 2 - 1 };
  1965. int
  1966. main ()
  1967. {
  1968. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1969. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1970. test_array [0] = 0
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_cxx_try_compile "$LINENO"; then :
  1976. else
  1977. case $ac_type in #(
  1978. int$2_t) :
  1979. eval "$3=yes" ;; #(
  1980. *) :
  1981. eval "$3=\$ac_type" ;;
  1982. esac
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. fi
  1986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1987. eval as_val=\$$3
  1988. if test "x$as_val" = x""no; then :
  1989. else
  1990. break
  1991. fi
  1992. done
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1998. } # ac_fn_c_find_intX_t
  1999. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2000. # ------------------------------------
  2001. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2002. # accordingly.
  2003. ac_fn_c_find_uintX_t ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2007. $as_echo_n "checking for uint$2_t... " >&6; }
  2008. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. eval "$3=no"
  2012. # Order is important - never check a type that is potentially smaller
  2013. # than half of the expected target width.
  2014. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2015. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $ac_includes_default
  2019. int
  2020. main ()
  2021. {
  2022. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2023. test_array [0] = 0
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_cxx_try_compile "$LINENO"; then :
  2029. case $ac_type in #(
  2030. uint$2_t) :
  2031. eval "$3=yes" ;; #(
  2032. *) :
  2033. eval "$3=\$ac_type" ;;
  2034. esac
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. eval as_val=\$$3
  2038. if test "x$as_val" = x""no; then :
  2039. else
  2040. break
  2041. fi
  2042. done
  2043. fi
  2044. eval ac_res=\$$3
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2048. } # ac_fn_c_find_uintX_t
  2049. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2050. # ----------------------------------------------
  2051. # Tries to find the compile-time value of EXPR in a program that includes
  2052. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2053. # computed
  2054. ac_fn_cxx_compute_int ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. if test "$cross_compiling" = yes; then
  2058. # Depending upon the size, compute the lo and hi bounds.
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. int
  2063. main ()
  2064. {
  2065. static int test_array [1 - 2 * !(($2) >= 0)];
  2066. test_array [0] = 0
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_cxx_try_compile "$LINENO"; then :
  2072. ac_lo=0 ac_mid=0
  2073. while :; do
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main ()
  2079. {
  2080. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2081. test_array [0] = 0
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_cxx_try_compile "$LINENO"; then :
  2087. ac_hi=$ac_mid; break
  2088. else
  2089. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2090. if test $ac_lo -le $ac_mid; then
  2091. ac_lo= ac_hi=
  2092. break
  2093. fi
  2094. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. done
  2098. else
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. $4
  2102. int
  2103. main ()
  2104. {
  2105. static int test_array [1 - 2 * !(($2) < 0)];
  2106. test_array [0] = 0
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. if ac_fn_cxx_try_compile "$LINENO"; then :
  2112. ac_hi=-1 ac_mid=-1
  2113. while :; do
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_cxx_try_compile "$LINENO"; then :
  2127. ac_lo=$ac_mid; break
  2128. else
  2129. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2130. if test $ac_mid -le $ac_hi; then
  2131. ac_lo= ac_hi=
  2132. break
  2133. fi
  2134. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2135. fi
  2136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2137. done
  2138. else
  2139. ac_lo= ac_hi=
  2140. fi
  2141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. # Binary search between lo and hi bounds.
  2145. while test "x$ac_lo" != "x$ac_hi"; do
  2146. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2154. test_array [0] = 0
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_cxx_try_compile "$LINENO"; then :
  2160. ac_hi=$ac_mid
  2161. else
  2162. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2163. fi
  2164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2165. done
  2166. case $ac_lo in #((
  2167. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2168. '') ac_retval=1 ;;
  2169. esac
  2170. else
  2171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2172. /* end confdefs.h. */
  2173. $4
  2174. static long int longval () { return $2; }
  2175. static unsigned long int ulongval () { return $2; }
  2176. #include <stdio.h>
  2177. #include <stdlib.h>
  2178. int
  2179. main ()
  2180. {
  2181. FILE *f = fopen ("conftest.val", "w");
  2182. if (! f)
  2183. return 1;
  2184. if (($2) < 0)
  2185. {
  2186. long int i = longval ();
  2187. if (i != ($2))
  2188. return 1;
  2189. fprintf (f, "%ld", i);
  2190. }
  2191. else
  2192. {
  2193. unsigned long int i = ulongval ();
  2194. if (i != ($2))
  2195. return 1;
  2196. fprintf (f, "%lu", i);
  2197. }
  2198. /* Do not output a trailing newline, as this causes \r\n confusion
  2199. on some platforms. */
  2200. return ferror (f) || fclose (f) != 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_cxx_try_run "$LINENO"; then :
  2206. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2207. else
  2208. ac_retval=1
  2209. fi
  2210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2212. rm -f conftest.val
  2213. fi
  2214. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2215. as_fn_set_status $ac_retval
  2216. } # ac_fn_cxx_compute_int
  2217. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2218. # ------------------------------------------------------
  2219. # Tries to find if the field MEMBER exists in type AGGR, after including
  2220. # INCLUDES, setting cache variable VAR accordingly.
  2221. ac_fn_cxx_check_member ()
  2222. {
  2223. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2225. $as_echo_n "checking for $2.$3... " >&6; }
  2226. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2227. $as_echo_n "(cached) " >&6
  2228. else
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main ()
  2234. {
  2235. static $2 ac_aggr;
  2236. if (ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_cxx_try_compile "$LINENO"; then :
  2243. eval "$4=yes"
  2244. else
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main ()
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_cxx_try_compile "$LINENO"; then :
  2259. eval "$4=yes"
  2260. else
  2261. eval "$4=no"
  2262. fi
  2263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266. fi
  2267. eval ac_res=\$$4
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2269. $as_echo "$ac_res" >&6; }
  2270. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2271. } # ac_fn_cxx_check_member
  2272. cat >config.log <<_ACEOF
  2273. This file contains any messages produced by compilers while
  2274. running configure, to aid debugging if configure makes a mistake.
  2275. It was created by aria2 $as_me 1.9.1, which was
  2276. generated by GNU Autoconf 2.65. Invocation command line was
  2277. $ $0 $@
  2278. _ACEOF
  2279. exec 5>>config.log
  2280. {
  2281. cat <<_ASUNAME
  2282. ## --------- ##
  2283. ## Platform. ##
  2284. ## --------- ##
  2285. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2286. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2287. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2288. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2289. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2290. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2291. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2292. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2293. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2294. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2295. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2296. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2297. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2298. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2299. _ASUNAME
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. $as_echo "PATH: $as_dir"
  2306. done
  2307. IFS=$as_save_IFS
  2308. } >&5
  2309. cat >&5 <<_ACEOF
  2310. ## ----------- ##
  2311. ## Core tests. ##
  2312. ## ----------- ##
  2313. _ACEOF
  2314. # Keep a trace of the command line.
  2315. # Strip out --no-create and --no-recursion so they do not pile up.
  2316. # Strip out --silent because we don't want to record it for future runs.
  2317. # Also quote any args containing shell meta-characters.
  2318. # Make two passes to allow for proper duplicate-argument suppression.
  2319. ac_configure_args=
  2320. ac_configure_args0=
  2321. ac_configure_args1=
  2322. ac_must_keep_next=false
  2323. for ac_pass in 1 2
  2324. do
  2325. for ac_arg
  2326. do
  2327. case $ac_arg in
  2328. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2330. | -silent | --silent | --silen | --sile | --sil)
  2331. continue ;;
  2332. *\'*)
  2333. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. esac
  2335. case $ac_pass in
  2336. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2337. 2)
  2338. as_fn_append ac_configure_args1 " '$ac_arg'"
  2339. if test $ac_must_keep_next = true; then
  2340. ac_must_keep_next=false # Got value, back to normal.
  2341. else
  2342. case $ac_arg in
  2343. *=* | --config-cache | -C | -disable-* | --disable-* \
  2344. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2345. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2346. | -with-* | --with-* | -without-* | --without-* | --x)
  2347. case "$ac_configure_args0 " in
  2348. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2349. esac
  2350. ;;
  2351. -* ) ac_must_keep_next=true ;;
  2352. esac
  2353. fi
  2354. as_fn_append ac_configure_args " '$ac_arg'"
  2355. ;;
  2356. esac
  2357. done
  2358. done
  2359. { ac_configure_args0=; unset ac_configure_args0;}
  2360. { ac_configure_args1=; unset ac_configure_args1;}
  2361. # When interrupted or exit'd, cleanup temporary files, and complete
  2362. # config.log. We remove comments because anyway the quotes in there
  2363. # would cause problems or look ugly.
  2364. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2365. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2366. trap 'exit_status=$?
  2367. # Save into config.log some information that might help in debugging.
  2368. {
  2369. echo
  2370. cat <<\_ASBOX
  2371. ## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##
  2374. _ASBOX
  2375. echo
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. (
  2378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in #(
  2381. *${as_nl}*)
  2382. case $ac_var in #(
  2383. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2384. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2385. esac
  2386. case $ac_var in #(
  2387. _ | IFS | as_nl) ;; #(
  2388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2389. *) { eval $ac_var=; unset $ac_var;} ;;
  2390. esac ;;
  2391. esac
  2392. done
  2393. (set) 2>&1 |
  2394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2395. *${as_nl}ac_space=\ *)
  2396. sed -n \
  2397. "s/'\''/'\''\\\\'\'''\''/g;
  2398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2399. ;; #(
  2400. *)
  2401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2402. ;;
  2403. esac |
  2404. sort
  2405. )
  2406. echo
  2407. cat <<\_ASBOX
  2408. ## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##
  2411. _ASBOX
  2412. echo
  2413. for ac_var in $ac_subst_vars
  2414. do
  2415. eval ac_val=\$$ac_var
  2416. case $ac_val in
  2417. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2418. esac
  2419. $as_echo "$ac_var='\''$ac_val'\''"
  2420. done | sort
  2421. echo
  2422. if test -n "$ac_subst_files"; then
  2423. cat <<\_ASBOX
  2424. ## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##
  2427. _ASBOX
  2428. echo
  2429. for ac_var in $ac_subst_files
  2430. do
  2431. eval ac_val=\$$ac_var
  2432. case $ac_val in
  2433. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2434. esac
  2435. $as_echo "$ac_var='\''$ac_val'\''"
  2436. done | sort
  2437. echo
  2438. fi
  2439. if test -s confdefs.h; then
  2440. cat <<\_ASBOX
  2441. ## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##
  2444. _ASBOX
  2445. echo
  2446. cat confdefs.h
  2447. echo
  2448. fi
  2449. test "$ac_signal" != 0 &&
  2450. $as_echo "$as_me: caught signal $ac_signal"
  2451. $as_echo "$as_me: exit $exit_status"
  2452. } >&5
  2453. rm -f core *.core core.conftest.* &&
  2454. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2455. exit $exit_status
  2456. ' 0
  2457. for ac_signal in 1 2 13 15; do
  2458. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2459. done
  2460. ac_signal=0
  2461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2462. rm -f -r conftest* confdefs.h
  2463. $as_echo "/* confdefs.h */" > confdefs.h
  2464. # Predefined preprocessor variables.
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_NAME "$PACKAGE_NAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_STRING "$PACKAGE_STRING"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_URL "$PACKAGE_URL"
  2482. _ACEOF
  2483. # Let the site file select an alternate cache file if it wants to.
  2484. # Prefer an explicitly selected file to automatically selected ones.
  2485. ac_site_file1=NONE
  2486. ac_site_file2=NONE
  2487. if test -n "$CONFIG_SITE"; then
  2488. ac_site_file1=$CONFIG_SITE
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file"
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. gt_needs="$gt_needs "
  2523. as_fn_append ac_header_list " stdlib.h"
  2524. as_fn_append ac_header_list " unistd.h"
  2525. as_fn_append ac_header_list " sys/param.h"
  2526. as_fn_append ac_header_list " sys/time.h"
  2527. as_fn_append ac_func_list " alarm"
  2528. # Check that the precious variables saved in the cache have kept the same
  2529. # value.
  2530. ac_cache_corrupted=false
  2531. for ac_var in $ac_precious_vars; do
  2532. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2533. eval ac_new_set=\$ac_env_${ac_var}_set
  2534. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2535. eval ac_new_val=\$ac_env_${ac_var}_value
  2536. case $ac_old_set,$ac_new_set in
  2537. set,)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,set)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,);;
  2546. *)
  2547. if test "x$ac_old_val" != "x$ac_new_val"; then
  2548. # differences in whitespace do not lead to failure.
  2549. ac_old_val_w=`echo x $ac_old_val`
  2550. ac_new_val_w=`echo x $ac_new_val`
  2551. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2554. ac_cache_corrupted=:
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2557. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2558. eval $ac_var=\$ac_old_val
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2561. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2563. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2564. fi;;
  2565. esac
  2566. # Pass precious variables to config.status.
  2567. if test "$ac_new_set" = set; then
  2568. case $ac_new_val in
  2569. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2570. *) ac_arg=$ac_var=$ac_new_val ;;
  2571. esac
  2572. case " $ac_configure_args " in
  2573. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2574. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2575. esac
  2576. fi
  2577. done
  2578. if $ac_cache_corrupted; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2582. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2583. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2584. fi
  2585. ## -------------------- ##
  2586. ## Main body of script. ##
  2587. ## -------------------- ##
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. ac_aux_dir=
  2594. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2595. for ac_t in install-sh install.sh shtool; do
  2596. if test -f "$ac_dir/$ac_t"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. if test -z "$ac_aux_dir"; then
  2604. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2605. fi
  2606. # These three variables are undocumented and unsupported,
  2607. # and are intended to be withdrawn in a future Autoconf release.
  2608. # They can cause serious problems if a builder's source tree is in a directory
  2609. # whose full name contains unusual characters.
  2610. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2611. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2612. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2613. # Make sure we can run config.sub.
  2614. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2615. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2617. $as_echo_n "checking build system type... " >&6; }
  2618. if test "${ac_cv_build+set}" = set; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. ac_build_alias=$build_alias
  2622. test "x$ac_build_alias" = x &&
  2623. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2624. test "x$ac_build_alias" = x &&
  2625. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2626. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2627. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2630. $as_echo "$ac_cv_build" >&6; }
  2631. case $ac_cv_build in
  2632. *-*-*) ;;
  2633. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2634. esac
  2635. build=$ac_cv_build
  2636. ac_save_IFS=$IFS; IFS='-'
  2637. set x $ac_cv_build
  2638. shift
  2639. build_cpu=$1
  2640. build_vendor=$2
  2641. shift; shift
  2642. # Remember, the first character of IFS is used to create $*,
  2643. # except with old shells:
  2644. build_os=$*
  2645. IFS=$ac_save_IFS
  2646. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2648. $as_echo_n "checking host system type... " >&6; }
  2649. if test "${ac_cv_host+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test "x$host_alias" = x; then
  2653. ac_cv_host=$ac_cv_build
  2654. else
  2655. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2656. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2657. fi
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2660. $as_echo "$ac_cv_host" >&6; }
  2661. case $ac_cv_host in
  2662. *-*-*) ;;
  2663. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2664. esac
  2665. host=$ac_cv_host
  2666. ac_save_IFS=$IFS; IFS='-'
  2667. set x $ac_cv_host
  2668. shift
  2669. host_cpu=$1
  2670. host_vendor=$2
  2671. shift; shift
  2672. # Remember, the first character of IFS is used to create $*,
  2673. # except with old shells:
  2674. host_os=$*
  2675. IFS=$ac_save_IFS
  2676. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2678. $as_echo_n "checking target system type... " >&6; }
  2679. if test "${ac_cv_target+set}" = set; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test "x$target_alias" = x; then
  2683. ac_cv_target=$ac_cv_host
  2684. else
  2685. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2686. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2687. fi
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2690. $as_echo "$ac_cv_target" >&6; }
  2691. case $ac_cv_target in
  2692. *-*-*) ;;
  2693. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2694. esac
  2695. target=$ac_cv_target
  2696. ac_save_IFS=$IFS; IFS='-'
  2697. set x $ac_cv_target
  2698. shift
  2699. target_cpu=$1
  2700. target_vendor=$2
  2701. shift; shift
  2702. # Remember, the first character of IFS is used to create $*,
  2703. # except with old shells:
  2704. target_os=$*
  2705. IFS=$ac_save_IFS
  2706. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2707. # The aliases save the names the user supplied, while $host etc.
  2708. # will get canonicalized.
  2709. test -n "$target_alias" &&
  2710. test "$program_prefix$program_suffix$program_transform_name" = \
  2711. NONENONEs,x,x, &&
  2712. program_prefix=${target_alias}-
  2713. am__api_version='1.11'
  2714. # Find a good install program. We prefer a C program (faster),
  2715. # so one script is as good as another. But avoid the broken or
  2716. # incompatible versions:
  2717. # SysV /etc/install, /usr/sbin/install
  2718. # SunOS /usr/etc/install
  2719. # IRIX /sbin/install
  2720. # AIX /bin/install
  2721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2725. # OS/2's system install, which has a completely different semantic
  2726. # ./install, which can be erroneously created by make from ./install.sh.
  2727. # Reject install programs that cannot install multiple files.
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2729. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2730. if test -z "$INSTALL"; then
  2731. if test "${ac_cv_path_install+set}" = set; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. # Account for people who put trailing slashes in PATH elements.
  2740. case $as_dir/ in #((
  2741. ./ | .// | /[cC]/* | \
  2742. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2743. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2744. /usr/ucb/* ) ;;
  2745. *)
  2746. # OSF1 and SCO ODT 3.0 have their own names for install.
  2747. # Don't use installbsd from OSF since it installs stuff as root
  2748. # by default.
  2749. for ac_prog in ginstall scoinst install; do
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2752. if test $ac_prog = install &&
  2753. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2754. # AIX install. It has an incompatible calling convention.
  2755. :
  2756. elif test $ac_prog = install &&
  2757. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2758. # program-specific install script used by HP pwplus--don't use.
  2759. :
  2760. else
  2761. rm -rf conftest.one conftest.two conftest.dir
  2762. echo one > conftest.one
  2763. echo two > conftest.two
  2764. mkdir conftest.dir
  2765. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2766. test -s conftest.one && test -s conftest.two &&
  2767. test -s conftest.dir/conftest.one &&
  2768. test -s conftest.dir/conftest.two
  2769. then
  2770. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2771. break 3
  2772. fi
  2773. fi
  2774. fi
  2775. done
  2776. done
  2777. ;;
  2778. esac
  2779. done
  2780. IFS=$as_save_IFS
  2781. rm -rf conftest.one conftest.two conftest.dir
  2782. fi
  2783. if test "${ac_cv_path_install+set}" = set; then
  2784. INSTALL=$ac_cv_path_install
  2785. else
  2786. # As a last resort, use the slow shell script. Don't cache a
  2787. # value for INSTALL within a source directory, because that will
  2788. # break other packages using the cache if that directory is
  2789. # removed, or if the value is a relative name.
  2790. INSTALL=$ac_install_sh
  2791. fi
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2794. $as_echo "$INSTALL" >&6; }
  2795. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2796. # It thinks the first close brace ends the variable substitution.
  2797. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2798. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2799. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2801. $as_echo_n "checking whether build environment is sane... " >&6; }
  2802. # Just in case
  2803. sleep 1
  2804. echo timestamp > conftest.file
  2805. # Reject unsafe characters in $srcdir or the absolute working directory
  2806. # name. Accept space and tab only in the latter.
  2807. am_lf='
  2808. '
  2809. case `pwd` in
  2810. *[\\\"\#\$\&\'\`$am_lf]*)
  2811. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2812. esac
  2813. case $srcdir in
  2814. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2815. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2816. esac
  2817. # Do `set' in a subshell so we don't clobber the current shell's
  2818. # arguments. Must try -L first in case configure is actually a
  2819. # symlink; some systems play weird games with the mod time of symlinks
  2820. # (eg FreeBSD returns the mod time of the symlink's containing
  2821. # directory).
  2822. if (
  2823. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2824. if test "$*" = "X"; then
  2825. # -L didn't work.
  2826. set X `ls -t "$srcdir/configure" conftest.file`
  2827. fi
  2828. rm -f conftest.file
  2829. if test "$*" != "X $srcdir/configure conftest.file" \
  2830. && test "$*" != "X conftest.file $srcdir/configure"; then
  2831. # If neither matched, then we have a broken ls. This can happen
  2832. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2833. # broken ls alias from the environment. This has actually
  2834. # happened. Such a system could not be considered "sane".
  2835. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2836. alias in your environment" "$LINENO" 5
  2837. fi
  2838. test "$2" = conftest.file
  2839. )
  2840. then
  2841. # Ok.
  2842. :
  2843. else
  2844. as_fn_error "newly created file is older than distributed files!
  2845. Check your system clock" "$LINENO" 5
  2846. fi
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2848. $as_echo "yes" >&6; }
  2849. test "$program_prefix" != NONE &&
  2850. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2851. # Use a double $ so make ignores it.
  2852. test "$program_suffix" != NONE &&
  2853. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2854. # Double any \ or $.
  2855. # By default was `s,x,x', remove it if useless.
  2856. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2857. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2858. # expand $ac_aux_dir to an absolute path
  2859. am_aux_dir=`cd $ac_aux_dir && pwd`
  2860. if test x"${MISSING+set}" != xset; then
  2861. case $am_aux_dir in
  2862. *\ * | *\ *)
  2863. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2864. *)
  2865. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2866. esac
  2867. fi
  2868. # Use eval to expand $SHELL
  2869. if eval "$MISSING --run true"; then
  2870. am_missing_run="$MISSING --run "
  2871. else
  2872. am_missing_run=
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2874. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2875. fi
  2876. if test x"${install_sh}" != xset; then
  2877. case $am_aux_dir in
  2878. *\ * | *\ *)
  2879. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2880. *)
  2881. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2882. esac
  2883. fi
  2884. # Installed binaries are usually stripped using `strip' when the user
  2885. # run `make install-strip'. However `strip' might not be the right
  2886. # tool to use in cross-compilation environments, therefore Automake
  2887. # will honor the `STRIP' environment variable to overrule this program.
  2888. if test "$cross_compiling" != no; then
  2889. if test -n "$ac_tool_prefix"; then
  2890. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2891. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2893. $as_echo_n "checking for $ac_word... " >&6; }
  2894. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. if test -n "$STRIP"; then
  2898. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2907. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. fi
  2915. fi
  2916. STRIP=$ac_cv_prog_STRIP
  2917. if test -n "$STRIP"; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2919. $as_echo "$STRIP" >&6; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. fi
  2924. fi
  2925. if test -z "$ac_cv_prog_STRIP"; then
  2926. ac_ct_STRIP=$STRIP
  2927. # Extract the first word of "strip", so it can be a program name with args.
  2928. set dummy strip; ac_word=$2
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2930. $as_echo_n "checking for $ac_word... " >&6; }
  2931. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. if test -n "$ac_ct_STRIP"; then
  2935. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. test -z "$as_dir" && as_dir=.
  2942. for ac_exec_ext in '' $ac_executable_extensions; do
  2943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2944. ac_cv_prog_ac_ct_STRIP="strip"
  2945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2946. break 2
  2947. fi
  2948. done
  2949. done
  2950. IFS=$as_save_IFS
  2951. fi
  2952. fi
  2953. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2954. if test -n "$ac_ct_STRIP"; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2956. $as_echo "$ac_ct_STRIP" >&6; }
  2957. else
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. fi
  2961. if test "x$ac_ct_STRIP" = x; then
  2962. STRIP=":"
  2963. else
  2964. case $cross_compiling:$ac_tool_warned in
  2965. yes:)
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2968. ac_tool_warned=yes ;;
  2969. esac
  2970. STRIP=$ac_ct_STRIP
  2971. fi
  2972. else
  2973. STRIP="$ac_cv_prog_STRIP"
  2974. fi
  2975. fi
  2976. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2978. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2979. if test -z "$MKDIR_P"; then
  2980. if test "${ac_cv_path_mkdir+set}" = set; then :
  2981. $as_echo_n "(cached) " >&6
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_prog in mkdir gmkdir; do
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2991. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2992. 'mkdir (GNU coreutils) '* | \
  2993. 'mkdir (coreutils) '* | \
  2994. 'mkdir (fileutils) '4.1*)
  2995. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2996. break 3;;
  2997. esac
  2998. done
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. fi
  3003. test -d ./--version && rmdir ./--version
  3004. if test "${ac_cv_path_mkdir+set}" = set; then
  3005. MKDIR_P="$ac_cv_path_mkdir -p"
  3006. else
  3007. # As a last resort, use the slow shell script. Don't cache a
  3008. # value for MKDIR_P within a source directory, because that will
  3009. # break other packages using the cache if that directory is
  3010. # removed, or if the value is a relative name.
  3011. MKDIR_P="$ac_install_sh -d"
  3012. fi
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3015. $as_echo "$MKDIR_P" >&6; }
  3016. mkdir_p="$MKDIR_P"
  3017. case $mkdir_p in
  3018. [\\/$]* | ?:[\\/]*) ;;
  3019. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3020. esac
  3021. for ac_prog in gawk mawk nawk awk
  3022. do
  3023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3024. set dummy $ac_prog; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if test "${ac_cv_prog_AWK+set}" = set; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. if test -n "$AWK"; then
  3031. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. for ac_exec_ext in '' $ac_executable_extensions; do
  3039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040. ac_cv_prog_AWK="$ac_prog"
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042. break 2
  3043. fi
  3044. done
  3045. done
  3046. IFS=$as_save_IFS
  3047. fi
  3048. fi
  3049. AWK=$ac_cv_prog_AWK
  3050. if test -n "$AWK"; then
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3052. $as_echo "$AWK" >&6; }
  3053. else
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. fi
  3057. test -n "$AWK" && break
  3058. done
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3060. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3061. set x ${MAKE-make}
  3062. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3063. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. cat >conftest.make <<\_ACEOF
  3067. SHELL = /bin/sh
  3068. all:
  3069. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3070. _ACEOF
  3071. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3072. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3073. *@@@%%%=?*=@@@%%%*)
  3074. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3075. *)
  3076. eval ac_cv_prog_make_${ac_make}_set=no;;
  3077. esac
  3078. rm -f conftest.make
  3079. fi
  3080. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3082. $as_echo "yes" >&6; }
  3083. SET_MAKE=
  3084. else
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. SET_MAKE="MAKE=${MAKE-make}"
  3088. fi
  3089. rm -rf .tst 2>/dev/null
  3090. mkdir .tst 2>/dev/null
  3091. if test -d .tst; then
  3092. am__leading_dot=.
  3093. else
  3094. am__leading_dot=_
  3095. fi
  3096. rmdir .tst 2>/dev/null
  3097. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3098. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3099. # is not polluted with repeated "-I."
  3100. am__isrc=' -I$(srcdir)'
  3101. # test to see if srcdir already configured
  3102. if test -f $srcdir/config.status; then
  3103. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3104. fi
  3105. fi
  3106. # test whether we have cygpath
  3107. if test -z "$CYGPATH_W"; then
  3108. if (cygpath --version) >/dev/null 2>/dev/null; then
  3109. CYGPATH_W='cygpath -w'
  3110. else
  3111. CYGPATH_W=echo
  3112. fi
  3113. fi
  3114. # Define the identity of the package.
  3115. PACKAGE='aria2'
  3116. VERSION='1.9.1'
  3117. cat >>confdefs.h <<_ACEOF
  3118. #define PACKAGE "$PACKAGE"
  3119. _ACEOF
  3120. cat >>confdefs.h <<_ACEOF
  3121. #define VERSION "$VERSION"
  3122. _ACEOF
  3123. # Some tools Automake needs.
  3124. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3125. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3126. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3127. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3128. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3129. # We need awk for the "check" target. The system "awk" is bad on
  3130. # some platforms.
  3131. # Always define AMTAR for backward compatibility.
  3132. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3133. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3134. # Check whether --with-cppunit-prefix was given.
  3135. if test "${with_cppunit_prefix+set}" = set; then :
  3136. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3137. else
  3138. cppunit_config_prefix=""
  3139. fi
  3140. # Check whether --with-cppunit-exec-prefix was given.
  3141. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3142. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3143. else
  3144. cppunit_config_exec_prefix=""
  3145. fi
  3146. if test x$cppunit_config_exec_prefix != x ; then
  3147. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3148. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3149. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3150. fi
  3151. fi
  3152. if test x$cppunit_config_prefix != x ; then
  3153. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3154. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3155. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3156. fi
  3157. fi
  3158. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3159. set dummy cppunit-config; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. case $CPPUNIT_CONFIG in
  3166. [\\/]* | ?:[\\/]*)
  3167. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3168. ;;
  3169. *)
  3170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3171. for as_dir in $PATH
  3172. do
  3173. IFS=$as_save_IFS
  3174. test -z "$as_dir" && as_dir=.
  3175. for ac_exec_ext in '' $ac_executable_extensions; do
  3176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3177. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3179. break 2
  3180. fi
  3181. done
  3182. done
  3183. IFS=$as_save_IFS
  3184. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3185. ;;
  3186. esac
  3187. fi
  3188. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3189. if test -n "$CPPUNIT_CONFIG"; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3191. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3192. else
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3194. $as_echo "no" >&6; }
  3195. fi
  3196. cppunit_version_min=1.10.2
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3198. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3199. no_cppunit=""
  3200. if test "$CPPUNIT_CONFIG" = "no" ; then
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3202. $as_echo "no" >&6; }
  3203. no_cppunit=yes
  3204. else
  3205. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3206. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3207. cppunit_version=`$CPPUNIT_CONFIG --version`
  3208. cppunit_major_version=`echo $cppunit_version | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3210. cppunit_minor_version=`echo $cppunit_version | \
  3211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3212. cppunit_micro_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3214. cppunit_major_min=`echo $cppunit_version_min | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3216. if test "x${cppunit_major_min}" = "x" ; then
  3217. cppunit_major_min=0
  3218. fi
  3219. cppunit_minor_min=`echo $cppunit_version_min | \
  3220. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3221. if test "x${cppunit_minor_min}" = "x" ; then
  3222. cppunit_minor_min=0
  3223. fi
  3224. cppunit_micro_min=`echo $cppunit_version_min | \
  3225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3226. if test "x${cppunit_micro_min}" = "x" ; then
  3227. cppunit_micro_min=0
  3228. fi
  3229. cppunit_version_proper=`expr \
  3230. $cppunit_major_version \> $cppunit_major_min \| \
  3231. $cppunit_major_version \= $cppunit_major_min \& \
  3232. $cppunit_minor_version \> $cppunit_minor_min \| \
  3233. $cppunit_major_version \= $cppunit_major_min \& \
  3234. $cppunit_minor_version \= $cppunit_minor_min \& \
  3235. $cppunit_micro_version \>= $cppunit_micro_min `
  3236. if test "$cppunit_version_proper" = "1" ; then
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3238. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. $as_echo "no" >&6; }
  3242. no_cppunit=yes
  3243. fi
  3244. fi
  3245. if test "x$no_cppunit" = x ; then
  3246. :
  3247. else
  3248. CPPUNIT_CFLAGS=""
  3249. CPPUNIT_LIBS=""
  3250. :
  3251. fi
  3252. ac_config_headers="$ac_config_headers config.h"
  3253. case "$target" in
  3254. *mingw*|*cygwin*)
  3255. WINSOCK_LIBS="-lws2_32 -lpthread"
  3256. ;;
  3257. esac
  3258. cat >>confdefs.h <<_ACEOF
  3259. #define TARGET "$target"
  3260. _ACEOF
  3261. # Checks for arguments.
  3262. # Check whether --with-gnutls was given.
  3263. if test "${with_gnutls+set}" = set; then :
  3264. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3265. else
  3266. with_gnutls=yes
  3267. fi
  3268. # Check whether --with-openssl was given.
  3269. if test "${with_openssl+set}" = set; then :
  3270. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3271. else
  3272. with_openssl=yes
  3273. fi
  3274. # Check whether --with-sqlite3 was given.
  3275. if test "${with_sqlite3+set}" = set; then :
  3276. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3277. else
  3278. with_sqlite3=yes
  3279. fi
  3280. # Check whether --with-libxml2 was given.
  3281. if test "${with_libxml2+set}" = set; then :
  3282. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3283. else
  3284. with_libxml2=yes
  3285. fi
  3286. # Check whether --with-libexpat was given.
  3287. if test "${with_libexpat+set}" = set; then :
  3288. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3289. else
  3290. with_libexpat=yes
  3291. fi
  3292. # Check whether --with-libcares was given.
  3293. if test "${with_libcares+set}" = set; then :
  3294. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3295. else
  3296. with_libcares=yes
  3297. fi
  3298. # Check whether --with-libz was given.
  3299. if test "${with_libz+set}" = set; then :
  3300. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3301. else
  3302. with_libz=yes
  3303. fi
  3304. # Check whether --enable-bittorrent was given.
  3305. if test "${enable_bittorrent+set}" = set; then :
  3306. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3307. else
  3308. enable_bittorrent=yes
  3309. fi
  3310. # Check whether --enable-metalink was given.
  3311. if test "${enable_metalink+set}" = set; then :
  3312. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3313. else
  3314. enable_metalink=yes
  3315. fi
  3316. # Check whether --enable-epoll was given.
  3317. if test "${enable_epoll+set}" = set; then :
  3318. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3319. else
  3320. enable_epoll=yes
  3321. fi
  3322. # Check whether --with-ca-bundle was given.
  3323. if test "${with_ca_bundle+set}" = set; then :
  3324. withval=$with_ca_bundle; ca_bundle=$withval
  3325. else
  3326. ca_bundle=""
  3327. fi
  3328. # Checks for programs.
  3329. ac_ext=cpp
  3330. ac_cpp='$CXXCPP $CPPFLAGS'
  3331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3334. if test -z "$CXX"; then
  3335. if test -n "$CCC"; then
  3336. CXX=$CCC
  3337. else
  3338. if test -n "$ac_tool_prefix"; then
  3339. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3340. do
  3341. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3342. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. $as_echo_n "checking for $ac_word... " >&6; }
  3345. if test "${ac_cv_prog_CXX+set}" = set; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. if test -n "$CXX"; then
  3349. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3350. else
  3351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3352. for as_dir in $PATH
  3353. do
  3354. IFS=$as_save_IFS
  3355. test -z "$as_dir" && as_dir=.
  3356. for ac_exec_ext in '' $ac_executable_extensions; do
  3357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3358. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3360. break 2
  3361. fi
  3362. done
  3363. done
  3364. IFS=$as_save_IFS
  3365. fi
  3366. fi
  3367. CXX=$ac_cv_prog_CXX
  3368. if test -n "$CXX"; then
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3370. $as_echo "$CXX" >&6; }
  3371. else
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. $as_echo "no" >&6; }
  3374. fi
  3375. test -n "$CXX" && break
  3376. done
  3377. fi
  3378. if test -z "$CXX"; then
  3379. ac_ct_CXX=$CXX
  3380. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3381. do
  3382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3383. set dummy $ac_prog; ac_word=$2
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3385. $as_echo_n "checking for $ac_word... " >&6; }
  3386. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3387. $as_echo_n "(cached) " >&6
  3388. else
  3389. if test -n "$ac_ct_CXX"; then
  3390. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3391. else
  3392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3393. for as_dir in $PATH
  3394. do
  3395. IFS=$as_save_IFS
  3396. test -z "$as_dir" && as_dir=.
  3397. for ac_exec_ext in '' $ac_executable_extensions; do
  3398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3399. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3401. break 2
  3402. fi
  3403. done
  3404. done
  3405. IFS=$as_save_IFS
  3406. fi
  3407. fi
  3408. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3409. if test -n "$ac_ct_CXX"; then
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3411. $as_echo "$ac_ct_CXX" >&6; }
  3412. else
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. $as_echo "no" >&6; }
  3415. fi
  3416. test -n "$ac_ct_CXX" && break
  3417. done
  3418. if test "x$ac_ct_CXX" = x; then
  3419. CXX="g++"
  3420. else
  3421. case $cross_compiling:$ac_tool_warned in
  3422. yes:)
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3425. ac_tool_warned=yes ;;
  3426. esac
  3427. CXX=$ac_ct_CXX
  3428. fi
  3429. fi
  3430. fi
  3431. fi
  3432. # Provide some information about the compiler.
  3433. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3434. set X $ac_compile
  3435. ac_compiler=$2
  3436. for ac_option in --version -v -V -qversion; do
  3437. { { ac_try="$ac_compiler $ac_option >&5"
  3438. case "(($ac_try" in
  3439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3440. *) ac_try_echo=$ac_try;;
  3441. esac
  3442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3443. $as_echo "$ac_try_echo"; } >&5
  3444. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3445. ac_status=$?
  3446. if test -s conftest.err; then
  3447. sed '10a\
  3448. ... rest of stderr output deleted ...
  3449. 10q' conftest.err >conftest.er1
  3450. cat conftest.er1 >&5
  3451. fi
  3452. rm -f conftest.er1 conftest.err
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3454. test $ac_status = 0; }
  3455. done
  3456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3457. /* end confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. ac_clean_files_save=$ac_clean_files
  3466. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3467. # Try to create an executable without -o first, disregard a.out.
  3468. # It will help us diagnose broken compilers, and finding out an intuition
  3469. # of exeext.
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3471. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3472. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3473. # The possible output files:
  3474. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3475. ac_rmfiles=
  3476. for ac_file in $ac_files
  3477. do
  3478. case $ac_file in
  3479. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3480. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3481. esac
  3482. done
  3483. rm -f $ac_rmfiles
  3484. if { { ac_try="$ac_link_default"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_link_default") 2>&5
  3492. ac_status=$?
  3493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3494. test $ac_status = 0; }; then :
  3495. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3496. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3497. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3498. # so that the user can short-circuit this test for compilers unknown to
  3499. # Autoconf.
  3500. for ac_file in $ac_files ''
  3501. do
  3502. test -f "$ac_file" || continue
  3503. case $ac_file in
  3504. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3505. ;;
  3506. [ab].out )
  3507. # We found the default executable, but exeext='' is most
  3508. # certainly right.
  3509. break;;
  3510. *.* )
  3511. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3512. then :; else
  3513. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3514. fi
  3515. # We set ac_cv_exeext here because the later test for it is not
  3516. # safe: cross compilers may not add the suffix if given an `-o'
  3517. # argument, so we may need to know it at that point already.
  3518. # Even if this section looks crufty: it has the advantage of
  3519. # actually working.
  3520. break;;
  3521. * )
  3522. break;;
  3523. esac
  3524. done
  3525. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3526. else
  3527. ac_file=''
  3528. fi
  3529. if test -z "$ac_file"; then :
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. $as_echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3536. { as_fn_set_status 77
  3537. as_fn_error "C++ compiler cannot create executables
  3538. See \`config.log' for more details." "$LINENO" 5; }; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3541. $as_echo "yes" >&6; }
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3544. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3546. $as_echo "$ac_file" >&6; }
  3547. ac_exeext=$ac_cv_exeext
  3548. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3551. $as_echo_n "checking for suffix of executables... " >&6; }
  3552. if { { ac_try="$ac_link"
  3553. case "(($ac_try" in
  3554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3555. *) ac_try_echo=$ac_try;;
  3556. esac
  3557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3558. $as_echo "$ac_try_echo"; } >&5
  3559. (eval "$ac_link") 2>&5
  3560. ac_status=$?
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3562. test $ac_status = 0; }; then :
  3563. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3564. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3565. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3566. # `rm'.
  3567. for ac_file in conftest.exe conftest conftest.*; do
  3568. test -f "$ac_file" || continue
  3569. case $ac_file in
  3570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3571. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3572. break;;
  3573. * ) break;;
  3574. esac
  3575. done
  3576. else
  3577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3579. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3580. See \`config.log' for more details." "$LINENO" 5; }
  3581. fi
  3582. rm -f conftest conftest$ac_cv_exeext
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3584. $as_echo "$ac_cv_exeext" >&6; }
  3585. rm -f conftest.$ac_ext
  3586. EXEEXT=$ac_cv_exeext
  3587. ac_exeext=$EXEEXT
  3588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3589. /* end confdefs.h. */
  3590. #include <stdio.h>
  3591. int
  3592. main ()
  3593. {
  3594. FILE *f = fopen ("conftest.out", "w");
  3595. return ferror (f) || fclose (f) != 0;
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. ac_clean_files="$ac_clean_files conftest.out"
  3601. # Check that the compiler produces executables we can run. If not, either
  3602. # the compiler is broken, or we cross compile.
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3604. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3605. if test "$cross_compiling" != yes; then
  3606. { { ac_try="$ac_link"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3612. $as_echo "$ac_try_echo"; } >&5
  3613. (eval "$ac_link") 2>&5
  3614. ac_status=$?
  3615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3616. test $ac_status = 0; }
  3617. if { ac_try='./conftest$ac_cv_exeext'
  3618. { { case "(($ac_try" in
  3619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3620. *) ac_try_echo=$ac_try;;
  3621. esac
  3622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3623. $as_echo "$ac_try_echo"; } >&5
  3624. (eval "$ac_try") 2>&5
  3625. ac_status=$?
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3627. test $ac_status = 0; }; }; then
  3628. cross_compiling=no
  3629. else
  3630. if test "$cross_compiling" = maybe; then
  3631. cross_compiling=yes
  3632. else
  3633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error "cannot run C++ compiled programs.
  3636. If you meant to cross compile, use \`--host'.
  3637. See \`config.log' for more details." "$LINENO" 5; }
  3638. fi
  3639. fi
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3642. $as_echo "$cross_compiling" >&6; }
  3643. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3644. ac_clean_files=$ac_clean_files_save
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3646. $as_echo_n "checking for suffix of object files... " >&6; }
  3647. if test "${ac_cv_objext+set}" = set; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. int
  3653. main ()
  3654. {
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. rm -f conftest.o conftest.obj
  3660. if { { ac_try="$ac_compile"
  3661. case "(($ac_try" in
  3662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663. *) ac_try_echo=$ac_try;;
  3664. esac
  3665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3666. $as_echo "$ac_try_echo"; } >&5
  3667. (eval "$ac_compile") 2>&5
  3668. ac_status=$?
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3670. test $ac_status = 0; }; then :
  3671. for ac_file in conftest.o conftest.obj conftest.*; do
  3672. test -f "$ac_file" || continue;
  3673. case $ac_file in
  3674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3675. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3676. break;;
  3677. esac
  3678. done
  3679. else
  3680. $as_echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3684. as_fn_error "cannot compute suffix of object files: cannot compile
  3685. See \`config.log' for more details." "$LINENO" 5; }
  3686. fi
  3687. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3688. fi
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3690. $as_echo "$ac_cv_objext" >&6; }
  3691. OBJEXT=$ac_cv_objext
  3692. ac_objext=$OBJEXT
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3694. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3695. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. int
  3701. main ()
  3702. {
  3703. #ifndef __GNUC__
  3704. choke me
  3705. #endif
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_cxx_try_compile "$LINENO"; then :
  3711. ac_compiler_gnu=yes
  3712. else
  3713. ac_compiler_gnu=no
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3719. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3720. if test $ac_compiler_gnu = yes; then
  3721. GXX=yes
  3722. else
  3723. GXX=
  3724. fi
  3725. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3726. ac_save_CXXFLAGS=$CXXFLAGS
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3728. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3729. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3733. ac_cxx_werror_flag=yes
  3734. ac_cv_prog_cxx_g=no
  3735. CXXFLAGS="-g"
  3736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3737. /* end confdefs.h. */
  3738. int
  3739. main ()
  3740. {
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. if ac_fn_cxx_try_compile "$LINENO"; then :
  3746. ac_cv_prog_cxx_g=yes
  3747. else
  3748. CXXFLAGS=""
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. int
  3752. main ()
  3753. {
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. if ac_fn_cxx_try_compile "$LINENO"; then :
  3759. else
  3760. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3761. CXXFLAGS="-g"
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. int
  3765. main ()
  3766. {
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_cxx_try_compile "$LINENO"; then :
  3772. ac_cv_prog_cxx_g=yes
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. fi
  3778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3779. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3780. fi
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3782. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3783. if test "$ac_test_CXXFLAGS" = set; then
  3784. CXXFLAGS=$ac_save_CXXFLAGS
  3785. elif test $ac_cv_prog_cxx_g = yes; then
  3786. if test "$GXX" = yes; then
  3787. CXXFLAGS="-g -O2"
  3788. else
  3789. CXXFLAGS="-g"
  3790. fi
  3791. else
  3792. if test "$GXX" = yes; then
  3793. CXXFLAGS="-O2"
  3794. else
  3795. CXXFLAGS=
  3796. fi
  3797. fi
  3798. ac_ext=c
  3799. ac_cpp='$CPP $CPPFLAGS'
  3800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3803. DEPDIR="${am__leading_dot}deps"
  3804. ac_config_commands="$ac_config_commands depfiles"
  3805. am_make=${MAKE-make}
  3806. cat > confinc << 'END'
  3807. am__doit:
  3808. @echo this is the am__doit target
  3809. .PHONY: am__doit
  3810. END
  3811. # If we don't find an include directive, just comment out the code.
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3813. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3814. am__include="#"
  3815. am__quote=
  3816. _am_result=none
  3817. # First try GNU make style include.
  3818. echo "include confinc" > confmf
  3819. # Ignore all kinds of additional output from `make'.
  3820. case `$am_make -s -f confmf 2> /dev/null` in #(
  3821. *the\ am__doit\ target*)
  3822. am__include=include
  3823. am__quote=
  3824. _am_result=GNU
  3825. ;;
  3826. esac
  3827. # Now try BSD make style include.
  3828. if test "$am__include" = "#"; then
  3829. echo '.include "confinc"' > confmf
  3830. case `$am_make -s -f confmf 2> /dev/null` in #(
  3831. *the\ am__doit\ target*)
  3832. am__include=.include
  3833. am__quote="\""
  3834. _am_result=BSD
  3835. ;;
  3836. esac
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3839. $as_echo "$_am_result" >&6; }
  3840. rm -f confinc confmf
  3841. # Check whether --enable-dependency-tracking was given.
  3842. if test "${enable_dependency_tracking+set}" = set; then :
  3843. enableval=$enable_dependency_tracking;
  3844. fi
  3845. if test "x$enable_dependency_tracking" != xno; then
  3846. am_depcomp="$ac_aux_dir/depcomp"
  3847. AMDEPBACKSLASH='\'
  3848. fi
  3849. if test "x$enable_dependency_tracking" != xno; then
  3850. AMDEP_TRUE=
  3851. AMDEP_FALSE='#'
  3852. else
  3853. AMDEP_TRUE='#'
  3854. AMDEP_FALSE=
  3855. fi
  3856. depcc="$CXX" am_compiler_list=
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3858. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3859. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3863. # We make a subdir and do the tests there. Otherwise we can end up
  3864. # making bogus files that we don't know about and never remove. For
  3865. # instance it was reported that on HP-UX the gcc test will end up
  3866. # making a dummy file named `D' -- because `-MD' means `put the output
  3867. # in D'.
  3868. mkdir conftest.dir
  3869. # Copy depcomp to subdir because otherwise we won't find it if we're
  3870. # using a relative directory.
  3871. cp "$am_depcomp" conftest.dir
  3872. cd conftest.dir
  3873. # We will build objects and dependencies in a subdirectory because
  3874. # it helps to detect inapplicable dependency modes. For instance
  3875. # both Tru64's cc and ICC support -MD to output dependencies as a
  3876. # side effect of compilation, but ICC will put the dependencies in
  3877. # the current directory while Tru64 will put them in the object
  3878. # directory.
  3879. mkdir sub
  3880. am_cv_CXX_dependencies_compiler_type=none
  3881. if test "$am_compiler_list" = ""; then
  3882. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3883. fi
  3884. am__universal=false
  3885. case " $depcc " in #(
  3886. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3887. esac
  3888. for depmode in $am_compiler_list; do
  3889. # Setup a source with many dependencies, because some compilers
  3890. # like to wrap large dependency lists on column 80 (with \), and
  3891. # we should not choose a depcomp mode which is confused by this.
  3892. #
  3893. # We need to recreate these files for each test, as the compiler may
  3894. # overwrite some of them when testing with obscure command lines.
  3895. # This happens at least with the AIX C compiler.
  3896. : > sub/conftest.c
  3897. for i in 1 2 3 4 5 6; do
  3898. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3899. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3900. # Solaris 8's {/usr,}/bin/sh.
  3901. touch sub/conftst$i.h
  3902. done
  3903. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3904. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3905. # mode. It turns out that the SunPro C++ compiler does not properly
  3906. # handle `-M -o', and we need to detect this. Also, some Intel
  3907. # versions had trouble with output in subdirs
  3908. am__obj=sub/conftest.${OBJEXT-o}
  3909. am__minus_obj="-o $am__obj"
  3910. case $depmode in
  3911. gcc)
  3912. # This depmode causes a compiler race in universal mode.
  3913. test "$am__universal" = false || continue
  3914. ;;
  3915. nosideeffect)
  3916. # after this tag, mechanisms are not by side-effect, so they'll
  3917. # only be used when explicitly requested
  3918. if test "x$enable_dependency_tracking" = xyes; then
  3919. continue
  3920. else
  3921. break
  3922. fi
  3923. ;;
  3924. msvisualcpp | msvcmsys)
  3925. # This compiler won't grok `-c -o', but also, the minuso test has
  3926. # not run yet. These depmodes are late enough in the game, and
  3927. # so weak that their functioning should not be impacted.
  3928. am__obj=conftest.${OBJEXT-o}
  3929. am__minus_obj=
  3930. ;;
  3931. none) break ;;
  3932. esac
  3933. if depmode=$depmode \
  3934. source=sub/conftest.c object=$am__obj \
  3935. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3936. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3937. >/dev/null 2>conftest.err &&
  3938. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3939. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3940. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3941. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3942. # icc doesn't choke on unknown options, it will just issue warnings
  3943. # or remarks (even with -Werror). So we grep stderr for any message
  3944. # that says an option was ignored or not supported.
  3945. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3946. # icc: Command line warning: ignoring option '-M'; no argument required
  3947. # The diagnosis changed in icc 8.0:
  3948. # icc: Command line remark: option '-MP' not supported
  3949. if (grep 'ignoring option' conftest.err ||
  3950. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3951. am_cv_CXX_dependencies_compiler_type=$depmode
  3952. break
  3953. fi
  3954. fi
  3955. done
  3956. cd ..
  3957. rm -rf conftest.dir
  3958. else
  3959. am_cv_CXX_dependencies_compiler_type=none
  3960. fi
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3963. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3964. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3965. if
  3966. test "x$enable_dependency_tracking" != xno \
  3967. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3968. am__fastdepCXX_TRUE=
  3969. am__fastdepCXX_FALSE='#'
  3970. else
  3971. am__fastdepCXX_TRUE='#'
  3972. am__fastdepCXX_FALSE=
  3973. fi
  3974. ac_ext=c
  3975. ac_cpp='$CPP $CPPFLAGS'
  3976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3979. if test -n "$ac_tool_prefix"; then
  3980. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3983. $as_echo_n "checking for $ac_word... " >&6; }
  3984. if test "${ac_cv_prog_CC+set}" = set; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. if test -n "$CC"; then
  3988. ac_cv_prog_CC="$CC" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. test -z "$as_dir" && as_dir=.
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3997. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999. break 2
  4000. fi
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. fi
  4005. fi
  4006. CC=$ac_cv_prog_CC
  4007. if test -n "$CC"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4009. $as_echo "$CC" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4012. $as_echo "no" >&6; }
  4013. fi
  4014. fi
  4015. if test -z "$ac_cv_prog_CC"; then
  4016. ac_ct_CC=$CC
  4017. # Extract the first word of "gcc", so it can be a program name with args.
  4018. set dummy gcc; ac_word=$2
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4020. $as_echo_n "checking for $ac_word... " >&6; }
  4021. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$ac_ct_CC"; then
  4025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_CC="gcc"
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4044. if test -n "$ac_ct_CC"; then
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4046. $as_echo "$ac_ct_CC" >&6; }
  4047. else
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4049. $as_echo "no" >&6; }
  4050. fi
  4051. if test "x$ac_ct_CC" = x; then
  4052. CC=""
  4053. else
  4054. case $cross_compiling:$ac_tool_warned in
  4055. yes:)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. CC=$ac_ct_CC
  4061. fi
  4062. else
  4063. CC="$ac_cv_prog_CC"
  4064. fi
  4065. if test -z "$CC"; then
  4066. if test -n "$ac_tool_prefix"; then
  4067. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4068. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4070. $as_echo_n "checking for $ac_word... " >&6; }
  4071. if test "${ac_cv_prog_CC+set}" = set; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. CC=$ac_cv_prog_CC
  4094. if test -n "$CC"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4096. $as_echo "$CC" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. fi
  4102. fi
  4103. if test -z "$CC"; then
  4104. # Extract the first word of "cc", so it can be a program name with args.
  4105. set dummy cc; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if test "${ac_cv_prog_CC+set}" = set; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. if test -n "$CC"; then
  4112. ac_cv_prog_CC="$CC" # Let the user override the test.
  4113. else
  4114. ac_prog_rejected=no
  4115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4116. for as_dir in $PATH
  4117. do
  4118. IFS=$as_save_IFS
  4119. test -z "$as_dir" && as_dir=.
  4120. for ac_exec_ext in '' $ac_executable_extensions; do
  4121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4122. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4123. ac_prog_rejected=yes
  4124. continue
  4125. fi
  4126. ac_cv_prog_CC="cc"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. if test $ac_prog_rejected = yes; then
  4134. # We found a bogon in the path, so make sure we never use it.
  4135. set dummy $ac_cv_prog_CC
  4136. shift
  4137. if test $# != 0; then
  4138. # We chose a different compiler from the bogus one.
  4139. # However, it has the same basename, so the bogon will be chosen
  4140. # first if we set CC to just the basename; use the full file name.
  4141. shift
  4142. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4143. fi
  4144. fi
  4145. fi
  4146. fi
  4147. CC=$ac_cv_prog_CC
  4148. if test -n "$CC"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4150. $as_echo "$CC" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$CC"; then
  4157. if test -n "$ac_tool_prefix"; then
  4158. for ac_prog in cl.exe
  4159. do
  4160. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4161. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if test "${ac_cv_prog_CC+set}" = set; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$CC"; then
  4168. ac_cv_prog_CC="$CC" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4177. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. CC=$ac_cv_prog_CC
  4187. if test -n "$CC"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4189. $as_echo "$CC" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. test -n "$CC" && break
  4195. done
  4196. fi
  4197. if test -z "$CC"; then
  4198. ac_ct_CC=$CC
  4199. for ac_prog in cl.exe
  4200. do
  4201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$ac_ct_CC"; then
  4209. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4218. ac_cv_prog_ac_ct_CC="$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4228. if test -n "$ac_ct_CC"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4230. $as_echo "$ac_ct_CC" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$ac_ct_CC" && break
  4236. done
  4237. if test "x$ac_ct_CC" = x; then
  4238. CC=""
  4239. else
  4240. case $cross_compiling:$ac_tool_warned in
  4241. yes:)
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4244. ac_tool_warned=yes ;;
  4245. esac
  4246. CC=$ac_ct_CC
  4247. fi
  4248. fi
  4249. fi
  4250. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4252. as_fn_error "no acceptable C compiler found in \$PATH
  4253. See \`config.log' for more details." "$LINENO" 5; }
  4254. # Provide some information about the compiler.
  4255. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4256. set X $ac_compile
  4257. ac_compiler=$2
  4258. for ac_option in --version -v -V -qversion; do
  4259. { { ac_try="$ac_compiler $ac_option >&5"
  4260. case "(($ac_try" in
  4261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4262. *) ac_try_echo=$ac_try;;
  4263. esac
  4264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4265. $as_echo "$ac_try_echo"; } >&5
  4266. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4267. ac_status=$?
  4268. if test -s conftest.err; then
  4269. sed '10a\
  4270. ... rest of stderr output deleted ...
  4271. 10q' conftest.err >conftest.er1
  4272. cat conftest.er1 >&5
  4273. fi
  4274. rm -f conftest.er1 conftest.err
  4275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4276. test $ac_status = 0; }
  4277. done
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4279. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4280. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. int
  4286. main ()
  4287. {
  4288. #ifndef __GNUC__
  4289. choke me
  4290. #endif
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. ac_compiler_gnu=yes
  4297. else
  4298. ac_compiler_gnu=no
  4299. fi
  4300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4301. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4302. fi
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4304. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4305. if test $ac_compiler_gnu = yes; then
  4306. GCC=yes
  4307. else
  4308. GCC=
  4309. fi
  4310. ac_test_CFLAGS=${CFLAGS+set}
  4311. ac_save_CFLAGS=$CFLAGS
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4313. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4314. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. ac_save_c_werror_flag=$ac_c_werror_flag
  4318. ac_c_werror_flag=yes
  4319. ac_cv_prog_cc_g=no
  4320. CFLAGS="-g"
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. int
  4324. main ()
  4325. {
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. if ac_fn_c_try_compile "$LINENO"; then :
  4331. ac_cv_prog_cc_g=yes
  4332. else
  4333. CFLAGS=""
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. int
  4337. main ()
  4338. {
  4339. ;
  4340. return 0;
  4341. }
  4342. _ACEOF
  4343. if ac_fn_c_try_compile "$LINENO"; then :
  4344. else
  4345. ac_c_werror_flag=$ac_save_c_werror_flag
  4346. CFLAGS="-g"
  4347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4348. /* end confdefs.h. */
  4349. int
  4350. main ()
  4351. {
  4352. ;
  4353. return 0;
  4354. }
  4355. _ACEOF
  4356. if ac_fn_c_try_compile "$LINENO"; then :
  4357. ac_cv_prog_cc_g=yes
  4358. fi
  4359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4360. fi
  4361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. ac_c_werror_flag=$ac_save_c_werror_flag
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4367. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4368. if test "$ac_test_CFLAGS" = set; then
  4369. CFLAGS=$ac_save_CFLAGS
  4370. elif test $ac_cv_prog_cc_g = yes; then
  4371. if test "$GCC" = yes; then
  4372. CFLAGS="-g -O2"
  4373. else
  4374. CFLAGS="-g"
  4375. fi
  4376. else
  4377. if test "$GCC" = yes; then
  4378. CFLAGS="-O2"
  4379. else
  4380. CFLAGS=
  4381. fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4384. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4385. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4386. $as_echo_n "(cached) " >&6
  4387. else
  4388. ac_cv_prog_cc_c89=no
  4389. ac_save_CC=$CC
  4390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4391. /* end confdefs.h. */
  4392. #include <stdarg.h>
  4393. #include <stdio.h>
  4394. #include <sys/types.h>
  4395. #include <sys/stat.h>
  4396. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4397. struct buf { int x; };
  4398. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4399. static char *e (p, i)
  4400. char **p;
  4401. int i;
  4402. {
  4403. return p[i];
  4404. }
  4405. static char *f (char * (*g) (char **, int), char **p, ...)
  4406. {
  4407. char *s;
  4408. va_list v;
  4409. va_start (v,p);
  4410. s = g (p, va_arg (v,int));
  4411. va_end (v);
  4412. return s;
  4413. }
  4414. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4415. function prototypes and stuff, but not '\xHH' hex character constants.
  4416. These don't provoke an error unfortunately, instead are silently treated
  4417. as 'x'. The following induces an error, until -std is added to get
  4418. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4419. array size at least. It's necessary to write '\x00'==0 to get something
  4420. that's true only with -std. */
  4421. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4422. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4423. inside strings and character constants. */
  4424. #define FOO(x) 'x'
  4425. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4426. int test (int i, double x);
  4427. struct s1 {int (*f) (int a);};
  4428. struct s2 {int (*f) (double a);};
  4429. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4430. int argc;
  4431. char **argv;
  4432. int
  4433. main ()
  4434. {
  4435. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4436. ;
  4437. return 0;
  4438. }
  4439. _ACEOF
  4440. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4441. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4442. do
  4443. CC="$ac_save_CC $ac_arg"
  4444. if ac_fn_c_try_compile "$LINENO"; then :
  4445. ac_cv_prog_cc_c89=$ac_arg
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext
  4448. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4449. done
  4450. rm -f conftest.$ac_ext
  4451. CC=$ac_save_CC
  4452. fi
  4453. # AC_CACHE_VAL
  4454. case "x$ac_cv_prog_cc_c89" in
  4455. x)
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4457. $as_echo "none needed" >&6; } ;;
  4458. xno)
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4460. $as_echo "unsupported" >&6; } ;;
  4461. *)
  4462. CC="$CC $ac_cv_prog_cc_c89"
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4464. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4465. esac
  4466. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4467. fi
  4468. ac_ext=c
  4469. ac_cpp='$CPP $CPPFLAGS'
  4470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4473. depcc="$CC" am_compiler_list=
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4475. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4476. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4480. # We make a subdir and do the tests there. Otherwise we can end up
  4481. # making bogus files that we don't know about and never remove. For
  4482. # instance it was reported that on HP-UX the gcc test will end up
  4483. # making a dummy file named `D' -- because `-MD' means `put the output
  4484. # in D'.
  4485. mkdir conftest.dir
  4486. # Copy depcomp to subdir because otherwise we won't find it if we're
  4487. # using a relative directory.
  4488. cp "$am_depcomp" conftest.dir
  4489. cd conftest.dir
  4490. # We will build objects and dependencies in a subdirectory because
  4491. # it helps to detect inapplicable dependency modes. For instance
  4492. # both Tru64's cc and ICC support -MD to output dependencies as a
  4493. # side effect of compilation, but ICC will put the dependencies in
  4494. # the current directory while Tru64 will put them in the object
  4495. # directory.
  4496. mkdir sub
  4497. am_cv_CC_dependencies_compiler_type=none
  4498. if test "$am_compiler_list" = ""; then
  4499. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4500. fi
  4501. am__universal=false
  4502. case " $depcc " in #(
  4503. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4504. esac
  4505. for depmode in $am_compiler_list; do
  4506. # Setup a source with many dependencies, because some compilers
  4507. # like to wrap large dependency lists on column 80 (with \), and
  4508. # we should not choose a depcomp mode which is confused by this.
  4509. #
  4510. # We need to recreate these files for each test, as the compiler may
  4511. # overwrite some of them when testing with obscure command lines.
  4512. # This happens at least with the AIX C compiler.
  4513. : > sub/conftest.c
  4514. for i in 1 2 3 4 5 6; do
  4515. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4516. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4517. # Solaris 8's {/usr,}/bin/sh.
  4518. touch sub/conftst$i.h
  4519. done
  4520. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4521. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4522. # mode. It turns out that the SunPro C++ compiler does not properly
  4523. # handle `-M -o', and we need to detect this. Also, some Intel
  4524. # versions had trouble with output in subdirs
  4525. am__obj=sub/conftest.${OBJEXT-o}
  4526. am__minus_obj="-o $am__obj"
  4527. case $depmode in
  4528. gcc)
  4529. # This depmode causes a compiler race in universal mode.
  4530. test "$am__universal" = false || continue
  4531. ;;
  4532. nosideeffect)
  4533. # after this tag, mechanisms are not by side-effect, so they'll
  4534. # only be used when explicitly requested
  4535. if test "x$enable_dependency_tracking" = xyes; then
  4536. continue
  4537. else
  4538. break
  4539. fi
  4540. ;;
  4541. msvisualcpp | msvcmsys)
  4542. # This compiler won't grok `-c -o', but also, the minuso test has
  4543. # not run yet. These depmodes are late enough in the game, and
  4544. # so weak that their functioning should not be impacted.
  4545. am__obj=conftest.${OBJEXT-o}
  4546. am__minus_obj=
  4547. ;;
  4548. none) break ;;
  4549. esac
  4550. if depmode=$depmode \
  4551. source=sub/conftest.c object=$am__obj \
  4552. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4553. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4554. >/dev/null 2>conftest.err &&
  4555. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4556. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4557. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4558. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4559. # icc doesn't choke on unknown options, it will just issue warnings
  4560. # or remarks (even with -Werror). So we grep stderr for any message
  4561. # that says an option was ignored or not supported.
  4562. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4563. # icc: Command line warning: ignoring option '-M'; no argument required
  4564. # The diagnosis changed in icc 8.0:
  4565. # icc: Command line remark: option '-MP' not supported
  4566. if (grep 'ignoring option' conftest.err ||
  4567. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4568. am_cv_CC_dependencies_compiler_type=$depmode
  4569. break
  4570. fi
  4571. fi
  4572. done
  4573. cd ..
  4574. rm -rf conftest.dir
  4575. else
  4576. am_cv_CC_dependencies_compiler_type=none
  4577. fi
  4578. fi
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4580. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4581. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4582. if
  4583. test "x$enable_dependency_tracking" != xno \
  4584. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4585. am__fastdepCC_TRUE=
  4586. am__fastdepCC_FALSE='#'
  4587. else
  4588. am__fastdepCC_TRUE='#'
  4589. am__fastdepCC_FALSE=
  4590. fi
  4591. if test -n "$ac_tool_prefix"; then
  4592. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4593. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$RANLIB"; then
  4600. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4609. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. RANLIB=$ac_cv_prog_RANLIB
  4619. if test -n "$RANLIB"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4621. $as_echo "$RANLIB" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. fi
  4627. if test -z "$ac_cv_prog_RANLIB"; then
  4628. ac_ct_RANLIB=$RANLIB
  4629. # Extract the first word of "ranlib", so it can be a program name with args.
  4630. set dummy ranlib; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$ac_ct_RANLIB"; then
  4637. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4646. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4656. if test -n "$ac_ct_RANLIB"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4658. $as_echo "$ac_ct_RANLIB" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. if test "x$ac_ct_RANLIB" = x; then
  4664. RANLIB=":"
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. RANLIB=$ac_ct_RANLIB
  4673. fi
  4674. else
  4675. RANLIB="$ac_cv_prog_RANLIB"
  4676. fi
  4677. for ac_prog in 'bison -y' byacc
  4678. do
  4679. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4680. set dummy $ac_prog; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if test "${ac_cv_prog_YACC+set}" = set; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$YACC"; then
  4687. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4696. ac_cv_prog_YACC="$ac_prog"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. YACC=$ac_cv_prog_YACC
  4706. if test -n "$YACC"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4708. $as_echo "$YACC" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. test -n "$YACC" && break
  4714. done
  4715. test -n "$YACC" || YACC="yacc"
  4716. # Setting language choice
  4717. ac_ext=cpp
  4718. ac_cpp='$CXXCPP $CPPFLAGS'
  4719. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4720. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4721. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4722. # Enable system extensions
  4723. ac_ext=cpp
  4724. ac_cpp='$CXXCPP $CPPFLAGS'
  4725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4729. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4730. if test -z "$CXXCPP"; then
  4731. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. # Double quotes because CXXCPP needs to be expanded
  4735. for CXXCPP in "$CXX -E" "/lib/cpp"
  4736. do
  4737. ac_preproc_ok=false
  4738. for ac_cxx_preproc_warn_flag in '' yes
  4739. do
  4740. # Use a header file that comes with gcc, so configuring glibc
  4741. # with a fresh cross-compiler works.
  4742. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4743. # <limits.h> exists even on freestanding compilers.
  4744. # On the NeXT, cc -E runs the code through the compiler's parser,
  4745. # not just through cpp. "Syntax error" is here to catch this case.
  4746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4747. /* end confdefs.h. */
  4748. #ifdef __STDC__
  4749. # include <limits.h>
  4750. #else
  4751. # include <assert.h>
  4752. #endif
  4753. Syntax error
  4754. _ACEOF
  4755. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4756. else
  4757. # Broken: fails on valid input.
  4758. continue
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. # OK, works on sane cases. Now check whether nonexistent headers
  4762. # can be detected and how.
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. #include <ac_nonexistent.h>
  4766. _ACEOF
  4767. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4768. # Broken: success on invalid input.
  4769. continue
  4770. else
  4771. # Passes both tests.
  4772. ac_preproc_ok=:
  4773. break
  4774. fi
  4775. rm -f conftest.err conftest.$ac_ext
  4776. done
  4777. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4778. rm -f conftest.err conftest.$ac_ext
  4779. if $ac_preproc_ok; then :
  4780. break
  4781. fi
  4782. done
  4783. ac_cv_prog_CXXCPP=$CXXCPP
  4784. fi
  4785. CXXCPP=$ac_cv_prog_CXXCPP
  4786. else
  4787. ac_cv_prog_CXXCPP=$CXXCPP
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4790. $as_echo "$CXXCPP" >&6; }
  4791. ac_preproc_ok=false
  4792. for ac_cxx_preproc_warn_flag in '' yes
  4793. do
  4794. # Use a header file that comes with gcc, so configuring glibc
  4795. # with a fresh cross-compiler works.
  4796. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4797. # <limits.h> exists even on freestanding compilers.
  4798. # On the NeXT, cc -E runs the code through the compiler's parser,
  4799. # not just through cpp. "Syntax error" is here to catch this case.
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. #ifdef __STDC__
  4803. # include <limits.h>
  4804. #else
  4805. # include <assert.h>
  4806. #endif
  4807. Syntax error
  4808. _ACEOF
  4809. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4810. else
  4811. # Broken: fails on valid input.
  4812. continue
  4813. fi
  4814. rm -f conftest.err conftest.$ac_ext
  4815. # OK, works on sane cases. Now check whether nonexistent headers
  4816. # can be detected and how.
  4817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4818. /* end confdefs.h. */
  4819. #include <ac_nonexistent.h>
  4820. _ACEOF
  4821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4822. # Broken: success on invalid input.
  4823. continue
  4824. else
  4825. # Passes both tests.
  4826. ac_preproc_ok=:
  4827. break
  4828. fi
  4829. rm -f conftest.err conftest.$ac_ext
  4830. done
  4831. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4832. rm -f conftest.err conftest.$ac_ext
  4833. if $ac_preproc_ok; then :
  4834. else
  4835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4837. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4838. See \`config.log' for more details." "$LINENO" 5; }
  4839. fi
  4840. ac_ext=cpp
  4841. ac_cpp='$CXXCPP $CPPFLAGS'
  4842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4846. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4847. if test "${ac_cv_path_GREP+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -z "$GREP"; then
  4851. ac_path_GREP_found=false
  4852. # Loop through the user's path and test for each of PROGNAME-LIST
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_prog in grep ggrep; do
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4861. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4862. # Check for GNU ac_path_GREP and select it if it is found.
  4863. # Check for GNU $ac_path_GREP
  4864. case `"$ac_path_GREP" --version 2>&1` in
  4865. *GNU*)
  4866. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4867. *)
  4868. ac_count=0
  4869. $as_echo_n 0123456789 >"conftest.in"
  4870. while :
  4871. do
  4872. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4873. mv "conftest.tmp" "conftest.in"
  4874. cp "conftest.in" "conftest.nl"
  4875. $as_echo 'GREP' >> "conftest.nl"
  4876. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4877. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4878. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4879. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4880. # Best one so far, save it but keep looking for a better one
  4881. ac_cv_path_GREP="$ac_path_GREP"
  4882. ac_path_GREP_max=$ac_count
  4883. fi
  4884. # 10*(2^10) chars as input seems more than enough
  4885. test $ac_count -gt 10 && break
  4886. done
  4887. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4888. esac
  4889. $ac_path_GREP_found && break 3
  4890. done
  4891. done
  4892. done
  4893. IFS=$as_save_IFS
  4894. if test -z "$ac_cv_path_GREP"; then
  4895. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4896. fi
  4897. else
  4898. ac_cv_path_GREP=$GREP
  4899. fi
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4902. $as_echo "$ac_cv_path_GREP" >&6; }
  4903. GREP="$ac_cv_path_GREP"
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4905. $as_echo_n "checking for egrep... " >&6; }
  4906. if test "${ac_cv_path_EGREP+set}" = set; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4910. then ac_cv_path_EGREP="$GREP -E"
  4911. else
  4912. if test -z "$EGREP"; then
  4913. ac_path_EGREP_found=false
  4914. # Loop through the user's path and test for each of PROGNAME-LIST
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_prog in egrep; do
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4923. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4924. # Check for GNU ac_path_EGREP and select it if it is found.
  4925. # Check for GNU $ac_path_EGREP
  4926. case `"$ac_path_EGREP" --version 2>&1` in
  4927. *GNU*)
  4928. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4929. *)
  4930. ac_count=0
  4931. $as_echo_n 0123456789 >"conftest.in"
  4932. while :
  4933. do
  4934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4935. mv "conftest.tmp" "conftest.in"
  4936. cp "conftest.in" "conftest.nl"
  4937. $as_echo 'EGREP' >> "conftest.nl"
  4938. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4941. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4942. # Best one so far, save it but keep looking for a better one
  4943. ac_cv_path_EGREP="$ac_path_EGREP"
  4944. ac_path_EGREP_max=$ac_count
  4945. fi
  4946. # 10*(2^10) chars as input seems more than enough
  4947. test $ac_count -gt 10 && break
  4948. done
  4949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4950. esac
  4951. $ac_path_EGREP_found && break 3
  4952. done
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. if test -z "$ac_cv_path_EGREP"; then
  4957. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4958. fi
  4959. else
  4960. ac_cv_path_EGREP=$EGREP
  4961. fi
  4962. fi
  4963. fi
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4965. $as_echo "$ac_cv_path_EGREP" >&6; }
  4966. EGREP="$ac_cv_path_EGREP"
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4968. $as_echo_n "checking for ANSI C header files... " >&6; }
  4969. if test "${ac_cv_header_stdc+set}" = set; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. #include <stdarg.h>
  4976. #include <string.h>
  4977. #include <float.h>
  4978. int
  4979. main ()
  4980. {
  4981. ;
  4982. return 0;
  4983. }
  4984. _ACEOF
  4985. if ac_fn_cxx_try_compile "$LINENO"; then :
  4986. ac_cv_header_stdc=yes
  4987. else
  4988. ac_cv_header_stdc=no
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. if test $ac_cv_header_stdc = yes; then
  4992. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4994. /* end confdefs.h. */
  4995. #include <string.h>
  4996. _ACEOF
  4997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4998. $EGREP "memchr" >/dev/null 2>&1; then :
  4999. else
  5000. ac_cv_header_stdc=no
  5001. fi
  5002. rm -f conftest*
  5003. fi
  5004. if test $ac_cv_header_stdc = yes; then
  5005. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. #include <stdlib.h>
  5009. _ACEOF
  5010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5011. $EGREP "free" >/dev/null 2>&1; then :
  5012. else
  5013. ac_cv_header_stdc=no
  5014. fi
  5015. rm -f conftest*
  5016. fi
  5017. if test $ac_cv_header_stdc = yes; then
  5018. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5019. if test "$cross_compiling" = yes; then :
  5020. :
  5021. else
  5022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5023. /* end confdefs.h. */
  5024. #include <ctype.h>
  5025. #include <stdlib.h>
  5026. #if ((' ' & 0x0FF) == 0x020)
  5027. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5028. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5029. #else
  5030. # define ISLOWER(c) \
  5031. (('a' <= (c) && (c) <= 'i') \
  5032. || ('j' <= (c) && (c) <= 'r') \
  5033. || ('s' <= (c) && (c) <= 'z'))
  5034. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5035. #endif
  5036. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5037. int
  5038. main ()
  5039. {
  5040. int i;
  5041. for (i = 0; i < 256; i++)
  5042. if (XOR (islower (i), ISLOWER (i))
  5043. || toupper (i) != TOUPPER (i))
  5044. return 2;
  5045. return 0;
  5046. }
  5047. _ACEOF
  5048. if ac_fn_cxx_try_run "$LINENO"; then :
  5049. else
  5050. ac_cv_header_stdc=no
  5051. fi
  5052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5054. fi
  5055. fi
  5056. fi
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5058. $as_echo "$ac_cv_header_stdc" >&6; }
  5059. if test $ac_cv_header_stdc = yes; then
  5060. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5061. fi
  5062. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5063. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5064. inttypes.h stdint.h unistd.h
  5065. do :
  5066. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5067. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5068. "
  5069. eval as_val=\$$as_ac_Header
  5070. if test "x$as_val" = x""yes; then :
  5071. cat >>confdefs.h <<_ACEOF
  5072. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073. _ACEOF
  5074. fi
  5075. done
  5076. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5077. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5078. MINIX=yes
  5079. else
  5080. MINIX=
  5081. fi
  5082. if test "$MINIX" = yes; then
  5083. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5084. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5085. $as_echo "#define _MINIX 1" >>confdefs.h
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5088. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5089. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5093. /* end confdefs.h. */
  5094. # define __EXTENSIONS__ 1
  5095. $ac_includes_default
  5096. int
  5097. main ()
  5098. {
  5099. ;
  5100. return 0;
  5101. }
  5102. _ACEOF
  5103. if ac_fn_cxx_try_compile "$LINENO"; then :
  5104. ac_cv_safe_to_define___extensions__=yes
  5105. else
  5106. ac_cv_safe_to_define___extensions__=no
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5111. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5112. test $ac_cv_safe_to_define___extensions__ = yes &&
  5113. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5114. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5115. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5116. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5117. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5118. # Check pkg-config is available
  5119. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5120. if test -n "$ac_tool_prefix"; then
  5121. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5122. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5124. $as_echo_n "checking for $ac_word... " >&6; }
  5125. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. case $PKG_CONFIG in
  5129. [\\/]* | ?:[\\/]*)
  5130. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5131. ;;
  5132. *)
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. ;;
  5148. esac
  5149. fi
  5150. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5151. if test -n "$PKG_CONFIG"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5153. $as_echo "$PKG_CONFIG" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. fi
  5159. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5160. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5161. # Extract the first word of "pkg-config", so it can be a program name with args.
  5162. set dummy pkg-config; ac_word=$2
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5164. $as_echo_n "checking for $ac_word... " >&6; }
  5165. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. case $ac_pt_PKG_CONFIG in
  5169. [\\/]* | ?:[\\/]*)
  5170. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5171. ;;
  5172. *)
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. ;;
  5188. esac
  5189. fi
  5190. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5191. if test -n "$ac_pt_PKG_CONFIG"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5193. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. if test "x$ac_pt_PKG_CONFIG" = x; then
  5199. PKG_CONFIG=""
  5200. else
  5201. case $cross_compiling:$ac_tool_warned in
  5202. yes:)
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5204. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5205. ac_tool_warned=yes ;;
  5206. esac
  5207. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5208. fi
  5209. else
  5210. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5211. fi
  5212. fi
  5213. if test -n "$PKG_CONFIG"; then
  5214. _pkg_min_version=0.20
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5216. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5217. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5219. $as_echo "yes" >&6; }
  5220. else
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5222. $as_echo "no" >&6; }
  5223. PKG_CONFIG=""
  5224. fi
  5225. fi
  5226. # Checks for libraries.
  5227. if test "x$with_libxml2" = "xyes"; then
  5228. # Check whether --with-xml-prefix was given.
  5229. if test "${with_xml_prefix+set}" = set; then :
  5230. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5231. else
  5232. xml_config_prefix=""
  5233. fi
  5234. # Check whether --with-xml-exec-prefix was given.
  5235. if test "${with_xml_exec_prefix+set}" = set; then :
  5236. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5237. else
  5238. xml_config_exec_prefix=""
  5239. fi
  5240. # Check whether --enable-xmltest was given.
  5241. if test "${enable_xmltest+set}" = set; then :
  5242. enableval=$enable_xmltest;
  5243. else
  5244. enable_xmltest=yes
  5245. fi
  5246. if test x$xml_config_exec_prefix != x ; then
  5247. xml_config_args="$xml_config_args"
  5248. if test x${XML2_CONFIG+set} != xset ; then
  5249. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5250. fi
  5251. fi
  5252. if test x$xml_config_prefix != x ; then
  5253. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5254. if test x${XML2_CONFIG+set} != xset ; then
  5255. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5256. fi
  5257. fi
  5258. # Extract the first word of "xml2-config", so it can be a program name with args.
  5259. set dummy xml2-config; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. case $XML2_CONFIG in
  5266. [\\/]* | ?:[\\/]*)
  5267. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5268. ;;
  5269. *)
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5277. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5285. ;;
  5286. esac
  5287. fi
  5288. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5289. if test -n "$XML2_CONFIG"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5291. $as_echo "$XML2_CONFIG" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. min_xml_version=2.6.24
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5298. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5299. no_xml=""
  5300. if test "$XML2_CONFIG" = "no" ; then
  5301. no_xml=yes
  5302. else
  5303. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5304. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5305. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5307. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5309. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5311. if test "x$enable_xmltest" = "xyes" ; then
  5312. ac_save_CPPFLAGS="$CPPFLAGS"
  5313. ac_save_LIBS="$LIBS"
  5314. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5315. LIBS="$XML_LIBS $LIBS"
  5316. rm -f conf.xmltest
  5317. if test "$cross_compiling" = yes; then :
  5318. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5319. else
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. #include <stdlib.h>
  5323. #include <stdio.h>
  5324. #include <string.h>
  5325. #include <libxml/xmlversion.h>
  5326. int
  5327. main()
  5328. {
  5329. int xml_major_version, xml_minor_version, xml_micro_version;
  5330. int major, minor, micro;
  5331. char *tmp_version;
  5332. system("touch conf.xmltest");
  5333. /* Capture xml2-config output via autoconf/configure variables */
  5334. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5335. tmp_version = (char *)strdup("$min_xml_version");
  5336. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5337. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5338. exit(1);
  5339. }
  5340. free(tmp_version);
  5341. /* Capture the version information from the header files */
  5342. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5343. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5344. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5345. exit(1);
  5346. }
  5347. free(tmp_version);
  5348. /* Compare xml2-config output to the libxml headers */
  5349. if ((xml_major_version != $xml_config_major_version) ||
  5350. (xml_minor_version != $xml_config_minor_version) ||
  5351. (xml_micro_version != $xml_config_micro_version))
  5352. {
  5353. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5354. xml_major_version, xml_minor_version, xml_micro_version);
  5355. printf("*** xml2-config (version %d.%d.%d)\n",
  5356. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5357. return 1;
  5358. }
  5359. /* Compare the headers to the library to make sure we match */
  5360. /* Less than ideal -- doesn't provide us with return value feedback,
  5361. * only exits if there's a serious mismatch between header and library.
  5362. */
  5363. LIBXML_TEST_VERSION;
  5364. /* Test that the library is greater than our minimum version */
  5365. if ((xml_major_version > major) ||
  5366. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5367. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5368. (xml_micro_version >= micro)))
  5369. {
  5370. return 0;
  5371. }
  5372. else
  5373. {
  5374. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5375. xml_major_version, xml_minor_version, xml_micro_version);
  5376. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5377. major, minor, micro);
  5378. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5379. printf("***\n");
  5380. printf("*** If you have already installed a sufficiently new version, this error\n");
  5381. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5382. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5383. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5384. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5385. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5386. printf("*** so that the correct libraries are found at run-time))\n");
  5387. }
  5388. return 1;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_cxx_try_run "$LINENO"; then :
  5392. else
  5393. no_xml=yes
  5394. fi
  5395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5397. fi
  5398. CPPFLAGS="$ac_save_CPPFLAGS"
  5399. LIBS="$ac_save_LIBS"
  5400. fi
  5401. fi
  5402. if test "x$no_xml" = x ; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5404. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5405. have_libxml2=yes
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. if test "$XML2_CONFIG" = "no" ; then
  5410. echo "*** The xml2-config script installed by LIBXML could not be found"
  5411. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5412. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5413. echo "*** full path to xml2-config."
  5414. else
  5415. if test -f conf.xmltest ; then
  5416. :
  5417. else
  5418. echo "*** Could not run libxml test program, checking why..."
  5419. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5420. LIBS="$LIBS $XML_LIBS"
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. #include <libxml/xmlversion.h>
  5424. #include <stdio.h>
  5425. int
  5426. main ()
  5427. {
  5428. LIBXML_TEST_VERSION; return 0;
  5429. ;
  5430. return 0;
  5431. }
  5432. _ACEOF
  5433. if ac_fn_cxx_try_link "$LINENO"; then :
  5434. echo "*** The test program compiled, but did not run. This usually means"
  5435. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5436. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5437. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5438. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5439. echo "*** is required on your system"
  5440. echo "***"
  5441. echo "*** If you have an old version installed, it is best to remove it, although"
  5442. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5443. else
  5444. echo "*** The test program failed to compile or link. See the file config.log for the"
  5445. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5446. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5447. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5448. fi
  5449. rm -f core conftest.err conftest.$ac_objext \
  5450. conftest$ac_exeext conftest.$ac_ext
  5451. CPPFLAGS="$ac_save_CPPFLAGS"
  5452. LIBS="$ac_save_LIBS"
  5453. fi
  5454. fi
  5455. XML_CPPFLAGS=""
  5456. XML_LIBS=""
  5457. :
  5458. fi
  5459. rm -f conf.xmltest
  5460. if test "x$have_libxml2" = "xyes"; then
  5461. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5462. elif test "x$with_libxml2_requested" = "xyes"; then
  5463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5465. as_fn_error "libxml2 is requested but not found in the system.
  5466. See \`config.log' for more details." "$LINENO" 5; }
  5467. fi
  5468. fi
  5469. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5470. # Check whether --with-libexpat-prefix was given.
  5471. if test "${with_libexpat_prefix+set}" = set; then :
  5472. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5473. else
  5474. libexpat_prefix=""
  5475. fi
  5476. if test "x$libexpat_prefix" = "x"; then
  5477. libexpat_prefix="/usr"
  5478. fi
  5479. libexpat_prefix_lib=$libexpat_prefix/lib
  5480. libexpat_prefix_include=$libexpat_prefix/include
  5481. LIBS_save=$LIBS
  5482. CPPFLAGS_save=$CPPFLAGS
  5483. LIBS="-L$libexpat_prefix_lib $LIBS"
  5484. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5486. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5487. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. ac_check_lib_save_LIBS=$LIBS
  5491. LIBS="-lexpat $LIBS"
  5492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5493. /* end confdefs.h. */
  5494. /* Override any GCC internal prototype to avoid an error.
  5495. Use char because int might match the return type of a GCC
  5496. builtin and then its argument prototype would still apply. */
  5497. #ifdef __cplusplus
  5498. extern "C"
  5499. #endif
  5500. char XML_ParserCreate ();
  5501. int
  5502. main ()
  5503. {
  5504. return XML_ParserCreate ();
  5505. ;
  5506. return 0;
  5507. }
  5508. _ACEOF
  5509. if ac_fn_cxx_try_link "$LINENO"; then :
  5510. ac_cv_lib_expat_XML_ParserCreate=yes
  5511. else
  5512. ac_cv_lib_expat_XML_ParserCreate=no
  5513. fi
  5514. rm -f core conftest.err conftest.$ac_objext \
  5515. conftest$ac_exeext conftest.$ac_ext
  5516. LIBS=$ac_check_lib_save_LIBS
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5519. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5520. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5521. have_libexpat=yes
  5522. fi
  5523. if test "x$have_libexpat" = "xyes"; then
  5524. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5525. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5526. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5527. fi
  5528. LIBS=$LIBS_save
  5529. CPPFLAGS=$CPPFLAGS_save
  5530. if test "x$have_libexpat" != "xyes" &&
  5531. test "x$with_libexpat_requested" = "xyes"; then
  5532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5534. as_fn_error "libexpat is requested but not found in the system.
  5535. See \`config.log' for more details." "$LINENO" 5; }
  5536. fi
  5537. fi
  5538. if test "x$with_sqlite3" = "xyes"; then
  5539. # Check whether --with-sqlite3-prefix was given.
  5540. if test "${with_sqlite3_prefix+set}" = set; then :
  5541. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5542. else
  5543. sqlite3_prefix=""
  5544. fi
  5545. if test "x$sqlite3_prefix" = "x"; then
  5546. sqlite3_prefix="/usr"
  5547. fi
  5548. LIBS_save=$LIBS
  5549. CPPFLAGS_save=$CPPFLAGS
  5550. pkg_failed=no
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5552. $as_echo_n "checking for SQLITE3... " >&6; }
  5553. if test -n "$PKG_CONFIG"; then
  5554. if test -n "$SQLITE3_CFLAGS"; then
  5555. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5556. else
  5557. if test -n "$PKG_CONFIG" && \
  5558. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5559. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5560. ac_status=$?
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5562. test $ac_status = 0; }; then
  5563. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5564. else
  5565. pkg_failed=yes
  5566. fi
  5567. fi
  5568. else
  5569. pkg_failed=untried
  5570. fi
  5571. if test -n "$PKG_CONFIG"; then
  5572. if test -n "$SQLITE3_LIBS"; then
  5573. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5574. else
  5575. if test -n "$PKG_CONFIG" && \
  5576. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5577. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5578. ac_status=$?
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }; then
  5581. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5582. else
  5583. pkg_failed=yes
  5584. fi
  5585. fi
  5586. else
  5587. pkg_failed=untried
  5588. fi
  5589. if test $pkg_failed = yes; then
  5590. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5591. _pkg_short_errors_supported=yes
  5592. else
  5593. _pkg_short_errors_supported=no
  5594. fi
  5595. if test $_pkg_short_errors_supported = yes; then
  5596. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5597. else
  5598. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5599. fi
  5600. # Put the nasty error message in config.log where it belongs
  5601. echo "$SQLITE3_PKG_ERRORS" >&5
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. $as_echo "no" >&6; }
  5604. have_sqlite3=no
  5605. elif test $pkg_failed = untried; then
  5606. have_sqlite3=no
  5607. else
  5608. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5609. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5611. $as_echo "yes" >&6; }
  5612. have_sqlite3=yes
  5613. fi
  5614. if test "x$have_sqlite3" != "xyes"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5616. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5617. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5618. sqlite3_prefix_include=$sqlite3_prefix/include
  5619. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5620. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5622. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5623. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. ac_check_lib_save_LIBS=$LIBS
  5627. LIBS="-lsqlite3 $LIBS"
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. /* Override any GCC internal prototype to avoid an error.
  5631. Use char because int might match the return type of a GCC
  5632. builtin and then its argument prototype would still apply. */
  5633. #ifdef __cplusplus
  5634. extern "C"
  5635. #endif
  5636. char sqlite3_open ();
  5637. int
  5638. main ()
  5639. {
  5640. return sqlite3_open ();
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. if ac_fn_cxx_try_link "$LINENO"; then :
  5646. ac_cv_lib_sqlite3_sqlite3_open=yes
  5647. else
  5648. ac_cv_lib_sqlite3_sqlite3_open=no
  5649. fi
  5650. rm -f core conftest.err conftest.$ac_objext \
  5651. conftest$ac_exeext conftest.$ac_ext
  5652. LIBS=$ac_check_lib_save_LIBS
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5655. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5656. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5657. have_sqlite3=yes
  5658. fi
  5659. if test "x$have_sqlite3" = "xyes"; then
  5660. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5661. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5662. fi
  5663. fi
  5664. if test "x$have_sqlite3" = "xyes"; then
  5665. LIBS="$SQLITE3_LIBS $LIBS"
  5666. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5667. for ac_func in sqlite3_open_v2
  5668. do :
  5669. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5670. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5671. cat >>confdefs.h <<_ACEOF
  5672. #define HAVE_SQLITE3_OPEN_V2 1
  5673. _ACEOF
  5674. fi
  5675. done
  5676. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5677. fi
  5678. LIBS=$LIBS_save
  5679. CPPFLAGS=$CPPFLAGS_save
  5680. if test "x$have_sqlite3" != "xyes" &&
  5681. test "x$with_sqlite3_requested" = "xyes"; then
  5682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5684. as_fn_error "sqlite3 is requested but not found in the system.
  5685. See \`config.log' for more details." "$LINENO" 5; }
  5686. fi
  5687. fi
  5688. if test "x$with_gnutls" = "xyes"; then
  5689. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5690. # First check the presence of libgnutls using pkg-config.
  5691. pkg_failed=no
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5693. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5694. if test -n "$PKG_CONFIG"; then
  5695. if test -n "$LIBGNUTLS_CFLAGS"; then
  5696. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5697. else
  5698. if test -n "$PKG_CONFIG" && \
  5699. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5700. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5701. ac_status=$?
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5703. test $ac_status = 0; }; then
  5704. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5705. else
  5706. pkg_failed=yes
  5707. fi
  5708. fi
  5709. else
  5710. pkg_failed=untried
  5711. fi
  5712. if test -n "$PKG_CONFIG"; then
  5713. if test -n "$LIBGNUTLS_LIBS"; then
  5714. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5715. else
  5716. if test -n "$PKG_CONFIG" && \
  5717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5718. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5723. else
  5724. pkg_failed=yes
  5725. fi
  5726. fi
  5727. else
  5728. pkg_failed=untried
  5729. fi
  5730. if test $pkg_failed = yes; then
  5731. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5732. _pkg_short_errors_supported=yes
  5733. else
  5734. _pkg_short_errors_supported=no
  5735. fi
  5736. if test $_pkg_short_errors_supported = yes; then
  5737. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5738. else
  5739. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5740. fi
  5741. # Put the nasty error message in config.log where it belongs
  5742. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. have_libgnutls=no
  5746. elif test $pkg_failed = untried; then
  5747. have_libgnutls=no
  5748. else
  5749. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5750. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5752. $as_echo "yes" >&6; }
  5753. have_libgnutls=yes
  5754. fi
  5755. # If no libgnutls found by pkg-config, fall back to old macro
  5756. if test "x$have_libgnutls" = "xno"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5758. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5759. # Check whether --with-libgnutls-prefix was given.
  5760. if test "${with_libgnutls_prefix+set}" = set; then :
  5761. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5762. else
  5763. libgnutls_config_prefix=""
  5764. fi
  5765. if test x$libgnutls_config_prefix != x ; then
  5766. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5767. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5768. fi
  5769. fi
  5770. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5771. set dummy libgnutls-config; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. case $LIBGNUTLS_CONFIG in
  5778. [\\/]* | ?:[\\/]*)
  5779. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5780. ;;
  5781. *)
  5782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5797. ;;
  5798. esac
  5799. fi
  5800. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5801. if test -n "$LIBGNUTLS_CONFIG"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5803. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. min_libgnutls_version=1.2.9
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5810. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5811. no_libgnutls=""
  5812. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5813. no_libgnutls=yes
  5814. else
  5815. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5816. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5817. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5818. ac_save_CFLAGS="$CFLAGS"
  5819. ac_save_LIBS="$LIBS"
  5820. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5821. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5822. rm -f conf.libgnutlstest
  5823. if test "$cross_compiling" = yes; then :
  5824. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5825. else
  5826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5827. /* end confdefs.h. */
  5828. #include <stdio.h>
  5829. #include <stdlib.h>
  5830. #include <string.h>
  5831. #include <gnutls/gnutls.h>
  5832. int
  5833. main ()
  5834. {
  5835. system ("touch conf.libgnutlstest");
  5836. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5837. {
  5838. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5839. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5840. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5841. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5842. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5843. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5844. printf("*** required on your system.\n");
  5845. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5846. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5847. printf("*** before re-running configure\n");
  5848. }
  5849. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5850. {
  5851. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5852. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5853. }
  5854. else
  5855. {
  5856. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5857. {
  5858. return 0;
  5859. }
  5860. else
  5861. {
  5862. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5863. gnutls_check_version(NULL) );
  5864. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5865. "$min_libgnutls_version" );
  5866. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5867. printf("*** \n");
  5868. printf("*** If you have already installed a sufficiently new version, this error\n");
  5869. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5870. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5871. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5872. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5873. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5874. printf("*** so that the correct libraries are found at run-time))\n");
  5875. }
  5876. }
  5877. return 1;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_cxx_try_run "$LINENO"; then :
  5881. else
  5882. no_libgnutls=yes
  5883. fi
  5884. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5885. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5886. fi
  5887. CFLAGS="$ac_save_CFLAGS"
  5888. LIBS="$ac_save_LIBS"
  5889. fi
  5890. if test "x$no_libgnutls" = x ; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5892. $as_echo "yes" >&6; }
  5893. have_libgnutls=yes
  5894. else
  5895. if test -f conf.libgnutlstest ; then
  5896. :
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5902. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5903. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5904. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5905. echo "*** full path to libgnutls-config."
  5906. else
  5907. if test -f conf.libgnutlstest ; then
  5908. :
  5909. else
  5910. echo "*** Could not run libgnutls test program, checking why..."
  5911. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5912. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5914. /* end confdefs.h. */
  5915. #include <stdio.h>
  5916. #include <stdlib.h>
  5917. #include <string.h>
  5918. #include <gnutls/gnutls.h>
  5919. int
  5920. main ()
  5921. {
  5922. return !!gnutls_check_version(NULL);
  5923. ;
  5924. return 0;
  5925. }
  5926. _ACEOF
  5927. if ac_fn_cxx_try_link "$LINENO"; then :
  5928. echo "*** The test program compiled, but did not run. This usually means"
  5929. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5930. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5931. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5932. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5933. echo "*** is required on your system"
  5934. echo "***"
  5935. echo "*** If you have an old version installed, it is best to remove it, although"
  5936. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5937. echo "***"
  5938. else
  5939. echo "*** The test program failed to compile or link. See the file config.log for the"
  5940. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5941. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5942. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. CFLAGS="$ac_save_CFLAGS"
  5947. LIBS="$ac_save_LIBS"
  5948. fi
  5949. fi
  5950. LIBGNUTLS_CFLAGS=""
  5951. LIBGNUTLS_LIBS=""
  5952. :
  5953. fi
  5954. rm -f conf.libgnutlstest
  5955. fi
  5956. if test "x$have_libgnutls" = "xyes"; then
  5957. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5958. elif test "x$with_gnutls_requested" = "xyes"; then
  5959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5961. as_fn_error "gnutls is requested but not found in the system.
  5962. See \`config.log' for more details." "$LINENO" 5; }
  5963. fi
  5964. fi
  5965. if test "x$have_libgnutls" = "xyes"; then
  5966. # Check whether --with-libgcrypt-prefix was given.
  5967. if test "${with_libgcrypt_prefix+set}" = set; then :
  5968. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5969. else
  5970. libgcrypt_config_prefix=""
  5971. fi
  5972. if test x$libgcrypt_config_prefix != x ; then
  5973. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5974. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5975. fi
  5976. fi
  5977. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5978. set dummy libgcrypt-config; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. case $LIBGCRYPT_CONFIG in
  5985. [\\/]* | ?:[\\/]*)
  5986. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5987. ;;
  5988. *)
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5996. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6004. ;;
  6005. esac
  6006. fi
  6007. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6008. if test -n "$LIBGCRYPT_CONFIG"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6010. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. tmp=1.2.2
  6016. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6017. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6018. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6019. else
  6020. req_libgcrypt_api=0
  6021. min_libgcrypt_version="$tmp"
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6024. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6025. ok=no
  6026. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6027. req_major=`echo $min_libgcrypt_version | \
  6028. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6029. req_minor=`echo $min_libgcrypt_version | \
  6030. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6031. req_micro=`echo $min_libgcrypt_version | \
  6032. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6033. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6034. major=`echo $libgcrypt_config_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6036. minor=`echo $libgcrypt_config_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6038. micro=`echo $libgcrypt_config_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6040. if test "$major" -gt "$req_major"; then
  6041. ok=yes
  6042. else
  6043. if test "$major" -eq "$req_major"; then
  6044. if test "$minor" -gt "$req_minor"; then
  6045. ok=yes
  6046. else
  6047. if test "$minor" -eq "$req_minor"; then
  6048. if test "$micro" -ge "$req_micro"; then
  6049. ok=yes
  6050. fi
  6051. fi
  6052. fi
  6053. fi
  6054. fi
  6055. fi
  6056. if test $ok = yes; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6058. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. if test $ok = yes; then
  6064. # If we have a recent libgcrypt, we should also check that the
  6065. # API is compatible
  6066. if test "$req_libgcrypt_api" -gt 0 ; then
  6067. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6068. if test "$tmp" -gt 0 ; then
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6070. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6071. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6073. $as_echo "okay" >&6; }
  6074. else
  6075. ok=no
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6077. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6078. fi
  6079. fi
  6080. fi
  6081. fi
  6082. if test $ok = yes; then
  6083. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6084. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6085. have_libgcrypt=yes
  6086. else
  6087. LIBGCRYPT_CFLAGS=""
  6088. LIBGCRYPT_LIBS=""
  6089. :
  6090. fi
  6091. if test "x$have_libgcrypt" = "xyes"; then
  6092. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6093. fi
  6094. fi
  6095. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6096. # Check whether --with-openssl-prefix was given.
  6097. if test "${with_openssl_prefix+set}" = set; then :
  6098. withval=$with_openssl_prefix; openssl_prefix=$withval
  6099. else
  6100. openssl_prefix=""
  6101. fi
  6102. if test "x$openssl_prefix" = "x"; then
  6103. openssl_prefix="/usr/local"
  6104. fi
  6105. LIBS_save=$LIBS
  6106. CPPFLAGS_save=$CPPFLAGS
  6107. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6108. if test -x $PKG_CONFIG; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6110. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6111. $PKG_CONFIG --exists openssl
  6112. if test "$?" = "0"; then
  6113. # Use pkg-config to detect LIBS and CFLAGS
  6114. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6115. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6116. LIBS="$OPENSSL_LIBS $LIBS"
  6117. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6118. have_openssl=yes
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6120. $as_echo "yes" >&6; }
  6121. else
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125. fi
  6126. if test "x$have_openssl" != "xyes"; then
  6127. openssl_prefix_lib=$openssl_prefix/lib
  6128. openssl_prefix_include=$openssl_prefix/include
  6129. LIBS="-L$openssl_prefix_lib $LIBS"
  6130. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6132. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6133. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_check_lib_save_LIBS=$LIBS
  6137. LIBS="-lssl $LIBS"
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. /* Override any GCC internal prototype to avoid an error.
  6141. Use char because int might match the return type of a GCC
  6142. builtin and then its argument prototype would still apply. */
  6143. #ifdef __cplusplus
  6144. extern "C"
  6145. #endif
  6146. char SSL_library_init ();
  6147. int
  6148. main ()
  6149. {
  6150. return SSL_library_init ();
  6151. ;
  6152. return 0;
  6153. }
  6154. _ACEOF
  6155. if ac_fn_cxx_try_link "$LINENO"; then :
  6156. ac_cv_lib_ssl_SSL_library_init=yes
  6157. else
  6158. ac_cv_lib_ssl_SSL_library_init=no
  6159. fi
  6160. rm -f core conftest.err conftest.$ac_objext \
  6161. conftest$ac_exeext conftest.$ac_ext
  6162. LIBS=$ac_check_lib_save_LIBS
  6163. fi
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6165. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6166. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6167. have_openssl=yes LIBS="-lssl $LIBS"
  6168. fi
  6169. if test "x$have_openssl" = "xyes"; then
  6170. have_openssl=no
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6172. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6173. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. ac_check_lib_save_LIBS=$LIBS
  6177. LIBS="-lcrypto $LIBS"
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. int
  6181. main ()
  6182. {
  6183. return main ();
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. if ac_fn_cxx_try_link "$LINENO"; then :
  6189. ac_cv_lib_crypto_main=yes
  6190. else
  6191. ac_cv_lib_crypto_main=no
  6192. fi
  6193. rm -f core conftest.err conftest.$ac_objext \
  6194. conftest$ac_exeext conftest.$ac_ext
  6195. LIBS=$ac_check_lib_save_LIBS
  6196. fi
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6198. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6199. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6200. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6201. fi
  6202. if test "x$have_openssl" = "xyes"; then
  6203. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6204. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6205. fi
  6206. fi
  6207. fi
  6208. if test "x$have_openssl" = "xyes"; then
  6209. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6210. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6211. for ac_func in EVP_DigestInit_ex
  6212. do :
  6213. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6214. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6215. cat >>confdefs.h <<_ACEOF
  6216. #define HAVE_EVP_DIGESTINIT_EX 1
  6217. _ACEOF
  6218. have_digestinit_ex=yes
  6219. fi
  6220. done
  6221. if test "x$have_digestinit_ex" = "x"; then
  6222. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6223. fi
  6224. # search for sha256 support
  6225. for ac_func in EVP_sha256
  6226. do :
  6227. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6228. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6229. cat >>confdefs.h <<_ACEOF
  6230. #define HAVE_EVP_SHA256 1
  6231. _ACEOF
  6232. fi
  6233. done
  6234. fi
  6235. LIBS=$LIBS_save
  6236. CPPFLAGS=$CPPFLAGS_save
  6237. if test "x$have_openssl" != "xyes" &&
  6238. test "x$with_openssl_requested" = "xyes"; then
  6239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6241. as_fn_error "openssl is requested but not found in the system.
  6242. See \`config.log' for more details." "$LINENO" 5; }
  6243. fi
  6244. fi
  6245. if test "x$with_libcares" = "xyes"; then
  6246. # Check whether --with-libcares-prefix was given.
  6247. if test "${with_libcares_prefix+set}" = set; then :
  6248. withval=$with_libcares_prefix; libcares_prefix=$withval
  6249. else
  6250. libcares_prefix=""
  6251. fi
  6252. if test "x$libcares_prefix" = "x"; then
  6253. libcares_prefix="/usr"
  6254. fi
  6255. libcares_prefix_lib=$libcares_prefix/lib
  6256. libcares_prefix_include=$libcares_prefix/include
  6257. LIBS_save=$LIBS
  6258. CPPFLAGS_save=$CPPFLAGS
  6259. LIBS="-L$libcares_prefix_lib $LIBS"
  6260. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6262. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6263. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. ac_check_lib_save_LIBS=$LIBS
  6267. LIBS="-lcares $LIBS"
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. /* Override any GCC internal prototype to avoid an error.
  6271. Use char because int might match the return type of a GCC
  6272. builtin and then its argument prototype would still apply. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. char ares_init ();
  6277. int
  6278. main ()
  6279. {
  6280. return ares_init ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_cxx_try_link "$LINENO"; then :
  6286. ac_cv_lib_cares_ares_init=yes
  6287. else
  6288. ac_cv_lib_cares_ares_init=no
  6289. fi
  6290. rm -f core conftest.err conftest.$ac_objext \
  6291. conftest$ac_exeext conftest.$ac_ext
  6292. LIBS=$ac_check_lib_save_LIBS
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6295. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6296. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6297. have_libcares=yes
  6298. fi
  6299. if test "x$have_libcares" != "xyes"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6301. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6302. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. ac_check_lib_save_LIBS=$LIBS
  6306. LIBS="-lcares -lrt $LIBS"
  6307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6308. /* end confdefs.h. */
  6309. /* Override any GCC internal prototype to avoid an error.
  6310. Use char because int might match the return type of a GCC
  6311. builtin and then its argument prototype would still apply. */
  6312. #ifdef __cplusplus
  6313. extern "C"
  6314. #endif
  6315. char ares_init ();
  6316. int
  6317. main ()
  6318. {
  6319. return ares_init ();
  6320. ;
  6321. return 0;
  6322. }
  6323. _ACEOF
  6324. if ac_fn_cxx_try_link "$LINENO"; then :
  6325. ac_cv_lib_cares_ares_init=yes
  6326. else
  6327. ac_cv_lib_cares_ares_init=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. LIBS=$ac_check_lib_save_LIBS
  6332. fi
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6334. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6335. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6336. have_libcares=yes need_librt=yes
  6337. fi
  6338. fi
  6339. if test "x$have_libcares" = "xyes"; then
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6341. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. #include <ares.h>
  6345. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6346. int
  6347. main ()
  6348. {
  6349. ares_channel channel;
  6350. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_compile "$LINENO"; then :
  6356. have_libcares1_5=yes
  6357. else
  6358. have_libcares1_5=no
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6362. $as_echo "$have_libcares1_5" >&6; }
  6363. if test "x$have_libcares1_5" = "xyes"; then
  6364. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6365. fi
  6366. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6367. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6368. if test "x$need_librt" = "xyes"; then
  6369. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6370. fi
  6371. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6372. fi
  6373. LIBS=$LIBS_save
  6374. CPPFLAGS=$CPPFLAGS_save
  6375. if test "x$have_libcares" != "xyes" &&
  6376. test "x$with_libcares_requested" = "xyes"; then
  6377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6379. as_fn_error "libcares is requested but not found in the system.
  6380. See \`config.log' for more details." "$LINENO" 5; }
  6381. fi
  6382. fi
  6383. # Check availability of libz
  6384. if test "x$with_libz" = "xyes"; then
  6385. # Check whether --with-libz-prefix was given.
  6386. if test "${with_libz_prefix+set}" = set; then :
  6387. withval=$with_libz_prefix; libz_prefix=$withval
  6388. else
  6389. libz_prefix=""
  6390. fi
  6391. if test "x$libz_prefix" = "x"; then
  6392. libz_prefix="/usr"
  6393. fi
  6394. libz_prefix_lib=$libz_prefix/lib
  6395. libz_prefix_include=$libz_prefix/include
  6396. LIBS_save=$LIBS
  6397. CPPFLAGS_save=$CPPFLAGS
  6398. LIBS="-L$libz_prefix_lib $LIBS"
  6399. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6401. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6402. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6403. $as_echo_n "(cached) " >&6
  6404. else
  6405. ac_check_lib_save_LIBS=$LIBS
  6406. LIBS="-lz $LIBS"
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. /* Override any GCC internal prototype to avoid an error.
  6410. Use char because int might match the return type of a GCC
  6411. builtin and then its argument prototype would still apply. */
  6412. #ifdef __cplusplus
  6413. extern "C"
  6414. #endif
  6415. char zlibVersion ();
  6416. int
  6417. main ()
  6418. {
  6419. return zlibVersion ();
  6420. ;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. if ac_fn_cxx_try_link "$LINENO"; then :
  6425. ac_cv_lib_z_zlibVersion=yes
  6426. else
  6427. ac_cv_lib_z_zlibVersion=no
  6428. fi
  6429. rm -f core conftest.err conftest.$ac_objext \
  6430. conftest$ac_exeext conftest.$ac_ext
  6431. LIBS=$ac_check_lib_save_LIBS
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6434. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6435. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6436. have_libz=yes
  6437. fi
  6438. if test "x$have_libz" = "xyes"; then
  6439. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6440. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6441. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6442. fi
  6443. LIBS=$LIBS_save
  6444. CPPFLAGS=$CPPFLAGS_save
  6445. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6448. as_fn_error "libz is requested but not found in the system.
  6449. See \`config.log' for more details." "$LINENO" 5; }
  6450. fi
  6451. fi
  6452. # Define variables based on the result of the checks for libraries.
  6453. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6454. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6455. if true; then
  6456. ENABLE_SSL_TRUE=
  6457. ENABLE_SSL_FALSE='#'
  6458. else
  6459. ENABLE_SSL_TRUE='#'
  6460. ENABLE_SSL_FALSE=
  6461. fi
  6462. else
  6463. if false; then
  6464. ENABLE_SSL_TRUE=
  6465. ENABLE_SSL_FALSE='#'
  6466. else
  6467. ENABLE_SSL_TRUE='#'
  6468. ENABLE_SSL_FALSE=
  6469. fi
  6470. fi
  6471. if test "x$have_libgnutls" = "xyes" ; then
  6472. HAVE_LIBGNUTLS_TRUE=
  6473. HAVE_LIBGNUTLS_FALSE='#'
  6474. else
  6475. HAVE_LIBGNUTLS_TRUE='#'
  6476. HAVE_LIBGNUTLS_FALSE=
  6477. fi
  6478. if test "x$have_openssl" = "xyes" ; then
  6479. HAVE_LIBSSL_TRUE=
  6480. HAVE_LIBSSL_FALSE='#'
  6481. else
  6482. HAVE_LIBSSL_TRUE='#'
  6483. HAVE_LIBSSL_FALSE=
  6484. fi
  6485. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6486. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6487. if true; then
  6488. ENABLE_MESSAGE_DIGEST_TRUE=
  6489. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6490. else
  6491. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6492. ENABLE_MESSAGE_DIGEST_FALSE=
  6493. fi
  6494. enable_message_digest=yes
  6495. else
  6496. if false; then
  6497. ENABLE_MESSAGE_DIGEST_TRUE=
  6498. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6499. else
  6500. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6501. ENABLE_MESSAGE_DIGEST_FALSE=
  6502. fi
  6503. fi
  6504. if test "x$enable_bittorrent" = "xyes" &&
  6505. test "x$enable_message_digest" = "xyes"; then
  6506. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6507. if true; then
  6508. ENABLE_BITTORRENT_TRUE=
  6509. ENABLE_BITTORRENT_FALSE='#'
  6510. else
  6511. ENABLE_BITTORRENT_TRUE='#'
  6512. ENABLE_BITTORRENT_FALSE=
  6513. fi
  6514. else
  6515. if test "x$enable_bittorrent_requested" = "xyes"; then
  6516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6518. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6519. configuration.\
  6520. Make sure that dependent libraries are installed and configure script options\
  6521. are correct.
  6522. See \`config.log' for more details." "$LINENO" 5; }
  6523. fi
  6524. enable_bittorrent=no
  6525. if false; then
  6526. ENABLE_BITTORRENT_TRUE=
  6527. ENABLE_BITTORRENT_FALSE='#'
  6528. else
  6529. ENABLE_BITTORRENT_TRUE='#'
  6530. ENABLE_BITTORRENT_FALSE=
  6531. fi
  6532. fi
  6533. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6534. test "x$enable_metalink" = "xyes"; then
  6535. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6536. if true; then
  6537. ENABLE_METALINK_TRUE=
  6538. ENABLE_METALINK_FALSE='#'
  6539. else
  6540. ENABLE_METALINK_TRUE='#'
  6541. ENABLE_METALINK_FALSE=
  6542. fi
  6543. else
  6544. if test "x$enable_metalink_requested" = "xyes"; then
  6545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6547. as_fn_error "metalink is requested but cannot be enabled with current\
  6548. configuration.\
  6549. Make sure that dependent libraries are installed and configure script options\
  6550. are correct.
  6551. See \`config.log' for more details." "$LINENO" 5; }
  6552. fi
  6553. enable_metalink=no
  6554. if false; then
  6555. ENABLE_METALINK_TRUE=
  6556. ENABLE_METALINK_FALSE='#'
  6557. else
  6558. ENABLE_METALINK_TRUE='#'
  6559. ENABLE_METALINK_FALSE=
  6560. fi
  6561. fi
  6562. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6563. ENABLE_METALINK_LIBXML2_TRUE=
  6564. ENABLE_METALINK_LIBXML2_FALSE='#'
  6565. else
  6566. ENABLE_METALINK_LIBXML2_TRUE='#'
  6567. ENABLE_METALINK_LIBXML2_FALSE=
  6568. fi
  6569. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6570. ENABLE_METALINK_LIBEXPAT_TRUE=
  6571. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6572. else
  6573. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6574. ENABLE_METALINK_LIBEXPAT_FALSE=
  6575. fi
  6576. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6577. enable_xml_rpc=yes
  6578. fi
  6579. if test "x$enable_xml_rpc" = "xyes"; then
  6580. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6581. fi
  6582. if test "x$enable_xml_rpc" = "xyes"; then
  6583. ENABLE_XML_RPC_TRUE=
  6584. ENABLE_XML_RPC_FALSE='#'
  6585. else
  6586. ENABLE_XML_RPC_TRUE='#'
  6587. ENABLE_XML_RPC_FALSE=
  6588. fi
  6589. if test "x$have_libxml2" = "xyes"; then
  6590. HAVE_LIBXML2_TRUE=
  6591. HAVE_LIBXML2_FALSE='#'
  6592. else
  6593. HAVE_LIBXML2_TRUE='#'
  6594. HAVE_LIBXML2_FALSE=
  6595. fi
  6596. if test "x$have_libexpat" = "xyes"; then
  6597. HAVE_LIBEXPAT_TRUE=
  6598. HAVE_LIBEXPAT_FALSE='#'
  6599. else
  6600. HAVE_LIBEXPAT_TRUE='#'
  6601. HAVE_LIBEXPAT_FALSE=
  6602. fi
  6603. if test "x$have_libcares" = "xyes"; then
  6604. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6605. if true; then
  6606. ENABLE_ASYNC_DNS_TRUE=
  6607. ENABLE_ASYNC_DNS_FALSE='#'
  6608. else
  6609. ENABLE_ASYNC_DNS_TRUE='#'
  6610. ENABLE_ASYNC_DNS_FALSE=
  6611. fi
  6612. else
  6613. if false; then
  6614. ENABLE_ASYNC_DNS_TRUE=
  6615. ENABLE_ASYNC_DNS_FALSE='#'
  6616. else
  6617. ENABLE_ASYNC_DNS_TRUE='#'
  6618. ENABLE_ASYNC_DNS_FALSE=
  6619. fi
  6620. fi
  6621. # Set conditional for libz
  6622. if test "x$have_libz" = "xyes"; then
  6623. HAVE_LIBZ_TRUE=
  6624. HAVE_LIBZ_FALSE='#'
  6625. else
  6626. HAVE_LIBZ_TRUE='#'
  6627. HAVE_LIBZ_FALSE=
  6628. fi
  6629. # Set conditional for sqlite3
  6630. if test "x$have_sqlite3" = "xyes"; then
  6631. HAVE_SQLITE3_TRUE=
  6632. HAVE_SQLITE3_FALSE='#'
  6633. else
  6634. HAVE_SQLITE3_TRUE='#'
  6635. HAVE_SQLITE3_FALSE=
  6636. fi
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6638. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6639. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. ac_func_search_save_LIBS=$LIBS
  6643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end confdefs.h. */
  6645. /* Override any GCC internal prototype to avoid an error.
  6646. Use char because int might match the return type of a GCC
  6647. builtin and then its argument prototype would still apply. */
  6648. #ifdef __cplusplus
  6649. extern "C"
  6650. #endif
  6651. char clock_gettime ();
  6652. int
  6653. main ()
  6654. {
  6655. return clock_gettime ();
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. for ac_lib in '' rt; do
  6661. if test -z "$ac_lib"; then
  6662. ac_res="none required"
  6663. else
  6664. ac_res=-l$ac_lib
  6665. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6666. fi
  6667. if ac_fn_cxx_try_link "$LINENO"; then :
  6668. ac_cv_search_clock_gettime=$ac_res
  6669. fi
  6670. rm -f core conftest.err conftest.$ac_objext \
  6671. conftest$ac_exeext
  6672. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6673. break
  6674. fi
  6675. done
  6676. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6677. else
  6678. ac_cv_search_clock_gettime=no
  6679. fi
  6680. rm conftest.$ac_ext
  6681. LIBS=$ac_func_search_save_LIBS
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6684. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6685. ac_res=$ac_cv_search_clock_gettime
  6686. if test "$ac_res" != no; then :
  6687. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6688. fi
  6689. # Checks for header files.
  6690. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6691. # for constant arguments. Useless!
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6693. $as_echo_n "checking for working alloca.h... " >&6; }
  6694. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6695. $as_echo_n "(cached) " >&6
  6696. else
  6697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6698. /* end confdefs.h. */
  6699. #include <alloca.h>
  6700. int
  6701. main ()
  6702. {
  6703. char *p = (char *) alloca (2 * sizeof (int));
  6704. if (p) return 0;
  6705. ;
  6706. return 0;
  6707. }
  6708. _ACEOF
  6709. if ac_fn_cxx_try_link "$LINENO"; then :
  6710. ac_cv_working_alloca_h=yes
  6711. else
  6712. ac_cv_working_alloca_h=no
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext \
  6715. conftest$ac_exeext conftest.$ac_ext
  6716. fi
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6718. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6719. if test $ac_cv_working_alloca_h = yes; then
  6720. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6721. fi
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6723. $as_echo_n "checking for alloca... " >&6; }
  6724. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6728. /* end confdefs.h. */
  6729. #ifdef __GNUC__
  6730. # define alloca __builtin_alloca
  6731. #else
  6732. # ifdef _MSC_VER
  6733. # include <malloc.h>
  6734. # define alloca _alloca
  6735. # else
  6736. # ifdef HAVE_ALLOCA_H
  6737. # include <alloca.h>
  6738. # else
  6739. # ifdef _AIX
  6740. #pragma alloca
  6741. # else
  6742. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6743. char *alloca ();
  6744. # endif
  6745. # endif
  6746. # endif
  6747. # endif
  6748. #endif
  6749. int
  6750. main ()
  6751. {
  6752. char *p = (char *) alloca (1);
  6753. if (p) return 0;
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. if ac_fn_cxx_try_link "$LINENO"; then :
  6759. ac_cv_func_alloca_works=yes
  6760. else
  6761. ac_cv_func_alloca_works=no
  6762. fi
  6763. rm -f core conftest.err conftest.$ac_objext \
  6764. conftest$ac_exeext conftest.$ac_ext
  6765. fi
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6767. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6768. if test $ac_cv_func_alloca_works = yes; then
  6769. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6770. else
  6771. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6772. # that cause trouble. Some versions do not even contain alloca or
  6773. # contain a buggy version. If you still want to use their alloca,
  6774. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6775. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6776. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6778. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6779. if test "${ac_cv_os_cray+set}" = set; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6783. /* end confdefs.h. */
  6784. #if defined CRAY && ! defined CRAY2
  6785. webecray
  6786. #else
  6787. wenotbecray
  6788. #endif
  6789. _ACEOF
  6790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6791. $EGREP "webecray" >/dev/null 2>&1; then :
  6792. ac_cv_os_cray=yes
  6793. else
  6794. ac_cv_os_cray=no
  6795. fi
  6796. rm -f conftest*
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6799. $as_echo "$ac_cv_os_cray" >&6; }
  6800. if test $ac_cv_os_cray = yes; then
  6801. for ac_func in _getb67 GETB67 getb67; do
  6802. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6803. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6804. eval as_val=\$$as_ac_var
  6805. if test "x$as_val" = x""yes; then :
  6806. cat >>confdefs.h <<_ACEOF
  6807. #define CRAY_STACKSEG_END $ac_func
  6808. _ACEOF
  6809. break
  6810. fi
  6811. done
  6812. fi
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6814. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6815. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. if test "$cross_compiling" = yes; then :
  6819. ac_cv_c_stack_direction=0
  6820. else
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. $ac_includes_default
  6824. int
  6825. find_stack_direction ()
  6826. {
  6827. static char *addr = 0;
  6828. auto char dummy;
  6829. if (addr == 0)
  6830. {
  6831. addr = &dummy;
  6832. return find_stack_direction ();
  6833. }
  6834. else
  6835. return (&dummy > addr) ? 1 : -1;
  6836. }
  6837. int
  6838. main ()
  6839. {
  6840. return find_stack_direction () < 0;
  6841. }
  6842. _ACEOF
  6843. if ac_fn_cxx_try_run "$LINENO"; then :
  6844. ac_cv_c_stack_direction=1
  6845. else
  6846. ac_cv_c_stack_direction=-1
  6847. fi
  6848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6849. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6850. fi
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6853. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6854. cat >>confdefs.h <<_ACEOF
  6855. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6856. _ACEOF
  6857. fi
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6859. $as_echo_n "checking for ANSI C header files... " >&6; }
  6860. if test "${ac_cv_header_stdc+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6864. /* end confdefs.h. */
  6865. #include <stdlib.h>
  6866. #include <stdarg.h>
  6867. #include <string.h>
  6868. #include <float.h>
  6869. int
  6870. main ()
  6871. {
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. if ac_fn_cxx_try_compile "$LINENO"; then :
  6877. ac_cv_header_stdc=yes
  6878. else
  6879. ac_cv_header_stdc=no
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6882. if test $ac_cv_header_stdc = yes; then
  6883. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6885. /* end confdefs.h. */
  6886. #include <string.h>
  6887. _ACEOF
  6888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6889. $EGREP "memchr" >/dev/null 2>&1; then :
  6890. else
  6891. ac_cv_header_stdc=no
  6892. fi
  6893. rm -f conftest*
  6894. fi
  6895. if test $ac_cv_header_stdc = yes; then
  6896. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. #include <stdlib.h>
  6900. _ACEOF
  6901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6902. $EGREP "free" >/dev/null 2>&1; then :
  6903. else
  6904. ac_cv_header_stdc=no
  6905. fi
  6906. rm -f conftest*
  6907. fi
  6908. if test $ac_cv_header_stdc = yes; then
  6909. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6910. if test "$cross_compiling" = yes; then :
  6911. :
  6912. else
  6913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6914. /* end confdefs.h. */
  6915. #include <ctype.h>
  6916. #include <stdlib.h>
  6917. #if ((' ' & 0x0FF) == 0x020)
  6918. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6919. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6920. #else
  6921. # define ISLOWER(c) \
  6922. (('a' <= (c) && (c) <= 'i') \
  6923. || ('j' <= (c) && (c) <= 'r') \
  6924. || ('s' <= (c) && (c) <= 'z'))
  6925. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6926. #endif
  6927. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6928. int
  6929. main ()
  6930. {
  6931. int i;
  6932. for (i = 0; i < 256; i++)
  6933. if (XOR (islower (i), ISLOWER (i))
  6934. || toupper (i) != TOUPPER (i))
  6935. return 2;
  6936. return 0;
  6937. }
  6938. _ACEOF
  6939. if ac_fn_cxx_try_run "$LINENO"; then :
  6940. else
  6941. ac_cv_header_stdc=no
  6942. fi
  6943. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6944. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6945. fi
  6946. fi
  6947. fi
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6949. $as_echo "$ac_cv_header_stdc" >&6; }
  6950. if test $ac_cv_header_stdc = yes; then
  6951. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6952. fi
  6953. case "$target" in
  6954. *mingw*)
  6955. for ac_header in winsock2.h \
  6956. ws2tcpip.h
  6957. do :
  6958. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6959. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6960. eval as_val=\$$as_ac_Header
  6961. if test "x$as_val" = x""yes; then :
  6962. cat >>confdefs.h <<_ACEOF
  6963. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6964. _ACEOF
  6965. fi
  6966. done
  6967. ;;
  6968. esac
  6969. for ac_header in argz.h \
  6970. arpa/inet.h \
  6971. fcntl.h \
  6972. float.h \
  6973. inttypes.h \
  6974. io.h \
  6975. langinfo.h \
  6976. libintl.h \
  6977. limits.h \
  6978. locale.h \
  6979. malloc.h \
  6980. netdb.h \
  6981. netinet/in.h \
  6982. stddef.h \
  6983. stdint.h \
  6984. stdio_ext.h \
  6985. stdlib.h \
  6986. string.h \
  6987. strings.h \
  6988. sys/ioctl.h \
  6989. sys/param.h \
  6990. sys/socket.h \
  6991. sys/time.h \
  6992. termios.h \
  6993. unistd.h \
  6994. utime.h \
  6995. wchar.h \
  6996. ifaddrs.h
  6997. do :
  6998. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6999. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7000. eval as_val=\$$as_ac_Header
  7001. if test "x$as_val" = x""yes; then :
  7002. cat >>confdefs.h <<_ACEOF
  7003. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7004. _ACEOF
  7005. fi
  7006. done
  7007. # Checks for typedefs, structures, and compiler characteristics.
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7009. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7010. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end confdefs.h. */
  7015. #include <stdbool.h>
  7016. #ifndef bool
  7017. "error: bool is not defined"
  7018. #endif
  7019. #ifndef false
  7020. "error: false is not defined"
  7021. #endif
  7022. #if false
  7023. "error: false is not 0"
  7024. #endif
  7025. #ifndef true
  7026. "error: true is not defined"
  7027. #endif
  7028. #if true != 1
  7029. "error: true is not 1"
  7030. #endif
  7031. #ifndef __bool_true_false_are_defined
  7032. "error: __bool_true_false_are_defined is not defined"
  7033. #endif
  7034. struct s { _Bool s: 1; _Bool t; } s;
  7035. char a[true == 1 ? 1 : -1];
  7036. char b[false == 0 ? 1 : -1];
  7037. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7038. char d[(bool) 0.5 == true ? 1 : -1];
  7039. bool e = &s;
  7040. char f[(_Bool) 0.0 == false ? 1 : -1];
  7041. char g[true];
  7042. char h[sizeof (_Bool)];
  7043. char i[sizeof s.t];
  7044. enum { j = false, k = true, l = false * true, m = true * 256 };
  7045. /* The following fails for
  7046. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7047. _Bool n[m];
  7048. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7049. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7050. # if defined __xlc__ || defined __GNUC__
  7051. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7052. reported by James Lemley on 2005-10-05; see
  7053. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7054. This test is not quite right, since xlc is allowed to
  7055. reject this program, as the initializer for xlcbug is
  7056. not one of the forms that C requires support for.
  7057. However, doing the test right would require a runtime
  7058. test, and that would make cross-compilation harder.
  7059. Let us hope that IBM fixes the xlc bug, and also adds
  7060. support for this kind of constant expression. In the
  7061. meantime, this test will reject xlc, which is OK, since
  7062. our stdbool.h substitute should suffice. We also test
  7063. this with GCC, where it should work, to detect more
  7064. quickly whether someone messes up the test in the
  7065. future. */
  7066. char digs[] = "0123456789";
  7067. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7068. # endif
  7069. /* Catch a bug in an HP-UX C compiler. See
  7070. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7071. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7072. */
  7073. _Bool q = true;
  7074. _Bool *pq = &q;
  7075. int
  7076. main ()
  7077. {
  7078. *pq |= q;
  7079. *pq |= ! q;
  7080. /* Refer to every declared value, to avoid compiler optimizations. */
  7081. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7082. + !m + !n + !o + !p + !q + !pq);
  7083. ;
  7084. return 0;
  7085. }
  7086. _ACEOF
  7087. if ac_fn_cxx_try_compile "$LINENO"; then :
  7088. ac_cv_header_stdbool_h=yes
  7089. else
  7090. ac_cv_header_stdbool_h=no
  7091. fi
  7092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7093. fi
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7095. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7096. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7097. if test "x$ac_cv_type__Bool" = x""yes; then :
  7098. cat >>confdefs.h <<_ACEOF
  7099. #define HAVE__BOOL 1
  7100. _ACEOF
  7101. fi
  7102. if test $ac_cv_header_stdbool_h = yes; then
  7103. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7104. fi
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7106. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7107. if test "${ac_cv_c_const+set}" = set; then :
  7108. $as_echo_n "(cached) " >&6
  7109. else
  7110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7111. /* end confdefs.h. */
  7112. int
  7113. main ()
  7114. {
  7115. /* FIXME: Include the comments suggested by Paul. */
  7116. #ifndef __cplusplus
  7117. /* Ultrix mips cc rejects this. */
  7118. typedef int charset[2];
  7119. const charset cs;
  7120. /* SunOS 4.1.1 cc rejects this. */
  7121. char const *const *pcpcc;
  7122. char **ppc;
  7123. /* NEC SVR4.0.2 mips cc rejects this. */
  7124. struct point {int x, y;};
  7125. static struct point const zero = {0,0};
  7126. /* AIX XL C 1.02.0.0 rejects this.
  7127. It does not let you subtract one const X* pointer from another in
  7128. an arm of an if-expression whose if-part is not a constant
  7129. expression */
  7130. const char *g = "string";
  7131. pcpcc = &g + (g ? g-g : 0);
  7132. /* HPUX 7.0 cc rejects these. */
  7133. ++pcpcc;
  7134. ppc = (char**) pcpcc;
  7135. pcpcc = (char const *const *) ppc;
  7136. { /* SCO 3.2v4 cc rejects this. */
  7137. char *t;
  7138. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7139. *t++ = 0;
  7140. if (s) return 0;
  7141. }
  7142. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7143. int x[] = {25, 17};
  7144. const int *foo = &x[0];
  7145. ++foo;
  7146. }
  7147. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7148. typedef const int *iptr;
  7149. iptr p = 0;
  7150. ++p;
  7151. }
  7152. { /* AIX XL C 1.02.0.0 rejects this saying
  7153. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7154. struct s { int j; const int *ap[3]; };
  7155. struct s *b; b->j = 5;
  7156. }
  7157. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7158. const int foo = 10;
  7159. if (!foo) return 0;
  7160. }
  7161. return !cs[0] && !zero.x;
  7162. #endif
  7163. ;
  7164. return 0;
  7165. }
  7166. _ACEOF
  7167. if ac_fn_cxx_try_compile "$LINENO"; then :
  7168. ac_cv_c_const=yes
  7169. else
  7170. ac_cv_c_const=no
  7171. fi
  7172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7173. fi
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7175. $as_echo "$ac_cv_c_const" >&6; }
  7176. if test $ac_cv_c_const = no; then
  7177. $as_echo "#define const /**/" >>confdefs.h
  7178. fi
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7180. $as_echo_n "checking for inline... " >&6; }
  7181. if test "${ac_cv_c_inline+set}" = set; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. ac_cv_c_inline=no
  7185. for ac_kw in inline __inline__ __inline; do
  7186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7187. /* end confdefs.h. */
  7188. #ifndef __cplusplus
  7189. typedef int foo_t;
  7190. static $ac_kw foo_t static_foo () {return 0; }
  7191. $ac_kw foo_t foo () {return 0; }
  7192. #endif
  7193. _ACEOF
  7194. if ac_fn_cxx_try_compile "$LINENO"; then :
  7195. ac_cv_c_inline=$ac_kw
  7196. fi
  7197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7198. test "$ac_cv_c_inline" != no && break
  7199. done
  7200. fi
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7202. $as_echo "$ac_cv_c_inline" >&6; }
  7203. case $ac_cv_c_inline in
  7204. inline | yes) ;;
  7205. *)
  7206. case $ac_cv_c_inline in
  7207. no) ac_val=;;
  7208. *) ac_val=$ac_cv_c_inline;;
  7209. esac
  7210. cat >>confdefs.h <<_ACEOF
  7211. #ifndef __cplusplus
  7212. #define inline $ac_val
  7213. #endif
  7214. _ACEOF
  7215. ;;
  7216. esac
  7217. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7218. case $ac_cv_c_int16_t in #(
  7219. no|yes) ;; #(
  7220. *)
  7221. cat >>confdefs.h <<_ACEOF
  7222. #define int16_t $ac_cv_c_int16_t
  7223. _ACEOF
  7224. ;;
  7225. esac
  7226. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7227. case $ac_cv_c_int32_t in #(
  7228. no|yes) ;; #(
  7229. *)
  7230. cat >>confdefs.h <<_ACEOF
  7231. #define int32_t $ac_cv_c_int32_t
  7232. _ACEOF
  7233. ;;
  7234. esac
  7235. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7236. case $ac_cv_c_int64_t in #(
  7237. no|yes) ;; #(
  7238. *)
  7239. cat >>confdefs.h <<_ACEOF
  7240. #define int64_t $ac_cv_c_int64_t
  7241. _ACEOF
  7242. ;;
  7243. esac
  7244. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7245. case $ac_cv_c_int8_t in #(
  7246. no|yes) ;; #(
  7247. *)
  7248. cat >>confdefs.h <<_ACEOF
  7249. #define int8_t $ac_cv_c_int8_t
  7250. _ACEOF
  7251. ;;
  7252. esac
  7253. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7254. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7255. else
  7256. cat >>confdefs.h <<_ACEOF
  7257. #define mode_t int
  7258. _ACEOF
  7259. fi
  7260. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7261. if test "x$ac_cv_type_off_t" = x""yes; then :
  7262. else
  7263. cat >>confdefs.h <<_ACEOF
  7264. #define off_t long int
  7265. _ACEOF
  7266. fi
  7267. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7268. if test "x$ac_cv_type_size_t" = x""yes; then :
  7269. else
  7270. cat >>confdefs.h <<_ACEOF
  7271. #define size_t unsigned int
  7272. _ACEOF
  7273. fi
  7274. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7275. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7276. else
  7277. cat >>confdefs.h <<_ACEOF
  7278. #define ssize_t int
  7279. _ACEOF
  7280. fi
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7282. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7283. if test "${ac_cv_header_time+set}" = set; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7287. /* end confdefs.h. */
  7288. #include <sys/types.h>
  7289. #include <sys/time.h>
  7290. #include <time.h>
  7291. int
  7292. main ()
  7293. {
  7294. if ((struct tm *) 0)
  7295. return 0;
  7296. ;
  7297. return 0;
  7298. }
  7299. _ACEOF
  7300. if ac_fn_cxx_try_compile "$LINENO"; then :
  7301. ac_cv_header_time=yes
  7302. else
  7303. ac_cv_header_time=no
  7304. fi
  7305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7306. fi
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7308. $as_echo "$ac_cv_header_time" >&6; }
  7309. if test $ac_cv_header_time = yes; then
  7310. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7311. fi
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7313. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7314. if test "${ac_cv_struct_tm+set}" = set; then :
  7315. $as_echo_n "(cached) " >&6
  7316. else
  7317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7318. /* end confdefs.h. */
  7319. #include <sys/types.h>
  7320. #include <time.h>
  7321. int
  7322. main ()
  7323. {
  7324. struct tm tm;
  7325. int *p = &tm.tm_sec;
  7326. return !p;
  7327. ;
  7328. return 0;
  7329. }
  7330. _ACEOF
  7331. if ac_fn_cxx_try_compile "$LINENO"; then :
  7332. ac_cv_struct_tm=time.h
  7333. else
  7334. ac_cv_struct_tm=sys/time.h
  7335. fi
  7336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7337. fi
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7339. $as_echo "$ac_cv_struct_tm" >&6; }
  7340. if test $ac_cv_struct_tm = sys/time.h; then
  7341. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7342. fi
  7343. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7344. case $ac_cv_c_uint16_t in #(
  7345. no|yes) ;; #(
  7346. *)
  7347. cat >>confdefs.h <<_ACEOF
  7348. #define uint16_t $ac_cv_c_uint16_t
  7349. _ACEOF
  7350. ;;
  7351. esac
  7352. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7353. case $ac_cv_c_uint32_t in #(
  7354. no|yes) ;; #(
  7355. *)
  7356. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7357. cat >>confdefs.h <<_ACEOF
  7358. #define uint32_t $ac_cv_c_uint32_t
  7359. _ACEOF
  7360. ;;
  7361. esac
  7362. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7363. case $ac_cv_c_uint64_t in #(
  7364. no|yes) ;; #(
  7365. *)
  7366. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7367. cat >>confdefs.h <<_ACEOF
  7368. #define uint64_t $ac_cv_c_uint64_t
  7369. _ACEOF
  7370. ;;
  7371. esac
  7372. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7373. case $ac_cv_c_uint8_t in #(
  7374. no|yes) ;; #(
  7375. *)
  7376. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7377. cat >>confdefs.h <<_ACEOF
  7378. #define uint8_t $ac_cv_c_uint8_t
  7379. _ACEOF
  7380. ;;
  7381. esac
  7382. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7383. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7384. else
  7385. cat >>confdefs.h <<_ACEOF
  7386. #define pid_t int
  7387. _ACEOF
  7388. fi
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7390. $as_echo_n "checking for working volatile... " >&6; }
  7391. if test "${ac_cv_c_volatile+set}" = set; then :
  7392. $as_echo_n "(cached) " >&6
  7393. else
  7394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7395. /* end confdefs.h. */
  7396. int
  7397. main ()
  7398. {
  7399. volatile int x;
  7400. int * volatile y = (int *) 0;
  7401. return !x && !y;
  7402. ;
  7403. return 0;
  7404. }
  7405. _ACEOF
  7406. if ac_fn_cxx_try_compile "$LINENO"; then :
  7407. ac_cv_c_volatile=yes
  7408. else
  7409. ac_cv_c_volatile=no
  7410. fi
  7411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7414. $as_echo "$ac_cv_c_volatile" >&6; }
  7415. if test $ac_cv_c_volatile = no; then
  7416. $as_echo "#define volatile /**/" >>confdefs.h
  7417. fi
  7418. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7419. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7420. cat >>confdefs.h <<_ACEOF
  7421. #define HAVE_PTRDIFF_T 1
  7422. _ACEOF
  7423. fi
  7424. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7425. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7426. cat >>confdefs.h <<_ACEOF
  7427. #define HAVE_STRUCT_TIMESPEC 1
  7428. _ACEOF
  7429. fi
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7431. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7432. if test "${ac_cv_c_bigendian+set}" = set; then :
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. ac_cv_c_bigendian=unknown
  7436. # See if we're dealing with a universal compiler.
  7437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7438. /* end confdefs.h. */
  7439. #ifndef __APPLE_CC__
  7440. not a universal capable compiler
  7441. #endif
  7442. typedef int dummy;
  7443. _ACEOF
  7444. if ac_fn_cxx_try_compile "$LINENO"; then :
  7445. # Check for potential -arch flags. It is not universal unless
  7446. # there are at least two -arch flags with different values.
  7447. ac_arch=
  7448. ac_prev=
  7449. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7450. if test -n "$ac_prev"; then
  7451. case $ac_word in
  7452. i?86 | x86_64 | ppc | ppc64)
  7453. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7454. ac_arch=$ac_word
  7455. else
  7456. ac_cv_c_bigendian=universal
  7457. break
  7458. fi
  7459. ;;
  7460. esac
  7461. ac_prev=
  7462. elif test "x$ac_word" = "x-arch"; then
  7463. ac_prev=arch
  7464. fi
  7465. done
  7466. fi
  7467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7468. if test $ac_cv_c_bigendian = unknown; then
  7469. # See if sys/param.h defines the BYTE_ORDER macro.
  7470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7471. /* end confdefs.h. */
  7472. #include <sys/types.h>
  7473. #include <sys/param.h>
  7474. int
  7475. main ()
  7476. {
  7477. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7478. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7479. && LITTLE_ENDIAN)
  7480. bogus endian macros
  7481. #endif
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. if ac_fn_cxx_try_compile "$LINENO"; then :
  7487. # It does; now see whether it defined to BIG_ENDIAN or not.
  7488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7489. /* end confdefs.h. */
  7490. #include <sys/types.h>
  7491. #include <sys/param.h>
  7492. int
  7493. main ()
  7494. {
  7495. #if BYTE_ORDER != BIG_ENDIAN
  7496. not big endian
  7497. #endif
  7498. ;
  7499. return 0;
  7500. }
  7501. _ACEOF
  7502. if ac_fn_cxx_try_compile "$LINENO"; then :
  7503. ac_cv_c_bigendian=yes
  7504. else
  7505. ac_cv_c_bigendian=no
  7506. fi
  7507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7510. fi
  7511. if test $ac_cv_c_bigendian = unknown; then
  7512. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7514. /* end confdefs.h. */
  7515. #include <limits.h>
  7516. int
  7517. main ()
  7518. {
  7519. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7520. bogus endian macros
  7521. #endif
  7522. ;
  7523. return 0;
  7524. }
  7525. _ACEOF
  7526. if ac_fn_cxx_try_compile "$LINENO"; then :
  7527. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7529. /* end confdefs.h. */
  7530. #include <limits.h>
  7531. int
  7532. main ()
  7533. {
  7534. #ifndef _BIG_ENDIAN
  7535. not big endian
  7536. #endif
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. if ac_fn_cxx_try_compile "$LINENO"; then :
  7542. ac_cv_c_bigendian=yes
  7543. else
  7544. ac_cv_c_bigendian=no
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7547. fi
  7548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7549. fi
  7550. if test $ac_cv_c_bigendian = unknown; then
  7551. # Compile a test program.
  7552. if test "$cross_compiling" = yes; then :
  7553. # Try to guess by grepping values from an object file.
  7554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7555. /* end confdefs.h. */
  7556. short int ascii_mm[] =
  7557. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7558. short int ascii_ii[] =
  7559. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7560. int use_ascii (int i) {
  7561. return ascii_mm[i] + ascii_ii[i];
  7562. }
  7563. short int ebcdic_ii[] =
  7564. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7565. short int ebcdic_mm[] =
  7566. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7567. int use_ebcdic (int i) {
  7568. return ebcdic_mm[i] + ebcdic_ii[i];
  7569. }
  7570. extern int foo;
  7571. int
  7572. main ()
  7573. {
  7574. return use_ascii (foo) == use_ebcdic (foo);
  7575. ;
  7576. return 0;
  7577. }
  7578. _ACEOF
  7579. if ac_fn_cxx_try_compile "$LINENO"; then :
  7580. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7581. ac_cv_c_bigendian=yes
  7582. fi
  7583. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7584. if test "$ac_cv_c_bigendian" = unknown; then
  7585. ac_cv_c_bigendian=no
  7586. else
  7587. # finding both strings is unlikely to happen, but who knows?
  7588. ac_cv_c_bigendian=unknown
  7589. fi
  7590. fi
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7593. else
  7594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7595. /* end confdefs.h. */
  7596. $ac_includes_default
  7597. int
  7598. main ()
  7599. {
  7600. /* Are we little or big endian? From Harbison&Steele. */
  7601. union
  7602. {
  7603. long int l;
  7604. char c[sizeof (long int)];
  7605. } u;
  7606. u.l = 1;
  7607. return u.c[sizeof (long int) - 1] == 1;
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. if ac_fn_cxx_try_run "$LINENO"; then :
  7613. ac_cv_c_bigendian=no
  7614. else
  7615. ac_cv_c_bigendian=yes
  7616. fi
  7617. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7618. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7619. fi
  7620. fi
  7621. fi
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7623. $as_echo "$ac_cv_c_bigendian" >&6; }
  7624. case $ac_cv_c_bigendian in #(
  7625. yes)
  7626. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7627. ;; #(
  7628. no)
  7629. ;; #(
  7630. universal)
  7631. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7632. ;; #(
  7633. *)
  7634. as_fn_error "unknown endianness
  7635. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7636. esac
  7637. # Check whether --enable-largefile was given.
  7638. if test "${enable_largefile+set}" = set; then :
  7639. enableval=$enable_largefile;
  7640. fi
  7641. if test "$enable_largefile" != no; then
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7643. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7644. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7645. $as_echo_n "(cached) " >&6
  7646. else
  7647. ac_cv_sys_largefile_CC=no
  7648. if test "$GCC" != yes; then
  7649. ac_save_CC=$CC
  7650. while :; do
  7651. # IRIX 6.2 and later do not support large files by default,
  7652. # so use the C compiler's -n32 option if that helps.
  7653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7654. /* end confdefs.h. */
  7655. #include <sys/types.h>
  7656. /* Check that off_t can represent 2**63 - 1 correctly.
  7657. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7658. since some C++ compilers masquerading as C compilers
  7659. incorrectly reject 9223372036854775807. */
  7660. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7661. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7662. && LARGE_OFF_T % 2147483647 == 1)
  7663. ? 1 : -1];
  7664. int
  7665. main ()
  7666. {
  7667. ;
  7668. return 0;
  7669. }
  7670. _ACEOF
  7671. if ac_fn_cxx_try_compile "$LINENO"; then :
  7672. break
  7673. fi
  7674. rm -f core conftest.err conftest.$ac_objext
  7675. CC="$CC -n32"
  7676. if ac_fn_cxx_try_compile "$LINENO"; then :
  7677. ac_cv_sys_largefile_CC=' -n32'; break
  7678. fi
  7679. rm -f core conftest.err conftest.$ac_objext
  7680. break
  7681. done
  7682. CC=$ac_save_CC
  7683. rm -f conftest.$ac_ext
  7684. fi
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7687. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7688. if test "$ac_cv_sys_largefile_CC" != no; then
  7689. CC=$CC$ac_cv_sys_largefile_CC
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7692. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7693. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. while :; do
  7697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7698. /* end confdefs.h. */
  7699. #include <sys/types.h>
  7700. /* Check that off_t can represent 2**63 - 1 correctly.
  7701. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7702. since some C++ compilers masquerading as C compilers
  7703. incorrectly reject 9223372036854775807. */
  7704. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7705. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7706. && LARGE_OFF_T % 2147483647 == 1)
  7707. ? 1 : -1];
  7708. int
  7709. main ()
  7710. {
  7711. ;
  7712. return 0;
  7713. }
  7714. _ACEOF
  7715. if ac_fn_cxx_try_compile "$LINENO"; then :
  7716. ac_cv_sys_file_offset_bits=no; break
  7717. fi
  7718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7720. /* end confdefs.h. */
  7721. #define _FILE_OFFSET_BITS 64
  7722. #include <sys/types.h>
  7723. /* Check that off_t can represent 2**63 - 1 correctly.
  7724. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7725. since some C++ compilers masquerading as C compilers
  7726. incorrectly reject 9223372036854775807. */
  7727. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7728. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7729. && LARGE_OFF_T % 2147483647 == 1)
  7730. ? 1 : -1];
  7731. int
  7732. main ()
  7733. {
  7734. ;
  7735. return 0;
  7736. }
  7737. _ACEOF
  7738. if ac_fn_cxx_try_compile "$LINENO"; then :
  7739. ac_cv_sys_file_offset_bits=64; break
  7740. fi
  7741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7742. ac_cv_sys_file_offset_bits=unknown
  7743. break
  7744. done
  7745. fi
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7747. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7748. case $ac_cv_sys_file_offset_bits in #(
  7749. no | unknown) ;;
  7750. *)
  7751. cat >>confdefs.h <<_ACEOF
  7752. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7753. _ACEOF
  7754. ;;
  7755. esac
  7756. rm -rf conftest*
  7757. if test $ac_cv_sys_file_offset_bits = unknown; then
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7759. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7760. if test "${ac_cv_sys_large_files+set}" = set; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. while :; do
  7764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7765. /* end confdefs.h. */
  7766. #include <sys/types.h>
  7767. /* Check that off_t can represent 2**63 - 1 correctly.
  7768. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7769. since some C++ compilers masquerading as C compilers
  7770. incorrectly reject 9223372036854775807. */
  7771. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7772. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7773. && LARGE_OFF_T % 2147483647 == 1)
  7774. ? 1 : -1];
  7775. int
  7776. main ()
  7777. {
  7778. ;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_cxx_try_compile "$LINENO"; then :
  7783. ac_cv_sys_large_files=no; break
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7787. /* end confdefs.h. */
  7788. #define _LARGE_FILES 1
  7789. #include <sys/types.h>
  7790. /* Check that off_t can represent 2**63 - 1 correctly.
  7791. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7792. since some C++ compilers masquerading as C compilers
  7793. incorrectly reject 9223372036854775807. */
  7794. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7795. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7796. && LARGE_OFF_T % 2147483647 == 1)
  7797. ? 1 : -1];
  7798. int
  7799. main ()
  7800. {
  7801. ;
  7802. return 0;
  7803. }
  7804. _ACEOF
  7805. if ac_fn_cxx_try_compile "$LINENO"; then :
  7806. ac_cv_sys_large_files=1; break
  7807. fi
  7808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7809. ac_cv_sys_large_files=unknown
  7810. break
  7811. done
  7812. fi
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7814. $as_echo "$ac_cv_sys_large_files" >&6; }
  7815. case $ac_cv_sys_large_files in #(
  7816. no | unknown) ;;
  7817. *)
  7818. cat >>confdefs.h <<_ACEOF
  7819. #define _LARGE_FILES $ac_cv_sys_large_files
  7820. _ACEOF
  7821. ;;
  7822. esac
  7823. rm -rf conftest*
  7824. fi
  7825. fi
  7826. # Checks for library functions.
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7828. $as_echo_n "checking whether NLS is requested... " >&6; }
  7829. # Check whether --enable-nls was given.
  7830. if test "${enable_nls+set}" = set; then :
  7831. enableval=$enable_nls; USE_NLS=$enableval
  7832. else
  7833. USE_NLS=yes
  7834. fi
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7836. $as_echo "$USE_NLS" >&6; }
  7837. GETTEXT_MACRO_VERSION=0.17
  7838. # Prepare PATH_SEPARATOR.
  7839. # The user is always right.
  7840. if test "${PATH_SEPARATOR+set}" != set; then
  7841. echo "#! /bin/sh" >conf$$.sh
  7842. echo "exit 0" >>conf$$.sh
  7843. chmod +x conf$$.sh
  7844. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7845. PATH_SEPARATOR=';'
  7846. else
  7847. PATH_SEPARATOR=:
  7848. fi
  7849. rm -f conf$$.sh
  7850. fi
  7851. # Find out how to test for executable files. Don't use a zero-byte file,
  7852. # as systems may use methods other than mode bits to determine executability.
  7853. cat >conf$$.file <<_ASEOF
  7854. #! /bin/sh
  7855. exit 0
  7856. _ASEOF
  7857. chmod +x conf$$.file
  7858. if test -x conf$$.file >/dev/null 2>&1; then
  7859. ac_executable_p="test -x"
  7860. else
  7861. ac_executable_p="test -f"
  7862. fi
  7863. rm -f conf$$.file
  7864. # Extract the first word of "msgfmt", so it can be a program name with args.
  7865. set dummy msgfmt; ac_word=$2
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7867. $as_echo_n "checking for $ac_word... " >&6; }
  7868. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. case "$MSGFMT" in
  7872. [\\/]* | ?:[\\/]*)
  7873. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7877. for ac_dir in $PATH; do
  7878. IFS="$ac_save_IFS"
  7879. test -z "$ac_dir" && ac_dir=.
  7880. for ac_exec_ext in '' $ac_executable_extensions; do
  7881. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7882. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7883. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7884. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7885. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7886. break 2
  7887. fi
  7888. fi
  7889. done
  7890. done
  7891. IFS="$ac_save_IFS"
  7892. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7893. ;;
  7894. esac
  7895. fi
  7896. MSGFMT="$ac_cv_path_MSGFMT"
  7897. if test "$MSGFMT" != ":"; then
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7899. $as_echo "$MSGFMT" >&6; }
  7900. else
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7902. $as_echo "no" >&6; }
  7903. fi
  7904. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7905. set dummy gmsgfmt; ac_word=$2
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7907. $as_echo_n "checking for $ac_word... " >&6; }
  7908. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7909. $as_echo_n "(cached) " >&6
  7910. else
  7911. case $GMSGFMT in
  7912. [\\/]* | ?:[\\/]*)
  7913. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7914. ;;
  7915. *)
  7916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7917. for as_dir in $PATH
  7918. do
  7919. IFS=$as_save_IFS
  7920. test -z "$as_dir" && as_dir=.
  7921. for ac_exec_ext in '' $ac_executable_extensions; do
  7922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7923. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7925. break 2
  7926. fi
  7927. done
  7928. done
  7929. IFS=$as_save_IFS
  7930. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7931. ;;
  7932. esac
  7933. fi
  7934. GMSGFMT=$ac_cv_path_GMSGFMT
  7935. if test -n "$GMSGFMT"; then
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7937. $as_echo "$GMSGFMT" >&6; }
  7938. else
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7940. $as_echo "no" >&6; }
  7941. fi
  7942. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7943. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7944. *) MSGFMT_015=$MSGFMT ;;
  7945. esac
  7946. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7947. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7948. *) GMSGFMT_015=$GMSGFMT ;;
  7949. esac
  7950. # Prepare PATH_SEPARATOR.
  7951. # The user is always right.
  7952. if test "${PATH_SEPARATOR+set}" != set; then
  7953. echo "#! /bin/sh" >conf$$.sh
  7954. echo "exit 0" >>conf$$.sh
  7955. chmod +x conf$$.sh
  7956. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7957. PATH_SEPARATOR=';'
  7958. else
  7959. PATH_SEPARATOR=:
  7960. fi
  7961. rm -f conf$$.sh
  7962. fi
  7963. # Find out how to test for executable files. Don't use a zero-byte file,
  7964. # as systems may use methods other than mode bits to determine executability.
  7965. cat >conf$$.file <<_ASEOF
  7966. #! /bin/sh
  7967. exit 0
  7968. _ASEOF
  7969. chmod +x conf$$.file
  7970. if test -x conf$$.file >/dev/null 2>&1; then
  7971. ac_executable_p="test -x"
  7972. else
  7973. ac_executable_p="test -f"
  7974. fi
  7975. rm -f conf$$.file
  7976. # Extract the first word of "xgettext", so it can be a program name with args.
  7977. set dummy xgettext; ac_word=$2
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7979. $as_echo_n "checking for $ac_word... " >&6; }
  7980. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7981. $as_echo_n "(cached) " >&6
  7982. else
  7983. case "$XGETTEXT" in
  7984. [\\/]* | ?:[\\/]*)
  7985. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7986. ;;
  7987. *)
  7988. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7989. for ac_dir in $PATH; do
  7990. IFS="$ac_save_IFS"
  7991. test -z "$ac_dir" && ac_dir=.
  7992. for ac_exec_ext in '' $ac_executable_extensions; do
  7993. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7994. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7995. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7996. (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
  7997. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7998. break 2
  7999. fi
  8000. fi
  8001. done
  8002. done
  8003. IFS="$ac_save_IFS"
  8004. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8005. ;;
  8006. esac
  8007. fi
  8008. XGETTEXT="$ac_cv_path_XGETTEXT"
  8009. if test "$XGETTEXT" != ":"; then
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8011. $as_echo "$XGETTEXT" >&6; }
  8012. else
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8014. $as_echo "no" >&6; }
  8015. fi
  8016. rm -f messages.po
  8017. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8018. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8019. *) XGETTEXT_015=$XGETTEXT ;;
  8020. esac
  8021. # Prepare PATH_SEPARATOR.
  8022. # The user is always right.
  8023. if test "${PATH_SEPARATOR+set}" != set; then
  8024. echo "#! /bin/sh" >conf$$.sh
  8025. echo "exit 0" >>conf$$.sh
  8026. chmod +x conf$$.sh
  8027. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8028. PATH_SEPARATOR=';'
  8029. else
  8030. PATH_SEPARATOR=:
  8031. fi
  8032. rm -f conf$$.sh
  8033. fi
  8034. # Find out how to test for executable files. Don't use a zero-byte file,
  8035. # as systems may use methods other than mode bits to determine executability.
  8036. cat >conf$$.file <<_ASEOF
  8037. #! /bin/sh
  8038. exit 0
  8039. _ASEOF
  8040. chmod +x conf$$.file
  8041. if test -x conf$$.file >/dev/null 2>&1; then
  8042. ac_executable_p="test -x"
  8043. else
  8044. ac_executable_p="test -f"
  8045. fi
  8046. rm -f conf$$.file
  8047. # Extract the first word of "msgmerge", so it can be a program name with args.
  8048. set dummy msgmerge; ac_word=$2
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8050. $as_echo_n "checking for $ac_word... " >&6; }
  8051. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8052. $as_echo_n "(cached) " >&6
  8053. else
  8054. case "$MSGMERGE" in
  8055. [\\/]* | ?:[\\/]*)
  8056. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8057. ;;
  8058. *)
  8059. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8060. for ac_dir in $PATH; do
  8061. IFS="$ac_save_IFS"
  8062. test -z "$ac_dir" && ac_dir=.
  8063. for ac_exec_ext in '' $ac_executable_extensions; do
  8064. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8065. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8066. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8067. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8068. break 2
  8069. fi
  8070. fi
  8071. done
  8072. done
  8073. IFS="$ac_save_IFS"
  8074. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8075. ;;
  8076. esac
  8077. fi
  8078. MSGMERGE="$ac_cv_path_MSGMERGE"
  8079. if test "$MSGMERGE" != ":"; then
  8080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8081. $as_echo "$MSGMERGE" >&6; }
  8082. else
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8084. $as_echo "no" >&6; }
  8085. fi
  8086. test -n "$localedir" || localedir='${datadir}/locale'
  8087. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8088. ac_config_commands="$ac_config_commands po-directories"
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8090. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8091. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8092. $as_echo_n "(cached) " >&6
  8093. else
  8094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8095. /* end confdefs.h. */
  8096. #include <features.h>
  8097. #ifdef __GNU_LIBRARY__
  8098. #if (__GLIBC__ >= 2)
  8099. Lucky GNU user
  8100. #endif
  8101. #endif
  8102. _ACEOF
  8103. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8104. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8105. ac_cv_gnu_library_2=yes
  8106. else
  8107. ac_cv_gnu_library_2=no
  8108. fi
  8109. rm -f conftest*
  8110. fi
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8112. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8113. GLIBC2="$ac_cv_gnu_library_2"
  8114. CFLAG_VISIBILITY=
  8115. HAVE_VISIBILITY=0
  8116. if test -n "$GCC"; then
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8118. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8119. if test "${gl_cv_cc_visibility+set}" = set; then :
  8120. $as_echo_n "(cached) " >&6
  8121. else
  8122. gl_save_CFLAGS="$CFLAGS"
  8123. CFLAGS="$CFLAGS -fvisibility=hidden"
  8124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8125. /* end confdefs.h. */
  8126. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8127. extern __attribute__((__visibility__("default"))) int exportedvar;
  8128. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8129. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8130. int
  8131. main ()
  8132. {
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. if ac_fn_cxx_try_compile "$LINENO"; then :
  8138. gl_cv_cc_visibility=yes
  8139. else
  8140. gl_cv_cc_visibility=no
  8141. fi
  8142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8143. CFLAGS="$gl_save_CFLAGS"
  8144. fi
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8146. $as_echo "$gl_cv_cc_visibility" >&6; }
  8147. if test $gl_cv_cc_visibility = yes; then
  8148. CFLAG_VISIBILITY="-fvisibility=hidden"
  8149. HAVE_VISIBILITY=1
  8150. fi
  8151. fi
  8152. cat >>confdefs.h <<_ACEOF
  8153. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8154. _ACEOF
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8156. $as_echo_n "checking for stdint.h... " >&6; }
  8157. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8158. $as_echo_n "(cached) " >&6
  8159. else
  8160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8161. /* end confdefs.h. */
  8162. #include <sys/types.h>
  8163. #include <stdint.h>
  8164. int
  8165. main ()
  8166. {
  8167. uintmax_t i = (uintmax_t) -1; return !i;
  8168. ;
  8169. return 0;
  8170. }
  8171. _ACEOF
  8172. if ac_fn_cxx_try_compile "$LINENO"; then :
  8173. gl_cv_header_stdint_h=yes
  8174. else
  8175. gl_cv_header_stdint_h=no
  8176. fi
  8177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8178. fi
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8180. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8181. if test $gl_cv_header_stdint_h = yes; then
  8182. cat >>confdefs.h <<_ACEOF
  8183. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8184. _ACEOF
  8185. fi
  8186. for ac_header in $ac_header_list
  8187. do :
  8188. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8189. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8190. "
  8191. eval as_val=\$$as_ac_Header
  8192. if test "x$as_val" = x""yes; then :
  8193. cat >>confdefs.h <<_ACEOF
  8194. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8195. _ACEOF
  8196. fi
  8197. done
  8198. for ac_func in getpagesize
  8199. do :
  8200. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8201. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8202. cat >>confdefs.h <<_ACEOF
  8203. #define HAVE_GETPAGESIZE 1
  8204. _ACEOF
  8205. fi
  8206. done
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8208. $as_echo_n "checking for working mmap... " >&6; }
  8209. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. if test "$cross_compiling" = yes; then :
  8213. ac_cv_func_mmap_fixed_mapped=no
  8214. else
  8215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8216. /* end confdefs.h. */
  8217. $ac_includes_default
  8218. /* malloc might have been renamed as rpl_malloc. */
  8219. #undef malloc
  8220. /* Thanks to Mike Haertel and Jim Avera for this test.
  8221. Here is a matrix of mmap possibilities:
  8222. mmap private not fixed
  8223. mmap private fixed at somewhere currently unmapped
  8224. mmap private fixed at somewhere already mapped
  8225. mmap shared not fixed
  8226. mmap shared fixed at somewhere currently unmapped
  8227. mmap shared fixed at somewhere already mapped
  8228. For private mappings, we should verify that changes cannot be read()
  8229. back from the file, nor mmap's back from the file at a different
  8230. address. (There have been systems where private was not correctly
  8231. implemented like the infamous i386 svr4.0, and systems where the
  8232. VM page cache was not coherent with the file system buffer cache
  8233. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8234. For shared mappings, we should conversely verify that changes get
  8235. propagated back to all the places they're supposed to be.
  8236. Grep wants private fixed already mapped.
  8237. The main things grep needs to know about mmap are:
  8238. * does it exist and is it safe to write into the mmap'd area
  8239. * how to use it (BSD variants) */
  8240. #include <fcntl.h>
  8241. #include <sys/mman.h>
  8242. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8243. char *malloc ();
  8244. #endif
  8245. /* This mess was copied from the GNU getpagesize.h. */
  8246. #ifndef HAVE_GETPAGESIZE
  8247. # ifdef _SC_PAGESIZE
  8248. # define getpagesize() sysconf(_SC_PAGESIZE)
  8249. # else /* no _SC_PAGESIZE */
  8250. # ifdef HAVE_SYS_PARAM_H
  8251. # include <sys/param.h>
  8252. # ifdef EXEC_PAGESIZE
  8253. # define getpagesize() EXEC_PAGESIZE
  8254. # else /* no EXEC_PAGESIZE */
  8255. # ifdef NBPG
  8256. # define getpagesize() NBPG * CLSIZE
  8257. # ifndef CLSIZE
  8258. # define CLSIZE 1
  8259. # endif /* no CLSIZE */
  8260. # else /* no NBPG */
  8261. # ifdef NBPC
  8262. # define getpagesize() NBPC
  8263. # else /* no NBPC */
  8264. # ifdef PAGESIZE
  8265. # define getpagesize() PAGESIZE
  8266. # endif /* PAGESIZE */
  8267. # endif /* no NBPC */
  8268. # endif /* no NBPG */
  8269. # endif /* no EXEC_PAGESIZE */
  8270. # else /* no HAVE_SYS_PARAM_H */
  8271. # define getpagesize() 8192 /* punt totally */
  8272. # endif /* no HAVE_SYS_PARAM_H */
  8273. # endif /* no _SC_PAGESIZE */
  8274. #endif /* no HAVE_GETPAGESIZE */
  8275. int
  8276. main ()
  8277. {
  8278. char *data, *data2, *data3;
  8279. const char *cdata2;
  8280. int i, pagesize;
  8281. int fd, fd2;
  8282. pagesize = getpagesize ();
  8283. /* First, make a file with some known garbage in it. */
  8284. data = (char *) malloc (pagesize);
  8285. if (!data)
  8286. return 1;
  8287. for (i = 0; i < pagesize; ++i)
  8288. *(data + i) = rand ();
  8289. umask (0);
  8290. fd = creat ("conftest.mmap", 0600);
  8291. if (fd < 0)
  8292. return 2;
  8293. if (write (fd, data, pagesize) != pagesize)
  8294. return 3;
  8295. close (fd);
  8296. /* Next, check that the tail of a page is zero-filled. File must have
  8297. non-zero length, otherwise we risk SIGBUS for entire page. */
  8298. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8299. if (fd2 < 0)
  8300. return 4;
  8301. cdata2 = "";
  8302. if (write (fd2, cdata2, 1) != 1)
  8303. return 5;
  8304. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8305. if (data2 == MAP_FAILED)
  8306. return 6;
  8307. for (i = 0; i < pagesize; ++i)
  8308. if (*(data2 + i))
  8309. return 7;
  8310. close (fd2);
  8311. if (munmap (data2, pagesize))
  8312. return 8;
  8313. /* Next, try to mmap the file at a fixed address which already has
  8314. something else allocated at it. If we can, also make sure that
  8315. we see the same garbage. */
  8316. fd = open ("conftest.mmap", O_RDWR);
  8317. if (fd < 0)
  8318. return 9;
  8319. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8320. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8321. return 10;
  8322. for (i = 0; i < pagesize; ++i)
  8323. if (*(data + i) != *(data2 + i))
  8324. return 11;
  8325. /* Finally, make sure that changes to the mapped area do not
  8326. percolate back to the file as seen by read(). (This is a bug on
  8327. some variants of i386 svr4.0.) */
  8328. for (i = 0; i < pagesize; ++i)
  8329. *(data2 + i) = *(data2 + i) + 1;
  8330. data3 = (char *) malloc (pagesize);
  8331. if (!data3)
  8332. return 12;
  8333. if (read (fd, data3, pagesize) != pagesize)
  8334. return 13;
  8335. for (i = 0; i < pagesize; ++i)
  8336. if (*(data + i) != *(data3 + i))
  8337. return 14;
  8338. close (fd);
  8339. return 0;
  8340. }
  8341. _ACEOF
  8342. if ac_fn_cxx_try_run "$LINENO"; then :
  8343. ac_cv_func_mmap_fixed_mapped=yes
  8344. else
  8345. ac_cv_func_mmap_fixed_mapped=no
  8346. fi
  8347. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8348. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8349. fi
  8350. fi
  8351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8352. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8353. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8354. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8355. fi
  8356. rm -f conftest.mmap conftest.txt
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8358. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8359. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8360. $as_echo_n "(cached) " >&6
  8361. else
  8362. gt_cv_int_divbyzero_sigfpe=
  8363. case "$host_os" in
  8364. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8365. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8366. # compiling. If we were to perform the real test, 1 Crash Report
  8367. # dialog window would pop up.
  8368. case "$host_cpu" in
  8369. i[34567]86 | x86_64)
  8370. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8371. esac
  8372. ;;
  8373. esac
  8374. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8375. if test "$cross_compiling" = yes; then :
  8376. # Guess based on the CPU.
  8377. case "$host_cpu" in
  8378. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8379. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8380. *)
  8381. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8382. esac
  8383. else
  8384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8385. /* end confdefs.h. */
  8386. #include <stdlib.h>
  8387. #include <signal.h>
  8388. static void
  8389. sigfpe_handler (int sig)
  8390. {
  8391. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8392. exit (sig != SIGFPE);
  8393. }
  8394. int x = 1;
  8395. int y = 0;
  8396. int z;
  8397. int nan;
  8398. int main ()
  8399. {
  8400. signal (SIGFPE, sigfpe_handler);
  8401. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8402. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8403. signal (SIGTRAP, sigfpe_handler);
  8404. #endif
  8405. /* Linux/SPARC yields signal SIGILL. */
  8406. #if defined (__sparc__) && defined (__linux__)
  8407. signal (SIGILL, sigfpe_handler);
  8408. #endif
  8409. z = x / y;
  8410. nan = y / y;
  8411. exit (1);
  8412. }
  8413. _ACEOF
  8414. if ac_fn_cxx_try_run "$LINENO"; then :
  8415. gt_cv_int_divbyzero_sigfpe=yes
  8416. else
  8417. gt_cv_int_divbyzero_sigfpe=no
  8418. fi
  8419. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8420. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8421. fi
  8422. fi
  8423. fi
  8424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8425. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8426. case "$gt_cv_int_divbyzero_sigfpe" in
  8427. *yes) value=1;;
  8428. *) value=0;;
  8429. esac
  8430. cat >>confdefs.h <<_ACEOF
  8431. #define INTDIV0_RAISES_SIGFPE $value
  8432. _ACEOF
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8434. $as_echo_n "checking for inttypes.h... " >&6; }
  8435. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8436. $as_echo_n "(cached) " >&6
  8437. else
  8438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8439. /* end confdefs.h. */
  8440. #include <sys/types.h>
  8441. #include <inttypes.h>
  8442. int
  8443. main ()
  8444. {
  8445. uintmax_t i = (uintmax_t) -1; return !i;
  8446. ;
  8447. return 0;
  8448. }
  8449. _ACEOF
  8450. if ac_fn_cxx_try_compile "$LINENO"; then :
  8451. gl_cv_header_inttypes_h=yes
  8452. else
  8453. gl_cv_header_inttypes_h=no
  8454. fi
  8455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8456. fi
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8458. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8459. if test $gl_cv_header_inttypes_h = yes; then
  8460. cat >>confdefs.h <<_ACEOF
  8461. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8462. _ACEOF
  8463. fi
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8465. $as_echo_n "checking for unsigned long long int... " >&6; }
  8466. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8467. $as_echo_n "(cached) " >&6
  8468. else
  8469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8470. /* end confdefs.h. */
  8471. /* Test preprocessor. */
  8472. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8473. error in preprocessor;
  8474. #endif
  8475. #if ! (18446744073709551615ULL <= -1ull)
  8476. error in preprocessor;
  8477. #endif
  8478. /* Test literals. */
  8479. long long int ll = 9223372036854775807ll;
  8480. long long int nll = -9223372036854775807LL;
  8481. unsigned long long int ull = 18446744073709551615ULL;
  8482. /* Test constant expressions. */
  8483. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8484. ? 1 : -1)];
  8485. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8486. ? 1 : -1)];
  8487. int i = 63;
  8488. int
  8489. main ()
  8490. {
  8491. /* Test availability of runtime routines for shift and division. */
  8492. long long int llmax = 9223372036854775807ll;
  8493. unsigned long long int ullmax = 18446744073709551615ull;
  8494. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8495. | (llmax / ll) | (llmax % ll)
  8496. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8497. | (ullmax / ull) | (ullmax % ull));
  8498. ;
  8499. return 0;
  8500. }
  8501. _ACEOF
  8502. if ac_fn_cxx_try_link "$LINENO"; then :
  8503. ac_cv_type_unsigned_long_long_int=yes
  8504. else
  8505. ac_cv_type_unsigned_long_long_int=no
  8506. fi
  8507. rm -f core conftest.err conftest.$ac_objext \
  8508. conftest$ac_exeext conftest.$ac_ext
  8509. fi
  8510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8511. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8512. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8513. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8514. fi
  8515. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8516. test $ac_cv_type_unsigned_long_long_int = yes \
  8517. && ac_type='unsigned long long' \
  8518. || ac_type='unsigned long'
  8519. cat >>confdefs.h <<_ACEOF
  8520. #define uintmax_t $ac_type
  8521. _ACEOF
  8522. else
  8523. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8524. fi
  8525. for ac_header in inttypes.h
  8526. do :
  8527. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8528. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8529. cat >>confdefs.h <<_ACEOF
  8530. #define HAVE_INTTYPES_H 1
  8531. _ACEOF
  8532. fi
  8533. done
  8534. if test $ac_cv_header_inttypes_h = yes; then
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8536. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8537. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8541. /* end confdefs.h. */
  8542. #include <inttypes.h>
  8543. #ifdef PRId32
  8544. char *p = PRId32;
  8545. #endif
  8546. int
  8547. main ()
  8548. {
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. if ac_fn_cxx_try_compile "$LINENO"; then :
  8554. gt_cv_inttypes_pri_broken=no
  8555. else
  8556. gt_cv_inttypes_pri_broken=yes
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8559. fi
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8561. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8562. fi
  8563. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8564. cat >>confdefs.h <<_ACEOF
  8565. #define PRI_MACROS_BROKEN 1
  8566. _ACEOF
  8567. PRI_MACROS_BROKEN=1
  8568. else
  8569. PRI_MACROS_BROKEN=0
  8570. fi
  8571. # Check whether --enable-threads was given.
  8572. if test "${enable_threads+set}" = set; then :
  8573. enableval=$enable_threads; gl_use_threads=$enableval
  8574. else
  8575. case "$host_os" in
  8576. osf*) gl_use_threads=no ;;
  8577. *) gl_use_threads=yes ;;
  8578. esac
  8579. fi
  8580. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8581. # For using <pthread.h>:
  8582. case "$host_os" in
  8583. osf*)
  8584. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8585. # groks <pthread.h>. cc also understands the flag -pthread, but
  8586. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8587. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8588. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8589. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8590. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8591. ;;
  8592. esac
  8593. # Some systems optimize for single-threaded programs by default, and
  8594. # need special flags to disable these optimizations. For example, the
  8595. # definition of 'errno' in <errno.h>.
  8596. case "$host_os" in
  8597. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8598. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8599. esac
  8600. fi
  8601. if test "X$prefix" = "XNONE"; then
  8602. acl_final_prefix="$ac_default_prefix"
  8603. else
  8604. acl_final_prefix="$prefix"
  8605. fi
  8606. if test "X$exec_prefix" = "XNONE"; then
  8607. acl_final_exec_prefix='${prefix}'
  8608. else
  8609. acl_final_exec_prefix="$exec_prefix"
  8610. fi
  8611. acl_save_prefix="$prefix"
  8612. prefix="$acl_final_prefix"
  8613. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8614. prefix="$acl_save_prefix"
  8615. # Check whether --with-gnu-ld was given.
  8616. if test "${with_gnu_ld+set}" = set; then :
  8617. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8618. else
  8619. with_gnu_ld=no
  8620. fi
  8621. # Prepare PATH_SEPARATOR.
  8622. # The user is always right.
  8623. if test "${PATH_SEPARATOR+set}" != set; then
  8624. echo "#! /bin/sh" >conf$$.sh
  8625. echo "exit 0" >>conf$$.sh
  8626. chmod +x conf$$.sh
  8627. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8628. PATH_SEPARATOR=';'
  8629. else
  8630. PATH_SEPARATOR=:
  8631. fi
  8632. rm -f conf$$.sh
  8633. fi
  8634. ac_prog=ld
  8635. if test "$GCC" = yes; then
  8636. # Check if gcc -print-prog-name=ld gives a path.
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8638. $as_echo_n "checking for ld used by GCC... " >&6; }
  8639. case $host in
  8640. *-*-mingw*)
  8641. # gcc leaves a trailing carriage return which upsets mingw
  8642. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8643. *)
  8644. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8645. esac
  8646. case $ac_prog in
  8647. # Accept absolute paths.
  8648. [\\/]* | [A-Za-z]:[\\/]*)
  8649. re_direlt='/[^/][^/]*/\.\./'
  8650. # Canonicalize the path of ld
  8651. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8652. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8653. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8654. done
  8655. test -z "$LD" && LD="$ac_prog"
  8656. ;;
  8657. "")
  8658. # If it fails, then pretend we aren't using GCC.
  8659. ac_prog=ld
  8660. ;;
  8661. *)
  8662. # If it is relative, then search for the first ld in PATH.
  8663. with_gnu_ld=unknown
  8664. ;;
  8665. esac
  8666. elif test "$with_gnu_ld" = yes; then
  8667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8668. $as_echo_n "checking for GNU ld... " >&6; }
  8669. else
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8671. $as_echo_n "checking for non-GNU ld... " >&6; }
  8672. fi
  8673. if test "${acl_cv_path_LD+set}" = set; then :
  8674. $as_echo_n "(cached) " >&6
  8675. else
  8676. if test -z "$LD"; then
  8677. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8678. for ac_dir in $PATH; do
  8679. test -z "$ac_dir" && ac_dir=.
  8680. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8681. acl_cv_path_LD="$ac_dir/$ac_prog"
  8682. # Check to see if the program is GNU ld. I'd rather use --version,
  8683. # but apparently some GNU ld's only accept -v.
  8684. # Break only if it was the GNU/non-GNU ld that we prefer.
  8685. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8686. *GNU* | *'with BFD'*)
  8687. test "$with_gnu_ld" != no && break ;;
  8688. *)
  8689. test "$with_gnu_ld" != yes && break ;;
  8690. esac
  8691. fi
  8692. done
  8693. IFS="$ac_save_ifs"
  8694. else
  8695. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8696. fi
  8697. fi
  8698. LD="$acl_cv_path_LD"
  8699. if test -n "$LD"; then
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8701. $as_echo "$LD" >&6; }
  8702. else
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8704. $as_echo "no" >&6; }
  8705. fi
  8706. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8708. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8709. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8710. $as_echo_n "(cached) " >&6
  8711. else
  8712. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8713. case `$LD -v 2>&1 </dev/null` in
  8714. *GNU* | *'with BFD'*)
  8715. acl_cv_prog_gnu_ld=yes ;;
  8716. *)
  8717. acl_cv_prog_gnu_ld=no ;;
  8718. esac
  8719. fi
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8721. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8722. with_gnu_ld=$acl_cv_prog_gnu_ld
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8724. $as_echo_n "checking for shared library run path origin... " >&6; }
  8725. if test "${acl_cv_rpath+set}" = set; then :
  8726. $as_echo_n "(cached) " >&6
  8727. else
  8728. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8729. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8730. . ./conftest.sh
  8731. rm -f ./conftest.sh
  8732. acl_cv_rpath=done
  8733. fi
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8735. $as_echo "$acl_cv_rpath" >&6; }
  8736. wl="$acl_cv_wl"
  8737. acl_libext="$acl_cv_libext"
  8738. acl_shlibext="$acl_cv_shlibext"
  8739. acl_libname_spec="$acl_cv_libname_spec"
  8740. acl_library_names_spec="$acl_cv_library_names_spec"
  8741. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8742. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8743. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8744. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8745. # Check whether --enable-rpath was given.
  8746. if test "${enable_rpath+set}" = set; then :
  8747. enableval=$enable_rpath; :
  8748. else
  8749. enable_rpath=yes
  8750. fi
  8751. acl_libdirstem=lib
  8752. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8753. if test -n "$searchpath"; then
  8754. acl_save_IFS="${IFS= }"; IFS=":"
  8755. for searchdir in $searchpath; do
  8756. if test -d "$searchdir"; then
  8757. case "$searchdir" in
  8758. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8759. *) searchdir=`cd "$searchdir" && pwd`
  8760. case "$searchdir" in
  8761. */lib64 ) acl_libdirstem=lib64 ;;
  8762. esac ;;
  8763. esac
  8764. fi
  8765. done
  8766. IFS="$acl_save_IFS"
  8767. fi
  8768. gl_threads_api=none
  8769. LIBTHREAD=
  8770. LTLIBTHREAD=
  8771. LIBMULTITHREAD=
  8772. LTLIBMULTITHREAD=
  8773. if test "$gl_use_threads" != no; then
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8775. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8776. gl_have_weak=no
  8777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8778. /* end confdefs.h. */
  8779. extern void xyzzy ();
  8780. #pragma weak xyzzy
  8781. int
  8782. main ()
  8783. {
  8784. xyzzy();
  8785. ;
  8786. return 0;
  8787. }
  8788. _ACEOF
  8789. if ac_fn_cxx_try_link "$LINENO"; then :
  8790. gl_have_weak=yes
  8791. fi
  8792. rm -f core conftest.err conftest.$ac_objext \
  8793. conftest$ac_exeext conftest.$ac_ext
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8795. $as_echo "$gl_have_weak" >&6; }
  8796. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8797. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8798. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8799. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8800. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8801. gl_have_pthread_h=yes
  8802. else
  8803. gl_have_pthread_h=no
  8804. fi
  8805. if test "$gl_have_pthread_h" = yes; then
  8806. # Other possible tests:
  8807. # -lpthreads (FSU threads, PCthreads)
  8808. # -lgthreads
  8809. gl_have_pthread=
  8810. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8811. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8812. # the second one only in libpthread, and lock.c needs it.
  8813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8814. /* end confdefs.h. */
  8815. #include <pthread.h>
  8816. int
  8817. main ()
  8818. {
  8819. pthread_mutex_lock((pthread_mutex_t*)0);
  8820. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. if ac_fn_cxx_try_link "$LINENO"; then :
  8826. gl_have_pthread=yes
  8827. fi
  8828. rm -f core conftest.err conftest.$ac_objext \
  8829. conftest$ac_exeext conftest.$ac_ext
  8830. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8831. # since it is defined as a macro on OSF/1.)
  8832. if test -n "$gl_have_pthread"; then
  8833. # The program links fine without libpthread. But it may actually
  8834. # need to link with libpthread in order to create multiple threads.
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8836. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8837. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8838. $as_echo_n "(cached) " >&6
  8839. else
  8840. ac_check_lib_save_LIBS=$LIBS
  8841. LIBS="-lpthread $LIBS"
  8842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8843. /* end confdefs.h. */
  8844. /* Override any GCC internal prototype to avoid an error.
  8845. Use char because int might match the return type of a GCC
  8846. builtin and then its argument prototype would still apply. */
  8847. #ifdef __cplusplus
  8848. extern "C"
  8849. #endif
  8850. char pthread_kill ();
  8851. int
  8852. main ()
  8853. {
  8854. return pthread_kill ();
  8855. ;
  8856. return 0;
  8857. }
  8858. _ACEOF
  8859. if ac_fn_cxx_try_link "$LINENO"; then :
  8860. ac_cv_lib_pthread_pthread_kill=yes
  8861. else
  8862. ac_cv_lib_pthread_pthread_kill=no
  8863. fi
  8864. rm -f core conftest.err conftest.$ac_objext \
  8865. conftest$ac_exeext conftest.$ac_ext
  8866. LIBS=$ac_check_lib_save_LIBS
  8867. fi
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8869. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8870. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8871. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8872. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8873. # Therefore pthread_in_use() needs to actually try to create a
  8874. # thread: pthread_create from libc will fail, whereas
  8875. # pthread_create will actually create a thread.
  8876. case "$host_os" in
  8877. solaris* | hpux*)
  8878. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8879. esac
  8880. fi
  8881. else
  8882. # Some library is needed. Try libpthread and libc_r.
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8884. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8885. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. ac_check_lib_save_LIBS=$LIBS
  8889. LIBS="-lpthread $LIBS"
  8890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8891. /* end confdefs.h. */
  8892. /* Override any GCC internal prototype to avoid an error.
  8893. Use char because int might match the return type of a GCC
  8894. builtin and then its argument prototype would still apply. */
  8895. #ifdef __cplusplus
  8896. extern "C"
  8897. #endif
  8898. char pthread_kill ();
  8899. int
  8900. main ()
  8901. {
  8902. return pthread_kill ();
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. if ac_fn_cxx_try_link "$LINENO"; then :
  8908. ac_cv_lib_pthread_pthread_kill=yes
  8909. else
  8910. ac_cv_lib_pthread_pthread_kill=no
  8911. fi
  8912. rm -f core conftest.err conftest.$ac_objext \
  8913. conftest$ac_exeext conftest.$ac_ext
  8914. LIBS=$ac_check_lib_save_LIBS
  8915. fi
  8916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8917. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8918. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8919. gl_have_pthread=yes
  8920. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8921. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8922. fi
  8923. if test -z "$gl_have_pthread"; then
  8924. # For FreeBSD 4.
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8926. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8927. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8928. $as_echo_n "(cached) " >&6
  8929. else
  8930. ac_check_lib_save_LIBS=$LIBS
  8931. LIBS="-lc_r $LIBS"
  8932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8933. /* end confdefs.h. */
  8934. /* Override any GCC internal prototype to avoid an error.
  8935. Use char because int might match the return type of a GCC
  8936. builtin and then its argument prototype would still apply. */
  8937. #ifdef __cplusplus
  8938. extern "C"
  8939. #endif
  8940. char pthread_kill ();
  8941. int
  8942. main ()
  8943. {
  8944. return pthread_kill ();
  8945. ;
  8946. return 0;
  8947. }
  8948. _ACEOF
  8949. if ac_fn_cxx_try_link "$LINENO"; then :
  8950. ac_cv_lib_c_r_pthread_kill=yes
  8951. else
  8952. ac_cv_lib_c_r_pthread_kill=no
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext \
  8955. conftest$ac_exeext conftest.$ac_ext
  8956. LIBS=$ac_check_lib_save_LIBS
  8957. fi
  8958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8959. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8960. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8961. gl_have_pthread=yes
  8962. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8963. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8964. fi
  8965. fi
  8966. fi
  8967. if test -n "$gl_have_pthread"; then
  8968. gl_threads_api=posix
  8969. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8970. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8971. if test $gl_have_weak = yes; then
  8972. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8973. LIBTHREAD=
  8974. LTLIBTHREAD=
  8975. fi
  8976. fi
  8977. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8978. # pthread_rwlock_* functions.
  8979. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8980. "
  8981. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8982. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8983. fi
  8984. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8986. /* end confdefs.h. */
  8987. #include <pthread.h>
  8988. int
  8989. main ()
  8990. {
  8991. #if __FreeBSD__ == 4
  8992. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8993. #else
  8994. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8995. return !x;
  8996. #endif
  8997. ;
  8998. return 0;
  8999. }
  9000. _ACEOF
  9001. if ac_fn_cxx_try_compile "$LINENO"; then :
  9002. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9003. fi
  9004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9005. fi
  9006. fi
  9007. fi
  9008. if test -z "$gl_have_pthread"; then
  9009. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9010. gl_have_solaristhread=
  9011. gl_save_LIBS="$LIBS"
  9012. LIBS="$LIBS -lthread"
  9013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9014. /* end confdefs.h. */
  9015. #include <thread.h>
  9016. #include <synch.h>
  9017. int
  9018. main ()
  9019. {
  9020. thr_self();
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_cxx_try_link "$LINENO"; then :
  9026. gl_have_solaristhread=yes
  9027. fi
  9028. rm -f core conftest.err conftest.$ac_objext \
  9029. conftest$ac_exeext conftest.$ac_ext
  9030. LIBS="$gl_save_LIBS"
  9031. if test -n "$gl_have_solaristhread"; then
  9032. gl_threads_api=solaris
  9033. LIBTHREAD=-lthread
  9034. LTLIBTHREAD=-lthread
  9035. LIBMULTITHREAD="$LIBTHREAD"
  9036. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9037. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9038. if test $gl_have_weak = yes; then
  9039. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9040. LIBTHREAD=
  9041. LTLIBTHREAD=
  9042. fi
  9043. fi
  9044. fi
  9045. fi
  9046. if test "$gl_use_threads" = pth; then
  9047. gl_save_CPPFLAGS="$CPPFLAGS"
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9049. $as_echo_n "checking how to link with libpth... " >&6; }
  9050. if test "${ac_cv_libpth_libs+set}" = set; then :
  9051. $as_echo_n "(cached) " >&6
  9052. else
  9053. use_additional=yes
  9054. acl_save_prefix="$prefix"
  9055. prefix="$acl_final_prefix"
  9056. acl_save_exec_prefix="$exec_prefix"
  9057. exec_prefix="$acl_final_exec_prefix"
  9058. eval additional_includedir=\"$includedir\"
  9059. eval additional_libdir=\"$libdir\"
  9060. exec_prefix="$acl_save_exec_prefix"
  9061. prefix="$acl_save_prefix"
  9062. # Check whether --with-libpth-prefix was given.
  9063. if test "${with_libpth_prefix+set}" = set; then :
  9064. withval=$with_libpth_prefix;
  9065. if test "X$withval" = "Xno"; then
  9066. use_additional=no
  9067. else
  9068. if test "X$withval" = "X"; then
  9069. acl_save_prefix="$prefix"
  9070. prefix="$acl_final_prefix"
  9071. acl_save_exec_prefix="$exec_prefix"
  9072. exec_prefix="$acl_final_exec_prefix"
  9073. eval additional_includedir=\"$includedir\"
  9074. eval additional_libdir=\"$libdir\"
  9075. exec_prefix="$acl_save_exec_prefix"
  9076. prefix="$acl_save_prefix"
  9077. else
  9078. additional_includedir="$withval/include"
  9079. additional_libdir="$withval/$acl_libdirstem"
  9080. fi
  9081. fi
  9082. fi
  9083. LIBPTH=
  9084. LTLIBPTH=
  9085. INCPTH=
  9086. LIBPTH_PREFIX=
  9087. rpathdirs=
  9088. ltrpathdirs=
  9089. names_already_handled=
  9090. names_next_round='pth '
  9091. while test -n "$names_next_round"; do
  9092. names_this_round="$names_next_round"
  9093. names_next_round=
  9094. for name in $names_this_round; do
  9095. already_handled=
  9096. for n in $names_already_handled; do
  9097. if test "$n" = "$name"; then
  9098. already_handled=yes
  9099. break
  9100. fi
  9101. done
  9102. if test -z "$already_handled"; then
  9103. names_already_handled="$names_already_handled $name"
  9104. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9105. eval value=\"\$HAVE_LIB$uppername\"
  9106. if test -n "$value"; then
  9107. if test "$value" = yes; then
  9108. eval value=\"\$LIB$uppername\"
  9109. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9110. eval value=\"\$LTLIB$uppername\"
  9111. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9112. else
  9113. :
  9114. fi
  9115. else
  9116. found_dir=
  9117. found_la=
  9118. found_so=
  9119. found_a=
  9120. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9121. if test -n "$acl_shlibext"; then
  9122. shrext=".$acl_shlibext" # typically: shrext=.so
  9123. else
  9124. shrext=
  9125. fi
  9126. if test $use_additional = yes; then
  9127. dir="$additional_libdir"
  9128. if test -n "$acl_shlibext"; then
  9129. if test -f "$dir/$libname$shrext"; then
  9130. found_dir="$dir"
  9131. found_so="$dir/$libname$shrext"
  9132. else
  9133. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9134. ver=`(cd "$dir" && \
  9135. for f in "$libname$shrext".*; do echo "$f"; done \
  9136. | sed -e "s,^$libname$shrext\\\\.,," \
  9137. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9138. | sed 1q ) 2>/dev/null`
  9139. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9140. found_dir="$dir"
  9141. found_so="$dir/$libname$shrext.$ver"
  9142. fi
  9143. else
  9144. eval library_names=\"$acl_library_names_spec\"
  9145. for f in $library_names; do
  9146. if test -f "$dir/$f"; then
  9147. found_dir="$dir"
  9148. found_so="$dir/$f"
  9149. break
  9150. fi
  9151. done
  9152. fi
  9153. fi
  9154. fi
  9155. if test "X$found_dir" = "X"; then
  9156. if test -f "$dir/$libname.$acl_libext"; then
  9157. found_dir="$dir"
  9158. found_a="$dir/$libname.$acl_libext"
  9159. fi
  9160. fi
  9161. if test "X$found_dir" != "X"; then
  9162. if test -f "$dir/$libname.la"; then
  9163. found_la="$dir/$libname.la"
  9164. fi
  9165. fi
  9166. fi
  9167. if test "X$found_dir" = "X"; then
  9168. for x in $LDFLAGS $LTLIBPTH; do
  9169. acl_save_prefix="$prefix"
  9170. prefix="$acl_final_prefix"
  9171. acl_save_exec_prefix="$exec_prefix"
  9172. exec_prefix="$acl_final_exec_prefix"
  9173. eval x=\"$x\"
  9174. exec_prefix="$acl_save_exec_prefix"
  9175. prefix="$acl_save_prefix"
  9176. case "$x" in
  9177. -L*)
  9178. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9179. if test -n "$acl_shlibext"; then
  9180. if test -f "$dir/$libname$shrext"; then
  9181. found_dir="$dir"
  9182. found_so="$dir/$libname$shrext"
  9183. else
  9184. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9185. ver=`(cd "$dir" && \
  9186. for f in "$libname$shrext".*; do echo "$f"; done \
  9187. | sed -e "s,^$libname$shrext\\\\.,," \
  9188. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9189. | sed 1q ) 2>/dev/null`
  9190. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9191. found_dir="$dir"
  9192. found_so="$dir/$libname$shrext.$ver"
  9193. fi
  9194. else
  9195. eval library_names=\"$acl_library_names_spec\"
  9196. for f in $library_names; do
  9197. if test -f "$dir/$f"; then
  9198. found_dir="$dir"
  9199. found_so="$dir/$f"
  9200. break
  9201. fi
  9202. done
  9203. fi
  9204. fi
  9205. fi
  9206. if test "X$found_dir" = "X"; then
  9207. if test -f "$dir/$libname.$acl_libext"; then
  9208. found_dir="$dir"
  9209. found_a="$dir/$libname.$acl_libext"
  9210. fi
  9211. fi
  9212. if test "X$found_dir" != "X"; then
  9213. if test -f "$dir/$libname.la"; then
  9214. found_la="$dir/$libname.la"
  9215. fi
  9216. fi
  9217. ;;
  9218. esac
  9219. if test "X$found_dir" != "X"; then
  9220. break
  9221. fi
  9222. done
  9223. fi
  9224. if test "X$found_dir" != "X"; then
  9225. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9226. if test "X$found_so" != "X"; then
  9227. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9228. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9229. else
  9230. haveit=
  9231. for x in $ltrpathdirs; do
  9232. if test "X$x" = "X$found_dir"; then
  9233. haveit=yes
  9234. break
  9235. fi
  9236. done
  9237. if test -z "$haveit"; then
  9238. ltrpathdirs="$ltrpathdirs $found_dir"
  9239. fi
  9240. if test "$acl_hardcode_direct" = yes; then
  9241. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9242. else
  9243. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9244. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9245. haveit=
  9246. for x in $rpathdirs; do
  9247. if test "X$x" = "X$found_dir"; then
  9248. haveit=yes
  9249. break
  9250. fi
  9251. done
  9252. if test -z "$haveit"; then
  9253. rpathdirs="$rpathdirs $found_dir"
  9254. fi
  9255. else
  9256. haveit=
  9257. for x in $LDFLAGS $LIBPTH; do
  9258. acl_save_prefix="$prefix"
  9259. prefix="$acl_final_prefix"
  9260. acl_save_exec_prefix="$exec_prefix"
  9261. exec_prefix="$acl_final_exec_prefix"
  9262. eval x=\"$x\"
  9263. exec_prefix="$acl_save_exec_prefix"
  9264. prefix="$acl_save_prefix"
  9265. if test "X$x" = "X-L$found_dir"; then
  9266. haveit=yes
  9267. break
  9268. fi
  9269. done
  9270. if test -z "$haveit"; then
  9271. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9272. fi
  9273. if test "$acl_hardcode_minus_L" != no; then
  9274. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9275. else
  9276. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9277. fi
  9278. fi
  9279. fi
  9280. fi
  9281. else
  9282. if test "X$found_a" != "X"; then
  9283. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9284. else
  9285. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9286. fi
  9287. fi
  9288. additional_includedir=
  9289. case "$found_dir" in
  9290. */$acl_libdirstem | */$acl_libdirstem/)
  9291. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9292. LIBPTH_PREFIX="$basedir"
  9293. additional_includedir="$basedir/include"
  9294. ;;
  9295. esac
  9296. if test "X$additional_includedir" != "X"; then
  9297. if test "X$additional_includedir" != "X/usr/include"; then
  9298. haveit=
  9299. if test "X$additional_includedir" = "X/usr/local/include"; then
  9300. if test -n "$GCC"; then
  9301. case $host_os in
  9302. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9303. esac
  9304. fi
  9305. fi
  9306. if test -z "$haveit"; then
  9307. for x in $CPPFLAGS $INCPTH; do
  9308. acl_save_prefix="$prefix"
  9309. prefix="$acl_final_prefix"
  9310. acl_save_exec_prefix="$exec_prefix"
  9311. exec_prefix="$acl_final_exec_prefix"
  9312. eval x=\"$x\"
  9313. exec_prefix="$acl_save_exec_prefix"
  9314. prefix="$acl_save_prefix"
  9315. if test "X$x" = "X-I$additional_includedir"; then
  9316. haveit=yes
  9317. break
  9318. fi
  9319. done
  9320. if test -z "$haveit"; then
  9321. if test -d "$additional_includedir"; then
  9322. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9323. fi
  9324. fi
  9325. fi
  9326. fi
  9327. fi
  9328. if test -n "$found_la"; then
  9329. save_libdir="$libdir"
  9330. case "$found_la" in
  9331. */* | *\\*) . "$found_la" ;;
  9332. *) . "./$found_la" ;;
  9333. esac
  9334. libdir="$save_libdir"
  9335. for dep in $dependency_libs; do
  9336. case "$dep" in
  9337. -L*)
  9338. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9339. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9340. haveit=
  9341. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9342. if test -n "$GCC"; then
  9343. case $host_os in
  9344. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9345. esac
  9346. fi
  9347. fi
  9348. if test -z "$haveit"; then
  9349. haveit=
  9350. for x in $LDFLAGS $LIBPTH; do
  9351. acl_save_prefix="$prefix"
  9352. prefix="$acl_final_prefix"
  9353. acl_save_exec_prefix="$exec_prefix"
  9354. exec_prefix="$acl_final_exec_prefix"
  9355. eval x=\"$x\"
  9356. exec_prefix="$acl_save_exec_prefix"
  9357. prefix="$acl_save_prefix"
  9358. if test "X$x" = "X-L$additional_libdir"; then
  9359. haveit=yes
  9360. break
  9361. fi
  9362. done
  9363. if test -z "$haveit"; then
  9364. if test -d "$additional_libdir"; then
  9365. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9366. fi
  9367. fi
  9368. haveit=
  9369. for x in $LDFLAGS $LTLIBPTH; do
  9370. acl_save_prefix="$prefix"
  9371. prefix="$acl_final_prefix"
  9372. acl_save_exec_prefix="$exec_prefix"
  9373. exec_prefix="$acl_final_exec_prefix"
  9374. eval x=\"$x\"
  9375. exec_prefix="$acl_save_exec_prefix"
  9376. prefix="$acl_save_prefix"
  9377. if test "X$x" = "X-L$additional_libdir"; then
  9378. haveit=yes
  9379. break
  9380. fi
  9381. done
  9382. if test -z "$haveit"; then
  9383. if test -d "$additional_libdir"; then
  9384. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9385. fi
  9386. fi
  9387. fi
  9388. fi
  9389. ;;
  9390. -R*)
  9391. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9392. if test "$enable_rpath" != no; then
  9393. haveit=
  9394. for x in $rpathdirs; do
  9395. if test "X$x" = "X$dir"; then
  9396. haveit=yes
  9397. break
  9398. fi
  9399. done
  9400. if test -z "$haveit"; then
  9401. rpathdirs="$rpathdirs $dir"
  9402. fi
  9403. haveit=
  9404. for x in $ltrpathdirs; do
  9405. if test "X$x" = "X$dir"; then
  9406. haveit=yes
  9407. break
  9408. fi
  9409. done
  9410. if test -z "$haveit"; then
  9411. ltrpathdirs="$ltrpathdirs $dir"
  9412. fi
  9413. fi
  9414. ;;
  9415. -l*)
  9416. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9417. ;;
  9418. *.la)
  9419. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9420. ;;
  9421. *)
  9422. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9423. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9424. ;;
  9425. esac
  9426. done
  9427. fi
  9428. else
  9429. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9430. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9431. fi
  9432. fi
  9433. fi
  9434. done
  9435. done
  9436. if test "X$rpathdirs" != "X"; then
  9437. if test -n "$acl_hardcode_libdir_separator"; then
  9438. alldirs=
  9439. for found_dir in $rpathdirs; do
  9440. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9441. done
  9442. acl_save_libdir="$libdir"
  9443. libdir="$alldirs"
  9444. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9445. libdir="$acl_save_libdir"
  9446. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9447. else
  9448. for found_dir in $rpathdirs; do
  9449. acl_save_libdir="$libdir"
  9450. libdir="$found_dir"
  9451. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9452. libdir="$acl_save_libdir"
  9453. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9454. done
  9455. fi
  9456. fi
  9457. if test "X$ltrpathdirs" != "X"; then
  9458. for found_dir in $ltrpathdirs; do
  9459. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9460. done
  9461. fi
  9462. ac_cv_libpth_libs="$LIBPTH"
  9463. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9464. ac_cv_libpth_cppflags="$INCPTH"
  9465. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9468. $as_echo "$ac_cv_libpth_libs" >&6; }
  9469. LIBPTH="$ac_cv_libpth_libs"
  9470. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9471. INCPTH="$ac_cv_libpth_cppflags"
  9472. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9473. for element in $INCPTH; do
  9474. haveit=
  9475. for x in $CPPFLAGS; do
  9476. acl_save_prefix="$prefix"
  9477. prefix="$acl_final_prefix"
  9478. acl_save_exec_prefix="$exec_prefix"
  9479. exec_prefix="$acl_final_exec_prefix"
  9480. eval x=\"$x\"
  9481. exec_prefix="$acl_save_exec_prefix"
  9482. prefix="$acl_save_prefix"
  9483. if test "X$x" = "X$element"; then
  9484. haveit=yes
  9485. break
  9486. fi
  9487. done
  9488. if test -z "$haveit"; then
  9489. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9490. fi
  9491. done
  9492. HAVE_LIBPTH=yes
  9493. gl_have_pth=
  9494. gl_save_LIBS="$LIBS"
  9495. LIBS="$LIBS -lpth"
  9496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9497. /* end confdefs.h. */
  9498. #include <pth.h>
  9499. int
  9500. main ()
  9501. {
  9502. pth_self();
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_cxx_try_link "$LINENO"; then :
  9508. gl_have_pth=yes
  9509. fi
  9510. rm -f core conftest.err conftest.$ac_objext \
  9511. conftest$ac_exeext conftest.$ac_ext
  9512. LIBS="$gl_save_LIBS"
  9513. if test -n "$gl_have_pth"; then
  9514. gl_threads_api=pth
  9515. LIBTHREAD="$LIBPTH"
  9516. LTLIBTHREAD="$LTLIBPTH"
  9517. LIBMULTITHREAD="$LIBTHREAD"
  9518. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9519. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9520. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9521. if test $gl_have_weak = yes; then
  9522. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9523. LIBTHREAD=
  9524. LTLIBTHREAD=
  9525. fi
  9526. fi
  9527. else
  9528. CPPFLAGS="$gl_save_CPPFLAGS"
  9529. fi
  9530. fi
  9531. if test -z "$gl_have_pthread"; then
  9532. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9533. if { case "$host_os" in
  9534. mingw*) true;;
  9535. *) false;;
  9536. esac
  9537. }; then
  9538. gl_threads_api=win32
  9539. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9540. fi
  9541. fi
  9542. fi
  9543. fi
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9545. $as_echo_n "checking for multithread API to use... " >&6; }
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9547. $as_echo "$gl_threads_api" >&6; }
  9548. use_additional=yes
  9549. acl_save_prefix="$prefix"
  9550. prefix="$acl_final_prefix"
  9551. acl_save_exec_prefix="$exec_prefix"
  9552. exec_prefix="$acl_final_exec_prefix"
  9553. eval additional_includedir=\"$includedir\"
  9554. eval additional_libdir=\"$libdir\"
  9555. exec_prefix="$acl_save_exec_prefix"
  9556. prefix="$acl_save_prefix"
  9557. # Check whether --with-libiconv-prefix was given.
  9558. if test "${with_libiconv_prefix+set}" = set; then :
  9559. withval=$with_libiconv_prefix;
  9560. if test "X$withval" = "Xno"; then
  9561. use_additional=no
  9562. else
  9563. if test "X$withval" = "X"; then
  9564. acl_save_prefix="$prefix"
  9565. prefix="$acl_final_prefix"
  9566. acl_save_exec_prefix="$exec_prefix"
  9567. exec_prefix="$acl_final_exec_prefix"
  9568. eval additional_includedir=\"$includedir\"
  9569. eval additional_libdir=\"$libdir\"
  9570. exec_prefix="$acl_save_exec_prefix"
  9571. prefix="$acl_save_prefix"
  9572. else
  9573. additional_includedir="$withval/include"
  9574. additional_libdir="$withval/$acl_libdirstem"
  9575. fi
  9576. fi
  9577. fi
  9578. LIBICONV=
  9579. LTLIBICONV=
  9580. INCICONV=
  9581. LIBICONV_PREFIX=
  9582. rpathdirs=
  9583. ltrpathdirs=
  9584. names_already_handled=
  9585. names_next_round='iconv '
  9586. while test -n "$names_next_round"; do
  9587. names_this_round="$names_next_round"
  9588. names_next_round=
  9589. for name in $names_this_round; do
  9590. already_handled=
  9591. for n in $names_already_handled; do
  9592. if test "$n" = "$name"; then
  9593. already_handled=yes
  9594. break
  9595. fi
  9596. done
  9597. if test -z "$already_handled"; then
  9598. names_already_handled="$names_already_handled $name"
  9599. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9600. eval value=\"\$HAVE_LIB$uppername\"
  9601. if test -n "$value"; then
  9602. if test "$value" = yes; then
  9603. eval value=\"\$LIB$uppername\"
  9604. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9605. eval value=\"\$LTLIB$uppername\"
  9606. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9607. else
  9608. :
  9609. fi
  9610. else
  9611. found_dir=
  9612. found_la=
  9613. found_so=
  9614. found_a=
  9615. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9616. if test -n "$acl_shlibext"; then
  9617. shrext=".$acl_shlibext" # typically: shrext=.so
  9618. else
  9619. shrext=
  9620. fi
  9621. if test $use_additional = yes; then
  9622. dir="$additional_libdir"
  9623. if test -n "$acl_shlibext"; then
  9624. if test -f "$dir/$libname$shrext"; then
  9625. found_dir="$dir"
  9626. found_so="$dir/$libname$shrext"
  9627. else
  9628. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9629. ver=`(cd "$dir" && \
  9630. for f in "$libname$shrext".*; do echo "$f"; done \
  9631. | sed -e "s,^$libname$shrext\\\\.,," \
  9632. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9633. | sed 1q ) 2>/dev/null`
  9634. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9635. found_dir="$dir"
  9636. found_so="$dir/$libname$shrext.$ver"
  9637. fi
  9638. else
  9639. eval library_names=\"$acl_library_names_spec\"
  9640. for f in $library_names; do
  9641. if test -f "$dir/$f"; then
  9642. found_dir="$dir"
  9643. found_so="$dir/$f"
  9644. break
  9645. fi
  9646. done
  9647. fi
  9648. fi
  9649. fi
  9650. if test "X$found_dir" = "X"; then
  9651. if test -f "$dir/$libname.$acl_libext"; then
  9652. found_dir="$dir"
  9653. found_a="$dir/$libname.$acl_libext"
  9654. fi
  9655. fi
  9656. if test "X$found_dir" != "X"; then
  9657. if test -f "$dir/$libname.la"; then
  9658. found_la="$dir/$libname.la"
  9659. fi
  9660. fi
  9661. fi
  9662. if test "X$found_dir" = "X"; then
  9663. for x in $LDFLAGS $LTLIBICONV; do
  9664. acl_save_prefix="$prefix"
  9665. prefix="$acl_final_prefix"
  9666. acl_save_exec_prefix="$exec_prefix"
  9667. exec_prefix="$acl_final_exec_prefix"
  9668. eval x=\"$x\"
  9669. exec_prefix="$acl_save_exec_prefix"
  9670. prefix="$acl_save_prefix"
  9671. case "$x" in
  9672. -L*)
  9673. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9674. if test -n "$acl_shlibext"; then
  9675. if test -f "$dir/$libname$shrext"; then
  9676. found_dir="$dir"
  9677. found_so="$dir/$libname$shrext"
  9678. else
  9679. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9680. ver=`(cd "$dir" && \
  9681. for f in "$libname$shrext".*; do echo "$f"; done \
  9682. | sed -e "s,^$libname$shrext\\\\.,," \
  9683. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9684. | sed 1q ) 2>/dev/null`
  9685. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9686. found_dir="$dir"
  9687. found_so="$dir/$libname$shrext.$ver"
  9688. fi
  9689. else
  9690. eval library_names=\"$acl_library_names_spec\"
  9691. for f in $library_names; do
  9692. if test -f "$dir/$f"; then
  9693. found_dir="$dir"
  9694. found_so="$dir/$f"
  9695. break
  9696. fi
  9697. done
  9698. fi
  9699. fi
  9700. fi
  9701. if test "X$found_dir" = "X"; then
  9702. if test -f "$dir/$libname.$acl_libext"; then
  9703. found_dir="$dir"
  9704. found_a="$dir/$libname.$acl_libext"
  9705. fi
  9706. fi
  9707. if test "X$found_dir" != "X"; then
  9708. if test -f "$dir/$libname.la"; then
  9709. found_la="$dir/$libname.la"
  9710. fi
  9711. fi
  9712. ;;
  9713. esac
  9714. if test "X$found_dir" != "X"; then
  9715. break
  9716. fi
  9717. done
  9718. fi
  9719. if test "X$found_dir" != "X"; then
  9720. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9721. if test "X$found_so" != "X"; then
  9722. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9723. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9724. else
  9725. haveit=
  9726. for x in $ltrpathdirs; do
  9727. if test "X$x" = "X$found_dir"; then
  9728. haveit=yes
  9729. break
  9730. fi
  9731. done
  9732. if test -z "$haveit"; then
  9733. ltrpathdirs="$ltrpathdirs $found_dir"
  9734. fi
  9735. if test "$acl_hardcode_direct" = yes; then
  9736. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9737. else
  9738. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9739. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9740. haveit=
  9741. for x in $rpathdirs; do
  9742. if test "X$x" = "X$found_dir"; then
  9743. haveit=yes
  9744. break
  9745. fi
  9746. done
  9747. if test -z "$haveit"; then
  9748. rpathdirs="$rpathdirs $found_dir"
  9749. fi
  9750. else
  9751. haveit=
  9752. for x in $LDFLAGS $LIBICONV; do
  9753. acl_save_prefix="$prefix"
  9754. prefix="$acl_final_prefix"
  9755. acl_save_exec_prefix="$exec_prefix"
  9756. exec_prefix="$acl_final_exec_prefix"
  9757. eval x=\"$x\"
  9758. exec_prefix="$acl_save_exec_prefix"
  9759. prefix="$acl_save_prefix"
  9760. if test "X$x" = "X-L$found_dir"; then
  9761. haveit=yes
  9762. break
  9763. fi
  9764. done
  9765. if test -z "$haveit"; then
  9766. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9767. fi
  9768. if test "$acl_hardcode_minus_L" != no; then
  9769. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9770. else
  9771. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9772. fi
  9773. fi
  9774. fi
  9775. fi
  9776. else
  9777. if test "X$found_a" != "X"; then
  9778. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9779. else
  9780. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9781. fi
  9782. fi
  9783. additional_includedir=
  9784. case "$found_dir" in
  9785. */$acl_libdirstem | */$acl_libdirstem/)
  9786. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9787. LIBICONV_PREFIX="$basedir"
  9788. additional_includedir="$basedir/include"
  9789. ;;
  9790. esac
  9791. if test "X$additional_includedir" != "X"; then
  9792. if test "X$additional_includedir" != "X/usr/include"; then
  9793. haveit=
  9794. if test "X$additional_includedir" = "X/usr/local/include"; then
  9795. if test -n "$GCC"; then
  9796. case $host_os in
  9797. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9798. esac
  9799. fi
  9800. fi
  9801. if test -z "$haveit"; then
  9802. for x in $CPPFLAGS $INCICONV; do
  9803. acl_save_prefix="$prefix"
  9804. prefix="$acl_final_prefix"
  9805. acl_save_exec_prefix="$exec_prefix"
  9806. exec_prefix="$acl_final_exec_prefix"
  9807. eval x=\"$x\"
  9808. exec_prefix="$acl_save_exec_prefix"
  9809. prefix="$acl_save_prefix"
  9810. if test "X$x" = "X-I$additional_includedir"; then
  9811. haveit=yes
  9812. break
  9813. fi
  9814. done
  9815. if test -z "$haveit"; then
  9816. if test -d "$additional_includedir"; then
  9817. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9818. fi
  9819. fi
  9820. fi
  9821. fi
  9822. fi
  9823. if test -n "$found_la"; then
  9824. save_libdir="$libdir"
  9825. case "$found_la" in
  9826. */* | *\\*) . "$found_la" ;;
  9827. *) . "./$found_la" ;;
  9828. esac
  9829. libdir="$save_libdir"
  9830. for dep in $dependency_libs; do
  9831. case "$dep" in
  9832. -L*)
  9833. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9834. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9835. haveit=
  9836. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9837. if test -n "$GCC"; then
  9838. case $host_os in
  9839. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9840. esac
  9841. fi
  9842. fi
  9843. if test -z "$haveit"; then
  9844. haveit=
  9845. for x in $LDFLAGS $LIBICONV; do
  9846. acl_save_prefix="$prefix"
  9847. prefix="$acl_final_prefix"
  9848. acl_save_exec_prefix="$exec_prefix"
  9849. exec_prefix="$acl_final_exec_prefix"
  9850. eval x=\"$x\"
  9851. exec_prefix="$acl_save_exec_prefix"
  9852. prefix="$acl_save_prefix"
  9853. if test "X$x" = "X-L$additional_libdir"; then
  9854. haveit=yes
  9855. break
  9856. fi
  9857. done
  9858. if test -z "$haveit"; then
  9859. if test -d "$additional_libdir"; then
  9860. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9861. fi
  9862. fi
  9863. haveit=
  9864. for x in $LDFLAGS $LTLIBICONV; do
  9865. acl_save_prefix="$prefix"
  9866. prefix="$acl_final_prefix"
  9867. acl_save_exec_prefix="$exec_prefix"
  9868. exec_prefix="$acl_final_exec_prefix"
  9869. eval x=\"$x\"
  9870. exec_prefix="$acl_save_exec_prefix"
  9871. prefix="$acl_save_prefix"
  9872. if test "X$x" = "X-L$additional_libdir"; then
  9873. haveit=yes
  9874. break
  9875. fi
  9876. done
  9877. if test -z "$haveit"; then
  9878. if test -d "$additional_libdir"; then
  9879. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9880. fi
  9881. fi
  9882. fi
  9883. fi
  9884. ;;
  9885. -R*)
  9886. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9887. if test "$enable_rpath" != no; then
  9888. haveit=
  9889. for x in $rpathdirs; do
  9890. if test "X$x" = "X$dir"; then
  9891. haveit=yes
  9892. break
  9893. fi
  9894. done
  9895. if test -z "$haveit"; then
  9896. rpathdirs="$rpathdirs $dir"
  9897. fi
  9898. haveit=
  9899. for x in $ltrpathdirs; do
  9900. if test "X$x" = "X$dir"; then
  9901. haveit=yes
  9902. break
  9903. fi
  9904. done
  9905. if test -z "$haveit"; then
  9906. ltrpathdirs="$ltrpathdirs $dir"
  9907. fi
  9908. fi
  9909. ;;
  9910. -l*)
  9911. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9912. ;;
  9913. *.la)
  9914. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9915. ;;
  9916. *)
  9917. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9918. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9919. ;;
  9920. esac
  9921. done
  9922. fi
  9923. else
  9924. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9925. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9926. fi
  9927. fi
  9928. fi
  9929. done
  9930. done
  9931. if test "X$rpathdirs" != "X"; then
  9932. if test -n "$acl_hardcode_libdir_separator"; then
  9933. alldirs=
  9934. for found_dir in $rpathdirs; do
  9935. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9936. done
  9937. acl_save_libdir="$libdir"
  9938. libdir="$alldirs"
  9939. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9940. libdir="$acl_save_libdir"
  9941. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9942. else
  9943. for found_dir in $rpathdirs; do
  9944. acl_save_libdir="$libdir"
  9945. libdir="$found_dir"
  9946. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9947. libdir="$acl_save_libdir"
  9948. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9949. done
  9950. fi
  9951. fi
  9952. if test "X$ltrpathdirs" != "X"; then
  9953. for found_dir in $ltrpathdirs; do
  9954. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9955. done
  9956. fi
  9957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9958. /* end confdefs.h. */
  9959. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9960. int
  9961. main ()
  9962. {
  9963. ;
  9964. return 0;
  9965. }
  9966. _ACEOF
  9967. if ac_fn_cxx_try_link "$LINENO"; then :
  9968. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9969. fi
  9970. rm -f core conftest.err conftest.$ac_objext \
  9971. conftest$ac_exeext conftest.$ac_ext
  9972. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9973. do :
  9974. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9975. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9976. eval as_val=\$$as_ac_Header
  9977. if test "x$as_val" = x""yes; then :
  9978. cat >>confdefs.h <<_ACEOF
  9979. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9980. _ACEOF
  9981. fi
  9982. done
  9983. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9984. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9985. argz_next __fsetlocking
  9986. do :
  9987. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9988. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9989. eval as_val=\$$as_ac_var
  9990. if test "x$as_val" = x""yes; then :
  9991. cat >>confdefs.h <<_ACEOF
  9992. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9993. _ACEOF
  9994. fi
  9995. done
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9997. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9998. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9999. $as_echo_n "(cached) " >&6
  10000. else
  10001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10002. /* end confdefs.h. */
  10003. #include <stdio.h>
  10004. int
  10005. main ()
  10006. {
  10007. #ifndef feof_unlocked
  10008. char *p = (char *) feof_unlocked;
  10009. #endif
  10010. ;
  10011. return 0;
  10012. }
  10013. _ACEOF
  10014. if ac_fn_cxx_try_compile "$LINENO"; then :
  10015. ac_cv_have_decl_feof_unlocked=yes
  10016. else
  10017. ac_cv_have_decl_feof_unlocked=no
  10018. fi
  10019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10020. fi
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10022. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10023. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10024. gt_value=1
  10025. else
  10026. gt_value=0
  10027. fi
  10028. cat >>confdefs.h <<_ACEOF
  10029. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10030. _ACEOF
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10032. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10033. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10034. $as_echo_n "(cached) " >&6
  10035. else
  10036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. /* end confdefs.h. */
  10038. #include <stdio.h>
  10039. int
  10040. main ()
  10041. {
  10042. #ifndef fgets_unlocked
  10043. char *p = (char *) fgets_unlocked;
  10044. #endif
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_cxx_try_compile "$LINENO"; then :
  10050. ac_cv_have_decl_fgets_unlocked=yes
  10051. else
  10052. ac_cv_have_decl_fgets_unlocked=no
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10055. fi
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10057. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10058. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10059. gt_value=1
  10060. else
  10061. gt_value=0
  10062. fi
  10063. cat >>confdefs.h <<_ACEOF
  10064. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10065. _ACEOF
  10066. am_save_CPPFLAGS="$CPPFLAGS"
  10067. for element in $INCICONV; do
  10068. haveit=
  10069. for x in $CPPFLAGS; do
  10070. acl_save_prefix="$prefix"
  10071. prefix="$acl_final_prefix"
  10072. acl_save_exec_prefix="$exec_prefix"
  10073. exec_prefix="$acl_final_exec_prefix"
  10074. eval x=\"$x\"
  10075. exec_prefix="$acl_save_exec_prefix"
  10076. prefix="$acl_save_prefix"
  10077. if test "X$x" = "X$element"; then
  10078. haveit=yes
  10079. break
  10080. fi
  10081. done
  10082. if test -z "$haveit"; then
  10083. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10084. fi
  10085. done
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10087. $as_echo_n "checking for iconv... " >&6; }
  10088. if test "${am_cv_func_iconv+set}" = set; then :
  10089. $as_echo_n "(cached) " >&6
  10090. else
  10091. am_cv_func_iconv="no, consider installing GNU libiconv"
  10092. am_cv_lib_iconv=no
  10093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10094. /* end confdefs.h. */
  10095. #include <stdlib.h>
  10096. #include <iconv.h>
  10097. int
  10098. main ()
  10099. {
  10100. iconv_t cd = iconv_open("","");
  10101. iconv(cd,NULL,NULL,NULL,NULL);
  10102. iconv_close(cd);
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_cxx_try_link "$LINENO"; then :
  10108. am_cv_func_iconv=yes
  10109. fi
  10110. rm -f core conftest.err conftest.$ac_objext \
  10111. conftest$ac_exeext conftest.$ac_ext
  10112. if test "$am_cv_func_iconv" != yes; then
  10113. am_save_LIBS="$LIBS"
  10114. LIBS="$LIBS $LIBICONV"
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. #include <stdlib.h>
  10118. #include <iconv.h>
  10119. int
  10120. main ()
  10121. {
  10122. iconv_t cd = iconv_open("","");
  10123. iconv(cd,NULL,NULL,NULL,NULL);
  10124. iconv_close(cd);
  10125. ;
  10126. return 0;
  10127. }
  10128. _ACEOF
  10129. if ac_fn_cxx_try_link "$LINENO"; then :
  10130. am_cv_lib_iconv=yes
  10131. am_cv_func_iconv=yes
  10132. fi
  10133. rm -f core conftest.err conftest.$ac_objext \
  10134. conftest$ac_exeext conftest.$ac_ext
  10135. LIBS="$am_save_LIBS"
  10136. fi
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10139. $as_echo "$am_cv_func_iconv" >&6; }
  10140. if test "$am_cv_func_iconv" = yes; then
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10142. $as_echo_n "checking for working iconv... " >&6; }
  10143. if test "${am_cv_func_iconv_works+set}" = set; then :
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. am_save_LIBS="$LIBS"
  10147. if test $am_cv_lib_iconv = yes; then
  10148. LIBS="$LIBS $LIBICONV"
  10149. fi
  10150. if test "$cross_compiling" = yes; then :
  10151. case "$host_os" in
  10152. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10153. *) am_cv_func_iconv_works="guessing yes" ;;
  10154. esac
  10155. else
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. #include <iconv.h>
  10159. #include <string.h>
  10160. int main ()
  10161. {
  10162. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10163. returns. */
  10164. {
  10165. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10166. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10167. {
  10168. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10169. char buf[10];
  10170. const char *inptr = input;
  10171. size_t inbytesleft = strlen (input);
  10172. char *outptr = buf;
  10173. size_t outbytesleft = sizeof (buf);
  10174. size_t res = iconv (cd_utf8_to_88591,
  10175. (char **) &inptr, &inbytesleft,
  10176. &outptr, &outbytesleft);
  10177. if (res == 0)
  10178. return 1;
  10179. }
  10180. }
  10181. #if 0 /* This bug could be worked around by the caller. */
  10182. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10183. {
  10184. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10185. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10186. {
  10187. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10188. char buf[50];
  10189. const char *inptr = input;
  10190. size_t inbytesleft = strlen (input);
  10191. char *outptr = buf;
  10192. size_t outbytesleft = sizeof (buf);
  10193. size_t res = iconv (cd_88591_to_utf8,
  10194. (char **) &inptr, &inbytesleft,
  10195. &outptr, &outbytesleft);
  10196. if ((int)res > 0)
  10197. return 1;
  10198. }
  10199. }
  10200. #endif
  10201. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10202. provided. */
  10203. if (/* Try standardized names. */
  10204. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10205. /* Try IRIX, OSF/1 names. */
  10206. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10207. /* Try AIX names. */
  10208. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10209. /* Try HP-UX names. */
  10210. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10211. return 1;
  10212. return 0;
  10213. }
  10214. _ACEOF
  10215. if ac_fn_cxx_try_run "$LINENO"; then :
  10216. am_cv_func_iconv_works=yes
  10217. else
  10218. am_cv_func_iconv_works=no
  10219. fi
  10220. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10221. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10222. fi
  10223. LIBS="$am_save_LIBS"
  10224. fi
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10226. $as_echo "$am_cv_func_iconv_works" >&6; }
  10227. case "$am_cv_func_iconv_works" in
  10228. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10229. *) am_func_iconv=yes ;;
  10230. esac
  10231. else
  10232. am_func_iconv=no am_cv_lib_iconv=no
  10233. fi
  10234. if test "$am_func_iconv" = yes; then
  10235. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10236. fi
  10237. if test "$am_cv_lib_iconv" = yes; then
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10239. $as_echo_n "checking how to link with libiconv... " >&6; }
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10241. $as_echo "$LIBICONV" >&6; }
  10242. else
  10243. CPPFLAGS="$am_save_CPPFLAGS"
  10244. LIBICONV=
  10245. LTLIBICONV=
  10246. fi
  10247. if test "$am_cv_func_iconv" = yes; then
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10249. $as_echo_n "checking for iconv declaration... " >&6; }
  10250. if test "${am_cv_proto_iconv+set}" = set; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10254. /* end confdefs.h. */
  10255. #include <stdlib.h>
  10256. #include <iconv.h>
  10257. extern
  10258. #ifdef __cplusplus
  10259. "C"
  10260. #endif
  10261. #if defined(__STDC__) || defined(__cplusplus)
  10262. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10263. #else
  10264. size_t iconv();
  10265. #endif
  10266. int
  10267. main ()
  10268. {
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. if ac_fn_cxx_try_compile "$LINENO"; then :
  10274. am_cv_proto_iconv_arg1=""
  10275. else
  10276. am_cv_proto_iconv_arg1="const"
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10279. 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);"
  10280. fi
  10281. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10283. }$am_cv_proto_iconv" >&5
  10284. $as_echo "${ac_t:-
  10285. }$am_cv_proto_iconv" >&6; }
  10286. cat >>confdefs.h <<_ACEOF
  10287. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10288. _ACEOF
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10291. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10292. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10293. $as_echo_n "(cached) " >&6
  10294. else
  10295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10296. /* end confdefs.h. */
  10297. #include <langinfo.h>
  10298. #include <locale.h>
  10299. int
  10300. main ()
  10301. {
  10302. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10303. return !cs;
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_cxx_try_link "$LINENO"; then :
  10309. gt_cv_nl_locale_name=yes
  10310. else
  10311. gt_cv_nl_locale_name=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. fi
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10317. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10318. if test $gt_cv_nl_locale_name = yes; then
  10319. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10320. fi
  10321. for ac_prog in bison
  10322. do
  10323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10324. set dummy $ac_prog; ac_word=$2
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10326. $as_echo_n "checking for $ac_word... " >&6; }
  10327. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. if test -n "$INTLBISON"; then
  10331. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10332. else
  10333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10334. for as_dir in $PATH
  10335. do
  10336. IFS=$as_save_IFS
  10337. test -z "$as_dir" && as_dir=.
  10338. for ac_exec_ext in '' $ac_executable_extensions; do
  10339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10340. ac_cv_prog_INTLBISON="$ac_prog"
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10342. break 2
  10343. fi
  10344. done
  10345. done
  10346. IFS=$as_save_IFS
  10347. fi
  10348. fi
  10349. INTLBISON=$ac_cv_prog_INTLBISON
  10350. if test -n "$INTLBISON"; then
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10352. $as_echo "$INTLBISON" >&6; }
  10353. else
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10355. $as_echo "no" >&6; }
  10356. fi
  10357. test -n "$INTLBISON" && break
  10358. done
  10359. if test -z "$INTLBISON"; then
  10360. ac_verc_fail=yes
  10361. else
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10363. $as_echo_n "checking version of bison... " >&6; }
  10364. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10365. case $ac_prog_version in
  10366. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10367. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10368. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10369. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10370. esac
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10372. $as_echo "$ac_prog_version" >&6; }
  10373. fi
  10374. if test $ac_verc_fail = yes; then
  10375. INTLBISON=:
  10376. fi
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10378. $as_echo_n "checking for long long int... " >&6; }
  10379. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10383. /* end confdefs.h. */
  10384. /* Test preprocessor. */
  10385. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10386. error in preprocessor;
  10387. #endif
  10388. #if ! (18446744073709551615ULL <= -1ull)
  10389. error in preprocessor;
  10390. #endif
  10391. /* Test literals. */
  10392. long long int ll = 9223372036854775807ll;
  10393. long long int nll = -9223372036854775807LL;
  10394. unsigned long long int ull = 18446744073709551615ULL;
  10395. /* Test constant expressions. */
  10396. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10397. ? 1 : -1)];
  10398. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10399. ? 1 : -1)];
  10400. int i = 63;
  10401. int
  10402. main ()
  10403. {
  10404. /* Test availability of runtime routines for shift and division. */
  10405. long long int llmax = 9223372036854775807ll;
  10406. unsigned long long int ullmax = 18446744073709551615ull;
  10407. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10408. | (llmax / ll) | (llmax % ll)
  10409. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10410. | (ullmax / ull) | (ullmax % ull));
  10411. ;
  10412. return 0;
  10413. }
  10414. _ACEOF
  10415. if ac_fn_cxx_try_link "$LINENO"; then :
  10416. if test "$cross_compiling" = yes; then :
  10417. ac_cv_type_long_long_int=yes
  10418. else
  10419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10420. /* end confdefs.h. */
  10421. #include <limits.h>
  10422. #ifndef LLONG_MAX
  10423. # define HALF \
  10424. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10425. # define LLONG_MAX (HALF - 1 + HALF)
  10426. #endif
  10427. int
  10428. main ()
  10429. {
  10430. long long int n = 1;
  10431. int i;
  10432. for (i = 0; ; i++)
  10433. {
  10434. long long int m = n << i;
  10435. if (m >> i != n)
  10436. return 1;
  10437. if (LLONG_MAX / 2 < m)
  10438. break;
  10439. }
  10440. return 0;
  10441. ;
  10442. return 0;
  10443. }
  10444. _ACEOF
  10445. if ac_fn_cxx_try_run "$LINENO"; then :
  10446. ac_cv_type_long_long_int=yes
  10447. else
  10448. ac_cv_type_long_long_int=no
  10449. fi
  10450. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10451. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10452. fi
  10453. else
  10454. ac_cv_type_long_long_int=no
  10455. fi
  10456. rm -f core conftest.err conftest.$ac_objext \
  10457. conftest$ac_exeext conftest.$ac_ext
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10460. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10461. if test $ac_cv_type_long_long_int = yes; then
  10462. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10463. fi
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10465. $as_echo_n "checking for wchar_t... " >&6; }
  10466. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10470. /* end confdefs.h. */
  10471. #include <stddef.h>
  10472. wchar_t foo = (wchar_t)'\0';
  10473. int
  10474. main ()
  10475. {
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_cxx_try_compile "$LINENO"; then :
  10481. gt_cv_c_wchar_t=yes
  10482. else
  10483. gt_cv_c_wchar_t=no
  10484. fi
  10485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10488. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10489. if test $gt_cv_c_wchar_t = yes; then
  10490. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10493. $as_echo_n "checking for wint_t... " >&6; }
  10494. if test "${gt_cv_c_wint_t+set}" = set; then :
  10495. $as_echo_n "(cached) " >&6
  10496. else
  10497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10498. /* end confdefs.h. */
  10499. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10500. <wchar.h>.
  10501. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10502. before <wchar.h>. */
  10503. #include <stddef.h>
  10504. #include <stdio.h>
  10505. #include <time.h>
  10506. #include <wchar.h>
  10507. wint_t foo = (wchar_t)'\0';
  10508. int
  10509. main ()
  10510. {
  10511. ;
  10512. return 0;
  10513. }
  10514. _ACEOF
  10515. if ac_fn_cxx_try_compile "$LINENO"; then :
  10516. gt_cv_c_wint_t=yes
  10517. else
  10518. gt_cv_c_wint_t=no
  10519. fi
  10520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10521. fi
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10523. $as_echo "$gt_cv_c_wint_t" >&6; }
  10524. if test $gt_cv_c_wint_t = yes; then
  10525. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10526. fi
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10528. $as_echo_n "checking for intmax_t... " >&6; }
  10529. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10530. $as_echo_n "(cached) " >&6
  10531. else
  10532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10533. /* end confdefs.h. */
  10534. #include <stddef.h>
  10535. #include <stdlib.h>
  10536. #if HAVE_STDINT_H_WITH_UINTMAX
  10537. #include <stdint.h>
  10538. #endif
  10539. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10540. #include <inttypes.h>
  10541. #endif
  10542. int
  10543. main ()
  10544. {
  10545. intmax_t x = -1;
  10546. return !x;
  10547. ;
  10548. return 0;
  10549. }
  10550. _ACEOF
  10551. if ac_fn_cxx_try_compile "$LINENO"; then :
  10552. gt_cv_c_intmax_t=yes
  10553. else
  10554. gt_cv_c_intmax_t=no
  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10557. fi
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10559. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10560. if test $gt_cv_c_intmax_t = yes; then
  10561. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10562. fi
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10564. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10565. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10566. $as_echo_n "(cached) " >&6
  10567. else
  10568. if test "$cross_compiling" = yes; then :
  10569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10570. /* end confdefs.h. */
  10571. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10572. notposix
  10573. #endif
  10574. _ACEOF
  10575. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10576. $EGREP "notposix" >/dev/null 2>&1; then :
  10577. gt_cv_func_printf_posix="guessing no"
  10578. else
  10579. gt_cv_func_printf_posix="guessing yes"
  10580. fi
  10581. rm -f conftest*
  10582. else
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #include <stdio.h>
  10586. #include <string.h>
  10587. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10588. dollar expansion (possibly an autoconf bug). */
  10589. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10590. static char buf[100];
  10591. int main ()
  10592. {
  10593. sprintf (buf, format, 33, 55);
  10594. return (strcmp (buf, "55 33") != 0);
  10595. }
  10596. _ACEOF
  10597. if ac_fn_cxx_try_run "$LINENO"; then :
  10598. gt_cv_func_printf_posix=yes
  10599. else
  10600. gt_cv_func_printf_posix=no
  10601. fi
  10602. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10603. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10604. fi
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10607. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10608. case $gt_cv_func_printf_posix in
  10609. *yes)
  10610. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10611. ;;
  10612. esac
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10614. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10615. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10616. $as_echo_n "(cached) " >&6
  10617. else
  10618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10619. /* end confdefs.h. */
  10620. #include <features.h>
  10621. #ifdef __GNU_LIBRARY__
  10622. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10623. Lucky GNU user
  10624. #endif
  10625. #endif
  10626. _ACEOF
  10627. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10628. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10629. ac_cv_gnu_library_2_1=yes
  10630. else
  10631. ac_cv_gnu_library_2_1=no
  10632. fi
  10633. rm -f conftest*
  10634. fi
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10636. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10637. GLIBC21="$ac_cv_gnu_library_2_1"
  10638. for ac_header in stdint.h
  10639. do :
  10640. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10641. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10642. cat >>confdefs.h <<_ACEOF
  10643. #define HAVE_STDINT_H 1
  10644. _ACEOF
  10645. fi
  10646. done
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10648. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10649. if test "${gl_cv_size_max+set}" = set; then :
  10650. $as_echo_n "(cached) " >&6
  10651. else
  10652. gl_cv_size_max=
  10653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10654. /* end confdefs.h. */
  10655. #include <limits.h>
  10656. #if HAVE_STDINT_H
  10657. #include <stdint.h>
  10658. #endif
  10659. #ifdef SIZE_MAX
  10660. Found it
  10661. #endif
  10662. _ACEOF
  10663. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10664. $EGREP "Found it" >/dev/null 2>&1; then :
  10665. gl_cv_size_max=yes
  10666. fi
  10667. rm -f conftest*
  10668. if test -z "$gl_cv_size_max"; then
  10669. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10670. #include <limits.h>"; then :
  10671. else
  10672. size_t_bits_minus_1=
  10673. fi
  10674. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10675. else
  10676. fits_in_uint=
  10677. fi
  10678. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10679. if test $fits_in_uint = 1; then
  10680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10681. /* end confdefs.h. */
  10682. #include <stddef.h>
  10683. extern size_t foo;
  10684. extern unsigned long foo;
  10685. int
  10686. main ()
  10687. {
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. if ac_fn_cxx_try_compile "$LINENO"; then :
  10693. fits_in_uint=0
  10694. fi
  10695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10696. fi
  10697. if test $fits_in_uint = 1; then
  10698. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10699. else
  10700. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10701. fi
  10702. else
  10703. gl_cv_size_max='((size_t)~(size_t)0)'
  10704. fi
  10705. fi
  10706. fi
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10708. $as_echo "$gl_cv_size_max" >&6; }
  10709. if test "$gl_cv_size_max" != yes; then
  10710. cat >>confdefs.h <<_ACEOF
  10711. #define SIZE_MAX $gl_cv_size_max
  10712. _ACEOF
  10713. fi
  10714. for ac_header in stdint.h
  10715. do :
  10716. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10717. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10718. cat >>confdefs.h <<_ACEOF
  10719. #define HAVE_STDINT_H 1
  10720. _ACEOF
  10721. fi
  10722. done
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10724. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10725. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10726. $as_echo_n "(cached) " >&6
  10727. else
  10728. gt_save_LIBS="$LIBS"
  10729. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10731. /* end confdefs.h. */
  10732. #include <CoreFoundation/CFPreferences.h>
  10733. int
  10734. main ()
  10735. {
  10736. CFPreferencesCopyAppValue(NULL, NULL)
  10737. ;
  10738. return 0;
  10739. }
  10740. _ACEOF
  10741. if ac_fn_cxx_try_link "$LINENO"; then :
  10742. gt_cv_func_CFPreferencesCopyAppValue=yes
  10743. else
  10744. gt_cv_func_CFPreferencesCopyAppValue=no
  10745. fi
  10746. rm -f core conftest.err conftest.$ac_objext \
  10747. conftest$ac_exeext conftest.$ac_ext
  10748. LIBS="$gt_save_LIBS"
  10749. fi
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10751. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10752. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10753. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10754. fi
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10756. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10757. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10758. $as_echo_n "(cached) " >&6
  10759. else
  10760. gt_save_LIBS="$LIBS"
  10761. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. #include <CoreFoundation/CFLocale.h>
  10765. int
  10766. main ()
  10767. {
  10768. CFLocaleCopyCurrent();
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_cxx_try_link "$LINENO"; then :
  10774. gt_cv_func_CFLocaleCopyCurrent=yes
  10775. else
  10776. gt_cv_func_CFLocaleCopyCurrent=no
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. LIBS="$gt_save_LIBS"
  10781. fi
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10783. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10784. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10785. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10786. fi
  10787. INTL_MACOSX_LIBS=
  10788. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10789. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10790. fi
  10791. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10792. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10793. else
  10794. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10795. fi
  10796. for ac_header in stddef.h stdlib.h string.h
  10797. do :
  10798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10799. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10800. eval as_val=\$$as_ac_Header
  10801. if test "x$as_val" = x""yes; then :
  10802. cat >>confdefs.h <<_ACEOF
  10803. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10804. _ACEOF
  10805. fi
  10806. done
  10807. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10808. do :
  10809. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10810. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10811. eval as_val=\$$as_ac_var
  10812. if test "x$as_val" = x""yes; then :
  10813. cat >>confdefs.h <<_ACEOF
  10814. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10815. _ACEOF
  10816. fi
  10817. done
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10819. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10820. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10821. $as_echo_n "(cached) " >&6
  10822. else
  10823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10824. /* end confdefs.h. */
  10825. #include <stdio.h>
  10826. int
  10827. main ()
  10828. {
  10829. #ifndef _snprintf
  10830. char *p = (char *) _snprintf;
  10831. #endif
  10832. ;
  10833. return 0;
  10834. }
  10835. _ACEOF
  10836. if ac_fn_cxx_try_compile "$LINENO"; then :
  10837. ac_cv_have_decl__snprintf=yes
  10838. else
  10839. ac_cv_have_decl__snprintf=no
  10840. fi
  10841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10842. fi
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10844. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10845. if test $ac_cv_have_decl__snprintf = yes; then
  10846. gt_value=1
  10847. else
  10848. gt_value=0
  10849. fi
  10850. cat >>confdefs.h <<_ACEOF
  10851. #define HAVE_DECL__SNPRINTF $gt_value
  10852. _ACEOF
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10854. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10855. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10859. /* end confdefs.h. */
  10860. #include <stdio.h>
  10861. int
  10862. main ()
  10863. {
  10864. #ifndef _snwprintf
  10865. char *p = (char *) _snwprintf;
  10866. #endif
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. if ac_fn_cxx_try_compile "$LINENO"; then :
  10872. ac_cv_have_decl__snwprintf=yes
  10873. else
  10874. ac_cv_have_decl__snwprintf=no
  10875. fi
  10876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10877. fi
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10879. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10880. if test $ac_cv_have_decl__snwprintf = yes; then
  10881. gt_value=1
  10882. else
  10883. gt_value=0
  10884. fi
  10885. cat >>confdefs.h <<_ACEOF
  10886. #define HAVE_DECL__SNWPRINTF $gt_value
  10887. _ACEOF
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10889. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10890. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. #include <stdio.h>
  10896. int
  10897. main ()
  10898. {
  10899. #ifndef getc_unlocked
  10900. char *p = (char *) getc_unlocked;
  10901. #endif
  10902. ;
  10903. return 0;
  10904. }
  10905. _ACEOF
  10906. if ac_fn_cxx_try_compile "$LINENO"; then :
  10907. ac_cv_have_decl_getc_unlocked=yes
  10908. else
  10909. ac_cv_have_decl_getc_unlocked=no
  10910. fi
  10911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10912. fi
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10914. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10915. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10916. gt_value=1
  10917. else
  10918. gt_value=0
  10919. fi
  10920. cat >>confdefs.h <<_ACEOF
  10921. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10922. _ACEOF
  10923. case $gt_cv_func_printf_posix in
  10924. *yes) HAVE_POSIX_PRINTF=1 ;;
  10925. *) HAVE_POSIX_PRINTF=0 ;;
  10926. esac
  10927. if test "$ac_cv_func_asprintf" = yes; then
  10928. HAVE_ASPRINTF=1
  10929. else
  10930. HAVE_ASPRINTF=0
  10931. fi
  10932. if test "$ac_cv_func_snprintf" = yes; then
  10933. HAVE_SNPRINTF=1
  10934. else
  10935. HAVE_SNPRINTF=0
  10936. fi
  10937. if test "$ac_cv_func_wprintf" = yes; then
  10938. HAVE_WPRINTF=1
  10939. else
  10940. HAVE_WPRINTF=0
  10941. fi
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10943. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10944. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. #include <langinfo.h>
  10950. int
  10951. main ()
  10952. {
  10953. char* cs = nl_langinfo(CODESET); return !cs;
  10954. ;
  10955. return 0;
  10956. }
  10957. _ACEOF
  10958. if ac_fn_cxx_try_link "$LINENO"; then :
  10959. am_cv_langinfo_codeset=yes
  10960. else
  10961. am_cv_langinfo_codeset=no
  10962. fi
  10963. rm -f core conftest.err conftest.$ac_objext \
  10964. conftest$ac_exeext conftest.$ac_ext
  10965. fi
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10967. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10968. if test $am_cv_langinfo_codeset = yes; then
  10969. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10970. fi
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10972. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10973. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10974. $as_echo_n "(cached) " >&6
  10975. else
  10976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10977. /* end confdefs.h. */
  10978. #include <locale.h>
  10979. int
  10980. main ()
  10981. {
  10982. return LC_MESSAGES
  10983. ;
  10984. return 0;
  10985. }
  10986. _ACEOF
  10987. if ac_fn_cxx_try_link "$LINENO"; then :
  10988. gt_cv_val_LC_MESSAGES=yes
  10989. else
  10990. gt_cv_val_LC_MESSAGES=no
  10991. fi
  10992. rm -f core conftest.err conftest.$ac_objext \
  10993. conftest$ac_exeext conftest.$ac_ext
  10994. fi
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10996. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10997. if test $gt_cv_val_LC_MESSAGES = yes; then
  10998. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10999. fi
  11000. if test "$enable_shared" = yes; then
  11001. case "$host_os" in
  11002. mingw* | cygwin*) is_woe32dll=yes ;;
  11003. *) is_woe32dll=no ;;
  11004. esac
  11005. else
  11006. is_woe32dll=no
  11007. fi
  11008. WOE32DLL=$is_woe32dll
  11009. case "$host_os" in
  11010. mingw* | cygwin*) is_woe32=yes ;;
  11011. *) is_woe32=no ;;
  11012. esac
  11013. WOE32=$is_woe32
  11014. if test $WOE32 = yes; then
  11015. if test -n "$ac_tool_prefix"; then
  11016. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11017. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11019. $as_echo_n "checking for $ac_word... " >&6; }
  11020. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11021. $as_echo_n "(cached) " >&6
  11022. else
  11023. if test -n "$WINDRES"; then
  11024. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11025. else
  11026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11027. for as_dir in $PATH
  11028. do
  11029. IFS=$as_save_IFS
  11030. test -z "$as_dir" && as_dir=.
  11031. for ac_exec_ext in '' $ac_executable_extensions; do
  11032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11033. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11035. break 2
  11036. fi
  11037. done
  11038. done
  11039. IFS=$as_save_IFS
  11040. fi
  11041. fi
  11042. WINDRES=$ac_cv_prog_WINDRES
  11043. if test -n "$WINDRES"; then
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11045. $as_echo "$WINDRES" >&6; }
  11046. else
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11048. $as_echo "no" >&6; }
  11049. fi
  11050. fi
  11051. if test -z "$ac_cv_prog_WINDRES"; then
  11052. ac_ct_WINDRES=$WINDRES
  11053. # Extract the first word of "windres", so it can be a program name with args.
  11054. set dummy windres; ac_word=$2
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11056. $as_echo_n "checking for $ac_word... " >&6; }
  11057. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11058. $as_echo_n "(cached) " >&6
  11059. else
  11060. if test -n "$ac_ct_WINDRES"; then
  11061. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11062. else
  11063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11064. for as_dir in $PATH
  11065. do
  11066. IFS=$as_save_IFS
  11067. test -z "$as_dir" && as_dir=.
  11068. for ac_exec_ext in '' $ac_executable_extensions; do
  11069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11070. ac_cv_prog_ac_ct_WINDRES="windres"
  11071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11072. break 2
  11073. fi
  11074. done
  11075. done
  11076. IFS=$as_save_IFS
  11077. fi
  11078. fi
  11079. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11080. if test -n "$ac_ct_WINDRES"; then
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11082. $as_echo "$ac_ct_WINDRES" >&6; }
  11083. else
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11085. $as_echo "no" >&6; }
  11086. fi
  11087. if test "x$ac_ct_WINDRES" = x; then
  11088. WINDRES=""
  11089. else
  11090. case $cross_compiling:$ac_tool_warned in
  11091. yes:)
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11093. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11094. ac_tool_warned=yes ;;
  11095. esac
  11096. WINDRES=$ac_ct_WINDRES
  11097. fi
  11098. else
  11099. WINDRES="$ac_cv_prog_WINDRES"
  11100. fi
  11101. fi
  11102. case "$host_os" in
  11103. hpux*) LTLIBC="" ;;
  11104. *) LTLIBC="-lc" ;;
  11105. esac
  11106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11107. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11108. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11109. $as_echo_n "(cached) " >&6
  11110. else
  11111. gt_save_LIBS="$LIBS"
  11112. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11114. /* end confdefs.h. */
  11115. #include <CoreFoundation/CFPreferences.h>
  11116. int
  11117. main ()
  11118. {
  11119. CFPreferencesCopyAppValue(NULL, NULL)
  11120. ;
  11121. return 0;
  11122. }
  11123. _ACEOF
  11124. if ac_fn_cxx_try_link "$LINENO"; then :
  11125. gt_cv_func_CFPreferencesCopyAppValue=yes
  11126. else
  11127. gt_cv_func_CFPreferencesCopyAppValue=no
  11128. fi
  11129. rm -f core conftest.err conftest.$ac_objext \
  11130. conftest$ac_exeext conftest.$ac_ext
  11131. LIBS="$gt_save_LIBS"
  11132. fi
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11134. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11135. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11136. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11137. fi
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11139. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11140. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11141. $as_echo_n "(cached) " >&6
  11142. else
  11143. gt_save_LIBS="$LIBS"
  11144. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11146. /* end confdefs.h. */
  11147. #include <CoreFoundation/CFLocale.h>
  11148. int
  11149. main ()
  11150. {
  11151. CFLocaleCopyCurrent();
  11152. ;
  11153. return 0;
  11154. }
  11155. _ACEOF
  11156. if ac_fn_cxx_try_link "$LINENO"; then :
  11157. gt_cv_func_CFLocaleCopyCurrent=yes
  11158. else
  11159. gt_cv_func_CFLocaleCopyCurrent=no
  11160. fi
  11161. rm -f core conftest.err conftest.$ac_objext \
  11162. conftest$ac_exeext conftest.$ac_ext
  11163. LIBS="$gt_save_LIBS"
  11164. fi
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11166. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11167. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11168. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11169. fi
  11170. INTL_MACOSX_LIBS=
  11171. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11172. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11173. fi
  11174. BUILD_INCLUDED_LIBINTL=no
  11175. USE_INCLUDED_LIBINTL=no
  11176. LIBINTL=
  11177. LTLIBINTL=
  11178. POSUB=
  11179. case " $gt_needs " in
  11180. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11181. *" need-ngettext "*) gt_api_version=2 ;;
  11182. *) gt_api_version=1 ;;
  11183. esac
  11184. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11185. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11186. if test "$USE_NLS" = "yes"; then
  11187. gt_use_preinstalled_gnugettext=no
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11189. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11190. # Check whether --with-included-gettext was given.
  11191. if test "${with_included_gettext+set}" = set; then :
  11192. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11193. else
  11194. nls_cv_force_use_gnu_gettext=no
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11197. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11198. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11199. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11200. if test $gt_api_version -ge 3; then
  11201. gt_revision_test_code='
  11202. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11203. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11204. #endif
  11205. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11206. '
  11207. else
  11208. gt_revision_test_code=
  11209. fi
  11210. if test $gt_api_version -ge 2; then
  11211. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11212. else
  11213. gt_expression_test_code=
  11214. fi
  11215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11216. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11217. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11218. $as_echo_n "(cached) " >&6
  11219. else
  11220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11221. /* end confdefs.h. */
  11222. #include <libintl.h>
  11223. $gt_revision_test_code
  11224. extern int _nl_msg_cat_cntr;
  11225. extern int *_nl_domain_bindings;
  11226. int
  11227. main ()
  11228. {
  11229. bindtextdomain ("", "");
  11230. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11231. ;
  11232. return 0;
  11233. }
  11234. _ACEOF
  11235. if ac_fn_cxx_try_link "$LINENO"; then :
  11236. eval "$gt_func_gnugettext_libc=yes"
  11237. else
  11238. eval "$gt_func_gnugettext_libc=no"
  11239. fi
  11240. rm -f core conftest.err conftest.$ac_objext \
  11241. conftest$ac_exeext conftest.$ac_ext
  11242. fi
  11243. eval ac_res=\$$gt_func_gnugettext_libc
  11244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11245. $as_echo "$ac_res" >&6; }
  11246. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11247. use_additional=yes
  11248. acl_save_prefix="$prefix"
  11249. prefix="$acl_final_prefix"
  11250. acl_save_exec_prefix="$exec_prefix"
  11251. exec_prefix="$acl_final_exec_prefix"
  11252. eval additional_includedir=\"$includedir\"
  11253. eval additional_libdir=\"$libdir\"
  11254. exec_prefix="$acl_save_exec_prefix"
  11255. prefix="$acl_save_prefix"
  11256. # Check whether --with-libintl-prefix was given.
  11257. if test "${with_libintl_prefix+set}" = set; then :
  11258. withval=$with_libintl_prefix;
  11259. if test "X$withval" = "Xno"; then
  11260. use_additional=no
  11261. else
  11262. if test "X$withval" = "X"; then
  11263. acl_save_prefix="$prefix"
  11264. prefix="$acl_final_prefix"
  11265. acl_save_exec_prefix="$exec_prefix"
  11266. exec_prefix="$acl_final_exec_prefix"
  11267. eval additional_includedir=\"$includedir\"
  11268. eval additional_libdir=\"$libdir\"
  11269. exec_prefix="$acl_save_exec_prefix"
  11270. prefix="$acl_save_prefix"
  11271. else
  11272. additional_includedir="$withval/include"
  11273. additional_libdir="$withval/$acl_libdirstem"
  11274. fi
  11275. fi
  11276. fi
  11277. LIBINTL=
  11278. LTLIBINTL=
  11279. INCINTL=
  11280. LIBINTL_PREFIX=
  11281. rpathdirs=
  11282. ltrpathdirs=
  11283. names_already_handled=
  11284. names_next_round='intl '
  11285. while test -n "$names_next_round"; do
  11286. names_this_round="$names_next_round"
  11287. names_next_round=
  11288. for name in $names_this_round; do
  11289. already_handled=
  11290. for n in $names_already_handled; do
  11291. if test "$n" = "$name"; then
  11292. already_handled=yes
  11293. break
  11294. fi
  11295. done
  11296. if test -z "$already_handled"; then
  11297. names_already_handled="$names_already_handled $name"
  11298. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11299. eval value=\"\$HAVE_LIB$uppername\"
  11300. if test -n "$value"; then
  11301. if test "$value" = yes; then
  11302. eval value=\"\$LIB$uppername\"
  11303. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11304. eval value=\"\$LTLIB$uppername\"
  11305. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11306. else
  11307. :
  11308. fi
  11309. else
  11310. found_dir=
  11311. found_la=
  11312. found_so=
  11313. found_a=
  11314. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11315. if test -n "$acl_shlibext"; then
  11316. shrext=".$acl_shlibext" # typically: shrext=.so
  11317. else
  11318. shrext=
  11319. fi
  11320. if test $use_additional = yes; then
  11321. dir="$additional_libdir"
  11322. if test -n "$acl_shlibext"; then
  11323. if test -f "$dir/$libname$shrext"; then
  11324. found_dir="$dir"
  11325. found_so="$dir/$libname$shrext"
  11326. else
  11327. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11328. ver=`(cd "$dir" && \
  11329. for f in "$libname$shrext".*; do echo "$f"; done \
  11330. | sed -e "s,^$libname$shrext\\\\.,," \
  11331. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11332. | sed 1q ) 2>/dev/null`
  11333. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11334. found_dir="$dir"
  11335. found_so="$dir/$libname$shrext.$ver"
  11336. fi
  11337. else
  11338. eval library_names=\"$acl_library_names_spec\"
  11339. for f in $library_names; do
  11340. if test -f "$dir/$f"; then
  11341. found_dir="$dir"
  11342. found_so="$dir/$f"
  11343. break
  11344. fi
  11345. done
  11346. fi
  11347. fi
  11348. fi
  11349. if test "X$found_dir" = "X"; then
  11350. if test -f "$dir/$libname.$acl_libext"; then
  11351. found_dir="$dir"
  11352. found_a="$dir/$libname.$acl_libext"
  11353. fi
  11354. fi
  11355. if test "X$found_dir" != "X"; then
  11356. if test -f "$dir/$libname.la"; then
  11357. found_la="$dir/$libname.la"
  11358. fi
  11359. fi
  11360. fi
  11361. if test "X$found_dir" = "X"; then
  11362. for x in $LDFLAGS $LTLIBINTL; do
  11363. acl_save_prefix="$prefix"
  11364. prefix="$acl_final_prefix"
  11365. acl_save_exec_prefix="$exec_prefix"
  11366. exec_prefix="$acl_final_exec_prefix"
  11367. eval x=\"$x\"
  11368. exec_prefix="$acl_save_exec_prefix"
  11369. prefix="$acl_save_prefix"
  11370. case "$x" in
  11371. -L*)
  11372. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11373. if test -n "$acl_shlibext"; then
  11374. if test -f "$dir/$libname$shrext"; then
  11375. found_dir="$dir"
  11376. found_so="$dir/$libname$shrext"
  11377. else
  11378. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11379. ver=`(cd "$dir" && \
  11380. for f in "$libname$shrext".*; do echo "$f"; done \
  11381. | sed -e "s,^$libname$shrext\\\\.,," \
  11382. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11383. | sed 1q ) 2>/dev/null`
  11384. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11385. found_dir="$dir"
  11386. found_so="$dir/$libname$shrext.$ver"
  11387. fi
  11388. else
  11389. eval library_names=\"$acl_library_names_spec\"
  11390. for f in $library_names; do
  11391. if test -f "$dir/$f"; then
  11392. found_dir="$dir"
  11393. found_so="$dir/$f"
  11394. break
  11395. fi
  11396. done
  11397. fi
  11398. fi
  11399. fi
  11400. if test "X$found_dir" = "X"; then
  11401. if test -f "$dir/$libname.$acl_libext"; then
  11402. found_dir="$dir"
  11403. found_a="$dir/$libname.$acl_libext"
  11404. fi
  11405. fi
  11406. if test "X$found_dir" != "X"; then
  11407. if test -f "$dir/$libname.la"; then
  11408. found_la="$dir/$libname.la"
  11409. fi
  11410. fi
  11411. ;;
  11412. esac
  11413. if test "X$found_dir" != "X"; then
  11414. break
  11415. fi
  11416. done
  11417. fi
  11418. if test "X$found_dir" != "X"; then
  11419. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11420. if test "X$found_so" != "X"; then
  11421. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11422. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11423. else
  11424. haveit=
  11425. for x in $ltrpathdirs; do
  11426. if test "X$x" = "X$found_dir"; then
  11427. haveit=yes
  11428. break
  11429. fi
  11430. done
  11431. if test -z "$haveit"; then
  11432. ltrpathdirs="$ltrpathdirs $found_dir"
  11433. fi
  11434. if test "$acl_hardcode_direct" = yes; then
  11435. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11436. else
  11437. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11438. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11439. haveit=
  11440. for x in $rpathdirs; do
  11441. if test "X$x" = "X$found_dir"; then
  11442. haveit=yes
  11443. break
  11444. fi
  11445. done
  11446. if test -z "$haveit"; then
  11447. rpathdirs="$rpathdirs $found_dir"
  11448. fi
  11449. else
  11450. haveit=
  11451. for x in $LDFLAGS $LIBINTL; do
  11452. acl_save_prefix="$prefix"
  11453. prefix="$acl_final_prefix"
  11454. acl_save_exec_prefix="$exec_prefix"
  11455. exec_prefix="$acl_final_exec_prefix"
  11456. eval x=\"$x\"
  11457. exec_prefix="$acl_save_exec_prefix"
  11458. prefix="$acl_save_prefix"
  11459. if test "X$x" = "X-L$found_dir"; then
  11460. haveit=yes
  11461. break
  11462. fi
  11463. done
  11464. if test -z "$haveit"; then
  11465. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11466. fi
  11467. if test "$acl_hardcode_minus_L" != no; then
  11468. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11469. else
  11470. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11471. fi
  11472. fi
  11473. fi
  11474. fi
  11475. else
  11476. if test "X$found_a" != "X"; then
  11477. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11478. else
  11479. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11480. fi
  11481. fi
  11482. additional_includedir=
  11483. case "$found_dir" in
  11484. */$acl_libdirstem | */$acl_libdirstem/)
  11485. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11486. LIBINTL_PREFIX="$basedir"
  11487. additional_includedir="$basedir/include"
  11488. ;;
  11489. esac
  11490. if test "X$additional_includedir" != "X"; then
  11491. if test "X$additional_includedir" != "X/usr/include"; then
  11492. haveit=
  11493. if test "X$additional_includedir" = "X/usr/local/include"; then
  11494. if test -n "$GCC"; then
  11495. case $host_os in
  11496. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11497. esac
  11498. fi
  11499. fi
  11500. if test -z "$haveit"; then
  11501. for x in $CPPFLAGS $INCINTL; do
  11502. acl_save_prefix="$prefix"
  11503. prefix="$acl_final_prefix"
  11504. acl_save_exec_prefix="$exec_prefix"
  11505. exec_prefix="$acl_final_exec_prefix"
  11506. eval x=\"$x\"
  11507. exec_prefix="$acl_save_exec_prefix"
  11508. prefix="$acl_save_prefix"
  11509. if test "X$x" = "X-I$additional_includedir"; then
  11510. haveit=yes
  11511. break
  11512. fi
  11513. done
  11514. if test -z "$haveit"; then
  11515. if test -d "$additional_includedir"; then
  11516. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11517. fi
  11518. fi
  11519. fi
  11520. fi
  11521. fi
  11522. if test -n "$found_la"; then
  11523. save_libdir="$libdir"
  11524. case "$found_la" in
  11525. */* | *\\*) . "$found_la" ;;
  11526. *) . "./$found_la" ;;
  11527. esac
  11528. libdir="$save_libdir"
  11529. for dep in $dependency_libs; do
  11530. case "$dep" in
  11531. -L*)
  11532. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11533. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11534. haveit=
  11535. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11536. if test -n "$GCC"; then
  11537. case $host_os in
  11538. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11539. esac
  11540. fi
  11541. fi
  11542. if test -z "$haveit"; then
  11543. haveit=
  11544. for x in $LDFLAGS $LIBINTL; do
  11545. acl_save_prefix="$prefix"
  11546. prefix="$acl_final_prefix"
  11547. acl_save_exec_prefix="$exec_prefix"
  11548. exec_prefix="$acl_final_exec_prefix"
  11549. eval x=\"$x\"
  11550. exec_prefix="$acl_save_exec_prefix"
  11551. prefix="$acl_save_prefix"
  11552. if test "X$x" = "X-L$additional_libdir"; then
  11553. haveit=yes
  11554. break
  11555. fi
  11556. done
  11557. if test -z "$haveit"; then
  11558. if test -d "$additional_libdir"; then
  11559. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11560. fi
  11561. fi
  11562. haveit=
  11563. for x in $LDFLAGS $LTLIBINTL; do
  11564. acl_save_prefix="$prefix"
  11565. prefix="$acl_final_prefix"
  11566. acl_save_exec_prefix="$exec_prefix"
  11567. exec_prefix="$acl_final_exec_prefix"
  11568. eval x=\"$x\"
  11569. exec_prefix="$acl_save_exec_prefix"
  11570. prefix="$acl_save_prefix"
  11571. if test "X$x" = "X-L$additional_libdir"; then
  11572. haveit=yes
  11573. break
  11574. fi
  11575. done
  11576. if test -z "$haveit"; then
  11577. if test -d "$additional_libdir"; then
  11578. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11579. fi
  11580. fi
  11581. fi
  11582. fi
  11583. ;;
  11584. -R*)
  11585. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11586. if test "$enable_rpath" != no; then
  11587. haveit=
  11588. for x in $rpathdirs; do
  11589. if test "X$x" = "X$dir"; then
  11590. haveit=yes
  11591. break
  11592. fi
  11593. done
  11594. if test -z "$haveit"; then
  11595. rpathdirs="$rpathdirs $dir"
  11596. fi
  11597. haveit=
  11598. for x in $ltrpathdirs; do
  11599. if test "X$x" = "X$dir"; then
  11600. haveit=yes
  11601. break
  11602. fi
  11603. done
  11604. if test -z "$haveit"; then
  11605. ltrpathdirs="$ltrpathdirs $dir"
  11606. fi
  11607. fi
  11608. ;;
  11609. -l*)
  11610. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11611. ;;
  11612. *.la)
  11613. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11614. ;;
  11615. *)
  11616. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11617. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11618. ;;
  11619. esac
  11620. done
  11621. fi
  11622. else
  11623. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11624. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11625. fi
  11626. fi
  11627. fi
  11628. done
  11629. done
  11630. if test "X$rpathdirs" != "X"; then
  11631. if test -n "$acl_hardcode_libdir_separator"; then
  11632. alldirs=
  11633. for found_dir in $rpathdirs; do
  11634. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11635. done
  11636. acl_save_libdir="$libdir"
  11637. libdir="$alldirs"
  11638. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11639. libdir="$acl_save_libdir"
  11640. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11641. else
  11642. for found_dir in $rpathdirs; do
  11643. acl_save_libdir="$libdir"
  11644. libdir="$found_dir"
  11645. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11646. libdir="$acl_save_libdir"
  11647. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11648. done
  11649. fi
  11650. fi
  11651. if test "X$ltrpathdirs" != "X"; then
  11652. for found_dir in $ltrpathdirs; do
  11653. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11654. done
  11655. fi
  11656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11657. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11658. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11659. $as_echo_n "(cached) " >&6
  11660. else
  11661. gt_save_CPPFLAGS="$CPPFLAGS"
  11662. CPPFLAGS="$CPPFLAGS $INCINTL"
  11663. gt_save_LIBS="$LIBS"
  11664. LIBS="$LIBS $LIBINTL"
  11665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11666. /* end confdefs.h. */
  11667. #include <libintl.h>
  11668. $gt_revision_test_code
  11669. extern int _nl_msg_cat_cntr;
  11670. extern
  11671. #ifdef __cplusplus
  11672. "C"
  11673. #endif
  11674. const char *_nl_expand_alias (const char *);
  11675. int
  11676. main ()
  11677. {
  11678. bindtextdomain ("", "");
  11679. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11680. ;
  11681. return 0;
  11682. }
  11683. _ACEOF
  11684. if ac_fn_cxx_try_link "$LINENO"; then :
  11685. eval "$gt_func_gnugettext_libintl=yes"
  11686. else
  11687. eval "$gt_func_gnugettext_libintl=no"
  11688. fi
  11689. rm -f core conftest.err conftest.$ac_objext \
  11690. conftest$ac_exeext conftest.$ac_ext
  11691. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11692. LIBS="$LIBS $LIBICONV"
  11693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11694. /* end confdefs.h. */
  11695. #include <libintl.h>
  11696. $gt_revision_test_code
  11697. extern int _nl_msg_cat_cntr;
  11698. extern
  11699. #ifdef __cplusplus
  11700. "C"
  11701. #endif
  11702. const char *_nl_expand_alias (const char *);
  11703. int
  11704. main ()
  11705. {
  11706. bindtextdomain ("", "");
  11707. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11708. ;
  11709. return 0;
  11710. }
  11711. _ACEOF
  11712. if ac_fn_cxx_try_link "$LINENO"; then :
  11713. LIBINTL="$LIBINTL $LIBICONV"
  11714. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11715. eval "$gt_func_gnugettext_libintl=yes"
  11716. fi
  11717. rm -f core conftest.err conftest.$ac_objext \
  11718. conftest$ac_exeext conftest.$ac_ext
  11719. fi
  11720. CPPFLAGS="$gt_save_CPPFLAGS"
  11721. LIBS="$gt_save_LIBS"
  11722. fi
  11723. eval ac_res=\$$gt_func_gnugettext_libintl
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11725. $as_echo "$ac_res" >&6; }
  11726. fi
  11727. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11728. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11729. && test "$PACKAGE" != gettext-runtime \
  11730. && test "$PACKAGE" != gettext-tools; }; then
  11731. gt_use_preinstalled_gnugettext=yes
  11732. else
  11733. LIBINTL=
  11734. LTLIBINTL=
  11735. INCINTL=
  11736. fi
  11737. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11738. nls_cv_use_gnu_gettext=yes
  11739. fi
  11740. fi
  11741. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11742. BUILD_INCLUDED_LIBINTL=yes
  11743. USE_INCLUDED_LIBINTL=yes
  11744. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11745. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11746. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11747. fi
  11748. CATOBJEXT=
  11749. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11750. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11751. CATOBJEXT=.gmo
  11752. fi
  11753. if test -n "$INTL_MACOSX_LIBS"; then
  11754. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11755. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11756. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11757. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11758. fi
  11759. fi
  11760. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11761. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11762. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11763. else
  11764. USE_NLS=no
  11765. fi
  11766. fi
  11767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11768. $as_echo_n "checking whether to use NLS... " >&6; }
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11770. $as_echo "$USE_NLS" >&6; }
  11771. if test "$USE_NLS" = "yes"; then
  11772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11773. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11774. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11775. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11776. gt_source="external libintl"
  11777. else
  11778. gt_source="libc"
  11779. fi
  11780. else
  11781. gt_source="included intl directory"
  11782. fi
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11784. $as_echo "$gt_source" >&6; }
  11785. fi
  11786. if test "$USE_NLS" = "yes"; then
  11787. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11788. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11790. $as_echo_n "checking how to link with libintl... " >&6; }
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11792. $as_echo "$LIBINTL" >&6; }
  11793. for element in $INCINTL; do
  11794. haveit=
  11795. for x in $CPPFLAGS; do
  11796. acl_save_prefix="$prefix"
  11797. prefix="$acl_final_prefix"
  11798. acl_save_exec_prefix="$exec_prefix"
  11799. exec_prefix="$acl_final_exec_prefix"
  11800. eval x=\"$x\"
  11801. exec_prefix="$acl_save_exec_prefix"
  11802. prefix="$acl_save_prefix"
  11803. if test "X$x" = "X$element"; then
  11804. haveit=yes
  11805. break
  11806. fi
  11807. done
  11808. if test -z "$haveit"; then
  11809. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11810. fi
  11811. done
  11812. fi
  11813. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11814. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11815. fi
  11816. POSUB=po
  11817. fi
  11818. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11819. BUILD_INCLUDED_LIBINTL=yes
  11820. fi
  11821. nls_cv_header_intl=
  11822. nls_cv_header_libgt=
  11823. DATADIRNAME=share
  11824. INSTOBJEXT=.mo
  11825. GENCAT=gencat
  11826. INTLOBJS=
  11827. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11828. INTLOBJS="\$(GETTOBJS)"
  11829. fi
  11830. INTL_LIBTOOL_SUFFIX_PREFIX=
  11831. INTLLIBS="$LIBINTL"
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11833. $as_echo_n "checking for error_at_line... " >&6; }
  11834. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11835. $as_echo_n "(cached) " >&6
  11836. else
  11837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11838. /* end confdefs.h. */
  11839. #include <error.h>
  11840. int
  11841. main ()
  11842. {
  11843. error_at_line (0, 0, "", 0, "an error occurred");
  11844. ;
  11845. return 0;
  11846. }
  11847. _ACEOF
  11848. if ac_fn_cxx_try_link "$LINENO"; then :
  11849. ac_cv_lib_error_at_line=yes
  11850. else
  11851. ac_cv_lib_error_at_line=no
  11852. fi
  11853. rm -f core conftest.err conftest.$ac_objext \
  11854. conftest$ac_exeext conftest.$ac_ext
  11855. fi
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11857. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11858. if test $ac_cv_lib_error_at_line = no; then
  11859. case " $LIBOBJS " in
  11860. *" error.$ac_objext "* ) ;;
  11861. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11862. ;;
  11863. esac
  11864. fi
  11865. if test $ac_cv_c_compiler_gnu = yes; then
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11867. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11868. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11869. $as_echo_n "(cached) " >&6
  11870. else
  11871. ac_pattern="Autoconf.*'x'"
  11872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11873. /* end confdefs.h. */
  11874. #include <sgtty.h>
  11875. Autoconf TIOCGETP
  11876. _ACEOF
  11877. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11878. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11879. ac_cv_prog_gcc_traditional=yes
  11880. else
  11881. ac_cv_prog_gcc_traditional=no
  11882. fi
  11883. rm -f conftest*
  11884. if test $ac_cv_prog_gcc_traditional = no; then
  11885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11886. /* end confdefs.h. */
  11887. #include <termio.h>
  11888. Autoconf TCGETA
  11889. _ACEOF
  11890. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11891. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11892. ac_cv_prog_gcc_traditional=yes
  11893. fi
  11894. rm -f conftest*
  11895. fi
  11896. fi
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11898. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11899. if test $ac_cv_prog_gcc_traditional = yes; then
  11900. CC="$CC -traditional"
  11901. fi
  11902. fi
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11904. $as_echo_n "checking for working memcmp... " >&6; }
  11905. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11906. $as_echo_n "(cached) " >&6
  11907. else
  11908. if test "$cross_compiling" = yes; then :
  11909. ac_cv_func_memcmp_working=no
  11910. else
  11911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11912. /* end confdefs.h. */
  11913. $ac_includes_default
  11914. int
  11915. main ()
  11916. {
  11917. /* Some versions of memcmp are not 8-bit clean. */
  11918. char c0 = '\100', c1 = '\200', c2 = '\201';
  11919. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11920. return 1;
  11921. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11922. or more and with at least one buffer not starting on a 4-byte boundary.
  11923. William Lewis provided this test program. */
  11924. {
  11925. char foo[21];
  11926. char bar[21];
  11927. int i;
  11928. for (i = 0; i < 4; i++)
  11929. {
  11930. char *a = foo + i;
  11931. char *b = bar + i;
  11932. strcpy (a, "--------01111111");
  11933. strcpy (b, "--------10000000");
  11934. if (memcmp (a, b, 16) >= 0)
  11935. return 1;
  11936. }
  11937. return 0;
  11938. }
  11939. ;
  11940. return 0;
  11941. }
  11942. _ACEOF
  11943. if ac_fn_cxx_try_run "$LINENO"; then :
  11944. ac_cv_func_memcmp_working=yes
  11945. else
  11946. ac_cv_func_memcmp_working=no
  11947. fi
  11948. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11949. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11950. fi
  11951. fi
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11953. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11954. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11955. *" memcmp.$ac_objext "* ) ;;
  11956. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11957. ;;
  11958. esac
  11959. for ac_func in $ac_func_list
  11960. do :
  11961. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11962. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11963. eval as_val=\$$as_ac_var
  11964. if test "x$as_val" = x""yes; then :
  11965. cat >>confdefs.h <<_ACEOF
  11966. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11967. _ACEOF
  11968. fi
  11969. done
  11970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11971. $as_echo_n "checking for working mktime... " >&6; }
  11972. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11973. $as_echo_n "(cached) " >&6
  11974. else
  11975. if test "$cross_compiling" = yes; then :
  11976. ac_cv_func_working_mktime=no
  11977. else
  11978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11979. /* end confdefs.h. */
  11980. /* Test program from Paul Eggert and Tony Leneis. */
  11981. #ifdef TIME_WITH_SYS_TIME
  11982. # include <sys/time.h>
  11983. # include <time.h>
  11984. #else
  11985. # ifdef HAVE_SYS_TIME_H
  11986. # include <sys/time.h>
  11987. # else
  11988. # include <time.h>
  11989. # endif
  11990. #endif
  11991. #include <limits.h>
  11992. #include <stdlib.h>
  11993. #ifdef HAVE_UNISTD_H
  11994. # include <unistd.h>
  11995. #endif
  11996. #ifndef HAVE_ALARM
  11997. # define alarm(X) /* empty */
  11998. #endif
  11999. /* Work around redefinition to rpl_putenv by other config tests. */
  12000. #undef putenv
  12001. static time_t time_t_max;
  12002. static time_t time_t_min;
  12003. /* Values we'll use to set the TZ environment variable. */
  12004. static char *tz_strings[] = {
  12005. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12006. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12007. };
  12008. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12009. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12010. Based on a problem report from Andreas Jaeger. */
  12011. static int
  12012. spring_forward_gap ()
  12013. {
  12014. /* glibc (up to about 1998-10-07) failed this test. */
  12015. struct tm tm;
  12016. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12017. instead of "TZ=America/Vancouver" in order to detect the bug even
  12018. on systems that don't support the Olson extension, or don't have the
  12019. full zoneinfo tables installed. */
  12020. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12021. tm.tm_year = 98;
  12022. tm.tm_mon = 3;
  12023. tm.tm_mday = 5;
  12024. tm.tm_hour = 2;
  12025. tm.tm_min = 0;
  12026. tm.tm_sec = 0;
  12027. tm.tm_isdst = -1;
  12028. return mktime (&tm) != (time_t) -1;
  12029. }
  12030. static int
  12031. mktime_test1 (now)
  12032. time_t now;
  12033. {
  12034. struct tm *lt;
  12035. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12036. }
  12037. static int
  12038. mktime_test (now)
  12039. time_t now;
  12040. {
  12041. return (mktime_test1 (now)
  12042. && mktime_test1 ((time_t) (time_t_max - now))
  12043. && mktime_test1 ((time_t) (time_t_min + now)));
  12044. }
  12045. static int
  12046. irix_6_4_bug ()
  12047. {
  12048. /* Based on code from Ariel Faigon. */
  12049. struct tm tm;
  12050. tm.tm_year = 96;
  12051. tm.tm_mon = 3;
  12052. tm.tm_mday = 0;
  12053. tm.tm_hour = 0;
  12054. tm.tm_min = 0;
  12055. tm.tm_sec = 0;
  12056. tm.tm_isdst = -1;
  12057. mktime (&tm);
  12058. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12059. }
  12060. static int
  12061. bigtime_test (j)
  12062. int j;
  12063. {
  12064. struct tm tm;
  12065. time_t now;
  12066. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12067. now = mktime (&tm);
  12068. if (now != (time_t) -1)
  12069. {
  12070. struct tm *lt = localtime (&now);
  12071. if (! (lt
  12072. && lt->tm_year == tm.tm_year
  12073. && lt->tm_mon == tm.tm_mon
  12074. && lt->tm_mday == tm.tm_mday
  12075. && lt->tm_hour == tm.tm_hour
  12076. && lt->tm_min == tm.tm_min
  12077. && lt->tm_sec == tm.tm_sec
  12078. && lt->tm_yday == tm.tm_yday
  12079. && lt->tm_wday == tm.tm_wday
  12080. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12081. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12082. return 0;
  12083. }
  12084. return 1;
  12085. }
  12086. static int
  12087. year_2050_test ()
  12088. {
  12089. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12090. ignoring leap seconds. */
  12091. unsigned long int answer = 2527315200UL;
  12092. struct tm tm;
  12093. time_t t;
  12094. tm.tm_year = 2050 - 1900;
  12095. tm.tm_mon = 2 - 1;
  12096. tm.tm_mday = 1;
  12097. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12098. tm.tm_isdst = -1;
  12099. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12100. instead of "TZ=America/Vancouver" in order to detect the bug even
  12101. on systems that don't support the Olson extension, or don't have the
  12102. full zoneinfo tables installed. */
  12103. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12104. t = mktime (&tm);
  12105. /* Check that the result is either a failure, or close enough
  12106. to the correct answer that we can assume the discrepancy is
  12107. due to leap seconds. */
  12108. return (t == (time_t) -1
  12109. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12110. }
  12111. int
  12112. main ()
  12113. {
  12114. time_t t, delta;
  12115. int i, j;
  12116. /* This test makes some buggy mktime implementations loop.
  12117. Give up after 60 seconds; a mktime slower than that
  12118. isn't worth using anyway. */
  12119. alarm (60);
  12120. for (;;)
  12121. {
  12122. t = (time_t_max << 1) + 1;
  12123. if (t <= time_t_max)
  12124. break;
  12125. time_t_max = t;
  12126. }
  12127. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12128. delta = time_t_max / 997; /* a suitable prime number */
  12129. for (i = 0; i < N_STRINGS; i++)
  12130. {
  12131. if (tz_strings[i])
  12132. putenv (tz_strings[i]);
  12133. for (t = 0; t <= time_t_max - delta; t += delta)
  12134. if (! mktime_test (t))
  12135. return 1;
  12136. if (! (mktime_test ((time_t) 1)
  12137. && mktime_test ((time_t) (60 * 60))
  12138. && mktime_test ((time_t) (60 * 60 * 24))))
  12139. return 1;
  12140. for (j = 1; ; j <<= 1)
  12141. if (! bigtime_test (j))
  12142. return 1;
  12143. else if (INT_MAX / 2 < j)
  12144. break;
  12145. if (! bigtime_test (INT_MAX))
  12146. return 1;
  12147. }
  12148. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12149. }
  12150. _ACEOF
  12151. if ac_fn_cxx_try_run "$LINENO"; then :
  12152. ac_cv_func_working_mktime=yes
  12153. else
  12154. ac_cv_func_working_mktime=no
  12155. fi
  12156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12157. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12158. fi
  12159. fi
  12160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12161. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12162. if test $ac_cv_func_working_mktime = no; then
  12163. case " $LIBOBJS " in
  12164. *" mktime.$ac_objext "* ) ;;
  12165. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12166. ;;
  12167. esac
  12168. fi
  12169. for ac_func in getpagesize
  12170. do :
  12171. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12172. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12173. cat >>confdefs.h <<_ACEOF
  12174. #define HAVE_GETPAGESIZE 1
  12175. _ACEOF
  12176. fi
  12177. done
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12179. $as_echo_n "checking for working mmap... " >&6; }
  12180. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. if test "$cross_compiling" = yes; then :
  12184. ac_cv_func_mmap_fixed_mapped=no
  12185. else
  12186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12187. /* end confdefs.h. */
  12188. $ac_includes_default
  12189. /* malloc might have been renamed as rpl_malloc. */
  12190. #undef malloc
  12191. /* Thanks to Mike Haertel and Jim Avera for this test.
  12192. Here is a matrix of mmap possibilities:
  12193. mmap private not fixed
  12194. mmap private fixed at somewhere currently unmapped
  12195. mmap private fixed at somewhere already mapped
  12196. mmap shared not fixed
  12197. mmap shared fixed at somewhere currently unmapped
  12198. mmap shared fixed at somewhere already mapped
  12199. For private mappings, we should verify that changes cannot be read()
  12200. back from the file, nor mmap's back from the file at a different
  12201. address. (There have been systems where private was not correctly
  12202. implemented like the infamous i386 svr4.0, and systems where the
  12203. VM page cache was not coherent with the file system buffer cache
  12204. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12205. For shared mappings, we should conversely verify that changes get
  12206. propagated back to all the places they're supposed to be.
  12207. Grep wants private fixed already mapped.
  12208. The main things grep needs to know about mmap are:
  12209. * does it exist and is it safe to write into the mmap'd area
  12210. * how to use it (BSD variants) */
  12211. #include <fcntl.h>
  12212. #include <sys/mman.h>
  12213. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12214. char *malloc ();
  12215. #endif
  12216. /* This mess was copied from the GNU getpagesize.h. */
  12217. #ifndef HAVE_GETPAGESIZE
  12218. # ifdef _SC_PAGESIZE
  12219. # define getpagesize() sysconf(_SC_PAGESIZE)
  12220. # else /* no _SC_PAGESIZE */
  12221. # ifdef HAVE_SYS_PARAM_H
  12222. # include <sys/param.h>
  12223. # ifdef EXEC_PAGESIZE
  12224. # define getpagesize() EXEC_PAGESIZE
  12225. # else /* no EXEC_PAGESIZE */
  12226. # ifdef NBPG
  12227. # define getpagesize() NBPG * CLSIZE
  12228. # ifndef CLSIZE
  12229. # define CLSIZE 1
  12230. # endif /* no CLSIZE */
  12231. # else /* no NBPG */
  12232. # ifdef NBPC
  12233. # define getpagesize() NBPC
  12234. # else /* no NBPC */
  12235. # ifdef PAGESIZE
  12236. # define getpagesize() PAGESIZE
  12237. # endif /* PAGESIZE */
  12238. # endif /* no NBPC */
  12239. # endif /* no NBPG */
  12240. # endif /* no EXEC_PAGESIZE */
  12241. # else /* no HAVE_SYS_PARAM_H */
  12242. # define getpagesize() 8192 /* punt totally */
  12243. # endif /* no HAVE_SYS_PARAM_H */
  12244. # endif /* no _SC_PAGESIZE */
  12245. #endif /* no HAVE_GETPAGESIZE */
  12246. int
  12247. main ()
  12248. {
  12249. char *data, *data2, *data3;
  12250. const char *cdata2;
  12251. int i, pagesize;
  12252. int fd, fd2;
  12253. pagesize = getpagesize ();
  12254. /* First, make a file with some known garbage in it. */
  12255. data = (char *) malloc (pagesize);
  12256. if (!data)
  12257. return 1;
  12258. for (i = 0; i < pagesize; ++i)
  12259. *(data + i) = rand ();
  12260. umask (0);
  12261. fd = creat ("conftest.mmap", 0600);
  12262. if (fd < 0)
  12263. return 2;
  12264. if (write (fd, data, pagesize) != pagesize)
  12265. return 3;
  12266. close (fd);
  12267. /* Next, check that the tail of a page is zero-filled. File must have
  12268. non-zero length, otherwise we risk SIGBUS for entire page. */
  12269. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12270. if (fd2 < 0)
  12271. return 4;
  12272. cdata2 = "";
  12273. if (write (fd2, cdata2, 1) != 1)
  12274. return 5;
  12275. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12276. if (data2 == MAP_FAILED)
  12277. return 6;
  12278. for (i = 0; i < pagesize; ++i)
  12279. if (*(data2 + i))
  12280. return 7;
  12281. close (fd2);
  12282. if (munmap (data2, pagesize))
  12283. return 8;
  12284. /* Next, try to mmap the file at a fixed address which already has
  12285. something else allocated at it. If we can, also make sure that
  12286. we see the same garbage. */
  12287. fd = open ("conftest.mmap", O_RDWR);
  12288. if (fd < 0)
  12289. return 9;
  12290. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12291. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12292. return 10;
  12293. for (i = 0; i < pagesize; ++i)
  12294. if (*(data + i) != *(data2 + i))
  12295. return 11;
  12296. /* Finally, make sure that changes to the mapped area do not
  12297. percolate back to the file as seen by read(). (This is a bug on
  12298. some variants of i386 svr4.0.) */
  12299. for (i = 0; i < pagesize; ++i)
  12300. *(data2 + i) = *(data2 + i) + 1;
  12301. data3 = (char *) malloc (pagesize);
  12302. if (!data3)
  12303. return 12;
  12304. if (read (fd, data3, pagesize) != pagesize)
  12305. return 13;
  12306. for (i = 0; i < pagesize; ++i)
  12307. if (*(data + i) != *(data3 + i))
  12308. return 14;
  12309. close (fd);
  12310. return 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_cxx_try_run "$LINENO"; then :
  12314. ac_cv_func_mmap_fixed_mapped=yes
  12315. else
  12316. ac_cv_func_mmap_fixed_mapped=no
  12317. fi
  12318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12319. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12320. fi
  12321. fi
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12323. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12324. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12325. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12326. fi
  12327. rm -f conftest.mmap conftest.txt
  12328. for ac_header in sys/select.h sys/socket.h
  12329. do :
  12330. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12331. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12332. eval as_val=\$$as_ac_Header
  12333. if test "x$as_val" = x""yes; then :
  12334. cat >>confdefs.h <<_ACEOF
  12335. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12336. _ACEOF
  12337. fi
  12338. done
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12340. $as_echo_n "checking types of arguments for select... " >&6; }
  12341. if test "${ac_cv_func_select_args+set}" = set; then :
  12342. $as_echo_n "(cached) " >&6
  12343. else
  12344. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12345. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12346. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12348. /* end confdefs.h. */
  12349. $ac_includes_default
  12350. #ifdef HAVE_SYS_SELECT_H
  12351. # include <sys/select.h>
  12352. #endif
  12353. #ifdef HAVE_SYS_SOCKET_H
  12354. # include <sys/socket.h>
  12355. #endif
  12356. int
  12357. main ()
  12358. {
  12359. extern int select ($ac_arg1,
  12360. $ac_arg234, $ac_arg234, $ac_arg234,
  12361. $ac_arg5);
  12362. ;
  12363. return 0;
  12364. }
  12365. _ACEOF
  12366. if ac_fn_cxx_try_compile "$LINENO"; then :
  12367. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12368. fi
  12369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12370. done
  12371. done
  12372. done
  12373. # Provide a safe default value.
  12374. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12377. $as_echo "$ac_cv_func_select_args" >&6; }
  12378. ac_save_IFS=$IFS; IFS=','
  12379. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12380. IFS=$ac_save_IFS
  12381. shift
  12382. cat >>confdefs.h <<_ACEOF
  12383. #define SELECT_TYPE_ARG1 $1
  12384. _ACEOF
  12385. cat >>confdefs.h <<_ACEOF
  12386. #define SELECT_TYPE_ARG234 ($2)
  12387. _ACEOF
  12388. cat >>confdefs.h <<_ACEOF
  12389. #define SELECT_TYPE_ARG5 ($3)
  12390. _ACEOF
  12391. rm -f conftest*
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12393. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12394. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. rm -f conftest.sym conftest.file
  12398. echo >conftest.file
  12399. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12400. if test "$cross_compiling" = yes; then :
  12401. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12402. else
  12403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12404. /* end confdefs.h. */
  12405. $ac_includes_default
  12406. int
  12407. main ()
  12408. {
  12409. struct stat sbuf;
  12410. /* Linux will dereference the symlink and fail, as required by POSIX.
  12411. That is better in the sense that it means we will not
  12412. have to compile and use the lstat wrapper. */
  12413. return lstat ("conftest.sym/", &sbuf) == 0;
  12414. ;
  12415. return 0;
  12416. }
  12417. _ACEOF
  12418. if ac_fn_cxx_try_run "$LINENO"; then :
  12419. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12420. else
  12421. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12422. fi
  12423. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12424. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12425. fi
  12426. else
  12427. # If the `ln -s' command failed, then we probably don't even
  12428. # have an lstat function.
  12429. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12430. fi
  12431. rm -f conftest.sym conftest.file
  12432. fi
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12434. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12435. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12436. cat >>confdefs.h <<_ACEOF
  12437. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12438. _ACEOF
  12439. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12440. case " $LIBOBJS " in
  12441. *" lstat.$ac_objext "* ) ;;
  12442. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12443. ;;
  12444. esac
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12447. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12448. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12449. $as_echo_n "(cached) " >&6
  12450. else
  12451. if test "$cross_compiling" = yes; then :
  12452. ac_cv_func_stat_empty_string_bug=yes
  12453. else
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. $ac_includes_default
  12457. int
  12458. main ()
  12459. {
  12460. struct stat sbuf;
  12461. return stat ("", &sbuf) == 0;
  12462. ;
  12463. return 0;
  12464. }
  12465. _ACEOF
  12466. if ac_fn_cxx_try_run "$LINENO"; then :
  12467. ac_cv_func_stat_empty_string_bug=no
  12468. else
  12469. ac_cv_func_stat_empty_string_bug=yes
  12470. fi
  12471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12472. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12473. fi
  12474. fi
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12476. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12477. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12478. case " $LIBOBJS " in
  12479. *" stat.$ac_objext "* ) ;;
  12480. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12481. ;;
  12482. esac
  12483. cat >>confdefs.h <<_ACEOF
  12484. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12485. _ACEOF
  12486. fi
  12487. for ac_func in strftime
  12488. do :
  12489. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12490. if test "x$ac_cv_func_strftime" = x""yes; then :
  12491. cat >>confdefs.h <<_ACEOF
  12492. #define HAVE_STRFTIME 1
  12493. _ACEOF
  12494. else
  12495. # strftime is in -lintl on SCO UNIX.
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12497. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12498. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12499. $as_echo_n "(cached) " >&6
  12500. else
  12501. ac_check_lib_save_LIBS=$LIBS
  12502. LIBS="-lintl $LIBS"
  12503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12504. /* end confdefs.h. */
  12505. /* Override any GCC internal prototype to avoid an error.
  12506. Use char because int might match the return type of a GCC
  12507. builtin and then its argument prototype would still apply. */
  12508. #ifdef __cplusplus
  12509. extern "C"
  12510. #endif
  12511. char strftime ();
  12512. int
  12513. main ()
  12514. {
  12515. return strftime ();
  12516. ;
  12517. return 0;
  12518. }
  12519. _ACEOF
  12520. if ac_fn_cxx_try_link "$LINENO"; then :
  12521. ac_cv_lib_intl_strftime=yes
  12522. else
  12523. ac_cv_lib_intl_strftime=no
  12524. fi
  12525. rm -f core conftest.err conftest.$ac_objext \
  12526. conftest$ac_exeext conftest.$ac_ext
  12527. LIBS=$ac_check_lib_save_LIBS
  12528. fi
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12530. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12531. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12532. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12533. LIBS="-lintl $LIBS"
  12534. fi
  12535. fi
  12536. done
  12537. for ac_func in vprintf
  12538. do :
  12539. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12540. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12541. cat >>confdefs.h <<_ACEOF
  12542. #define HAVE_VPRINTF 1
  12543. _ACEOF
  12544. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12545. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12546. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12547. fi
  12548. fi
  12549. done
  12550. for ac_header in vfork.h
  12551. do :
  12552. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12553. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12554. cat >>confdefs.h <<_ACEOF
  12555. #define HAVE_VFORK_H 1
  12556. _ACEOF
  12557. fi
  12558. done
  12559. for ac_func in fork vfork
  12560. do :
  12561. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12562. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12563. eval as_val=\$$as_ac_var
  12564. if test "x$as_val" = x""yes; then :
  12565. cat >>confdefs.h <<_ACEOF
  12566. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12567. _ACEOF
  12568. fi
  12569. done
  12570. if test "x$ac_cv_func_fork" = xyes; then
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12572. $as_echo_n "checking for working fork... " >&6; }
  12573. if test "${ac_cv_func_fork_works+set}" = set; then :
  12574. $as_echo_n "(cached) " >&6
  12575. else
  12576. if test "$cross_compiling" = yes; then :
  12577. ac_cv_func_fork_works=cross
  12578. else
  12579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. /* end confdefs.h. */
  12581. $ac_includes_default
  12582. int
  12583. main ()
  12584. {
  12585. /* By Ruediger Kuhlmann. */
  12586. return fork () < 0;
  12587. ;
  12588. return 0;
  12589. }
  12590. _ACEOF
  12591. if ac_fn_cxx_try_run "$LINENO"; then :
  12592. ac_cv_func_fork_works=yes
  12593. else
  12594. ac_cv_func_fork_works=no
  12595. fi
  12596. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12597. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12598. fi
  12599. fi
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12601. $as_echo "$ac_cv_func_fork_works" >&6; }
  12602. else
  12603. ac_cv_func_fork_works=$ac_cv_func_fork
  12604. fi
  12605. if test "x$ac_cv_func_fork_works" = xcross; then
  12606. case $host in
  12607. *-*-amigaos* | *-*-msdosdjgpp*)
  12608. # Override, as these systems have only a dummy fork() stub
  12609. ac_cv_func_fork_works=no
  12610. ;;
  12611. *)
  12612. ac_cv_func_fork_works=yes
  12613. ;;
  12614. esac
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12616. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12617. fi
  12618. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12619. if test "x$ac_cv_func_vfork" = xyes; then
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12621. $as_echo_n "checking for working vfork... " >&6; }
  12622. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. if test "$cross_compiling" = yes; then :
  12626. ac_cv_func_vfork_works=cross
  12627. else
  12628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12629. /* end confdefs.h. */
  12630. /* Thanks to Paul Eggert for this test. */
  12631. $ac_includes_default
  12632. #include <sys/wait.h>
  12633. #ifdef HAVE_VFORK_H
  12634. # include <vfork.h>
  12635. #endif
  12636. /* On some sparc systems, changes by the child to local and incoming
  12637. argument registers are propagated back to the parent. The compiler
  12638. is told about this with #include <vfork.h>, but some compilers
  12639. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12640. static variable whose address is put into a register that is
  12641. clobbered by the vfork. */
  12642. static void
  12643. #ifdef __cplusplus
  12644. sparc_address_test (int arg)
  12645. # else
  12646. sparc_address_test (arg) int arg;
  12647. #endif
  12648. {
  12649. static pid_t child;
  12650. if (!child) {
  12651. child = vfork ();
  12652. if (child < 0) {
  12653. perror ("vfork");
  12654. _exit(2);
  12655. }
  12656. if (!child) {
  12657. arg = getpid();
  12658. write(-1, "", 0);
  12659. _exit (arg);
  12660. }
  12661. }
  12662. }
  12663. int
  12664. main ()
  12665. {
  12666. pid_t parent = getpid ();
  12667. pid_t child;
  12668. sparc_address_test (0);
  12669. child = vfork ();
  12670. if (child == 0) {
  12671. /* Here is another test for sparc vfork register problems. This
  12672. test uses lots of local variables, at least as many local
  12673. variables as main has allocated so far including compiler
  12674. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12675. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12676. reuse the register of parent for one of the local variables,
  12677. since it will think that parent can't possibly be used any more
  12678. in this routine. Assigning to the local variable will thus
  12679. munge parent in the parent process. */
  12680. pid_t
  12681. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12682. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12683. /* Convince the compiler that p..p7 are live; otherwise, it might
  12684. use the same hardware register for all 8 local variables. */
  12685. if (p != p1 || p != p2 || p != p3 || p != p4
  12686. || p != p5 || p != p6 || p != p7)
  12687. _exit(1);
  12688. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12689. from child file descriptors. If the child closes a descriptor
  12690. before it execs or exits, this munges the parent's descriptor
  12691. as well. Test for this by closing stdout in the child. */
  12692. _exit(close(fileno(stdout)) != 0);
  12693. } else {
  12694. int status;
  12695. struct stat st;
  12696. while (wait(&status) != child)
  12697. ;
  12698. return (
  12699. /* Was there some problem with vforking? */
  12700. child < 0
  12701. /* Did the child fail? (This shouldn't happen.) */
  12702. || status
  12703. /* Did the vfork/compiler bug occur? */
  12704. || parent != getpid()
  12705. /* Did the file descriptor bug occur? */
  12706. || fstat(fileno(stdout), &st) != 0
  12707. );
  12708. }
  12709. }
  12710. _ACEOF
  12711. if ac_fn_cxx_try_run "$LINENO"; then :
  12712. ac_cv_func_vfork_works=yes
  12713. else
  12714. ac_cv_func_vfork_works=no
  12715. fi
  12716. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12717. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12718. fi
  12719. fi
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12721. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12722. fi;
  12723. if test "x$ac_cv_func_fork_works" = xcross; then
  12724. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12726. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12727. fi
  12728. if test "x$ac_cv_func_vfork_works" = xyes; then
  12729. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12730. else
  12731. $as_echo "#define vfork fork" >>confdefs.h
  12732. fi
  12733. if test "x$ac_cv_func_fork_works" = xyes; then
  12734. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12735. fi
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12737. $as_echo_n "checking for working strtod... " >&6; }
  12738. if test "${ac_cv_func_strtod+set}" = set; then :
  12739. $as_echo_n "(cached) " >&6
  12740. else
  12741. if test "$cross_compiling" = yes; then :
  12742. ac_cv_func_strtod=no
  12743. else
  12744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12745. /* end confdefs.h. */
  12746. $ac_includes_default
  12747. #ifndef strtod
  12748. double strtod ();
  12749. #endif
  12750. int
  12751. main()
  12752. {
  12753. {
  12754. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12755. char *string = " +69";
  12756. char *term;
  12757. double value;
  12758. value = strtod (string, &term);
  12759. if (value != 69 || term != (string + 4))
  12760. return 1;
  12761. }
  12762. {
  12763. /* Under Solaris 2.4, strtod returns the wrong value for the
  12764. terminating character under some conditions. */
  12765. char *string = "NaN";
  12766. char *term;
  12767. strtod (string, &term);
  12768. if (term != string && *(term - 1) == 0)
  12769. return 1;
  12770. }
  12771. return 0;
  12772. }
  12773. _ACEOF
  12774. if ac_fn_cxx_try_run "$LINENO"; then :
  12775. ac_cv_func_strtod=yes
  12776. else
  12777. ac_cv_func_strtod=no
  12778. fi
  12779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12780. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12781. fi
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12784. $as_echo "$ac_cv_func_strtod" >&6; }
  12785. if test $ac_cv_func_strtod = no; then
  12786. case " $LIBOBJS " in
  12787. *" strtod.$ac_objext "* ) ;;
  12788. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12789. ;;
  12790. esac
  12791. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12792. if test "x$ac_cv_func_pow" = x""yes; then :
  12793. fi
  12794. if test $ac_cv_func_pow = no; then
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12796. $as_echo_n "checking for pow in -lm... " >&6; }
  12797. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12798. $as_echo_n "(cached) " >&6
  12799. else
  12800. ac_check_lib_save_LIBS=$LIBS
  12801. LIBS="-lm $LIBS"
  12802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12803. /* end confdefs.h. */
  12804. /* Override any GCC internal prototype to avoid an error.
  12805. Use char because int might match the return type of a GCC
  12806. builtin and then its argument prototype would still apply. */
  12807. #ifdef __cplusplus
  12808. extern "C"
  12809. #endif
  12810. char pow ();
  12811. int
  12812. main ()
  12813. {
  12814. return pow ();
  12815. ;
  12816. return 0;
  12817. }
  12818. _ACEOF
  12819. if ac_fn_cxx_try_link "$LINENO"; then :
  12820. ac_cv_lib_m_pow=yes
  12821. else
  12822. ac_cv_lib_m_pow=no
  12823. fi
  12824. rm -f core conftest.err conftest.$ac_objext \
  12825. conftest$ac_exeext conftest.$ac_ext
  12826. LIBS=$ac_check_lib_save_LIBS
  12827. fi
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12829. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12830. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12831. POW_LIB=-lm
  12832. else
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12834. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12835. fi
  12836. fi
  12837. fi
  12838. for ac_func in __argz_count \
  12839. __argz_next \
  12840. __argz_stringify \
  12841. atexit \
  12842. clock_gettime \
  12843. ftruncate \
  12844. getcwd \
  12845. gethostbyaddr \
  12846. gethostbyname \
  12847. getifaddrs \
  12848. getpagesize \
  12849. inet_ntoa \
  12850. memchr \
  12851. memmove \
  12852. mempcpy \
  12853. memset \
  12854. mkdir \
  12855. munmap \
  12856. nl_langinfo \
  12857. posix_memalign \
  12858. pow \
  12859. putenv \
  12860. rmdir \
  12861. select \
  12862. setlocale \
  12863. sleep \
  12864. socket \
  12865. stpcpy \
  12866. strcasecmp \
  12867. strchr \
  12868. strcspn \
  12869. strdup \
  12870. strerror \
  12871. strncasecmp \
  12872. strstr \
  12873. strtol \
  12874. strtoul \
  12875. strtoull \
  12876. tzset \
  12877. unsetenv \
  12878. usleep \
  12879. utime
  12880. do :
  12881. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12882. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12883. eval as_val=\$$as_ac_var
  12884. if test "x$as_val" = x""yes; then :
  12885. cat >>confdefs.h <<_ACEOF
  12886. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12887. _ACEOF
  12888. fi
  12889. done
  12890. if test "x$enable_epoll" = "xyes"; then
  12891. for ac_func in epoll_create
  12892. do :
  12893. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12894. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12895. cat >>confdefs.h <<_ACEOF
  12896. #define HAVE_EPOLL_CREATE 1
  12897. _ACEOF
  12898. have_epoll=yes
  12899. fi
  12900. done
  12901. if test "x$have_epoll" = "xyes"; then
  12902. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12903. fi
  12904. fi
  12905. if test "x$have_epoll" = "xyes"; then
  12906. HAVE_EPOLL_TRUE=
  12907. HAVE_EPOLL_FALSE='#'
  12908. else
  12909. HAVE_EPOLL_TRUE='#'
  12910. HAVE_EPOLL_FALSE=
  12911. fi
  12912. for ac_func in posix_fallocate
  12913. do :
  12914. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12915. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12916. cat >>confdefs.h <<_ACEOF
  12917. #define HAVE_POSIX_FALLOCATE 1
  12918. _ACEOF
  12919. have_posix_fallocate=yes
  12920. fi
  12921. done
  12922. if test "x$have_posix_fallocate" = "xyes"; then
  12923. HAVE_POSIX_FALLOCATE_TRUE=
  12924. HAVE_POSIX_FALLOCATE_FALSE='#'
  12925. else
  12926. HAVE_POSIX_FALLOCATE_TRUE='#'
  12927. HAVE_POSIX_FALLOCATE_FALSE=
  12928. fi
  12929. for ac_func in asctime_r
  12930. do :
  12931. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12932. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12933. cat >>confdefs.h <<_ACEOF
  12934. #define HAVE_ASCTIME_R 1
  12935. _ACEOF
  12936. if true; then
  12937. HAVE_ASCTIME_R_TRUE=
  12938. HAVE_ASCTIME_R_FALSE='#'
  12939. else
  12940. HAVE_ASCTIME_R_TRUE='#'
  12941. HAVE_ASCTIME_R_FALSE=
  12942. fi
  12943. else
  12944. if false; then
  12945. HAVE_ASCTIME_R_TRUE=
  12946. HAVE_ASCTIME_R_FALSE='#'
  12947. else
  12948. HAVE_ASCTIME_R_TRUE='#'
  12949. HAVE_ASCTIME_R_FALSE=
  12950. fi
  12951. fi
  12952. done
  12953. for ac_func in basename
  12954. do :
  12955. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12956. if test "x$ac_cv_func_basename" = x""yes; then :
  12957. cat >>confdefs.h <<_ACEOF
  12958. #define HAVE_BASENAME 1
  12959. _ACEOF
  12960. if true; then
  12961. HAVE_BASENAME_TRUE=
  12962. HAVE_BASENAME_FALSE='#'
  12963. else
  12964. HAVE_BASENAME_TRUE='#'
  12965. HAVE_BASENAME_FALSE=
  12966. fi
  12967. else
  12968. if false; then
  12969. HAVE_BASENAME_TRUE=
  12970. HAVE_BASENAME_FALSE='#'
  12971. else
  12972. HAVE_BASENAME_TRUE='#'
  12973. HAVE_BASENAME_FALSE=
  12974. fi
  12975. fi
  12976. done
  12977. for ac_func in gai_strerror
  12978. do :
  12979. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12980. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12981. cat >>confdefs.h <<_ACEOF
  12982. #define HAVE_GAI_STRERROR 1
  12983. _ACEOF
  12984. if true; then
  12985. HAVE_GAI_STRERROR_TRUE=
  12986. HAVE_GAI_STRERROR_FALSE='#'
  12987. else
  12988. HAVE_GAI_STRERROR_TRUE='#'
  12989. HAVE_GAI_STRERROR_FALSE=
  12990. fi
  12991. else
  12992. if false; then
  12993. HAVE_GAI_STRERROR_TRUE=
  12994. HAVE_GAI_STRERROR_FALSE='#'
  12995. else
  12996. HAVE_GAI_STRERROR_TRUE='#'
  12997. HAVE_GAI_STRERROR_FALSE=
  12998. fi
  12999. fi
  13000. done
  13001. for ac_func in getaddrinfo
  13002. do :
  13003. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13004. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13005. cat >>confdefs.h <<_ACEOF
  13006. #define HAVE_GETADDRINFO 1
  13007. _ACEOF
  13008. if true; then
  13009. HAVE_GETADDRINFO_TRUE=
  13010. HAVE_GETADDRINFO_FALSE='#'
  13011. else
  13012. HAVE_GETADDRINFO_TRUE='#'
  13013. HAVE_GETADDRINFO_FALSE=
  13014. fi
  13015. else
  13016. if false; then
  13017. HAVE_GETADDRINFO_TRUE=
  13018. HAVE_GETADDRINFO_FALSE='#'
  13019. else
  13020. HAVE_GETADDRINFO_TRUE='#'
  13021. HAVE_GETADDRINFO_FALSE=
  13022. fi
  13023. fi
  13024. done
  13025. for ac_func in gettimeofday
  13026. do :
  13027. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13028. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13029. cat >>confdefs.h <<_ACEOF
  13030. #define HAVE_GETTIMEOFDAY 1
  13031. _ACEOF
  13032. if true; then
  13033. HAVE_GETTIMEOFDAY_TRUE=
  13034. HAVE_GETTIMEOFDAY_FALSE='#'
  13035. else
  13036. HAVE_GETTIMEOFDAY_TRUE='#'
  13037. HAVE_GETTIMEOFDAY_FALSE=
  13038. fi
  13039. else
  13040. if false; then
  13041. HAVE_GETTIMEOFDAY_TRUE=
  13042. HAVE_GETTIMEOFDAY_FALSE='#'
  13043. else
  13044. HAVE_GETTIMEOFDAY_TRUE='#'
  13045. HAVE_GETTIMEOFDAY_FALSE=
  13046. fi
  13047. fi
  13048. done
  13049. for ac_func in inet_aton
  13050. do :
  13051. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13052. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13053. cat >>confdefs.h <<_ACEOF
  13054. #define HAVE_INET_ATON 1
  13055. _ACEOF
  13056. if true; then
  13057. HAVE_INET_ATON_TRUE=
  13058. HAVE_INET_ATON_FALSE='#'
  13059. else
  13060. HAVE_INET_ATON_TRUE='#'
  13061. HAVE_INET_ATON_FALSE=
  13062. fi
  13063. else
  13064. if false; then
  13065. HAVE_INET_ATON_TRUE=
  13066. HAVE_INET_ATON_FALSE='#'
  13067. else
  13068. HAVE_INET_ATON_TRUE='#'
  13069. HAVE_INET_ATON_FALSE=
  13070. fi
  13071. fi
  13072. done
  13073. for ac_func in localtime_r
  13074. do :
  13075. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13076. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13077. cat >>confdefs.h <<_ACEOF
  13078. #define HAVE_LOCALTIME_R 1
  13079. _ACEOF
  13080. if true; then
  13081. HAVE_LOCALTIME_R_TRUE=
  13082. HAVE_LOCALTIME_R_FALSE='#'
  13083. else
  13084. HAVE_LOCALTIME_R_TRUE='#'
  13085. HAVE_LOCALTIME_R_FALSE=
  13086. fi
  13087. else
  13088. if false; then
  13089. HAVE_LOCALTIME_R_TRUE=
  13090. HAVE_LOCALTIME_R_FALSE='#'
  13091. else
  13092. HAVE_LOCALTIME_R_TRUE='#'
  13093. HAVE_LOCALTIME_R_FALSE=
  13094. fi
  13095. fi
  13096. done
  13097. for ac_func in strptime
  13098. do :
  13099. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13100. if test "x$ac_cv_func_strptime" = x""yes; then :
  13101. cat >>confdefs.h <<_ACEOF
  13102. #define HAVE_STRPTIME 1
  13103. _ACEOF
  13104. if true; then
  13105. HAVE_STRPTIME_TRUE=
  13106. HAVE_STRPTIME_FALSE='#'
  13107. else
  13108. HAVE_STRPTIME_TRUE='#'
  13109. HAVE_STRPTIME_FALSE=
  13110. fi
  13111. else
  13112. if false; then
  13113. HAVE_STRPTIME_TRUE=
  13114. HAVE_STRPTIME_FALSE='#'
  13115. else
  13116. HAVE_STRPTIME_TRUE='#'
  13117. HAVE_STRPTIME_FALSE=
  13118. fi
  13119. fi
  13120. done
  13121. for ac_func in timegm
  13122. do :
  13123. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13124. if test "x$ac_cv_func_timegm" = x""yes; then :
  13125. cat >>confdefs.h <<_ACEOF
  13126. #define HAVE_TIMEGM 1
  13127. _ACEOF
  13128. if true; then
  13129. HAVE_TIMEGM_TRUE=
  13130. HAVE_TIMEGM_FALSE='#'
  13131. else
  13132. HAVE_TIMEGM_TRUE='#'
  13133. HAVE_TIMEGM_FALSE=
  13134. fi
  13135. else
  13136. if false; then
  13137. HAVE_TIMEGM_TRUE=
  13138. HAVE_TIMEGM_FALSE='#'
  13139. else
  13140. HAVE_TIMEGM_TRUE='#'
  13141. HAVE_TIMEGM_FALSE=
  13142. fi
  13143. fi
  13144. done
  13145. for ac_func in daemon
  13146. do :
  13147. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13148. if test "x$ac_cv_func_daemon" = x""yes; then :
  13149. cat >>confdefs.h <<_ACEOF
  13150. #define HAVE_DAEMON 1
  13151. _ACEOF
  13152. have_daemon=yes
  13153. fi
  13154. done
  13155. if test "x$have_daemon" = "xyes"; then
  13156. HAVE_DAEMON_TRUE=
  13157. HAVE_DAEMON_FALSE='#'
  13158. else
  13159. HAVE_DAEMON_TRUE='#'
  13160. HAVE_DAEMON_FALSE=
  13161. fi
  13162. case "$target" in
  13163. *mingw*)
  13164. if true; then
  13165. HAVE_GETADDRINFO_TRUE=
  13166. HAVE_GETADDRINFO_FALSE='#'
  13167. else
  13168. HAVE_GETADDRINFO_TRUE='#'
  13169. HAVE_GETADDRINFO_FALSE=
  13170. fi
  13171. if false; then
  13172. HAVE_GAI_STRERROR_TRUE=
  13173. HAVE_GAI_STRERROR_FALSE='#'
  13174. else
  13175. HAVE_GAI_STRERROR_TRUE='#'
  13176. HAVE_GAI_STRERROR_FALSE=
  13177. fi
  13178. ;;
  13179. esac
  13180. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13181. "
  13182. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13183. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13184. fi
  13185. # Check struct option.name is assignable from const char*. struct
  13186. # option.name in opensolaris is of type char*. In Linux, it is const
  13187. # char*
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13189. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13191. /* end confdefs.h. */
  13192. #include <unistd.h>
  13193. #include <getopt.h>
  13194. int
  13195. main ()
  13196. {
  13197. const char* s = "const char";
  13198. option op;
  13199. op.name = s;
  13200. ;
  13201. return 0;
  13202. }
  13203. _ACEOF
  13204. if ac_fn_cxx_try_compile "$LINENO"; then :
  13205. have_option_const_name=yes
  13206. else
  13207. have_option_const_name=no
  13208. fi
  13209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13211. $as_echo "$have_option_const_name" >&6; }
  13212. if test "x$have_option_const_name" = "xyes"; then
  13213. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13214. fi
  13215. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13216. cat >confcache <<\_ACEOF
  13217. # This file is a shell script that caches the results of configure
  13218. # tests run on this system so they can be shared between configure
  13219. # scripts and configure runs, see configure's option --config-cache.
  13220. # It is not useful on other systems. If it contains results you don't
  13221. # want to keep, you may remove or edit it.
  13222. #
  13223. # config.status only pays attention to the cache file if you give it
  13224. # the --recheck option to rerun configure.
  13225. #
  13226. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13227. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13228. # following values.
  13229. _ACEOF
  13230. # The following way of writing the cache mishandles newlines in values,
  13231. # but we know of no workaround that is simple, portable, and efficient.
  13232. # So, we kill variables containing newlines.
  13233. # Ultrix sh set writes to stderr and can't be redirected directly,
  13234. # and sets the high bit in the cache file unless we assign to the vars.
  13235. (
  13236. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13237. eval ac_val=\$$ac_var
  13238. case $ac_val in #(
  13239. *${as_nl}*)
  13240. case $ac_var in #(
  13241. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13242. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13243. esac
  13244. case $ac_var in #(
  13245. _ | IFS | as_nl) ;; #(
  13246. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13247. *) { eval $ac_var=; unset $ac_var;} ;;
  13248. esac ;;
  13249. esac
  13250. done
  13251. (set) 2>&1 |
  13252. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13253. *${as_nl}ac_space=\ *)
  13254. # `set' does not quote correctly, so add quotes: double-quote
  13255. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13256. sed -n \
  13257. "s/'/'\\\\''/g;
  13258. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13259. ;; #(
  13260. *)
  13261. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13262. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13263. ;;
  13264. esac |
  13265. sort
  13266. ) |
  13267. sed '
  13268. /^ac_cv_env_/b end
  13269. t clear
  13270. :clear
  13271. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13272. t end
  13273. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13274. :end' >>confcache
  13275. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13276. if test -w "$cache_file"; then
  13277. test "x$cache_file" != "x/dev/null" &&
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13279. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13280. cat confcache >$cache_file
  13281. else
  13282. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13283. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13284. fi
  13285. fi
  13286. rm -f confcache
  13287. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13288. # Let make expand exec_prefix.
  13289. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13290. DEFS=-DHAVE_CONFIG_H
  13291. ac_libobjs=
  13292. ac_ltlibobjs=
  13293. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13294. # 1. Remove the extension, and $U if already installed.
  13295. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13296. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13297. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13298. # will be set to the directory where LIBOBJS objects are built.
  13299. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13300. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13301. done
  13302. LIBOBJS=$ac_libobjs
  13303. LTLIBOBJS=$ac_ltlibobjs
  13304. if test -n "$EXEEXT"; then
  13305. am__EXEEXT_TRUE=
  13306. am__EXEEXT_FALSE='#'
  13307. else
  13308. am__EXEEXT_TRUE='#'
  13309. am__EXEEXT_FALSE=
  13310. fi
  13311. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13312. as_fn_error "conditional \"AMDEP\" was never defined.
  13313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13314. fi
  13315. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13316. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13318. fi
  13319. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13320. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13322. fi
  13323. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13324. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13326. fi
  13327. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13328. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13330. fi
  13331. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13332. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13334. fi
  13335. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13336. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13338. fi
  13339. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13340. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13342. fi
  13343. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13344. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13346. fi
  13347. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13348. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13350. fi
  13351. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13352. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13354. fi
  13355. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13356. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13358. fi
  13359. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13360. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13362. fi
  13363. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13364. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13366. fi
  13367. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13368. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13370. fi
  13371. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13372. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13374. fi
  13375. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13376. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13378. fi
  13379. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13380. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13382. fi
  13383. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13384. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13386. fi
  13387. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13388. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13390. fi
  13391. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13392. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13394. fi
  13395. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13396. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13398. fi
  13399. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13400. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13402. fi
  13403. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13404. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13406. fi
  13407. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13408. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13410. fi
  13411. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13412. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13414. fi
  13415. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13416. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13418. fi
  13419. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13420. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13422. fi
  13423. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13424. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13426. fi
  13427. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13428. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13430. fi
  13431. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13432. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13434. fi
  13435. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13436. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13438. fi
  13439. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13440. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13442. fi
  13443. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13444. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13446. fi
  13447. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13448. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13450. fi
  13451. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13452. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13454. fi
  13455. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13456. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13458. fi
  13459. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13460. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13462. fi
  13463. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13464. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13466. fi
  13467. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13468. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13470. fi
  13471. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13472. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13474. fi
  13475. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13476. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13478. fi
  13479. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13480. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13482. fi
  13483. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13484. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13486. fi
  13487. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13488. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13490. fi
  13491. : ${CONFIG_STATUS=./config.status}
  13492. ac_write_fail=0
  13493. ac_clean_files_save=$ac_clean_files
  13494. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13496. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13497. as_write_fail=0
  13498. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13499. #! $SHELL
  13500. # Generated by $as_me.
  13501. # Run this file to recreate the current configuration.
  13502. # Compiler output produced by configure, useful for debugging
  13503. # configure, is in config.log if it exists.
  13504. debug=false
  13505. ac_cs_recheck=false
  13506. ac_cs_silent=false
  13507. SHELL=\${CONFIG_SHELL-$SHELL}
  13508. export SHELL
  13509. _ASEOF
  13510. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13511. ## -------------------- ##
  13512. ## M4sh Initialization. ##
  13513. ## -------------------- ##
  13514. # Be more Bourne compatible
  13515. DUALCASE=1; export DUALCASE # for MKS sh
  13516. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13517. emulate sh
  13518. NULLCMD=:
  13519. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13520. # is contrary to our usage. Disable this feature.
  13521. alias -g '${1+"$@"}'='"$@"'
  13522. setopt NO_GLOB_SUBST
  13523. else
  13524. case `(set -o) 2>/dev/null` in #(
  13525. *posix*) :
  13526. set -o posix ;; #(
  13527. *) :
  13528. ;;
  13529. esac
  13530. fi
  13531. as_nl='
  13532. '
  13533. export as_nl
  13534. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13535. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13536. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13537. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13538. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13539. # but without wasting forks for bash or zsh.
  13540. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13541. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13542. as_echo='print -r --'
  13543. as_echo_n='print -rn --'
  13544. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13545. as_echo='printf %s\n'
  13546. as_echo_n='printf %s'
  13547. else
  13548. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13549. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13550. as_echo_n='/usr/ucb/echo -n'
  13551. else
  13552. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13553. as_echo_n_body='eval
  13554. arg=$1;
  13555. case $arg in #(
  13556. *"$as_nl"*)
  13557. expr "X$arg" : "X\\(.*\\)$as_nl";
  13558. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13559. esac;
  13560. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13561. '
  13562. export as_echo_n_body
  13563. as_echo_n='sh -c $as_echo_n_body as_echo'
  13564. fi
  13565. export as_echo_body
  13566. as_echo='sh -c $as_echo_body as_echo'
  13567. fi
  13568. # The user is always right.
  13569. if test "${PATH_SEPARATOR+set}" != set; then
  13570. PATH_SEPARATOR=:
  13571. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13572. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13573. PATH_SEPARATOR=';'
  13574. }
  13575. fi
  13576. # IFS
  13577. # We need space, tab and new line, in precisely that order. Quoting is
  13578. # there to prevent editors from complaining about space-tab.
  13579. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13580. # splitting by setting IFS to empty value.)
  13581. IFS=" "" $as_nl"
  13582. # Find who we are. Look in the path if we contain no directory separator.
  13583. case $0 in #((
  13584. *[\\/]* ) as_myself=$0 ;;
  13585. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13586. for as_dir in $PATH
  13587. do
  13588. IFS=$as_save_IFS
  13589. test -z "$as_dir" && as_dir=.
  13590. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13591. done
  13592. IFS=$as_save_IFS
  13593. ;;
  13594. esac
  13595. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13596. # in which case we are not to be found in the path.
  13597. if test "x$as_myself" = x; then
  13598. as_myself=$0
  13599. fi
  13600. if test ! -f "$as_myself"; then
  13601. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13602. exit 1
  13603. fi
  13604. # Unset variables that we do not need and which cause bugs (e.g. in
  13605. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13606. # suppresses any "Segmentation fault" message there. '((' could
  13607. # trigger a bug in pdksh 5.2.14.
  13608. for as_var in BASH_ENV ENV MAIL MAILPATH
  13609. do eval test x\${$as_var+set} = xset \
  13610. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13611. done
  13612. PS1='$ '
  13613. PS2='> '
  13614. PS4='+ '
  13615. # NLS nuisances.
  13616. LC_ALL=C
  13617. export LC_ALL
  13618. LANGUAGE=C
  13619. export LANGUAGE
  13620. # CDPATH.
  13621. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13622. # as_fn_error ERROR [LINENO LOG_FD]
  13623. # ---------------------------------
  13624. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13625. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13626. # script with status $?, using 1 if that was 0.
  13627. as_fn_error ()
  13628. {
  13629. as_status=$?; test $as_status -eq 0 && as_status=1
  13630. if test "$3"; then
  13631. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13632. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13633. fi
  13634. $as_echo "$as_me: error: $1" >&2
  13635. as_fn_exit $as_status
  13636. } # as_fn_error
  13637. # as_fn_set_status STATUS
  13638. # -----------------------
  13639. # Set $? to STATUS, without forking.
  13640. as_fn_set_status ()
  13641. {
  13642. return $1
  13643. } # as_fn_set_status
  13644. # as_fn_exit STATUS
  13645. # -----------------
  13646. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13647. as_fn_exit ()
  13648. {
  13649. set +e
  13650. as_fn_set_status $1
  13651. exit $1
  13652. } # as_fn_exit
  13653. # as_fn_unset VAR
  13654. # ---------------
  13655. # Portably unset VAR.
  13656. as_fn_unset ()
  13657. {
  13658. { eval $1=; unset $1;}
  13659. }
  13660. as_unset=as_fn_unset
  13661. # as_fn_append VAR VALUE
  13662. # ----------------------
  13663. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13664. # advantage of any shell optimizations that allow amortized linear growth over
  13665. # repeated appends, instead of the typical quadratic growth present in naive
  13666. # implementations.
  13667. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13668. eval 'as_fn_append ()
  13669. {
  13670. eval $1+=\$2
  13671. }'
  13672. else
  13673. as_fn_append ()
  13674. {
  13675. eval $1=\$$1\$2
  13676. }
  13677. fi # as_fn_append
  13678. # as_fn_arith ARG...
  13679. # ------------------
  13680. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13681. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13682. # must be portable across $(()) and expr.
  13683. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13684. eval 'as_fn_arith ()
  13685. {
  13686. as_val=$(( $* ))
  13687. }'
  13688. else
  13689. as_fn_arith ()
  13690. {
  13691. as_val=`expr "$@" || test $? -eq 1`
  13692. }
  13693. fi # as_fn_arith
  13694. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13695. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13696. as_expr=expr
  13697. else
  13698. as_expr=false
  13699. fi
  13700. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13701. as_basename=basename
  13702. else
  13703. as_basename=false
  13704. fi
  13705. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13706. as_dirname=dirname
  13707. else
  13708. as_dirname=false
  13709. fi
  13710. as_me=`$as_basename -- "$0" ||
  13711. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13712. X"$0" : 'X\(//\)$' \| \
  13713. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13714. $as_echo X/"$0" |
  13715. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13716. s//\1/
  13717. q
  13718. }
  13719. /^X\/\(\/\/\)$/{
  13720. s//\1/
  13721. q
  13722. }
  13723. /^X\/\(\/\).*/{
  13724. s//\1/
  13725. q
  13726. }
  13727. s/.*/./; q'`
  13728. # Avoid depending upon Character Ranges.
  13729. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13730. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13731. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13732. as_cr_digits='0123456789'
  13733. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13734. ECHO_C= ECHO_N= ECHO_T=
  13735. case `echo -n x` in #(((((
  13736. -n*)
  13737. case `echo 'xy\c'` in
  13738. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13739. xy) ECHO_C='\c';;
  13740. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13741. ECHO_T=' ';;
  13742. esac;;
  13743. *)
  13744. ECHO_N='-n';;
  13745. esac
  13746. rm -f conf$$ conf$$.exe conf$$.file
  13747. if test -d conf$$.dir; then
  13748. rm -f conf$$.dir/conf$$.file
  13749. else
  13750. rm -f conf$$.dir
  13751. mkdir conf$$.dir 2>/dev/null
  13752. fi
  13753. if (echo >conf$$.file) 2>/dev/null; then
  13754. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13755. as_ln_s='ln -s'
  13756. # ... but there are two gotchas:
  13757. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13758. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13759. # In both cases, we have to default to `cp -p'.
  13760. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13761. as_ln_s='cp -p'
  13762. elif ln conf$$.file conf$$ 2>/dev/null; then
  13763. as_ln_s=ln
  13764. else
  13765. as_ln_s='cp -p'
  13766. fi
  13767. else
  13768. as_ln_s='cp -p'
  13769. fi
  13770. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13771. rmdir conf$$.dir 2>/dev/null
  13772. # as_fn_mkdir_p
  13773. # -------------
  13774. # Create "$as_dir" as a directory, including parents if necessary.
  13775. as_fn_mkdir_p ()
  13776. {
  13777. case $as_dir in #(
  13778. -*) as_dir=./$as_dir;;
  13779. esac
  13780. test -d "$as_dir" || eval $as_mkdir_p || {
  13781. as_dirs=
  13782. while :; do
  13783. case $as_dir in #(
  13784. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13785. *) as_qdir=$as_dir;;
  13786. esac
  13787. as_dirs="'$as_qdir' $as_dirs"
  13788. as_dir=`$as_dirname -- "$as_dir" ||
  13789. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13790. X"$as_dir" : 'X\(//\)[^/]' \| \
  13791. X"$as_dir" : 'X\(//\)$' \| \
  13792. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13793. $as_echo X"$as_dir" |
  13794. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13795. s//\1/
  13796. q
  13797. }
  13798. /^X\(\/\/\)[^/].*/{
  13799. s//\1/
  13800. q
  13801. }
  13802. /^X\(\/\/\)$/{
  13803. s//\1/
  13804. q
  13805. }
  13806. /^X\(\/\).*/{
  13807. s//\1/
  13808. q
  13809. }
  13810. s/.*/./; q'`
  13811. test -d "$as_dir" && break
  13812. done
  13813. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13814. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13815. } # as_fn_mkdir_p
  13816. if mkdir -p . 2>/dev/null; then
  13817. as_mkdir_p='mkdir -p "$as_dir"'
  13818. else
  13819. test -d ./-p && rmdir ./-p
  13820. as_mkdir_p=false
  13821. fi
  13822. if test -x / >/dev/null 2>&1; then
  13823. as_test_x='test -x'
  13824. else
  13825. if ls -dL / >/dev/null 2>&1; then
  13826. as_ls_L_option=L
  13827. else
  13828. as_ls_L_option=
  13829. fi
  13830. as_test_x='
  13831. eval sh -c '\''
  13832. if test -d "$1"; then
  13833. test -d "$1/.";
  13834. else
  13835. case $1 in #(
  13836. -*)set "./$1";;
  13837. esac;
  13838. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13839. ???[sx]*):;;*)false;;esac;fi
  13840. '\'' sh
  13841. '
  13842. fi
  13843. as_executable_p=$as_test_x
  13844. # Sed expression to map a string onto a valid CPP name.
  13845. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13846. # Sed expression to map a string onto a valid variable name.
  13847. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13848. exec 6>&1
  13849. ## ----------------------------------- ##
  13850. ## Main body of $CONFIG_STATUS script. ##
  13851. ## ----------------------------------- ##
  13852. _ASEOF
  13853. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13854. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13855. # Save the log message, to keep $0 and so on meaningful, and to
  13856. # report actual input values of CONFIG_FILES etc. instead of their
  13857. # values after options handling.
  13858. ac_log="
  13859. This file was extended by aria2 $as_me 1.9.1, which was
  13860. generated by GNU Autoconf 2.65. Invocation command line was
  13861. CONFIG_FILES = $CONFIG_FILES
  13862. CONFIG_HEADERS = $CONFIG_HEADERS
  13863. CONFIG_LINKS = $CONFIG_LINKS
  13864. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13865. $ $0 $@
  13866. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13867. "
  13868. _ACEOF
  13869. case $ac_config_files in *"
  13870. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13871. esac
  13872. case $ac_config_headers in *"
  13873. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13874. esac
  13875. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13876. # Files that config.status was made for.
  13877. config_files="$ac_config_files"
  13878. config_headers="$ac_config_headers"
  13879. config_commands="$ac_config_commands"
  13880. _ACEOF
  13881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13882. ac_cs_usage="\
  13883. \`$as_me' instantiates files and other configuration actions
  13884. from templates according to the current configuration. Unless the files
  13885. and actions are specified as TAGs, all are instantiated by default.
  13886. Usage: $0 [OPTION]... [TAG]...
  13887. -h, --help print this help, then exit
  13888. -V, --version print version number and configuration settings, then exit
  13889. --config print configuration, then exit
  13890. -q, --quiet, --silent
  13891. do not print progress messages
  13892. -d, --debug don't remove temporary files
  13893. --recheck update $as_me by reconfiguring in the same conditions
  13894. --file=FILE[:TEMPLATE]
  13895. instantiate the configuration file FILE
  13896. --header=FILE[:TEMPLATE]
  13897. instantiate the configuration header FILE
  13898. Configuration files:
  13899. $config_files
  13900. Configuration headers:
  13901. $config_headers
  13902. Configuration commands:
  13903. $config_commands
  13904. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13905. aria2 home page: <http://aria2.sourceforge.net/>."
  13906. _ACEOF
  13907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13908. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13909. ac_cs_version="\\
  13910. aria2 config.status 1.9.1
  13911. configured by $0, generated by GNU Autoconf 2.65,
  13912. with options \\"\$ac_cs_config\\"
  13913. Copyright (C) 2009 Free Software Foundation, Inc.
  13914. This config.status script is free software; the Free Software Foundation
  13915. gives unlimited permission to copy, distribute and modify it."
  13916. ac_pwd='$ac_pwd'
  13917. srcdir='$srcdir'
  13918. INSTALL='$INSTALL'
  13919. MKDIR_P='$MKDIR_P'
  13920. AWK='$AWK'
  13921. test -n "\$AWK" || AWK=awk
  13922. _ACEOF
  13923. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13924. # The default lists apply if the user does not specify any file.
  13925. ac_need_defaults=:
  13926. while test $# != 0
  13927. do
  13928. case $1 in
  13929. --*=*)
  13930. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13931. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13932. ac_shift=:
  13933. ;;
  13934. *)
  13935. ac_option=$1
  13936. ac_optarg=$2
  13937. ac_shift=shift
  13938. ;;
  13939. esac
  13940. case $ac_option in
  13941. # Handling of the options.
  13942. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13943. ac_cs_recheck=: ;;
  13944. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13945. $as_echo "$ac_cs_version"; exit ;;
  13946. --config | --confi | --conf | --con | --co | --c )
  13947. $as_echo "$ac_cs_config"; exit ;;
  13948. --debug | --debu | --deb | --de | --d | -d )
  13949. debug=: ;;
  13950. --file | --fil | --fi | --f )
  13951. $ac_shift
  13952. case $ac_optarg in
  13953. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13954. esac
  13955. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13956. ac_need_defaults=false;;
  13957. --header | --heade | --head | --hea )
  13958. $ac_shift
  13959. case $ac_optarg in
  13960. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13961. esac
  13962. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13963. ac_need_defaults=false;;
  13964. --he | --h)
  13965. # Conflict between --help and --header
  13966. as_fn_error "ambiguous option: \`$1'
  13967. Try \`$0 --help' for more information.";;
  13968. --help | --hel | -h )
  13969. $as_echo "$ac_cs_usage"; exit ;;
  13970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13971. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13972. ac_cs_silent=: ;;
  13973. # This is an error.
  13974. -*) as_fn_error "unrecognized option: \`$1'
  13975. Try \`$0 --help' for more information." ;;
  13976. *) as_fn_append ac_config_targets " $1"
  13977. ac_need_defaults=false ;;
  13978. esac
  13979. shift
  13980. done
  13981. ac_configure_extra_args=
  13982. if $ac_cs_silent; then
  13983. exec 6>/dev/null
  13984. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13985. fi
  13986. _ACEOF
  13987. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13988. if \$ac_cs_recheck; then
  13989. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13990. shift
  13991. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13992. CONFIG_SHELL='$SHELL'
  13993. export CONFIG_SHELL
  13994. exec "\$@"
  13995. fi
  13996. _ACEOF
  13997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13998. exec 5>>config.log
  13999. {
  14000. echo
  14001. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14002. ## Running $as_me. ##
  14003. _ASBOX
  14004. $as_echo "$ac_log"
  14005. } >&5
  14006. _ACEOF
  14007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14008. #
  14009. # INIT-COMMANDS
  14010. #
  14011. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14012. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14013. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14014. # from automake < 1.5.
  14015. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14016. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14017. LINGUAS="${LINGUAS-%UNSET%}"
  14018. _ACEOF
  14019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14020. # Handling of arguments.
  14021. for ac_config_target in $ac_config_targets
  14022. do
  14023. case $ac_config_target in
  14024. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14025. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14026. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14027. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14028. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14029. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14030. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14031. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14032. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14033. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14034. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14035. esac
  14036. done
  14037. # If the user did not use the arguments to specify the items to instantiate,
  14038. # then the envvar interface is used. Set only those that are not.
  14039. # We use the long form for the default assignment because of an extremely
  14040. # bizarre bug on SunOS 4.1.3.
  14041. if $ac_need_defaults; then
  14042. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14043. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14044. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14045. fi
  14046. # Have a temporary directory for convenience. Make it in the build tree
  14047. # simply because there is no reason against having it here, and in addition,
  14048. # creating and moving files from /tmp can sometimes cause problems.
  14049. # Hook for its removal unless debugging.
  14050. # Note that there is a small window in which the directory will not be cleaned:
  14051. # after its creation but before its name has been assigned to `$tmp'.
  14052. $debug ||
  14053. {
  14054. tmp=
  14055. trap 'exit_status=$?
  14056. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14057. ' 0
  14058. trap 'as_fn_exit 1' 1 2 13 15
  14059. }
  14060. # Create a (secure) tmp directory for tmp files.
  14061. {
  14062. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14063. test -n "$tmp" && test -d "$tmp"
  14064. } ||
  14065. {
  14066. tmp=./conf$$-$RANDOM
  14067. (umask 077 && mkdir "$tmp")
  14068. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14069. # Set up the scripts for CONFIG_FILES section.
  14070. # No need to generate them if there are no CONFIG_FILES.
  14071. # This happens for instance with `./config.status config.h'.
  14072. if test -n "$CONFIG_FILES"; then
  14073. ac_cr=`echo X | tr X '\015'`
  14074. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14075. # But we know of no other shell where ac_cr would be empty at this
  14076. # point, so we can use a bashism as a fallback.
  14077. if test "x$ac_cr" = x; then
  14078. eval ac_cr=\$\'\\r\'
  14079. fi
  14080. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14081. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14082. ac_cs_awk_cr='\r'
  14083. else
  14084. ac_cs_awk_cr=$ac_cr
  14085. fi
  14086. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14087. _ACEOF
  14088. {
  14089. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14090. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14091. echo "_ACEOF"
  14092. } >conf$$subs.sh ||
  14093. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14094. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14095. ac_delim='%!_!# '
  14096. for ac_last_try in false false false false false :; do
  14097. . ./conf$$subs.sh ||
  14098. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14099. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14100. if test $ac_delim_n = $ac_delim_num; then
  14101. break
  14102. elif $ac_last_try; then
  14103. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14104. else
  14105. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14106. fi
  14107. done
  14108. rm -f conf$$subs.sh
  14109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14110. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14111. _ACEOF
  14112. sed -n '
  14113. h
  14114. s/^/S["/; s/!.*/"]=/
  14115. p
  14116. g
  14117. s/^[^!]*!//
  14118. :repl
  14119. t repl
  14120. s/'"$ac_delim"'$//
  14121. t delim
  14122. :nl
  14123. h
  14124. s/\(.\{148\}\)..*/\1/
  14125. t more1
  14126. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14127. p
  14128. n
  14129. b repl
  14130. :more1
  14131. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14132. p
  14133. g
  14134. s/.\{148\}//
  14135. t nl
  14136. :delim
  14137. h
  14138. s/\(.\{148\}\)..*/\1/
  14139. t more2
  14140. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14141. p
  14142. b
  14143. :more2
  14144. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14145. p
  14146. g
  14147. s/.\{148\}//
  14148. t delim
  14149. ' <conf$$subs.awk | sed '
  14150. /^[^""]/{
  14151. N
  14152. s/\n//
  14153. }
  14154. ' >>$CONFIG_STATUS || ac_write_fail=1
  14155. rm -f conf$$subs.awk
  14156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14157. _ACAWK
  14158. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14159. for (key in S) S_is_set[key] = 1
  14160. FS = ""
  14161. }
  14162. {
  14163. line = $ 0
  14164. nfields = split(line, field, "@")
  14165. substed = 0
  14166. len = length(field[1])
  14167. for (i = 2; i < nfields; i++) {
  14168. key = field[i]
  14169. keylen = length(key)
  14170. if (S_is_set[key]) {
  14171. value = S[key]
  14172. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14173. len += length(value) + length(field[++i])
  14174. substed = 1
  14175. } else
  14176. len += 1 + keylen
  14177. }
  14178. print line
  14179. }
  14180. _ACAWK
  14181. _ACEOF
  14182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14183. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14184. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14185. else
  14186. cat
  14187. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14188. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14189. _ACEOF
  14190. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14191. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14192. # trailing colons and then remove the whole line if VPATH becomes empty
  14193. # (actually we leave an empty line to preserve line numbers).
  14194. if test "x$srcdir" = x.; then
  14195. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14196. s/:*\$(srcdir):*/:/
  14197. s/:*\${srcdir}:*/:/
  14198. s/:*@srcdir@:*/:/
  14199. s/^\([^=]*=[ ]*\):*/\1/
  14200. s/:*$//
  14201. s/^[^=]*=[ ]*$//
  14202. }'
  14203. fi
  14204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14205. fi # test -n "$CONFIG_FILES"
  14206. # Set up the scripts for CONFIG_HEADERS section.
  14207. # No need to generate them if there are no CONFIG_HEADERS.
  14208. # This happens for instance with `./config.status Makefile'.
  14209. if test -n "$CONFIG_HEADERS"; then
  14210. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14211. BEGIN {
  14212. _ACEOF
  14213. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14214. # here-document in config.status, that substitutes the proper values into
  14215. # config.h.in to produce config.h.
  14216. # Create a delimiter string that does not exist in confdefs.h, to ease
  14217. # handling of long lines.
  14218. ac_delim='%!_!# '
  14219. for ac_last_try in false false :; do
  14220. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14221. if test -z "$ac_t"; then
  14222. break
  14223. elif $ac_last_try; then
  14224. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14225. else
  14226. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14227. fi
  14228. done
  14229. # For the awk script, D is an array of macro values keyed by name,
  14230. # likewise P contains macro parameters if any. Preserve backslash
  14231. # newline sequences.
  14232. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14233. sed -n '
  14234. s/.\{148\}/&'"$ac_delim"'/g
  14235. t rset
  14236. :rset
  14237. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14238. t def
  14239. d
  14240. :def
  14241. s/\\$//
  14242. t bsnl
  14243. s/["\\]/\\&/g
  14244. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14245. D["\1"]=" \3"/p
  14246. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14247. d
  14248. :bsnl
  14249. s/["\\]/\\&/g
  14250. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14251. D["\1"]=" \3\\\\\\n"\\/p
  14252. t cont
  14253. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14254. t cont
  14255. d
  14256. :cont
  14257. n
  14258. s/.\{148\}/&'"$ac_delim"'/g
  14259. t clear
  14260. :clear
  14261. s/\\$//
  14262. t bsnlc
  14263. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14264. d
  14265. :bsnlc
  14266. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14267. b cont
  14268. ' <confdefs.h | sed '
  14269. s/'"$ac_delim"'/"\\\
  14270. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14272. for (key in D) D_is_set[key] = 1
  14273. FS = ""
  14274. }
  14275. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14276. line = \$ 0
  14277. split(line, arg, " ")
  14278. if (arg[1] == "#") {
  14279. defundef = arg[2]
  14280. mac1 = arg[3]
  14281. } else {
  14282. defundef = substr(arg[1], 2)
  14283. mac1 = arg[2]
  14284. }
  14285. split(mac1, mac2, "(") #)
  14286. macro = mac2[1]
  14287. prefix = substr(line, 1, index(line, defundef) - 1)
  14288. if (D_is_set[macro]) {
  14289. # Preserve the white space surrounding the "#".
  14290. print prefix "define", macro P[macro] D[macro]
  14291. next
  14292. } else {
  14293. # Replace #undef with comments. This is necessary, for example,
  14294. # in the case of _POSIX_SOURCE, which is predefined and required
  14295. # on some systems where configure will not decide to define it.
  14296. if (defundef == "undef") {
  14297. print "/*", prefix defundef, macro, "*/"
  14298. next
  14299. }
  14300. }
  14301. }
  14302. { print }
  14303. _ACAWK
  14304. _ACEOF
  14305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14306. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14307. fi # test -n "$CONFIG_HEADERS"
  14308. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14309. shift
  14310. for ac_tag
  14311. do
  14312. case $ac_tag in
  14313. :[FHLC]) ac_mode=$ac_tag; continue;;
  14314. esac
  14315. case $ac_mode$ac_tag in
  14316. :[FHL]*:*);;
  14317. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14318. :[FH]-) ac_tag=-:-;;
  14319. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14320. esac
  14321. ac_save_IFS=$IFS
  14322. IFS=:
  14323. set x $ac_tag
  14324. IFS=$ac_save_IFS
  14325. shift
  14326. ac_file=$1
  14327. shift
  14328. case $ac_mode in
  14329. :L) ac_source=$1;;
  14330. :[FH])
  14331. ac_file_inputs=
  14332. for ac_f
  14333. do
  14334. case $ac_f in
  14335. -) ac_f="$tmp/stdin";;
  14336. *) # Look for the file first in the build tree, then in the source tree
  14337. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14338. # because $ac_f cannot contain `:'.
  14339. test -f "$ac_f" ||
  14340. case $ac_f in
  14341. [\\/$]*) false;;
  14342. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14343. esac ||
  14344. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14345. esac
  14346. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14347. as_fn_append ac_file_inputs " '$ac_f'"
  14348. done
  14349. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14350. # use $as_me), people would be surprised to read:
  14351. # /* config.h. Generated by config.status. */
  14352. configure_input='Generated from '`
  14353. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14354. `' by configure.'
  14355. if test x"$ac_file" != x-; then
  14356. configure_input="$ac_file. $configure_input"
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14358. $as_echo "$as_me: creating $ac_file" >&6;}
  14359. fi
  14360. # Neutralize special characters interpreted by sed in replacement strings.
  14361. case $configure_input in #(
  14362. *\&* | *\|* | *\\* )
  14363. ac_sed_conf_input=`$as_echo "$configure_input" |
  14364. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14365. *) ac_sed_conf_input=$configure_input;;
  14366. esac
  14367. case $ac_tag in
  14368. *:-:* | *:-) cat >"$tmp/stdin" \
  14369. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14370. esac
  14371. ;;
  14372. esac
  14373. ac_dir=`$as_dirname -- "$ac_file" ||
  14374. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14375. X"$ac_file" : 'X\(//\)[^/]' \| \
  14376. X"$ac_file" : 'X\(//\)$' \| \
  14377. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14378. $as_echo X"$ac_file" |
  14379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14380. s//\1/
  14381. q
  14382. }
  14383. /^X\(\/\/\)[^/].*/{
  14384. s//\1/
  14385. q
  14386. }
  14387. /^X\(\/\/\)$/{
  14388. s//\1/
  14389. q
  14390. }
  14391. /^X\(\/\).*/{
  14392. s//\1/
  14393. q
  14394. }
  14395. s/.*/./; q'`
  14396. as_dir="$ac_dir"; as_fn_mkdir_p
  14397. ac_builddir=.
  14398. case "$ac_dir" in
  14399. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14400. *)
  14401. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14402. # A ".." for each directory in $ac_dir_suffix.
  14403. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14404. case $ac_top_builddir_sub in
  14405. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14406. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14407. esac ;;
  14408. esac
  14409. ac_abs_top_builddir=$ac_pwd
  14410. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14411. # for backward compatibility:
  14412. ac_top_builddir=$ac_top_build_prefix
  14413. case $srcdir in
  14414. .) # We are building in place.
  14415. ac_srcdir=.
  14416. ac_top_srcdir=$ac_top_builddir_sub
  14417. ac_abs_top_srcdir=$ac_pwd ;;
  14418. [\\/]* | ?:[\\/]* ) # Absolute name.
  14419. ac_srcdir=$srcdir$ac_dir_suffix;
  14420. ac_top_srcdir=$srcdir
  14421. ac_abs_top_srcdir=$srcdir ;;
  14422. *) # Relative name.
  14423. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14424. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14425. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14426. esac
  14427. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14428. case $ac_mode in
  14429. :F)
  14430. #
  14431. # CONFIG_FILE
  14432. #
  14433. case $INSTALL in
  14434. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14435. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14436. esac
  14437. ac_MKDIR_P=$MKDIR_P
  14438. case $MKDIR_P in
  14439. [\\/$]* | ?:[\\/]* ) ;;
  14440. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14441. esac
  14442. _ACEOF
  14443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14444. # If the template does not know about datarootdir, expand it.
  14445. # FIXME: This hack should be removed a few years after 2.60.
  14446. ac_datarootdir_hack=; ac_datarootdir_seen=
  14447. ac_sed_dataroot='
  14448. /datarootdir/ {
  14449. p
  14450. q
  14451. }
  14452. /@datadir@/p
  14453. /@docdir@/p
  14454. /@infodir@/p
  14455. /@localedir@/p
  14456. /@mandir@/p'
  14457. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14458. *datarootdir*) ac_datarootdir_seen=yes;;
  14459. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14461. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14462. _ACEOF
  14463. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14464. ac_datarootdir_hack='
  14465. s&@datadir@&$datadir&g
  14466. s&@docdir@&$docdir&g
  14467. s&@infodir@&$infodir&g
  14468. s&@localedir@&$localedir&g
  14469. s&@mandir@&$mandir&g
  14470. s&\\\${datarootdir}&$datarootdir&g' ;;
  14471. esac
  14472. _ACEOF
  14473. # Neutralize VPATH when `$srcdir' = `.'.
  14474. # Shell code in configure.ac might set extrasub.
  14475. # FIXME: do we really want to maintain this feature?
  14476. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14477. ac_sed_extra="$ac_vpsub
  14478. $extrasub
  14479. _ACEOF
  14480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14481. :t
  14482. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14483. s|@configure_input@|$ac_sed_conf_input|;t t
  14484. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14485. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14486. s&@srcdir@&$ac_srcdir&;t t
  14487. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14488. s&@top_srcdir@&$ac_top_srcdir&;t t
  14489. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14490. s&@builddir@&$ac_builddir&;t t
  14491. s&@abs_builddir@&$ac_abs_builddir&;t t
  14492. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14493. s&@INSTALL@&$ac_INSTALL&;t t
  14494. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14495. $ac_datarootdir_hack
  14496. "
  14497. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14498. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14499. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14500. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14501. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14503. which seems to be undefined. Please make sure it is defined." >&5
  14504. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14505. which seems to be undefined. Please make sure it is defined." >&2;}
  14506. rm -f "$tmp/stdin"
  14507. case $ac_file in
  14508. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14509. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14510. esac \
  14511. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14512. ;;
  14513. :H)
  14514. #
  14515. # CONFIG_HEADER
  14516. #
  14517. if test x"$ac_file" != x-; then
  14518. {
  14519. $as_echo "/* $configure_input */" \
  14520. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14521. } >"$tmp/config.h" \
  14522. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14523. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14524. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14525. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14526. else
  14527. rm -f "$ac_file"
  14528. mv "$tmp/config.h" "$ac_file" \
  14529. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14530. fi
  14531. else
  14532. $as_echo "/* $configure_input */" \
  14533. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14534. || as_fn_error "could not create -" "$LINENO" 5
  14535. fi
  14536. # Compute "$ac_file"'s index in $config_headers.
  14537. _am_arg="$ac_file"
  14538. _am_stamp_count=1
  14539. for _am_header in $config_headers :; do
  14540. case $_am_header in
  14541. $_am_arg | $_am_arg:* )
  14542. break ;;
  14543. * )
  14544. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14545. esac
  14546. done
  14547. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14548. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14549. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14550. X"$_am_arg" : 'X\(//\)$' \| \
  14551. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14552. $as_echo X"$_am_arg" |
  14553. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14554. s//\1/
  14555. q
  14556. }
  14557. /^X\(\/\/\)[^/].*/{
  14558. s//\1/
  14559. q
  14560. }
  14561. /^X\(\/\/\)$/{
  14562. s//\1/
  14563. q
  14564. }
  14565. /^X\(\/\).*/{
  14566. s//\1/
  14567. q
  14568. }
  14569. s/.*/./; q'`/stamp-h$_am_stamp_count
  14570. ;;
  14571. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14572. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14573. ;;
  14574. esac
  14575. case $ac_file$ac_mode in
  14576. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14577. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14578. # are listed without --file. Let's play safe and only enable the eval
  14579. # if we detect the quoting.
  14580. case $CONFIG_FILES in
  14581. *\'*) eval set x "$CONFIG_FILES" ;;
  14582. *) set x $CONFIG_FILES ;;
  14583. esac
  14584. shift
  14585. for mf
  14586. do
  14587. # Strip MF so we end up with the name of the file.
  14588. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14589. # Check whether this is an Automake generated Makefile or not.
  14590. # We used to match only the files named `Makefile.in', but
  14591. # some people rename them; so instead we look at the file content.
  14592. # Grep'ing the first line is not enough: some people post-process
  14593. # each Makefile.in and add a new line on top of each file to say so.
  14594. # Grep'ing the whole file is not good either: AIX grep has a line
  14595. # limit of 2048, but all sed's we know have understand at least 4000.
  14596. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14597. dirpart=`$as_dirname -- "$mf" ||
  14598. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14599. X"$mf" : 'X\(//\)[^/]' \| \
  14600. X"$mf" : 'X\(//\)$' \| \
  14601. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14602. $as_echo X"$mf" |
  14603. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14604. s//\1/
  14605. q
  14606. }
  14607. /^X\(\/\/\)[^/].*/{
  14608. s//\1/
  14609. q
  14610. }
  14611. /^X\(\/\/\)$/{
  14612. s//\1/
  14613. q
  14614. }
  14615. /^X\(\/\).*/{
  14616. s//\1/
  14617. q
  14618. }
  14619. s/.*/./; q'`
  14620. else
  14621. continue
  14622. fi
  14623. # Extract the definition of DEPDIR, am__include, and am__quote
  14624. # from the Makefile without running `make'.
  14625. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14626. test -z "$DEPDIR" && continue
  14627. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14628. test -z "am__include" && continue
  14629. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14630. # When using ansi2knr, U may be empty or an underscore; expand it
  14631. U=`sed -n 's/^U = //p' < "$mf"`
  14632. # Find all dependency output files, they are included files with
  14633. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14634. # simplest approach to changing $(DEPDIR) to its actual value in the
  14635. # expansion.
  14636. for file in `sed -n "
  14637. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14638. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14639. # Make sure the directory exists.
  14640. test -f "$dirpart/$file" && continue
  14641. fdir=`$as_dirname -- "$file" ||
  14642. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14643. X"$file" : 'X\(//\)[^/]' \| \
  14644. X"$file" : 'X\(//\)$' \| \
  14645. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14646. $as_echo X"$file" |
  14647. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14648. s//\1/
  14649. q
  14650. }
  14651. /^X\(\/\/\)[^/].*/{
  14652. s//\1/
  14653. q
  14654. }
  14655. /^X\(\/\/\)$/{
  14656. s//\1/
  14657. q
  14658. }
  14659. /^X\(\/\).*/{
  14660. s//\1/
  14661. q
  14662. }
  14663. s/.*/./; q'`
  14664. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14665. # echo "creating $dirpart/$file"
  14666. echo '# dummy' > "$dirpart/$file"
  14667. done
  14668. done
  14669. }
  14670. ;;
  14671. "po-directories":C)
  14672. for ac_file in $CONFIG_FILES; do
  14673. # Support "outfile[:infile[:infile...]]"
  14674. case "$ac_file" in
  14675. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14676. esac
  14677. # PO directories have a Makefile.in generated from Makefile.in.in.
  14678. case "$ac_file" in */Makefile.in)
  14679. # Adjust a relative srcdir.
  14680. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14681. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14682. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14683. # In autoconf-2.13 it is called $ac_given_srcdir.
  14684. # In autoconf-2.50 it is called $srcdir.
  14685. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14686. case "$ac_given_srcdir" in
  14687. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14688. /*) top_srcdir="$ac_given_srcdir" ;;
  14689. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14690. esac
  14691. # Treat a directory as a PO directory if and only if it has a
  14692. # POTFILES.in file. This allows packages to have multiple PO
  14693. # directories under different names or in different locations.
  14694. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14695. rm -f "$ac_dir/POTFILES"
  14696. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14697. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14698. POMAKEFILEDEPS="POTFILES.in"
  14699. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14700. # on $ac_dir but don't depend on user-specified configuration
  14701. # parameters.
  14702. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14703. # The LINGUAS file contains the set of available languages.
  14704. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14705. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14706. fi
  14707. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14708. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14709. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14710. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14711. else
  14712. # The set of available languages was given in configure.in.
  14713. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14714. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14715. fi
  14716. # Compute POFILES
  14717. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14718. # Compute UPDATEPOFILES
  14719. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14720. # Compute DUMMYPOFILES
  14721. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14722. # Compute GMOFILES
  14723. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14724. case "$ac_given_srcdir" in
  14725. .) srcdirpre= ;;
  14726. *) srcdirpre='$(srcdir)/' ;;
  14727. esac
  14728. POFILES=
  14729. UPDATEPOFILES=
  14730. DUMMYPOFILES=
  14731. GMOFILES=
  14732. for lang in $ALL_LINGUAS; do
  14733. POFILES="$POFILES $srcdirpre$lang.po"
  14734. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14735. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14736. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14737. done
  14738. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14739. # environment variable.
  14740. INST_LINGUAS=
  14741. if test -n "$ALL_LINGUAS"; then
  14742. for presentlang in $ALL_LINGUAS; do
  14743. useit=no
  14744. if test "%UNSET%" != "$LINGUAS"; then
  14745. desiredlanguages="$LINGUAS"
  14746. else
  14747. desiredlanguages="$ALL_LINGUAS"
  14748. fi
  14749. for desiredlang in $desiredlanguages; do
  14750. # Use the presentlang catalog if desiredlang is
  14751. # a. equal to presentlang, or
  14752. # b. a variant of presentlang (because in this case,
  14753. # presentlang can be used as a fallback for messages
  14754. # which are not translated in the desiredlang catalog).
  14755. case "$desiredlang" in
  14756. "$presentlang"*) useit=yes;;
  14757. esac
  14758. done
  14759. if test $useit = yes; then
  14760. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14761. fi
  14762. done
  14763. fi
  14764. CATALOGS=
  14765. if test -n "$INST_LINGUAS"; then
  14766. for lang in $INST_LINGUAS; do
  14767. CATALOGS="$CATALOGS $lang.gmo"
  14768. done
  14769. fi
  14770. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14771. 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"
  14772. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14773. if test -f "$f"; then
  14774. case "$f" in
  14775. *.orig | *.bak | *~) ;;
  14776. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14777. esac
  14778. fi
  14779. done
  14780. fi
  14781. ;;
  14782. esac
  14783. done ;;
  14784. esac
  14785. done # for ac_tag
  14786. as_fn_exit 0
  14787. _ACEOF
  14788. ac_clean_files=$ac_clean_files_save
  14789. test $ac_write_fail = 0 ||
  14790. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14791. # configure is writing to config.log, and then calls config.status.
  14792. # config.status does its own redirection, appending to config.log.
  14793. # Unfortunately, on DOS this fails, as config.log is still kept open
  14794. # by configure, so config.status won't be able to write to it; its
  14795. # output is simply discarded. So we exec the FD to /dev/null,
  14796. # effectively closing config.log, so it can be properly (re)opened and
  14797. # appended to by config.status. When coming back to configure, we
  14798. # need to make the FD available again.
  14799. if test "$no_create" != yes; then
  14800. ac_cs_success=:
  14801. ac_config_status_args=
  14802. test "$silent" = yes &&
  14803. ac_config_status_args="$ac_config_status_args --quiet"
  14804. exec 5>/dev/null
  14805. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14806. exec 5>>config.log
  14807. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14808. # would make configure fail if this is the last instruction.
  14809. $ac_cs_success || as_fn_exit $?
  14810. fi
  14811. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14813. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14814. fi
  14815. echo " "
  14816. echo "Build: $build"
  14817. echo "Target: $target"
  14818. echo "Install prefix: $prefix"
  14819. echo "CXXFLAGS: $CXXFLAGS"
  14820. echo "CFLAGS: $CFLAGS"
  14821. echo "CPPFLAGS: $CPPFLAGS"
  14822. echo "LDFLAGS: $LDFLAGS"
  14823. echo "LIBS: $LIBS"
  14824. echo "SQLite3: $have_sqlite3"
  14825. echo "GnuTLS: $have_libgnutls"
  14826. echo "OpenSSL: $have_openssl"
  14827. echo "CA Bundle: $ca_bundle"
  14828. echo "LibXML2: $have_libxml2"
  14829. echo "LibExpat: $have_libexpat"
  14830. echo "LibCares: $have_libcares"
  14831. echo "Libz: $have_libz"
  14832. echo "Epoll: $have_epoll"
  14833. echo "Bittorrent: $enable_bittorrent"
  14834. echo "Metalink: $enable_metalink"
  14835. echo "XML-RPC: $enable_xml_rpc"