configure 458 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for aria2 1.6.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: t-tujikawa@users.sourceforge.net about your system,
  215. $0: including any error possibly output before this
  216. $0: message. Then install a modern shell, or manually run
  217. $0: the script under such a shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='aria2'
  504. PACKAGE_TARNAME='aria2'
  505. PACKAGE_VERSION='1.6.1'
  506. PACKAGE_STRING='aria2 1.6.1'
  507. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  508. PACKAGE_URL='http://aria2.sourceforge.net/'
  509. ac_unique_file="src/a2io.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. gt_needs=
  546. ac_header_list=
  547. ac_func_list=
  548. ac_subst_vars='am__EXEEXT_FALSE
  549. am__EXEEXT_TRUE
  550. LTLIBOBJS
  551. HAVE_DAEMON_FALSE
  552. HAVE_DAEMON_TRUE
  553. HAVE_TIMEGM_FALSE
  554. HAVE_TIMEGM_TRUE
  555. HAVE_STRPTIME_FALSE
  556. HAVE_STRPTIME_TRUE
  557. HAVE_LOCALTIME_R_FALSE
  558. HAVE_LOCALTIME_R_TRUE
  559. HAVE_INET_ATON_FALSE
  560. HAVE_INET_ATON_TRUE
  561. HAVE_GETTIMEOFDAY_FALSE
  562. HAVE_GETTIMEOFDAY_TRUE
  563. HAVE_GETADDRINFO_FALSE
  564. HAVE_GETADDRINFO_TRUE
  565. HAVE_GAI_STRERROR_FALSE
  566. HAVE_GAI_STRERROR_TRUE
  567. HAVE_BASENAME_FALSE
  568. HAVE_BASENAME_TRUE
  569. HAVE_ASCTIME_R_FALSE
  570. HAVE_ASCTIME_R_TRUE
  571. HAVE_POSIX_FALLOCATE_FALSE
  572. HAVE_POSIX_FALLOCATE_TRUE
  573. HAVE_EPOLL_FALSE
  574. HAVE_EPOLL_TRUE
  575. LIBOBJS
  576. POSUB
  577. LTLIBINTL
  578. LIBINTL
  579. INTLLIBS
  580. INTL_LIBTOOL_SUFFIX_PREFIX
  581. INTLOBJS
  582. GENCAT
  583. INSTOBJEXT
  584. DATADIRNAME
  585. CATOBJEXT
  586. USE_INCLUDED_LIBINTL
  587. BUILD_INCLUDED_LIBINTL
  588. LTLIBC
  589. WINDRES
  590. WOE32
  591. WOE32DLL
  592. HAVE_WPRINTF
  593. HAVE_SNPRINTF
  594. HAVE_ASPRINTF
  595. HAVE_POSIX_PRINTF
  596. INTL_MACOSX_LIBS
  597. GLIBC21
  598. INTLBISON
  599. LTLIBICONV
  600. LIBICONV
  601. LTLIBMULTITHREAD
  602. LIBMULTITHREAD
  603. LTLIBTHREAD
  604. LIBTHREAD
  605. LIBPTH_PREFIX
  606. LTLIBPTH
  607. LIBPTH
  608. PRI_MACROS_BROKEN
  609. HAVE_VISIBILITY
  610. CFLAG_VISIBILITY
  611. GLIBC2
  612. XGETTEXT_EXTRA_OPTIONS
  613. MSGMERGE
  614. XGETTEXT_015
  615. XGETTEXT
  616. GMSGFMT_015
  617. MSGFMT_015
  618. GMSGFMT
  619. MSGFMT
  620. GETTEXT_MACRO_VERSION
  621. USE_NLS
  622. ALLOCA
  623. HAVE_SQLITE3_FALSE
  624. HAVE_SQLITE3_TRUE
  625. HAVE_LIBZ_FALSE
  626. HAVE_LIBZ_TRUE
  627. ENABLE_ASYNC_DNS_FALSE
  628. ENABLE_ASYNC_DNS_TRUE
  629. HAVE_LIBEXPAT_FALSE
  630. HAVE_LIBEXPAT_TRUE
  631. HAVE_LIBXML2_FALSE
  632. HAVE_LIBXML2_TRUE
  633. ENABLE_XML_RPC_FALSE
  634. ENABLE_XML_RPC_TRUE
  635. ENABLE_METALINK_LIBEXPAT_FALSE
  636. ENABLE_METALINK_LIBEXPAT_TRUE
  637. ENABLE_METALINK_LIBXML2_FALSE
  638. ENABLE_METALINK_LIBXML2_TRUE
  639. ENABLE_METALINK_FALSE
  640. ENABLE_METALINK_TRUE
  641. ENABLE_BITTORRENT_FALSE
  642. ENABLE_BITTORRENT_TRUE
  643. ENABLE_MESSAGE_DIGEST_FALSE
  644. ENABLE_MESSAGE_DIGEST_TRUE
  645. HAVE_LIBSSL_FALSE
  646. HAVE_LIBSSL_TRUE
  647. HAVE_LIBGNUTLS_FALSE
  648. HAVE_LIBGNUTLS_TRUE
  649. ca_bundle
  650. ENABLE_SSL_FALSE
  651. ENABLE_SSL_TRUE
  652. LIBZ_CPPFLAGS
  653. LIBZ_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBCARES_LIBS
  656. OPENSSL_CFLAGS
  657. OPENSSL_LIBS
  658. LIBGCRYPT_LIBS
  659. LIBGCRYPT_CFLAGS
  660. LIBGCRYPT_CONFIG
  661. LIBGNUTLS_CONFIG
  662. LIBGNUTLS_LIBS
  663. LIBGNUTLS_CFLAGS
  664. SQLITE3_LIBS
  665. SQLITE3_CFLAGS
  666. PKG_CONFIG
  667. LIBEXPAT_CPPFLAGS
  668. LIBEXPAT_LIBS
  669. XML_LIBS
  670. XML_CPPFLAGS
  671. XML2_CONFIG
  672. EGREP
  673. GREP
  674. CXXCPP
  675. YFLAGS
  676. YACC
  677. RANLIB
  678. am__fastdepCC_FALSE
  679. am__fastdepCC_TRUE
  680. CCDEPMODE
  681. ac_ct_CC
  682. CFLAGS
  683. CC
  684. am__fastdepCXX_FALSE
  685. am__fastdepCXX_TRUE
  686. CXXDEPMODE
  687. AMDEPBACKSLASH
  688. AMDEP_FALSE
  689. AMDEP_TRUE
  690. am__quote
  691. am__include
  692. DEPDIR
  693. OBJEXT
  694. EXEEXT
  695. ac_ct_CXX
  696. CPPFLAGS
  697. LDFLAGS
  698. CXXFLAGS
  699. CXX
  700. WINSOCK_LIBS
  701. CPPUNIT_LIBS
  702. CPPUNIT_CFLAGS
  703. CPPUNIT_CONFIG
  704. am__untar
  705. am__tar
  706. AMTAR
  707. am__leading_dot
  708. SET_MAKE
  709. AWK
  710. mkdir_p
  711. MKDIR_P
  712. INSTALL_STRIP_PROGRAM
  713. STRIP
  714. install_sh
  715. MAKEINFO
  716. AUTOHEADER
  717. AUTOMAKE
  718. AUTOCONF
  719. ACLOCAL
  720. VERSION
  721. PACKAGE
  722. CYGPATH_W
  723. am__isrc
  724. INSTALL_DATA
  725. INSTALL_SCRIPT
  726. INSTALL_PROGRAM
  727. target_os
  728. target_vendor
  729. target_cpu
  730. target
  731. host_os
  732. host_vendor
  733. host_cpu
  734. host
  735. build_os
  736. build_vendor
  737. build_cpu
  738. build
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. localstatedir
  759. sharedstatedir
  760. sysconfdir
  761. datadir
  762. datarootdir
  763. libexecdir
  764. sbindir
  765. bindir
  766. program_transform_name
  767. prefix
  768. exec_prefix
  769. PACKAGE_URL
  770. PACKAGE_BUGREPORT
  771. PACKAGE_STRING
  772. PACKAGE_VERSION
  773. PACKAGE_TARNAME
  774. PACKAGE_NAME
  775. PATH_SEPARATOR
  776. SHELL'
  777. ac_subst_files=''
  778. ac_user_opts='
  779. enable_option_checking
  780. with_cppunit_prefix
  781. with_cppunit_exec_prefix
  782. with_gnutls
  783. with_openssl
  784. with_sqlite3
  785. with_libxml2
  786. with_libexpat
  787. with_libcares
  788. with_libz
  789. enable_bittorrent
  790. enable_metalink
  791. enable_epoll
  792. with_ca_bundle
  793. enable_dependency_tracking
  794. with_xml_prefix
  795. with_xml_exec_prefix
  796. enable_xmltest
  797. with_libexpat_prefix
  798. with_sqlite3_prefix
  799. with_libgnutls_prefix
  800. with_libgcrypt_prefix
  801. with_openssl_prefix
  802. with_libcares_prefix
  803. with_libz_prefix
  804. enable_largefile
  805. enable_nls
  806. enable_threads
  807. with_gnu_ld
  808. enable_rpath
  809. with_libpth_prefix
  810. with_libiconv_prefix
  811. with_included_gettext
  812. with_libintl_prefix
  813. '
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CXX
  818. CXXFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CCC
  823. CC
  824. CFLAGS
  825. YACC
  826. YFLAGS
  827. CXXCPP
  828. PKG_CONFIG
  829. SQLITE3_CFLAGS
  830. SQLITE3_LIBS
  831. LIBGNUTLS_CFLAGS
  832. LIBGNUTLS_LIBS'
  833. # Initialize some variables set by options.
  834. ac_init_help=
  835. ac_init_version=false
  836. ac_unrecognized_opts=
  837. ac_unrecognized_sep=
  838. # The variables have the same names as the options, with
  839. # dashes changed to underlines.
  840. cache_file=/dev/null
  841. exec_prefix=NONE
  842. no_create=
  843. no_recursion=
  844. prefix=NONE
  845. program_prefix=NONE
  846. program_suffix=NONE
  847. program_transform_name=s,x,x,
  848. silent=
  849. site=
  850. srcdir=
  851. verbose=
  852. x_includes=NONE
  853. x_libraries=NONE
  854. # Installation directory options.
  855. # These are left unexpanded so users can "make install exec_prefix=/foo"
  856. # and all the variables that are supposed to be based on exec_prefix
  857. # by default will actually change.
  858. # Use braces instead of parens because sh, perl, etc. also accept them.
  859. # (The list follows the same order as the GNU Coding Standards.)
  860. bindir='${exec_prefix}/bin'
  861. sbindir='${exec_prefix}/sbin'
  862. libexecdir='${exec_prefix}/libexec'
  863. datarootdir='${prefix}/share'
  864. datadir='${datarootdir}'
  865. sysconfdir='${prefix}/etc'
  866. sharedstatedir='${prefix}/com'
  867. localstatedir='${prefix}/var'
  868. includedir='${prefix}/include'
  869. oldincludedir='/usr/include'
  870. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  871. infodir='${datarootdir}/info'
  872. htmldir='${docdir}'
  873. dvidir='${docdir}'
  874. pdfdir='${docdir}'
  875. psdir='${docdir}'
  876. libdir='${exec_prefix}/lib'
  877. localedir='${datarootdir}/locale'
  878. mandir='${datarootdir}/man'
  879. ac_prev=
  880. ac_dashdash=
  881. for ac_option
  882. do
  883. # If the previous option needs an argument, assign it.
  884. if test -n "$ac_prev"; then
  885. eval $ac_prev=\$ac_option
  886. ac_prev=
  887. continue
  888. fi
  889. case $ac_option in
  890. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  891. *) ac_optarg=yes ;;
  892. esac
  893. # Accept the important Cygnus configure options, so we can diagnose typos.
  894. case $ac_dashdash$ac_option in
  895. --)
  896. ac_dashdash=yes ;;
  897. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  898. ac_prev=bindir ;;
  899. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  900. bindir=$ac_optarg ;;
  901. -build | --build | --buil | --bui | --bu)
  902. ac_prev=build_alias ;;
  903. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  904. build_alias=$ac_optarg ;;
  905. -cache-file | --cache-file | --cache-fil | --cache-fi \
  906. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  907. ac_prev=cache_file ;;
  908. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  909. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  910. cache_file=$ac_optarg ;;
  911. --config-cache | -C)
  912. cache_file=config.cache ;;
  913. -datadir | --datadir | --datadi | --datad)
  914. ac_prev=datadir ;;
  915. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  916. datadir=$ac_optarg ;;
  917. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  918. | --dataroo | --dataro | --datar)
  919. ac_prev=datarootdir ;;
  920. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  921. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  922. datarootdir=$ac_optarg ;;
  923. -disable-* | --disable-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. as_fn_error "invalid feature name: $ac_useropt"
  928. ac_useropt_orig=$ac_useropt
  929. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  930. case $ac_user_opts in
  931. *"
  932. "enable_$ac_useropt"
  933. "*) ;;
  934. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  935. ac_unrecognized_sep=', ';;
  936. esac
  937. eval enable_$ac_useropt=no ;;
  938. -docdir | --docdir | --docdi | --doc | --do)
  939. ac_prev=docdir ;;
  940. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  941. docdir=$ac_optarg ;;
  942. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  943. ac_prev=dvidir ;;
  944. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  945. dvidir=$ac_optarg ;;
  946. -enable-* | --enable-*)
  947. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950. as_fn_error "invalid feature name: $ac_useropt"
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "enable_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval enable_$ac_useropt=\$ac_optarg ;;
  961. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  962. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  963. | --exec | --exe | --ex)
  964. ac_prev=exec_prefix ;;
  965. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  966. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  967. | --exec=* | --exe=* | --ex=*)
  968. exec_prefix=$ac_optarg ;;
  969. -gas | --gas | --ga | --g)
  970. # Obsolete; use --with-gas.
  971. with_gas=yes ;;
  972. -help | --help | --hel | --he | -h)
  973. ac_init_help=long ;;
  974. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  975. ac_init_help=recursive ;;
  976. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  977. ac_init_help=short ;;
  978. -host | --host | --hos | --ho)
  979. ac_prev=host_alias ;;
  980. -host=* | --host=* | --hos=* | --ho=*)
  981. host_alias=$ac_optarg ;;
  982. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  983. ac_prev=htmldir ;;
  984. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  985. | --ht=*)
  986. htmldir=$ac_optarg ;;
  987. -includedir | --includedir | --includedi | --included | --include \
  988. | --includ | --inclu | --incl | --inc)
  989. ac_prev=includedir ;;
  990. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  991. | --includ=* | --inclu=* | --incl=* | --inc=*)
  992. includedir=$ac_optarg ;;
  993. -infodir | --infodir | --infodi | --infod | --info | --inf)
  994. ac_prev=infodir ;;
  995. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  996. infodir=$ac_optarg ;;
  997. -libdir | --libdir | --libdi | --libd)
  998. ac_prev=libdir ;;
  999. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1000. libdir=$ac_optarg ;;
  1001. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1002. | --libexe | --libex | --libe)
  1003. ac_prev=libexecdir ;;
  1004. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1005. | --libexe=* | --libex=* | --libe=*)
  1006. libexecdir=$ac_optarg ;;
  1007. -localedir | --localedir | --localedi | --localed | --locale)
  1008. ac_prev=localedir ;;
  1009. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1010. localedir=$ac_optarg ;;
  1011. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1012. | --localstate | --localstat | --localsta | --localst | --locals)
  1013. ac_prev=localstatedir ;;
  1014. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1015. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1016. localstatedir=$ac_optarg ;;
  1017. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1018. ac_prev=mandir ;;
  1019. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1020. mandir=$ac_optarg ;;
  1021. -nfp | --nfp | --nf)
  1022. # Obsolete; use --without-fp.
  1023. with_fp=no ;;
  1024. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1025. | --no-cr | --no-c | -n)
  1026. no_create=yes ;;
  1027. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1028. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1029. no_recursion=yes ;;
  1030. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1031. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1032. | --oldin | --oldi | --old | --ol | --o)
  1033. ac_prev=oldincludedir ;;
  1034. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1035. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1036. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1037. oldincludedir=$ac_optarg ;;
  1038. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1039. ac_prev=prefix ;;
  1040. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1041. prefix=$ac_optarg ;;
  1042. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1043. | --program-pre | --program-pr | --program-p)
  1044. ac_prev=program_prefix ;;
  1045. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1046. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1047. program_prefix=$ac_optarg ;;
  1048. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1049. | --program-suf | --program-su | --program-s)
  1050. ac_prev=program_suffix ;;
  1051. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1052. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1053. program_suffix=$ac_optarg ;;
  1054. -program-transform-name | --program-transform-name \
  1055. | --program-transform-nam | --program-transform-na \
  1056. | --program-transform-n | --program-transform- \
  1057. | --program-transform | --program-transfor \
  1058. | --program-transfo | --program-transf \
  1059. | --program-trans | --program-tran \
  1060. | --progr-tra | --program-tr | --program-t)
  1061. ac_prev=program_transform_name ;;
  1062. -program-transform-name=* | --program-transform-name=* \
  1063. | --program-transform-nam=* | --program-transform-na=* \
  1064. | --program-transform-n=* | --program-transform-=* \
  1065. | --program-transform=* | --program-transfor=* \
  1066. | --program-transfo=* | --program-transf=* \
  1067. | --program-trans=* | --program-tran=* \
  1068. | --progr-tra=* | --program-tr=* | --program-t=*)
  1069. program_transform_name=$ac_optarg ;;
  1070. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1071. ac_prev=pdfdir ;;
  1072. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1073. pdfdir=$ac_optarg ;;
  1074. -psdir | --psdir | --psdi | --psd | --ps)
  1075. ac_prev=psdir ;;
  1076. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1077. psdir=$ac_optarg ;;
  1078. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1079. | -silent | --silent | --silen | --sile | --sil)
  1080. silent=yes ;;
  1081. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1082. ac_prev=sbindir ;;
  1083. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1084. | --sbi=* | --sb=*)
  1085. sbindir=$ac_optarg ;;
  1086. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1087. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1088. | --sharedst | --shareds | --shared | --share | --shar \
  1089. | --sha | --sh)
  1090. ac_prev=sharedstatedir ;;
  1091. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1092. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1093. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1094. | --sha=* | --sh=*)
  1095. sharedstatedir=$ac_optarg ;;
  1096. -site | --site | --sit)
  1097. ac_prev=site ;;
  1098. -site=* | --site=* | --sit=*)
  1099. site=$ac_optarg ;;
  1100. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1101. ac_prev=srcdir ;;
  1102. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1103. srcdir=$ac_optarg ;;
  1104. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1105. | --syscon | --sysco | --sysc | --sys | --sy)
  1106. ac_prev=sysconfdir ;;
  1107. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1108. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1109. sysconfdir=$ac_optarg ;;
  1110. -target | --target | --targe | --targ | --tar | --ta | --t)
  1111. ac_prev=target_alias ;;
  1112. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1113. target_alias=$ac_optarg ;;
  1114. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1115. verbose=yes ;;
  1116. -version | --version | --versio | --versi | --vers | -V)
  1117. ac_init_version=: ;;
  1118. -with-* | --with-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error "invalid package name: $ac_useropt"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=\$ac_optarg ;;
  1133. -without-* | --without-*)
  1134. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1137. as_fn_error "invalid package name: $ac_useropt"
  1138. ac_useropt_orig=$ac_useropt
  1139. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1140. case $ac_user_opts in
  1141. *"
  1142. "with_$ac_useropt"
  1143. "*) ;;
  1144. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1145. ac_unrecognized_sep=', ';;
  1146. esac
  1147. eval with_$ac_useropt=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) as_fn_error "unrecognized option: \`$ac_option'
  1164. Try \`$0 --help' for more information."
  1165. ;;
  1166. *=*)
  1167. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1168. # Reject names that are not valid shell variable names.
  1169. case $ac_envvar in #(
  1170. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1171. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1172. esac
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. as_fn_error "missing argument to $ac_option"
  1187. fi
  1188. if test -n "$ac_unrecognized_opts"; then
  1189. case $enable_option_checking in
  1190. no) ;;
  1191. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1192. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1193. esac
  1194. fi
  1195. # Check all directory arguments for consistency.
  1196. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1197. datadir sysconfdir sharedstatedir localstatedir includedir \
  1198. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1199. libdir localedir mandir
  1200. do
  1201. eval ac_val=\$$ac_var
  1202. # Remove trailing slashes.
  1203. case $ac_val in
  1204. */ )
  1205. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1206. eval $ac_var=\$ac_val;;
  1207. esac
  1208. # Be sure to have absolute directory names.
  1209. case $ac_val in
  1210. [\\/$]* | ?:[\\/]* ) continue;;
  1211. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1212. esac
  1213. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1214. done
  1215. # There might be people who depend on the old broken behavior: `$host'
  1216. # used to hold the argument of --host etc.
  1217. # FIXME: To remove some day.
  1218. build=$build_alias
  1219. host=$host_alias
  1220. target=$target_alias
  1221. # FIXME: To remove some day.
  1222. if test "x$host_alias" != x; then
  1223. if test "x$build_alias" = x; then
  1224. cross_compiling=maybe
  1225. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1226. If a cross compiler is detected then cross compile mode will be used." >&2
  1227. elif test "x$build_alias" != "x$host_alias"; then
  1228. cross_compiling=yes
  1229. fi
  1230. fi
  1231. ac_tool_prefix=
  1232. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1233. test "$silent" = yes && exec 6>/dev/null
  1234. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1235. ac_ls_di=`ls -di .` &&
  1236. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1237. as_fn_error "working directory cannot be determined"
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. as_fn_error "pwd does not report name of working directory"
  1240. # Find the source files, if location was not specified.
  1241. if test -z "$srcdir"; then
  1242. ac_srcdir_defaulted=yes
  1243. # Try the directory containing this script, then the parent directory.
  1244. ac_confdir=`$as_dirname -- "$as_myself" ||
  1245. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1246. X"$as_myself" : 'X\(//\)[^/]' \| \
  1247. X"$as_myself" : 'X\(//\)$' \| \
  1248. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1249. $as_echo X"$as_myself" |
  1250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1251. s//\1/
  1252. q
  1253. }
  1254. /^X\(\/\/\)[^/].*/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\).*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. s/.*/./; q'`
  1267. srcdir=$ac_confdir
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. srcdir=..
  1270. fi
  1271. else
  1272. ac_srcdir_defaulted=no
  1273. fi
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1276. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1277. fi
  1278. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1279. ac_abs_confdir=`(
  1280. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1281. pwd)`
  1282. # When building in place, set srcdir=.
  1283. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1284. srcdir=.
  1285. fi
  1286. # Remove unnecessary trailing slashes from srcdir.
  1287. # Double slashes in file names in object file debugging info
  1288. # mess up M-x gdb in Emacs.
  1289. case $srcdir in
  1290. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1291. esac
  1292. for ac_var in $ac_precious_vars; do
  1293. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_env_${ac_var}_value=\$${ac_var}
  1295. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1297. done
  1298. #
  1299. # Report the --help message.
  1300. #
  1301. if test "$ac_init_help" = "long"; then
  1302. # Omit some internal or obsolete options to make the list less imposing.
  1303. # This message is too long to be a string in the A/UX 3.1 sh.
  1304. cat <<_ACEOF
  1305. \`configure' configures aria2 1.6.1 to adapt to many kinds of systems.
  1306. Usage: $0 [OPTION]... [VAR=VALUE]...
  1307. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1308. VAR=VALUE. See below for descriptions of some of the useful variables.
  1309. Defaults for the options are specified in brackets.
  1310. Configuration:
  1311. -h, --help display this help and exit
  1312. --help=short display options specific to this package
  1313. --help=recursive display the short help of all the included packages
  1314. -V, --version display version information and exit
  1315. -q, --quiet, --silent do not print \`checking...' messages
  1316. --cache-file=FILE cache test results in FILE [disabled]
  1317. -C, --config-cache alias for \`--cache-file=config.cache'
  1318. -n, --no-create do not create output files
  1319. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1320. Installation directories:
  1321. --prefix=PREFIX install architecture-independent files in PREFIX
  1322. [$ac_default_prefix]
  1323. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1324. [PREFIX]
  1325. By default, \`make install' will install all the files in
  1326. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1327. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1328. for instance \`--prefix=\$HOME'.
  1329. For better control, use the options below.
  1330. Fine tuning of the installation directories:
  1331. --bindir=DIR user executables [EPREFIX/bin]
  1332. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1333. --libexecdir=DIR program executables [EPREFIX/libexec]
  1334. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1335. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1336. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1337. --libdir=DIR object code libraries [EPREFIX/lib]
  1338. --includedir=DIR C header files [PREFIX/include]
  1339. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1340. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1341. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1342. --infodir=DIR info documentation [DATAROOTDIR/info]
  1343. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1344. --mandir=DIR man documentation [DATAROOTDIR/man]
  1345. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1346. --htmldir=DIR html documentation [DOCDIR]
  1347. --dvidir=DIR dvi documentation [DOCDIR]
  1348. --pdfdir=DIR pdf documentation [DOCDIR]
  1349. --psdir=DIR ps documentation [DOCDIR]
  1350. _ACEOF
  1351. cat <<\_ACEOF
  1352. Program names:
  1353. --program-prefix=PREFIX prepend PREFIX to installed program names
  1354. --program-suffix=SUFFIX append SUFFIX to installed program names
  1355. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1356. System types:
  1357. --build=BUILD configure for building on BUILD [guessed]
  1358. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1359. --target=TARGET configure for building compilers for TARGET [HOST]
  1360. _ACEOF
  1361. fi
  1362. if test -n "$ac_init_help"; then
  1363. case $ac_init_help in
  1364. short | recursive ) echo "Configuration of aria2 1.6.1:";;
  1365. esac
  1366. cat <<\_ACEOF
  1367. Optional Features:
  1368. --disable-option-checking ignore unrecognized --enable/--with options
  1369. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1370. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1371. --enable-bittorrent Enable bittorrent support.
  1372. --enable-metalink Enable metalink support.
  1373. --enable-epoll Enable epoll support.
  1374. --disable-dependency-tracking speeds up one-time build
  1375. --enable-dependency-tracking do not reject slow dependency extractors
  1376. --disable-xmltest Do not try to compile and run a test LIBXML program
  1377. --disable-largefile omit support for large files
  1378. --disable-nls do not use Native Language Support
  1379. --enable-threads={posix|solaris|pth|win32}
  1380. specify multithreading API
  1381. --disable-threads build without multithread safety
  1382. --disable-rpath do not hardcode runtime library paths
  1383. Optional Packages:
  1384. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1385. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1386. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1387. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1388. --with-gnutls Use gnutls if it is installed.
  1389. --with-openssl Use openssl if it is installed.
  1390. --with-sqlite3 Use sqlite3 if it is installed.
  1391. --with-libxml2 Use libxml2 if it is installed.
  1392. --with-libexpat Use libexpat if it is installed.
  1393. --with-libcares Use libcares if it is installed.
  1394. --with-libz Use libz if it is installed.
  1395. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1396. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1397. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1398. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1399. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1400. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1401. --with-libgcrypt-prefix=PFX
  1402. prefix where LIBGCRYPT is installed (optional)
  1403. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1404. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1405. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1406. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1407. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1408. --without-libpth-prefix don't search for libpth in includedir and libdir
  1409. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1410. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1411. --with-included-gettext use the GNU gettext library included here
  1412. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1413. --without-libintl-prefix don't search for libintl in includedir and libdir
  1414. Some influential environment variables:
  1415. CXX C++ compiler command
  1416. CXXFLAGS C++ compiler flags
  1417. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1418. nonstandard directory <lib dir>
  1419. LIBS libraries to pass to the linker, e.g. -l<library>
  1420. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1421. you have headers in a nonstandard directory <include dir>
  1422. CC C compiler command
  1423. CFLAGS C compiler flags
  1424. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1425. the first program found out of: `bison -y', `byacc', `yacc'.
  1426. YFLAGS The list of arguments that will be passed by default to $YACC.
  1427. This script will default YFLAGS to the empty string to avoid a
  1428. default value of `-d' given by some make applications.
  1429. CXXCPP C++ preprocessor
  1430. PKG_CONFIG path to pkg-config utility
  1431. SQLITE3_CFLAGS
  1432. C compiler flags for SQLITE3, overriding pkg-config
  1433. SQLITE3_LIBS
  1434. linker flags for SQLITE3, overriding pkg-config
  1435. LIBGNUTLS_CFLAGS
  1436. C compiler flags for LIBGNUTLS, overriding pkg-config
  1437. LIBGNUTLS_LIBS
  1438. linker flags for LIBGNUTLS, overriding pkg-config
  1439. Use these variables to override the choices made by `configure' or to help
  1440. it to find libraries and programs with nonstandard names/locations.
  1441. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1442. aria2 home page: <http://aria2.sourceforge.net/>.
  1443. _ACEOF
  1444. ac_status=$?
  1445. fi
  1446. if test "$ac_init_help" = "recursive"; then
  1447. # If there are subdirs, report their specific --help.
  1448. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1449. test -d "$ac_dir" ||
  1450. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1451. continue
  1452. ac_builddir=.
  1453. case "$ac_dir" in
  1454. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1455. *)
  1456. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1457. # A ".." for each directory in $ac_dir_suffix.
  1458. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1459. case $ac_top_builddir_sub in
  1460. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1462. esac ;;
  1463. esac
  1464. ac_abs_top_builddir=$ac_pwd
  1465. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1466. # for backward compatibility:
  1467. ac_top_builddir=$ac_top_build_prefix
  1468. case $srcdir in
  1469. .) # We are building in place.
  1470. ac_srcdir=.
  1471. ac_top_srcdir=$ac_top_builddir_sub
  1472. ac_abs_top_srcdir=$ac_pwd ;;
  1473. [\\/]* | ?:[\\/]* ) # Absolute name.
  1474. ac_srcdir=$srcdir$ac_dir_suffix;
  1475. ac_top_srcdir=$srcdir
  1476. ac_abs_top_srcdir=$srcdir ;;
  1477. *) # Relative name.
  1478. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1479. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1480. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1481. esac
  1482. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1483. cd "$ac_dir" || { ac_status=$?; continue; }
  1484. # Check for guested configure.
  1485. if test -f "$ac_srcdir/configure.gnu"; then
  1486. echo &&
  1487. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1488. elif test -f "$ac_srcdir/configure"; then
  1489. echo &&
  1490. $SHELL "$ac_srcdir/configure" --help=recursive
  1491. else
  1492. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1493. fi || ac_status=$?
  1494. cd "$ac_pwd" || { ac_status=$?; break; }
  1495. done
  1496. fi
  1497. test -n "$ac_init_help" && exit $ac_status
  1498. if $ac_init_version; then
  1499. cat <<\_ACEOF
  1500. aria2 configure 1.6.1
  1501. generated by GNU Autoconf 2.64
  1502. Copyright (C) 2009 Free Software Foundation, Inc.
  1503. This configure script is free software; the Free Software Foundation
  1504. gives unlimited permission to copy, distribute and modify it.
  1505. _ACEOF
  1506. exit
  1507. fi
  1508. ## ------------------------ ##
  1509. ## Autoconf initialization. ##
  1510. ## ------------------------ ##
  1511. # ac_fn_cxx_try_compile LINENO
  1512. # ----------------------------
  1513. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_cxx_try_compile ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. rm -f conftest.$ac_objext
  1518. if { { ac_try="$ac_compile"
  1519. case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_compile") 2>conftest.err
  1526. ac_status=$?
  1527. if test -s conftest.err; then
  1528. grep -v '^ *+' conftest.err >conftest.er1
  1529. cat conftest.er1 >&5
  1530. mv -f conftest.er1 conftest.err
  1531. fi
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; } && {
  1534. test -z "$ac_cxx_werror_flag" ||
  1535. test ! -s conftest.err
  1536. } && test -s conftest.$ac_objext; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: failed program was:" >&5
  1540. sed 's/^/| /' conftest.$ac_ext >&5
  1541. ac_retval=1
  1542. fi
  1543. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1544. return $ac_retval
  1545. } # ac_fn_cxx_try_compile
  1546. # ac_fn_c_try_compile LINENO
  1547. # --------------------------
  1548. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1549. ac_fn_c_try_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. rm -f conftest.$ac_objext
  1553. if { { ac_try="$ac_compile"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_compile") 2>conftest.err
  1561. ac_status=$?
  1562. if test -s conftest.err; then
  1563. grep -v '^ *+' conftest.err >conftest.er1
  1564. cat conftest.er1 >&5
  1565. mv -f conftest.er1 conftest.err
  1566. fi
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } && {
  1569. test -z "$ac_c_werror_flag" ||
  1570. test ! -s conftest.err
  1571. } && test -s conftest.$ac_objext; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1579. return $ac_retval
  1580. } # ac_fn_c_try_compile
  1581. # ac_fn_cxx_try_cpp LINENO
  1582. # ------------------------
  1583. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1584. ac_fn_cxx_try_cpp ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } >/dev/null && {
  1603. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1604. test ! -s conftest.err
  1605. }; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1613. return $ac_retval
  1614. } # ac_fn_cxx_try_cpp
  1615. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1616. # ---------------------------------------------------------
  1617. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1618. # the include files in INCLUDES and setting the cache variable VAR
  1619. # accordingly.
  1620. ac_fn_cxx_check_header_mongrel ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1625. $as_echo_n "checking for $2... " >&6; }
  1626. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1627. $as_echo_n "(cached) " >&6
  1628. fi
  1629. eval ac_res=\$$3
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1631. $as_echo "$ac_res" >&6; }
  1632. else
  1633. # Is the header compilable?
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1635. $as_echo_n "checking $2 usability... " >&6; }
  1636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1637. /* end confdefs.h. */
  1638. $4
  1639. #include <$2>
  1640. _ACEOF
  1641. if ac_fn_cxx_try_compile "$LINENO"; then :
  1642. ac_header_compiler=yes
  1643. else
  1644. ac_header_compiler=no
  1645. fi
  1646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1648. $as_echo "$ac_header_compiler" >&6; }
  1649. # Is the header present?
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1651. $as_echo_n "checking $2 presence... " >&6; }
  1652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1653. /* end confdefs.h. */
  1654. #include <$2>
  1655. _ACEOF
  1656. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1657. ac_header_preproc=yes
  1658. else
  1659. ac_header_preproc=no
  1660. fi
  1661. rm -f conftest.err conftest.$ac_ext
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1663. $as_echo "$ac_header_preproc" >&6; }
  1664. # So? What about this header?
  1665. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1666. yes:no: )
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1668. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1670. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1671. ;;
  1672. no:yes:* )
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1674. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1676. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1678. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1680. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1682. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1683. ( cat <<\_ASBOX
  1684. ## ----------------------------------------------- ##
  1685. ## Report this to t-tujikawa@users.sourceforge.net ##
  1686. ## ----------------------------------------------- ##
  1687. _ASBOX
  1688. ) | sed "s/^/$as_me: WARNING: /" >&2
  1689. ;;
  1690. esac
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1692. $as_echo_n "checking for $2... " >&6; }
  1693. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1694. $as_echo_n "(cached) " >&6
  1695. else
  1696. eval "$3=\$ac_header_compiler"
  1697. fi
  1698. eval ac_res=\$$3
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1700. $as_echo "$ac_res" >&6; }
  1701. fi
  1702. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1703. } # ac_fn_cxx_check_header_mongrel
  1704. # ac_fn_cxx_try_run LINENO
  1705. # ------------------------
  1706. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1707. # that executables *can* be run.
  1708. ac_fn_cxx_try_run ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. if { { ac_try="$ac_link"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_link") 2>&5
  1719. ac_status=$?
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1722. { { case "(($ac_try" in
  1723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1724. *) ac_try_echo=$ac_try;;
  1725. esac
  1726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1727. $as_echo "$ac_try_echo"; } >&5
  1728. (eval "$ac_try") 2>&5
  1729. ac_status=$?
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; }; }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: program exited with status $ac_status" >&5
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=$ac_status
  1738. fi
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1741. return $ac_retval
  1742. } # ac_fn_cxx_try_run
  1743. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1744. # ---------------------------------------------------------
  1745. # Tests whether HEADER exists and can be compiled using the include files in
  1746. # INCLUDES, setting the cache variable VAR accordingly.
  1747. ac_fn_cxx_check_header_compile ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. $4
  1758. #include <$2>
  1759. _ACEOF
  1760. if ac_fn_cxx_try_compile "$LINENO"; then :
  1761. eval "$3=yes"
  1762. else
  1763. eval "$3=no"
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. fi
  1767. eval ac_res=\$$3
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1769. $as_echo "$ac_res" >&6; }
  1770. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1771. } # ac_fn_cxx_check_header_compile
  1772. # ac_fn_cxx_try_link LINENO
  1773. # -------------------------
  1774. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1775. ac_fn_cxx_try_link ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. rm -f conftest.$ac_objext conftest$ac_exeext
  1779. if { { ac_try="$ac_link"
  1780. case "(($ac_try" in
  1781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1782. *) ac_try_echo=$ac_try;;
  1783. esac
  1784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1785. $as_echo "$ac_try_echo"; } >&5
  1786. (eval "$ac_link") 2>conftest.err
  1787. ac_status=$?
  1788. if test -s conftest.err; then
  1789. grep -v '^ *+' conftest.err >conftest.er1
  1790. cat conftest.er1 >&5
  1791. mv -f conftest.er1 conftest.err
  1792. fi
  1793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1794. test $ac_status = 0; } && {
  1795. test -z "$ac_cxx_werror_flag" ||
  1796. test ! -s conftest.err
  1797. } && test -s conftest$ac_exeext && {
  1798. test "$cross_compiling" = yes ||
  1799. $as_test_x conftest$ac_exeext
  1800. }; then :
  1801. ac_retval=0
  1802. else
  1803. $as_echo "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1808. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1809. # interfere with the next link command; also delete a directory that is
  1810. # left behind by Apple's compiler. We do this before executing the actions.
  1811. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1812. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1813. return $ac_retval
  1814. } # ac_fn_cxx_try_link
  1815. # ac_fn_cxx_check_func LINENO FUNC VAR
  1816. # ------------------------------------
  1817. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1818. ac_fn_cxx_check_func ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1829. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1830. #define $2 innocuous_$2
  1831. /* System header to define __stub macros and hopefully few prototypes,
  1832. which can conflict with char $2 (); below.
  1833. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1834. <limits.h> exists even on freestanding compilers. */
  1835. #ifdef __STDC__
  1836. # include <limits.h>
  1837. #else
  1838. # include <assert.h>
  1839. #endif
  1840. #undef $2
  1841. /* Override any GCC internal prototype to avoid an error.
  1842. Use char because int might match the return type of a GCC
  1843. builtin and then its argument prototype would still apply. */
  1844. #ifdef __cplusplus
  1845. extern "C"
  1846. #endif
  1847. char $2 ();
  1848. /* The GNU C library defines this for functions which it implements
  1849. to always fail with ENOSYS. Some functions are actually named
  1850. something starting with __ and the normal name is an alias. */
  1851. #if defined __stub_$2 || defined __stub___$2
  1852. choke me
  1853. #endif
  1854. int
  1855. main ()
  1856. {
  1857. return $2 ();
  1858. ;
  1859. return 0;
  1860. }
  1861. _ACEOF
  1862. if ac_fn_cxx_try_link "$LINENO"; then :
  1863. eval "$3=yes"
  1864. else
  1865. eval "$3=no"
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext \
  1868. conftest$ac_exeext conftest.$ac_ext
  1869. fi
  1870. eval ac_res=\$$3
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1872. $as_echo "$ac_res" >&6; }
  1873. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1874. } # ac_fn_cxx_check_func
  1875. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1876. # ---------------------------------------------
  1877. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1878. # variable VAR accordingly.
  1879. ac_fn_cxx_check_type ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. $as_echo_n "checking for $2... " >&6; }
  1884. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1885. $as_echo_n "(cached) " >&6
  1886. else
  1887. eval "$3=no"
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $4
  1891. int
  1892. main ()
  1893. {
  1894. if (sizeof ($2))
  1895. return 0;
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_cxx_try_compile "$LINENO"; then :
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. $4
  1904. int
  1905. main ()
  1906. {
  1907. if (sizeof (($2)))
  1908. return 0;
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. if ac_fn_cxx_try_compile "$LINENO"; then :
  1914. else
  1915. eval "$3=yes"
  1916. fi
  1917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. fi
  1921. eval ac_res=\$$3
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1923. $as_echo "$ac_res" >&6; }
  1924. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1925. } # ac_fn_cxx_check_type
  1926. # ac_fn_c_find_intX_t LINENO BITS VAR
  1927. # -----------------------------------
  1928. # Finds a signed integer type with width BITS, setting cache variable VAR
  1929. # accordingly.
  1930. ac_fn_c_find_intX_t ()
  1931. {
  1932. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1934. $as_echo_n "checking for int$2_t... " >&6; }
  1935. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. eval "$3=no"
  1939. for ac_type in int$2_t 'int' 'long int' \
  1940. 'long long int' 'short int' 'signed char'; do
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. $ac_includes_default
  1944. int
  1945. main ()
  1946. {
  1947. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1948. test_array [0] = 0
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. if ac_fn_cxx_try_compile "$LINENO"; then :
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $ac_includes_default
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1961. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1962. test_array [0] = 0
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_cxx_try_compile "$LINENO"; then :
  1968. else
  1969. case $ac_type in #(
  1970. int$2_t) :
  1971. eval "$3=yes" ;; #(
  1972. *) :
  1973. eval "$3=\$ac_type" ;;
  1974. esac
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1979. eval as_val=\$$3
  1980. if test "x$as_val" = x""no; then :
  1981. else
  1982. break
  1983. fi
  1984. done
  1985. fi
  1986. eval ac_res=\$$3
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1988. $as_echo "$ac_res" >&6; }
  1989. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1990. } # ac_fn_c_find_intX_t
  1991. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1992. # ------------------------------------
  1993. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1994. # accordingly.
  1995. ac_fn_c_find_uintX_t ()
  1996. {
  1997. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1999. $as_echo_n "checking for uint$2_t... " >&6; }
  2000. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2001. $as_echo_n "(cached) " >&6
  2002. else
  2003. eval "$3=no"
  2004. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2005. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $ac_includes_default
  2009. int
  2010. main ()
  2011. {
  2012. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  2013. test_array [0] = 0
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. if ac_fn_cxx_try_compile "$LINENO"; then :
  2019. case $ac_type in #(
  2020. uint$2_t) :
  2021. eval "$3=yes" ;; #(
  2022. *) :
  2023. eval "$3=\$ac_type" ;;
  2024. esac
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. eval as_val=\$$3
  2028. if test "x$as_val" = x""no; then :
  2029. else
  2030. break
  2031. fi
  2032. done
  2033. fi
  2034. eval ac_res=\$$3
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2036. $as_echo "$ac_res" >&6; }
  2037. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2038. } # ac_fn_c_find_uintX_t
  2039. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2040. # ----------------------------------------------
  2041. # Tries to find the compile-time value of EXPR in a program that includes
  2042. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2043. # computed
  2044. ac_fn_cxx_compute_int ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. if test "$cross_compiling" = yes; then
  2048. # Depending upon the size, compute the lo and hi bounds.
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. int
  2053. main ()
  2054. {
  2055. static int test_array [1 - 2 * !(($2) >= 0)];
  2056. test_array [0] = 0
  2057. ;
  2058. return 0;
  2059. }
  2060. _ACEOF
  2061. if ac_fn_cxx_try_compile "$LINENO"; then :
  2062. ac_lo=0 ac_mid=0
  2063. while :; do
  2064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2065. /* end confdefs.h. */
  2066. $4
  2067. int
  2068. main ()
  2069. {
  2070. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2071. test_array [0] = 0
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_cxx_try_compile "$LINENO"; then :
  2077. ac_hi=$ac_mid; break
  2078. else
  2079. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2080. if test $ac_lo -le $ac_mid; then
  2081. ac_lo= ac_hi=
  2082. break
  2083. fi
  2084. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2087. done
  2088. else
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. $4
  2092. int
  2093. main ()
  2094. {
  2095. static int test_array [1 - 2 * !(($2) < 0)];
  2096. test_array [0] = 0
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_cxx_try_compile "$LINENO"; then :
  2102. ac_hi=-1 ac_mid=-1
  2103. while :; do
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $4
  2107. int
  2108. main ()
  2109. {
  2110. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2111. test_array [0] = 0
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_cxx_try_compile "$LINENO"; then :
  2117. ac_lo=$ac_mid; break
  2118. else
  2119. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2120. if test $ac_mid -le $ac_hi; then
  2121. ac_lo= ac_hi=
  2122. break
  2123. fi
  2124. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2125. fi
  2126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2127. done
  2128. else
  2129. ac_lo= ac_hi=
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2134. # Binary search between lo and hi bounds.
  2135. while test "x$ac_lo" != "x$ac_hi"; do
  2136. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2138. /* end confdefs.h. */
  2139. $4
  2140. int
  2141. main ()
  2142. {
  2143. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2144. test_array [0] = 0
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_cxx_try_compile "$LINENO"; then :
  2150. ac_hi=$ac_mid
  2151. else
  2152. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. done
  2156. case $ac_lo in #((
  2157. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2158. '') ac_retval=1 ;;
  2159. esac
  2160. else
  2161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2162. /* end confdefs.h. */
  2163. $4
  2164. static long int longval () { return $2; }
  2165. static unsigned long int ulongval () { return $2; }
  2166. #include <stdio.h>
  2167. #include <stdlib.h>
  2168. int
  2169. main ()
  2170. {
  2171. FILE *f = fopen ("conftest.val", "w");
  2172. if (! f)
  2173. return 1;
  2174. if (($2) < 0)
  2175. {
  2176. long int i = longval ();
  2177. if (i != ($2))
  2178. return 1;
  2179. fprintf (f, "%ld", i);
  2180. }
  2181. else
  2182. {
  2183. unsigned long int i = ulongval ();
  2184. if (i != ($2))
  2185. return 1;
  2186. fprintf (f, "%lu", i);
  2187. }
  2188. /* Do not output a trailing newline, as this causes \r\n confusion
  2189. on some platforms. */
  2190. return ferror (f) || fclose (f) != 0;
  2191. ;
  2192. return 0;
  2193. }
  2194. _ACEOF
  2195. if ac_fn_cxx_try_run "$LINENO"; then :
  2196. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2197. else
  2198. ac_retval=1
  2199. fi
  2200. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2201. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2202. rm -f conftest.val
  2203. fi
  2204. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2205. return $ac_retval
  2206. } # ac_fn_cxx_compute_int
  2207. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2208. # ------------------------------------------------------
  2209. # Tries to find if the field MEMBER exists in type AGGR, after including
  2210. # INCLUDES, setting cache variable VAR accordingly.
  2211. ac_fn_cxx_check_member ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2215. $as_echo_n "checking for $2.$3... " >&6; }
  2216. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main ()
  2224. {
  2225. static $2 ac_aggr;
  2226. if (ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_cxx_try_compile "$LINENO"; then :
  2233. eval "$4=yes"
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main ()
  2240. {
  2241. static $2 ac_aggr;
  2242. if (sizeof ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_cxx_try_compile "$LINENO"; then :
  2249. eval "$4=yes"
  2250. else
  2251. eval "$4=no"
  2252. fi
  2253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2254. fi
  2255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2256. fi
  2257. eval ac_res=\$$4
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2259. $as_echo "$ac_res" >&6; }
  2260. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2261. } # ac_fn_cxx_check_member
  2262. cat >config.log <<_ACEOF
  2263. This file contains any messages produced by compilers while
  2264. running configure, to aid debugging if configure makes a mistake.
  2265. It was created by aria2 $as_me 1.6.1, which was
  2266. generated by GNU Autoconf 2.64. Invocation command line was
  2267. $ $0 $@
  2268. _ACEOF
  2269. exec 5>>config.log
  2270. {
  2271. cat <<_ASUNAME
  2272. ## --------- ##
  2273. ## Platform. ##
  2274. ## --------- ##
  2275. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2276. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2277. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2278. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2279. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2280. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2281. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2282. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2283. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2284. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2285. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2286. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2287. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2288. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2289. _ASUNAME
  2290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2291. for as_dir in $PATH
  2292. do
  2293. IFS=$as_save_IFS
  2294. test -z "$as_dir" && as_dir=.
  2295. $as_echo "PATH: $as_dir"
  2296. done
  2297. IFS=$as_save_IFS
  2298. } >&5
  2299. cat >&5 <<_ACEOF
  2300. ## ----------- ##
  2301. ## Core tests. ##
  2302. ## ----------- ##
  2303. _ACEOF
  2304. # Keep a trace of the command line.
  2305. # Strip out --no-create and --no-recursion so they do not pile up.
  2306. # Strip out --silent because we don't want to record it for future runs.
  2307. # Also quote any args containing shell meta-characters.
  2308. # Make two passes to allow for proper duplicate-argument suppression.
  2309. ac_configure_args=
  2310. ac_configure_args0=
  2311. ac_configure_args1=
  2312. ac_must_keep_next=false
  2313. for ac_pass in 1 2
  2314. do
  2315. for ac_arg
  2316. do
  2317. case $ac_arg in
  2318. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2319. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2320. | -silent | --silent | --silen | --sile | --sil)
  2321. continue ;;
  2322. *\'*)
  2323. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2324. esac
  2325. case $ac_pass in
  2326. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2327. 2)
  2328. as_fn_append ac_configure_args1 " '$ac_arg'"
  2329. if test $ac_must_keep_next = true; then
  2330. ac_must_keep_next=false # Got value, back to normal.
  2331. else
  2332. case $ac_arg in
  2333. *=* | --config-cache | -C | -disable-* | --disable-* \
  2334. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2335. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2336. | -with-* | --with-* | -without-* | --without-* | --x)
  2337. case "$ac_configure_args0 " in
  2338. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2339. esac
  2340. ;;
  2341. -* ) ac_must_keep_next=true ;;
  2342. esac
  2343. fi
  2344. as_fn_append ac_configure_args " '$ac_arg'"
  2345. ;;
  2346. esac
  2347. done
  2348. done
  2349. { ac_configure_args0=; unset ac_configure_args0;}
  2350. { ac_configure_args1=; unset ac_configure_args1;}
  2351. # When interrupted or exit'd, cleanup temporary files, and complete
  2352. # config.log. We remove comments because anyway the quotes in there
  2353. # would cause problems or look ugly.
  2354. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2355. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2356. trap 'exit_status=$?
  2357. # Save into config.log some information that might help in debugging.
  2358. {
  2359. echo
  2360. cat <<\_ASBOX
  2361. ## ---------------- ##
  2362. ## Cache variables. ##
  2363. ## ---------------- ##
  2364. _ASBOX
  2365. echo
  2366. # The following way of writing the cache mishandles newlines in values,
  2367. (
  2368. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2369. eval ac_val=\$$ac_var
  2370. case $ac_val in #(
  2371. *${as_nl}*)
  2372. case $ac_var in #(
  2373. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2374. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2375. esac
  2376. case $ac_var in #(
  2377. _ | IFS | as_nl) ;; #(
  2378. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2379. *) { eval $ac_var=; unset $ac_var;} ;;
  2380. esac ;;
  2381. esac
  2382. done
  2383. (set) 2>&1 |
  2384. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2385. *${as_nl}ac_space=\ *)
  2386. sed -n \
  2387. "s/'\''/'\''\\\\'\'''\''/g;
  2388. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2389. ;; #(
  2390. *)
  2391. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2392. ;;
  2393. esac |
  2394. sort
  2395. )
  2396. echo
  2397. cat <<\_ASBOX
  2398. ## ----------------- ##
  2399. ## Output variables. ##
  2400. ## ----------------- ##
  2401. _ASBOX
  2402. echo
  2403. for ac_var in $ac_subst_vars
  2404. do
  2405. eval ac_val=\$$ac_var
  2406. case $ac_val in
  2407. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2408. esac
  2409. $as_echo "$ac_var='\''$ac_val'\''"
  2410. done | sort
  2411. echo
  2412. if test -n "$ac_subst_files"; then
  2413. cat <<\_ASBOX
  2414. ## ------------------- ##
  2415. ## File substitutions. ##
  2416. ## ------------------- ##
  2417. _ASBOX
  2418. echo
  2419. for ac_var in $ac_subst_files
  2420. do
  2421. eval ac_val=\$$ac_var
  2422. case $ac_val in
  2423. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2424. esac
  2425. $as_echo "$ac_var='\''$ac_val'\''"
  2426. done | sort
  2427. echo
  2428. fi
  2429. if test -s confdefs.h; then
  2430. cat <<\_ASBOX
  2431. ## ----------- ##
  2432. ## confdefs.h. ##
  2433. ## ----------- ##
  2434. _ASBOX
  2435. echo
  2436. cat confdefs.h
  2437. echo
  2438. fi
  2439. test "$ac_signal" != 0 &&
  2440. $as_echo "$as_me: caught signal $ac_signal"
  2441. $as_echo "$as_me: exit $exit_status"
  2442. } >&5
  2443. rm -f core *.core core.conftest.* &&
  2444. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2445. exit $exit_status
  2446. ' 0
  2447. for ac_signal in 1 2 13 15; do
  2448. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2449. done
  2450. ac_signal=0
  2451. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2452. rm -f -r conftest* confdefs.h
  2453. $as_echo "/* confdefs.h */" > confdefs.h
  2454. # Predefined preprocessor variables.
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_NAME "$PACKAGE_NAME"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2463. _ACEOF
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_STRING "$PACKAGE_STRING"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_URL "$PACKAGE_URL"
  2472. _ACEOF
  2473. # Let the site file select an alternate cache file if it wants to.
  2474. # Prefer an explicitly selected file to automatically selected ones.
  2475. ac_site_file1=NONE
  2476. ac_site_file2=NONE
  2477. if test -n "$CONFIG_SITE"; then
  2478. ac_site_file1=$CONFIG_SITE
  2479. elif test "x$prefix" != xNONE; then
  2480. ac_site_file1=$prefix/share/config.site
  2481. ac_site_file2=$prefix/etc/config.site
  2482. else
  2483. ac_site_file1=$ac_default_prefix/share/config.site
  2484. ac_site_file2=$ac_default_prefix/etc/config.site
  2485. fi
  2486. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2487. do
  2488. test "x$ac_site_file" = xNONE && continue
  2489. if test -r "$ac_site_file"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2491. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2492. sed 's/^/| /' "$ac_site_file" >&5
  2493. . "$ac_site_file"
  2494. fi
  2495. done
  2496. if test -r "$cache_file"; then
  2497. # Some versions of bash will fail to source /dev/null (special
  2498. # files actually), so we avoid doing that.
  2499. if test -f "$cache_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2501. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2502. case $cache_file in
  2503. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2504. *) . "./$cache_file";;
  2505. esac
  2506. fi
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2509. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2510. >$cache_file
  2511. fi
  2512. gt_needs="$gt_needs "
  2513. as_fn_append ac_header_list " sys/time.h"
  2514. as_fn_append ac_header_list " unistd.h"
  2515. as_fn_append ac_func_list " alarm"
  2516. # Check that the precious variables saved in the cache have kept the same
  2517. # value.
  2518. ac_cache_corrupted=false
  2519. for ac_var in $ac_precious_vars; do
  2520. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2521. eval ac_new_set=\$ac_env_${ac_var}_set
  2522. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2523. eval ac_new_val=\$ac_env_${ac_var}_value
  2524. case $ac_old_set,$ac_new_set in
  2525. set,)
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2528. ac_cache_corrupted=: ;;
  2529. ,set)
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2531. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2532. ac_cache_corrupted=: ;;
  2533. ,);;
  2534. *)
  2535. if test "x$ac_old_val" != "x$ac_new_val"; then
  2536. # differences in whitespace do not lead to failure.
  2537. ac_old_val_w=`echo x $ac_old_val`
  2538. ac_new_val_w=`echo x $ac_new_val`
  2539. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2542. ac_cache_corrupted=:
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2545. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2546. eval $ac_var=\$ac_old_val
  2547. fi
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2549. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2551. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2552. fi;;
  2553. esac
  2554. # Pass precious variables to config.status.
  2555. if test "$ac_new_set" = set; then
  2556. case $ac_new_val in
  2557. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2558. *) ac_arg=$ac_var=$ac_new_val ;;
  2559. esac
  2560. case " $ac_configure_args " in
  2561. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2562. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2563. esac
  2564. fi
  2565. done
  2566. if $ac_cache_corrupted; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2568. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2570. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2571. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2572. fi
  2573. ## -------------------- ##
  2574. ## Main body of script. ##
  2575. ## -------------------- ##
  2576. ac_ext=c
  2577. ac_cpp='$CPP $CPPFLAGS'
  2578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2581. ac_aux_dir=
  2582. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2583. for ac_t in install-sh install.sh shtool; do
  2584. if test -f "$ac_dir/$ac_t"; then
  2585. ac_aux_dir=$ac_dir
  2586. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2587. break 2
  2588. fi
  2589. done
  2590. done
  2591. if test -z "$ac_aux_dir"; then
  2592. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2593. fi
  2594. # These three variables are undocumented and unsupported,
  2595. # and are intended to be withdrawn in a future Autoconf release.
  2596. # They can cause serious problems if a builder's source tree is in a directory
  2597. # whose full name contains unusual characters.
  2598. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2599. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2600. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2601. # Make sure we can run config.sub.
  2602. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2603. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2605. $as_echo_n "checking build system type... " >&6; }
  2606. if test "${ac_cv_build+set}" = set; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. ac_build_alias=$build_alias
  2610. test "x$ac_build_alias" = x &&
  2611. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2612. test "x$ac_build_alias" = x &&
  2613. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2614. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2615. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2616. fi
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2618. $as_echo "$ac_cv_build" >&6; }
  2619. case $ac_cv_build in
  2620. *-*-*) ;;
  2621. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2622. esac
  2623. build=$ac_cv_build
  2624. ac_save_IFS=$IFS; IFS='-'
  2625. set x $ac_cv_build
  2626. shift
  2627. build_cpu=$1
  2628. build_vendor=$2
  2629. shift; shift
  2630. # Remember, the first character of IFS is used to create $*,
  2631. # except with old shells:
  2632. build_os=$*
  2633. IFS=$ac_save_IFS
  2634. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2636. $as_echo_n "checking host system type... " >&6; }
  2637. if test "${ac_cv_host+set}" = set; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if test "x$host_alias" = x; then
  2641. ac_cv_host=$ac_cv_build
  2642. else
  2643. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2644. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2645. fi
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2648. $as_echo "$ac_cv_host" >&6; }
  2649. case $ac_cv_host in
  2650. *-*-*) ;;
  2651. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2652. esac
  2653. host=$ac_cv_host
  2654. ac_save_IFS=$IFS; IFS='-'
  2655. set x $ac_cv_host
  2656. shift
  2657. host_cpu=$1
  2658. host_vendor=$2
  2659. shift; shift
  2660. # Remember, the first character of IFS is used to create $*,
  2661. # except with old shells:
  2662. host_os=$*
  2663. IFS=$ac_save_IFS
  2664. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2666. $as_echo_n "checking target system type... " >&6; }
  2667. if test "${ac_cv_target+set}" = set; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test "x$target_alias" = x; then
  2671. ac_cv_target=$ac_cv_host
  2672. else
  2673. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2674. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2678. $as_echo "$ac_cv_target" >&6; }
  2679. case $ac_cv_target in
  2680. *-*-*) ;;
  2681. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2682. esac
  2683. target=$ac_cv_target
  2684. ac_save_IFS=$IFS; IFS='-'
  2685. set x $ac_cv_target
  2686. shift
  2687. target_cpu=$1
  2688. target_vendor=$2
  2689. shift; shift
  2690. # Remember, the first character of IFS is used to create $*,
  2691. # except with old shells:
  2692. target_os=$*
  2693. IFS=$ac_save_IFS
  2694. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2695. # The aliases save the names the user supplied, while $host etc.
  2696. # will get canonicalized.
  2697. test -n "$target_alias" &&
  2698. test "$program_prefix$program_suffix$program_transform_name" = \
  2699. NONENONEs,x,x, &&
  2700. program_prefix=${target_alias}-
  2701. am__api_version='1.11'
  2702. # Find a good install program. We prefer a C program (faster),
  2703. # so one script is as good as another. But avoid the broken or
  2704. # incompatible versions:
  2705. # SysV /etc/install, /usr/sbin/install
  2706. # SunOS /usr/etc/install
  2707. # IRIX /sbin/install
  2708. # AIX /bin/install
  2709. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2710. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2711. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2712. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2713. # OS/2's system install, which has a completely different semantic
  2714. # ./install, which can be erroneously created by make from ./install.sh.
  2715. # Reject install programs that cannot install multiple files.
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2717. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2718. if test -z "$INSTALL"; then
  2719. if test "${ac_cv_path_install+set}" = set; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. # Account for people who put trailing slashes in PATH elements.
  2728. case $as_dir/ in #((
  2729. ./ | .// | /[cC]/* | \
  2730. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2731. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2732. /usr/ucb/* ) ;;
  2733. *)
  2734. # OSF1 and SCO ODT 3.0 have their own names for install.
  2735. # Don't use installbsd from OSF since it installs stuff as root
  2736. # by default.
  2737. for ac_prog in ginstall scoinst install; do
  2738. for ac_exec_ext in '' $ac_executable_extensions; do
  2739. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2740. if test $ac_prog = install &&
  2741. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2742. # AIX install. It has an incompatible calling convention.
  2743. :
  2744. elif test $ac_prog = install &&
  2745. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2746. # program-specific install script used by HP pwplus--don't use.
  2747. :
  2748. else
  2749. rm -rf conftest.one conftest.two conftest.dir
  2750. echo one > conftest.one
  2751. echo two > conftest.two
  2752. mkdir conftest.dir
  2753. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2754. test -s conftest.one && test -s conftest.two &&
  2755. test -s conftest.dir/conftest.one &&
  2756. test -s conftest.dir/conftest.two
  2757. then
  2758. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2759. break 3
  2760. fi
  2761. fi
  2762. fi
  2763. done
  2764. done
  2765. ;;
  2766. esac
  2767. done
  2768. IFS=$as_save_IFS
  2769. rm -rf conftest.one conftest.two conftest.dir
  2770. fi
  2771. if test "${ac_cv_path_install+set}" = set; then
  2772. INSTALL=$ac_cv_path_install
  2773. else
  2774. # As a last resort, use the slow shell script. Don't cache a
  2775. # value for INSTALL within a source directory, because that will
  2776. # break other packages using the cache if that directory is
  2777. # removed, or if the value is a relative name.
  2778. INSTALL=$ac_install_sh
  2779. fi
  2780. fi
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2782. $as_echo "$INSTALL" >&6; }
  2783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2784. # It thinks the first close brace ends the variable substitution.
  2785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2789. $as_echo_n "checking whether build environment is sane... " >&6; }
  2790. # Just in case
  2791. sleep 1
  2792. echo timestamp > conftest.file
  2793. # Reject unsafe characters in $srcdir or the absolute working directory
  2794. # name. Accept space and tab only in the latter.
  2795. am_lf='
  2796. '
  2797. case `pwd` in
  2798. *[\\\"\#\$\&\'\`$am_lf]*)
  2799. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2800. esac
  2801. case $srcdir in
  2802. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2803. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2804. esac
  2805. # Do `set' in a subshell so we don't clobber the current shell's
  2806. # arguments. Must try -L first in case configure is actually a
  2807. # symlink; some systems play weird games with the mod time of symlinks
  2808. # (eg FreeBSD returns the mod time of the symlink's containing
  2809. # directory).
  2810. if (
  2811. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2812. if test "$*" = "X"; then
  2813. # -L didn't work.
  2814. set X `ls -t "$srcdir/configure" conftest.file`
  2815. fi
  2816. rm -f conftest.file
  2817. if test "$*" != "X $srcdir/configure conftest.file" \
  2818. && test "$*" != "X conftest.file $srcdir/configure"; then
  2819. # If neither matched, then we have a broken ls. This can happen
  2820. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2821. # broken ls alias from the environment. This has actually
  2822. # happened. Such a system could not be considered "sane".
  2823. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2824. alias in your environment" "$LINENO" 5
  2825. fi
  2826. test "$2" = conftest.file
  2827. )
  2828. then
  2829. # Ok.
  2830. :
  2831. else
  2832. as_fn_error "newly created file is older than distributed files!
  2833. Check your system clock" "$LINENO" 5
  2834. fi
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2836. $as_echo "yes" >&6; }
  2837. test "$program_prefix" != NONE &&
  2838. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2839. # Use a double $ so make ignores it.
  2840. test "$program_suffix" != NONE &&
  2841. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2842. # Double any \ or $.
  2843. # By default was `s,x,x', remove it if useless.
  2844. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2845. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2846. # expand $ac_aux_dir to an absolute path
  2847. am_aux_dir=`cd $ac_aux_dir && pwd`
  2848. if test x"${MISSING+set}" != xset; then
  2849. case $am_aux_dir in
  2850. *\ * | *\ *)
  2851. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2852. *)
  2853. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2854. esac
  2855. fi
  2856. # Use eval to expand $SHELL
  2857. if eval "$MISSING --run true"; then
  2858. am_missing_run="$MISSING --run "
  2859. else
  2860. am_missing_run=
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2862. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2863. fi
  2864. if test x"${install_sh}" != xset; then
  2865. case $am_aux_dir in
  2866. *\ * | *\ *)
  2867. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2868. *)
  2869. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2870. esac
  2871. fi
  2872. # Installed binaries are usually stripped using `strip' when the user
  2873. # run `make install-strip'. However `strip' might not be the right
  2874. # tool to use in cross-compilation environments, therefore Automake
  2875. # will honor the `STRIP' environment variable to overrule this program.
  2876. if test "$cross_compiling" != no; then
  2877. if test -n "$ac_tool_prefix"; then
  2878. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2879. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2881. $as_echo_n "checking for $ac_word... " >&6; }
  2882. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. if test -n "$STRIP"; then
  2886. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2887. else
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2895. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2897. break 2
  2898. fi
  2899. done
  2900. done
  2901. IFS=$as_save_IFS
  2902. fi
  2903. fi
  2904. STRIP=$ac_cv_prog_STRIP
  2905. if test -n "$STRIP"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2907. $as_echo "$STRIP" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. fi
  2913. if test -z "$ac_cv_prog_STRIP"; then
  2914. ac_ct_STRIP=$STRIP
  2915. # Extract the first word of "strip", so it can be a program name with args.
  2916. set dummy strip; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$ac_ct_STRIP"; then
  2923. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2924. else
  2925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2926. for as_dir in $PATH
  2927. do
  2928. IFS=$as_save_IFS
  2929. test -z "$as_dir" && as_dir=.
  2930. for ac_exec_ext in '' $ac_executable_extensions; do
  2931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2932. ac_cv_prog_ac_ct_STRIP="strip"
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2934. break 2
  2935. fi
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939. fi
  2940. fi
  2941. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2942. if test -n "$ac_ct_STRIP"; then
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2944. $as_echo "$ac_ct_STRIP" >&6; }
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. fi
  2949. if test "x$ac_ct_STRIP" = x; then
  2950. STRIP=":"
  2951. else
  2952. case $cross_compiling:$ac_tool_warned in
  2953. yes:)
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2956. ac_tool_warned=yes ;;
  2957. esac
  2958. STRIP=$ac_ct_STRIP
  2959. fi
  2960. else
  2961. STRIP="$ac_cv_prog_STRIP"
  2962. fi
  2963. fi
  2964. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2966. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2967. if test -z "$MKDIR_P"; then
  2968. if test "${ac_cv_path_mkdir+set}" = set; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2973. do
  2974. IFS=$as_save_IFS
  2975. test -z "$as_dir" && as_dir=.
  2976. for ac_prog in mkdir gmkdir; do
  2977. for ac_exec_ext in '' $ac_executable_extensions; do
  2978. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2979. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2980. 'mkdir (GNU coreutils) '* | \
  2981. 'mkdir (coreutils) '* | \
  2982. 'mkdir (fileutils) '4.1*)
  2983. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2984. break 3;;
  2985. esac
  2986. done
  2987. done
  2988. done
  2989. IFS=$as_save_IFS
  2990. fi
  2991. if test "${ac_cv_path_mkdir+set}" = set; then
  2992. MKDIR_P="$ac_cv_path_mkdir -p"
  2993. else
  2994. # As a last resort, use the slow shell script. Don't cache a
  2995. # value for MKDIR_P within a source directory, because that will
  2996. # break other packages using the cache if that directory is
  2997. # removed, or if the value is a relative name.
  2998. test -d ./--version && rmdir ./--version
  2999. MKDIR_P="$ac_install_sh -d"
  3000. fi
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3003. $as_echo "$MKDIR_P" >&6; }
  3004. mkdir_p="$MKDIR_P"
  3005. case $mkdir_p in
  3006. [\\/$]* | ?:[\\/]*) ;;
  3007. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3008. esac
  3009. for ac_prog in gawk mawk nawk awk
  3010. do
  3011. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3012. set dummy $ac_prog; ac_word=$2
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3014. $as_echo_n "checking for $ac_word... " >&6; }
  3015. if test "${ac_cv_prog_AWK+set}" = set; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. if test -n "$AWK"; then
  3019. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3020. else
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024. IFS=$as_save_IFS
  3025. test -z "$as_dir" && as_dir=.
  3026. for ac_exec_ext in '' $ac_executable_extensions; do
  3027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3028. ac_cv_prog_AWK="$ac_prog"
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3030. break 2
  3031. fi
  3032. done
  3033. done
  3034. IFS=$as_save_IFS
  3035. fi
  3036. fi
  3037. AWK=$ac_cv_prog_AWK
  3038. if test -n "$AWK"; then
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3040. $as_echo "$AWK" >&6; }
  3041. else
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3043. $as_echo "no" >&6; }
  3044. fi
  3045. test -n "$AWK" && break
  3046. done
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3048. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3049. set x ${MAKE-make}
  3050. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3051. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3052. $as_echo_n "(cached) " >&6
  3053. else
  3054. cat >conftest.make <<\_ACEOF
  3055. SHELL = /bin/sh
  3056. all:
  3057. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3058. _ACEOF
  3059. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3060. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3061. *@@@%%%=?*=@@@%%%*)
  3062. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3063. *)
  3064. eval ac_cv_prog_make_${ac_make}_set=no;;
  3065. esac
  3066. rm -f conftest.make
  3067. fi
  3068. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3070. $as_echo "yes" >&6; }
  3071. SET_MAKE=
  3072. else
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3074. $as_echo "no" >&6; }
  3075. SET_MAKE="MAKE=${MAKE-make}"
  3076. fi
  3077. rm -rf .tst 2>/dev/null
  3078. mkdir .tst 2>/dev/null
  3079. if test -d .tst; then
  3080. am__leading_dot=.
  3081. else
  3082. am__leading_dot=_
  3083. fi
  3084. rmdir .tst 2>/dev/null
  3085. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3086. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3087. # is not polluted with repeated "-I."
  3088. am__isrc=' -I$(srcdir)'
  3089. # test to see if srcdir already configured
  3090. if test -f $srcdir/config.status; then
  3091. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3092. fi
  3093. fi
  3094. # test whether we have cygpath
  3095. if test -z "$CYGPATH_W"; then
  3096. if (cygpath --version) >/dev/null 2>/dev/null; then
  3097. CYGPATH_W='cygpath -w'
  3098. else
  3099. CYGPATH_W=echo
  3100. fi
  3101. fi
  3102. # Define the identity of the package.
  3103. PACKAGE='aria2'
  3104. VERSION='1.6.1'
  3105. cat >>confdefs.h <<_ACEOF
  3106. #define PACKAGE "$PACKAGE"
  3107. _ACEOF
  3108. cat >>confdefs.h <<_ACEOF
  3109. #define VERSION "$VERSION"
  3110. _ACEOF
  3111. # Some tools Automake needs.
  3112. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3113. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3114. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3115. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3116. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3117. # We need awk for the "check" target. The system "awk" is bad on
  3118. # some platforms.
  3119. # Always define AMTAR for backward compatibility.
  3120. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3121. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3122. # Check whether --with-cppunit-prefix was given.
  3123. if test "${with_cppunit_prefix+set}" = set; then :
  3124. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3125. else
  3126. cppunit_config_prefix=""
  3127. fi
  3128. # Check whether --with-cppunit-exec-prefix was given.
  3129. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3130. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3131. else
  3132. cppunit_config_exec_prefix=""
  3133. fi
  3134. if test x$cppunit_config_exec_prefix != x ; then
  3135. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3136. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3137. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3138. fi
  3139. fi
  3140. if test x$cppunit_config_prefix != x ; then
  3141. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3142. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3143. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3144. fi
  3145. fi
  3146. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3147. set dummy cppunit-config; ac_word=$2
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3149. $as_echo_n "checking for $ac_word... " >&6; }
  3150. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. case $CPPUNIT_CONFIG in
  3154. [\\/]* | ?:[\\/]*)
  3155. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3156. ;;
  3157. *)
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3165. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. IFS=$as_save_IFS
  3172. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3173. ;;
  3174. esac
  3175. fi
  3176. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3177. if test -n "$CPPUNIT_CONFIG"; then
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3179. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3180. else
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. fi
  3184. cppunit_version_min=1.10.2
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3186. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3187. no_cppunit=""
  3188. if test "$CPPUNIT_CONFIG" = "no" ; then
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3190. $as_echo "no" >&6; }
  3191. no_cppunit=yes
  3192. else
  3193. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3194. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3195. cppunit_version=`$CPPUNIT_CONFIG --version`
  3196. cppunit_major_version=`echo $cppunit_version | \
  3197. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3198. cppunit_minor_version=`echo $cppunit_version | \
  3199. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3200. cppunit_micro_version=`echo $cppunit_version | \
  3201. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3202. cppunit_major_min=`echo $cppunit_version_min | \
  3203. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3204. if test "x${cppunit_major_min}" = "x" ; then
  3205. cppunit_major_min=0
  3206. fi
  3207. cppunit_minor_min=`echo $cppunit_version_min | \
  3208. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3209. if test "x${cppunit_minor_min}" = "x" ; then
  3210. cppunit_minor_min=0
  3211. fi
  3212. cppunit_micro_min=`echo $cppunit_version_min | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3214. if test "x${cppunit_micro_min}" = "x" ; then
  3215. cppunit_micro_min=0
  3216. fi
  3217. cppunit_version_proper=`expr \
  3218. $cppunit_major_version \> $cppunit_major_min \| \
  3219. $cppunit_major_version \= $cppunit_major_min \& \
  3220. $cppunit_minor_version \> $cppunit_minor_min \| \
  3221. $cppunit_major_version \= $cppunit_major_min \& \
  3222. $cppunit_minor_version \= $cppunit_minor_min \& \
  3223. $cppunit_micro_version \>= $cppunit_micro_min `
  3224. if test "$cppunit_version_proper" = "1" ; then
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3226. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3227. else
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3229. $as_echo "no" >&6; }
  3230. no_cppunit=yes
  3231. fi
  3232. fi
  3233. if test "x$no_cppunit" = x ; then
  3234. :
  3235. else
  3236. CPPUNIT_CFLAGS=""
  3237. CPPUNIT_LIBS=""
  3238. :
  3239. fi
  3240. ac_config_headers="$ac_config_headers config.h"
  3241. case "$target" in
  3242. *mingw*|*cygwin*)
  3243. WINSOCK_LIBS="-lws2_32 -lpthread"
  3244. ;;
  3245. esac
  3246. cat >>confdefs.h <<_ACEOF
  3247. #define TARGET "$target"
  3248. _ACEOF
  3249. # Set localedir
  3250. localedir=${datadir}/locale
  3251. # Checks for arguments.
  3252. # Check whether --with-gnutls was given.
  3253. if test "${with_gnutls+set}" = set; then :
  3254. withval=$with_gnutls; with_gnutls=$withval
  3255. else
  3256. with_gnutls=yes
  3257. fi
  3258. # Check whether --with-openssl was given.
  3259. if test "${with_openssl+set}" = set; then :
  3260. withval=$with_openssl; with_openssl=$withval
  3261. else
  3262. with_openssl=yes
  3263. fi
  3264. # Check whether --with-sqlite3 was given.
  3265. if test "${with_sqlite3+set}" = set; then :
  3266. withval=$with_sqlite3; with_sqlite3=$withval
  3267. else
  3268. with_sqlite3=yes
  3269. fi
  3270. # Check whether --with-libxml2 was given.
  3271. if test "${with_libxml2+set}" = set; then :
  3272. withval=$with_libxml2; with_libxml2=$withval
  3273. else
  3274. with_libxml2=yes
  3275. fi
  3276. # Check whether --with-libexpat was given.
  3277. if test "${with_libexpat+set}" = set; then :
  3278. withval=$with_libexpat; with_libexpat=$withval
  3279. else
  3280. with_libexpat=yes
  3281. fi
  3282. # Check whether --with-libcares was given.
  3283. if test "${with_libcares+set}" = set; then :
  3284. withval=$with_libcares; with_libcares=$withval
  3285. else
  3286. with_libcares=yes
  3287. fi
  3288. # Check whether --with-libz was given.
  3289. if test "${with_libz+set}" = set; then :
  3290. withval=$with_libz; with_libz=$withval
  3291. else
  3292. with_libz=yes
  3293. fi
  3294. # Check whether --enable-bittorrent was given.
  3295. if test "${enable_bittorrent+set}" = set; then :
  3296. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  3297. else
  3298. enable_bittorrent=yes
  3299. fi
  3300. # Check whether --enable-metalink was given.
  3301. if test "${enable_metalink+set}" = set; then :
  3302. enableval=$enable_metalink; enable_metalink=$enableval
  3303. else
  3304. enable_metalink=yes
  3305. fi
  3306. # Check whether --enable-epoll was given.
  3307. if test "${enable_epoll+set}" = set; then :
  3308. enableval=$enable_epoll; enable_epoll=$enableval
  3309. else
  3310. enable_epoll=yes
  3311. fi
  3312. # Check whether --with-ca-bundle was given.
  3313. if test "${with_ca_bundle+set}" = set; then :
  3314. withval=$with_ca_bundle; ca_bundle=$withval
  3315. else
  3316. ca_bundle=""
  3317. fi
  3318. # Checks for programs.
  3319. ac_ext=cpp
  3320. ac_cpp='$CXXCPP $CPPFLAGS'
  3321. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3322. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3323. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3324. if test -z "$CXX"; then
  3325. if test -n "$CCC"; then
  3326. CXX=$CCC
  3327. else
  3328. if test -n "$ac_tool_prefix"; then
  3329. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3330. do
  3331. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3332. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. $as_echo_n "checking for $ac_word... " >&6; }
  3335. if test "${ac_cv_prog_CXX+set}" = set; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. if test -n "$CXX"; then
  3339. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3340. else
  3341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3342. for as_dir in $PATH
  3343. do
  3344. IFS=$as_save_IFS
  3345. test -z "$as_dir" && as_dir=.
  3346. for ac_exec_ext in '' $ac_executable_extensions; do
  3347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3348. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3350. break 2
  3351. fi
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. fi
  3356. fi
  3357. CXX=$ac_cv_prog_CXX
  3358. if test -n "$CXX"; then
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3360. $as_echo "$CXX" >&6; }
  3361. else
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3363. $as_echo "no" >&6; }
  3364. fi
  3365. test -n "$CXX" && break
  3366. done
  3367. fi
  3368. if test -z "$CXX"; then
  3369. ac_ct_CXX=$CXX
  3370. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3371. do
  3372. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3373. set dummy $ac_prog; ac_word=$2
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3375. $as_echo_n "checking for $ac_word... " >&6; }
  3376. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. if test -n "$ac_ct_CXX"; then
  3380. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3381. else
  3382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3383. for as_dir in $PATH
  3384. do
  3385. IFS=$as_save_IFS
  3386. test -z "$as_dir" && as_dir=.
  3387. for ac_exec_ext in '' $ac_executable_extensions; do
  3388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3389. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3391. break 2
  3392. fi
  3393. done
  3394. done
  3395. IFS=$as_save_IFS
  3396. fi
  3397. fi
  3398. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3399. if test -n "$ac_ct_CXX"; then
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3401. $as_echo "$ac_ct_CXX" >&6; }
  3402. else
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3404. $as_echo "no" >&6; }
  3405. fi
  3406. test -n "$ac_ct_CXX" && break
  3407. done
  3408. if test "x$ac_ct_CXX" = x; then
  3409. CXX="g++"
  3410. else
  3411. case $cross_compiling:$ac_tool_warned in
  3412. yes:)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3415. ac_tool_warned=yes ;;
  3416. esac
  3417. CXX=$ac_ct_CXX
  3418. fi
  3419. fi
  3420. fi
  3421. fi
  3422. # Provide some information about the compiler.
  3423. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3424. set X $ac_compile
  3425. ac_compiler=$2
  3426. for ac_option in --version -v -V -qversion; do
  3427. { { ac_try="$ac_compiler $ac_option >&5"
  3428. case "(($ac_try" in
  3429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3430. *) ac_try_echo=$ac_try;;
  3431. esac
  3432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3433. $as_echo "$ac_try_echo"; } >&5
  3434. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3435. ac_status=$?
  3436. if test -s conftest.err; then
  3437. sed '10a\
  3438. ... rest of stderr output deleted ...
  3439. 10q' conftest.err >conftest.er1
  3440. cat conftest.er1 >&5
  3441. rm -f conftest.er1 conftest.err
  3442. fi
  3443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3444. test $ac_status = 0; }
  3445. done
  3446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end confdefs.h. */
  3448. #include <stdio.h>
  3449. int
  3450. main ()
  3451. {
  3452. FILE *f = fopen ("conftest.out", "w");
  3453. return ferror (f) || fclose (f) != 0;
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. ac_clean_files_save=$ac_clean_files
  3459. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3460. # Try to create an executable without -o first, disregard a.out.
  3461. # It will help us diagnose broken compilers, and finding out an intuition
  3462. # of exeext.
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3464. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3465. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3466. # The possible output files:
  3467. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3468. ac_rmfiles=
  3469. for ac_file in $ac_files
  3470. do
  3471. case $ac_file in
  3472. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3473. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3474. esac
  3475. done
  3476. rm -f $ac_rmfiles
  3477. if { { ac_try="$ac_link_default"
  3478. case "(($ac_try" in
  3479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3480. *) ac_try_echo=$ac_try;;
  3481. esac
  3482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3483. $as_echo "$ac_try_echo"; } >&5
  3484. (eval "$ac_link_default") 2>&5
  3485. ac_status=$?
  3486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3487. test $ac_status = 0; }; then :
  3488. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3489. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3490. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3491. # so that the user can short-circuit this test for compilers unknown to
  3492. # Autoconf.
  3493. for ac_file in $ac_files ''
  3494. do
  3495. test -f "$ac_file" || continue
  3496. case $ac_file in
  3497. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3498. ;;
  3499. [ab].out )
  3500. # We found the default executable, but exeext='' is most
  3501. # certainly right.
  3502. break;;
  3503. *.* )
  3504. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3505. then :; else
  3506. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3507. fi
  3508. # We set ac_cv_exeext here because the later test for it is not
  3509. # safe: cross compilers may not add the suffix if given an `-o'
  3510. # argument, so we may need to know it at that point already.
  3511. # Even if this section looks crufty: it has the advantage of
  3512. # actually working.
  3513. break;;
  3514. * )
  3515. break;;
  3516. esac
  3517. done
  3518. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3519. else
  3520. ac_file=''
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3523. $as_echo "$ac_file" >&6; }
  3524. if test -z "$ac_file"; then :
  3525. $as_echo "$as_me: failed program was:" >&5
  3526. sed 's/^/| /' conftest.$ac_ext >&5
  3527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3529. { as_fn_set_status 77
  3530. as_fn_error "C++ compiler cannot create executables
  3531. See \`config.log' for more details." "$LINENO" 5; }; }
  3532. fi
  3533. ac_exeext=$ac_cv_exeext
  3534. # Check that the compiler produces executables we can run. If not, either
  3535. # the compiler is broken, or we cross compile.
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3537. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3538. # If not cross compiling, check that we can run a simple program.
  3539. if test "$cross_compiling" != yes; then
  3540. if { ac_try='./$ac_file'
  3541. { { case "(($ac_try" in
  3542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3543. *) ac_try_echo=$ac_try;;
  3544. esac
  3545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3546. $as_echo "$ac_try_echo"; } >&5
  3547. (eval "$ac_try") 2>&5
  3548. ac_status=$?
  3549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3550. test $ac_status = 0; }; }; then
  3551. cross_compiling=no
  3552. else
  3553. if test "$cross_compiling" = maybe; then
  3554. cross_compiling=yes
  3555. else
  3556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3558. as_fn_error "cannot run C++ compiled programs.
  3559. If you meant to cross compile, use \`--host'.
  3560. See \`config.log' for more details." "$LINENO" 5; }
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3565. $as_echo "yes" >&6; }
  3566. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3567. ac_clean_files=$ac_clean_files_save
  3568. # Check that the compiler produces executables we can run. If not, either
  3569. # the compiler is broken, or we cross compile.
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3571. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3573. $as_echo "$cross_compiling" >&6; }
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3575. $as_echo_n "checking for suffix of executables... " >&6; }
  3576. if { { ac_try="$ac_link"
  3577. case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3582. $as_echo "$ac_try_echo"; } >&5
  3583. (eval "$ac_link") 2>&5
  3584. ac_status=$?
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3586. test $ac_status = 0; }; then :
  3587. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3588. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3589. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3590. # `rm'.
  3591. for ac_file in conftest.exe conftest conftest.*; do
  3592. test -f "$ac_file" || continue
  3593. case $ac_file in
  3594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3595. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3596. break;;
  3597. * ) break;;
  3598. esac
  3599. done
  3600. else
  3601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3603. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3604. See \`config.log' for more details." "$LINENO" 5; }
  3605. fi
  3606. rm -f conftest$ac_cv_exeext
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3608. $as_echo "$ac_cv_exeext" >&6; }
  3609. rm -f conftest.$ac_ext
  3610. EXEEXT=$ac_cv_exeext
  3611. ac_exeext=$EXEEXT
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3613. $as_echo_n "checking for suffix of object files... " >&6; }
  3614. if test "${ac_cv_objext+set}" = set; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. int
  3620. main ()
  3621. {
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. rm -f conftest.o conftest.obj
  3627. if { { ac_try="$ac_compile"
  3628. case "(($ac_try" in
  3629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3630. *) ac_try_echo=$ac_try;;
  3631. esac
  3632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3633. $as_echo "$ac_try_echo"; } >&5
  3634. (eval "$ac_compile") 2>&5
  3635. ac_status=$?
  3636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3637. test $ac_status = 0; }; then :
  3638. for ac_file in conftest.o conftest.obj conftest.*; do
  3639. test -f "$ac_file" || continue;
  3640. case $ac_file in
  3641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3643. break;;
  3644. esac
  3645. done
  3646. else
  3647. $as_echo "$as_me: failed program was:" >&5
  3648. sed 's/^/| /' conftest.$ac_ext >&5
  3649. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3650. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3651. as_fn_error "cannot compute suffix of object files: cannot compile
  3652. See \`config.log' for more details." "$LINENO" 5; }
  3653. fi
  3654. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3655. fi
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3657. $as_echo "$ac_cv_objext" >&6; }
  3658. OBJEXT=$ac_cv_objext
  3659. ac_objext=$OBJEXT
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3661. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3662. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3666. /* end confdefs.h. */
  3667. int
  3668. main ()
  3669. {
  3670. #ifndef __GNUC__
  3671. choke me
  3672. #endif
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. if ac_fn_cxx_try_compile "$LINENO"; then :
  3678. ac_compiler_gnu=yes
  3679. else
  3680. ac_compiler_gnu=no
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3683. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3686. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3687. if test $ac_compiler_gnu = yes; then
  3688. GXX=yes
  3689. else
  3690. GXX=
  3691. fi
  3692. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3693. ac_save_CXXFLAGS=$CXXFLAGS
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3695. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3696. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3700. ac_cxx_werror_flag=yes
  3701. ac_cv_prog_cxx_g=no
  3702. CXXFLAGS="-g"
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_cxx_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cxx_g=yes
  3714. else
  3715. CXXFLAGS=""
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. if ac_fn_cxx_try_compile "$LINENO"; then :
  3726. else
  3727. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3728. CXXFLAGS="-g"
  3729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3730. /* end confdefs.h. */
  3731. int
  3732. main ()
  3733. {
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. if ac_fn_cxx_try_compile "$LINENO"; then :
  3739. ac_cv_prog_cxx_g=yes
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3749. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3750. if test "$ac_test_CXXFLAGS" = set; then
  3751. CXXFLAGS=$ac_save_CXXFLAGS
  3752. elif test $ac_cv_prog_cxx_g = yes; then
  3753. if test "$GXX" = yes; then
  3754. CXXFLAGS="-g -O2"
  3755. else
  3756. CXXFLAGS="-g"
  3757. fi
  3758. else
  3759. if test "$GXX" = yes; then
  3760. CXXFLAGS="-O2"
  3761. else
  3762. CXXFLAGS=
  3763. fi
  3764. fi
  3765. ac_ext=c
  3766. ac_cpp='$CPP $CPPFLAGS'
  3767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3770. DEPDIR="${am__leading_dot}deps"
  3771. ac_config_commands="$ac_config_commands depfiles"
  3772. am_make=${MAKE-make}
  3773. cat > confinc << 'END'
  3774. am__doit:
  3775. @echo this is the am__doit target
  3776. .PHONY: am__doit
  3777. END
  3778. # If we don't find an include directive, just comment out the code.
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3780. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3781. am__include="#"
  3782. am__quote=
  3783. _am_result=none
  3784. # First try GNU make style include.
  3785. echo "include confinc" > confmf
  3786. # Ignore all kinds of additional output from `make'.
  3787. case `$am_make -s -f confmf 2> /dev/null` in #(
  3788. *the\ am__doit\ target*)
  3789. am__include=include
  3790. am__quote=
  3791. _am_result=GNU
  3792. ;;
  3793. esac
  3794. # Now try BSD make style include.
  3795. if test "$am__include" = "#"; then
  3796. echo '.include "confinc"' > confmf
  3797. case `$am_make -s -f confmf 2> /dev/null` in #(
  3798. *the\ am__doit\ target*)
  3799. am__include=.include
  3800. am__quote="\""
  3801. _am_result=BSD
  3802. ;;
  3803. esac
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3806. $as_echo "$_am_result" >&6; }
  3807. rm -f confinc confmf
  3808. # Check whether --enable-dependency-tracking was given.
  3809. if test "${enable_dependency_tracking+set}" = set; then :
  3810. enableval=$enable_dependency_tracking;
  3811. fi
  3812. if test "x$enable_dependency_tracking" != xno; then
  3813. am_depcomp="$ac_aux_dir/depcomp"
  3814. AMDEPBACKSLASH='\'
  3815. fi
  3816. if test "x$enable_dependency_tracking" != xno; then
  3817. AMDEP_TRUE=
  3818. AMDEP_FALSE='#'
  3819. else
  3820. AMDEP_TRUE='#'
  3821. AMDEP_FALSE=
  3822. fi
  3823. depcc="$CXX" am_compiler_list=
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3825. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3826. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3830. # We make a subdir and do the tests there. Otherwise we can end up
  3831. # making bogus files that we don't know about and never remove. For
  3832. # instance it was reported that on HP-UX the gcc test will end up
  3833. # making a dummy file named `D' -- because `-MD' means `put the output
  3834. # in D'.
  3835. mkdir conftest.dir
  3836. # Copy depcomp to subdir because otherwise we won't find it if we're
  3837. # using a relative directory.
  3838. cp "$am_depcomp" conftest.dir
  3839. cd conftest.dir
  3840. # We will build objects and dependencies in a subdirectory because
  3841. # it helps to detect inapplicable dependency modes. For instance
  3842. # both Tru64's cc and ICC support -MD to output dependencies as a
  3843. # side effect of compilation, but ICC will put the dependencies in
  3844. # the current directory while Tru64 will put them in the object
  3845. # directory.
  3846. mkdir sub
  3847. am_cv_CXX_dependencies_compiler_type=none
  3848. if test "$am_compiler_list" = ""; then
  3849. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3850. fi
  3851. am__universal=false
  3852. case " $depcc " in #(
  3853. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3854. esac
  3855. for depmode in $am_compiler_list; do
  3856. # Setup a source with many dependencies, because some compilers
  3857. # like to wrap large dependency lists on column 80 (with \), and
  3858. # we should not choose a depcomp mode which is confused by this.
  3859. #
  3860. # We need to recreate these files for each test, as the compiler may
  3861. # overwrite some of them when testing with obscure command lines.
  3862. # This happens at least with the AIX C compiler.
  3863. : > sub/conftest.c
  3864. for i in 1 2 3 4 5 6; do
  3865. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3866. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3867. # Solaris 8's {/usr,}/bin/sh.
  3868. touch sub/conftst$i.h
  3869. done
  3870. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3871. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3872. # mode. It turns out that the SunPro C++ compiler does not properly
  3873. # handle `-M -o', and we need to detect this. Also, some Intel
  3874. # versions had trouble with output in subdirs
  3875. am__obj=sub/conftest.${OBJEXT-o}
  3876. am__minus_obj="-o $am__obj"
  3877. case $depmode in
  3878. gcc)
  3879. # This depmode causes a compiler race in universal mode.
  3880. test "$am__universal" = false || continue
  3881. ;;
  3882. nosideeffect)
  3883. # after this tag, mechanisms are not by side-effect, so they'll
  3884. # only be used when explicitly requested
  3885. if test "x$enable_dependency_tracking" = xyes; then
  3886. continue
  3887. else
  3888. break
  3889. fi
  3890. ;;
  3891. msvisualcpp | msvcmsys)
  3892. # This compiler won't grok `-c -o', but also, the minuso test has
  3893. # not run yet. These depmodes are late enough in the game, and
  3894. # so weak that their functioning should not be impacted.
  3895. am__obj=conftest.${OBJEXT-o}
  3896. am__minus_obj=
  3897. ;;
  3898. none) break ;;
  3899. esac
  3900. if depmode=$depmode \
  3901. source=sub/conftest.c object=$am__obj \
  3902. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3903. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3904. >/dev/null 2>conftest.err &&
  3905. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3906. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3907. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3908. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3909. # icc doesn't choke on unknown options, it will just issue warnings
  3910. # or remarks (even with -Werror). So we grep stderr for any message
  3911. # that says an option was ignored or not supported.
  3912. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3913. # icc: Command line warning: ignoring option '-M'; no argument required
  3914. # The diagnosis changed in icc 8.0:
  3915. # icc: Command line remark: option '-MP' not supported
  3916. if (grep 'ignoring option' conftest.err ||
  3917. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3918. am_cv_CXX_dependencies_compiler_type=$depmode
  3919. break
  3920. fi
  3921. fi
  3922. done
  3923. cd ..
  3924. rm -rf conftest.dir
  3925. else
  3926. am_cv_CXX_dependencies_compiler_type=none
  3927. fi
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3930. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3931. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3932. if
  3933. test "x$enable_dependency_tracking" != xno \
  3934. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3935. am__fastdepCXX_TRUE=
  3936. am__fastdepCXX_FALSE='#'
  3937. else
  3938. am__fastdepCXX_TRUE='#'
  3939. am__fastdepCXX_FALSE=
  3940. fi
  3941. ac_ext=c
  3942. ac_cpp='$CPP $CPPFLAGS'
  3943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3946. if test -n "$ac_tool_prefix"; then
  3947. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3948. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3950. $as_echo_n "checking for $ac_word... " >&6; }
  3951. if test "${ac_cv_prog_CC+set}" = set; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$CC"; then
  3955. ac_cv_prog_CC="$CC" # Let the user override the test.
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. for ac_exec_ext in '' $ac_executable_extensions; do
  3963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3964. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3966. break 2
  3967. fi
  3968. done
  3969. done
  3970. IFS=$as_save_IFS
  3971. fi
  3972. fi
  3973. CC=$ac_cv_prog_CC
  3974. if test -n "$CC"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3976. $as_echo "$CC" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. fi
  3982. if test -z "$ac_cv_prog_CC"; then
  3983. ac_ct_CC=$CC
  3984. # Extract the first word of "gcc", so it can be a program name with args.
  3985. set dummy gcc; ac_word=$2
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3987. $as_echo_n "checking for $ac_word... " >&6; }
  3988. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. if test -n "$ac_ct_CC"; then
  3992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3993. else
  3994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3995. for as_dir in $PATH
  3996. do
  3997. IFS=$as_save_IFS
  3998. test -z "$as_dir" && as_dir=.
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4001. ac_cv_prog_ac_ct_CC="gcc"
  4002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4003. break 2
  4004. fi
  4005. done
  4006. done
  4007. IFS=$as_save_IFS
  4008. fi
  4009. fi
  4010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4011. if test -n "$ac_ct_CC"; then
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4013. $as_echo "$ac_ct_CC" >&6; }
  4014. else
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. $as_echo "no" >&6; }
  4017. fi
  4018. if test "x$ac_ct_CC" = x; then
  4019. CC=""
  4020. else
  4021. case $cross_compiling:$ac_tool_warned in
  4022. yes:)
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4025. ac_tool_warned=yes ;;
  4026. esac
  4027. CC=$ac_ct_CC
  4028. fi
  4029. else
  4030. CC="$ac_cv_prog_CC"
  4031. fi
  4032. if test -z "$CC"; then
  4033. if test -n "$ac_tool_prefix"; then
  4034. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4035. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4037. $as_echo_n "checking for $ac_word... " >&6; }
  4038. if test "${ac_cv_prog_CC+set}" = set; then :
  4039. $as_echo_n "(cached) " >&6
  4040. else
  4041. if test -n "$CC"; then
  4042. ac_cv_prog_CC="$CC" # Let the user override the test.
  4043. else
  4044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4045. for as_dir in $PATH
  4046. do
  4047. IFS=$as_save_IFS
  4048. test -z "$as_dir" && as_dir=.
  4049. for ac_exec_ext in '' $ac_executable_extensions; do
  4050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4051. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4053. break 2
  4054. fi
  4055. done
  4056. done
  4057. IFS=$as_save_IFS
  4058. fi
  4059. fi
  4060. CC=$ac_cv_prog_CC
  4061. if test -n "$CC"; then
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4063. $as_echo "$CC" >&6; }
  4064. else
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4066. $as_echo "no" >&6; }
  4067. fi
  4068. fi
  4069. fi
  4070. if test -z "$CC"; then
  4071. # Extract the first word of "cc", so it can be a program name with args.
  4072. set dummy cc; ac_word=$2
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4074. $as_echo_n "checking for $ac_word... " >&6; }
  4075. if test "${ac_cv_prog_CC+set}" = set; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. if test -n "$CC"; then
  4079. ac_cv_prog_CC="$CC" # Let the user override the test.
  4080. else
  4081. ac_prog_rejected=no
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4090. ac_prog_rejected=yes
  4091. continue
  4092. fi
  4093. ac_cv_prog_CC="cc"
  4094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4095. break 2
  4096. fi
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. if test $ac_prog_rejected = yes; then
  4101. # We found a bogon in the path, so make sure we never use it.
  4102. set dummy $ac_cv_prog_CC
  4103. shift
  4104. if test $# != 0; then
  4105. # We chose a different compiler from the bogus one.
  4106. # However, it has the same basename, so the bogon will be chosen
  4107. # first if we set CC to just the basename; use the full file name.
  4108. shift
  4109. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4110. fi
  4111. fi
  4112. fi
  4113. fi
  4114. CC=$ac_cv_prog_CC
  4115. if test -n "$CC"; then
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4117. $as_echo "$CC" >&6; }
  4118. else
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4120. $as_echo "no" >&6; }
  4121. fi
  4122. fi
  4123. if test -z "$CC"; then
  4124. if test -n "$ac_tool_prefix"; then
  4125. for ac_prog in cl.exe
  4126. do
  4127. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4128. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4130. $as_echo_n "checking for $ac_word... " >&6; }
  4131. if test "${ac_cv_prog_CC+set}" = set; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. if test -n "$CC"; then
  4135. ac_cv_prog_CC="$CC" # Let the user override the test.
  4136. else
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4144. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4146. break 2
  4147. fi
  4148. done
  4149. done
  4150. IFS=$as_save_IFS
  4151. fi
  4152. fi
  4153. CC=$ac_cv_prog_CC
  4154. if test -n "$CC"; then
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4156. $as_echo "$CC" >&6; }
  4157. else
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4159. $as_echo "no" >&6; }
  4160. fi
  4161. test -n "$CC" && break
  4162. done
  4163. fi
  4164. if test -z "$CC"; then
  4165. ac_ct_CC=$CC
  4166. for ac_prog in cl.exe
  4167. do
  4168. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4169. set dummy $ac_prog; ac_word=$2
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4171. $as_echo_n "checking for $ac_word... " >&6; }
  4172. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -n "$ac_ct_CC"; then
  4176. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4177. else
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_exec_ext in '' $ac_executable_extensions; do
  4184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4185. ac_cv_prog_ac_ct_CC="$ac_prog"
  4186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4187. break 2
  4188. fi
  4189. done
  4190. done
  4191. IFS=$as_save_IFS
  4192. fi
  4193. fi
  4194. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4195. if test -n "$ac_ct_CC"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4197. $as_echo "$ac_ct_CC" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. test -n "$ac_ct_CC" && break
  4203. done
  4204. if test "x$ac_ct_CC" = x; then
  4205. CC=""
  4206. else
  4207. case $cross_compiling:$ac_tool_warned in
  4208. yes:)
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4210. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4211. ac_tool_warned=yes ;;
  4212. esac
  4213. CC=$ac_ct_CC
  4214. fi
  4215. fi
  4216. fi
  4217. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4219. as_fn_error "no acceptable C compiler found in \$PATH
  4220. See \`config.log' for more details." "$LINENO" 5; }
  4221. # Provide some information about the compiler.
  4222. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4223. set X $ac_compile
  4224. ac_compiler=$2
  4225. for ac_option in --version -v -V -qversion; do
  4226. { { ac_try="$ac_compiler $ac_option >&5"
  4227. case "(($ac_try" in
  4228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4229. *) ac_try_echo=$ac_try;;
  4230. esac
  4231. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4232. $as_echo "$ac_try_echo"; } >&5
  4233. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4234. ac_status=$?
  4235. if test -s conftest.err; then
  4236. sed '10a\
  4237. ... rest of stderr output deleted ...
  4238. 10q' conftest.err >conftest.er1
  4239. cat conftest.er1 >&5
  4240. rm -f conftest.er1 conftest.err
  4241. fi
  4242. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4243. test $ac_status = 0; }
  4244. done
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4246. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4247. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. int
  4253. main ()
  4254. {
  4255. #ifndef __GNUC__
  4256. choke me
  4257. #endif
  4258. ;
  4259. return 0;
  4260. }
  4261. _ACEOF
  4262. if ac_fn_c_try_compile "$LINENO"; then :
  4263. ac_compiler_gnu=yes
  4264. else
  4265. ac_compiler_gnu=no
  4266. fi
  4267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4268. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4271. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4272. if test $ac_compiler_gnu = yes; then
  4273. GCC=yes
  4274. else
  4275. GCC=
  4276. fi
  4277. ac_test_CFLAGS=${CFLAGS+set}
  4278. ac_save_CFLAGS=$CFLAGS
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4280. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4281. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. ac_save_c_werror_flag=$ac_c_werror_flag
  4285. ac_c_werror_flag=yes
  4286. ac_cv_prog_cc_g=no
  4287. CFLAGS="-g"
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int
  4291. main ()
  4292. {
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. ac_cv_prog_cc_g=yes
  4299. else
  4300. CFLAGS=""
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. int
  4304. main ()
  4305. {
  4306. ;
  4307. return 0;
  4308. }
  4309. _ACEOF
  4310. if ac_fn_c_try_compile "$LINENO"; then :
  4311. else
  4312. ac_c_werror_flag=$ac_save_c_werror_flag
  4313. CFLAGS="-g"
  4314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4315. /* end confdefs.h. */
  4316. int
  4317. main ()
  4318. {
  4319. ;
  4320. return 0;
  4321. }
  4322. _ACEOF
  4323. if ac_fn_c_try_compile "$LINENO"; then :
  4324. ac_cv_prog_cc_g=yes
  4325. fi
  4326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4327. fi
  4328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4329. fi
  4330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4331. ac_c_werror_flag=$ac_save_c_werror_flag
  4332. fi
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4334. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4335. if test "$ac_test_CFLAGS" = set; then
  4336. CFLAGS=$ac_save_CFLAGS
  4337. elif test $ac_cv_prog_cc_g = yes; then
  4338. if test "$GCC" = yes; then
  4339. CFLAGS="-g -O2"
  4340. else
  4341. CFLAGS="-g"
  4342. fi
  4343. else
  4344. if test "$GCC" = yes; then
  4345. CFLAGS="-O2"
  4346. else
  4347. CFLAGS=
  4348. fi
  4349. fi
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4351. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4352. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. ac_cv_prog_cc_c89=no
  4356. ac_save_CC=$CC
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. #include <stdarg.h>
  4360. #include <stdio.h>
  4361. #include <sys/types.h>
  4362. #include <sys/stat.h>
  4363. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4364. struct buf { int x; };
  4365. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4366. static char *e (p, i)
  4367. char **p;
  4368. int i;
  4369. {
  4370. return p[i];
  4371. }
  4372. static char *f (char * (*g) (char **, int), char **p, ...)
  4373. {
  4374. char *s;
  4375. va_list v;
  4376. va_start (v,p);
  4377. s = g (p, va_arg (v,int));
  4378. va_end (v);
  4379. return s;
  4380. }
  4381. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4382. function prototypes and stuff, but not '\xHH' hex character constants.
  4383. These don't provoke an error unfortunately, instead are silently treated
  4384. as 'x'. The following induces an error, until -std is added to get
  4385. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4386. array size at least. It's necessary to write '\x00'==0 to get something
  4387. that's true only with -std. */
  4388. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4389. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4390. inside strings and character constants. */
  4391. #define FOO(x) 'x'
  4392. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4393. int test (int i, double x);
  4394. struct s1 {int (*f) (int a);};
  4395. struct s2 {int (*f) (double a);};
  4396. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4397. int argc;
  4398. char **argv;
  4399. int
  4400. main ()
  4401. {
  4402. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4408. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4409. do
  4410. CC="$ac_save_CC $ac_arg"
  4411. if ac_fn_c_try_compile "$LINENO"; then :
  4412. ac_cv_prog_cc_c89=$ac_arg
  4413. fi
  4414. rm -f core conftest.err conftest.$ac_objext
  4415. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4416. done
  4417. rm -f conftest.$ac_ext
  4418. CC=$ac_save_CC
  4419. fi
  4420. # AC_CACHE_VAL
  4421. case "x$ac_cv_prog_cc_c89" in
  4422. x)
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4424. $as_echo "none needed" >&6; } ;;
  4425. xno)
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4427. $as_echo "unsupported" >&6; } ;;
  4428. *)
  4429. CC="$CC $ac_cv_prog_cc_c89"
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4431. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4432. esac
  4433. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4434. fi
  4435. ac_ext=c
  4436. ac_cpp='$CPP $CPPFLAGS'
  4437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4440. depcc="$CC" am_compiler_list=
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4442. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4443. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4447. # We make a subdir and do the tests there. Otherwise we can end up
  4448. # making bogus files that we don't know about and never remove. For
  4449. # instance it was reported that on HP-UX the gcc test will end up
  4450. # making a dummy file named `D' -- because `-MD' means `put the output
  4451. # in D'.
  4452. mkdir conftest.dir
  4453. # Copy depcomp to subdir because otherwise we won't find it if we're
  4454. # using a relative directory.
  4455. cp "$am_depcomp" conftest.dir
  4456. cd conftest.dir
  4457. # We will build objects and dependencies in a subdirectory because
  4458. # it helps to detect inapplicable dependency modes. For instance
  4459. # both Tru64's cc and ICC support -MD to output dependencies as a
  4460. # side effect of compilation, but ICC will put the dependencies in
  4461. # the current directory while Tru64 will put them in the object
  4462. # directory.
  4463. mkdir sub
  4464. am_cv_CC_dependencies_compiler_type=none
  4465. if test "$am_compiler_list" = ""; then
  4466. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4467. fi
  4468. am__universal=false
  4469. case " $depcc " in #(
  4470. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4471. esac
  4472. for depmode in $am_compiler_list; do
  4473. # Setup a source with many dependencies, because some compilers
  4474. # like to wrap large dependency lists on column 80 (with \), and
  4475. # we should not choose a depcomp mode which is confused by this.
  4476. #
  4477. # We need to recreate these files for each test, as the compiler may
  4478. # overwrite some of them when testing with obscure command lines.
  4479. # This happens at least with the AIX C compiler.
  4480. : > sub/conftest.c
  4481. for i in 1 2 3 4 5 6; do
  4482. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4483. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4484. # Solaris 8's {/usr,}/bin/sh.
  4485. touch sub/conftst$i.h
  4486. done
  4487. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4488. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4489. # mode. It turns out that the SunPro C++ compiler does not properly
  4490. # handle `-M -o', and we need to detect this. Also, some Intel
  4491. # versions had trouble with output in subdirs
  4492. am__obj=sub/conftest.${OBJEXT-o}
  4493. am__minus_obj="-o $am__obj"
  4494. case $depmode in
  4495. gcc)
  4496. # This depmode causes a compiler race in universal mode.
  4497. test "$am__universal" = false || continue
  4498. ;;
  4499. nosideeffect)
  4500. # after this tag, mechanisms are not by side-effect, so they'll
  4501. # only be used when explicitly requested
  4502. if test "x$enable_dependency_tracking" = xyes; then
  4503. continue
  4504. else
  4505. break
  4506. fi
  4507. ;;
  4508. msvisualcpp | msvcmsys)
  4509. # This compiler won't grok `-c -o', but also, the minuso test has
  4510. # not run yet. These depmodes are late enough in the game, and
  4511. # so weak that their functioning should not be impacted.
  4512. am__obj=conftest.${OBJEXT-o}
  4513. am__minus_obj=
  4514. ;;
  4515. none) break ;;
  4516. esac
  4517. if depmode=$depmode \
  4518. source=sub/conftest.c object=$am__obj \
  4519. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4520. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4521. >/dev/null 2>conftest.err &&
  4522. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4523. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4524. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4525. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4526. # icc doesn't choke on unknown options, it will just issue warnings
  4527. # or remarks (even with -Werror). So we grep stderr for any message
  4528. # that says an option was ignored or not supported.
  4529. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4530. # icc: Command line warning: ignoring option '-M'; no argument required
  4531. # The diagnosis changed in icc 8.0:
  4532. # icc: Command line remark: option '-MP' not supported
  4533. if (grep 'ignoring option' conftest.err ||
  4534. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4535. am_cv_CC_dependencies_compiler_type=$depmode
  4536. break
  4537. fi
  4538. fi
  4539. done
  4540. cd ..
  4541. rm -rf conftest.dir
  4542. else
  4543. am_cv_CC_dependencies_compiler_type=none
  4544. fi
  4545. fi
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4547. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4548. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4549. if
  4550. test "x$enable_dependency_tracking" != xno \
  4551. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4552. am__fastdepCC_TRUE=
  4553. am__fastdepCC_FALSE='#'
  4554. else
  4555. am__fastdepCC_TRUE='#'
  4556. am__fastdepCC_FALSE=
  4557. fi
  4558. if test -n "$ac_tool_prefix"; then
  4559. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4560. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4562. $as_echo_n "checking for $ac_word... " >&6; }
  4563. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. if test -n "$RANLIB"; then
  4567. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4568. else
  4569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4570. for as_dir in $PATH
  4571. do
  4572. IFS=$as_save_IFS
  4573. test -z "$as_dir" && as_dir=.
  4574. for ac_exec_ext in '' $ac_executable_extensions; do
  4575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4576. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4578. break 2
  4579. fi
  4580. done
  4581. done
  4582. IFS=$as_save_IFS
  4583. fi
  4584. fi
  4585. RANLIB=$ac_cv_prog_RANLIB
  4586. if test -n "$RANLIB"; then
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4588. $as_echo "$RANLIB" >&6; }
  4589. else
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4591. $as_echo "no" >&6; }
  4592. fi
  4593. fi
  4594. if test -z "$ac_cv_prog_RANLIB"; then
  4595. ac_ct_RANLIB=$RANLIB
  4596. # Extract the first word of "ranlib", so it can be a program name with args.
  4597. set dummy ranlib; ac_word=$2
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4599. $as_echo_n "checking for $ac_word... " >&6; }
  4600. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. if test -n "$ac_ct_RANLIB"; then
  4604. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4605. else
  4606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4607. for as_dir in $PATH
  4608. do
  4609. IFS=$as_save_IFS
  4610. test -z "$as_dir" && as_dir=.
  4611. for ac_exec_ext in '' $ac_executable_extensions; do
  4612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4613. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4615. break 2
  4616. fi
  4617. done
  4618. done
  4619. IFS=$as_save_IFS
  4620. fi
  4621. fi
  4622. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4623. if test -n "$ac_ct_RANLIB"; then
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4625. $as_echo "$ac_ct_RANLIB" >&6; }
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4628. $as_echo "no" >&6; }
  4629. fi
  4630. if test "x$ac_ct_RANLIB" = x; then
  4631. RANLIB=":"
  4632. else
  4633. case $cross_compiling:$ac_tool_warned in
  4634. yes:)
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4637. ac_tool_warned=yes ;;
  4638. esac
  4639. RANLIB=$ac_ct_RANLIB
  4640. fi
  4641. else
  4642. RANLIB="$ac_cv_prog_RANLIB"
  4643. fi
  4644. for ac_prog in 'bison -y' byacc
  4645. do
  4646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4647. set dummy $ac_prog; ac_word=$2
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4649. $as_echo_n "checking for $ac_word... " >&6; }
  4650. if test "${ac_cv_prog_YACC+set}" = set; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. if test -n "$YACC"; then
  4654. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4655. else
  4656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4657. for as_dir in $PATH
  4658. do
  4659. IFS=$as_save_IFS
  4660. test -z "$as_dir" && as_dir=.
  4661. for ac_exec_ext in '' $ac_executable_extensions; do
  4662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4663. ac_cv_prog_YACC="$ac_prog"
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4665. break 2
  4666. fi
  4667. done
  4668. done
  4669. IFS=$as_save_IFS
  4670. fi
  4671. fi
  4672. YACC=$ac_cv_prog_YACC
  4673. if test -n "$YACC"; then
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4675. $as_echo "$YACC" >&6; }
  4676. else
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4678. $as_echo "no" >&6; }
  4679. fi
  4680. test -n "$YACC" && break
  4681. done
  4682. test -n "$YACC" || YACC="yacc"
  4683. # Setting language choice
  4684. ac_ext=cpp
  4685. ac_cpp='$CXXCPP $CPPFLAGS'
  4686. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4687. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4688. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4689. # Enable system extensions
  4690. ac_ext=cpp
  4691. ac_cpp='$CXXCPP $CPPFLAGS'
  4692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4696. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4697. if test -z "$CXXCPP"; then
  4698. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. # Double quotes because CXXCPP needs to be expanded
  4702. for CXXCPP in "$CXX -E" "/lib/cpp"
  4703. do
  4704. ac_preproc_ok=false
  4705. for ac_cxx_preproc_warn_flag in '' yes
  4706. do
  4707. # Use a header file that comes with gcc, so configuring glibc
  4708. # with a fresh cross-compiler works.
  4709. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4710. # <limits.h> exists even on freestanding compilers.
  4711. # On the NeXT, cc -E runs the code through the compiler's parser,
  4712. # not just through cpp. "Syntax error" is here to catch this case.
  4713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h. */
  4715. #ifdef __STDC__
  4716. # include <limits.h>
  4717. #else
  4718. # include <assert.h>
  4719. #endif
  4720. Syntax error
  4721. _ACEOF
  4722. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4723. else
  4724. # Broken: fails on valid input.
  4725. continue
  4726. fi
  4727. rm -f conftest.err conftest.$ac_ext
  4728. # OK, works on sane cases. Now check whether nonexistent headers
  4729. # can be detected and how.
  4730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. #include <ac_nonexistent.h>
  4733. _ACEOF
  4734. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4735. # Broken: success on invalid input.
  4736. continue
  4737. else
  4738. # Passes both tests.
  4739. ac_preproc_ok=:
  4740. break
  4741. fi
  4742. rm -f conftest.err conftest.$ac_ext
  4743. done
  4744. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4745. rm -f conftest.err conftest.$ac_ext
  4746. if $ac_preproc_ok; then :
  4747. break
  4748. fi
  4749. done
  4750. ac_cv_prog_CXXCPP=$CXXCPP
  4751. fi
  4752. CXXCPP=$ac_cv_prog_CXXCPP
  4753. else
  4754. ac_cv_prog_CXXCPP=$CXXCPP
  4755. fi
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4757. $as_echo "$CXXCPP" >&6; }
  4758. ac_preproc_ok=false
  4759. for ac_cxx_preproc_warn_flag in '' yes
  4760. do
  4761. # Use a header file that comes with gcc, so configuring glibc
  4762. # with a fresh cross-compiler works.
  4763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4764. # <limits.h> exists even on freestanding compilers.
  4765. # On the NeXT, cc -E runs the code through the compiler's parser,
  4766. # not just through cpp. "Syntax error" is here to catch this case.
  4767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4768. /* end confdefs.h. */
  4769. #ifdef __STDC__
  4770. # include <limits.h>
  4771. #else
  4772. # include <assert.h>
  4773. #endif
  4774. Syntax error
  4775. _ACEOF
  4776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4777. else
  4778. # Broken: fails on valid input.
  4779. continue
  4780. fi
  4781. rm -f conftest.err conftest.$ac_ext
  4782. # OK, works on sane cases. Now check whether nonexistent headers
  4783. # can be detected and how.
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. #include <ac_nonexistent.h>
  4787. _ACEOF
  4788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4789. # Broken: success on invalid input.
  4790. continue
  4791. else
  4792. # Passes both tests.
  4793. ac_preproc_ok=:
  4794. break
  4795. fi
  4796. rm -f conftest.err conftest.$ac_ext
  4797. done
  4798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4799. rm -f conftest.err conftest.$ac_ext
  4800. if $ac_preproc_ok; then :
  4801. else
  4802. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4803. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4804. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4805. See \`config.log' for more details." "$LINENO" 5; }
  4806. fi
  4807. ac_ext=cpp
  4808. ac_cpp='$CXXCPP $CPPFLAGS'
  4809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4813. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4814. if test "${ac_cv_path_GREP+set}" = set; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -z "$GREP"; then
  4818. ac_path_GREP_found=false
  4819. # Loop through the user's path and test for each of PROGNAME-LIST
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_prog in grep ggrep; do
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4828. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4829. # Check for GNU ac_path_GREP and select it if it is found.
  4830. # Check for GNU $ac_path_GREP
  4831. case `"$ac_path_GREP" --version 2>&1` in
  4832. *GNU*)
  4833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. *)
  4835. ac_count=0
  4836. $as_echo_n 0123456789 >"conftest.in"
  4837. while :
  4838. do
  4839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. mv "conftest.tmp" "conftest.in"
  4841. cp "conftest.in" "conftest.nl"
  4842. $as_echo 'GREP' >> "conftest.nl"
  4843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. # Best one so far, save it but keep looking for a better one
  4848. ac_cv_path_GREP="$ac_path_GREP"
  4849. ac_path_GREP_max=$ac_count
  4850. fi
  4851. # 10*(2^10) chars as input seems more than enough
  4852. test $ac_count -gt 10 && break
  4853. done
  4854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4855. esac
  4856. $ac_path_GREP_found && break 3
  4857. done
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. if test -z "$ac_cv_path_GREP"; then
  4862. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4863. fi
  4864. else
  4865. ac_cv_path_GREP=$GREP
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. $as_echo "$ac_cv_path_GREP" >&6; }
  4870. GREP="$ac_cv_path_GREP"
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4872. $as_echo_n "checking for egrep... " >&6; }
  4873. if test "${ac_cv_path_EGREP+set}" = set; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4877. then ac_cv_path_EGREP="$GREP -E"
  4878. else
  4879. if test -z "$EGREP"; then
  4880. ac_path_EGREP_found=false
  4881. # Loop through the user's path and test for each of PROGNAME-LIST
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_prog in egrep; do
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4890. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4891. # Check for GNU ac_path_EGREP and select it if it is found.
  4892. # Check for GNU $ac_path_EGREP
  4893. case `"$ac_path_EGREP" --version 2>&1` in
  4894. *GNU*)
  4895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4896. *)
  4897. ac_count=0
  4898. $as_echo_n 0123456789 >"conftest.in"
  4899. while :
  4900. do
  4901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4902. mv "conftest.tmp" "conftest.in"
  4903. cp "conftest.in" "conftest.nl"
  4904. $as_echo 'EGREP' >> "conftest.nl"
  4905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4909. # Best one so far, save it but keep looking for a better one
  4910. ac_cv_path_EGREP="$ac_path_EGREP"
  4911. ac_path_EGREP_max=$ac_count
  4912. fi
  4913. # 10*(2^10) chars as input seems more than enough
  4914. test $ac_count -gt 10 && break
  4915. done
  4916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4917. esac
  4918. $ac_path_EGREP_found && break 3
  4919. done
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. if test -z "$ac_cv_path_EGREP"; then
  4924. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4925. fi
  4926. else
  4927. ac_cv_path_EGREP=$EGREP
  4928. fi
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4932. $as_echo "$ac_cv_path_EGREP" >&6; }
  4933. EGREP="$ac_cv_path_EGREP"
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4935. $as_echo_n "checking for ANSI C header files... " >&6; }
  4936. if test "${ac_cv_header_stdc+set}" = set; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4940. /* end confdefs.h. */
  4941. #include <stdlib.h>
  4942. #include <stdarg.h>
  4943. #include <string.h>
  4944. #include <float.h>
  4945. int
  4946. main ()
  4947. {
  4948. ;
  4949. return 0;
  4950. }
  4951. _ACEOF
  4952. if ac_fn_cxx_try_compile "$LINENO"; then :
  4953. ac_cv_header_stdc=yes
  4954. else
  4955. ac_cv_header_stdc=no
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4958. if test $ac_cv_header_stdc = yes; then
  4959. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4961. /* end confdefs.h. */
  4962. #include <string.h>
  4963. _ACEOF
  4964. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4965. $EGREP "memchr" >/dev/null 2>&1; then :
  4966. else
  4967. ac_cv_header_stdc=no
  4968. fi
  4969. rm -f conftest*
  4970. fi
  4971. if test $ac_cv_header_stdc = yes; then
  4972. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974. /* end confdefs.h. */
  4975. #include <stdlib.h>
  4976. _ACEOF
  4977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4978. $EGREP "free" >/dev/null 2>&1; then :
  4979. else
  4980. ac_cv_header_stdc=no
  4981. fi
  4982. rm -f conftest*
  4983. fi
  4984. if test $ac_cv_header_stdc = yes; then
  4985. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4986. if test "$cross_compiling" = yes; then :
  4987. :
  4988. else
  4989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4990. /* end confdefs.h. */
  4991. #include <ctype.h>
  4992. #include <stdlib.h>
  4993. #if ((' ' & 0x0FF) == 0x020)
  4994. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4995. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4996. #else
  4997. # define ISLOWER(c) \
  4998. (('a' <= (c) && (c) <= 'i') \
  4999. || ('j' <= (c) && (c) <= 'r') \
  5000. || ('s' <= (c) && (c) <= 'z'))
  5001. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5002. #endif
  5003. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5004. int
  5005. main ()
  5006. {
  5007. int i;
  5008. for (i = 0; i < 256; i++)
  5009. if (XOR (islower (i), ISLOWER (i))
  5010. || toupper (i) != TOUPPER (i))
  5011. return 2;
  5012. return 0;
  5013. }
  5014. _ACEOF
  5015. if ac_fn_cxx_try_run "$LINENO"; then :
  5016. else
  5017. ac_cv_header_stdc=no
  5018. fi
  5019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5021. fi
  5022. fi
  5023. fi
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5025. $as_echo "$ac_cv_header_stdc" >&6; }
  5026. if test $ac_cv_header_stdc = yes; then
  5027. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5028. fi
  5029. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5030. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5031. inttypes.h stdint.h unistd.h
  5032. do :
  5033. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5034. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5035. "
  5036. eval as_val=\$$as_ac_Header
  5037. if test "x$as_val" = x""yes; then :
  5038. cat >>confdefs.h <<_ACEOF
  5039. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5040. _ACEOF
  5041. fi
  5042. done
  5043. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5044. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5045. MINIX=yes
  5046. else
  5047. MINIX=
  5048. fi
  5049. if test "$MINIX" = yes; then
  5050. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5051. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5052. $as_echo "#define _MINIX 1" >>confdefs.h
  5053. fi
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5055. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5056. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5057. $as_echo_n "(cached) " >&6
  5058. else
  5059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5060. /* end confdefs.h. */
  5061. # define __EXTENSIONS__ 1
  5062. $ac_includes_default
  5063. int
  5064. main ()
  5065. {
  5066. ;
  5067. return 0;
  5068. }
  5069. _ACEOF
  5070. if ac_fn_cxx_try_compile "$LINENO"; then :
  5071. ac_cv_safe_to_define___extensions__=yes
  5072. else
  5073. ac_cv_safe_to_define___extensions__=no
  5074. fi
  5075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5076. fi
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5078. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5079. test $ac_cv_safe_to_define___extensions__ = yes &&
  5080. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5081. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5082. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5083. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5084. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5085. # Checks for libraries.
  5086. if test "x$with_libxml2" = "xyes"; then
  5087. # Check whether --with-xml-prefix was given.
  5088. if test "${with_xml_prefix+set}" = set; then :
  5089. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5090. else
  5091. xml_config_prefix=""
  5092. fi
  5093. # Check whether --with-xml-exec-prefix was given.
  5094. if test "${with_xml_exec_prefix+set}" = set; then :
  5095. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5096. else
  5097. xml_config_exec_prefix=""
  5098. fi
  5099. # Check whether --enable-xmltest was given.
  5100. if test "${enable_xmltest+set}" = set; then :
  5101. enableval=$enable_xmltest;
  5102. else
  5103. enable_xmltest=yes
  5104. fi
  5105. if test x$xml_config_exec_prefix != x ; then
  5106. xml_config_args="$xml_config_args"
  5107. if test x${XML2_CONFIG+set} != xset ; then
  5108. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5109. fi
  5110. fi
  5111. if test x$xml_config_prefix != x ; then
  5112. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5113. if test x${XML2_CONFIG+set} != xset ; then
  5114. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5115. fi
  5116. fi
  5117. # Extract the first word of "xml2-config", so it can be a program name with args.
  5118. set dummy xml2-config; ac_word=$2
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5120. $as_echo_n "checking for $ac_word... " >&6; }
  5121. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5122. $as_echo_n "(cached) " >&6
  5123. else
  5124. case $XML2_CONFIG in
  5125. [\\/]* | ?:[\\/]*)
  5126. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5127. ;;
  5128. *)
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5136. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5144. ;;
  5145. esac
  5146. fi
  5147. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5148. if test -n "$XML2_CONFIG"; then
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5150. $as_echo "$XML2_CONFIG" >&6; }
  5151. else
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5153. $as_echo "no" >&6; }
  5154. fi
  5155. min_xml_version=2.6.24
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5157. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5158. no_xml=""
  5159. if test "$XML2_CONFIG" = "no" ; then
  5160. no_xml=yes
  5161. else
  5162. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5163. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5164. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5165. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5166. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5167. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5168. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5169. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5170. if test "x$enable_xmltest" = "xyes" ; then
  5171. ac_save_CPPFLAGS="$CPPFLAGS"
  5172. ac_save_LIBS="$LIBS"
  5173. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5174. LIBS="$XML_LIBS $LIBS"
  5175. rm -f conf.xmltest
  5176. if test "$cross_compiling" = yes; then :
  5177. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5178. else
  5179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5180. /* end confdefs.h. */
  5181. #include <stdlib.h>
  5182. #include <stdio.h>
  5183. #include <string.h>
  5184. #include <libxml/xmlversion.h>
  5185. int
  5186. main()
  5187. {
  5188. int xml_major_version, xml_minor_version, xml_micro_version;
  5189. int major, minor, micro;
  5190. char *tmp_version;
  5191. system("touch conf.xmltest");
  5192. /* Capture xml2-config output via autoconf/configure variables */
  5193. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5194. tmp_version = (char *)strdup("$min_xml_version");
  5195. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5196. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5197. exit(1);
  5198. }
  5199. free(tmp_version);
  5200. /* Capture the version information from the header files */
  5201. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5202. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5203. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5204. exit(1);
  5205. }
  5206. free(tmp_version);
  5207. /* Compare xml2-config output to the libxml headers */
  5208. if ((xml_major_version != $xml_config_major_version) ||
  5209. (xml_minor_version != $xml_config_minor_version) ||
  5210. (xml_micro_version != $xml_config_micro_version))
  5211. {
  5212. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5213. xml_major_version, xml_minor_version, xml_micro_version);
  5214. printf("*** xml2-config (version %d.%d.%d)\n",
  5215. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5216. return 1;
  5217. }
  5218. /* Compare the headers to the library to make sure we match */
  5219. /* Less than ideal -- doesn't provide us with return value feedback,
  5220. * only exits if there's a serious mismatch between header and library.
  5221. */
  5222. LIBXML_TEST_VERSION;
  5223. /* Test that the library is greater than our minimum version */
  5224. if ((xml_major_version > major) ||
  5225. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5226. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5227. (xml_micro_version >= micro)))
  5228. {
  5229. return 0;
  5230. }
  5231. else
  5232. {
  5233. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5234. xml_major_version, xml_minor_version, xml_micro_version);
  5235. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5236. major, minor, micro);
  5237. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5238. printf("***\n");
  5239. printf("*** If you have already installed a sufficiently new version, this error\n");
  5240. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5241. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5242. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5243. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5244. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5245. printf("*** so that the correct libraries are found at run-time))\n");
  5246. }
  5247. return 1;
  5248. }
  5249. _ACEOF
  5250. if ac_fn_cxx_try_run "$LINENO"; then :
  5251. else
  5252. no_xml=yes
  5253. fi
  5254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5256. fi
  5257. CPPFLAGS="$ac_save_CPPFLAGS"
  5258. LIBS="$ac_save_LIBS"
  5259. fi
  5260. fi
  5261. if test "x$no_xml" = x ; then
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5263. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5264. have_libxml2=yes
  5265. else
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5267. $as_echo "no" >&6; }
  5268. if test "$XML2_CONFIG" = "no" ; then
  5269. echo "*** The xml2-config script installed by LIBXML could not be found"
  5270. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5271. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5272. echo "*** full path to xml2-config."
  5273. else
  5274. if test -f conf.xmltest ; then
  5275. :
  5276. else
  5277. echo "*** Could not run libxml test program, checking why..."
  5278. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5279. LIBS="$LIBS $XML_LIBS"
  5280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5281. /* end confdefs.h. */
  5282. #include <libxml/xmlversion.h>
  5283. #include <stdio.h>
  5284. int
  5285. main ()
  5286. {
  5287. LIBXML_TEST_VERSION; return 0;
  5288. ;
  5289. return 0;
  5290. }
  5291. _ACEOF
  5292. if ac_fn_cxx_try_link "$LINENO"; then :
  5293. echo "*** The test program compiled, but did not run. This usually means"
  5294. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5295. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5296. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5297. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5298. echo "*** is required on your system"
  5299. echo "***"
  5300. echo "*** If you have an old version installed, it is best to remove it, although"
  5301. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5302. else
  5303. echo "*** The test program failed to compile or link. See the file config.log for the"
  5304. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5305. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5306. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5307. fi
  5308. rm -f core conftest.err conftest.$ac_objext \
  5309. conftest$ac_exeext conftest.$ac_ext
  5310. CPPFLAGS="$ac_save_CPPFLAGS"
  5311. LIBS="$ac_save_LIBS"
  5312. fi
  5313. fi
  5314. XML_CPPFLAGS=""
  5315. XML_LIBS=""
  5316. :
  5317. fi
  5318. rm -f conf.xmltest
  5319. if test "x$have_libxml2" = "xyes"; then
  5320. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5321. fi
  5322. fi
  5323. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5324. # Check whether --with-libexpat-prefix was given.
  5325. if test "${with_libexpat_prefix+set}" = set; then :
  5326. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5327. else
  5328. libexpat_prefix=""
  5329. fi
  5330. if test "x$libexpat_prefix" = "x"; then
  5331. libexpat_prefix="/usr"
  5332. fi
  5333. libexpat_prefix_lib=$libexpat_prefix/lib
  5334. libexpat_prefix_include=$libexpat_prefix/include
  5335. LIBS_save=$LIBS
  5336. CPPFLAGS_save=$CPPFLAGS
  5337. LIBS="-L$libexpat_prefix_lib $LIBS"
  5338. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5340. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5341. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. ac_check_lib_save_LIBS=$LIBS
  5345. LIBS="-lexpat $LIBS"
  5346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5347. /* end confdefs.h. */
  5348. /* Override any GCC internal prototype to avoid an error.
  5349. Use char because int might match the return type of a GCC
  5350. builtin and then its argument prototype would still apply. */
  5351. #ifdef __cplusplus
  5352. extern "C"
  5353. #endif
  5354. char XML_ParserCreate ();
  5355. int
  5356. main ()
  5357. {
  5358. return XML_ParserCreate ();
  5359. ;
  5360. return 0;
  5361. }
  5362. _ACEOF
  5363. if ac_fn_cxx_try_link "$LINENO"; then :
  5364. ac_cv_lib_expat_XML_ParserCreate=yes
  5365. else
  5366. ac_cv_lib_expat_XML_ParserCreate=no
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext \
  5369. conftest$ac_exeext conftest.$ac_ext
  5370. LIBS=$ac_check_lib_save_LIBS
  5371. fi
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5373. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5374. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5375. have_libexpat=yes
  5376. fi
  5377. if test "x$have_libexpat" = "xyes"; then
  5378. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5379. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5380. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5381. fi
  5382. LIBS=$LIBS_save
  5383. CPPFLAGS=$CPPFLAGS_save
  5384. fi
  5385. if test "x$with_sqlite3" = "xyes"; then
  5386. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5387. if test -n "$ac_tool_prefix"; then
  5388. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5389. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. $as_echo_n "checking for $ac_word... " >&6; }
  5392. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. case $PKG_CONFIG in
  5396. [\\/]* | ?:[\\/]*)
  5397. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5398. ;;
  5399. *)
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH
  5402. do
  5403. IFS=$as_save_IFS
  5404. test -z "$as_dir" && as_dir=.
  5405. for ac_exec_ext in '' $ac_executable_extensions; do
  5406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5407. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5409. break 2
  5410. fi
  5411. done
  5412. done
  5413. IFS=$as_save_IFS
  5414. ;;
  5415. esac
  5416. fi
  5417. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5418. if test -n "$PKG_CONFIG"; then
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5420. $as_echo "$PKG_CONFIG" >&6; }
  5421. else
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5423. $as_echo "no" >&6; }
  5424. fi
  5425. fi
  5426. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5427. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5428. # Extract the first word of "pkg-config", so it can be a program name with args.
  5429. set dummy pkg-config; ac_word=$2
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5431. $as_echo_n "checking for $ac_word... " >&6; }
  5432. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. case $ac_pt_PKG_CONFIG in
  5436. [\\/]* | ?:[\\/]*)
  5437. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5438. ;;
  5439. *)
  5440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5441. for as_dir in $PATH
  5442. do
  5443. IFS=$as_save_IFS
  5444. test -z "$as_dir" && as_dir=.
  5445. for ac_exec_ext in '' $ac_executable_extensions; do
  5446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5447. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5449. break 2
  5450. fi
  5451. done
  5452. done
  5453. IFS=$as_save_IFS
  5454. ;;
  5455. esac
  5456. fi
  5457. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5458. if test -n "$ac_pt_PKG_CONFIG"; then
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5460. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5461. else
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. $as_echo "no" >&6; }
  5464. fi
  5465. if test "x$ac_pt_PKG_CONFIG" = x; then
  5466. PKG_CONFIG=""
  5467. else
  5468. case $cross_compiling:$ac_tool_warned in
  5469. yes:)
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5472. ac_tool_warned=yes ;;
  5473. esac
  5474. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5475. fi
  5476. else
  5477. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5478. fi
  5479. fi
  5480. if test -n "$PKG_CONFIG"; then
  5481. _pkg_min_version=0.9.0
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5483. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5484. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5486. $as_echo "yes" >&6; }
  5487. else
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5489. $as_echo "no" >&6; }
  5490. PKG_CONFIG=""
  5491. fi
  5492. fi
  5493. # Check whether --with-sqlite3-prefix was given.
  5494. if test "${with_sqlite3_prefix+set}" = set; then :
  5495. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5496. else
  5497. sqlite3_prefix=""
  5498. fi
  5499. if test "x$sqlite3_prefix" = "x"; then
  5500. sqlite3_prefix="/usr"
  5501. fi
  5502. LIBS_save=$LIBS
  5503. CPPFLAGS_save=$CPPFLAGS
  5504. pkg_failed=no
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5506. $as_echo_n "checking for SQLITE3... " >&6; }
  5507. if test -n "$PKG_CONFIG"; then
  5508. if test -n "$SQLITE3_CFLAGS"; then
  5509. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5510. else
  5511. if test -n "$PKG_CONFIG" && \
  5512. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5513. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5514. ac_status=$?
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5516. test $ac_status = 0; }; then
  5517. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5518. else
  5519. pkg_failed=yes
  5520. fi
  5521. fi
  5522. else
  5523. pkg_failed=untried
  5524. fi
  5525. if test -n "$PKG_CONFIG"; then
  5526. if test -n "$SQLITE3_LIBS"; then
  5527. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5528. else
  5529. if test -n "$PKG_CONFIG" && \
  5530. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5531. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5532. ac_status=$?
  5533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5534. test $ac_status = 0; }; then
  5535. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5536. else
  5537. pkg_failed=yes
  5538. fi
  5539. fi
  5540. else
  5541. pkg_failed=untried
  5542. fi
  5543. if test $pkg_failed = yes; then
  5544. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5545. _pkg_short_errors_supported=yes
  5546. else
  5547. _pkg_short_errors_supported=no
  5548. fi
  5549. if test $_pkg_short_errors_supported = yes; then
  5550. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5551. else
  5552. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5553. fi
  5554. # Put the nasty error message in config.log where it belongs
  5555. echo "$SQLITE3_PKG_ERRORS" >&5
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5557. $as_echo "no" >&6; }
  5558. have_sqlite3=no
  5559. elif test $pkg_failed = untried; then
  5560. have_sqlite3=no
  5561. else
  5562. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5563. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5565. $as_echo "yes" >&6; }
  5566. have_sqlite3=yes
  5567. fi
  5568. if test "x$have_sqlite3" != "xyes"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5570. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5571. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5572. sqlite3_prefix_include=$sqlite3_prefix/include
  5573. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5574. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5576. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5577. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. ac_check_lib_save_LIBS=$LIBS
  5581. LIBS="-lsqlite3 $LIBS"
  5582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5583. /* end confdefs.h. */
  5584. /* Override any GCC internal prototype to avoid an error.
  5585. Use char because int might match the return type of a GCC
  5586. builtin and then its argument prototype would still apply. */
  5587. #ifdef __cplusplus
  5588. extern "C"
  5589. #endif
  5590. char sqlite3_open ();
  5591. int
  5592. main ()
  5593. {
  5594. return sqlite3_open ();
  5595. ;
  5596. return 0;
  5597. }
  5598. _ACEOF
  5599. if ac_fn_cxx_try_link "$LINENO"; then :
  5600. ac_cv_lib_sqlite3_sqlite3_open=yes
  5601. else
  5602. ac_cv_lib_sqlite3_sqlite3_open=no
  5603. fi
  5604. rm -f core conftest.err conftest.$ac_objext \
  5605. conftest$ac_exeext conftest.$ac_ext
  5606. LIBS=$ac_check_lib_save_LIBS
  5607. fi
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5609. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5610. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5611. have_sqlite3=yes
  5612. fi
  5613. if test "x$have_sqlite3" = "xyes"; then
  5614. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5615. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5616. fi
  5617. fi
  5618. if test "x$have_sqlite3" = "xyes"; then
  5619. LIBS="$SQLITE3_LIBS $LIBS"
  5620. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5621. for ac_func in sqlite3_open_v2
  5622. do :
  5623. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5624. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5625. cat >>confdefs.h <<_ACEOF
  5626. #define HAVE_SQLITE3_OPEN_V2 1
  5627. _ACEOF
  5628. fi
  5629. done
  5630. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5631. fi
  5632. LIBS=$LIBS_save
  5633. CPPFLAGS=$CPPFLAGS_save
  5634. fi
  5635. if test "x$with_gnutls" = "xyes"; then
  5636. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5637. # First check the presence of libgnutls using pkg-config.
  5638. pkg_failed=no
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5640. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5641. if test -n "$PKG_CONFIG"; then
  5642. if test -n "$LIBGNUTLS_CFLAGS"; then
  5643. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5644. else
  5645. if test -n "$PKG_CONFIG" && \
  5646. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5647. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5648. ac_status=$?
  5649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5650. test $ac_status = 0; }; then
  5651. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5652. else
  5653. pkg_failed=yes
  5654. fi
  5655. fi
  5656. else
  5657. pkg_failed=untried
  5658. fi
  5659. if test -n "$PKG_CONFIG"; then
  5660. if test -n "$LIBGNUTLS_LIBS"; then
  5661. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5662. else
  5663. if test -n "$PKG_CONFIG" && \
  5664. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5665. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5666. ac_status=$?
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5668. test $ac_status = 0; }; then
  5669. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5670. else
  5671. pkg_failed=yes
  5672. fi
  5673. fi
  5674. else
  5675. pkg_failed=untried
  5676. fi
  5677. if test $pkg_failed = yes; then
  5678. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5679. _pkg_short_errors_supported=yes
  5680. else
  5681. _pkg_short_errors_supported=no
  5682. fi
  5683. if test $_pkg_short_errors_supported = yes; then
  5684. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5685. else
  5686. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5687. fi
  5688. # Put the nasty error message in config.log where it belongs
  5689. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. have_libgnutls=no
  5693. elif test $pkg_failed = untried; then
  5694. have_libgnutls=no
  5695. else
  5696. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5697. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5699. $as_echo "yes" >&6; }
  5700. have_libgnutls=yes
  5701. fi
  5702. # If no libgnutls found by pkg-config, fall back to old macro
  5703. if test "x$have_libgnutls" = "xno"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5705. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5706. # Check whether --with-libgnutls-prefix was given.
  5707. if test "${with_libgnutls_prefix+set}" = set; then :
  5708. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5709. else
  5710. libgnutls_config_prefix=""
  5711. fi
  5712. if test x$libgnutls_config_prefix != x ; then
  5713. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5714. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5715. fi
  5716. fi
  5717. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5718. set dummy libgnutls-config; ac_word=$2
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5720. $as_echo_n "checking for $ac_word... " >&6; }
  5721. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. case $LIBGNUTLS_CONFIG in
  5725. [\\/]* | ?:[\\/]*)
  5726. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5727. ;;
  5728. *)
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. test -z "$as_dir" && as_dir=.
  5734. for ac_exec_ext in '' $ac_executable_extensions; do
  5735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5736. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5738. break 2
  5739. fi
  5740. done
  5741. done
  5742. IFS=$as_save_IFS
  5743. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5744. ;;
  5745. esac
  5746. fi
  5747. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5748. if test -n "$LIBGNUTLS_CONFIG"; then
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5750. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5751. else
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. fi
  5755. min_libgnutls_version=1.2.9
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5757. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5758. no_libgnutls=""
  5759. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5760. no_libgnutls=yes
  5761. else
  5762. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5763. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5764. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5765. ac_save_CFLAGS="$CFLAGS"
  5766. ac_save_LIBS="$LIBS"
  5767. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5768. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5769. rm -f conf.libgnutlstest
  5770. if test "$cross_compiling" = yes; then :
  5771. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5772. else
  5773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5774. /* end confdefs.h. */
  5775. #include <stdio.h>
  5776. #include <stdlib.h>
  5777. #include <string.h>
  5778. #include <gnutls/gnutls.h>
  5779. int
  5780. main ()
  5781. {
  5782. system ("touch conf.libgnutlstest");
  5783. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5784. {
  5785. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5786. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5787. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5788. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5789. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5790. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5791. printf("*** required on your system.\n");
  5792. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5793. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5794. printf("*** before re-running configure\n");
  5795. }
  5796. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5797. {
  5798. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5799. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5800. }
  5801. else
  5802. {
  5803. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5804. {
  5805. return 0;
  5806. }
  5807. else
  5808. {
  5809. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5810. gnutls_check_version(NULL) );
  5811. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5812. "$min_libgnutls_version" );
  5813. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5814. printf("*** \n");
  5815. printf("*** If you have already installed a sufficiently new version, this error\n");
  5816. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5817. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5818. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5819. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5820. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5821. printf("*** so that the correct libraries are found at run-time))\n");
  5822. }
  5823. }
  5824. return 1;
  5825. }
  5826. _ACEOF
  5827. if ac_fn_cxx_try_run "$LINENO"; then :
  5828. else
  5829. no_libgnutls=yes
  5830. fi
  5831. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5832. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5833. fi
  5834. CFLAGS="$ac_save_CFLAGS"
  5835. LIBS="$ac_save_LIBS"
  5836. fi
  5837. if test "x$no_libgnutls" = x ; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5839. $as_echo "yes" >&6; }
  5840. have_libgnutls=yes
  5841. else
  5842. if test -f conf.libgnutlstest ; then
  5843. :
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5849. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5850. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5851. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5852. echo "*** full path to libgnutls-config."
  5853. else
  5854. if test -f conf.libgnutlstest ; then
  5855. :
  5856. else
  5857. echo "*** Could not run libgnutls test program, checking why..."
  5858. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5859. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5861. /* end confdefs.h. */
  5862. #include <stdio.h>
  5863. #include <stdlib.h>
  5864. #include <string.h>
  5865. #include <gnutls/gnutls.h>
  5866. int
  5867. main ()
  5868. {
  5869. return !!gnutls_check_version(NULL);
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. if ac_fn_cxx_try_link "$LINENO"; then :
  5875. echo "*** The test program compiled, but did not run. This usually means"
  5876. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5877. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5878. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5879. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5880. echo "*** is required on your system"
  5881. echo "***"
  5882. echo "*** If you have an old version installed, it is best to remove it, although"
  5883. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5884. echo "***"
  5885. else
  5886. echo "*** The test program failed to compile or link. See the file config.log for the"
  5887. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5888. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5889. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5890. fi
  5891. rm -f core conftest.err conftest.$ac_objext \
  5892. conftest$ac_exeext conftest.$ac_ext
  5893. CFLAGS="$ac_save_CFLAGS"
  5894. LIBS="$ac_save_LIBS"
  5895. fi
  5896. fi
  5897. LIBGNUTLS_CFLAGS=""
  5898. LIBGNUTLS_LIBS=""
  5899. :
  5900. fi
  5901. rm -f conf.libgnutlstest
  5902. fi
  5903. if test "x$have_libgnutls" = "xyes"; then
  5904. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5905. fi
  5906. fi
  5907. if test "x$have_libgnutls" = "xyes"; then
  5908. # Check whether --with-libgcrypt-prefix was given.
  5909. if test "${with_libgcrypt_prefix+set}" = set; then :
  5910. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5911. else
  5912. libgcrypt_config_prefix=""
  5913. fi
  5914. if test x$libgcrypt_config_prefix != x ; then
  5915. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5916. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5917. fi
  5918. fi
  5919. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5920. set dummy libgcrypt-config; ac_word=$2
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. case $LIBGCRYPT_CONFIG in
  5927. [\\/]* | ?:[\\/]*)
  5928. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5929. ;;
  5930. *)
  5931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5932. for as_dir in $PATH
  5933. do
  5934. IFS=$as_save_IFS
  5935. test -z "$as_dir" && as_dir=.
  5936. for ac_exec_ext in '' $ac_executable_extensions; do
  5937. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5938. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5940. break 2
  5941. fi
  5942. done
  5943. done
  5944. IFS=$as_save_IFS
  5945. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5946. ;;
  5947. esac
  5948. fi
  5949. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5950. if test -n "$LIBGCRYPT_CONFIG"; then
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  5952. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5953. else
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5955. $as_echo "no" >&6; }
  5956. fi
  5957. tmp=1.2.2
  5958. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5959. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5960. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5961. else
  5962. req_libgcrypt_api=0
  5963. min_libgcrypt_version="$tmp"
  5964. fi
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5966. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5967. ok=no
  5968. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5969. req_major=`echo $min_libgcrypt_version | \
  5970. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5971. req_minor=`echo $min_libgcrypt_version | \
  5972. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5973. req_micro=`echo $min_libgcrypt_version | \
  5974. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5975. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5976. major=`echo $libgcrypt_config_version | \
  5977. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5978. minor=`echo $libgcrypt_config_version | \
  5979. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5980. micro=`echo $libgcrypt_config_version | \
  5981. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5982. if test "$major" -gt "$req_major"; then
  5983. ok=yes
  5984. else
  5985. if test "$major" -eq "$req_major"; then
  5986. if test "$minor" -gt "$req_minor"; then
  5987. ok=yes
  5988. else
  5989. if test "$minor" -eq "$req_minor"; then
  5990. if test "$micro" -ge "$req_micro"; then
  5991. ok=yes
  5992. fi
  5993. fi
  5994. fi
  5995. fi
  5996. fi
  5997. fi
  5998. if test $ok = yes; then
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6000. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. if test $ok = yes; then
  6006. # If we have a recent libgcrypt, we should also check that the
  6007. # API is compatible
  6008. if test "$req_libgcrypt_api" -gt 0 ; then
  6009. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6010. if test "$tmp" -gt 0 ; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6012. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6013. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6015. $as_echo "okay" >&6; }
  6016. else
  6017. ok=no
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6019. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6020. fi
  6021. fi
  6022. fi
  6023. fi
  6024. if test $ok = yes; then
  6025. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6026. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6027. have_libgcrypt=yes
  6028. else
  6029. LIBGCRYPT_CFLAGS=""
  6030. LIBGCRYPT_LIBS=""
  6031. :
  6032. fi
  6033. if test "x$have_libgcrypt" = "xyes"; then
  6034. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6035. fi
  6036. fi
  6037. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6038. # Check whether --with-openssl-prefix was given.
  6039. if test "${with_openssl_prefix+set}" = set; then :
  6040. withval=$with_openssl_prefix; openssl_prefix=$withval
  6041. else
  6042. openssl_prefix=""
  6043. fi
  6044. if test "x$openssl_prefix" = "x"; then
  6045. openssl_prefix="/usr/local"
  6046. fi
  6047. LIBS_save=$LIBS
  6048. CPPFLAGS_save=$CPPFLAGS
  6049. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6050. if test -x $PKG_CONFIG; then
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6052. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6053. $PKG_CONFIG --exists openssl
  6054. if test "$?" = "0"; then
  6055. # Use pkg-config to detect LIBS and CFLAGS
  6056. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6057. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6058. LIBS="$OPENSSL_LIBS $LIBS"
  6059. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6060. have_openssl=yes
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6062. $as_echo "yes" >&6; }
  6063. else
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6065. $as_echo "no" >&6; }
  6066. fi
  6067. fi
  6068. if test "x$have_openssl" != "xyes"; then
  6069. openssl_prefix_lib=$openssl_prefix/lib
  6070. openssl_prefix_include=$openssl_prefix/include
  6071. LIBS="-L$openssl_prefix_lib $LIBS"
  6072. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6074. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6075. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. ac_check_lib_save_LIBS=$LIBS
  6079. LIBS="-lssl $LIBS"
  6080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end confdefs.h. */
  6082. /* Override any GCC internal prototype to avoid an error.
  6083. Use char because int might match the return type of a GCC
  6084. builtin and then its argument prototype would still apply. */
  6085. #ifdef __cplusplus
  6086. extern "C"
  6087. #endif
  6088. char SSL_library_init ();
  6089. int
  6090. main ()
  6091. {
  6092. return SSL_library_init ();
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. if ac_fn_cxx_try_link "$LINENO"; then :
  6098. ac_cv_lib_ssl_SSL_library_init=yes
  6099. else
  6100. ac_cv_lib_ssl_SSL_library_init=no
  6101. fi
  6102. rm -f core conftest.err conftest.$ac_objext \
  6103. conftest$ac_exeext conftest.$ac_ext
  6104. LIBS=$ac_check_lib_save_LIBS
  6105. fi
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6107. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6108. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6109. have_openssl=yes LIBS="-lssl $LIBS"
  6110. fi
  6111. if test "x$have_openssl" = "xyes"; then
  6112. have_openssl=no
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6114. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6115. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. ac_check_lib_save_LIBS=$LIBS
  6119. LIBS="-lcrypto $LIBS"
  6120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6121. /* end confdefs.h. */
  6122. int
  6123. main ()
  6124. {
  6125. return main ();
  6126. ;
  6127. return 0;
  6128. }
  6129. _ACEOF
  6130. if ac_fn_cxx_try_link "$LINENO"; then :
  6131. ac_cv_lib_crypto_main=yes
  6132. else
  6133. ac_cv_lib_crypto_main=no
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext \
  6136. conftest$ac_exeext conftest.$ac_ext
  6137. LIBS=$ac_check_lib_save_LIBS
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6140. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6141. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6142. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6143. fi
  6144. if test "x$have_openssl" = "xyes"; then
  6145. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6146. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6147. fi
  6148. fi
  6149. fi
  6150. if test "x$have_openssl" = "xyes"; then
  6151. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6152. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6153. for ac_func in EVP_DigestInit_ex
  6154. do :
  6155. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6156. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6157. cat >>confdefs.h <<_ACEOF
  6158. #define HAVE_EVP_DIGESTINIT_EX 1
  6159. _ACEOF
  6160. have_digestinit_ex=yes
  6161. fi
  6162. done
  6163. if test "x$have_digestinit_ex" = "x"; then
  6164. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6165. fi
  6166. # search for sha256 support
  6167. for ac_func in EVP_sha256
  6168. do :
  6169. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6170. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6171. cat >>confdefs.h <<_ACEOF
  6172. #define HAVE_EVP_SHA256 1
  6173. _ACEOF
  6174. fi
  6175. done
  6176. fi
  6177. LIBS=$LIBS_save
  6178. CPPFLAGS=$CPPFLAGS_save
  6179. fi
  6180. if test "x$with_libcares" = "xyes"; then
  6181. # Check whether --with-libcares-prefix was given.
  6182. if test "${with_libcares_prefix+set}" = set; then :
  6183. withval=$with_libcares_prefix; libcares_prefix=$withval
  6184. else
  6185. libcares_prefix=""
  6186. fi
  6187. if test "x$libcares_prefix" = "x"; then
  6188. libcares_prefix="/usr"
  6189. fi
  6190. libcares_prefix_lib=$libcares_prefix/lib
  6191. libcares_prefix_include=$libcares_prefix/include
  6192. LIBS_save=$LIBS
  6193. CPPFLAGS_save=$CPPFLAGS
  6194. LIBS="-L$libcares_prefix_lib $LIBS"
  6195. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6197. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6198. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6199. $as_echo_n "(cached) " >&6
  6200. else
  6201. ac_check_lib_save_LIBS=$LIBS
  6202. LIBS="-lcares $LIBS"
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. /* Override any GCC internal prototype to avoid an error.
  6206. Use char because int might match the return type of a GCC
  6207. builtin and then its argument prototype would still apply. */
  6208. #ifdef __cplusplus
  6209. extern "C"
  6210. #endif
  6211. char ares_init ();
  6212. int
  6213. main ()
  6214. {
  6215. return ares_init ();
  6216. ;
  6217. return 0;
  6218. }
  6219. _ACEOF
  6220. if ac_fn_cxx_try_link "$LINENO"; then :
  6221. ac_cv_lib_cares_ares_init=yes
  6222. else
  6223. ac_cv_lib_cares_ares_init=no
  6224. fi
  6225. rm -f core conftest.err conftest.$ac_objext \
  6226. conftest$ac_exeext conftest.$ac_ext
  6227. LIBS=$ac_check_lib_save_LIBS
  6228. fi
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6230. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6231. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6232. have_libcares=yes
  6233. fi
  6234. if test "x$have_libcares" != "xyes"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6236. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6237. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6238. $as_echo_n "(cached) " >&6
  6239. else
  6240. ac_check_lib_save_LIBS=$LIBS
  6241. LIBS="-lcares -lrt $LIBS"
  6242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6243. /* end confdefs.h. */
  6244. /* Override any GCC internal prototype to avoid an error.
  6245. Use char because int might match the return type of a GCC
  6246. builtin and then its argument prototype would still apply. */
  6247. #ifdef __cplusplus
  6248. extern "C"
  6249. #endif
  6250. char ares_init ();
  6251. int
  6252. main ()
  6253. {
  6254. return ares_init ();
  6255. ;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. if ac_fn_cxx_try_link "$LINENO"; then :
  6260. ac_cv_lib_cares_ares_init=yes
  6261. else
  6262. ac_cv_lib_cares_ares_init=no
  6263. fi
  6264. rm -f core conftest.err conftest.$ac_objext \
  6265. conftest$ac_exeext conftest.$ac_ext
  6266. LIBS=$ac_check_lib_save_LIBS
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6269. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6270. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6271. have_libcares=yes need_librt=yes
  6272. fi
  6273. fi
  6274. if test "x$have_libcares" = "xyes"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6276. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6278. /* end confdefs.h. */
  6279. #include <ares.h>
  6280. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6281. int
  6282. main ()
  6283. {
  6284. ares_channel channel;
  6285. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_compile "$LINENO"; then :
  6291. have_libcares1_5=yes
  6292. else
  6293. have_libcares1_5=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6297. $as_echo "$have_libcares1_5" >&6; }
  6298. if test "x$have_libcares1_5" = "xyes"; then
  6299. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6300. fi
  6301. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6302. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6303. if test "x$need_librt" = "xyes"; then
  6304. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6305. fi
  6306. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6307. fi
  6308. LIBS=$LIBS_save
  6309. CPPFLAGS=$CPPFLAGS_save
  6310. fi
  6311. # Check availability of libz
  6312. if test "x$with_libz" = "xyes"; then
  6313. # Check whether --with-libz-prefix was given.
  6314. if test "${with_libz_prefix+set}" = set; then :
  6315. withval=$with_libz_prefix; libz_prefix=$withval
  6316. else
  6317. libz_prefix=""
  6318. fi
  6319. if test "x$libz_prefix" = "x"; then
  6320. libz_prefix="/usr"
  6321. fi
  6322. libz_prefix_lib=$libz_prefix/lib
  6323. libz_prefix_include=$libz_prefix/include
  6324. LIBS_save=$LIBS
  6325. CPPFLAGS_save=$CPPFLAGS
  6326. LIBS="-L$libz_prefix_lib $LIBS"
  6327. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6329. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6330. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. ac_check_lib_save_LIBS=$LIBS
  6334. LIBS="-lz $LIBS"
  6335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6336. /* end confdefs.h. */
  6337. /* Override any GCC internal prototype to avoid an error.
  6338. Use char because int might match the return type of a GCC
  6339. builtin and then its argument prototype would still apply. */
  6340. #ifdef __cplusplus
  6341. extern "C"
  6342. #endif
  6343. char zlibVersion ();
  6344. int
  6345. main ()
  6346. {
  6347. return zlibVersion ();
  6348. ;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. if ac_fn_cxx_try_link "$LINENO"; then :
  6353. ac_cv_lib_z_zlibVersion=yes
  6354. else
  6355. ac_cv_lib_z_zlibVersion=no
  6356. fi
  6357. rm -f core conftest.err conftest.$ac_objext \
  6358. conftest$ac_exeext conftest.$ac_ext
  6359. LIBS=$ac_check_lib_save_LIBS
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6362. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6363. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6364. have_libz=yes
  6365. fi
  6366. if test "x$have_libz" = "xyes"; then
  6367. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6368. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6369. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6370. fi
  6371. LIBS=$LIBS_save
  6372. CPPFLAGS=$CPPFLAGS_save
  6373. fi
  6374. # Define variables based on the result of the checks for libraries.
  6375. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6376. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6377. if true; then
  6378. ENABLE_SSL_TRUE=
  6379. ENABLE_SSL_FALSE='#'
  6380. else
  6381. ENABLE_SSL_TRUE='#'
  6382. ENABLE_SSL_FALSE=
  6383. fi
  6384. else
  6385. if false; then
  6386. ENABLE_SSL_TRUE=
  6387. ENABLE_SSL_FALSE='#'
  6388. else
  6389. ENABLE_SSL_TRUE='#'
  6390. ENABLE_SSL_FALSE=
  6391. fi
  6392. fi
  6393. if test "x$have_libgnutls" = "xyes" ; then
  6394. HAVE_LIBGNUTLS_TRUE=
  6395. HAVE_LIBGNUTLS_FALSE='#'
  6396. else
  6397. HAVE_LIBGNUTLS_TRUE='#'
  6398. HAVE_LIBGNUTLS_FALSE=
  6399. fi
  6400. if test "x$have_openssl" = "xyes" ; then
  6401. HAVE_LIBSSL_TRUE=
  6402. HAVE_LIBSSL_FALSE='#'
  6403. else
  6404. HAVE_LIBSSL_TRUE='#'
  6405. HAVE_LIBSSL_FALSE=
  6406. fi
  6407. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6408. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6409. if true; then
  6410. ENABLE_MESSAGE_DIGEST_TRUE=
  6411. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6412. else
  6413. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6414. ENABLE_MESSAGE_DIGEST_FALSE=
  6415. fi
  6416. enable_message_digest=yes
  6417. else
  6418. if false; then
  6419. ENABLE_MESSAGE_DIGEST_TRUE=
  6420. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6421. else
  6422. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6423. ENABLE_MESSAGE_DIGEST_FALSE=
  6424. fi
  6425. fi
  6426. if test "x$enable_bittorrent" = "xyes" &&
  6427. test "x$enable_message_digest" = "xyes"; then
  6428. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6429. if true; then
  6430. ENABLE_BITTORRENT_TRUE=
  6431. ENABLE_BITTORRENT_FALSE='#'
  6432. else
  6433. ENABLE_BITTORRENT_TRUE='#'
  6434. ENABLE_BITTORRENT_FALSE=
  6435. fi
  6436. else
  6437. enable_bittorrent=no
  6438. if false; then
  6439. ENABLE_BITTORRENT_TRUE=
  6440. ENABLE_BITTORRENT_FALSE='#'
  6441. else
  6442. ENABLE_BITTORRENT_TRUE='#'
  6443. ENABLE_BITTORRENT_FALSE=
  6444. fi
  6445. fi
  6446. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6447. test "x$enable_metalink" = "xyes"; then
  6448. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6449. if true; then
  6450. ENABLE_METALINK_TRUE=
  6451. ENABLE_METALINK_FALSE='#'
  6452. else
  6453. ENABLE_METALINK_TRUE='#'
  6454. ENABLE_METALINK_FALSE=
  6455. fi
  6456. else
  6457. enable_metalink=no
  6458. if false; then
  6459. ENABLE_METALINK_TRUE=
  6460. ENABLE_METALINK_FALSE='#'
  6461. else
  6462. ENABLE_METALINK_TRUE='#'
  6463. ENABLE_METALINK_FALSE=
  6464. fi
  6465. fi
  6466. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6467. ENABLE_METALINK_LIBXML2_TRUE=
  6468. ENABLE_METALINK_LIBXML2_FALSE='#'
  6469. else
  6470. ENABLE_METALINK_LIBXML2_TRUE='#'
  6471. ENABLE_METALINK_LIBXML2_FALSE=
  6472. fi
  6473. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6474. ENABLE_METALINK_LIBEXPAT_TRUE=
  6475. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6476. else
  6477. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6478. ENABLE_METALINK_LIBEXPAT_FALSE=
  6479. fi
  6480. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6481. enable_xml_rpc=yes
  6482. fi
  6483. if test "x$enable_xml_rpc" = "xyes"; then
  6484. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6485. fi
  6486. if test "x$enable_xml_rpc" = "xyes"; then
  6487. ENABLE_XML_RPC_TRUE=
  6488. ENABLE_XML_RPC_FALSE='#'
  6489. else
  6490. ENABLE_XML_RPC_TRUE='#'
  6491. ENABLE_XML_RPC_FALSE=
  6492. fi
  6493. if test "x$have_libxml2" = "xyes"; then
  6494. HAVE_LIBXML2_TRUE=
  6495. HAVE_LIBXML2_FALSE='#'
  6496. else
  6497. HAVE_LIBXML2_TRUE='#'
  6498. HAVE_LIBXML2_FALSE=
  6499. fi
  6500. if test "x$have_libexpat" = "xyes"; then
  6501. HAVE_LIBEXPAT_TRUE=
  6502. HAVE_LIBEXPAT_FALSE='#'
  6503. else
  6504. HAVE_LIBEXPAT_TRUE='#'
  6505. HAVE_LIBEXPAT_FALSE=
  6506. fi
  6507. if test "x$have_libcares" = "xyes"; then
  6508. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6509. if true; then
  6510. ENABLE_ASYNC_DNS_TRUE=
  6511. ENABLE_ASYNC_DNS_FALSE='#'
  6512. else
  6513. ENABLE_ASYNC_DNS_TRUE='#'
  6514. ENABLE_ASYNC_DNS_FALSE=
  6515. fi
  6516. else
  6517. if false; then
  6518. ENABLE_ASYNC_DNS_TRUE=
  6519. ENABLE_ASYNC_DNS_FALSE='#'
  6520. else
  6521. ENABLE_ASYNC_DNS_TRUE='#'
  6522. ENABLE_ASYNC_DNS_FALSE=
  6523. fi
  6524. fi
  6525. # Set conditional for libz
  6526. if test "x$have_libz" = "xyes"; then
  6527. HAVE_LIBZ_TRUE=
  6528. HAVE_LIBZ_FALSE='#'
  6529. else
  6530. HAVE_LIBZ_TRUE='#'
  6531. HAVE_LIBZ_FALSE=
  6532. fi
  6533. # Set conditional for sqlite3
  6534. if test "x$have_sqlite3" = "xyes"; then
  6535. HAVE_SQLITE3_TRUE=
  6536. HAVE_SQLITE3_FALSE='#'
  6537. else
  6538. HAVE_SQLITE3_TRUE='#'
  6539. HAVE_SQLITE3_FALSE=
  6540. fi
  6541. # Checks for header files.
  6542. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6543. # for constant arguments. Useless!
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6545. $as_echo_n "checking for working alloca.h... " >&6; }
  6546. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. #include <alloca.h>
  6552. int
  6553. main ()
  6554. {
  6555. char *p = (char *) alloca (2 * sizeof (int));
  6556. if (p) return 0;
  6557. ;
  6558. return 0;
  6559. }
  6560. _ACEOF
  6561. if ac_fn_cxx_try_link "$LINENO"; then :
  6562. ac_cv_working_alloca_h=yes
  6563. else
  6564. ac_cv_working_alloca_h=no
  6565. fi
  6566. rm -f core conftest.err conftest.$ac_objext \
  6567. conftest$ac_exeext conftest.$ac_ext
  6568. fi
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6570. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6571. if test $ac_cv_working_alloca_h = yes; then
  6572. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6573. fi
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6575. $as_echo_n "checking for alloca... " >&6; }
  6576. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6580. /* end confdefs.h. */
  6581. #ifdef __GNUC__
  6582. # define alloca __builtin_alloca
  6583. #else
  6584. # ifdef _MSC_VER
  6585. # include <malloc.h>
  6586. # define alloca _alloca
  6587. # else
  6588. # ifdef HAVE_ALLOCA_H
  6589. # include <alloca.h>
  6590. # else
  6591. # ifdef _AIX
  6592. #pragma alloca
  6593. # else
  6594. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6595. char *alloca ();
  6596. # endif
  6597. # endif
  6598. # endif
  6599. # endif
  6600. #endif
  6601. int
  6602. main ()
  6603. {
  6604. char *p = (char *) alloca (1);
  6605. if (p) return 0;
  6606. ;
  6607. return 0;
  6608. }
  6609. _ACEOF
  6610. if ac_fn_cxx_try_link "$LINENO"; then :
  6611. ac_cv_func_alloca_works=yes
  6612. else
  6613. ac_cv_func_alloca_works=no
  6614. fi
  6615. rm -f core conftest.err conftest.$ac_objext \
  6616. conftest$ac_exeext conftest.$ac_ext
  6617. fi
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6619. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6620. if test $ac_cv_func_alloca_works = yes; then
  6621. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6622. else
  6623. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6624. # that cause trouble. Some versions do not even contain alloca or
  6625. # contain a buggy version. If you still want to use their alloca,
  6626. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6627. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6628. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6630. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6631. if test "${ac_cv_os_cray+set}" = set; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6635. /* end confdefs.h. */
  6636. #if defined CRAY && ! defined CRAY2
  6637. webecray
  6638. #else
  6639. wenotbecray
  6640. #endif
  6641. _ACEOF
  6642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6643. $EGREP "webecray" >/dev/null 2>&1; then :
  6644. ac_cv_os_cray=yes
  6645. else
  6646. ac_cv_os_cray=no
  6647. fi
  6648. rm -f conftest*
  6649. fi
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6651. $as_echo "$ac_cv_os_cray" >&6; }
  6652. if test $ac_cv_os_cray = yes; then
  6653. for ac_func in _getb67 GETB67 getb67; do
  6654. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6655. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6656. eval as_val=\$$as_ac_var
  6657. if test "x$as_val" = x""yes; then :
  6658. cat >>confdefs.h <<_ACEOF
  6659. #define CRAY_STACKSEG_END $ac_func
  6660. _ACEOF
  6661. break
  6662. fi
  6663. done
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6666. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6667. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6668. $as_echo_n "(cached) " >&6
  6669. else
  6670. if test "$cross_compiling" = yes; then :
  6671. ac_cv_c_stack_direction=0
  6672. else
  6673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6674. /* end confdefs.h. */
  6675. $ac_includes_default
  6676. int
  6677. find_stack_direction ()
  6678. {
  6679. static char *addr = 0;
  6680. auto char dummy;
  6681. if (addr == 0)
  6682. {
  6683. addr = &dummy;
  6684. return find_stack_direction ();
  6685. }
  6686. else
  6687. return (&dummy > addr) ? 1 : -1;
  6688. }
  6689. int
  6690. main ()
  6691. {
  6692. return find_stack_direction () < 0;
  6693. }
  6694. _ACEOF
  6695. if ac_fn_cxx_try_run "$LINENO"; then :
  6696. ac_cv_c_stack_direction=1
  6697. else
  6698. ac_cv_c_stack_direction=-1
  6699. fi
  6700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6701. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6702. fi
  6703. fi
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6705. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6706. cat >>confdefs.h <<_ACEOF
  6707. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6708. _ACEOF
  6709. fi
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6711. $as_echo_n "checking for ANSI C header files... " >&6; }
  6712. if test "${ac_cv_header_stdc+set}" = set; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6716. /* end confdefs.h. */
  6717. #include <stdlib.h>
  6718. #include <stdarg.h>
  6719. #include <string.h>
  6720. #include <float.h>
  6721. int
  6722. main ()
  6723. {
  6724. ;
  6725. return 0;
  6726. }
  6727. _ACEOF
  6728. if ac_fn_cxx_try_compile "$LINENO"; then :
  6729. ac_cv_header_stdc=yes
  6730. else
  6731. ac_cv_header_stdc=no
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6734. if test $ac_cv_header_stdc = yes; then
  6735. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6737. /* end confdefs.h. */
  6738. #include <string.h>
  6739. _ACEOF
  6740. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6741. $EGREP "memchr" >/dev/null 2>&1; then :
  6742. else
  6743. ac_cv_header_stdc=no
  6744. fi
  6745. rm -f conftest*
  6746. fi
  6747. if test $ac_cv_header_stdc = yes; then
  6748. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6750. /* end confdefs.h. */
  6751. #include <stdlib.h>
  6752. _ACEOF
  6753. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6754. $EGREP "free" >/dev/null 2>&1; then :
  6755. else
  6756. ac_cv_header_stdc=no
  6757. fi
  6758. rm -f conftest*
  6759. fi
  6760. if test $ac_cv_header_stdc = yes; then
  6761. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6762. if test "$cross_compiling" = yes; then :
  6763. :
  6764. else
  6765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6766. /* end confdefs.h. */
  6767. #include <ctype.h>
  6768. #include <stdlib.h>
  6769. #if ((' ' & 0x0FF) == 0x020)
  6770. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6771. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6772. #else
  6773. # define ISLOWER(c) \
  6774. (('a' <= (c) && (c) <= 'i') \
  6775. || ('j' <= (c) && (c) <= 'r') \
  6776. || ('s' <= (c) && (c) <= 'z'))
  6777. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6778. #endif
  6779. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6780. int
  6781. main ()
  6782. {
  6783. int i;
  6784. for (i = 0; i < 256; i++)
  6785. if (XOR (islower (i), ISLOWER (i))
  6786. || toupper (i) != TOUPPER (i))
  6787. return 2;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. if ac_fn_cxx_try_run "$LINENO"; then :
  6792. else
  6793. ac_cv_header_stdc=no
  6794. fi
  6795. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6796. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6797. fi
  6798. fi
  6799. fi
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6801. $as_echo "$ac_cv_header_stdc" >&6; }
  6802. if test $ac_cv_header_stdc = yes; then
  6803. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6804. fi
  6805. case "$target" in
  6806. *mingw*)
  6807. for ac_header in winsock2.h \
  6808. ws2tcpip.h
  6809. do :
  6810. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6811. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6812. eval as_val=\$$as_ac_Header
  6813. if test "x$as_val" = x""yes; then :
  6814. cat >>confdefs.h <<_ACEOF
  6815. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6816. _ACEOF
  6817. fi
  6818. done
  6819. ;;
  6820. esac
  6821. for ac_header in argz.h \
  6822. arpa/inet.h \
  6823. fcntl.h \
  6824. float.h \
  6825. inttypes.h \
  6826. io.h \
  6827. langinfo.h \
  6828. libintl.h \
  6829. limits.h \
  6830. locale.h \
  6831. malloc.h \
  6832. netdb.h \
  6833. netinet/in.h \
  6834. stddef.h \
  6835. stdint.h \
  6836. stdio_ext.h \
  6837. stdlib.h \
  6838. string.h \
  6839. strings.h \
  6840. sys/ioctl.h \
  6841. sys/param.h \
  6842. sys/socket.h \
  6843. sys/time.h \
  6844. termios.h \
  6845. unistd.h \
  6846. wchar.h
  6847. do :
  6848. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6849. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6850. eval as_val=\$$as_ac_Header
  6851. if test "x$as_val" = x""yes; then :
  6852. cat >>confdefs.h <<_ACEOF
  6853. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6854. _ACEOF
  6855. fi
  6856. done
  6857. # Checks for typedefs, structures, and compiler characteristics.
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6859. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6860. if test "${ac_cv_header_stdbool_h+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 <stdbool.h>
  6866. #ifndef bool
  6867. "error: bool is not defined"
  6868. #endif
  6869. #ifndef false
  6870. "error: false is not defined"
  6871. #endif
  6872. #if false
  6873. "error: false is not 0"
  6874. #endif
  6875. #ifndef true
  6876. "error: true is not defined"
  6877. #endif
  6878. #if true != 1
  6879. "error: true is not 1"
  6880. #endif
  6881. #ifndef __bool_true_false_are_defined
  6882. "error: __bool_true_false_are_defined is not defined"
  6883. #endif
  6884. struct s { _Bool s: 1; _Bool t; } s;
  6885. char a[true == 1 ? 1 : -1];
  6886. char b[false == 0 ? 1 : -1];
  6887. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6888. char d[(bool) 0.5 == true ? 1 : -1];
  6889. bool e = &s;
  6890. char f[(_Bool) 0.0 == false ? 1 : -1];
  6891. char g[true];
  6892. char h[sizeof (_Bool)];
  6893. char i[sizeof s.t];
  6894. enum { j = false, k = true, l = false * true, m = true * 256 };
  6895. /* The following fails for
  6896. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6897. _Bool n[m];
  6898. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6899. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6900. # if defined __xlc__ || defined __GNUC__
  6901. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6902. reported by James Lemley on 2005-10-05; see
  6903. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6904. This test is not quite right, since xlc is allowed to
  6905. reject this program, as the initializer for xlcbug is
  6906. not one of the forms that C requires support for.
  6907. However, doing the test right would require a runtime
  6908. test, and that would make cross-compilation harder.
  6909. Let us hope that IBM fixes the xlc bug, and also adds
  6910. support for this kind of constant expression. In the
  6911. meantime, this test will reject xlc, which is OK, since
  6912. our stdbool.h substitute should suffice. We also test
  6913. this with GCC, where it should work, to detect more
  6914. quickly whether someone messes up the test in the
  6915. future. */
  6916. char digs[] = "0123456789";
  6917. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6918. # endif
  6919. /* Catch a bug in an HP-UX C compiler. See
  6920. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6921. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6922. */
  6923. _Bool q = true;
  6924. _Bool *pq = &q;
  6925. int
  6926. main ()
  6927. {
  6928. *pq |= q;
  6929. *pq |= ! q;
  6930. /* Refer to every declared value, to avoid compiler optimizations. */
  6931. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6932. + !m + !n + !o + !p + !q + !pq);
  6933. ;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. if ac_fn_cxx_try_compile "$LINENO"; then :
  6938. ac_cv_header_stdbool_h=yes
  6939. else
  6940. ac_cv_header_stdbool_h=no
  6941. fi
  6942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6943. fi
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  6945. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  6946. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  6947. if test "x$ac_cv_type__Bool" = x""yes; then :
  6948. cat >>confdefs.h <<_ACEOF
  6949. #define HAVE__BOOL 1
  6950. _ACEOF
  6951. fi
  6952. if test $ac_cv_header_stdbool_h = yes; then
  6953. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6956. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6957. if test "${ac_cv_c_const+set}" = set; then :
  6958. $as_echo_n "(cached) " >&6
  6959. else
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. int
  6963. main ()
  6964. {
  6965. /* FIXME: Include the comments suggested by Paul. */
  6966. #ifndef __cplusplus
  6967. /* Ultrix mips cc rejects this. */
  6968. typedef int charset[2];
  6969. const charset cs;
  6970. /* SunOS 4.1.1 cc rejects this. */
  6971. char const *const *pcpcc;
  6972. char **ppc;
  6973. /* NEC SVR4.0.2 mips cc rejects this. */
  6974. struct point {int x, y;};
  6975. static struct point const zero = {0,0};
  6976. /* AIX XL C 1.02.0.0 rejects this.
  6977. It does not let you subtract one const X* pointer from another in
  6978. an arm of an if-expression whose if-part is not a constant
  6979. expression */
  6980. const char *g = "string";
  6981. pcpcc = &g + (g ? g-g : 0);
  6982. /* HPUX 7.0 cc rejects these. */
  6983. ++pcpcc;
  6984. ppc = (char**) pcpcc;
  6985. pcpcc = (char const *const *) ppc;
  6986. { /* SCO 3.2v4 cc rejects this. */
  6987. char *t;
  6988. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6989. *t++ = 0;
  6990. if (s) return 0;
  6991. }
  6992. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6993. int x[] = {25, 17};
  6994. const int *foo = &x[0];
  6995. ++foo;
  6996. }
  6997. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6998. typedef const int *iptr;
  6999. iptr p = 0;
  7000. ++p;
  7001. }
  7002. { /* AIX XL C 1.02.0.0 rejects this saying
  7003. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7004. struct s { int j; const int *ap[3]; };
  7005. struct s *b; b->j = 5;
  7006. }
  7007. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7008. const int foo = 10;
  7009. if (!foo) return 0;
  7010. }
  7011. return !cs[0] && !zero.x;
  7012. #endif
  7013. ;
  7014. return 0;
  7015. }
  7016. _ACEOF
  7017. if ac_fn_cxx_try_compile "$LINENO"; then :
  7018. ac_cv_c_const=yes
  7019. else
  7020. ac_cv_c_const=no
  7021. fi
  7022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7025. $as_echo "$ac_cv_c_const" >&6; }
  7026. if test $ac_cv_c_const = no; then
  7027. $as_echo "#define const /**/" >>confdefs.h
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7030. $as_echo_n "checking for inline... " >&6; }
  7031. if test "${ac_cv_c_inline+set}" = set; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. ac_cv_c_inline=no
  7035. for ac_kw in inline __inline__ __inline; do
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. #ifndef __cplusplus
  7039. typedef int foo_t;
  7040. static $ac_kw foo_t static_foo () {return 0; }
  7041. $ac_kw foo_t foo () {return 0; }
  7042. #endif
  7043. _ACEOF
  7044. if ac_fn_cxx_try_compile "$LINENO"; then :
  7045. ac_cv_c_inline=$ac_kw
  7046. fi
  7047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7048. test "$ac_cv_c_inline" != no && break
  7049. done
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7052. $as_echo "$ac_cv_c_inline" >&6; }
  7053. case $ac_cv_c_inline in
  7054. inline | yes) ;;
  7055. *)
  7056. case $ac_cv_c_inline in
  7057. no) ac_val=;;
  7058. *) ac_val=$ac_cv_c_inline;;
  7059. esac
  7060. cat >>confdefs.h <<_ACEOF
  7061. #ifndef __cplusplus
  7062. #define inline $ac_val
  7063. #endif
  7064. _ACEOF
  7065. ;;
  7066. esac
  7067. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7068. case $ac_cv_c_int16_t in #(
  7069. no|yes) ;; #(
  7070. *)
  7071. cat >>confdefs.h <<_ACEOF
  7072. #define int16_t $ac_cv_c_int16_t
  7073. _ACEOF
  7074. ;;
  7075. esac
  7076. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7077. case $ac_cv_c_int32_t in #(
  7078. no|yes) ;; #(
  7079. *)
  7080. cat >>confdefs.h <<_ACEOF
  7081. #define int32_t $ac_cv_c_int32_t
  7082. _ACEOF
  7083. ;;
  7084. esac
  7085. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7086. case $ac_cv_c_int64_t in #(
  7087. no|yes) ;; #(
  7088. *)
  7089. cat >>confdefs.h <<_ACEOF
  7090. #define int64_t $ac_cv_c_int64_t
  7091. _ACEOF
  7092. ;;
  7093. esac
  7094. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7095. case $ac_cv_c_int8_t in #(
  7096. no|yes) ;; #(
  7097. *)
  7098. cat >>confdefs.h <<_ACEOF
  7099. #define int8_t $ac_cv_c_int8_t
  7100. _ACEOF
  7101. ;;
  7102. esac
  7103. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7104. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7105. else
  7106. cat >>confdefs.h <<_ACEOF
  7107. #define mode_t int
  7108. _ACEOF
  7109. fi
  7110. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7111. if test "x$ac_cv_type_off_t" = x""yes; then :
  7112. else
  7113. cat >>confdefs.h <<_ACEOF
  7114. #define off_t long int
  7115. _ACEOF
  7116. fi
  7117. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7118. if test "x$ac_cv_type_size_t" = x""yes; then :
  7119. else
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define size_t unsigned int
  7122. _ACEOF
  7123. fi
  7124. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7125. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7126. else
  7127. cat >>confdefs.h <<_ACEOF
  7128. #define ssize_t int
  7129. _ACEOF
  7130. fi
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7132. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7133. if test "${ac_cv_header_time+set}" = set; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7137. /* end confdefs.h. */
  7138. #include <sys/types.h>
  7139. #include <sys/time.h>
  7140. #include <time.h>
  7141. int
  7142. main ()
  7143. {
  7144. if ((struct tm *) 0)
  7145. return 0;
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_cxx_try_compile "$LINENO"; then :
  7151. ac_cv_header_time=yes
  7152. else
  7153. ac_cv_header_time=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. fi
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7158. $as_echo "$ac_cv_header_time" >&6; }
  7159. if test $ac_cv_header_time = yes; then
  7160. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7163. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7164. if test "${ac_cv_struct_tm+set}" = set; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7168. /* end confdefs.h. */
  7169. #include <sys/types.h>
  7170. #include <time.h>
  7171. int
  7172. main ()
  7173. {
  7174. struct tm tm;
  7175. int *p = &tm.tm_sec;
  7176. return !p;
  7177. ;
  7178. return 0;
  7179. }
  7180. _ACEOF
  7181. if ac_fn_cxx_try_compile "$LINENO"; then :
  7182. ac_cv_struct_tm=time.h
  7183. else
  7184. ac_cv_struct_tm=sys/time.h
  7185. fi
  7186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7189. $as_echo "$ac_cv_struct_tm" >&6; }
  7190. if test $ac_cv_struct_tm = sys/time.h; then
  7191. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7192. fi
  7193. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7194. case $ac_cv_c_uint16_t in #(
  7195. no|yes) ;; #(
  7196. *)
  7197. cat >>confdefs.h <<_ACEOF
  7198. #define uint16_t $ac_cv_c_uint16_t
  7199. _ACEOF
  7200. ;;
  7201. esac
  7202. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7203. case $ac_cv_c_uint32_t in #(
  7204. no|yes) ;; #(
  7205. *)
  7206. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7207. cat >>confdefs.h <<_ACEOF
  7208. #define uint32_t $ac_cv_c_uint32_t
  7209. _ACEOF
  7210. ;;
  7211. esac
  7212. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7213. case $ac_cv_c_uint64_t in #(
  7214. no|yes) ;; #(
  7215. *)
  7216. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7217. cat >>confdefs.h <<_ACEOF
  7218. #define uint64_t $ac_cv_c_uint64_t
  7219. _ACEOF
  7220. ;;
  7221. esac
  7222. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7223. case $ac_cv_c_uint8_t in #(
  7224. no|yes) ;; #(
  7225. *)
  7226. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7227. cat >>confdefs.h <<_ACEOF
  7228. #define uint8_t $ac_cv_c_uint8_t
  7229. _ACEOF
  7230. ;;
  7231. esac
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7233. $as_echo_n "checking for working volatile... " >&6; }
  7234. if test "${ac_cv_c_volatile+set}" = set; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7238. /* end confdefs.h. */
  7239. int
  7240. main ()
  7241. {
  7242. volatile int x;
  7243. int * volatile y = (int *) 0;
  7244. return !x && !y;
  7245. ;
  7246. return 0;
  7247. }
  7248. _ACEOF
  7249. if ac_fn_cxx_try_compile "$LINENO"; then :
  7250. ac_cv_c_volatile=yes
  7251. else
  7252. ac_cv_c_volatile=no
  7253. fi
  7254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7255. fi
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7257. $as_echo "$ac_cv_c_volatile" >&6; }
  7258. if test $ac_cv_c_volatile = no; then
  7259. $as_echo "#define volatile /**/" >>confdefs.h
  7260. fi
  7261. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7262. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7263. cat >>confdefs.h <<_ACEOF
  7264. #define HAVE_PTRDIFF_T 1
  7265. _ACEOF
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7268. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7269. if test "${ac_cv_c_bigendian+set}" = set; then :
  7270. $as_echo_n "(cached) " >&6
  7271. else
  7272. ac_cv_c_bigendian=unknown
  7273. # See if we're dealing with a universal compiler.
  7274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7275. /* end confdefs.h. */
  7276. #ifndef __APPLE_CC__
  7277. not a universal capable compiler
  7278. #endif
  7279. typedef int dummy;
  7280. _ACEOF
  7281. if ac_fn_cxx_try_compile "$LINENO"; then :
  7282. # Check for potential -arch flags. It is not universal unless
  7283. # there are at least two -arch flags with different values.
  7284. ac_arch=
  7285. ac_prev=
  7286. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7287. if test -n "$ac_prev"; then
  7288. case $ac_word in
  7289. i?86 | x86_64 | ppc | ppc64)
  7290. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7291. ac_arch=$ac_word
  7292. else
  7293. ac_cv_c_bigendian=universal
  7294. break
  7295. fi
  7296. ;;
  7297. esac
  7298. ac_prev=
  7299. elif test "x$ac_word" = "x-arch"; then
  7300. ac_prev=arch
  7301. fi
  7302. done
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. if test $ac_cv_c_bigendian = unknown; then
  7306. # See if sys/param.h defines the BYTE_ORDER macro.
  7307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7308. /* end confdefs.h. */
  7309. #include <sys/types.h>
  7310. #include <sys/param.h>
  7311. int
  7312. main ()
  7313. {
  7314. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7315. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7316. && LITTLE_ENDIAN)
  7317. bogus endian macros
  7318. #endif
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. if ac_fn_cxx_try_compile "$LINENO"; then :
  7324. # It does; now see whether it defined to BIG_ENDIAN or not.
  7325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7326. /* end confdefs.h. */
  7327. #include <sys/types.h>
  7328. #include <sys/param.h>
  7329. int
  7330. main ()
  7331. {
  7332. #if BYTE_ORDER != BIG_ENDIAN
  7333. not big endian
  7334. #endif
  7335. ;
  7336. return 0;
  7337. }
  7338. _ACEOF
  7339. if ac_fn_cxx_try_compile "$LINENO"; then :
  7340. ac_cv_c_bigendian=yes
  7341. else
  7342. ac_cv_c_bigendian=no
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7347. fi
  7348. if test $ac_cv_c_bigendian = unknown; then
  7349. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7351. /* end confdefs.h. */
  7352. #include <limits.h>
  7353. int
  7354. main ()
  7355. {
  7356. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7357. bogus endian macros
  7358. #endif
  7359. ;
  7360. return 0;
  7361. }
  7362. _ACEOF
  7363. if ac_fn_cxx_try_compile "$LINENO"; then :
  7364. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7366. /* end confdefs.h. */
  7367. #include <limits.h>
  7368. int
  7369. main ()
  7370. {
  7371. #ifndef _BIG_ENDIAN
  7372. not big endian
  7373. #endif
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_cxx_try_compile "$LINENO"; then :
  7379. ac_cv_c_bigendian=yes
  7380. else
  7381. ac_cv_c_bigendian=no
  7382. fi
  7383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7384. fi
  7385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7386. fi
  7387. if test $ac_cv_c_bigendian = unknown; then
  7388. # Compile a test program.
  7389. if test "$cross_compiling" = yes; then :
  7390. # Try to guess by grepping values from an object file.
  7391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7392. /* end confdefs.h. */
  7393. short int ascii_mm[] =
  7394. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7395. short int ascii_ii[] =
  7396. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7397. int use_ascii (int i) {
  7398. return ascii_mm[i] + ascii_ii[i];
  7399. }
  7400. short int ebcdic_ii[] =
  7401. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7402. short int ebcdic_mm[] =
  7403. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7404. int use_ebcdic (int i) {
  7405. return ebcdic_mm[i] + ebcdic_ii[i];
  7406. }
  7407. extern int foo;
  7408. int
  7409. main ()
  7410. {
  7411. return use_ascii (foo) == use_ebcdic (foo);
  7412. ;
  7413. return 0;
  7414. }
  7415. _ACEOF
  7416. if ac_fn_cxx_try_compile "$LINENO"; then :
  7417. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7418. ac_cv_c_bigendian=yes
  7419. fi
  7420. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7421. if test "$ac_cv_c_bigendian" = unknown; then
  7422. ac_cv_c_bigendian=no
  7423. else
  7424. # finding both strings is unlikely to happen, but who knows?
  7425. ac_cv_c_bigendian=unknown
  7426. fi
  7427. fi
  7428. fi
  7429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7430. else
  7431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7432. /* end confdefs.h. */
  7433. $ac_includes_default
  7434. int
  7435. main ()
  7436. {
  7437. /* Are we little or big endian? From Harbison&Steele. */
  7438. union
  7439. {
  7440. long int l;
  7441. char c[sizeof (long int)];
  7442. } u;
  7443. u.l = 1;
  7444. return u.c[sizeof (long int) - 1] == 1;
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. if ac_fn_cxx_try_run "$LINENO"; then :
  7450. ac_cv_c_bigendian=no
  7451. else
  7452. ac_cv_c_bigendian=yes
  7453. fi
  7454. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7455. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7456. fi
  7457. fi
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7460. $as_echo "$ac_cv_c_bigendian" >&6; }
  7461. case $ac_cv_c_bigendian in #(
  7462. yes)
  7463. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7464. ;; #(
  7465. no)
  7466. ;; #(
  7467. universal)
  7468. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7469. ;; #(
  7470. *)
  7471. as_fn_error "unknown endianness
  7472. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7473. esac
  7474. # Check whether --enable-largefile was given.
  7475. if test "${enable_largefile+set}" = set; then :
  7476. enableval=$enable_largefile;
  7477. fi
  7478. if test "$enable_largefile" != no; then
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7480. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7481. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7482. $as_echo_n "(cached) " >&6
  7483. else
  7484. ac_cv_sys_largefile_CC=no
  7485. if test "$GCC" != yes; then
  7486. ac_save_CC=$CC
  7487. while :; do
  7488. # IRIX 6.2 and later do not support large files by default,
  7489. # so use the C compiler's -n32 option if that helps.
  7490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7491. /* end confdefs.h. */
  7492. #include <sys/types.h>
  7493. /* Check that off_t can represent 2**63 - 1 correctly.
  7494. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7495. since some C++ compilers masquerading as C compilers
  7496. incorrectly reject 9223372036854775807. */
  7497. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7498. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7499. && LARGE_OFF_T % 2147483647 == 1)
  7500. ? 1 : -1];
  7501. int
  7502. main ()
  7503. {
  7504. ;
  7505. return 0;
  7506. }
  7507. _ACEOF
  7508. if ac_fn_cxx_try_compile "$LINENO"; then :
  7509. break
  7510. fi
  7511. rm -f core conftest.err conftest.$ac_objext
  7512. CC="$CC -n32"
  7513. if ac_fn_cxx_try_compile "$LINENO"; then :
  7514. ac_cv_sys_largefile_CC=' -n32'; break
  7515. fi
  7516. rm -f core conftest.err conftest.$ac_objext
  7517. break
  7518. done
  7519. CC=$ac_save_CC
  7520. rm -f conftest.$ac_ext
  7521. fi
  7522. fi
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7524. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7525. if test "$ac_cv_sys_largefile_CC" != no; then
  7526. CC=$CC$ac_cv_sys_largefile_CC
  7527. fi
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7529. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7530. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. while :; do
  7534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7535. /* end confdefs.h. */
  7536. #include <sys/types.h>
  7537. /* Check that off_t can represent 2**63 - 1 correctly.
  7538. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7539. since some C++ compilers masquerading as C compilers
  7540. incorrectly reject 9223372036854775807. */
  7541. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7542. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7543. && LARGE_OFF_T % 2147483647 == 1)
  7544. ? 1 : -1];
  7545. int
  7546. main ()
  7547. {
  7548. ;
  7549. return 0;
  7550. }
  7551. _ACEOF
  7552. if ac_fn_cxx_try_compile "$LINENO"; then :
  7553. ac_cv_sys_file_offset_bits=no; break
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7557. /* end confdefs.h. */
  7558. #define _FILE_OFFSET_BITS 64
  7559. #include <sys/types.h>
  7560. /* Check that off_t can represent 2**63 - 1 correctly.
  7561. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7562. since some C++ compilers masquerading as C compilers
  7563. incorrectly reject 9223372036854775807. */
  7564. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7565. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7566. && LARGE_OFF_T % 2147483647 == 1)
  7567. ? 1 : -1];
  7568. int
  7569. main ()
  7570. {
  7571. ;
  7572. return 0;
  7573. }
  7574. _ACEOF
  7575. if ac_fn_cxx_try_compile "$LINENO"; then :
  7576. ac_cv_sys_file_offset_bits=64; break
  7577. fi
  7578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7579. ac_cv_sys_file_offset_bits=unknown
  7580. break
  7581. done
  7582. fi
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7584. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7585. case $ac_cv_sys_file_offset_bits in #(
  7586. no | unknown) ;;
  7587. *)
  7588. cat >>confdefs.h <<_ACEOF
  7589. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7590. _ACEOF
  7591. ;;
  7592. esac
  7593. rm -rf conftest*
  7594. if test $ac_cv_sys_file_offset_bits = unknown; then
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7596. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7597. if test "${ac_cv_sys_large_files+set}" = set; then :
  7598. $as_echo_n "(cached) " >&6
  7599. else
  7600. while :; do
  7601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7602. /* end confdefs.h. */
  7603. #include <sys/types.h>
  7604. /* Check that off_t can represent 2**63 - 1 correctly.
  7605. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7606. since some C++ compilers masquerading as C compilers
  7607. incorrectly reject 9223372036854775807. */
  7608. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7609. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7610. && LARGE_OFF_T % 2147483647 == 1)
  7611. ? 1 : -1];
  7612. int
  7613. main ()
  7614. {
  7615. ;
  7616. return 0;
  7617. }
  7618. _ACEOF
  7619. if ac_fn_cxx_try_compile "$LINENO"; then :
  7620. ac_cv_sys_large_files=no; break
  7621. fi
  7622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7624. /* end confdefs.h. */
  7625. #define _LARGE_FILES 1
  7626. #include <sys/types.h>
  7627. /* Check that off_t can represent 2**63 - 1 correctly.
  7628. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7629. since some C++ compilers masquerading as C compilers
  7630. incorrectly reject 9223372036854775807. */
  7631. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7632. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7633. && LARGE_OFF_T % 2147483647 == 1)
  7634. ? 1 : -1];
  7635. int
  7636. main ()
  7637. {
  7638. ;
  7639. return 0;
  7640. }
  7641. _ACEOF
  7642. if ac_fn_cxx_try_compile "$LINENO"; then :
  7643. ac_cv_sys_large_files=1; break
  7644. fi
  7645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7646. ac_cv_sys_large_files=unknown
  7647. break
  7648. done
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7651. $as_echo "$ac_cv_sys_large_files" >&6; }
  7652. case $ac_cv_sys_large_files in #(
  7653. no | unknown) ;;
  7654. *)
  7655. cat >>confdefs.h <<_ACEOF
  7656. #define _LARGE_FILES $ac_cv_sys_large_files
  7657. _ACEOF
  7658. ;;
  7659. esac
  7660. rm -rf conftest*
  7661. fi
  7662. fi
  7663. # Checks for library functions.
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7665. $as_echo_n "checking whether NLS is requested... " >&6; }
  7666. # Check whether --enable-nls was given.
  7667. if test "${enable_nls+set}" = set; then :
  7668. enableval=$enable_nls; USE_NLS=$enableval
  7669. else
  7670. USE_NLS=yes
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7673. $as_echo "$USE_NLS" >&6; }
  7674. GETTEXT_MACRO_VERSION=0.17
  7675. # Prepare PATH_SEPARATOR.
  7676. # The user is always right.
  7677. if test "${PATH_SEPARATOR+set}" != set; then
  7678. echo "#! /bin/sh" >conf$$.sh
  7679. echo "exit 0" >>conf$$.sh
  7680. chmod +x conf$$.sh
  7681. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7682. PATH_SEPARATOR=';'
  7683. else
  7684. PATH_SEPARATOR=:
  7685. fi
  7686. rm -f conf$$.sh
  7687. fi
  7688. # Find out how to test for executable files. Don't use a zero-byte file,
  7689. # as systems may use methods other than mode bits to determine executability.
  7690. cat >conf$$.file <<_ASEOF
  7691. #! /bin/sh
  7692. exit 0
  7693. _ASEOF
  7694. chmod +x conf$$.file
  7695. if test -x conf$$.file >/dev/null 2>&1; then
  7696. ac_executable_p="test -x"
  7697. else
  7698. ac_executable_p="test -f"
  7699. fi
  7700. rm -f conf$$.file
  7701. # Extract the first word of "msgfmt", so it can be a program name with args.
  7702. set dummy msgfmt; ac_word=$2
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7704. $as_echo_n "checking for $ac_word... " >&6; }
  7705. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. case "$MSGFMT" in
  7709. [\\/]* | ?:[\\/]*)
  7710. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7711. ;;
  7712. *)
  7713. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7714. for ac_dir in $PATH; do
  7715. IFS="$ac_save_IFS"
  7716. test -z "$ac_dir" && ac_dir=.
  7717. for ac_exec_ext in '' $ac_executable_extensions; do
  7718. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7719. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7720. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7721. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7722. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7723. break 2
  7724. fi
  7725. fi
  7726. done
  7727. done
  7728. IFS="$ac_save_IFS"
  7729. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7730. ;;
  7731. esac
  7732. fi
  7733. MSGFMT="$ac_cv_path_MSGFMT"
  7734. if test "$MSGFMT" != ":"; then
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7736. $as_echo "$MSGFMT" >&6; }
  7737. else
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7739. $as_echo "no" >&6; }
  7740. fi
  7741. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7742. set dummy gmsgfmt; ac_word=$2
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7744. $as_echo_n "checking for $ac_word... " >&6; }
  7745. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. case $GMSGFMT in
  7749. [\\/]* | ?:[\\/]*)
  7750. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7751. ;;
  7752. *)
  7753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7754. for as_dir in $PATH
  7755. do
  7756. IFS=$as_save_IFS
  7757. test -z "$as_dir" && as_dir=.
  7758. for ac_exec_ext in '' $ac_executable_extensions; do
  7759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7760. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7762. break 2
  7763. fi
  7764. done
  7765. done
  7766. IFS=$as_save_IFS
  7767. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7768. ;;
  7769. esac
  7770. fi
  7771. GMSGFMT=$ac_cv_path_GMSGFMT
  7772. if test -n "$GMSGFMT"; then
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7774. $as_echo "$GMSGFMT" >&6; }
  7775. else
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7777. $as_echo "no" >&6; }
  7778. fi
  7779. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7780. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7781. *) MSGFMT_015=$MSGFMT ;;
  7782. esac
  7783. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7784. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7785. *) GMSGFMT_015=$GMSGFMT ;;
  7786. esac
  7787. # Prepare PATH_SEPARATOR.
  7788. # The user is always right.
  7789. if test "${PATH_SEPARATOR+set}" != set; then
  7790. echo "#! /bin/sh" >conf$$.sh
  7791. echo "exit 0" >>conf$$.sh
  7792. chmod +x conf$$.sh
  7793. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7794. PATH_SEPARATOR=';'
  7795. else
  7796. PATH_SEPARATOR=:
  7797. fi
  7798. rm -f conf$$.sh
  7799. fi
  7800. # Find out how to test for executable files. Don't use a zero-byte file,
  7801. # as systems may use methods other than mode bits to determine executability.
  7802. cat >conf$$.file <<_ASEOF
  7803. #! /bin/sh
  7804. exit 0
  7805. _ASEOF
  7806. chmod +x conf$$.file
  7807. if test -x conf$$.file >/dev/null 2>&1; then
  7808. ac_executable_p="test -x"
  7809. else
  7810. ac_executable_p="test -f"
  7811. fi
  7812. rm -f conf$$.file
  7813. # Extract the first word of "xgettext", so it can be a program name with args.
  7814. set dummy xgettext; ac_word=$2
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7816. $as_echo_n "checking for $ac_word... " >&6; }
  7817. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7818. $as_echo_n "(cached) " >&6
  7819. else
  7820. case "$XGETTEXT" in
  7821. [\\/]* | ?:[\\/]*)
  7822. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7823. ;;
  7824. *)
  7825. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7826. for ac_dir in $PATH; do
  7827. IFS="$ac_save_IFS"
  7828. test -z "$ac_dir" && ac_dir=.
  7829. for ac_exec_ext in '' $ac_executable_extensions; do
  7830. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7831. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7832. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7833. (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
  7834. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7835. break 2
  7836. fi
  7837. fi
  7838. done
  7839. done
  7840. IFS="$ac_save_IFS"
  7841. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7842. ;;
  7843. esac
  7844. fi
  7845. XGETTEXT="$ac_cv_path_XGETTEXT"
  7846. if test "$XGETTEXT" != ":"; then
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7848. $as_echo "$XGETTEXT" >&6; }
  7849. else
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7851. $as_echo "no" >&6; }
  7852. fi
  7853. rm -f messages.po
  7854. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7855. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7856. *) XGETTEXT_015=$XGETTEXT ;;
  7857. esac
  7858. # Prepare PATH_SEPARATOR.
  7859. # The user is always right.
  7860. if test "${PATH_SEPARATOR+set}" != set; then
  7861. echo "#! /bin/sh" >conf$$.sh
  7862. echo "exit 0" >>conf$$.sh
  7863. chmod +x conf$$.sh
  7864. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7865. PATH_SEPARATOR=';'
  7866. else
  7867. PATH_SEPARATOR=:
  7868. fi
  7869. rm -f conf$$.sh
  7870. fi
  7871. # Find out how to test for executable files. Don't use a zero-byte file,
  7872. # as systems may use methods other than mode bits to determine executability.
  7873. cat >conf$$.file <<_ASEOF
  7874. #! /bin/sh
  7875. exit 0
  7876. _ASEOF
  7877. chmod +x conf$$.file
  7878. if test -x conf$$.file >/dev/null 2>&1; then
  7879. ac_executable_p="test -x"
  7880. else
  7881. ac_executable_p="test -f"
  7882. fi
  7883. rm -f conf$$.file
  7884. # Extract the first word of "msgmerge", so it can be a program name with args.
  7885. set dummy msgmerge; ac_word=$2
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7887. $as_echo_n "checking for $ac_word... " >&6; }
  7888. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7889. $as_echo_n "(cached) " >&6
  7890. else
  7891. case "$MSGMERGE" in
  7892. [\\/]* | ?:[\\/]*)
  7893. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7894. ;;
  7895. *)
  7896. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7897. for ac_dir in $PATH; do
  7898. IFS="$ac_save_IFS"
  7899. test -z "$ac_dir" && ac_dir=.
  7900. for ac_exec_ext in '' $ac_executable_extensions; do
  7901. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7902. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7903. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7904. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7905. break 2
  7906. fi
  7907. fi
  7908. done
  7909. done
  7910. IFS="$ac_save_IFS"
  7911. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7912. ;;
  7913. esac
  7914. fi
  7915. MSGMERGE="$ac_cv_path_MSGMERGE"
  7916. if test "$MSGMERGE" != ":"; then
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  7918. $as_echo "$MSGMERGE" >&6; }
  7919. else
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7921. $as_echo "no" >&6; }
  7922. fi
  7923. test -n "$localedir" || localedir='${datadir}/locale'
  7924. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7925. ac_config_commands="$ac_config_commands po-directories"
  7926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  7927. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  7928. if test "${ac_cv_gnu_library_2+set}" = set; then :
  7929. $as_echo_n "(cached) " >&6
  7930. else
  7931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7932. /* end confdefs.h. */
  7933. #include <features.h>
  7934. #ifdef __GNU_LIBRARY__
  7935. #if (__GLIBC__ >= 2)
  7936. Lucky GNU user
  7937. #endif
  7938. #endif
  7939. _ACEOF
  7940. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7941. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  7942. ac_cv_gnu_library_2=yes
  7943. else
  7944. ac_cv_gnu_library_2=no
  7945. fi
  7946. rm -f conftest*
  7947. fi
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  7949. $as_echo "$ac_cv_gnu_library_2" >&6; }
  7950. GLIBC2="$ac_cv_gnu_library_2"
  7951. CFLAG_VISIBILITY=
  7952. HAVE_VISIBILITY=0
  7953. if test -n "$GCC"; then
  7954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  7955. $as_echo_n "checking for simple visibility declarations... " >&6; }
  7956. if test "${gl_cv_cc_visibility+set}" = set; then :
  7957. $as_echo_n "(cached) " >&6
  7958. else
  7959. gl_save_CFLAGS="$CFLAGS"
  7960. CFLAGS="$CFLAGS -fvisibility=hidden"
  7961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7962. /* end confdefs.h. */
  7963. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7964. extern __attribute__((__visibility__("default"))) int exportedvar;
  7965. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7966. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7967. int
  7968. main ()
  7969. {
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. if ac_fn_cxx_try_compile "$LINENO"; then :
  7975. gl_cv_cc_visibility=yes
  7976. else
  7977. gl_cv_cc_visibility=no
  7978. fi
  7979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7980. CFLAGS="$gl_save_CFLAGS"
  7981. fi
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  7983. $as_echo "$gl_cv_cc_visibility" >&6; }
  7984. if test $gl_cv_cc_visibility = yes; then
  7985. CFLAG_VISIBILITY="-fvisibility=hidden"
  7986. HAVE_VISIBILITY=1
  7987. fi
  7988. fi
  7989. cat >>confdefs.h <<_ACEOF
  7990. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7991. _ACEOF
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  7993. $as_echo_n "checking for stdint.h... " >&6; }
  7994. if test "${gl_cv_header_stdint_h+set}" = set; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7998. /* end confdefs.h. */
  7999. #include <sys/types.h>
  8000. #include <stdint.h>
  8001. int
  8002. main ()
  8003. {
  8004. uintmax_t i = (uintmax_t) -1; return !i;
  8005. ;
  8006. return 0;
  8007. }
  8008. _ACEOF
  8009. if ac_fn_cxx_try_compile "$LINENO"; then :
  8010. gl_cv_header_stdint_h=yes
  8011. else
  8012. gl_cv_header_stdint_h=no
  8013. fi
  8014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8015. fi
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8017. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8018. if test $gl_cv_header_stdint_h = yes; then
  8019. cat >>confdefs.h <<_ACEOF
  8020. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8021. _ACEOF
  8022. fi
  8023. for ac_header in stdlib.h unistd.h
  8024. do :
  8025. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8026. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8027. eval as_val=\$$as_ac_Header
  8028. if test "x$as_val" = x""yes; then :
  8029. cat >>confdefs.h <<_ACEOF
  8030. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8031. _ACEOF
  8032. fi
  8033. done
  8034. for ac_func in getpagesize
  8035. do :
  8036. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8037. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8038. cat >>confdefs.h <<_ACEOF
  8039. #define HAVE_GETPAGESIZE 1
  8040. _ACEOF
  8041. fi
  8042. done
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8044. $as_echo_n "checking for working mmap... " >&6; }
  8045. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8046. $as_echo_n "(cached) " >&6
  8047. else
  8048. if test "$cross_compiling" = yes; then :
  8049. ac_cv_func_mmap_fixed_mapped=no
  8050. else
  8051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8052. /* end confdefs.h. */
  8053. $ac_includes_default
  8054. /* malloc might have been renamed as rpl_malloc. */
  8055. #undef malloc
  8056. /* Thanks to Mike Haertel and Jim Avera for this test.
  8057. Here is a matrix of mmap possibilities:
  8058. mmap private not fixed
  8059. mmap private fixed at somewhere currently unmapped
  8060. mmap private fixed at somewhere already mapped
  8061. mmap shared not fixed
  8062. mmap shared fixed at somewhere currently unmapped
  8063. mmap shared fixed at somewhere already mapped
  8064. For private mappings, we should verify that changes cannot be read()
  8065. back from the file, nor mmap's back from the file at a different
  8066. address. (There have been systems where private was not correctly
  8067. implemented like the infamous i386 svr4.0, and systems where the
  8068. VM page cache was not coherent with the file system buffer cache
  8069. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8070. For shared mappings, we should conversely verify that changes get
  8071. propagated back to all the places they're supposed to be.
  8072. Grep wants private fixed already mapped.
  8073. The main things grep needs to know about mmap are:
  8074. * does it exist and is it safe to write into the mmap'd area
  8075. * how to use it (BSD variants) */
  8076. #include <fcntl.h>
  8077. #include <sys/mman.h>
  8078. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8079. char *malloc ();
  8080. #endif
  8081. /* This mess was copied from the GNU getpagesize.h. */
  8082. #ifndef HAVE_GETPAGESIZE
  8083. /* Assume that all systems that can run configure have sys/param.h. */
  8084. # ifndef HAVE_SYS_PARAM_H
  8085. # define HAVE_SYS_PARAM_H 1
  8086. # endif
  8087. # ifdef _SC_PAGESIZE
  8088. # define getpagesize() sysconf(_SC_PAGESIZE)
  8089. # else /* no _SC_PAGESIZE */
  8090. # ifdef HAVE_SYS_PARAM_H
  8091. # include <sys/param.h>
  8092. # ifdef EXEC_PAGESIZE
  8093. # define getpagesize() EXEC_PAGESIZE
  8094. # else /* no EXEC_PAGESIZE */
  8095. # ifdef NBPG
  8096. # define getpagesize() NBPG * CLSIZE
  8097. # ifndef CLSIZE
  8098. # define CLSIZE 1
  8099. # endif /* no CLSIZE */
  8100. # else /* no NBPG */
  8101. # ifdef NBPC
  8102. # define getpagesize() NBPC
  8103. # else /* no NBPC */
  8104. # ifdef PAGESIZE
  8105. # define getpagesize() PAGESIZE
  8106. # endif /* PAGESIZE */
  8107. # endif /* no NBPC */
  8108. # endif /* no NBPG */
  8109. # endif /* no EXEC_PAGESIZE */
  8110. # else /* no HAVE_SYS_PARAM_H */
  8111. # define getpagesize() 8192 /* punt totally */
  8112. # endif /* no HAVE_SYS_PARAM_H */
  8113. # endif /* no _SC_PAGESIZE */
  8114. #endif /* no HAVE_GETPAGESIZE */
  8115. int
  8116. main ()
  8117. {
  8118. char *data, *data2, *data3;
  8119. int i, pagesize;
  8120. int fd;
  8121. pagesize = getpagesize ();
  8122. /* First, make a file with some known garbage in it. */
  8123. data = (char *) malloc (pagesize);
  8124. if (!data)
  8125. return 1;
  8126. for (i = 0; i < pagesize; ++i)
  8127. *(data + i) = rand ();
  8128. umask (0);
  8129. fd = creat ("conftest.mmap", 0600);
  8130. if (fd < 0)
  8131. return 1;
  8132. if (write (fd, data, pagesize) != pagesize)
  8133. return 1;
  8134. close (fd);
  8135. /* Next, try to mmap the file at a fixed address which already has
  8136. something else allocated at it. If we can, also make sure that
  8137. we see the same garbage. */
  8138. fd = open ("conftest.mmap", O_RDWR);
  8139. if (fd < 0)
  8140. return 1;
  8141. data2 = (char *) malloc (2 * pagesize);
  8142. if (!data2)
  8143. return 1;
  8144. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8145. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8146. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8147. return 1;
  8148. for (i = 0; i < pagesize; ++i)
  8149. if (*(data + i) != *(data2 + i))
  8150. return 1;
  8151. /* Finally, make sure that changes to the mapped area do not
  8152. percolate back to the file as seen by read(). (This is a bug on
  8153. some variants of i386 svr4.0.) */
  8154. for (i = 0; i < pagesize; ++i)
  8155. *(data2 + i) = *(data2 + i) + 1;
  8156. data3 = (char *) malloc (pagesize);
  8157. if (!data3)
  8158. return 1;
  8159. if (read (fd, data3, pagesize) != pagesize)
  8160. return 1;
  8161. for (i = 0; i < pagesize; ++i)
  8162. if (*(data + i) != *(data3 + i))
  8163. return 1;
  8164. close (fd);
  8165. return 0;
  8166. }
  8167. _ACEOF
  8168. if ac_fn_cxx_try_run "$LINENO"; then :
  8169. ac_cv_func_mmap_fixed_mapped=yes
  8170. else
  8171. ac_cv_func_mmap_fixed_mapped=no
  8172. fi
  8173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8175. fi
  8176. fi
  8177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8178. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8179. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8180. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8181. fi
  8182. rm -f conftest.mmap
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8184. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8185. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8186. $as_echo_n "(cached) " >&6
  8187. else
  8188. gt_cv_int_divbyzero_sigfpe=
  8189. case "$host_os" in
  8190. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8191. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8192. # compiling. If we were to perform the real test, 1 Crash Report
  8193. # dialog window would pop up.
  8194. case "$host_cpu" in
  8195. i[34567]86 | x86_64)
  8196. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8197. esac
  8198. ;;
  8199. esac
  8200. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8201. if test "$cross_compiling" = yes; then :
  8202. # Guess based on the CPU.
  8203. case "$host_cpu" in
  8204. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8205. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8206. *)
  8207. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8208. esac
  8209. else
  8210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8211. /* end confdefs.h. */
  8212. #include <stdlib.h>
  8213. #include <signal.h>
  8214. static void
  8215. sigfpe_handler (int sig)
  8216. {
  8217. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8218. exit (sig != SIGFPE);
  8219. }
  8220. int x = 1;
  8221. int y = 0;
  8222. int z;
  8223. int nan;
  8224. int main ()
  8225. {
  8226. signal (SIGFPE, sigfpe_handler);
  8227. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8228. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8229. signal (SIGTRAP, sigfpe_handler);
  8230. #endif
  8231. /* Linux/SPARC yields signal SIGILL. */
  8232. #if defined (__sparc__) && defined (__linux__)
  8233. signal (SIGILL, sigfpe_handler);
  8234. #endif
  8235. z = x / y;
  8236. nan = y / y;
  8237. exit (1);
  8238. }
  8239. _ACEOF
  8240. if ac_fn_cxx_try_run "$LINENO"; then :
  8241. gt_cv_int_divbyzero_sigfpe=yes
  8242. else
  8243. gt_cv_int_divbyzero_sigfpe=no
  8244. fi
  8245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8247. fi
  8248. fi
  8249. fi
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8251. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8252. case "$gt_cv_int_divbyzero_sigfpe" in
  8253. *yes) value=1;;
  8254. *) value=0;;
  8255. esac
  8256. cat >>confdefs.h <<_ACEOF
  8257. #define INTDIV0_RAISES_SIGFPE $value
  8258. _ACEOF
  8259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8260. $as_echo_n "checking for inttypes.h... " >&6; }
  8261. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8262. $as_echo_n "(cached) " >&6
  8263. else
  8264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8265. /* end confdefs.h. */
  8266. #include <sys/types.h>
  8267. #include <inttypes.h>
  8268. int
  8269. main ()
  8270. {
  8271. uintmax_t i = (uintmax_t) -1; return !i;
  8272. ;
  8273. return 0;
  8274. }
  8275. _ACEOF
  8276. if ac_fn_cxx_try_compile "$LINENO"; then :
  8277. gl_cv_header_inttypes_h=yes
  8278. else
  8279. gl_cv_header_inttypes_h=no
  8280. fi
  8281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8282. fi
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8284. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8285. if test $gl_cv_header_inttypes_h = yes; then
  8286. cat >>confdefs.h <<_ACEOF
  8287. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8288. _ACEOF
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8291. $as_echo_n "checking for unsigned long long int... " >&6; }
  8292. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8293. $as_echo_n "(cached) " >&6
  8294. else
  8295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8296. /* end confdefs.h. */
  8297. /* Test preprocessor. */
  8298. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8299. error in preprocessor;
  8300. #endif
  8301. #if ! (18446744073709551615ULL <= -1ull)
  8302. error in preprocessor;
  8303. #endif
  8304. /* Test literals. */
  8305. long long int ll = 9223372036854775807ll;
  8306. long long int nll = -9223372036854775807LL;
  8307. unsigned long long int ull = 18446744073709551615ULL;
  8308. /* Test constant expressions. */
  8309. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8310. ? 1 : -1)];
  8311. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8312. ? 1 : -1)];
  8313. int i = 63;
  8314. int
  8315. main ()
  8316. {
  8317. /* Test availability of runtime routines for shift and division. */
  8318. long long int llmax = 9223372036854775807ll;
  8319. unsigned long long int ullmax = 18446744073709551615ull;
  8320. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8321. | (llmax / ll) | (llmax % ll)
  8322. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8323. | (ullmax / ull) | (ullmax % ull));
  8324. ;
  8325. return 0;
  8326. }
  8327. _ACEOF
  8328. if ac_fn_cxx_try_link "$LINENO"; then :
  8329. ac_cv_type_unsigned_long_long_int=yes
  8330. else
  8331. ac_cv_type_unsigned_long_long_int=no
  8332. fi
  8333. rm -f core conftest.err conftest.$ac_objext \
  8334. conftest$ac_exeext conftest.$ac_ext
  8335. fi
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8337. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8338. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8339. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8340. fi
  8341. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8342. test $ac_cv_type_unsigned_long_long_int = yes \
  8343. && ac_type='unsigned long long' \
  8344. || ac_type='unsigned long'
  8345. cat >>confdefs.h <<_ACEOF
  8346. #define uintmax_t $ac_type
  8347. _ACEOF
  8348. else
  8349. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8350. fi
  8351. for ac_header in inttypes.h
  8352. do :
  8353. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8354. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8355. cat >>confdefs.h <<_ACEOF
  8356. #define HAVE_INTTYPES_H 1
  8357. _ACEOF
  8358. fi
  8359. done
  8360. if test $ac_cv_header_inttypes_h = yes; then
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8362. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8363. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8364. $as_echo_n "(cached) " >&6
  8365. else
  8366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8367. /* end confdefs.h. */
  8368. #include <inttypes.h>
  8369. #ifdef PRId32
  8370. char *p = PRId32;
  8371. #endif
  8372. int
  8373. main ()
  8374. {
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. if ac_fn_cxx_try_compile "$LINENO"; then :
  8380. gt_cv_inttypes_pri_broken=no
  8381. else
  8382. gt_cv_inttypes_pri_broken=yes
  8383. fi
  8384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8385. fi
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8387. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8388. fi
  8389. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8390. cat >>confdefs.h <<_ACEOF
  8391. #define PRI_MACROS_BROKEN 1
  8392. _ACEOF
  8393. PRI_MACROS_BROKEN=1
  8394. else
  8395. PRI_MACROS_BROKEN=0
  8396. fi
  8397. # Check whether --enable-threads was given.
  8398. if test "${enable_threads+set}" = set; then :
  8399. enableval=$enable_threads; gl_use_threads=$enableval
  8400. else
  8401. case "$host_os" in
  8402. osf*) gl_use_threads=no ;;
  8403. *) gl_use_threads=yes ;;
  8404. esac
  8405. fi
  8406. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8407. # For using <pthread.h>:
  8408. case "$host_os" in
  8409. osf*)
  8410. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8411. # groks <pthread.h>. cc also understands the flag -pthread, but
  8412. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8413. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8414. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8415. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8416. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8417. ;;
  8418. esac
  8419. # Some systems optimize for single-threaded programs by default, and
  8420. # need special flags to disable these optimizations. For example, the
  8421. # definition of 'errno' in <errno.h>.
  8422. case "$host_os" in
  8423. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8424. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8425. esac
  8426. fi
  8427. if test "X$prefix" = "XNONE"; then
  8428. acl_final_prefix="$ac_default_prefix"
  8429. else
  8430. acl_final_prefix="$prefix"
  8431. fi
  8432. if test "X$exec_prefix" = "XNONE"; then
  8433. acl_final_exec_prefix='${prefix}'
  8434. else
  8435. acl_final_exec_prefix="$exec_prefix"
  8436. fi
  8437. acl_save_prefix="$prefix"
  8438. prefix="$acl_final_prefix"
  8439. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8440. prefix="$acl_save_prefix"
  8441. # Check whether --with-gnu-ld was given.
  8442. if test "${with_gnu_ld+set}" = set; then :
  8443. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8444. else
  8445. with_gnu_ld=no
  8446. fi
  8447. # Prepare PATH_SEPARATOR.
  8448. # The user is always right.
  8449. if test "${PATH_SEPARATOR+set}" != set; then
  8450. echo "#! /bin/sh" >conf$$.sh
  8451. echo "exit 0" >>conf$$.sh
  8452. chmod +x conf$$.sh
  8453. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8454. PATH_SEPARATOR=';'
  8455. else
  8456. PATH_SEPARATOR=:
  8457. fi
  8458. rm -f conf$$.sh
  8459. fi
  8460. ac_prog=ld
  8461. if test "$GCC" = yes; then
  8462. # Check if gcc -print-prog-name=ld gives a path.
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8464. $as_echo_n "checking for ld used by GCC... " >&6; }
  8465. case $host in
  8466. *-*-mingw*)
  8467. # gcc leaves a trailing carriage return which upsets mingw
  8468. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8469. *)
  8470. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8471. esac
  8472. case $ac_prog in
  8473. # Accept absolute paths.
  8474. [\\/]* | [A-Za-z]:[\\/]*)
  8475. re_direlt='/[^/][^/]*/\.\./'
  8476. # Canonicalize the path of ld
  8477. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8478. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8479. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8480. done
  8481. test -z "$LD" && LD="$ac_prog"
  8482. ;;
  8483. "")
  8484. # If it fails, then pretend we aren't using GCC.
  8485. ac_prog=ld
  8486. ;;
  8487. *)
  8488. # If it is relative, then search for the first ld in PATH.
  8489. with_gnu_ld=unknown
  8490. ;;
  8491. esac
  8492. elif test "$with_gnu_ld" = yes; then
  8493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8494. $as_echo_n "checking for GNU ld... " >&6; }
  8495. else
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8497. $as_echo_n "checking for non-GNU ld... " >&6; }
  8498. fi
  8499. if test "${acl_cv_path_LD+set}" = set; then :
  8500. $as_echo_n "(cached) " >&6
  8501. else
  8502. if test -z "$LD"; then
  8503. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8504. for ac_dir in $PATH; do
  8505. test -z "$ac_dir" && ac_dir=.
  8506. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8507. acl_cv_path_LD="$ac_dir/$ac_prog"
  8508. # Check to see if the program is GNU ld. I'd rather use --version,
  8509. # but apparently some GNU ld's only accept -v.
  8510. # Break only if it was the GNU/non-GNU ld that we prefer.
  8511. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8512. *GNU* | *'with BFD'*)
  8513. test "$with_gnu_ld" != no && break ;;
  8514. *)
  8515. test "$with_gnu_ld" != yes && break ;;
  8516. esac
  8517. fi
  8518. done
  8519. IFS="$ac_save_ifs"
  8520. else
  8521. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8522. fi
  8523. fi
  8524. LD="$acl_cv_path_LD"
  8525. if test -n "$LD"; then
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8527. $as_echo "$LD" >&6; }
  8528. else
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8530. $as_echo "no" >&6; }
  8531. fi
  8532. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8534. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8535. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8536. $as_echo_n "(cached) " >&6
  8537. else
  8538. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8539. case `$LD -v 2>&1 </dev/null` in
  8540. *GNU* | *'with BFD'*)
  8541. acl_cv_prog_gnu_ld=yes ;;
  8542. *)
  8543. acl_cv_prog_gnu_ld=no ;;
  8544. esac
  8545. fi
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8547. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8548. with_gnu_ld=$acl_cv_prog_gnu_ld
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8550. $as_echo_n "checking for shared library run path origin... " >&6; }
  8551. if test "${acl_cv_rpath+set}" = set; then :
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8555. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8556. . ./conftest.sh
  8557. rm -f ./conftest.sh
  8558. acl_cv_rpath=done
  8559. fi
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8561. $as_echo "$acl_cv_rpath" >&6; }
  8562. wl="$acl_cv_wl"
  8563. acl_libext="$acl_cv_libext"
  8564. acl_shlibext="$acl_cv_shlibext"
  8565. acl_libname_spec="$acl_cv_libname_spec"
  8566. acl_library_names_spec="$acl_cv_library_names_spec"
  8567. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8568. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8569. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8570. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8571. # Check whether --enable-rpath was given.
  8572. if test "${enable_rpath+set}" = set; then :
  8573. enableval=$enable_rpath; :
  8574. else
  8575. enable_rpath=yes
  8576. fi
  8577. acl_libdirstem=lib
  8578. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8579. if test -n "$searchpath"; then
  8580. acl_save_IFS="${IFS= }"; IFS=":"
  8581. for searchdir in $searchpath; do
  8582. if test -d "$searchdir"; then
  8583. case "$searchdir" in
  8584. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8585. *) searchdir=`cd "$searchdir" && pwd`
  8586. case "$searchdir" in
  8587. */lib64 ) acl_libdirstem=lib64 ;;
  8588. esac ;;
  8589. esac
  8590. fi
  8591. done
  8592. IFS="$acl_save_IFS"
  8593. fi
  8594. gl_threads_api=none
  8595. LIBTHREAD=
  8596. LTLIBTHREAD=
  8597. LIBMULTITHREAD=
  8598. LTLIBMULTITHREAD=
  8599. if test "$gl_use_threads" != no; then
  8600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8601. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8602. gl_have_weak=no
  8603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8604. /* end confdefs.h. */
  8605. extern void xyzzy ();
  8606. #pragma weak xyzzy
  8607. int
  8608. main ()
  8609. {
  8610. xyzzy();
  8611. ;
  8612. return 0;
  8613. }
  8614. _ACEOF
  8615. if ac_fn_cxx_try_link "$LINENO"; then :
  8616. gl_have_weak=yes
  8617. fi
  8618. rm -f core conftest.err conftest.$ac_objext \
  8619. conftest$ac_exeext conftest.$ac_ext
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8621. $as_echo "$gl_have_weak" >&6; }
  8622. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8623. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8624. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8625. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8626. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8627. gl_have_pthread_h=yes
  8628. else
  8629. gl_have_pthread_h=no
  8630. fi
  8631. if test "$gl_have_pthread_h" = yes; then
  8632. # Other possible tests:
  8633. # -lpthreads (FSU threads, PCthreads)
  8634. # -lgthreads
  8635. gl_have_pthread=
  8636. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8637. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8638. # the second one only in libpthread, and lock.c needs it.
  8639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8640. /* end confdefs.h. */
  8641. #include <pthread.h>
  8642. int
  8643. main ()
  8644. {
  8645. pthread_mutex_lock((pthread_mutex_t*)0);
  8646. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8647. ;
  8648. return 0;
  8649. }
  8650. _ACEOF
  8651. if ac_fn_cxx_try_link "$LINENO"; then :
  8652. gl_have_pthread=yes
  8653. fi
  8654. rm -f core conftest.err conftest.$ac_objext \
  8655. conftest$ac_exeext conftest.$ac_ext
  8656. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8657. # since it is defined as a macro on OSF/1.)
  8658. if test -n "$gl_have_pthread"; then
  8659. # The program links fine without libpthread. But it may actually
  8660. # need to link with libpthread in order to create multiple threads.
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8662. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8663. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8664. $as_echo_n "(cached) " >&6
  8665. else
  8666. ac_check_lib_save_LIBS=$LIBS
  8667. LIBS="-lpthread $LIBS"
  8668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8669. /* end confdefs.h. */
  8670. /* Override any GCC internal prototype to avoid an error.
  8671. Use char because int might match the return type of a GCC
  8672. builtin and then its argument prototype would still apply. */
  8673. #ifdef __cplusplus
  8674. extern "C"
  8675. #endif
  8676. char pthread_kill ();
  8677. int
  8678. main ()
  8679. {
  8680. return pthread_kill ();
  8681. ;
  8682. return 0;
  8683. }
  8684. _ACEOF
  8685. if ac_fn_cxx_try_link "$LINENO"; then :
  8686. ac_cv_lib_pthread_pthread_kill=yes
  8687. else
  8688. ac_cv_lib_pthread_pthread_kill=no
  8689. fi
  8690. rm -f core conftest.err conftest.$ac_objext \
  8691. conftest$ac_exeext conftest.$ac_ext
  8692. LIBS=$ac_check_lib_save_LIBS
  8693. fi
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8695. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8696. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8697. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8698. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8699. # Therefore pthread_in_use() needs to actually try to create a
  8700. # thread: pthread_create from libc will fail, whereas
  8701. # pthread_create will actually create a thread.
  8702. case "$host_os" in
  8703. solaris* | hpux*)
  8704. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8705. esac
  8706. fi
  8707. else
  8708. # Some library is needed. Try libpthread and libc_r.
  8709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8710. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8711. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8712. $as_echo_n "(cached) " >&6
  8713. else
  8714. ac_check_lib_save_LIBS=$LIBS
  8715. LIBS="-lpthread $LIBS"
  8716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8717. /* end confdefs.h. */
  8718. /* Override any GCC internal prototype to avoid an error.
  8719. Use char because int might match the return type of a GCC
  8720. builtin and then its argument prototype would still apply. */
  8721. #ifdef __cplusplus
  8722. extern "C"
  8723. #endif
  8724. char pthread_kill ();
  8725. int
  8726. main ()
  8727. {
  8728. return pthread_kill ();
  8729. ;
  8730. return 0;
  8731. }
  8732. _ACEOF
  8733. if ac_fn_cxx_try_link "$LINENO"; then :
  8734. ac_cv_lib_pthread_pthread_kill=yes
  8735. else
  8736. ac_cv_lib_pthread_pthread_kill=no
  8737. fi
  8738. rm -f core conftest.err conftest.$ac_objext \
  8739. conftest$ac_exeext conftest.$ac_ext
  8740. LIBS=$ac_check_lib_save_LIBS
  8741. fi
  8742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8743. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8744. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8745. gl_have_pthread=yes
  8746. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8747. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8748. fi
  8749. if test -z "$gl_have_pthread"; then
  8750. # For FreeBSD 4.
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8752. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8753. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8754. $as_echo_n "(cached) " >&6
  8755. else
  8756. ac_check_lib_save_LIBS=$LIBS
  8757. LIBS="-lc_r $LIBS"
  8758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8759. /* end confdefs.h. */
  8760. /* Override any GCC internal prototype to avoid an error.
  8761. Use char because int might match the return type of a GCC
  8762. builtin and then its argument prototype would still apply. */
  8763. #ifdef __cplusplus
  8764. extern "C"
  8765. #endif
  8766. char pthread_kill ();
  8767. int
  8768. main ()
  8769. {
  8770. return pthread_kill ();
  8771. ;
  8772. return 0;
  8773. }
  8774. _ACEOF
  8775. if ac_fn_cxx_try_link "$LINENO"; then :
  8776. ac_cv_lib_c_r_pthread_kill=yes
  8777. else
  8778. ac_cv_lib_c_r_pthread_kill=no
  8779. fi
  8780. rm -f core conftest.err conftest.$ac_objext \
  8781. conftest$ac_exeext conftest.$ac_ext
  8782. LIBS=$ac_check_lib_save_LIBS
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8785. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8786. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8787. gl_have_pthread=yes
  8788. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8789. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8790. fi
  8791. fi
  8792. fi
  8793. if test -n "$gl_have_pthread"; then
  8794. gl_threads_api=posix
  8795. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8796. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8797. if test $gl_have_weak = yes; then
  8798. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8799. LIBTHREAD=
  8800. LTLIBTHREAD=
  8801. fi
  8802. fi
  8803. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8804. # pthread_rwlock_* functions.
  8805. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8806. "
  8807. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8808. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8809. fi
  8810. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8812. /* end confdefs.h. */
  8813. #include <pthread.h>
  8814. int
  8815. main ()
  8816. {
  8817. #if __FreeBSD__ == 4
  8818. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8819. #else
  8820. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8821. return !x;
  8822. #endif
  8823. ;
  8824. return 0;
  8825. }
  8826. _ACEOF
  8827. if ac_fn_cxx_try_compile "$LINENO"; then :
  8828. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8829. fi
  8830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8831. fi
  8832. fi
  8833. fi
  8834. if test -z "$gl_have_pthread"; then
  8835. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8836. gl_have_solaristhread=
  8837. gl_save_LIBS="$LIBS"
  8838. LIBS="$LIBS -lthread"
  8839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8840. /* end confdefs.h. */
  8841. #include <thread.h>
  8842. #include <synch.h>
  8843. int
  8844. main ()
  8845. {
  8846. thr_self();
  8847. ;
  8848. return 0;
  8849. }
  8850. _ACEOF
  8851. if ac_fn_cxx_try_link "$LINENO"; then :
  8852. gl_have_solaristhread=yes
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext \
  8855. conftest$ac_exeext conftest.$ac_ext
  8856. LIBS="$gl_save_LIBS"
  8857. if test -n "$gl_have_solaristhread"; then
  8858. gl_threads_api=solaris
  8859. LIBTHREAD=-lthread
  8860. LTLIBTHREAD=-lthread
  8861. LIBMULTITHREAD="$LIBTHREAD"
  8862. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8863. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8864. if test $gl_have_weak = yes; then
  8865. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8866. LIBTHREAD=
  8867. LTLIBTHREAD=
  8868. fi
  8869. fi
  8870. fi
  8871. fi
  8872. if test "$gl_use_threads" = pth; then
  8873. gl_save_CPPFLAGS="$CPPFLAGS"
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8875. $as_echo_n "checking how to link with libpth... " >&6; }
  8876. if test "${ac_cv_libpth_libs+set}" = set; then :
  8877. $as_echo_n "(cached) " >&6
  8878. else
  8879. use_additional=yes
  8880. acl_save_prefix="$prefix"
  8881. prefix="$acl_final_prefix"
  8882. acl_save_exec_prefix="$exec_prefix"
  8883. exec_prefix="$acl_final_exec_prefix"
  8884. eval additional_includedir=\"$includedir\"
  8885. eval additional_libdir=\"$libdir\"
  8886. exec_prefix="$acl_save_exec_prefix"
  8887. prefix="$acl_save_prefix"
  8888. # Check whether --with-libpth-prefix was given.
  8889. if test "${with_libpth_prefix+set}" = set; then :
  8890. withval=$with_libpth_prefix;
  8891. if test "X$withval" = "Xno"; then
  8892. use_additional=no
  8893. else
  8894. if test "X$withval" = "X"; then
  8895. acl_save_prefix="$prefix"
  8896. prefix="$acl_final_prefix"
  8897. acl_save_exec_prefix="$exec_prefix"
  8898. exec_prefix="$acl_final_exec_prefix"
  8899. eval additional_includedir=\"$includedir\"
  8900. eval additional_libdir=\"$libdir\"
  8901. exec_prefix="$acl_save_exec_prefix"
  8902. prefix="$acl_save_prefix"
  8903. else
  8904. additional_includedir="$withval/include"
  8905. additional_libdir="$withval/$acl_libdirstem"
  8906. fi
  8907. fi
  8908. fi
  8909. LIBPTH=
  8910. LTLIBPTH=
  8911. INCPTH=
  8912. LIBPTH_PREFIX=
  8913. rpathdirs=
  8914. ltrpathdirs=
  8915. names_already_handled=
  8916. names_next_round='pth '
  8917. while test -n "$names_next_round"; do
  8918. names_this_round="$names_next_round"
  8919. names_next_round=
  8920. for name in $names_this_round; do
  8921. already_handled=
  8922. for n in $names_already_handled; do
  8923. if test "$n" = "$name"; then
  8924. already_handled=yes
  8925. break
  8926. fi
  8927. done
  8928. if test -z "$already_handled"; then
  8929. names_already_handled="$names_already_handled $name"
  8930. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8931. eval value=\"\$HAVE_LIB$uppername\"
  8932. if test -n "$value"; then
  8933. if test "$value" = yes; then
  8934. eval value=\"\$LIB$uppername\"
  8935. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  8936. eval value=\"\$LTLIB$uppername\"
  8937. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  8938. else
  8939. :
  8940. fi
  8941. else
  8942. found_dir=
  8943. found_la=
  8944. found_so=
  8945. found_a=
  8946. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  8947. if test -n "$acl_shlibext"; then
  8948. shrext=".$acl_shlibext" # typically: shrext=.so
  8949. else
  8950. shrext=
  8951. fi
  8952. if test $use_additional = yes; then
  8953. dir="$additional_libdir"
  8954. if test -n "$acl_shlibext"; then
  8955. if test -f "$dir/$libname$shrext"; then
  8956. found_dir="$dir"
  8957. found_so="$dir/$libname$shrext"
  8958. else
  8959. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  8960. ver=`(cd "$dir" && \
  8961. for f in "$libname$shrext".*; do echo "$f"; done \
  8962. | sed -e "s,^$libname$shrext\\\\.,," \
  8963. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  8964. | sed 1q ) 2>/dev/null`
  8965. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  8966. found_dir="$dir"
  8967. found_so="$dir/$libname$shrext.$ver"
  8968. fi
  8969. else
  8970. eval library_names=\"$acl_library_names_spec\"
  8971. for f in $library_names; do
  8972. if test -f "$dir/$f"; then
  8973. found_dir="$dir"
  8974. found_so="$dir/$f"
  8975. break
  8976. fi
  8977. done
  8978. fi
  8979. fi
  8980. fi
  8981. if test "X$found_dir" = "X"; then
  8982. if test -f "$dir/$libname.$acl_libext"; then
  8983. found_dir="$dir"
  8984. found_a="$dir/$libname.$acl_libext"
  8985. fi
  8986. fi
  8987. if test "X$found_dir" != "X"; then
  8988. if test -f "$dir/$libname.la"; then
  8989. found_la="$dir/$libname.la"
  8990. fi
  8991. fi
  8992. fi
  8993. if test "X$found_dir" = "X"; then
  8994. for x in $LDFLAGS $LTLIBPTH; do
  8995. acl_save_prefix="$prefix"
  8996. prefix="$acl_final_prefix"
  8997. acl_save_exec_prefix="$exec_prefix"
  8998. exec_prefix="$acl_final_exec_prefix"
  8999. eval x=\"$x\"
  9000. exec_prefix="$acl_save_exec_prefix"
  9001. prefix="$acl_save_prefix"
  9002. case "$x" in
  9003. -L*)
  9004. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9005. if test -n "$acl_shlibext"; then
  9006. if test -f "$dir/$libname$shrext"; then
  9007. found_dir="$dir"
  9008. found_so="$dir/$libname$shrext"
  9009. else
  9010. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9011. ver=`(cd "$dir" && \
  9012. for f in "$libname$shrext".*; do echo "$f"; done \
  9013. | sed -e "s,^$libname$shrext\\\\.,," \
  9014. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9015. | sed 1q ) 2>/dev/null`
  9016. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9017. found_dir="$dir"
  9018. found_so="$dir/$libname$shrext.$ver"
  9019. fi
  9020. else
  9021. eval library_names=\"$acl_library_names_spec\"
  9022. for f in $library_names; do
  9023. if test -f "$dir/$f"; then
  9024. found_dir="$dir"
  9025. found_so="$dir/$f"
  9026. break
  9027. fi
  9028. done
  9029. fi
  9030. fi
  9031. fi
  9032. if test "X$found_dir" = "X"; then
  9033. if test -f "$dir/$libname.$acl_libext"; then
  9034. found_dir="$dir"
  9035. found_a="$dir/$libname.$acl_libext"
  9036. fi
  9037. fi
  9038. if test "X$found_dir" != "X"; then
  9039. if test -f "$dir/$libname.la"; then
  9040. found_la="$dir/$libname.la"
  9041. fi
  9042. fi
  9043. ;;
  9044. esac
  9045. if test "X$found_dir" != "X"; then
  9046. break
  9047. fi
  9048. done
  9049. fi
  9050. if test "X$found_dir" != "X"; then
  9051. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9052. if test "X$found_so" != "X"; then
  9053. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9054. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9055. else
  9056. haveit=
  9057. for x in $ltrpathdirs; do
  9058. if test "X$x" = "X$found_dir"; then
  9059. haveit=yes
  9060. break
  9061. fi
  9062. done
  9063. if test -z "$haveit"; then
  9064. ltrpathdirs="$ltrpathdirs $found_dir"
  9065. fi
  9066. if test "$acl_hardcode_direct" = yes; then
  9067. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9068. else
  9069. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9070. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9071. haveit=
  9072. for x in $rpathdirs; do
  9073. if test "X$x" = "X$found_dir"; then
  9074. haveit=yes
  9075. break
  9076. fi
  9077. done
  9078. if test -z "$haveit"; then
  9079. rpathdirs="$rpathdirs $found_dir"
  9080. fi
  9081. else
  9082. haveit=
  9083. for x in $LDFLAGS $LIBPTH; do
  9084. acl_save_prefix="$prefix"
  9085. prefix="$acl_final_prefix"
  9086. acl_save_exec_prefix="$exec_prefix"
  9087. exec_prefix="$acl_final_exec_prefix"
  9088. eval x=\"$x\"
  9089. exec_prefix="$acl_save_exec_prefix"
  9090. prefix="$acl_save_prefix"
  9091. if test "X$x" = "X-L$found_dir"; then
  9092. haveit=yes
  9093. break
  9094. fi
  9095. done
  9096. if test -z "$haveit"; then
  9097. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9098. fi
  9099. if test "$acl_hardcode_minus_L" != no; then
  9100. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9101. else
  9102. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9103. fi
  9104. fi
  9105. fi
  9106. fi
  9107. else
  9108. if test "X$found_a" != "X"; then
  9109. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9110. else
  9111. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9112. fi
  9113. fi
  9114. additional_includedir=
  9115. case "$found_dir" in
  9116. */$acl_libdirstem | */$acl_libdirstem/)
  9117. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9118. LIBPTH_PREFIX="$basedir"
  9119. additional_includedir="$basedir/include"
  9120. ;;
  9121. esac
  9122. if test "X$additional_includedir" != "X"; then
  9123. if test "X$additional_includedir" != "X/usr/include"; then
  9124. haveit=
  9125. if test "X$additional_includedir" = "X/usr/local/include"; then
  9126. if test -n "$GCC"; then
  9127. case $host_os in
  9128. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9129. esac
  9130. fi
  9131. fi
  9132. if test -z "$haveit"; then
  9133. for x in $CPPFLAGS $INCPTH; do
  9134. acl_save_prefix="$prefix"
  9135. prefix="$acl_final_prefix"
  9136. acl_save_exec_prefix="$exec_prefix"
  9137. exec_prefix="$acl_final_exec_prefix"
  9138. eval x=\"$x\"
  9139. exec_prefix="$acl_save_exec_prefix"
  9140. prefix="$acl_save_prefix"
  9141. if test "X$x" = "X-I$additional_includedir"; then
  9142. haveit=yes
  9143. break
  9144. fi
  9145. done
  9146. if test -z "$haveit"; then
  9147. if test -d "$additional_includedir"; then
  9148. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9149. fi
  9150. fi
  9151. fi
  9152. fi
  9153. fi
  9154. if test -n "$found_la"; then
  9155. save_libdir="$libdir"
  9156. case "$found_la" in
  9157. */* | *\\*) . "$found_la" ;;
  9158. *) . "./$found_la" ;;
  9159. esac
  9160. libdir="$save_libdir"
  9161. for dep in $dependency_libs; do
  9162. case "$dep" in
  9163. -L*)
  9164. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9165. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9166. haveit=
  9167. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9168. if test -n "$GCC"; then
  9169. case $host_os in
  9170. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9171. esac
  9172. fi
  9173. fi
  9174. if test -z "$haveit"; then
  9175. haveit=
  9176. for x in $LDFLAGS $LIBPTH; do
  9177. acl_save_prefix="$prefix"
  9178. prefix="$acl_final_prefix"
  9179. acl_save_exec_prefix="$exec_prefix"
  9180. exec_prefix="$acl_final_exec_prefix"
  9181. eval x=\"$x\"
  9182. exec_prefix="$acl_save_exec_prefix"
  9183. prefix="$acl_save_prefix"
  9184. if test "X$x" = "X-L$additional_libdir"; then
  9185. haveit=yes
  9186. break
  9187. fi
  9188. done
  9189. if test -z "$haveit"; then
  9190. if test -d "$additional_libdir"; then
  9191. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9192. fi
  9193. fi
  9194. haveit=
  9195. for x in $LDFLAGS $LTLIBPTH; do
  9196. acl_save_prefix="$prefix"
  9197. prefix="$acl_final_prefix"
  9198. acl_save_exec_prefix="$exec_prefix"
  9199. exec_prefix="$acl_final_exec_prefix"
  9200. eval x=\"$x\"
  9201. exec_prefix="$acl_save_exec_prefix"
  9202. prefix="$acl_save_prefix"
  9203. if test "X$x" = "X-L$additional_libdir"; then
  9204. haveit=yes
  9205. break
  9206. fi
  9207. done
  9208. if test -z "$haveit"; then
  9209. if test -d "$additional_libdir"; then
  9210. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9211. fi
  9212. fi
  9213. fi
  9214. fi
  9215. ;;
  9216. -R*)
  9217. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9218. if test "$enable_rpath" != no; then
  9219. haveit=
  9220. for x in $rpathdirs; do
  9221. if test "X$x" = "X$dir"; then
  9222. haveit=yes
  9223. break
  9224. fi
  9225. done
  9226. if test -z "$haveit"; then
  9227. rpathdirs="$rpathdirs $dir"
  9228. fi
  9229. haveit=
  9230. for x in $ltrpathdirs; do
  9231. if test "X$x" = "X$dir"; then
  9232. haveit=yes
  9233. break
  9234. fi
  9235. done
  9236. if test -z "$haveit"; then
  9237. ltrpathdirs="$ltrpathdirs $dir"
  9238. fi
  9239. fi
  9240. ;;
  9241. -l*)
  9242. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9243. ;;
  9244. *.la)
  9245. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9246. ;;
  9247. *)
  9248. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9249. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9250. ;;
  9251. esac
  9252. done
  9253. fi
  9254. else
  9255. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9256. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9257. fi
  9258. fi
  9259. fi
  9260. done
  9261. done
  9262. if test "X$rpathdirs" != "X"; then
  9263. if test -n "$acl_hardcode_libdir_separator"; then
  9264. alldirs=
  9265. for found_dir in $rpathdirs; do
  9266. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9267. done
  9268. acl_save_libdir="$libdir"
  9269. libdir="$alldirs"
  9270. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9271. libdir="$acl_save_libdir"
  9272. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9273. else
  9274. for found_dir in $rpathdirs; do
  9275. acl_save_libdir="$libdir"
  9276. libdir="$found_dir"
  9277. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9278. libdir="$acl_save_libdir"
  9279. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9280. done
  9281. fi
  9282. fi
  9283. if test "X$ltrpathdirs" != "X"; then
  9284. for found_dir in $ltrpathdirs; do
  9285. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9286. done
  9287. fi
  9288. ac_cv_libpth_libs="$LIBPTH"
  9289. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9290. ac_cv_libpth_cppflags="$INCPTH"
  9291. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9292. fi
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9294. $as_echo "$ac_cv_libpth_libs" >&6; }
  9295. LIBPTH="$ac_cv_libpth_libs"
  9296. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9297. INCPTH="$ac_cv_libpth_cppflags"
  9298. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9299. for element in $INCPTH; do
  9300. haveit=
  9301. for x in $CPPFLAGS; do
  9302. acl_save_prefix="$prefix"
  9303. prefix="$acl_final_prefix"
  9304. acl_save_exec_prefix="$exec_prefix"
  9305. exec_prefix="$acl_final_exec_prefix"
  9306. eval x=\"$x\"
  9307. exec_prefix="$acl_save_exec_prefix"
  9308. prefix="$acl_save_prefix"
  9309. if test "X$x" = "X$element"; then
  9310. haveit=yes
  9311. break
  9312. fi
  9313. done
  9314. if test -z "$haveit"; then
  9315. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9316. fi
  9317. done
  9318. HAVE_LIBPTH=yes
  9319. gl_have_pth=
  9320. gl_save_LIBS="$LIBS"
  9321. LIBS="$LIBS -lpth"
  9322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9323. /* end confdefs.h. */
  9324. #include <pth.h>
  9325. int
  9326. main ()
  9327. {
  9328. pth_self();
  9329. ;
  9330. return 0;
  9331. }
  9332. _ACEOF
  9333. if ac_fn_cxx_try_link "$LINENO"; then :
  9334. gl_have_pth=yes
  9335. fi
  9336. rm -f core conftest.err conftest.$ac_objext \
  9337. conftest$ac_exeext conftest.$ac_ext
  9338. LIBS="$gl_save_LIBS"
  9339. if test -n "$gl_have_pth"; then
  9340. gl_threads_api=pth
  9341. LIBTHREAD="$LIBPTH"
  9342. LTLIBTHREAD="$LTLIBPTH"
  9343. LIBMULTITHREAD="$LIBTHREAD"
  9344. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9345. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9346. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9347. if test $gl_have_weak = yes; then
  9348. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9349. LIBTHREAD=
  9350. LTLIBTHREAD=
  9351. fi
  9352. fi
  9353. else
  9354. CPPFLAGS="$gl_save_CPPFLAGS"
  9355. fi
  9356. fi
  9357. if test -z "$gl_have_pthread"; then
  9358. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9359. if { case "$host_os" in
  9360. mingw*) true;;
  9361. *) false;;
  9362. esac
  9363. }; then
  9364. gl_threads_api=win32
  9365. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9366. fi
  9367. fi
  9368. fi
  9369. fi
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9371. $as_echo_n "checking for multithread API to use... " >&6; }
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9373. $as_echo "$gl_threads_api" >&6; }
  9374. use_additional=yes
  9375. acl_save_prefix="$prefix"
  9376. prefix="$acl_final_prefix"
  9377. acl_save_exec_prefix="$exec_prefix"
  9378. exec_prefix="$acl_final_exec_prefix"
  9379. eval additional_includedir=\"$includedir\"
  9380. eval additional_libdir=\"$libdir\"
  9381. exec_prefix="$acl_save_exec_prefix"
  9382. prefix="$acl_save_prefix"
  9383. # Check whether --with-libiconv-prefix was given.
  9384. if test "${with_libiconv_prefix+set}" = set; then :
  9385. withval=$with_libiconv_prefix;
  9386. if test "X$withval" = "Xno"; then
  9387. use_additional=no
  9388. else
  9389. if test "X$withval" = "X"; then
  9390. acl_save_prefix="$prefix"
  9391. prefix="$acl_final_prefix"
  9392. acl_save_exec_prefix="$exec_prefix"
  9393. exec_prefix="$acl_final_exec_prefix"
  9394. eval additional_includedir=\"$includedir\"
  9395. eval additional_libdir=\"$libdir\"
  9396. exec_prefix="$acl_save_exec_prefix"
  9397. prefix="$acl_save_prefix"
  9398. else
  9399. additional_includedir="$withval/include"
  9400. additional_libdir="$withval/$acl_libdirstem"
  9401. fi
  9402. fi
  9403. fi
  9404. LIBICONV=
  9405. LTLIBICONV=
  9406. INCICONV=
  9407. LIBICONV_PREFIX=
  9408. rpathdirs=
  9409. ltrpathdirs=
  9410. names_already_handled=
  9411. names_next_round='iconv '
  9412. while test -n "$names_next_round"; do
  9413. names_this_round="$names_next_round"
  9414. names_next_round=
  9415. for name in $names_this_round; do
  9416. already_handled=
  9417. for n in $names_already_handled; do
  9418. if test "$n" = "$name"; then
  9419. already_handled=yes
  9420. break
  9421. fi
  9422. done
  9423. if test -z "$already_handled"; then
  9424. names_already_handled="$names_already_handled $name"
  9425. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9426. eval value=\"\$HAVE_LIB$uppername\"
  9427. if test -n "$value"; then
  9428. if test "$value" = yes; then
  9429. eval value=\"\$LIB$uppername\"
  9430. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9431. eval value=\"\$LTLIB$uppername\"
  9432. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9433. else
  9434. :
  9435. fi
  9436. else
  9437. found_dir=
  9438. found_la=
  9439. found_so=
  9440. found_a=
  9441. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9442. if test -n "$acl_shlibext"; then
  9443. shrext=".$acl_shlibext" # typically: shrext=.so
  9444. else
  9445. shrext=
  9446. fi
  9447. if test $use_additional = yes; then
  9448. dir="$additional_libdir"
  9449. if test -n "$acl_shlibext"; then
  9450. if test -f "$dir/$libname$shrext"; then
  9451. found_dir="$dir"
  9452. found_so="$dir/$libname$shrext"
  9453. else
  9454. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9455. ver=`(cd "$dir" && \
  9456. for f in "$libname$shrext".*; do echo "$f"; done \
  9457. | sed -e "s,^$libname$shrext\\\\.,," \
  9458. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9459. | sed 1q ) 2>/dev/null`
  9460. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9461. found_dir="$dir"
  9462. found_so="$dir/$libname$shrext.$ver"
  9463. fi
  9464. else
  9465. eval library_names=\"$acl_library_names_spec\"
  9466. for f in $library_names; do
  9467. if test -f "$dir/$f"; then
  9468. found_dir="$dir"
  9469. found_so="$dir/$f"
  9470. break
  9471. fi
  9472. done
  9473. fi
  9474. fi
  9475. fi
  9476. if test "X$found_dir" = "X"; then
  9477. if test -f "$dir/$libname.$acl_libext"; then
  9478. found_dir="$dir"
  9479. found_a="$dir/$libname.$acl_libext"
  9480. fi
  9481. fi
  9482. if test "X$found_dir" != "X"; then
  9483. if test -f "$dir/$libname.la"; then
  9484. found_la="$dir/$libname.la"
  9485. fi
  9486. fi
  9487. fi
  9488. if test "X$found_dir" = "X"; then
  9489. for x in $LDFLAGS $LTLIBICONV; do
  9490. acl_save_prefix="$prefix"
  9491. prefix="$acl_final_prefix"
  9492. acl_save_exec_prefix="$exec_prefix"
  9493. exec_prefix="$acl_final_exec_prefix"
  9494. eval x=\"$x\"
  9495. exec_prefix="$acl_save_exec_prefix"
  9496. prefix="$acl_save_prefix"
  9497. case "$x" in
  9498. -L*)
  9499. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9500. if test -n "$acl_shlibext"; then
  9501. if test -f "$dir/$libname$shrext"; then
  9502. found_dir="$dir"
  9503. found_so="$dir/$libname$shrext"
  9504. else
  9505. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9506. ver=`(cd "$dir" && \
  9507. for f in "$libname$shrext".*; do echo "$f"; done \
  9508. | sed -e "s,^$libname$shrext\\\\.,," \
  9509. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9510. | sed 1q ) 2>/dev/null`
  9511. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9512. found_dir="$dir"
  9513. found_so="$dir/$libname$shrext.$ver"
  9514. fi
  9515. else
  9516. eval library_names=\"$acl_library_names_spec\"
  9517. for f in $library_names; do
  9518. if test -f "$dir/$f"; then
  9519. found_dir="$dir"
  9520. found_so="$dir/$f"
  9521. break
  9522. fi
  9523. done
  9524. fi
  9525. fi
  9526. fi
  9527. if test "X$found_dir" = "X"; then
  9528. if test -f "$dir/$libname.$acl_libext"; then
  9529. found_dir="$dir"
  9530. found_a="$dir/$libname.$acl_libext"
  9531. fi
  9532. fi
  9533. if test "X$found_dir" != "X"; then
  9534. if test -f "$dir/$libname.la"; then
  9535. found_la="$dir/$libname.la"
  9536. fi
  9537. fi
  9538. ;;
  9539. esac
  9540. if test "X$found_dir" != "X"; then
  9541. break
  9542. fi
  9543. done
  9544. fi
  9545. if test "X$found_dir" != "X"; then
  9546. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9547. if test "X$found_so" != "X"; then
  9548. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9549. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9550. else
  9551. haveit=
  9552. for x in $ltrpathdirs; do
  9553. if test "X$x" = "X$found_dir"; then
  9554. haveit=yes
  9555. break
  9556. fi
  9557. done
  9558. if test -z "$haveit"; then
  9559. ltrpathdirs="$ltrpathdirs $found_dir"
  9560. fi
  9561. if test "$acl_hardcode_direct" = yes; then
  9562. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9563. else
  9564. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9565. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9566. haveit=
  9567. for x in $rpathdirs; do
  9568. if test "X$x" = "X$found_dir"; then
  9569. haveit=yes
  9570. break
  9571. fi
  9572. done
  9573. if test -z "$haveit"; then
  9574. rpathdirs="$rpathdirs $found_dir"
  9575. fi
  9576. else
  9577. haveit=
  9578. for x in $LDFLAGS $LIBICONV; do
  9579. acl_save_prefix="$prefix"
  9580. prefix="$acl_final_prefix"
  9581. acl_save_exec_prefix="$exec_prefix"
  9582. exec_prefix="$acl_final_exec_prefix"
  9583. eval x=\"$x\"
  9584. exec_prefix="$acl_save_exec_prefix"
  9585. prefix="$acl_save_prefix"
  9586. if test "X$x" = "X-L$found_dir"; then
  9587. haveit=yes
  9588. break
  9589. fi
  9590. done
  9591. if test -z "$haveit"; then
  9592. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9593. fi
  9594. if test "$acl_hardcode_minus_L" != no; then
  9595. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9596. else
  9597. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9598. fi
  9599. fi
  9600. fi
  9601. fi
  9602. else
  9603. if test "X$found_a" != "X"; then
  9604. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9605. else
  9606. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9607. fi
  9608. fi
  9609. additional_includedir=
  9610. case "$found_dir" in
  9611. */$acl_libdirstem | */$acl_libdirstem/)
  9612. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9613. LIBICONV_PREFIX="$basedir"
  9614. additional_includedir="$basedir/include"
  9615. ;;
  9616. esac
  9617. if test "X$additional_includedir" != "X"; then
  9618. if test "X$additional_includedir" != "X/usr/include"; then
  9619. haveit=
  9620. if test "X$additional_includedir" = "X/usr/local/include"; then
  9621. if test -n "$GCC"; then
  9622. case $host_os in
  9623. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9624. esac
  9625. fi
  9626. fi
  9627. if test -z "$haveit"; then
  9628. for x in $CPPFLAGS $INCICONV; do
  9629. acl_save_prefix="$prefix"
  9630. prefix="$acl_final_prefix"
  9631. acl_save_exec_prefix="$exec_prefix"
  9632. exec_prefix="$acl_final_exec_prefix"
  9633. eval x=\"$x\"
  9634. exec_prefix="$acl_save_exec_prefix"
  9635. prefix="$acl_save_prefix"
  9636. if test "X$x" = "X-I$additional_includedir"; then
  9637. haveit=yes
  9638. break
  9639. fi
  9640. done
  9641. if test -z "$haveit"; then
  9642. if test -d "$additional_includedir"; then
  9643. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9644. fi
  9645. fi
  9646. fi
  9647. fi
  9648. fi
  9649. if test -n "$found_la"; then
  9650. save_libdir="$libdir"
  9651. case "$found_la" in
  9652. */* | *\\*) . "$found_la" ;;
  9653. *) . "./$found_la" ;;
  9654. esac
  9655. libdir="$save_libdir"
  9656. for dep in $dependency_libs; do
  9657. case "$dep" in
  9658. -L*)
  9659. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9660. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9661. haveit=
  9662. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9663. if test -n "$GCC"; then
  9664. case $host_os in
  9665. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9666. esac
  9667. fi
  9668. fi
  9669. if test -z "$haveit"; then
  9670. haveit=
  9671. for x in $LDFLAGS $LIBICONV; do
  9672. acl_save_prefix="$prefix"
  9673. prefix="$acl_final_prefix"
  9674. acl_save_exec_prefix="$exec_prefix"
  9675. exec_prefix="$acl_final_exec_prefix"
  9676. eval x=\"$x\"
  9677. exec_prefix="$acl_save_exec_prefix"
  9678. prefix="$acl_save_prefix"
  9679. if test "X$x" = "X-L$additional_libdir"; then
  9680. haveit=yes
  9681. break
  9682. fi
  9683. done
  9684. if test -z "$haveit"; then
  9685. if test -d "$additional_libdir"; then
  9686. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9687. fi
  9688. fi
  9689. haveit=
  9690. for x in $LDFLAGS $LTLIBICONV; do
  9691. acl_save_prefix="$prefix"
  9692. prefix="$acl_final_prefix"
  9693. acl_save_exec_prefix="$exec_prefix"
  9694. exec_prefix="$acl_final_exec_prefix"
  9695. eval x=\"$x\"
  9696. exec_prefix="$acl_save_exec_prefix"
  9697. prefix="$acl_save_prefix"
  9698. if test "X$x" = "X-L$additional_libdir"; then
  9699. haveit=yes
  9700. break
  9701. fi
  9702. done
  9703. if test -z "$haveit"; then
  9704. if test -d "$additional_libdir"; then
  9705. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9706. fi
  9707. fi
  9708. fi
  9709. fi
  9710. ;;
  9711. -R*)
  9712. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9713. if test "$enable_rpath" != no; then
  9714. haveit=
  9715. for x in $rpathdirs; do
  9716. if test "X$x" = "X$dir"; then
  9717. haveit=yes
  9718. break
  9719. fi
  9720. done
  9721. if test -z "$haveit"; then
  9722. rpathdirs="$rpathdirs $dir"
  9723. fi
  9724. haveit=
  9725. for x in $ltrpathdirs; do
  9726. if test "X$x" = "X$dir"; then
  9727. haveit=yes
  9728. break
  9729. fi
  9730. done
  9731. if test -z "$haveit"; then
  9732. ltrpathdirs="$ltrpathdirs $dir"
  9733. fi
  9734. fi
  9735. ;;
  9736. -l*)
  9737. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9738. ;;
  9739. *.la)
  9740. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9741. ;;
  9742. *)
  9743. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9744. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9745. ;;
  9746. esac
  9747. done
  9748. fi
  9749. else
  9750. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9751. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9752. fi
  9753. fi
  9754. fi
  9755. done
  9756. done
  9757. if test "X$rpathdirs" != "X"; then
  9758. if test -n "$acl_hardcode_libdir_separator"; then
  9759. alldirs=
  9760. for found_dir in $rpathdirs; do
  9761. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9762. done
  9763. acl_save_libdir="$libdir"
  9764. libdir="$alldirs"
  9765. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9766. libdir="$acl_save_libdir"
  9767. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9768. else
  9769. for found_dir in $rpathdirs; do
  9770. acl_save_libdir="$libdir"
  9771. libdir="$found_dir"
  9772. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9773. libdir="$acl_save_libdir"
  9774. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9775. done
  9776. fi
  9777. fi
  9778. if test "X$ltrpathdirs" != "X"; then
  9779. for found_dir in $ltrpathdirs; do
  9780. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9781. done
  9782. fi
  9783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9784. /* end confdefs.h. */
  9785. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9786. int
  9787. main ()
  9788. {
  9789. ;
  9790. return 0;
  9791. }
  9792. _ACEOF
  9793. if ac_fn_cxx_try_link "$LINENO"; then :
  9794. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9795. fi
  9796. rm -f core conftest.err conftest.$ac_objext \
  9797. conftest$ac_exeext conftest.$ac_ext
  9798. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9799. do :
  9800. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9801. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9802. eval as_val=\$$as_ac_Header
  9803. if test "x$as_val" = x""yes; then :
  9804. cat >>confdefs.h <<_ACEOF
  9805. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9806. _ACEOF
  9807. fi
  9808. done
  9809. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9810. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9811. argz_next __fsetlocking
  9812. do :
  9813. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9814. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9815. eval as_val=\$$as_ac_var
  9816. if test "x$as_val" = x""yes; then :
  9817. cat >>confdefs.h <<_ACEOF
  9818. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9819. _ACEOF
  9820. fi
  9821. done
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9823. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9824. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9825. $as_echo_n "(cached) " >&6
  9826. else
  9827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9828. /* end confdefs.h. */
  9829. #include <stdio.h>
  9830. int
  9831. main ()
  9832. {
  9833. #ifndef feof_unlocked
  9834. char *p = (char *) feof_unlocked;
  9835. #endif
  9836. ;
  9837. return 0;
  9838. }
  9839. _ACEOF
  9840. if ac_fn_cxx_try_compile "$LINENO"; then :
  9841. ac_cv_have_decl_feof_unlocked=yes
  9842. else
  9843. ac_cv_have_decl_feof_unlocked=no
  9844. fi
  9845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9846. fi
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9848. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9849. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9850. gt_value=1
  9851. else
  9852. gt_value=0
  9853. fi
  9854. cat >>confdefs.h <<_ACEOF
  9855. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9856. _ACEOF
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9858. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9859. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9860. $as_echo_n "(cached) " >&6
  9861. else
  9862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9863. /* end confdefs.h. */
  9864. #include <stdio.h>
  9865. int
  9866. main ()
  9867. {
  9868. #ifndef fgets_unlocked
  9869. char *p = (char *) fgets_unlocked;
  9870. #endif
  9871. ;
  9872. return 0;
  9873. }
  9874. _ACEOF
  9875. if ac_fn_cxx_try_compile "$LINENO"; then :
  9876. ac_cv_have_decl_fgets_unlocked=yes
  9877. else
  9878. ac_cv_have_decl_fgets_unlocked=no
  9879. fi
  9880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9881. fi
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9883. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  9884. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9885. gt_value=1
  9886. else
  9887. gt_value=0
  9888. fi
  9889. cat >>confdefs.h <<_ACEOF
  9890. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9891. _ACEOF
  9892. am_save_CPPFLAGS="$CPPFLAGS"
  9893. for element in $INCICONV; do
  9894. haveit=
  9895. for x in $CPPFLAGS; do
  9896. acl_save_prefix="$prefix"
  9897. prefix="$acl_final_prefix"
  9898. acl_save_exec_prefix="$exec_prefix"
  9899. exec_prefix="$acl_final_exec_prefix"
  9900. eval x=\"$x\"
  9901. exec_prefix="$acl_save_exec_prefix"
  9902. prefix="$acl_save_prefix"
  9903. if test "X$x" = "X$element"; then
  9904. haveit=yes
  9905. break
  9906. fi
  9907. done
  9908. if test -z "$haveit"; then
  9909. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9910. fi
  9911. done
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  9913. $as_echo_n "checking for iconv... " >&6; }
  9914. if test "${am_cv_func_iconv+set}" = set; then :
  9915. $as_echo_n "(cached) " >&6
  9916. else
  9917. am_cv_func_iconv="no, consider installing GNU libiconv"
  9918. am_cv_lib_iconv=no
  9919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9920. /* end confdefs.h. */
  9921. #include <stdlib.h>
  9922. #include <iconv.h>
  9923. int
  9924. main ()
  9925. {
  9926. iconv_t cd = iconv_open("","");
  9927. iconv(cd,NULL,NULL,NULL,NULL);
  9928. iconv_close(cd);
  9929. ;
  9930. return 0;
  9931. }
  9932. _ACEOF
  9933. if ac_fn_cxx_try_link "$LINENO"; then :
  9934. am_cv_func_iconv=yes
  9935. fi
  9936. rm -f core conftest.err conftest.$ac_objext \
  9937. conftest$ac_exeext conftest.$ac_ext
  9938. if test "$am_cv_func_iconv" != yes; then
  9939. am_save_LIBS="$LIBS"
  9940. LIBS="$LIBS $LIBICONV"
  9941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9942. /* end confdefs.h. */
  9943. #include <stdlib.h>
  9944. #include <iconv.h>
  9945. int
  9946. main ()
  9947. {
  9948. iconv_t cd = iconv_open("","");
  9949. iconv(cd,NULL,NULL,NULL,NULL);
  9950. iconv_close(cd);
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. if ac_fn_cxx_try_link "$LINENO"; then :
  9956. am_cv_lib_iconv=yes
  9957. am_cv_func_iconv=yes
  9958. fi
  9959. rm -f core conftest.err conftest.$ac_objext \
  9960. conftest$ac_exeext conftest.$ac_ext
  9961. LIBS="$am_save_LIBS"
  9962. fi
  9963. fi
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  9965. $as_echo "$am_cv_func_iconv" >&6; }
  9966. if test "$am_cv_func_iconv" = yes; then
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  9968. $as_echo_n "checking for working iconv... " >&6; }
  9969. if test "${am_cv_func_iconv_works+set}" = set; then :
  9970. $as_echo_n "(cached) " >&6
  9971. else
  9972. am_save_LIBS="$LIBS"
  9973. if test $am_cv_lib_iconv = yes; then
  9974. LIBS="$LIBS $LIBICONV"
  9975. fi
  9976. if test "$cross_compiling" = yes; then :
  9977. case "$host_os" in
  9978. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  9979. *) am_cv_func_iconv_works="guessing yes" ;;
  9980. esac
  9981. else
  9982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9983. /* end confdefs.h. */
  9984. #include <iconv.h>
  9985. #include <string.h>
  9986. int main ()
  9987. {
  9988. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  9989. returns. */
  9990. {
  9991. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  9992. if (cd_utf8_to_88591 != (iconv_t)(-1))
  9993. {
  9994. static const char input[] = "\342\202\254"; /* EURO SIGN */
  9995. char buf[10];
  9996. const char *inptr = input;
  9997. size_t inbytesleft = strlen (input);
  9998. char *outptr = buf;
  9999. size_t outbytesleft = sizeof (buf);
  10000. size_t res = iconv (cd_utf8_to_88591,
  10001. (char **) &inptr, &inbytesleft,
  10002. &outptr, &outbytesleft);
  10003. if (res == 0)
  10004. return 1;
  10005. }
  10006. }
  10007. #if 0 /* This bug could be worked around by the caller. */
  10008. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10009. {
  10010. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10011. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10012. {
  10013. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10014. char buf[50];
  10015. const char *inptr = input;
  10016. size_t inbytesleft = strlen (input);
  10017. char *outptr = buf;
  10018. size_t outbytesleft = sizeof (buf);
  10019. size_t res = iconv (cd_88591_to_utf8,
  10020. (char **) &inptr, &inbytesleft,
  10021. &outptr, &outbytesleft);
  10022. if ((int)res > 0)
  10023. return 1;
  10024. }
  10025. }
  10026. #endif
  10027. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10028. provided. */
  10029. if (/* Try standardized names. */
  10030. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10031. /* Try IRIX, OSF/1 names. */
  10032. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10033. /* Try AIX names. */
  10034. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10035. /* Try HP-UX names. */
  10036. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10037. return 1;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_cxx_try_run "$LINENO"; then :
  10042. am_cv_func_iconv_works=yes
  10043. else
  10044. am_cv_func_iconv_works=no
  10045. fi
  10046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10048. fi
  10049. LIBS="$am_save_LIBS"
  10050. fi
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10052. $as_echo "$am_cv_func_iconv_works" >&6; }
  10053. case "$am_cv_func_iconv_works" in
  10054. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10055. *) am_func_iconv=yes ;;
  10056. esac
  10057. else
  10058. am_func_iconv=no am_cv_lib_iconv=no
  10059. fi
  10060. if test "$am_func_iconv" = yes; then
  10061. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10062. fi
  10063. if test "$am_cv_lib_iconv" = yes; then
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10065. $as_echo_n "checking how to link with libiconv... " >&6; }
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10067. $as_echo "$LIBICONV" >&6; }
  10068. else
  10069. CPPFLAGS="$am_save_CPPFLAGS"
  10070. LIBICONV=
  10071. LTLIBICONV=
  10072. fi
  10073. if test "$am_cv_func_iconv" = yes; then
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10075. $as_echo_n "checking for iconv declaration... " >&6; }
  10076. if test "${am_cv_proto_iconv+set}" = set; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10080. /* end confdefs.h. */
  10081. #include <stdlib.h>
  10082. #include <iconv.h>
  10083. extern
  10084. #ifdef __cplusplus
  10085. "C"
  10086. #endif
  10087. #if defined(__STDC__) || defined(__cplusplus)
  10088. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10089. #else
  10090. size_t iconv();
  10091. #endif
  10092. int
  10093. main ()
  10094. {
  10095. ;
  10096. return 0;
  10097. }
  10098. _ACEOF
  10099. if ac_fn_cxx_try_compile "$LINENO"; then :
  10100. am_cv_proto_iconv_arg1=""
  10101. else
  10102. am_cv_proto_iconv_arg1="const"
  10103. fi
  10104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10105. 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);"
  10106. fi
  10107. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10109. }$am_cv_proto_iconv" >&5
  10110. $as_echo "${ac_t:-
  10111. }$am_cv_proto_iconv" >&6; }
  10112. cat >>confdefs.h <<_ACEOF
  10113. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10114. _ACEOF
  10115. fi
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10117. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10118. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10122. /* end confdefs.h. */
  10123. #include <langinfo.h>
  10124. #include <locale.h>
  10125. int
  10126. main ()
  10127. {
  10128. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10129. return !cs;
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. if ac_fn_cxx_try_link "$LINENO"; then :
  10135. gt_cv_nl_locale_name=yes
  10136. else
  10137. gt_cv_nl_locale_name=no
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext \
  10140. conftest$ac_exeext conftest.$ac_ext
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10143. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10144. if test $gt_cv_nl_locale_name = yes; then
  10145. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10146. fi
  10147. for ac_prog in bison
  10148. do
  10149. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10150. set dummy $ac_prog; ac_word=$2
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10152. $as_echo_n "checking for $ac_word... " >&6; }
  10153. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10154. $as_echo_n "(cached) " >&6
  10155. else
  10156. if test -n "$INTLBISON"; then
  10157. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10158. else
  10159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10160. for as_dir in $PATH
  10161. do
  10162. IFS=$as_save_IFS
  10163. test -z "$as_dir" && as_dir=.
  10164. for ac_exec_ext in '' $ac_executable_extensions; do
  10165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10166. ac_cv_prog_INTLBISON="$ac_prog"
  10167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10168. break 2
  10169. fi
  10170. done
  10171. done
  10172. IFS=$as_save_IFS
  10173. fi
  10174. fi
  10175. INTLBISON=$ac_cv_prog_INTLBISON
  10176. if test -n "$INTLBISON"; then
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10178. $as_echo "$INTLBISON" >&6; }
  10179. else
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10181. $as_echo "no" >&6; }
  10182. fi
  10183. test -n "$INTLBISON" && break
  10184. done
  10185. if test -z "$INTLBISON"; then
  10186. ac_verc_fail=yes
  10187. else
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10189. $as_echo_n "checking version of bison... " >&6; }
  10190. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10191. case $ac_prog_version in
  10192. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10193. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10194. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10195. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10196. esac
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10198. $as_echo "$ac_prog_version" >&6; }
  10199. fi
  10200. if test $ac_verc_fail = yes; then
  10201. INTLBISON=:
  10202. fi
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10204. $as_echo_n "checking for long long int... " >&6; }
  10205. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10206. $as_echo_n "(cached) " >&6
  10207. else
  10208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10209. /* end confdefs.h. */
  10210. /* Test preprocessor. */
  10211. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10212. error in preprocessor;
  10213. #endif
  10214. #if ! (18446744073709551615ULL <= -1ull)
  10215. error in preprocessor;
  10216. #endif
  10217. /* Test literals. */
  10218. long long int ll = 9223372036854775807ll;
  10219. long long int nll = -9223372036854775807LL;
  10220. unsigned long long int ull = 18446744073709551615ULL;
  10221. /* Test constant expressions. */
  10222. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10223. ? 1 : -1)];
  10224. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10225. ? 1 : -1)];
  10226. int i = 63;
  10227. int
  10228. main ()
  10229. {
  10230. /* Test availability of runtime routines for shift and division. */
  10231. long long int llmax = 9223372036854775807ll;
  10232. unsigned long long int ullmax = 18446744073709551615ull;
  10233. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10234. | (llmax / ll) | (llmax % ll)
  10235. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10236. | (ullmax / ull) | (ullmax % ull));
  10237. ;
  10238. return 0;
  10239. }
  10240. _ACEOF
  10241. if ac_fn_cxx_try_link "$LINENO"; then :
  10242. if test "$cross_compiling" = yes; then :
  10243. ac_cv_type_long_long_int=yes
  10244. else
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. #include <limits.h>
  10248. #ifndef LLONG_MAX
  10249. # define HALF \
  10250. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10251. # define LLONG_MAX (HALF - 1 + HALF)
  10252. #endif
  10253. int
  10254. main ()
  10255. {
  10256. long long int n = 1;
  10257. int i;
  10258. for (i = 0; ; i++)
  10259. {
  10260. long long int m = n << i;
  10261. if (m >> i != n)
  10262. return 1;
  10263. if (LLONG_MAX / 2 < m)
  10264. break;
  10265. }
  10266. return 0;
  10267. ;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. if ac_fn_cxx_try_run "$LINENO"; then :
  10272. ac_cv_type_long_long_int=yes
  10273. else
  10274. ac_cv_type_long_long_int=no
  10275. fi
  10276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10277. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10278. fi
  10279. else
  10280. ac_cv_type_long_long_int=no
  10281. fi
  10282. rm -f core conftest.err conftest.$ac_objext \
  10283. conftest$ac_exeext conftest.$ac_ext
  10284. fi
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10286. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10287. if test $ac_cv_type_long_long_int = yes; then
  10288. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10291. $as_echo_n "checking for wchar_t... " >&6; }
  10292. if test "${gt_cv_c_wchar_t+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 <stddef.h>
  10298. wchar_t foo = (wchar_t)'\0';
  10299. int
  10300. main ()
  10301. {
  10302. ;
  10303. return 0;
  10304. }
  10305. _ACEOF
  10306. if ac_fn_cxx_try_compile "$LINENO"; then :
  10307. gt_cv_c_wchar_t=yes
  10308. else
  10309. gt_cv_c_wchar_t=no
  10310. fi
  10311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10314. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10315. if test $gt_cv_c_wchar_t = yes; then
  10316. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10317. fi
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10319. $as_echo_n "checking for wint_t... " >&6; }
  10320. if test "${gt_cv_c_wint_t+set}" = set; then :
  10321. $as_echo_n "(cached) " >&6
  10322. else
  10323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10324. /* end confdefs.h. */
  10325. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10326. <wchar.h>.
  10327. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10328. before <wchar.h>. */
  10329. #include <stddef.h>
  10330. #include <stdio.h>
  10331. #include <time.h>
  10332. #include <wchar.h>
  10333. wint_t foo = (wchar_t)'\0';
  10334. int
  10335. main ()
  10336. {
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_cxx_try_compile "$LINENO"; then :
  10342. gt_cv_c_wint_t=yes
  10343. else
  10344. gt_cv_c_wint_t=no
  10345. fi
  10346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10347. fi
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10349. $as_echo "$gt_cv_c_wint_t" >&6; }
  10350. if test $gt_cv_c_wint_t = yes; then
  10351. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10352. fi
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10354. $as_echo_n "checking for intmax_t... " >&6; }
  10355. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10356. $as_echo_n "(cached) " >&6
  10357. else
  10358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10359. /* end confdefs.h. */
  10360. #include <stddef.h>
  10361. #include <stdlib.h>
  10362. #if HAVE_STDINT_H_WITH_UINTMAX
  10363. #include <stdint.h>
  10364. #endif
  10365. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10366. #include <inttypes.h>
  10367. #endif
  10368. int
  10369. main ()
  10370. {
  10371. intmax_t x = -1;
  10372. return !x;
  10373. ;
  10374. return 0;
  10375. }
  10376. _ACEOF
  10377. if ac_fn_cxx_try_compile "$LINENO"; then :
  10378. gt_cv_c_intmax_t=yes
  10379. else
  10380. gt_cv_c_intmax_t=no
  10381. fi
  10382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10383. fi
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10385. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10386. if test $gt_cv_c_intmax_t = yes; then
  10387. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10388. fi
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10390. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10391. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. if test "$cross_compiling" = yes; then :
  10395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10396. /* end confdefs.h. */
  10397. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10398. notposix
  10399. #endif
  10400. _ACEOF
  10401. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10402. $EGREP "notposix" >/dev/null 2>&1; then :
  10403. gt_cv_func_printf_posix="guessing no"
  10404. else
  10405. gt_cv_func_printf_posix="guessing yes"
  10406. fi
  10407. rm -f conftest*
  10408. else
  10409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10410. /* end confdefs.h. */
  10411. #include <stdio.h>
  10412. #include <string.h>
  10413. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10414. dollar expansion (possibly an autoconf bug). */
  10415. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10416. static char buf[100];
  10417. int main ()
  10418. {
  10419. sprintf (buf, format, 33, 55);
  10420. return (strcmp (buf, "55 33") != 0);
  10421. }
  10422. _ACEOF
  10423. if ac_fn_cxx_try_run "$LINENO"; then :
  10424. gt_cv_func_printf_posix=yes
  10425. else
  10426. gt_cv_func_printf_posix=no
  10427. fi
  10428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10429. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10430. fi
  10431. fi
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10433. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10434. case $gt_cv_func_printf_posix in
  10435. *yes)
  10436. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10437. ;;
  10438. esac
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10440. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10441. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. #include <features.h>
  10447. #ifdef __GNU_LIBRARY__
  10448. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10449. Lucky GNU user
  10450. #endif
  10451. #endif
  10452. _ACEOF
  10453. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10454. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10455. ac_cv_gnu_library_2_1=yes
  10456. else
  10457. ac_cv_gnu_library_2_1=no
  10458. fi
  10459. rm -f conftest*
  10460. fi
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10462. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10463. GLIBC21="$ac_cv_gnu_library_2_1"
  10464. for ac_header in stdint.h
  10465. do :
  10466. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10467. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10468. cat >>confdefs.h <<_ACEOF
  10469. #define HAVE_STDINT_H 1
  10470. _ACEOF
  10471. fi
  10472. done
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10474. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10475. if test "${gl_cv_size_max+set}" = set; then :
  10476. $as_echo_n "(cached) " >&6
  10477. else
  10478. gl_cv_size_max=
  10479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h. */
  10481. #include <limits.h>
  10482. #if HAVE_STDINT_H
  10483. #include <stdint.h>
  10484. #endif
  10485. #ifdef SIZE_MAX
  10486. Found it
  10487. #endif
  10488. _ACEOF
  10489. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10490. $EGREP "Found it" >/dev/null 2>&1; then :
  10491. gl_cv_size_max=yes
  10492. fi
  10493. rm -f conftest*
  10494. if test -z "$gl_cv_size_max"; then
  10495. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10496. #include <limits.h>"; then :
  10497. else
  10498. size_t_bits_minus_1=
  10499. fi
  10500. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10501. else
  10502. fits_in_uint=
  10503. fi
  10504. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10505. if test $fits_in_uint = 1; then
  10506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10507. /* end confdefs.h. */
  10508. #include <stddef.h>
  10509. extern size_t foo;
  10510. extern unsigned long foo;
  10511. int
  10512. main ()
  10513. {
  10514. ;
  10515. return 0;
  10516. }
  10517. _ACEOF
  10518. if ac_fn_cxx_try_compile "$LINENO"; then :
  10519. fits_in_uint=0
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. fi
  10523. if test $fits_in_uint = 1; then
  10524. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10525. else
  10526. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10527. fi
  10528. else
  10529. gl_cv_size_max='((size_t)~(size_t)0)'
  10530. fi
  10531. fi
  10532. fi
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10534. $as_echo "$gl_cv_size_max" >&6; }
  10535. if test "$gl_cv_size_max" != yes; then
  10536. cat >>confdefs.h <<_ACEOF
  10537. #define SIZE_MAX $gl_cv_size_max
  10538. _ACEOF
  10539. fi
  10540. for ac_header in stdint.h
  10541. do :
  10542. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10543. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10544. cat >>confdefs.h <<_ACEOF
  10545. #define HAVE_STDINT_H 1
  10546. _ACEOF
  10547. fi
  10548. done
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10550. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10551. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10552. $as_echo_n "(cached) " >&6
  10553. else
  10554. gt_save_LIBS="$LIBS"
  10555. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10557. /* end confdefs.h. */
  10558. #include <CoreFoundation/CFPreferences.h>
  10559. int
  10560. main ()
  10561. {
  10562. CFPreferencesCopyAppValue(NULL, NULL)
  10563. ;
  10564. return 0;
  10565. }
  10566. _ACEOF
  10567. if ac_fn_cxx_try_link "$LINENO"; then :
  10568. gt_cv_func_CFPreferencesCopyAppValue=yes
  10569. else
  10570. gt_cv_func_CFPreferencesCopyAppValue=no
  10571. fi
  10572. rm -f core conftest.err conftest.$ac_objext \
  10573. conftest$ac_exeext conftest.$ac_ext
  10574. LIBS="$gt_save_LIBS"
  10575. fi
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10577. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10578. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10579. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10580. fi
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10582. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10583. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10584. $as_echo_n "(cached) " >&6
  10585. else
  10586. gt_save_LIBS="$LIBS"
  10587. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #include <CoreFoundation/CFLocale.h>
  10591. int
  10592. main ()
  10593. {
  10594. CFLocaleCopyCurrent();
  10595. ;
  10596. return 0;
  10597. }
  10598. _ACEOF
  10599. if ac_fn_cxx_try_link "$LINENO"; then :
  10600. gt_cv_func_CFLocaleCopyCurrent=yes
  10601. else
  10602. gt_cv_func_CFLocaleCopyCurrent=no
  10603. fi
  10604. rm -f core conftest.err conftest.$ac_objext \
  10605. conftest$ac_exeext conftest.$ac_ext
  10606. LIBS="$gt_save_LIBS"
  10607. fi
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10609. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10610. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10611. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10612. fi
  10613. INTL_MACOSX_LIBS=
  10614. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10615. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10616. fi
  10617. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10618. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10619. else
  10620. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10621. fi
  10622. for ac_header in stddef.h stdlib.h string.h
  10623. do :
  10624. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10625. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10626. eval as_val=\$$as_ac_Header
  10627. if test "x$as_val" = x""yes; then :
  10628. cat >>confdefs.h <<_ACEOF
  10629. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10630. _ACEOF
  10631. fi
  10632. done
  10633. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10634. do :
  10635. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10636. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10637. eval as_val=\$$as_ac_var
  10638. if test "x$as_val" = x""yes; then :
  10639. cat >>confdefs.h <<_ACEOF
  10640. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10641. _ACEOF
  10642. fi
  10643. done
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10645. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10646. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10647. $as_echo_n "(cached) " >&6
  10648. else
  10649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10650. /* end confdefs.h. */
  10651. #include <stdio.h>
  10652. int
  10653. main ()
  10654. {
  10655. #ifndef _snprintf
  10656. char *p = (char *) _snprintf;
  10657. #endif
  10658. ;
  10659. return 0;
  10660. }
  10661. _ACEOF
  10662. if ac_fn_cxx_try_compile "$LINENO"; then :
  10663. ac_cv_have_decl__snprintf=yes
  10664. else
  10665. ac_cv_have_decl__snprintf=no
  10666. fi
  10667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10668. fi
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10670. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10671. if test $ac_cv_have_decl__snprintf = yes; then
  10672. gt_value=1
  10673. else
  10674. gt_value=0
  10675. fi
  10676. cat >>confdefs.h <<_ACEOF
  10677. #define HAVE_DECL__SNPRINTF $gt_value
  10678. _ACEOF
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10680. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10681. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10685. /* end confdefs.h. */
  10686. #include <stdio.h>
  10687. int
  10688. main ()
  10689. {
  10690. #ifndef _snwprintf
  10691. char *p = (char *) _snwprintf;
  10692. #endif
  10693. ;
  10694. return 0;
  10695. }
  10696. _ACEOF
  10697. if ac_fn_cxx_try_compile "$LINENO"; then :
  10698. ac_cv_have_decl__snwprintf=yes
  10699. else
  10700. ac_cv_have_decl__snwprintf=no
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10703. fi
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10705. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10706. if test $ac_cv_have_decl__snwprintf = yes; then
  10707. gt_value=1
  10708. else
  10709. gt_value=0
  10710. fi
  10711. cat >>confdefs.h <<_ACEOF
  10712. #define HAVE_DECL__SNWPRINTF $gt_value
  10713. _ACEOF
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10715. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10716. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10717. $as_echo_n "(cached) " >&6
  10718. else
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. #include <stdio.h>
  10722. int
  10723. main ()
  10724. {
  10725. #ifndef getc_unlocked
  10726. char *p = (char *) getc_unlocked;
  10727. #endif
  10728. ;
  10729. return 0;
  10730. }
  10731. _ACEOF
  10732. if ac_fn_cxx_try_compile "$LINENO"; then :
  10733. ac_cv_have_decl_getc_unlocked=yes
  10734. else
  10735. ac_cv_have_decl_getc_unlocked=no
  10736. fi
  10737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10738. fi
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10740. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10741. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10742. gt_value=1
  10743. else
  10744. gt_value=0
  10745. fi
  10746. cat >>confdefs.h <<_ACEOF
  10747. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10748. _ACEOF
  10749. case $gt_cv_func_printf_posix in
  10750. *yes) HAVE_POSIX_PRINTF=1 ;;
  10751. *) HAVE_POSIX_PRINTF=0 ;;
  10752. esac
  10753. if test "$ac_cv_func_asprintf" = yes; then
  10754. HAVE_ASPRINTF=1
  10755. else
  10756. HAVE_ASPRINTF=0
  10757. fi
  10758. if test "$ac_cv_func_snprintf" = yes; then
  10759. HAVE_SNPRINTF=1
  10760. else
  10761. HAVE_SNPRINTF=0
  10762. fi
  10763. if test "$ac_cv_func_wprintf" = yes; then
  10764. HAVE_WPRINTF=1
  10765. else
  10766. HAVE_WPRINTF=0
  10767. fi
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10769. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10770. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h. */
  10775. #include <langinfo.h>
  10776. int
  10777. main ()
  10778. {
  10779. char* cs = nl_langinfo(CODESET); return !cs;
  10780. ;
  10781. return 0;
  10782. }
  10783. _ACEOF
  10784. if ac_fn_cxx_try_link "$LINENO"; then :
  10785. am_cv_langinfo_codeset=yes
  10786. else
  10787. am_cv_langinfo_codeset=no
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext \
  10790. conftest$ac_exeext conftest.$ac_ext
  10791. fi
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10793. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10794. if test $am_cv_langinfo_codeset = yes; then
  10795. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10796. fi
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10798. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10799. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10800. $as_echo_n "(cached) " >&6
  10801. else
  10802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10803. /* end confdefs.h. */
  10804. #include <locale.h>
  10805. int
  10806. main ()
  10807. {
  10808. return LC_MESSAGES
  10809. ;
  10810. return 0;
  10811. }
  10812. _ACEOF
  10813. if ac_fn_cxx_try_link "$LINENO"; then :
  10814. gt_cv_val_LC_MESSAGES=yes
  10815. else
  10816. gt_cv_val_LC_MESSAGES=no
  10817. fi
  10818. rm -f core conftest.err conftest.$ac_objext \
  10819. conftest$ac_exeext conftest.$ac_ext
  10820. fi
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10822. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10823. if test $gt_cv_val_LC_MESSAGES = yes; then
  10824. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10825. fi
  10826. if test "$enable_shared" = yes; then
  10827. case "$host_os" in
  10828. mingw* | cygwin*) is_woe32dll=yes ;;
  10829. *) is_woe32dll=no ;;
  10830. esac
  10831. else
  10832. is_woe32dll=no
  10833. fi
  10834. WOE32DLL=$is_woe32dll
  10835. case "$host_os" in
  10836. mingw* | cygwin*) is_woe32=yes ;;
  10837. *) is_woe32=no ;;
  10838. esac
  10839. WOE32=$is_woe32
  10840. if test $WOE32 = yes; then
  10841. if test -n "$ac_tool_prefix"; then
  10842. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10843. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10845. $as_echo_n "checking for $ac_word... " >&6; }
  10846. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. if test -n "$WINDRES"; then
  10850. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10851. else
  10852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10853. for as_dir in $PATH
  10854. do
  10855. IFS=$as_save_IFS
  10856. test -z "$as_dir" && as_dir=.
  10857. for ac_exec_ext in '' $ac_executable_extensions; do
  10858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10859. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10861. break 2
  10862. fi
  10863. done
  10864. done
  10865. IFS=$as_save_IFS
  10866. fi
  10867. fi
  10868. WINDRES=$ac_cv_prog_WINDRES
  10869. if test -n "$WINDRES"; then
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10871. $as_echo "$WINDRES" >&6; }
  10872. else
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10874. $as_echo "no" >&6; }
  10875. fi
  10876. fi
  10877. if test -z "$ac_cv_prog_WINDRES"; then
  10878. ac_ct_WINDRES=$WINDRES
  10879. # Extract the first word of "windres", so it can be a program name with args.
  10880. set dummy windres; ac_word=$2
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10882. $as_echo_n "checking for $ac_word... " >&6; }
  10883. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  10884. $as_echo_n "(cached) " >&6
  10885. else
  10886. if test -n "$ac_ct_WINDRES"; then
  10887. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10888. else
  10889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10890. for as_dir in $PATH
  10891. do
  10892. IFS=$as_save_IFS
  10893. test -z "$as_dir" && as_dir=.
  10894. for ac_exec_ext in '' $ac_executable_extensions; do
  10895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10896. ac_cv_prog_ac_ct_WINDRES="windres"
  10897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10898. break 2
  10899. fi
  10900. done
  10901. done
  10902. IFS=$as_save_IFS
  10903. fi
  10904. fi
  10905. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10906. if test -n "$ac_ct_WINDRES"; then
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10908. $as_echo "$ac_ct_WINDRES" >&6; }
  10909. else
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10911. $as_echo "no" >&6; }
  10912. fi
  10913. if test "x$ac_ct_WINDRES" = x; then
  10914. WINDRES=""
  10915. else
  10916. case $cross_compiling:$ac_tool_warned in
  10917. yes:)
  10918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10920. ac_tool_warned=yes ;;
  10921. esac
  10922. WINDRES=$ac_ct_WINDRES
  10923. fi
  10924. else
  10925. WINDRES="$ac_cv_prog_WINDRES"
  10926. fi
  10927. fi
  10928. case "$host_os" in
  10929. hpux*) LTLIBC="" ;;
  10930. *) LTLIBC="-lc" ;;
  10931. esac
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10933. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10934. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10935. $as_echo_n "(cached) " >&6
  10936. else
  10937. gt_save_LIBS="$LIBS"
  10938. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10940. /* end confdefs.h. */
  10941. #include <CoreFoundation/CFPreferences.h>
  10942. int
  10943. main ()
  10944. {
  10945. CFPreferencesCopyAppValue(NULL, NULL)
  10946. ;
  10947. return 0;
  10948. }
  10949. _ACEOF
  10950. if ac_fn_cxx_try_link "$LINENO"; then :
  10951. gt_cv_func_CFPreferencesCopyAppValue=yes
  10952. else
  10953. gt_cv_func_CFPreferencesCopyAppValue=no
  10954. fi
  10955. rm -f core conftest.err conftest.$ac_objext \
  10956. conftest$ac_exeext conftest.$ac_ext
  10957. LIBS="$gt_save_LIBS"
  10958. fi
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10960. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10961. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10962. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10965. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10966. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10967. $as_echo_n "(cached) " >&6
  10968. else
  10969. gt_save_LIBS="$LIBS"
  10970. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10972. /* end confdefs.h. */
  10973. #include <CoreFoundation/CFLocale.h>
  10974. int
  10975. main ()
  10976. {
  10977. CFLocaleCopyCurrent();
  10978. ;
  10979. return 0;
  10980. }
  10981. _ACEOF
  10982. if ac_fn_cxx_try_link "$LINENO"; then :
  10983. gt_cv_func_CFLocaleCopyCurrent=yes
  10984. else
  10985. gt_cv_func_CFLocaleCopyCurrent=no
  10986. fi
  10987. rm -f core conftest.err conftest.$ac_objext \
  10988. conftest$ac_exeext conftest.$ac_ext
  10989. LIBS="$gt_save_LIBS"
  10990. fi
  10991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10992. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10993. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10994. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10995. fi
  10996. INTL_MACOSX_LIBS=
  10997. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10998. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10999. fi
  11000. BUILD_INCLUDED_LIBINTL=no
  11001. USE_INCLUDED_LIBINTL=no
  11002. LIBINTL=
  11003. LTLIBINTL=
  11004. POSUB=
  11005. case " $gt_needs " in
  11006. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11007. *" need-ngettext "*) gt_api_version=2 ;;
  11008. *) gt_api_version=1 ;;
  11009. esac
  11010. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11011. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11012. if test "$USE_NLS" = "yes"; then
  11013. gt_use_preinstalled_gnugettext=no
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11015. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11016. # Check whether --with-included-gettext was given.
  11017. if test "${with_included_gettext+set}" = set; then :
  11018. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11019. else
  11020. nls_cv_force_use_gnu_gettext=no
  11021. fi
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11023. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11024. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11025. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11026. if test $gt_api_version -ge 3; then
  11027. gt_revision_test_code='
  11028. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11029. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11030. #endif
  11031. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11032. '
  11033. else
  11034. gt_revision_test_code=
  11035. fi
  11036. if test $gt_api_version -ge 2; then
  11037. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11038. else
  11039. gt_expression_test_code=
  11040. fi
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11042. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11043. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11044. $as_echo_n "(cached) " >&6
  11045. else
  11046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11047. /* end confdefs.h. */
  11048. #include <libintl.h>
  11049. $gt_revision_test_code
  11050. extern int _nl_msg_cat_cntr;
  11051. extern int *_nl_domain_bindings;
  11052. int
  11053. main ()
  11054. {
  11055. bindtextdomain ("", "");
  11056. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11057. ;
  11058. return 0;
  11059. }
  11060. _ACEOF
  11061. if ac_fn_cxx_try_link "$LINENO"; then :
  11062. eval "$gt_func_gnugettext_libc=yes"
  11063. else
  11064. eval "$gt_func_gnugettext_libc=no"
  11065. fi
  11066. rm -f core conftest.err conftest.$ac_objext \
  11067. conftest$ac_exeext conftest.$ac_ext
  11068. fi
  11069. eval ac_res=\$$gt_func_gnugettext_libc
  11070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11071. $as_echo "$ac_res" >&6; }
  11072. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11073. use_additional=yes
  11074. acl_save_prefix="$prefix"
  11075. prefix="$acl_final_prefix"
  11076. acl_save_exec_prefix="$exec_prefix"
  11077. exec_prefix="$acl_final_exec_prefix"
  11078. eval additional_includedir=\"$includedir\"
  11079. eval additional_libdir=\"$libdir\"
  11080. exec_prefix="$acl_save_exec_prefix"
  11081. prefix="$acl_save_prefix"
  11082. # Check whether --with-libintl-prefix was given.
  11083. if test "${with_libintl_prefix+set}" = set; then :
  11084. withval=$with_libintl_prefix;
  11085. if test "X$withval" = "Xno"; then
  11086. use_additional=no
  11087. else
  11088. if test "X$withval" = "X"; then
  11089. acl_save_prefix="$prefix"
  11090. prefix="$acl_final_prefix"
  11091. acl_save_exec_prefix="$exec_prefix"
  11092. exec_prefix="$acl_final_exec_prefix"
  11093. eval additional_includedir=\"$includedir\"
  11094. eval additional_libdir=\"$libdir\"
  11095. exec_prefix="$acl_save_exec_prefix"
  11096. prefix="$acl_save_prefix"
  11097. else
  11098. additional_includedir="$withval/include"
  11099. additional_libdir="$withval/$acl_libdirstem"
  11100. fi
  11101. fi
  11102. fi
  11103. LIBINTL=
  11104. LTLIBINTL=
  11105. INCINTL=
  11106. LIBINTL_PREFIX=
  11107. rpathdirs=
  11108. ltrpathdirs=
  11109. names_already_handled=
  11110. names_next_round='intl '
  11111. while test -n "$names_next_round"; do
  11112. names_this_round="$names_next_round"
  11113. names_next_round=
  11114. for name in $names_this_round; do
  11115. already_handled=
  11116. for n in $names_already_handled; do
  11117. if test "$n" = "$name"; then
  11118. already_handled=yes
  11119. break
  11120. fi
  11121. done
  11122. if test -z "$already_handled"; then
  11123. names_already_handled="$names_already_handled $name"
  11124. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11125. eval value=\"\$HAVE_LIB$uppername\"
  11126. if test -n "$value"; then
  11127. if test "$value" = yes; then
  11128. eval value=\"\$LIB$uppername\"
  11129. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11130. eval value=\"\$LTLIB$uppername\"
  11131. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11132. else
  11133. :
  11134. fi
  11135. else
  11136. found_dir=
  11137. found_la=
  11138. found_so=
  11139. found_a=
  11140. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11141. if test -n "$acl_shlibext"; then
  11142. shrext=".$acl_shlibext" # typically: shrext=.so
  11143. else
  11144. shrext=
  11145. fi
  11146. if test $use_additional = yes; then
  11147. dir="$additional_libdir"
  11148. if test -n "$acl_shlibext"; then
  11149. if test -f "$dir/$libname$shrext"; then
  11150. found_dir="$dir"
  11151. found_so="$dir/$libname$shrext"
  11152. else
  11153. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11154. ver=`(cd "$dir" && \
  11155. for f in "$libname$shrext".*; do echo "$f"; done \
  11156. | sed -e "s,^$libname$shrext\\\\.,," \
  11157. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11158. | sed 1q ) 2>/dev/null`
  11159. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11160. found_dir="$dir"
  11161. found_so="$dir/$libname$shrext.$ver"
  11162. fi
  11163. else
  11164. eval library_names=\"$acl_library_names_spec\"
  11165. for f in $library_names; do
  11166. if test -f "$dir/$f"; then
  11167. found_dir="$dir"
  11168. found_so="$dir/$f"
  11169. break
  11170. fi
  11171. done
  11172. fi
  11173. fi
  11174. fi
  11175. if test "X$found_dir" = "X"; then
  11176. if test -f "$dir/$libname.$acl_libext"; then
  11177. found_dir="$dir"
  11178. found_a="$dir/$libname.$acl_libext"
  11179. fi
  11180. fi
  11181. if test "X$found_dir" != "X"; then
  11182. if test -f "$dir/$libname.la"; then
  11183. found_la="$dir/$libname.la"
  11184. fi
  11185. fi
  11186. fi
  11187. if test "X$found_dir" = "X"; then
  11188. for x in $LDFLAGS $LTLIBINTL; do
  11189. acl_save_prefix="$prefix"
  11190. prefix="$acl_final_prefix"
  11191. acl_save_exec_prefix="$exec_prefix"
  11192. exec_prefix="$acl_final_exec_prefix"
  11193. eval x=\"$x\"
  11194. exec_prefix="$acl_save_exec_prefix"
  11195. prefix="$acl_save_prefix"
  11196. case "$x" in
  11197. -L*)
  11198. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11199. if test -n "$acl_shlibext"; then
  11200. if test -f "$dir/$libname$shrext"; then
  11201. found_dir="$dir"
  11202. found_so="$dir/$libname$shrext"
  11203. else
  11204. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11205. ver=`(cd "$dir" && \
  11206. for f in "$libname$shrext".*; do echo "$f"; done \
  11207. | sed -e "s,^$libname$shrext\\\\.,," \
  11208. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11209. | sed 1q ) 2>/dev/null`
  11210. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11211. found_dir="$dir"
  11212. found_so="$dir/$libname$shrext.$ver"
  11213. fi
  11214. else
  11215. eval library_names=\"$acl_library_names_spec\"
  11216. for f in $library_names; do
  11217. if test -f "$dir/$f"; then
  11218. found_dir="$dir"
  11219. found_so="$dir/$f"
  11220. break
  11221. fi
  11222. done
  11223. fi
  11224. fi
  11225. fi
  11226. if test "X$found_dir" = "X"; then
  11227. if test -f "$dir/$libname.$acl_libext"; then
  11228. found_dir="$dir"
  11229. found_a="$dir/$libname.$acl_libext"
  11230. fi
  11231. fi
  11232. if test "X$found_dir" != "X"; then
  11233. if test -f "$dir/$libname.la"; then
  11234. found_la="$dir/$libname.la"
  11235. fi
  11236. fi
  11237. ;;
  11238. esac
  11239. if test "X$found_dir" != "X"; then
  11240. break
  11241. fi
  11242. done
  11243. fi
  11244. if test "X$found_dir" != "X"; then
  11245. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11246. if test "X$found_so" != "X"; then
  11247. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11248. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11249. else
  11250. haveit=
  11251. for x in $ltrpathdirs; do
  11252. if test "X$x" = "X$found_dir"; then
  11253. haveit=yes
  11254. break
  11255. fi
  11256. done
  11257. if test -z "$haveit"; then
  11258. ltrpathdirs="$ltrpathdirs $found_dir"
  11259. fi
  11260. if test "$acl_hardcode_direct" = yes; then
  11261. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11262. else
  11263. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11264. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11265. haveit=
  11266. for x in $rpathdirs; do
  11267. if test "X$x" = "X$found_dir"; then
  11268. haveit=yes
  11269. break
  11270. fi
  11271. done
  11272. if test -z "$haveit"; then
  11273. rpathdirs="$rpathdirs $found_dir"
  11274. fi
  11275. else
  11276. haveit=
  11277. for x in $LDFLAGS $LIBINTL; do
  11278. acl_save_prefix="$prefix"
  11279. prefix="$acl_final_prefix"
  11280. acl_save_exec_prefix="$exec_prefix"
  11281. exec_prefix="$acl_final_exec_prefix"
  11282. eval x=\"$x\"
  11283. exec_prefix="$acl_save_exec_prefix"
  11284. prefix="$acl_save_prefix"
  11285. if test "X$x" = "X-L$found_dir"; then
  11286. haveit=yes
  11287. break
  11288. fi
  11289. done
  11290. if test -z "$haveit"; then
  11291. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11292. fi
  11293. if test "$acl_hardcode_minus_L" != no; then
  11294. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11295. else
  11296. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11297. fi
  11298. fi
  11299. fi
  11300. fi
  11301. else
  11302. if test "X$found_a" != "X"; then
  11303. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11304. else
  11305. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11306. fi
  11307. fi
  11308. additional_includedir=
  11309. case "$found_dir" in
  11310. */$acl_libdirstem | */$acl_libdirstem/)
  11311. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11312. LIBINTL_PREFIX="$basedir"
  11313. additional_includedir="$basedir/include"
  11314. ;;
  11315. esac
  11316. if test "X$additional_includedir" != "X"; then
  11317. if test "X$additional_includedir" != "X/usr/include"; then
  11318. haveit=
  11319. if test "X$additional_includedir" = "X/usr/local/include"; then
  11320. if test -n "$GCC"; then
  11321. case $host_os in
  11322. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11323. esac
  11324. fi
  11325. fi
  11326. if test -z "$haveit"; then
  11327. for x in $CPPFLAGS $INCINTL; do
  11328. acl_save_prefix="$prefix"
  11329. prefix="$acl_final_prefix"
  11330. acl_save_exec_prefix="$exec_prefix"
  11331. exec_prefix="$acl_final_exec_prefix"
  11332. eval x=\"$x\"
  11333. exec_prefix="$acl_save_exec_prefix"
  11334. prefix="$acl_save_prefix"
  11335. if test "X$x" = "X-I$additional_includedir"; then
  11336. haveit=yes
  11337. break
  11338. fi
  11339. done
  11340. if test -z "$haveit"; then
  11341. if test -d "$additional_includedir"; then
  11342. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11343. fi
  11344. fi
  11345. fi
  11346. fi
  11347. fi
  11348. if test -n "$found_la"; then
  11349. save_libdir="$libdir"
  11350. case "$found_la" in
  11351. */* | *\\*) . "$found_la" ;;
  11352. *) . "./$found_la" ;;
  11353. esac
  11354. libdir="$save_libdir"
  11355. for dep in $dependency_libs; do
  11356. case "$dep" in
  11357. -L*)
  11358. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11359. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11360. haveit=
  11361. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11362. if test -n "$GCC"; then
  11363. case $host_os in
  11364. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11365. esac
  11366. fi
  11367. fi
  11368. if test -z "$haveit"; then
  11369. haveit=
  11370. for x in $LDFLAGS $LIBINTL; do
  11371. acl_save_prefix="$prefix"
  11372. prefix="$acl_final_prefix"
  11373. acl_save_exec_prefix="$exec_prefix"
  11374. exec_prefix="$acl_final_exec_prefix"
  11375. eval x=\"$x\"
  11376. exec_prefix="$acl_save_exec_prefix"
  11377. prefix="$acl_save_prefix"
  11378. if test "X$x" = "X-L$additional_libdir"; then
  11379. haveit=yes
  11380. break
  11381. fi
  11382. done
  11383. if test -z "$haveit"; then
  11384. if test -d "$additional_libdir"; then
  11385. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11386. fi
  11387. fi
  11388. haveit=
  11389. for x in $LDFLAGS $LTLIBINTL; do
  11390. acl_save_prefix="$prefix"
  11391. prefix="$acl_final_prefix"
  11392. acl_save_exec_prefix="$exec_prefix"
  11393. exec_prefix="$acl_final_exec_prefix"
  11394. eval x=\"$x\"
  11395. exec_prefix="$acl_save_exec_prefix"
  11396. prefix="$acl_save_prefix"
  11397. if test "X$x" = "X-L$additional_libdir"; then
  11398. haveit=yes
  11399. break
  11400. fi
  11401. done
  11402. if test -z "$haveit"; then
  11403. if test -d "$additional_libdir"; then
  11404. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11405. fi
  11406. fi
  11407. fi
  11408. fi
  11409. ;;
  11410. -R*)
  11411. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11412. if test "$enable_rpath" != no; then
  11413. haveit=
  11414. for x in $rpathdirs; do
  11415. if test "X$x" = "X$dir"; then
  11416. haveit=yes
  11417. break
  11418. fi
  11419. done
  11420. if test -z "$haveit"; then
  11421. rpathdirs="$rpathdirs $dir"
  11422. fi
  11423. haveit=
  11424. for x in $ltrpathdirs; do
  11425. if test "X$x" = "X$dir"; then
  11426. haveit=yes
  11427. break
  11428. fi
  11429. done
  11430. if test -z "$haveit"; then
  11431. ltrpathdirs="$ltrpathdirs $dir"
  11432. fi
  11433. fi
  11434. ;;
  11435. -l*)
  11436. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11437. ;;
  11438. *.la)
  11439. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11440. ;;
  11441. *)
  11442. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11443. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11444. ;;
  11445. esac
  11446. done
  11447. fi
  11448. else
  11449. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11450. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11451. fi
  11452. fi
  11453. fi
  11454. done
  11455. done
  11456. if test "X$rpathdirs" != "X"; then
  11457. if test -n "$acl_hardcode_libdir_separator"; then
  11458. alldirs=
  11459. for found_dir in $rpathdirs; do
  11460. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11461. done
  11462. acl_save_libdir="$libdir"
  11463. libdir="$alldirs"
  11464. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11465. libdir="$acl_save_libdir"
  11466. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11467. else
  11468. for found_dir in $rpathdirs; do
  11469. acl_save_libdir="$libdir"
  11470. libdir="$found_dir"
  11471. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11472. libdir="$acl_save_libdir"
  11473. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11474. done
  11475. fi
  11476. fi
  11477. if test "X$ltrpathdirs" != "X"; then
  11478. for found_dir in $ltrpathdirs; do
  11479. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11480. done
  11481. fi
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11483. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11484. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. gt_save_CPPFLAGS="$CPPFLAGS"
  11488. CPPFLAGS="$CPPFLAGS $INCINTL"
  11489. gt_save_LIBS="$LIBS"
  11490. LIBS="$LIBS $LIBINTL"
  11491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11492. /* end confdefs.h. */
  11493. #include <libintl.h>
  11494. $gt_revision_test_code
  11495. extern int _nl_msg_cat_cntr;
  11496. extern
  11497. #ifdef __cplusplus
  11498. "C"
  11499. #endif
  11500. const char *_nl_expand_alias (const char *);
  11501. int
  11502. main ()
  11503. {
  11504. bindtextdomain ("", "");
  11505. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11506. ;
  11507. return 0;
  11508. }
  11509. _ACEOF
  11510. if ac_fn_cxx_try_link "$LINENO"; then :
  11511. eval "$gt_func_gnugettext_libintl=yes"
  11512. else
  11513. eval "$gt_func_gnugettext_libintl=no"
  11514. fi
  11515. rm -f core conftest.err conftest.$ac_objext \
  11516. conftest$ac_exeext conftest.$ac_ext
  11517. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11518. LIBS="$LIBS $LIBICONV"
  11519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11520. /* end confdefs.h. */
  11521. #include <libintl.h>
  11522. $gt_revision_test_code
  11523. extern int _nl_msg_cat_cntr;
  11524. extern
  11525. #ifdef __cplusplus
  11526. "C"
  11527. #endif
  11528. const char *_nl_expand_alias (const char *);
  11529. int
  11530. main ()
  11531. {
  11532. bindtextdomain ("", "");
  11533. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11534. ;
  11535. return 0;
  11536. }
  11537. _ACEOF
  11538. if ac_fn_cxx_try_link "$LINENO"; then :
  11539. LIBINTL="$LIBINTL $LIBICONV"
  11540. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11541. eval "$gt_func_gnugettext_libintl=yes"
  11542. fi
  11543. rm -f core conftest.err conftest.$ac_objext \
  11544. conftest$ac_exeext conftest.$ac_ext
  11545. fi
  11546. CPPFLAGS="$gt_save_CPPFLAGS"
  11547. LIBS="$gt_save_LIBS"
  11548. fi
  11549. eval ac_res=\$$gt_func_gnugettext_libintl
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11551. $as_echo "$ac_res" >&6; }
  11552. fi
  11553. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11554. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11555. && test "$PACKAGE" != gettext-runtime \
  11556. && test "$PACKAGE" != gettext-tools; }; then
  11557. gt_use_preinstalled_gnugettext=yes
  11558. else
  11559. LIBINTL=
  11560. LTLIBINTL=
  11561. INCINTL=
  11562. fi
  11563. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11564. nls_cv_use_gnu_gettext=yes
  11565. fi
  11566. fi
  11567. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11568. BUILD_INCLUDED_LIBINTL=yes
  11569. USE_INCLUDED_LIBINTL=yes
  11570. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11571. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11572. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11573. fi
  11574. CATOBJEXT=
  11575. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11576. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11577. CATOBJEXT=.gmo
  11578. fi
  11579. if test -n "$INTL_MACOSX_LIBS"; then
  11580. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11581. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11582. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11583. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11584. fi
  11585. fi
  11586. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11587. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11588. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11589. else
  11590. USE_NLS=no
  11591. fi
  11592. fi
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11594. $as_echo_n "checking whether to use NLS... " >&6; }
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11596. $as_echo "$USE_NLS" >&6; }
  11597. if test "$USE_NLS" = "yes"; then
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11599. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11600. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11601. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11602. gt_source="external libintl"
  11603. else
  11604. gt_source="libc"
  11605. fi
  11606. else
  11607. gt_source="included intl directory"
  11608. fi
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11610. $as_echo "$gt_source" >&6; }
  11611. fi
  11612. if test "$USE_NLS" = "yes"; then
  11613. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11614. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11616. $as_echo_n "checking how to link with libintl... " >&6; }
  11617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11618. $as_echo "$LIBINTL" >&6; }
  11619. for element in $INCINTL; do
  11620. haveit=
  11621. for x in $CPPFLAGS; do
  11622. acl_save_prefix="$prefix"
  11623. prefix="$acl_final_prefix"
  11624. acl_save_exec_prefix="$exec_prefix"
  11625. exec_prefix="$acl_final_exec_prefix"
  11626. eval x=\"$x\"
  11627. exec_prefix="$acl_save_exec_prefix"
  11628. prefix="$acl_save_prefix"
  11629. if test "X$x" = "X$element"; then
  11630. haveit=yes
  11631. break
  11632. fi
  11633. done
  11634. if test -z "$haveit"; then
  11635. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11636. fi
  11637. done
  11638. fi
  11639. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11640. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11641. fi
  11642. POSUB=po
  11643. fi
  11644. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11645. BUILD_INCLUDED_LIBINTL=yes
  11646. fi
  11647. nls_cv_header_intl=
  11648. nls_cv_header_libgt=
  11649. DATADIRNAME=share
  11650. INSTOBJEXT=.mo
  11651. GENCAT=gencat
  11652. INTLOBJS=
  11653. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11654. INTLOBJS="\$(GETTOBJS)"
  11655. fi
  11656. INTL_LIBTOOL_SUFFIX_PREFIX=
  11657. INTLLIBS="$LIBINTL"
  11658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11659. $as_echo_n "checking for error_at_line... " >&6; }
  11660. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11661. $as_echo_n "(cached) " >&6
  11662. else
  11663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11664. /* end confdefs.h. */
  11665. #include <error.h>
  11666. int
  11667. main ()
  11668. {
  11669. error_at_line (0, 0, "", 0, "an error occurred");
  11670. ;
  11671. return 0;
  11672. }
  11673. _ACEOF
  11674. if ac_fn_cxx_try_link "$LINENO"; then :
  11675. ac_cv_lib_error_at_line=yes
  11676. else
  11677. ac_cv_lib_error_at_line=no
  11678. fi
  11679. rm -f core conftest.err conftest.$ac_objext \
  11680. conftest$ac_exeext conftest.$ac_ext
  11681. fi
  11682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11683. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11684. if test $ac_cv_lib_error_at_line = no; then
  11685. case " $LIBOBJS " in
  11686. *" error.$ac_objext "* ) ;;
  11687. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11688. ;;
  11689. esac
  11690. fi
  11691. if test $ac_cv_c_compiler_gnu = yes; then
  11692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11693. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11694. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11695. $as_echo_n "(cached) " >&6
  11696. else
  11697. ac_pattern="Autoconf.*'x'"
  11698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11699. /* end confdefs.h. */
  11700. #include <sgtty.h>
  11701. Autoconf TIOCGETP
  11702. _ACEOF
  11703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11704. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11705. ac_cv_prog_gcc_traditional=yes
  11706. else
  11707. ac_cv_prog_gcc_traditional=no
  11708. fi
  11709. rm -f conftest*
  11710. if test $ac_cv_prog_gcc_traditional = no; then
  11711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11712. /* end confdefs.h. */
  11713. #include <termio.h>
  11714. Autoconf TCGETA
  11715. _ACEOF
  11716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11717. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11718. ac_cv_prog_gcc_traditional=yes
  11719. fi
  11720. rm -f conftest*
  11721. fi
  11722. fi
  11723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11724. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11725. if test $ac_cv_prog_gcc_traditional = yes; then
  11726. CC="$CC -traditional"
  11727. fi
  11728. fi
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11730. $as_echo_n "checking for working memcmp... " >&6; }
  11731. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11732. $as_echo_n "(cached) " >&6
  11733. else
  11734. if test "$cross_compiling" = yes; then :
  11735. ac_cv_func_memcmp_working=no
  11736. else
  11737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11738. /* end confdefs.h. */
  11739. $ac_includes_default
  11740. int
  11741. main ()
  11742. {
  11743. /* Some versions of memcmp are not 8-bit clean. */
  11744. char c0 = '\100', c1 = '\200', c2 = '\201';
  11745. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11746. return 1;
  11747. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11748. or more and with at least one buffer not starting on a 4-byte boundary.
  11749. William Lewis provided this test program. */
  11750. {
  11751. char foo[21];
  11752. char bar[21];
  11753. int i;
  11754. for (i = 0; i < 4; i++)
  11755. {
  11756. char *a = foo + i;
  11757. char *b = bar + i;
  11758. strcpy (a, "--------01111111");
  11759. strcpy (b, "--------10000000");
  11760. if (memcmp (a, b, 16) >= 0)
  11761. return 1;
  11762. }
  11763. return 0;
  11764. }
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. if ac_fn_cxx_try_run "$LINENO"; then :
  11770. ac_cv_func_memcmp_working=yes
  11771. else
  11772. ac_cv_func_memcmp_working=no
  11773. fi
  11774. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11775. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11776. fi
  11777. fi
  11778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11779. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11780. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11781. *" memcmp.$ac_objext "* ) ;;
  11782. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11783. ;;
  11784. esac
  11785. for ac_header in $ac_header_list
  11786. do :
  11787. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11788. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11789. "
  11790. eval as_val=\$$as_ac_Header
  11791. if test "x$as_val" = x""yes; then :
  11792. cat >>confdefs.h <<_ACEOF
  11793. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11794. _ACEOF
  11795. fi
  11796. done
  11797. for ac_func in $ac_func_list
  11798. do :
  11799. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11800. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11801. eval as_val=\$$as_ac_var
  11802. if test "x$as_val" = x""yes; then :
  11803. cat >>confdefs.h <<_ACEOF
  11804. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11805. _ACEOF
  11806. fi
  11807. done
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11809. $as_echo_n "checking for working mktime... " >&6; }
  11810. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11811. $as_echo_n "(cached) " >&6
  11812. else
  11813. if test "$cross_compiling" = yes; then :
  11814. ac_cv_func_working_mktime=no
  11815. else
  11816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11817. /* end confdefs.h. */
  11818. /* Test program from Paul Eggert and Tony Leneis. */
  11819. #ifdef TIME_WITH_SYS_TIME
  11820. # include <sys/time.h>
  11821. # include <time.h>
  11822. #else
  11823. # ifdef HAVE_SYS_TIME_H
  11824. # include <sys/time.h>
  11825. # else
  11826. # include <time.h>
  11827. # endif
  11828. #endif
  11829. #include <limits.h>
  11830. #include <stdlib.h>
  11831. #ifdef HAVE_UNISTD_H
  11832. # include <unistd.h>
  11833. #endif
  11834. #ifndef HAVE_ALARM
  11835. # define alarm(X) /* empty */
  11836. #endif
  11837. /* Work around redefinition to rpl_putenv by other config tests. */
  11838. #undef putenv
  11839. static time_t time_t_max;
  11840. static time_t time_t_min;
  11841. /* Values we'll use to set the TZ environment variable. */
  11842. static char *tz_strings[] = {
  11843. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11844. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11845. };
  11846. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11847. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11848. Based on a problem report from Andreas Jaeger. */
  11849. static int
  11850. spring_forward_gap ()
  11851. {
  11852. /* glibc (up to about 1998-10-07) failed this test. */
  11853. struct tm tm;
  11854. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11855. instead of "TZ=America/Vancouver" in order to detect the bug even
  11856. on systems that don't support the Olson extension, or don't have the
  11857. full zoneinfo tables installed. */
  11858. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11859. tm.tm_year = 98;
  11860. tm.tm_mon = 3;
  11861. tm.tm_mday = 5;
  11862. tm.tm_hour = 2;
  11863. tm.tm_min = 0;
  11864. tm.tm_sec = 0;
  11865. tm.tm_isdst = -1;
  11866. return mktime (&tm) != (time_t) -1;
  11867. }
  11868. static int
  11869. mktime_test1 (now)
  11870. time_t now;
  11871. {
  11872. struct tm *lt;
  11873. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11874. }
  11875. static int
  11876. mktime_test (now)
  11877. time_t now;
  11878. {
  11879. return (mktime_test1 (now)
  11880. && mktime_test1 ((time_t) (time_t_max - now))
  11881. && mktime_test1 ((time_t) (time_t_min + now)));
  11882. }
  11883. static int
  11884. irix_6_4_bug ()
  11885. {
  11886. /* Based on code from Ariel Faigon. */
  11887. struct tm tm;
  11888. tm.tm_year = 96;
  11889. tm.tm_mon = 3;
  11890. tm.tm_mday = 0;
  11891. tm.tm_hour = 0;
  11892. tm.tm_min = 0;
  11893. tm.tm_sec = 0;
  11894. tm.tm_isdst = -1;
  11895. mktime (&tm);
  11896. return tm.tm_mon == 2 && tm.tm_mday == 31;
  11897. }
  11898. static int
  11899. bigtime_test (j)
  11900. int j;
  11901. {
  11902. struct tm tm;
  11903. time_t now;
  11904. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  11905. now = mktime (&tm);
  11906. if (now != (time_t) -1)
  11907. {
  11908. struct tm *lt = localtime (&now);
  11909. if (! (lt
  11910. && lt->tm_year == tm.tm_year
  11911. && lt->tm_mon == tm.tm_mon
  11912. && lt->tm_mday == tm.tm_mday
  11913. && lt->tm_hour == tm.tm_hour
  11914. && lt->tm_min == tm.tm_min
  11915. && lt->tm_sec == tm.tm_sec
  11916. && lt->tm_yday == tm.tm_yday
  11917. && lt->tm_wday == tm.tm_wday
  11918. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  11919. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  11920. return 0;
  11921. }
  11922. return 1;
  11923. }
  11924. static int
  11925. year_2050_test ()
  11926. {
  11927. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  11928. ignoring leap seconds. */
  11929. unsigned long int answer = 2527315200UL;
  11930. struct tm tm;
  11931. time_t t;
  11932. tm.tm_year = 2050 - 1900;
  11933. tm.tm_mon = 2 - 1;
  11934. tm.tm_mday = 1;
  11935. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  11936. tm.tm_isdst = -1;
  11937. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11938. instead of "TZ=America/Vancouver" in order to detect the bug even
  11939. on systems that don't support the Olson extension, or don't have the
  11940. full zoneinfo tables installed. */
  11941. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11942. t = mktime (&tm);
  11943. /* Check that the result is either a failure, or close enough
  11944. to the correct answer that we can assume the discrepancy is
  11945. due to leap seconds. */
  11946. return (t == (time_t) -1
  11947. || (0 < t && answer - 120 <= t && t <= answer + 120));
  11948. }
  11949. int
  11950. main ()
  11951. {
  11952. time_t t, delta;
  11953. int i, j;
  11954. /* This test makes some buggy mktime implementations loop.
  11955. Give up after 60 seconds; a mktime slower than that
  11956. isn't worth using anyway. */
  11957. alarm (60);
  11958. for (;;)
  11959. {
  11960. t = (time_t_max << 1) + 1;
  11961. if (t <= time_t_max)
  11962. break;
  11963. time_t_max = t;
  11964. }
  11965. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  11966. delta = time_t_max / 997; /* a suitable prime number */
  11967. for (i = 0; i < N_STRINGS; i++)
  11968. {
  11969. if (tz_strings[i])
  11970. putenv (tz_strings[i]);
  11971. for (t = 0; t <= time_t_max - delta; t += delta)
  11972. if (! mktime_test (t))
  11973. return 1;
  11974. if (! (mktime_test ((time_t) 1)
  11975. && mktime_test ((time_t) (60 * 60))
  11976. && mktime_test ((time_t) (60 * 60 * 24))))
  11977. return 1;
  11978. for (j = 1; ; j <<= 1)
  11979. if (! bigtime_test (j))
  11980. return 1;
  11981. else if (INT_MAX / 2 < j)
  11982. break;
  11983. if (! bigtime_test (INT_MAX))
  11984. return 1;
  11985. }
  11986. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  11987. }
  11988. _ACEOF
  11989. if ac_fn_cxx_try_run "$LINENO"; then :
  11990. ac_cv_func_working_mktime=yes
  11991. else
  11992. ac_cv_func_working_mktime=no
  11993. fi
  11994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11995. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11996. fi
  11997. fi
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  11999. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12000. if test $ac_cv_func_working_mktime = no; then
  12001. case " $LIBOBJS " in
  12002. *" mktime.$ac_objext "* ) ;;
  12003. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12004. ;;
  12005. esac
  12006. fi
  12007. for ac_header in stdlib.h unistd.h
  12008. do :
  12009. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12010. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12011. eval as_val=\$$as_ac_Header
  12012. if test "x$as_val" = x""yes; then :
  12013. cat >>confdefs.h <<_ACEOF
  12014. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12015. _ACEOF
  12016. fi
  12017. done
  12018. for ac_func in getpagesize
  12019. do :
  12020. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12021. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12022. cat >>confdefs.h <<_ACEOF
  12023. #define HAVE_GETPAGESIZE 1
  12024. _ACEOF
  12025. fi
  12026. done
  12027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12028. $as_echo_n "checking for working mmap... " >&6; }
  12029. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12030. $as_echo_n "(cached) " >&6
  12031. else
  12032. if test "$cross_compiling" = yes; then :
  12033. ac_cv_func_mmap_fixed_mapped=no
  12034. else
  12035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12036. /* end confdefs.h. */
  12037. $ac_includes_default
  12038. /* malloc might have been renamed as rpl_malloc. */
  12039. #undef malloc
  12040. /* Thanks to Mike Haertel and Jim Avera for this test.
  12041. Here is a matrix of mmap possibilities:
  12042. mmap private not fixed
  12043. mmap private fixed at somewhere currently unmapped
  12044. mmap private fixed at somewhere already mapped
  12045. mmap shared not fixed
  12046. mmap shared fixed at somewhere currently unmapped
  12047. mmap shared fixed at somewhere already mapped
  12048. For private mappings, we should verify that changes cannot be read()
  12049. back from the file, nor mmap's back from the file at a different
  12050. address. (There have been systems where private was not correctly
  12051. implemented like the infamous i386 svr4.0, and systems where the
  12052. VM page cache was not coherent with the file system buffer cache
  12053. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12054. For shared mappings, we should conversely verify that changes get
  12055. propagated back to all the places they're supposed to be.
  12056. Grep wants private fixed already mapped.
  12057. The main things grep needs to know about mmap are:
  12058. * does it exist and is it safe to write into the mmap'd area
  12059. * how to use it (BSD variants) */
  12060. #include <fcntl.h>
  12061. #include <sys/mman.h>
  12062. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12063. char *malloc ();
  12064. #endif
  12065. /* This mess was copied from the GNU getpagesize.h. */
  12066. #ifndef HAVE_GETPAGESIZE
  12067. /* Assume that all systems that can run configure have sys/param.h. */
  12068. # ifndef HAVE_SYS_PARAM_H
  12069. # define HAVE_SYS_PARAM_H 1
  12070. # endif
  12071. # ifdef _SC_PAGESIZE
  12072. # define getpagesize() sysconf(_SC_PAGESIZE)
  12073. # else /* no _SC_PAGESIZE */
  12074. # ifdef HAVE_SYS_PARAM_H
  12075. # include <sys/param.h>
  12076. # ifdef EXEC_PAGESIZE
  12077. # define getpagesize() EXEC_PAGESIZE
  12078. # else /* no EXEC_PAGESIZE */
  12079. # ifdef NBPG
  12080. # define getpagesize() NBPG * CLSIZE
  12081. # ifndef CLSIZE
  12082. # define CLSIZE 1
  12083. # endif /* no CLSIZE */
  12084. # else /* no NBPG */
  12085. # ifdef NBPC
  12086. # define getpagesize() NBPC
  12087. # else /* no NBPC */
  12088. # ifdef PAGESIZE
  12089. # define getpagesize() PAGESIZE
  12090. # endif /* PAGESIZE */
  12091. # endif /* no NBPC */
  12092. # endif /* no NBPG */
  12093. # endif /* no EXEC_PAGESIZE */
  12094. # else /* no HAVE_SYS_PARAM_H */
  12095. # define getpagesize() 8192 /* punt totally */
  12096. # endif /* no HAVE_SYS_PARAM_H */
  12097. # endif /* no _SC_PAGESIZE */
  12098. #endif /* no HAVE_GETPAGESIZE */
  12099. int
  12100. main ()
  12101. {
  12102. char *data, *data2, *data3;
  12103. int i, pagesize;
  12104. int fd;
  12105. pagesize = getpagesize ();
  12106. /* First, make a file with some known garbage in it. */
  12107. data = (char *) malloc (pagesize);
  12108. if (!data)
  12109. return 1;
  12110. for (i = 0; i < pagesize; ++i)
  12111. *(data + i) = rand ();
  12112. umask (0);
  12113. fd = creat ("conftest.mmap", 0600);
  12114. if (fd < 0)
  12115. return 1;
  12116. if (write (fd, data, pagesize) != pagesize)
  12117. return 1;
  12118. close (fd);
  12119. /* Next, try to mmap the file at a fixed address which already has
  12120. something else allocated at it. If we can, also make sure that
  12121. we see the same garbage. */
  12122. fd = open ("conftest.mmap", O_RDWR);
  12123. if (fd < 0)
  12124. return 1;
  12125. data2 = (char *) malloc (2 * pagesize);
  12126. if (!data2)
  12127. return 1;
  12128. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  12129. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12130. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12131. return 1;
  12132. for (i = 0; i < pagesize; ++i)
  12133. if (*(data + i) != *(data2 + i))
  12134. return 1;
  12135. /* Finally, make sure that changes to the mapped area do not
  12136. percolate back to the file as seen by read(). (This is a bug on
  12137. some variants of i386 svr4.0.) */
  12138. for (i = 0; i < pagesize; ++i)
  12139. *(data2 + i) = *(data2 + i) + 1;
  12140. data3 = (char *) malloc (pagesize);
  12141. if (!data3)
  12142. return 1;
  12143. if (read (fd, data3, pagesize) != pagesize)
  12144. return 1;
  12145. for (i = 0; i < pagesize; ++i)
  12146. if (*(data + i) != *(data3 + i))
  12147. return 1;
  12148. close (fd);
  12149. return 0;
  12150. }
  12151. _ACEOF
  12152. if ac_fn_cxx_try_run "$LINENO"; then :
  12153. ac_cv_func_mmap_fixed_mapped=yes
  12154. else
  12155. ac_cv_func_mmap_fixed_mapped=no
  12156. fi
  12157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12159. fi
  12160. fi
  12161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12162. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12163. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12164. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12165. fi
  12166. rm -f conftest.mmap
  12167. for ac_header in sys/select.h sys/socket.h
  12168. do :
  12169. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12170. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12171. eval as_val=\$$as_ac_Header
  12172. if test "x$as_val" = x""yes; then :
  12173. cat >>confdefs.h <<_ACEOF
  12174. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12175. _ACEOF
  12176. fi
  12177. done
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12179. $as_echo_n "checking types of arguments for select... " >&6; }
  12180. if test "${ac_cv_func_select_args+set}" = set; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12184. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12185. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12187. /* end confdefs.h. */
  12188. $ac_includes_default
  12189. #ifdef HAVE_SYS_SELECT_H
  12190. # include <sys/select.h>
  12191. #endif
  12192. #ifdef HAVE_SYS_SOCKET_H
  12193. # include <sys/socket.h>
  12194. #endif
  12195. int
  12196. main ()
  12197. {
  12198. extern int select ($ac_arg1,
  12199. $ac_arg234, $ac_arg234, $ac_arg234,
  12200. $ac_arg5);
  12201. ;
  12202. return 0;
  12203. }
  12204. _ACEOF
  12205. if ac_fn_cxx_try_compile "$LINENO"; then :
  12206. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12207. fi
  12208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12209. done
  12210. done
  12211. done
  12212. # Provide a safe default value.
  12213. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12214. fi
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12216. $as_echo "$ac_cv_func_select_args" >&6; }
  12217. ac_save_IFS=$IFS; IFS=','
  12218. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12219. IFS=$ac_save_IFS
  12220. shift
  12221. cat >>confdefs.h <<_ACEOF
  12222. #define SELECT_TYPE_ARG1 $1
  12223. _ACEOF
  12224. cat >>confdefs.h <<_ACEOF
  12225. #define SELECT_TYPE_ARG234 ($2)
  12226. _ACEOF
  12227. cat >>confdefs.h <<_ACEOF
  12228. #define SELECT_TYPE_ARG5 ($3)
  12229. _ACEOF
  12230. rm -f conftest*
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  12232. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  12233. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12234. $as_echo_n "(cached) " >&6
  12235. else
  12236. rm -f conftest.sym conftest.file
  12237. echo >conftest.file
  12238. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12239. if test "$cross_compiling" = yes; then :
  12240. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12241. else
  12242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12243. /* end confdefs.h. */
  12244. $ac_includes_default
  12245. int
  12246. main ()
  12247. {
  12248. struct stat sbuf;
  12249. /* Linux will dereference the symlink and fail.
  12250. That is better in the sense that it means we will not
  12251. have to compile and use the lstat wrapper. */
  12252. return lstat ("conftest.sym/", &sbuf) == 0;
  12253. ;
  12254. return 0;
  12255. }
  12256. _ACEOF
  12257. if ac_fn_cxx_try_run "$LINENO"; then :
  12258. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12259. else
  12260. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12261. fi
  12262. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12263. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12264. fi
  12265. else
  12266. # If the `ln -s' command failed, then we probably don't even
  12267. # have an lstat function.
  12268. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12269. fi
  12270. rm -f conftest.sym conftest.file
  12271. fi
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12273. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12274. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12275. cat >>confdefs.h <<_ACEOF
  12276. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12277. _ACEOF
  12278. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  12279. case " $LIBOBJS " in
  12280. *" lstat.$ac_objext "* ) ;;
  12281. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12282. ;;
  12283. esac
  12284. fi
  12285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12286. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12287. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12288. $as_echo_n "(cached) " >&6
  12289. else
  12290. if test "$cross_compiling" = yes; then :
  12291. ac_cv_func_stat_empty_string_bug=yes
  12292. else
  12293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12294. /* end confdefs.h. */
  12295. $ac_includes_default
  12296. int
  12297. main ()
  12298. {
  12299. struct stat sbuf;
  12300. return stat ("", &sbuf) == 0;
  12301. ;
  12302. return 0;
  12303. }
  12304. _ACEOF
  12305. if ac_fn_cxx_try_run "$LINENO"; then :
  12306. ac_cv_func_stat_empty_string_bug=no
  12307. else
  12308. ac_cv_func_stat_empty_string_bug=yes
  12309. fi
  12310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12311. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12312. fi
  12313. fi
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12315. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12316. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12317. case " $LIBOBJS " in
  12318. *" stat.$ac_objext "* ) ;;
  12319. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12320. ;;
  12321. esac
  12322. cat >>confdefs.h <<_ACEOF
  12323. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12324. _ACEOF
  12325. fi
  12326. for ac_func in strftime
  12327. do :
  12328. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12329. if test "x$ac_cv_func_strftime" = x""yes; then :
  12330. cat >>confdefs.h <<_ACEOF
  12331. #define HAVE_STRFTIME 1
  12332. _ACEOF
  12333. else
  12334. # strftime is in -lintl on SCO UNIX.
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12336. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12337. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12338. $as_echo_n "(cached) " >&6
  12339. else
  12340. ac_check_lib_save_LIBS=$LIBS
  12341. LIBS="-lintl $LIBS"
  12342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12343. /* end confdefs.h. */
  12344. /* Override any GCC internal prototype to avoid an error.
  12345. Use char because int might match the return type of a GCC
  12346. builtin and then its argument prototype would still apply. */
  12347. #ifdef __cplusplus
  12348. extern "C"
  12349. #endif
  12350. char strftime ();
  12351. int
  12352. main ()
  12353. {
  12354. return strftime ();
  12355. ;
  12356. return 0;
  12357. }
  12358. _ACEOF
  12359. if ac_fn_cxx_try_link "$LINENO"; then :
  12360. ac_cv_lib_intl_strftime=yes
  12361. else
  12362. ac_cv_lib_intl_strftime=no
  12363. fi
  12364. rm -f core conftest.err conftest.$ac_objext \
  12365. conftest$ac_exeext conftest.$ac_ext
  12366. LIBS=$ac_check_lib_save_LIBS
  12367. fi
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12369. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12370. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12371. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12372. LIBS="-lintl $LIBS"
  12373. fi
  12374. fi
  12375. done
  12376. for ac_func in vprintf
  12377. do :
  12378. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12379. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12380. cat >>confdefs.h <<_ACEOF
  12381. #define HAVE_VPRINTF 1
  12382. _ACEOF
  12383. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12384. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12385. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12386. fi
  12387. fi
  12388. done
  12389. for ac_func in __argz_count \
  12390. __argz_next \
  12391. __argz_stringify \
  12392. atexit \
  12393. fork \
  12394. ftruncate \
  12395. getcwd \
  12396. gethostbyaddr \
  12397. gethostbyname \
  12398. getpagesize \
  12399. inet_ntoa \
  12400. memchr \
  12401. memmove \
  12402. mempcpy \
  12403. memset \
  12404. mkdir \
  12405. munmap \
  12406. nl_langinfo \
  12407. posix_memalign \
  12408. putenv \
  12409. rmdir \
  12410. select \
  12411. setlocale \
  12412. sleep \
  12413. socket \
  12414. stpcpy \
  12415. strcasecmp \
  12416. strchr \
  12417. strcspn \
  12418. strdup \
  12419. strerror \
  12420. strncasecmp \
  12421. strstr \
  12422. strtol \
  12423. strtoul \
  12424. strtoull \
  12425. tzset \
  12426. unsetenv \
  12427. usleep
  12428. do :
  12429. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12430. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12431. eval as_val=\$$as_ac_var
  12432. if test "x$as_val" = x""yes; then :
  12433. cat >>confdefs.h <<_ACEOF
  12434. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12435. _ACEOF
  12436. fi
  12437. done
  12438. if test "x$enable_epoll" = "xyes"; then
  12439. for ac_func in epoll_create
  12440. do :
  12441. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12442. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12443. cat >>confdefs.h <<_ACEOF
  12444. #define HAVE_EPOLL_CREATE 1
  12445. _ACEOF
  12446. have_epoll=yes
  12447. fi
  12448. done
  12449. if test "x$have_epoll" = "xyes"; then
  12450. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12451. fi
  12452. fi
  12453. if test "x$have_epoll" = "xyes"; then
  12454. HAVE_EPOLL_TRUE=
  12455. HAVE_EPOLL_FALSE='#'
  12456. else
  12457. HAVE_EPOLL_TRUE='#'
  12458. HAVE_EPOLL_FALSE=
  12459. fi
  12460. for ac_func in posix_fallocate
  12461. do :
  12462. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12463. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12464. cat >>confdefs.h <<_ACEOF
  12465. #define HAVE_POSIX_FALLOCATE 1
  12466. _ACEOF
  12467. have_posix_fallocate=yes
  12468. fi
  12469. done
  12470. if test "x$have_posix_fallocate" = "xyes"; then
  12471. HAVE_POSIX_FALLOCATE_TRUE=
  12472. HAVE_POSIX_FALLOCATE_FALSE='#'
  12473. else
  12474. HAVE_POSIX_FALLOCATE_TRUE='#'
  12475. HAVE_POSIX_FALLOCATE_FALSE=
  12476. fi
  12477. for ac_func in asctime_r
  12478. do :
  12479. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12480. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12481. cat >>confdefs.h <<_ACEOF
  12482. #define HAVE_ASCTIME_R 1
  12483. _ACEOF
  12484. if true; then
  12485. HAVE_ASCTIME_R_TRUE=
  12486. HAVE_ASCTIME_R_FALSE='#'
  12487. else
  12488. HAVE_ASCTIME_R_TRUE='#'
  12489. HAVE_ASCTIME_R_FALSE=
  12490. fi
  12491. else
  12492. if false; then
  12493. HAVE_ASCTIME_R_TRUE=
  12494. HAVE_ASCTIME_R_FALSE='#'
  12495. else
  12496. HAVE_ASCTIME_R_TRUE='#'
  12497. HAVE_ASCTIME_R_FALSE=
  12498. fi
  12499. fi
  12500. done
  12501. for ac_func in basename
  12502. do :
  12503. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12504. if test "x$ac_cv_func_basename" = x""yes; then :
  12505. cat >>confdefs.h <<_ACEOF
  12506. #define HAVE_BASENAME 1
  12507. _ACEOF
  12508. if true; then
  12509. HAVE_BASENAME_TRUE=
  12510. HAVE_BASENAME_FALSE='#'
  12511. else
  12512. HAVE_BASENAME_TRUE='#'
  12513. HAVE_BASENAME_FALSE=
  12514. fi
  12515. else
  12516. if false; then
  12517. HAVE_BASENAME_TRUE=
  12518. HAVE_BASENAME_FALSE='#'
  12519. else
  12520. HAVE_BASENAME_TRUE='#'
  12521. HAVE_BASENAME_FALSE=
  12522. fi
  12523. fi
  12524. done
  12525. for ac_func in gai_strerror
  12526. do :
  12527. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12528. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12529. cat >>confdefs.h <<_ACEOF
  12530. #define HAVE_GAI_STRERROR 1
  12531. _ACEOF
  12532. if true; then
  12533. HAVE_GAI_STRERROR_TRUE=
  12534. HAVE_GAI_STRERROR_FALSE='#'
  12535. else
  12536. HAVE_GAI_STRERROR_TRUE='#'
  12537. HAVE_GAI_STRERROR_FALSE=
  12538. fi
  12539. else
  12540. if false; then
  12541. HAVE_GAI_STRERROR_TRUE=
  12542. HAVE_GAI_STRERROR_FALSE='#'
  12543. else
  12544. HAVE_GAI_STRERROR_TRUE='#'
  12545. HAVE_GAI_STRERROR_FALSE=
  12546. fi
  12547. fi
  12548. done
  12549. for ac_func in getaddrinfo
  12550. do :
  12551. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12552. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12553. cat >>confdefs.h <<_ACEOF
  12554. #define HAVE_GETADDRINFO 1
  12555. _ACEOF
  12556. if true; then
  12557. HAVE_GETADDRINFO_TRUE=
  12558. HAVE_GETADDRINFO_FALSE='#'
  12559. else
  12560. HAVE_GETADDRINFO_TRUE='#'
  12561. HAVE_GETADDRINFO_FALSE=
  12562. fi
  12563. else
  12564. if false; then
  12565. HAVE_GETADDRINFO_TRUE=
  12566. HAVE_GETADDRINFO_FALSE='#'
  12567. else
  12568. HAVE_GETADDRINFO_TRUE='#'
  12569. HAVE_GETADDRINFO_FALSE=
  12570. fi
  12571. fi
  12572. done
  12573. for ac_func in gettimeofday
  12574. do :
  12575. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12576. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12577. cat >>confdefs.h <<_ACEOF
  12578. #define HAVE_GETTIMEOFDAY 1
  12579. _ACEOF
  12580. if true; then
  12581. HAVE_GETTIMEOFDAY_TRUE=
  12582. HAVE_GETTIMEOFDAY_FALSE='#'
  12583. else
  12584. HAVE_GETTIMEOFDAY_TRUE='#'
  12585. HAVE_GETTIMEOFDAY_FALSE=
  12586. fi
  12587. else
  12588. if false; then
  12589. HAVE_GETTIMEOFDAY_TRUE=
  12590. HAVE_GETTIMEOFDAY_FALSE='#'
  12591. else
  12592. HAVE_GETTIMEOFDAY_TRUE='#'
  12593. HAVE_GETTIMEOFDAY_FALSE=
  12594. fi
  12595. fi
  12596. done
  12597. for ac_func in inet_aton
  12598. do :
  12599. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12600. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12601. cat >>confdefs.h <<_ACEOF
  12602. #define HAVE_INET_ATON 1
  12603. _ACEOF
  12604. if true; then
  12605. HAVE_INET_ATON_TRUE=
  12606. HAVE_INET_ATON_FALSE='#'
  12607. else
  12608. HAVE_INET_ATON_TRUE='#'
  12609. HAVE_INET_ATON_FALSE=
  12610. fi
  12611. else
  12612. if false; then
  12613. HAVE_INET_ATON_TRUE=
  12614. HAVE_INET_ATON_FALSE='#'
  12615. else
  12616. HAVE_INET_ATON_TRUE='#'
  12617. HAVE_INET_ATON_FALSE=
  12618. fi
  12619. fi
  12620. done
  12621. for ac_func in localtime_r
  12622. do :
  12623. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12624. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  12625. cat >>confdefs.h <<_ACEOF
  12626. #define HAVE_LOCALTIME_R 1
  12627. _ACEOF
  12628. if true; then
  12629. HAVE_LOCALTIME_R_TRUE=
  12630. HAVE_LOCALTIME_R_FALSE='#'
  12631. else
  12632. HAVE_LOCALTIME_R_TRUE='#'
  12633. HAVE_LOCALTIME_R_FALSE=
  12634. fi
  12635. else
  12636. if false; then
  12637. HAVE_LOCALTIME_R_TRUE=
  12638. HAVE_LOCALTIME_R_FALSE='#'
  12639. else
  12640. HAVE_LOCALTIME_R_TRUE='#'
  12641. HAVE_LOCALTIME_R_FALSE=
  12642. fi
  12643. fi
  12644. done
  12645. for ac_func in strptime
  12646. do :
  12647. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  12648. if test "x$ac_cv_func_strptime" = x""yes; then :
  12649. cat >>confdefs.h <<_ACEOF
  12650. #define HAVE_STRPTIME 1
  12651. _ACEOF
  12652. if true; then
  12653. HAVE_STRPTIME_TRUE=
  12654. HAVE_STRPTIME_FALSE='#'
  12655. else
  12656. HAVE_STRPTIME_TRUE='#'
  12657. HAVE_STRPTIME_FALSE=
  12658. fi
  12659. else
  12660. if false; then
  12661. HAVE_STRPTIME_TRUE=
  12662. HAVE_STRPTIME_FALSE='#'
  12663. else
  12664. HAVE_STRPTIME_TRUE='#'
  12665. HAVE_STRPTIME_FALSE=
  12666. fi
  12667. fi
  12668. done
  12669. for ac_func in timegm
  12670. do :
  12671. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  12672. if test "x$ac_cv_func_timegm" = x""yes; then :
  12673. cat >>confdefs.h <<_ACEOF
  12674. #define HAVE_TIMEGM 1
  12675. _ACEOF
  12676. if true; then
  12677. HAVE_TIMEGM_TRUE=
  12678. HAVE_TIMEGM_FALSE='#'
  12679. else
  12680. HAVE_TIMEGM_TRUE='#'
  12681. HAVE_TIMEGM_FALSE=
  12682. fi
  12683. else
  12684. if false; then
  12685. HAVE_TIMEGM_TRUE=
  12686. HAVE_TIMEGM_FALSE='#'
  12687. else
  12688. HAVE_TIMEGM_TRUE='#'
  12689. HAVE_TIMEGM_FALSE=
  12690. fi
  12691. fi
  12692. done
  12693. for ac_func in daemon
  12694. do :
  12695. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  12696. if test "x$ac_cv_func_daemon" = x""yes; then :
  12697. cat >>confdefs.h <<_ACEOF
  12698. #define HAVE_DAEMON 1
  12699. _ACEOF
  12700. have_daemon=yes
  12701. fi
  12702. done
  12703. if test "x$have_daemon" = "xyes"; then
  12704. HAVE_DAEMON_TRUE=
  12705. HAVE_DAEMON_FALSE='#'
  12706. else
  12707. HAVE_DAEMON_TRUE='#'
  12708. HAVE_DAEMON_FALSE=
  12709. fi
  12710. case "$target" in
  12711. *mingw*)
  12712. if true; then
  12713. HAVE_GETADDRINFO_TRUE=
  12714. HAVE_GETADDRINFO_FALSE='#'
  12715. else
  12716. HAVE_GETADDRINFO_TRUE='#'
  12717. HAVE_GETADDRINFO_FALSE=
  12718. fi
  12719. if false; then
  12720. HAVE_GAI_STRERROR_TRUE=
  12721. HAVE_GAI_STRERROR_FALSE='#'
  12722. else
  12723. HAVE_GAI_STRERROR_TRUE='#'
  12724. HAVE_GAI_STRERROR_FALSE=
  12725. fi
  12726. ;;
  12727. esac
  12728. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  12729. "
  12730. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  12731. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  12732. fi
  12733. # Check struct option.name is assignable from const char*. struct
  12734. # option.name in opensolaris is of type char*. In Linux, it is const
  12735. # char*
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  12737. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  12738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12739. /* end confdefs.h. */
  12740. #include <unistd.h>
  12741. #include <getopt.h>
  12742. int
  12743. main ()
  12744. {
  12745. const char* s = "const char";
  12746. option op;
  12747. op.name = s;
  12748. ;
  12749. return 0;
  12750. }
  12751. _ACEOF
  12752. if ac_fn_cxx_try_compile "$LINENO"; then :
  12753. have_option_const_name=yes
  12754. else
  12755. have_option_const_name=no
  12756. fi
  12757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  12759. $as_echo "$have_option_const_name" >&6; }
  12760. if test "x$have_option_const_name" = "xyes"; then
  12761. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  12762. fi
  12763. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  12764. cat >confcache <<\_ACEOF
  12765. # This file is a shell script that caches the results of configure
  12766. # tests run on this system so they can be shared between configure
  12767. # scripts and configure runs, see configure's option --config-cache.
  12768. # It is not useful on other systems. If it contains results you don't
  12769. # want to keep, you may remove or edit it.
  12770. #
  12771. # config.status only pays attention to the cache file if you give it
  12772. # the --recheck option to rerun configure.
  12773. #
  12774. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12775. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12776. # following values.
  12777. _ACEOF
  12778. # The following way of writing the cache mishandles newlines in values,
  12779. # but we know of no workaround that is simple, portable, and efficient.
  12780. # So, we kill variables containing newlines.
  12781. # Ultrix sh set writes to stderr and can't be redirected directly,
  12782. # and sets the high bit in the cache file unless we assign to the vars.
  12783. (
  12784. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12785. eval ac_val=\$$ac_var
  12786. case $ac_val in #(
  12787. *${as_nl}*)
  12788. case $ac_var in #(
  12789. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12790. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12791. esac
  12792. case $ac_var in #(
  12793. _ | IFS | as_nl) ;; #(
  12794. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12795. *) { eval $ac_var=; unset $ac_var;} ;;
  12796. esac ;;
  12797. esac
  12798. done
  12799. (set) 2>&1 |
  12800. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12801. *${as_nl}ac_space=\ *)
  12802. # `set' does not quote correctly, so add quotes: double-quote
  12803. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12804. sed -n \
  12805. "s/'/'\\\\''/g;
  12806. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12807. ;; #(
  12808. *)
  12809. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12810. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12811. ;;
  12812. esac |
  12813. sort
  12814. ) |
  12815. sed '
  12816. /^ac_cv_env_/b end
  12817. t clear
  12818. :clear
  12819. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12820. t end
  12821. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12822. :end' >>confcache
  12823. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12824. if test -w "$cache_file"; then
  12825. test "x$cache_file" != "x/dev/null" &&
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12827. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12828. cat confcache >$cache_file
  12829. else
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12831. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12832. fi
  12833. fi
  12834. rm -f confcache
  12835. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12836. # Let make expand exec_prefix.
  12837. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12838. DEFS=-DHAVE_CONFIG_H
  12839. ac_libobjs=
  12840. ac_ltlibobjs=
  12841. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12842. # 1. Remove the extension, and $U if already installed.
  12843. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12844. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12845. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12846. # will be set to the directory where LIBOBJS objects are built.
  12847. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12848. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12849. done
  12850. LIBOBJS=$ac_libobjs
  12851. LTLIBOBJS=$ac_ltlibobjs
  12852. if test -n "$EXEEXT"; then
  12853. am__EXEEXT_TRUE=
  12854. am__EXEEXT_FALSE='#'
  12855. else
  12856. am__EXEEXT_TRUE='#'
  12857. am__EXEEXT_FALSE=
  12858. fi
  12859. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12860. as_fn_error "conditional \"AMDEP\" was never defined.
  12861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12862. fi
  12863. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12864. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12865. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12866. fi
  12867. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12868. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12869. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12870. fi
  12871. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  12872. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  12873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12874. fi
  12875. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  12876. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  12877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12878. fi
  12879. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  12880. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  12881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12882. fi
  12883. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  12884. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  12885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12886. fi
  12887. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12888. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12890. fi
  12891. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12892. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12894. fi
  12895. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12896. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  12897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12898. fi
  12899. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12900. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  12901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12902. fi
  12903. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12904. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  12905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12906. fi
  12907. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12908. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  12909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12910. fi
  12911. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  12912. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  12913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12914. fi
  12915. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  12916. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  12917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12918. fi
  12919. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  12920. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  12921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12922. fi
  12923. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  12924. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  12925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12926. fi
  12927. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  12928. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  12929. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12930. fi
  12931. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12932. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12933. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12934. fi
  12935. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12936. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12937. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12938. fi
  12939. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  12940. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  12941. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12942. fi
  12943. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  12944. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  12945. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12946. fi
  12947. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  12948. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  12949. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12950. fi
  12951. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  12952. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  12953. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12954. fi
  12955. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  12956. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  12957. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12958. fi
  12959. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  12960. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  12961. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12962. fi
  12963. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12964. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  12965. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12966. fi
  12967. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12968. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  12969. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12970. fi
  12971. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12972. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  12973. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12974. fi
  12975. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12976. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  12977. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12978. fi
  12979. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12980. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  12981. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12982. fi
  12983. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12984. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  12985. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12986. fi
  12987. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12988. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12989. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12990. fi
  12991. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12992. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12993. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12994. fi
  12995. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12996. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  12997. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12998. fi
  12999. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13000. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13001. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13002. fi
  13003. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13004. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13005. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13006. fi
  13007. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13008. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13009. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13010. fi
  13011. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13012. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13013. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13014. fi
  13015. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13016. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13017. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13018. fi
  13019. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13020. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13021. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13022. fi
  13023. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13024. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13025. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13026. fi
  13027. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13028. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13029. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13030. fi
  13031. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13032. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13033. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13034. fi
  13035. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13036. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13037. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13038. fi
  13039. : ${CONFIG_STATUS=./config.status}
  13040. ac_write_fail=0
  13041. ac_clean_files_save=$ac_clean_files
  13042. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13044. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13045. as_write_fail=0
  13046. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13047. #! $SHELL
  13048. # Generated by $as_me.
  13049. # Run this file to recreate the current configuration.
  13050. # Compiler output produced by configure, useful for debugging
  13051. # configure, is in config.log if it exists.
  13052. debug=false
  13053. ac_cs_recheck=false
  13054. ac_cs_silent=false
  13055. SHELL=\${CONFIG_SHELL-$SHELL}
  13056. export SHELL
  13057. _ASEOF
  13058. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13059. ## -------------------- ##
  13060. ## M4sh Initialization. ##
  13061. ## -------------------- ##
  13062. # Be more Bourne compatible
  13063. DUALCASE=1; export DUALCASE # for MKS sh
  13064. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13065. emulate sh
  13066. NULLCMD=:
  13067. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13068. # is contrary to our usage. Disable this feature.
  13069. alias -g '${1+"$@"}'='"$@"'
  13070. setopt NO_GLOB_SUBST
  13071. else
  13072. case `(set -o) 2>/dev/null` in #(
  13073. *posix*) :
  13074. set -o posix ;; #(
  13075. *) :
  13076. ;;
  13077. esac
  13078. fi
  13079. as_nl='
  13080. '
  13081. export as_nl
  13082. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13083. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13084. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13085. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13086. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13087. # but without wasting forks for bash or zsh.
  13088. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13089. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13090. as_echo='print -r --'
  13091. as_echo_n='print -rn --'
  13092. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13093. as_echo='printf %s\n'
  13094. as_echo_n='printf %s'
  13095. else
  13096. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13097. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13098. as_echo_n='/usr/ucb/echo -n'
  13099. else
  13100. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13101. as_echo_n_body='eval
  13102. arg=$1;
  13103. case $arg in #(
  13104. *"$as_nl"*)
  13105. expr "X$arg" : "X\\(.*\\)$as_nl";
  13106. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13107. esac;
  13108. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13109. '
  13110. export as_echo_n_body
  13111. as_echo_n='sh -c $as_echo_n_body as_echo'
  13112. fi
  13113. export as_echo_body
  13114. as_echo='sh -c $as_echo_body as_echo'
  13115. fi
  13116. # The user is always right.
  13117. if test "${PATH_SEPARATOR+set}" != set; then
  13118. PATH_SEPARATOR=:
  13119. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13120. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13121. PATH_SEPARATOR=';'
  13122. }
  13123. fi
  13124. # IFS
  13125. # We need space, tab and new line, in precisely that order. Quoting is
  13126. # there to prevent editors from complaining about space-tab.
  13127. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13128. # splitting by setting IFS to empty value.)
  13129. IFS=" "" $as_nl"
  13130. # Find who we are. Look in the path if we contain no directory separator.
  13131. case $0 in #((
  13132. *[\\/]* ) as_myself=$0 ;;
  13133. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13134. for as_dir in $PATH
  13135. do
  13136. IFS=$as_save_IFS
  13137. test -z "$as_dir" && as_dir=.
  13138. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13139. done
  13140. IFS=$as_save_IFS
  13141. ;;
  13142. esac
  13143. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13144. # in which case we are not to be found in the path.
  13145. if test "x$as_myself" = x; then
  13146. as_myself=$0
  13147. fi
  13148. if test ! -f "$as_myself"; then
  13149. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13150. exit 1
  13151. fi
  13152. # Unset variables that we do not need and which cause bugs (e.g. in
  13153. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13154. # suppresses any "Segmentation fault" message there. '((' could
  13155. # trigger a bug in pdksh 5.2.14.
  13156. for as_var in BASH_ENV ENV MAIL MAILPATH
  13157. do eval test x\${$as_var+set} = xset \
  13158. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13159. done
  13160. PS1='$ '
  13161. PS2='> '
  13162. PS4='+ '
  13163. # NLS nuisances.
  13164. LC_ALL=C
  13165. export LC_ALL
  13166. LANGUAGE=C
  13167. export LANGUAGE
  13168. # CDPATH.
  13169. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13170. # as_fn_error ERROR [LINENO LOG_FD]
  13171. # ---------------------------------
  13172. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13173. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13174. # script with status $?, using 1 if that was 0.
  13175. as_fn_error ()
  13176. {
  13177. as_status=$?; test $as_status -eq 0 && as_status=1
  13178. if test "$3"; then
  13179. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13180. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13181. fi
  13182. $as_echo "$as_me: error: $1" >&2
  13183. as_fn_exit $as_status
  13184. } # as_fn_error
  13185. # as_fn_set_status STATUS
  13186. # -----------------------
  13187. # Set $? to STATUS, without forking.
  13188. as_fn_set_status ()
  13189. {
  13190. return $1
  13191. } # as_fn_set_status
  13192. # as_fn_exit STATUS
  13193. # -----------------
  13194. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13195. as_fn_exit ()
  13196. {
  13197. set +e
  13198. as_fn_set_status $1
  13199. exit $1
  13200. } # as_fn_exit
  13201. # as_fn_unset VAR
  13202. # ---------------
  13203. # Portably unset VAR.
  13204. as_fn_unset ()
  13205. {
  13206. { eval $1=; unset $1;}
  13207. }
  13208. as_unset=as_fn_unset
  13209. # as_fn_append VAR VALUE
  13210. # ----------------------
  13211. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13212. # advantage of any shell optimizations that allow amortized linear growth over
  13213. # repeated appends, instead of the typical quadratic growth present in naive
  13214. # implementations.
  13215. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13216. eval 'as_fn_append ()
  13217. {
  13218. eval $1+=\$2
  13219. }'
  13220. else
  13221. as_fn_append ()
  13222. {
  13223. eval $1=\$$1\$2
  13224. }
  13225. fi # as_fn_append
  13226. # as_fn_arith ARG...
  13227. # ------------------
  13228. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13229. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13230. # must be portable across $(()) and expr.
  13231. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13232. eval 'as_fn_arith ()
  13233. {
  13234. as_val=$(( $* ))
  13235. }'
  13236. else
  13237. as_fn_arith ()
  13238. {
  13239. as_val=`expr "$@" || test $? -eq 1`
  13240. }
  13241. fi # as_fn_arith
  13242. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13243. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13244. as_expr=expr
  13245. else
  13246. as_expr=false
  13247. fi
  13248. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13249. as_basename=basename
  13250. else
  13251. as_basename=false
  13252. fi
  13253. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13254. as_dirname=dirname
  13255. else
  13256. as_dirname=false
  13257. fi
  13258. as_me=`$as_basename -- "$0" ||
  13259. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13260. X"$0" : 'X\(//\)$' \| \
  13261. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13262. $as_echo X/"$0" |
  13263. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13264. s//\1/
  13265. q
  13266. }
  13267. /^X\/\(\/\/\)$/{
  13268. s//\1/
  13269. q
  13270. }
  13271. /^X\/\(\/\).*/{
  13272. s//\1/
  13273. q
  13274. }
  13275. s/.*/./; q'`
  13276. # Avoid depending upon Character Ranges.
  13277. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13278. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13279. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13280. as_cr_digits='0123456789'
  13281. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13282. ECHO_C= ECHO_N= ECHO_T=
  13283. case `echo -n x` in #(((((
  13284. -n*)
  13285. case `echo 'xy\c'` in
  13286. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13287. xy) ECHO_C='\c';;
  13288. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13289. ECHO_T=' ';;
  13290. esac;;
  13291. *)
  13292. ECHO_N='-n';;
  13293. esac
  13294. rm -f conf$$ conf$$.exe conf$$.file
  13295. if test -d conf$$.dir; then
  13296. rm -f conf$$.dir/conf$$.file
  13297. else
  13298. rm -f conf$$.dir
  13299. mkdir conf$$.dir 2>/dev/null
  13300. fi
  13301. if (echo >conf$$.file) 2>/dev/null; then
  13302. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13303. as_ln_s='ln -s'
  13304. # ... but there are two gotchas:
  13305. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13306. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13307. # In both cases, we have to default to `cp -p'.
  13308. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13309. as_ln_s='cp -p'
  13310. elif ln conf$$.file conf$$ 2>/dev/null; then
  13311. as_ln_s=ln
  13312. else
  13313. as_ln_s='cp -p'
  13314. fi
  13315. else
  13316. as_ln_s='cp -p'
  13317. fi
  13318. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13319. rmdir conf$$.dir 2>/dev/null
  13320. # as_fn_mkdir_p
  13321. # -------------
  13322. # Create "$as_dir" as a directory, including parents if necessary.
  13323. as_fn_mkdir_p ()
  13324. {
  13325. case $as_dir in #(
  13326. -*) as_dir=./$as_dir;;
  13327. esac
  13328. test -d "$as_dir" || eval $as_mkdir_p || {
  13329. as_dirs=
  13330. while :; do
  13331. case $as_dir in #(
  13332. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13333. *) as_qdir=$as_dir;;
  13334. esac
  13335. as_dirs="'$as_qdir' $as_dirs"
  13336. as_dir=`$as_dirname -- "$as_dir" ||
  13337. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13338. X"$as_dir" : 'X\(//\)[^/]' \| \
  13339. X"$as_dir" : 'X\(//\)$' \| \
  13340. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13341. $as_echo X"$as_dir" |
  13342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13343. s//\1/
  13344. q
  13345. }
  13346. /^X\(\/\/\)[^/].*/{
  13347. s//\1/
  13348. q
  13349. }
  13350. /^X\(\/\/\)$/{
  13351. s//\1/
  13352. q
  13353. }
  13354. /^X\(\/\).*/{
  13355. s//\1/
  13356. q
  13357. }
  13358. s/.*/./; q'`
  13359. test -d "$as_dir" && break
  13360. done
  13361. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13362. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13363. } # as_fn_mkdir_p
  13364. if mkdir -p . 2>/dev/null; then
  13365. as_mkdir_p='mkdir -p "$as_dir"'
  13366. else
  13367. test -d ./-p && rmdir ./-p
  13368. as_mkdir_p=false
  13369. fi
  13370. if test -x / >/dev/null 2>&1; then
  13371. as_test_x='test -x'
  13372. else
  13373. if ls -dL / >/dev/null 2>&1; then
  13374. as_ls_L_option=L
  13375. else
  13376. as_ls_L_option=
  13377. fi
  13378. as_test_x='
  13379. eval sh -c '\''
  13380. if test -d "$1"; then
  13381. test -d "$1/.";
  13382. else
  13383. case $1 in #(
  13384. -*)set "./$1";;
  13385. esac;
  13386. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13387. ???[sx]*):;;*)false;;esac;fi
  13388. '\'' sh
  13389. '
  13390. fi
  13391. as_executable_p=$as_test_x
  13392. # Sed expression to map a string onto a valid CPP name.
  13393. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13394. # Sed expression to map a string onto a valid variable name.
  13395. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13396. exec 6>&1
  13397. ## ----------------------------------- ##
  13398. ## Main body of $CONFIG_STATUS script. ##
  13399. ## ----------------------------------- ##
  13400. _ASEOF
  13401. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13403. # Save the log message, to keep $0 and so on meaningful, and to
  13404. # report actual input values of CONFIG_FILES etc. instead of their
  13405. # values after options handling.
  13406. ac_log="
  13407. This file was extended by aria2 $as_me 1.6.1, which was
  13408. generated by GNU Autoconf 2.64. Invocation command line was
  13409. CONFIG_FILES = $CONFIG_FILES
  13410. CONFIG_HEADERS = $CONFIG_HEADERS
  13411. CONFIG_LINKS = $CONFIG_LINKS
  13412. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13413. $ $0 $@
  13414. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13415. "
  13416. _ACEOF
  13417. case $ac_config_files in *"
  13418. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13419. esac
  13420. case $ac_config_headers in *"
  13421. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13422. esac
  13423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13424. # Files that config.status was made for.
  13425. config_files="$ac_config_files"
  13426. config_headers="$ac_config_headers"
  13427. config_commands="$ac_config_commands"
  13428. _ACEOF
  13429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13430. ac_cs_usage="\
  13431. \`$as_me' instantiates files and other configuration actions
  13432. from templates according to the current configuration. Unless the files
  13433. and actions are specified as TAGs, all are instantiated by default.
  13434. Usage: $0 [OPTION]... [TAG]...
  13435. -h, --help print this help, then exit
  13436. -V, --version print version number and configuration settings, then exit
  13437. -q, --quiet, --silent
  13438. do not print progress messages
  13439. -d, --debug don't remove temporary files
  13440. --recheck update $as_me by reconfiguring in the same conditions
  13441. --file=FILE[:TEMPLATE]
  13442. instantiate the configuration file FILE
  13443. --header=FILE[:TEMPLATE]
  13444. instantiate the configuration header FILE
  13445. Configuration files:
  13446. $config_files
  13447. Configuration headers:
  13448. $config_headers
  13449. Configuration commands:
  13450. $config_commands
  13451. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13452. aria2 home page: <http://aria2.sourceforge.net/>."
  13453. _ACEOF
  13454. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13455. ac_cs_version="\\
  13456. aria2 config.status 1.6.1
  13457. configured by $0, generated by GNU Autoconf 2.64,
  13458. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13459. Copyright (C) 2009 Free Software Foundation, Inc.
  13460. This config.status script is free software; the Free Software Foundation
  13461. gives unlimited permission to copy, distribute and modify it."
  13462. ac_pwd='$ac_pwd'
  13463. srcdir='$srcdir'
  13464. INSTALL='$INSTALL'
  13465. MKDIR_P='$MKDIR_P'
  13466. AWK='$AWK'
  13467. test -n "\$AWK" || AWK=awk
  13468. _ACEOF
  13469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13470. # The default lists apply if the user does not specify any file.
  13471. ac_need_defaults=:
  13472. while test $# != 0
  13473. do
  13474. case $1 in
  13475. --*=*)
  13476. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13477. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13478. ac_shift=:
  13479. ;;
  13480. *)
  13481. ac_option=$1
  13482. ac_optarg=$2
  13483. ac_shift=shift
  13484. ;;
  13485. esac
  13486. case $ac_option in
  13487. # Handling of the options.
  13488. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13489. ac_cs_recheck=: ;;
  13490. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13491. $as_echo "$ac_cs_version"; exit ;;
  13492. --debug | --debu | --deb | --de | --d | -d )
  13493. debug=: ;;
  13494. --file | --fil | --fi | --f )
  13495. $ac_shift
  13496. case $ac_optarg in
  13497. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13498. esac
  13499. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13500. ac_need_defaults=false;;
  13501. --header | --heade | --head | --hea )
  13502. $ac_shift
  13503. case $ac_optarg in
  13504. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13505. esac
  13506. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13507. ac_need_defaults=false;;
  13508. --he | --h)
  13509. # Conflict between --help and --header
  13510. as_fn_error "ambiguous option: \`$1'
  13511. Try \`$0 --help' for more information.";;
  13512. --help | --hel | -h )
  13513. $as_echo "$ac_cs_usage"; exit ;;
  13514. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13515. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13516. ac_cs_silent=: ;;
  13517. # This is an error.
  13518. -*) as_fn_error "unrecognized option: \`$1'
  13519. Try \`$0 --help' for more information." ;;
  13520. *) as_fn_append ac_config_targets " $1"
  13521. ac_need_defaults=false ;;
  13522. esac
  13523. shift
  13524. done
  13525. ac_configure_extra_args=
  13526. if $ac_cs_silent; then
  13527. exec 6>/dev/null
  13528. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13529. fi
  13530. _ACEOF
  13531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13532. if \$ac_cs_recheck; then
  13533. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13534. shift
  13535. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13536. CONFIG_SHELL='$SHELL'
  13537. export CONFIG_SHELL
  13538. exec "\$@"
  13539. fi
  13540. _ACEOF
  13541. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13542. exec 5>>config.log
  13543. {
  13544. echo
  13545. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13546. ## Running $as_me. ##
  13547. _ASBOX
  13548. $as_echo "$ac_log"
  13549. } >&5
  13550. _ACEOF
  13551. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13552. #
  13553. # INIT-COMMANDS
  13554. #
  13555. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13556. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13557. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13558. # from automake < 1.5.
  13559. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13560. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13561. LINGUAS="${LINGUAS-%UNSET%}"
  13562. _ACEOF
  13563. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13564. # Handling of arguments.
  13565. for ac_config_target in $ac_config_targets
  13566. do
  13567. case $ac_config_target in
  13568. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13569. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13570. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13571. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13572. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13573. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13574. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13575. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13576. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13577. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13578. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13579. esac
  13580. done
  13581. # If the user did not use the arguments to specify the items to instantiate,
  13582. # then the envvar interface is used. Set only those that are not.
  13583. # We use the long form for the default assignment because of an extremely
  13584. # bizarre bug on SunOS 4.1.3.
  13585. if $ac_need_defaults; then
  13586. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13587. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13588. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13589. fi
  13590. # Have a temporary directory for convenience. Make it in the build tree
  13591. # simply because there is no reason against having it here, and in addition,
  13592. # creating and moving files from /tmp can sometimes cause problems.
  13593. # Hook for its removal unless debugging.
  13594. # Note that there is a small window in which the directory will not be cleaned:
  13595. # after its creation but before its name has been assigned to `$tmp'.
  13596. $debug ||
  13597. {
  13598. tmp=
  13599. trap 'exit_status=$?
  13600. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13601. ' 0
  13602. trap 'as_fn_exit 1' 1 2 13 15
  13603. }
  13604. # Create a (secure) tmp directory for tmp files.
  13605. {
  13606. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13607. test -n "$tmp" && test -d "$tmp"
  13608. } ||
  13609. {
  13610. tmp=./conf$$-$RANDOM
  13611. (umask 077 && mkdir "$tmp")
  13612. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13613. # Set up the scripts for CONFIG_FILES section.
  13614. # No need to generate them if there are no CONFIG_FILES.
  13615. # This happens for instance with `./config.status config.h'.
  13616. if test -n "$CONFIG_FILES"; then
  13617. ac_cr=`echo X | tr X '\015'`
  13618. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13619. # But we know of no other shell where ac_cr would be empty at this
  13620. # point, so we can use a bashism as a fallback.
  13621. if test "x$ac_cr" = x; then
  13622. eval ac_cr=\$\'\\r\'
  13623. fi
  13624. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13625. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13626. ac_cs_awk_cr='\r'
  13627. else
  13628. ac_cs_awk_cr=$ac_cr
  13629. fi
  13630. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13631. _ACEOF
  13632. {
  13633. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13634. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13635. echo "_ACEOF"
  13636. } >conf$$subs.sh ||
  13637. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13638. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13639. ac_delim='%!_!# '
  13640. for ac_last_try in false false false false false :; do
  13641. . ./conf$$subs.sh ||
  13642. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13643. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13644. if test $ac_delim_n = $ac_delim_num; then
  13645. break
  13646. elif $ac_last_try; then
  13647. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13648. else
  13649. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13650. fi
  13651. done
  13652. rm -f conf$$subs.sh
  13653. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13654. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13655. _ACEOF
  13656. sed -n '
  13657. h
  13658. s/^/S["/; s/!.*/"]=/
  13659. p
  13660. g
  13661. s/^[^!]*!//
  13662. :repl
  13663. t repl
  13664. s/'"$ac_delim"'$//
  13665. t delim
  13666. :nl
  13667. h
  13668. s/\(.\{148\}\).*/\1/
  13669. t more1
  13670. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13671. p
  13672. n
  13673. b repl
  13674. :more1
  13675. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13676. p
  13677. g
  13678. s/.\{148\}//
  13679. t nl
  13680. :delim
  13681. h
  13682. s/\(.\{148\}\).*/\1/
  13683. t more2
  13684. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13685. p
  13686. b
  13687. :more2
  13688. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13689. p
  13690. g
  13691. s/.\{148\}//
  13692. t delim
  13693. ' <conf$$subs.awk | sed '
  13694. /^[^""]/{
  13695. N
  13696. s/\n//
  13697. }
  13698. ' >>$CONFIG_STATUS || ac_write_fail=1
  13699. rm -f conf$$subs.awk
  13700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13701. _ACAWK
  13702. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13703. for (key in S) S_is_set[key] = 1
  13704. FS = ""
  13705. }
  13706. {
  13707. line = $ 0
  13708. nfields = split(line, field, "@")
  13709. substed = 0
  13710. len = length(field[1])
  13711. for (i = 2; i < nfields; i++) {
  13712. key = field[i]
  13713. keylen = length(key)
  13714. if (S_is_set[key]) {
  13715. value = S[key]
  13716. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13717. len += length(value) + length(field[++i])
  13718. substed = 1
  13719. } else
  13720. len += 1 + keylen
  13721. }
  13722. print line
  13723. }
  13724. _ACAWK
  13725. _ACEOF
  13726. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13727. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13728. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13729. else
  13730. cat
  13731. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13732. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13733. _ACEOF
  13734. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13735. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13736. # trailing colons and then remove the whole line if VPATH becomes empty
  13737. # (actually we leave an empty line to preserve line numbers).
  13738. if test "x$srcdir" = x.; then
  13739. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13740. s/:*\$(srcdir):*/:/
  13741. s/:*\${srcdir}:*/:/
  13742. s/:*@srcdir@:*/:/
  13743. s/^\([^=]*=[ ]*\):*/\1/
  13744. s/:*$//
  13745. s/^[^=]*=[ ]*$//
  13746. }'
  13747. fi
  13748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13749. fi # test -n "$CONFIG_FILES"
  13750. # Set up the scripts for CONFIG_HEADERS section.
  13751. # No need to generate them if there are no CONFIG_HEADERS.
  13752. # This happens for instance with `./config.status Makefile'.
  13753. if test -n "$CONFIG_HEADERS"; then
  13754. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13755. BEGIN {
  13756. _ACEOF
  13757. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13758. # here-document in config.status, that substitutes the proper values into
  13759. # config.h.in to produce config.h.
  13760. # Create a delimiter string that does not exist in confdefs.h, to ease
  13761. # handling of long lines.
  13762. ac_delim='%!_!# '
  13763. for ac_last_try in false false :; do
  13764. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13765. if test -z "$ac_t"; then
  13766. break
  13767. elif $ac_last_try; then
  13768. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13769. else
  13770. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13771. fi
  13772. done
  13773. # For the awk script, D is an array of macro values keyed by name,
  13774. # likewise P contains macro parameters if any. Preserve backslash
  13775. # newline sequences.
  13776. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13777. sed -n '
  13778. s/.\{148\}/&'"$ac_delim"'/g
  13779. t rset
  13780. :rset
  13781. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13782. t def
  13783. d
  13784. :def
  13785. s/\\$//
  13786. t bsnl
  13787. s/["\\]/\\&/g
  13788. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13789. D["\1"]=" \3"/p
  13790. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13791. d
  13792. :bsnl
  13793. s/["\\]/\\&/g
  13794. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13795. D["\1"]=" \3\\\\\\n"\\/p
  13796. t cont
  13797. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13798. t cont
  13799. d
  13800. :cont
  13801. n
  13802. s/.\{148\}/&'"$ac_delim"'/g
  13803. t clear
  13804. :clear
  13805. s/\\$//
  13806. t bsnlc
  13807. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13808. d
  13809. :bsnlc
  13810. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13811. b cont
  13812. ' <confdefs.h | sed '
  13813. s/'"$ac_delim"'/"\\\
  13814. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13816. for (key in D) D_is_set[key] = 1
  13817. FS = ""
  13818. }
  13819. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13820. line = \$ 0
  13821. split(line, arg, " ")
  13822. if (arg[1] == "#") {
  13823. defundef = arg[2]
  13824. mac1 = arg[3]
  13825. } else {
  13826. defundef = substr(arg[1], 2)
  13827. mac1 = arg[2]
  13828. }
  13829. split(mac1, mac2, "(") #)
  13830. macro = mac2[1]
  13831. prefix = substr(line, 1, index(line, defundef) - 1)
  13832. if (D_is_set[macro]) {
  13833. # Preserve the white space surrounding the "#".
  13834. print prefix "define", macro P[macro] D[macro]
  13835. next
  13836. } else {
  13837. # Replace #undef with comments. This is necessary, for example,
  13838. # in the case of _POSIX_SOURCE, which is predefined and required
  13839. # on some systems where configure will not decide to define it.
  13840. if (defundef == "undef") {
  13841. print "/*", prefix defundef, macro, "*/"
  13842. next
  13843. }
  13844. }
  13845. }
  13846. { print }
  13847. _ACAWK
  13848. _ACEOF
  13849. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13850. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13851. fi # test -n "$CONFIG_HEADERS"
  13852. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13853. shift
  13854. for ac_tag
  13855. do
  13856. case $ac_tag in
  13857. :[FHLC]) ac_mode=$ac_tag; continue;;
  13858. esac
  13859. case $ac_mode$ac_tag in
  13860. :[FHL]*:*);;
  13861. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13862. :[FH]-) ac_tag=-:-;;
  13863. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13864. esac
  13865. ac_save_IFS=$IFS
  13866. IFS=:
  13867. set x $ac_tag
  13868. IFS=$ac_save_IFS
  13869. shift
  13870. ac_file=$1
  13871. shift
  13872. case $ac_mode in
  13873. :L) ac_source=$1;;
  13874. :[FH])
  13875. ac_file_inputs=
  13876. for ac_f
  13877. do
  13878. case $ac_f in
  13879. -) ac_f="$tmp/stdin";;
  13880. *) # Look for the file first in the build tree, then in the source tree
  13881. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13882. # because $ac_f cannot contain `:'.
  13883. test -f "$ac_f" ||
  13884. case $ac_f in
  13885. [\\/$]*) false;;
  13886. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13887. esac ||
  13888. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13889. esac
  13890. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13891. as_fn_append ac_file_inputs " '$ac_f'"
  13892. done
  13893. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13894. # use $as_me), people would be surprised to read:
  13895. # /* config.h. Generated by config.status. */
  13896. configure_input='Generated from '`
  13897. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13898. `' by configure.'
  13899. if test x"$ac_file" != x-; then
  13900. configure_input="$ac_file. $configure_input"
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13902. $as_echo "$as_me: creating $ac_file" >&6;}
  13903. fi
  13904. # Neutralize special characters interpreted by sed in replacement strings.
  13905. case $configure_input in #(
  13906. *\&* | *\|* | *\\* )
  13907. ac_sed_conf_input=`$as_echo "$configure_input" |
  13908. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13909. *) ac_sed_conf_input=$configure_input;;
  13910. esac
  13911. case $ac_tag in
  13912. *:-:* | *:-) cat >"$tmp/stdin" \
  13913. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13914. esac
  13915. ;;
  13916. esac
  13917. ac_dir=`$as_dirname -- "$ac_file" ||
  13918. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13919. X"$ac_file" : 'X\(//\)[^/]' \| \
  13920. X"$ac_file" : 'X\(//\)$' \| \
  13921. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13922. $as_echo X"$ac_file" |
  13923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13924. s//\1/
  13925. q
  13926. }
  13927. /^X\(\/\/\)[^/].*/{
  13928. s//\1/
  13929. q
  13930. }
  13931. /^X\(\/\/\)$/{
  13932. s//\1/
  13933. q
  13934. }
  13935. /^X\(\/\).*/{
  13936. s//\1/
  13937. q
  13938. }
  13939. s/.*/./; q'`
  13940. as_dir="$ac_dir"; as_fn_mkdir_p
  13941. ac_builddir=.
  13942. case "$ac_dir" in
  13943. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13944. *)
  13945. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13946. # A ".." for each directory in $ac_dir_suffix.
  13947. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13948. case $ac_top_builddir_sub in
  13949. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13950. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13951. esac ;;
  13952. esac
  13953. ac_abs_top_builddir=$ac_pwd
  13954. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13955. # for backward compatibility:
  13956. ac_top_builddir=$ac_top_build_prefix
  13957. case $srcdir in
  13958. .) # We are building in place.
  13959. ac_srcdir=.
  13960. ac_top_srcdir=$ac_top_builddir_sub
  13961. ac_abs_top_srcdir=$ac_pwd ;;
  13962. [\\/]* | ?:[\\/]* ) # Absolute name.
  13963. ac_srcdir=$srcdir$ac_dir_suffix;
  13964. ac_top_srcdir=$srcdir
  13965. ac_abs_top_srcdir=$srcdir ;;
  13966. *) # Relative name.
  13967. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13968. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13969. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13970. esac
  13971. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13972. case $ac_mode in
  13973. :F)
  13974. #
  13975. # CONFIG_FILE
  13976. #
  13977. case $INSTALL in
  13978. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13979. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13980. esac
  13981. ac_MKDIR_P=$MKDIR_P
  13982. case $MKDIR_P in
  13983. [\\/$]* | ?:[\\/]* ) ;;
  13984. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13985. esac
  13986. _ACEOF
  13987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13988. # If the template does not know about datarootdir, expand it.
  13989. # FIXME: This hack should be removed a few years after 2.60.
  13990. ac_datarootdir_hack=; ac_datarootdir_seen=
  13991. ac_sed_dataroot='
  13992. /datarootdir/ {
  13993. p
  13994. q
  13995. }
  13996. /@datadir@/p
  13997. /@docdir@/p
  13998. /@infodir@/p
  13999. /@localedir@/p
  14000. /@mandir@/p'
  14001. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14002. *datarootdir*) ac_datarootdir_seen=yes;;
  14003. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14005. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14006. _ACEOF
  14007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14008. ac_datarootdir_hack='
  14009. s&@datadir@&$datadir&g
  14010. s&@docdir@&$docdir&g
  14011. s&@infodir@&$infodir&g
  14012. s&@localedir@&$localedir&g
  14013. s&@mandir@&$mandir&g
  14014. s&\\\${datarootdir}&$datarootdir&g' ;;
  14015. esac
  14016. _ACEOF
  14017. # Neutralize VPATH when `$srcdir' = `.'.
  14018. # Shell code in configure.ac might set extrasub.
  14019. # FIXME: do we really want to maintain this feature?
  14020. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14021. ac_sed_extra="$ac_vpsub
  14022. $extrasub
  14023. _ACEOF
  14024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14025. :t
  14026. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14027. s|@configure_input@|$ac_sed_conf_input|;t t
  14028. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14029. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14030. s&@srcdir@&$ac_srcdir&;t t
  14031. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14032. s&@top_srcdir@&$ac_top_srcdir&;t t
  14033. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14034. s&@builddir@&$ac_builddir&;t t
  14035. s&@abs_builddir@&$ac_abs_builddir&;t t
  14036. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14037. s&@INSTALL@&$ac_INSTALL&;t t
  14038. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14039. $ac_datarootdir_hack
  14040. "
  14041. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14042. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14043. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14044. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14045. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14047. which seems to be undefined. Please make sure it is defined." >&5
  14048. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14049. which seems to be undefined. Please make sure it is defined." >&2;}
  14050. rm -f "$tmp/stdin"
  14051. case $ac_file in
  14052. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14053. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14054. esac \
  14055. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14056. ;;
  14057. :H)
  14058. #
  14059. # CONFIG_HEADER
  14060. #
  14061. if test x"$ac_file" != x-; then
  14062. {
  14063. $as_echo "/* $configure_input */" \
  14064. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14065. } >"$tmp/config.h" \
  14066. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14067. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14069. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14070. else
  14071. rm -f "$ac_file"
  14072. mv "$tmp/config.h" "$ac_file" \
  14073. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14074. fi
  14075. else
  14076. $as_echo "/* $configure_input */" \
  14077. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14078. || as_fn_error "could not create -" "$LINENO" 5
  14079. fi
  14080. # Compute "$ac_file"'s index in $config_headers.
  14081. _am_arg="$ac_file"
  14082. _am_stamp_count=1
  14083. for _am_header in $config_headers :; do
  14084. case $_am_header in
  14085. $_am_arg | $_am_arg:* )
  14086. break ;;
  14087. * )
  14088. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14089. esac
  14090. done
  14091. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14092. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14093. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14094. X"$_am_arg" : 'X\(//\)$' \| \
  14095. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14096. $as_echo X"$_am_arg" |
  14097. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14098. s//\1/
  14099. q
  14100. }
  14101. /^X\(\/\/\)[^/].*/{
  14102. s//\1/
  14103. q
  14104. }
  14105. /^X\(\/\/\)$/{
  14106. s//\1/
  14107. q
  14108. }
  14109. /^X\(\/\).*/{
  14110. s//\1/
  14111. q
  14112. }
  14113. s/.*/./; q'`/stamp-h$_am_stamp_count
  14114. ;;
  14115. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14116. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14117. ;;
  14118. esac
  14119. case $ac_file$ac_mode in
  14120. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14121. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14122. # are listed without --file. Let's play safe and only enable the eval
  14123. # if we detect the quoting.
  14124. case $CONFIG_FILES in
  14125. *\'*) eval set x "$CONFIG_FILES" ;;
  14126. *) set x $CONFIG_FILES ;;
  14127. esac
  14128. shift
  14129. for mf
  14130. do
  14131. # Strip MF so we end up with the name of the file.
  14132. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14133. # Check whether this is an Automake generated Makefile or not.
  14134. # We used to match only the files named `Makefile.in', but
  14135. # some people rename them; so instead we look at the file content.
  14136. # Grep'ing the first line is not enough: some people post-process
  14137. # each Makefile.in and add a new line on top of each file to say so.
  14138. # Grep'ing the whole file is not good either: AIX grep has a line
  14139. # limit of 2048, but all sed's we know have understand at least 4000.
  14140. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14141. dirpart=`$as_dirname -- "$mf" ||
  14142. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14143. X"$mf" : 'X\(//\)[^/]' \| \
  14144. X"$mf" : 'X\(//\)$' \| \
  14145. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14146. $as_echo X"$mf" |
  14147. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14148. s//\1/
  14149. q
  14150. }
  14151. /^X\(\/\/\)[^/].*/{
  14152. s//\1/
  14153. q
  14154. }
  14155. /^X\(\/\/\)$/{
  14156. s//\1/
  14157. q
  14158. }
  14159. /^X\(\/\).*/{
  14160. s//\1/
  14161. q
  14162. }
  14163. s/.*/./; q'`
  14164. else
  14165. continue
  14166. fi
  14167. # Extract the definition of DEPDIR, am__include, and am__quote
  14168. # from the Makefile without running `make'.
  14169. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14170. test -z "$DEPDIR" && continue
  14171. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14172. test -z "am__include" && continue
  14173. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14174. # When using ansi2knr, U may be empty or an underscore; expand it
  14175. U=`sed -n 's/^U = //p' < "$mf"`
  14176. # Find all dependency output files, they are included files with
  14177. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14178. # simplest approach to changing $(DEPDIR) to its actual value in the
  14179. # expansion.
  14180. for file in `sed -n "
  14181. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14182. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14183. # Make sure the directory exists.
  14184. test -f "$dirpart/$file" && continue
  14185. fdir=`$as_dirname -- "$file" ||
  14186. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14187. X"$file" : 'X\(//\)[^/]' \| \
  14188. X"$file" : 'X\(//\)$' \| \
  14189. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14190. $as_echo X"$file" |
  14191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14192. s//\1/
  14193. q
  14194. }
  14195. /^X\(\/\/\)[^/].*/{
  14196. s//\1/
  14197. q
  14198. }
  14199. /^X\(\/\/\)$/{
  14200. s//\1/
  14201. q
  14202. }
  14203. /^X\(\/\).*/{
  14204. s//\1/
  14205. q
  14206. }
  14207. s/.*/./; q'`
  14208. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14209. # echo "creating $dirpart/$file"
  14210. echo '# dummy' > "$dirpart/$file"
  14211. done
  14212. done
  14213. }
  14214. ;;
  14215. "po-directories":C)
  14216. for ac_file in $CONFIG_FILES; do
  14217. # Support "outfile[:infile[:infile...]]"
  14218. case "$ac_file" in
  14219. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14220. esac
  14221. # PO directories have a Makefile.in generated from Makefile.in.in.
  14222. case "$ac_file" in */Makefile.in)
  14223. # Adjust a relative srcdir.
  14224. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14225. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14226. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14227. # In autoconf-2.13 it is called $ac_given_srcdir.
  14228. # In autoconf-2.50 it is called $srcdir.
  14229. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14230. case "$ac_given_srcdir" in
  14231. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14232. /*) top_srcdir="$ac_given_srcdir" ;;
  14233. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14234. esac
  14235. # Treat a directory as a PO directory if and only if it has a
  14236. # POTFILES.in file. This allows packages to have multiple PO
  14237. # directories under different names or in different locations.
  14238. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14239. rm -f "$ac_dir/POTFILES"
  14240. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14241. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14242. POMAKEFILEDEPS="POTFILES.in"
  14243. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14244. # on $ac_dir but don't depend on user-specified configuration
  14245. # parameters.
  14246. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14247. # The LINGUAS file contains the set of available languages.
  14248. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14249. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14250. fi
  14251. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14252. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14253. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14254. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14255. else
  14256. # The set of available languages was given in configure.in.
  14257. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14258. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14259. fi
  14260. # Compute POFILES
  14261. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14262. # Compute UPDATEPOFILES
  14263. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14264. # Compute DUMMYPOFILES
  14265. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14266. # Compute GMOFILES
  14267. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14268. case "$ac_given_srcdir" in
  14269. .) srcdirpre= ;;
  14270. *) srcdirpre='$(srcdir)/' ;;
  14271. esac
  14272. POFILES=
  14273. UPDATEPOFILES=
  14274. DUMMYPOFILES=
  14275. GMOFILES=
  14276. for lang in $ALL_LINGUAS; do
  14277. POFILES="$POFILES $srcdirpre$lang.po"
  14278. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14279. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14280. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14281. done
  14282. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14283. # environment variable.
  14284. INST_LINGUAS=
  14285. if test -n "$ALL_LINGUAS"; then
  14286. for presentlang in $ALL_LINGUAS; do
  14287. useit=no
  14288. if test "%UNSET%" != "$LINGUAS"; then
  14289. desiredlanguages="$LINGUAS"
  14290. else
  14291. desiredlanguages="$ALL_LINGUAS"
  14292. fi
  14293. for desiredlang in $desiredlanguages; do
  14294. # Use the presentlang catalog if desiredlang is
  14295. # a. equal to presentlang, or
  14296. # b. a variant of presentlang (because in this case,
  14297. # presentlang can be used as a fallback for messages
  14298. # which are not translated in the desiredlang catalog).
  14299. case "$desiredlang" in
  14300. "$presentlang"*) useit=yes;;
  14301. esac
  14302. done
  14303. if test $useit = yes; then
  14304. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14305. fi
  14306. done
  14307. fi
  14308. CATALOGS=
  14309. if test -n "$INST_LINGUAS"; then
  14310. for lang in $INST_LINGUAS; do
  14311. CATALOGS="$CATALOGS $lang.gmo"
  14312. done
  14313. fi
  14314. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14315. 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"
  14316. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14317. if test -f "$f"; then
  14318. case "$f" in
  14319. *.orig | *.bak | *~) ;;
  14320. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14321. esac
  14322. fi
  14323. done
  14324. fi
  14325. ;;
  14326. esac
  14327. done ;;
  14328. esac
  14329. done # for ac_tag
  14330. as_fn_exit 0
  14331. _ACEOF
  14332. ac_clean_files=$ac_clean_files_save
  14333. test $ac_write_fail = 0 ||
  14334. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14335. # configure is writing to config.log, and then calls config.status.
  14336. # config.status does its own redirection, appending to config.log.
  14337. # Unfortunately, on DOS this fails, as config.log is still kept open
  14338. # by configure, so config.status won't be able to write to it; its
  14339. # output is simply discarded. So we exec the FD to /dev/null,
  14340. # effectively closing config.log, so it can be properly (re)opened and
  14341. # appended to by config.status. When coming back to configure, we
  14342. # need to make the FD available again.
  14343. if test "$no_create" != yes; then
  14344. ac_cs_success=:
  14345. ac_config_status_args=
  14346. test "$silent" = yes &&
  14347. ac_config_status_args="$ac_config_status_args --quiet"
  14348. exec 5>/dev/null
  14349. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14350. exec 5>>config.log
  14351. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14352. # would make configure fail if this is the last instruction.
  14353. $ac_cs_success || as_fn_exit $?
  14354. fi
  14355. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14357. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14358. fi
  14359. echo " "
  14360. echo "Build: $build"
  14361. echo "Target: $target"
  14362. echo "Install prefix: $prefix"
  14363. echo "CFLAGS: $CFLAGS"
  14364. echo "CPPFLAGS: $CPPFLAGS"
  14365. echo "LDFLAGS: $LDFLAGS"
  14366. echo "LIBS: $LIBS"
  14367. echo "SQLite3: $have_sqlite3"
  14368. echo "GnuTLS: $have_libgnutls"
  14369. echo "OpenSSL: $have_openssl"
  14370. echo "CA Bundle: $ca_bundle"
  14371. echo "LibXML2: $have_libxml2"
  14372. echo "LibExpat: $have_libexpat"
  14373. echo "LibCares: $have_libcares"
  14374. echo "Libz: $have_libz"
  14375. echo "Epoll: $have_epoll"
  14376. echo "Bittorrent: $enable_bittorrent"
  14377. echo "Metalink: $enable_metalink"
  14378. echo "XML-RPC: $enable_xml_rpc"