configure 481 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.4.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.9.4'
  509. PACKAGE_STRING='aria2 1.9.4'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_KQUEUE_FALSE
  555. HAVE_KQUEUE_TRUE
  556. HAVE_PORT_ASSOCIATE_FALSE
  557. HAVE_PORT_ASSOCIATE_TRUE
  558. HAVE_TIMEGETTIME_FALSE
  559. HAVE_TIMEGETTIME_TRUE
  560. HAVE_POLL_FALSE
  561. HAVE_POLL_TRUE
  562. HAVE_MACH_ABSOLUTE_TIME_FALSE
  563. HAVE_MACH_ABSOLUTE_TIME_TRUE
  564. HAVE_DAEMON_FALSE
  565. HAVE_DAEMON_TRUE
  566. HAVE_TIMEGM_FALSE
  567. HAVE_TIMEGM_TRUE
  568. HAVE_STRPTIME_FALSE
  569. HAVE_STRPTIME_TRUE
  570. HAVE_LOCALTIME_R_FALSE
  571. HAVE_LOCALTIME_R_TRUE
  572. HAVE_INET_ATON_FALSE
  573. HAVE_INET_ATON_TRUE
  574. HAVE_GETTIMEOFDAY_FALSE
  575. HAVE_GETTIMEOFDAY_TRUE
  576. HAVE_GETADDRINFO_FALSE
  577. HAVE_GETADDRINFO_TRUE
  578. HAVE_GAI_STRERROR_FALSE
  579. HAVE_GAI_STRERROR_TRUE
  580. HAVE_BASENAME_FALSE
  581. HAVE_BASENAME_TRUE
  582. HAVE_ASCTIME_R_FALSE
  583. HAVE_ASCTIME_R_TRUE
  584. HAVE_POSIX_FALLOCATE_FALSE
  585. HAVE_POSIX_FALLOCATE_TRUE
  586. HAVE_EPOLL_FALSE
  587. HAVE_EPOLL_TRUE
  588. POW_LIB
  589. LIBOBJS
  590. POSUB
  591. LTLIBINTL
  592. LIBINTL
  593. INTLLIBS
  594. INTL_LIBTOOL_SUFFIX_PREFIX
  595. INTLOBJS
  596. GENCAT
  597. INSTOBJEXT
  598. DATADIRNAME
  599. CATOBJEXT
  600. USE_INCLUDED_LIBINTL
  601. BUILD_INCLUDED_LIBINTL
  602. LTLIBC
  603. WINDRES
  604. WOE32
  605. WOE32DLL
  606. HAVE_WPRINTF
  607. HAVE_SNPRINTF
  608. HAVE_ASPRINTF
  609. HAVE_POSIX_PRINTF
  610. INTL_MACOSX_LIBS
  611. GLIBC21
  612. INTLBISON
  613. LTLIBICONV
  614. LIBICONV
  615. LTLIBMULTITHREAD
  616. LIBMULTITHREAD
  617. LTLIBTHREAD
  618. LIBTHREAD
  619. LIBPTH_PREFIX
  620. LTLIBPTH
  621. LIBPTH
  622. PRI_MACROS_BROKEN
  623. HAVE_VISIBILITY
  624. CFLAG_VISIBILITY
  625. GLIBC2
  626. XGETTEXT_EXTRA_OPTIONS
  627. MSGMERGE
  628. XGETTEXT_015
  629. XGETTEXT
  630. GMSGFMT_015
  631. MSGFMT_015
  632. GMSGFMT
  633. MSGFMT
  634. GETTEXT_MACRO_VERSION
  635. USE_NLS
  636. ALLOCA
  637. HAVE_SQLITE3_FALSE
  638. HAVE_SQLITE3_TRUE
  639. HAVE_LIBZ_FALSE
  640. HAVE_LIBZ_TRUE
  641. ENABLE_ASYNC_DNS_FALSE
  642. ENABLE_ASYNC_DNS_TRUE
  643. HAVE_LIBEXPAT_FALSE
  644. HAVE_LIBEXPAT_TRUE
  645. HAVE_LIBXML2_FALSE
  646. HAVE_LIBXML2_TRUE
  647. ENABLE_XML_RPC_FALSE
  648. ENABLE_XML_RPC_TRUE
  649. ENABLE_METALINK_LIBEXPAT_FALSE
  650. ENABLE_METALINK_LIBEXPAT_TRUE
  651. ENABLE_METALINK_LIBXML2_FALSE
  652. ENABLE_METALINK_LIBXML2_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_METALINK_TRUE
  655. ENABLE_BITTORRENT_FALSE
  656. ENABLE_BITTORRENT_TRUE
  657. ENABLE_MESSAGE_DIGEST_FALSE
  658. ENABLE_MESSAGE_DIGEST_TRUE
  659. HAVE_LIBSSL_FALSE
  660. HAVE_LIBSSL_TRUE
  661. HAVE_LIBGNUTLS_FALSE
  662. HAVE_LIBGNUTLS_TRUE
  663. ca_bundle
  664. ENABLE_SSL_FALSE
  665. ENABLE_SSL_TRUE
  666. LIBZ_CPPFLAGS
  667. LIBZ_LIBS
  668. LIBCARES_CPPFLAGS
  669. LIBCARES_LIBS
  670. OPENSSL_CFLAGS
  671. OPENSSL_LIBS
  672. LIBGCRYPT_LIBS
  673. LIBGCRYPT_CFLAGS
  674. LIBGCRYPT_CONFIG
  675. LIBGNUTLS_CONFIG
  676. LIBGNUTLS_LIBS
  677. LIBGNUTLS_CFLAGS
  678. SQLITE3_LIBS
  679. SQLITE3_CFLAGS
  680. LIBEXPAT_CPPFLAGS
  681. LIBEXPAT_LIBS
  682. XML_LIBS
  683. XML_CPPFLAGS
  684. XML2_CONFIG
  685. PKG_CONFIG_LIBDIR
  686. PKG_CONFIG_PATH
  687. PKG_CONFIG
  688. EGREP
  689. GREP
  690. CXXCPP
  691. YFLAGS
  692. YACC
  693. RANLIB
  694. am__fastdepCC_FALSE
  695. am__fastdepCC_TRUE
  696. CCDEPMODE
  697. ac_ct_CC
  698. CFLAGS
  699. CC
  700. am__fastdepCXX_FALSE
  701. am__fastdepCXX_TRUE
  702. CXXDEPMODE
  703. AMDEPBACKSLASH
  704. AMDEP_FALSE
  705. AMDEP_TRUE
  706. am__quote
  707. am__include
  708. DEPDIR
  709. OBJEXT
  710. EXEEXT
  711. ac_ct_CXX
  712. CPPFLAGS
  713. LDFLAGS
  714. CXXFLAGS
  715. CXX
  716. WINSOCK_LIBS
  717. CPPUNIT_LIBS
  718. CPPUNIT_CFLAGS
  719. CPPUNIT_CONFIG
  720. am__untar
  721. am__tar
  722. AMTAR
  723. am__leading_dot
  724. SET_MAKE
  725. AWK
  726. mkdir_p
  727. MKDIR_P
  728. INSTALL_STRIP_PROGRAM
  729. STRIP
  730. install_sh
  731. MAKEINFO
  732. AUTOHEADER
  733. AUTOMAKE
  734. AUTOCONF
  735. ACLOCAL
  736. VERSION
  737. PACKAGE
  738. CYGPATH_W
  739. am__isrc
  740. INSTALL_DATA
  741. INSTALL_SCRIPT
  742. INSTALL_PROGRAM
  743. target_os
  744. target_vendor
  745. target_cpu
  746. target
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. target_alias
  756. host_alias
  757. build_alias
  758. LIBS
  759. ECHO_T
  760. ECHO_N
  761. ECHO_C
  762. DEFS
  763. mandir
  764. localedir
  765. libdir
  766. psdir
  767. pdfdir
  768. dvidir
  769. htmldir
  770. infodir
  771. docdir
  772. oldincludedir
  773. includedir
  774. localstatedir
  775. sharedstatedir
  776. sysconfdir
  777. datadir
  778. datarootdir
  779. libexecdir
  780. sbindir
  781. bindir
  782. program_transform_name
  783. prefix
  784. exec_prefix
  785. PACKAGE_URL
  786. PACKAGE_BUGREPORT
  787. PACKAGE_STRING
  788. PACKAGE_VERSION
  789. PACKAGE_TARNAME
  790. PACKAGE_NAME
  791. PATH_SEPARATOR
  792. SHELL'
  793. ac_subst_files=''
  794. ac_user_opts='
  795. enable_option_checking
  796. with_cppunit_prefix
  797. with_cppunit_exec_prefix
  798. with_gnutls
  799. with_openssl
  800. with_sqlite3
  801. with_libxml2
  802. with_libexpat
  803. with_libcares
  804. with_libz
  805. enable_bittorrent
  806. enable_metalink
  807. enable_epoll
  808. with_ca_bundle
  809. enable_dependency_tracking
  810. with_xml_prefix
  811. with_xml_exec_prefix
  812. enable_xmltest
  813. with_libexpat_prefix
  814. with_sqlite3_prefix
  815. with_libgnutls_prefix
  816. with_libgcrypt_prefix
  817. with_openssl_prefix
  818. with_libcares_prefix
  819. with_libz_prefix
  820. enable_largefile
  821. enable_nls
  822. enable_threads
  823. with_gnu_ld
  824. enable_rpath
  825. with_libpth_prefix
  826. with_libiconv_prefix
  827. with_included_gettext
  828. with_libintl_prefix
  829. '
  830. ac_precious_vars='build_alias
  831. host_alias
  832. target_alias
  833. CXX
  834. CXXFLAGS
  835. LDFLAGS
  836. LIBS
  837. CPPFLAGS
  838. CCC
  839. CC
  840. CFLAGS
  841. YACC
  842. YFLAGS
  843. CXXCPP
  844. PKG_CONFIG
  845. PKG_CONFIG_PATH
  846. PKG_CONFIG_LIBDIR
  847. SQLITE3_CFLAGS
  848. SQLITE3_LIBS
  849. LIBGNUTLS_CFLAGS
  850. LIBGNUTLS_LIBS'
  851. # Initialize some variables set by options.
  852. ac_init_help=
  853. ac_init_version=false
  854. ac_unrecognized_opts=
  855. ac_unrecognized_sep=
  856. # The variables have the same names as the options, with
  857. # dashes changed to underlines.
  858. cache_file=/dev/null
  859. exec_prefix=NONE
  860. no_create=
  861. no_recursion=
  862. prefix=NONE
  863. program_prefix=NONE
  864. program_suffix=NONE
  865. program_transform_name=s,x,x,
  866. silent=
  867. site=
  868. srcdir=
  869. verbose=
  870. x_includes=NONE
  871. x_libraries=NONE
  872. # Installation directory options.
  873. # These are left unexpanded so users can "make install exec_prefix=/foo"
  874. # and all the variables that are supposed to be based on exec_prefix
  875. # by default will actually change.
  876. # Use braces instead of parens because sh, perl, etc. also accept them.
  877. # (The list follows the same order as the GNU Coding Standards.)
  878. bindir='${exec_prefix}/bin'
  879. sbindir='${exec_prefix}/sbin'
  880. libexecdir='${exec_prefix}/libexec'
  881. datarootdir='${prefix}/share'
  882. datadir='${datarootdir}'
  883. sysconfdir='${prefix}/etc'
  884. sharedstatedir='${prefix}/com'
  885. localstatedir='${prefix}/var'
  886. includedir='${prefix}/include'
  887. oldincludedir='/usr/include'
  888. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  889. infodir='${datarootdir}/info'
  890. htmldir='${docdir}'
  891. dvidir='${docdir}'
  892. pdfdir='${docdir}'
  893. psdir='${docdir}'
  894. libdir='${exec_prefix}/lib'
  895. localedir='${datarootdir}/locale'
  896. mandir='${datarootdir}/man'
  897. ac_prev=
  898. ac_dashdash=
  899. for ac_option
  900. do
  901. # If the previous option needs an argument, assign it.
  902. if test -n "$ac_prev"; then
  903. eval $ac_prev=\$ac_option
  904. ac_prev=
  905. continue
  906. fi
  907. case $ac_option in
  908. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *) ac_optarg=yes ;;
  910. esac
  911. # Accept the important Cygnus configure options, so we can diagnose typos.
  912. case $ac_dashdash$ac_option in
  913. --)
  914. ac_dashdash=yes ;;
  915. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  916. ac_prev=bindir ;;
  917. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  918. bindir=$ac_optarg ;;
  919. -build | --build | --buil | --bui | --bu)
  920. ac_prev=build_alias ;;
  921. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  922. build_alias=$ac_optarg ;;
  923. -cache-file | --cache-file | --cache-fil | --cache-fi \
  924. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  925. ac_prev=cache_file ;;
  926. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  927. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  928. cache_file=$ac_optarg ;;
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. -datadir | --datadir | --datadi | --datad)
  932. ac_prev=datadir ;;
  933. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  934. datadir=$ac_optarg ;;
  935. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  936. | --dataroo | --dataro | --datar)
  937. ac_prev=datarootdir ;;
  938. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  939. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  940. datarootdir=$ac_optarg ;;
  941. -disable-* | --disable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. as_fn_error "invalid feature name: $ac_useropt"
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=no ;;
  956. -docdir | --docdir | --docdi | --doc | --do)
  957. ac_prev=docdir ;;
  958. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959. docdir=$ac_optarg ;;
  960. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  961. ac_prev=dvidir ;;
  962. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  963. dvidir=$ac_optarg ;;
  964. -enable-* | --enable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error "invalid feature name: $ac_useropt"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=\$ac_optarg ;;
  979. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  980. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  981. | --exec | --exe | --ex)
  982. ac_prev=exec_prefix ;;
  983. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  984. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  985. | --exec=* | --exe=* | --ex=*)
  986. exec_prefix=$ac_optarg ;;
  987. -gas | --gas | --ga | --g)
  988. # Obsolete; use --with-gas.
  989. with_gas=yes ;;
  990. -help | --help | --hel | --he | -h)
  991. ac_init_help=long ;;
  992. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  993. ac_init_help=recursive ;;
  994. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  995. ac_init_help=short ;;
  996. -host | --host | --hos | --ho)
  997. ac_prev=host_alias ;;
  998. -host=* | --host=* | --hos=* | --ho=*)
  999. host_alias=$ac_optarg ;;
  1000. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1001. ac_prev=htmldir ;;
  1002. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1003. | --ht=*)
  1004. htmldir=$ac_optarg ;;
  1005. -includedir | --includedir | --includedi | --included | --include \
  1006. | --includ | --inclu | --incl | --inc)
  1007. ac_prev=includedir ;;
  1008. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1009. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1010. includedir=$ac_optarg ;;
  1011. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1012. ac_prev=infodir ;;
  1013. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1014. infodir=$ac_optarg ;;
  1015. -libdir | --libdir | --libdi | --libd)
  1016. ac_prev=libdir ;;
  1017. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1018. libdir=$ac_optarg ;;
  1019. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020. | --libexe | --libex | --libe)
  1021. ac_prev=libexecdir ;;
  1022. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023. | --libexe=* | --libex=* | --libe=*)
  1024. libexecdir=$ac_optarg ;;
  1025. -localedir | --localedir | --localedi | --localed | --locale)
  1026. ac_prev=localedir ;;
  1027. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1028. localedir=$ac_optarg ;;
  1029. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1030. | --localstate | --localstat | --localsta | --localst | --locals)
  1031. ac_prev=localstatedir ;;
  1032. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1033. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1034. localstatedir=$ac_optarg ;;
  1035. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1036. ac_prev=mandir ;;
  1037. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1038. mandir=$ac_optarg ;;
  1039. -nfp | --nfp | --nf)
  1040. # Obsolete; use --without-fp.
  1041. with_fp=no ;;
  1042. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043. | --no-cr | --no-c | -n)
  1044. no_create=yes ;;
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1049. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1050. | --oldin | --oldi | --old | --ol | --o)
  1051. ac_prev=oldincludedir ;;
  1052. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1053. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1054. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1055. oldincludedir=$ac_optarg ;;
  1056. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1057. ac_prev=prefix ;;
  1058. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1059. prefix=$ac_optarg ;;
  1060. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1061. | --program-pre | --program-pr | --program-p)
  1062. ac_prev=program_prefix ;;
  1063. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1064. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1065. program_prefix=$ac_optarg ;;
  1066. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1067. | --program-suf | --program-su | --program-s)
  1068. ac_prev=program_suffix ;;
  1069. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1070. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1071. program_suffix=$ac_optarg ;;
  1072. -program-transform-name | --program-transform-name \
  1073. | --program-transform-nam | --program-transform-na \
  1074. | --program-transform-n | --program-transform- \
  1075. | --program-transform | --program-transfor \
  1076. | --program-transfo | --program-transf \
  1077. | --program-trans | --program-tran \
  1078. | --progr-tra | --program-tr | --program-t)
  1079. ac_prev=program_transform_name ;;
  1080. -program-transform-name=* | --program-transform-name=* \
  1081. | --program-transform-nam=* | --program-transform-na=* \
  1082. | --program-transform-n=* | --program-transform-=* \
  1083. | --program-transform=* | --program-transfor=* \
  1084. | --program-transfo=* | --program-transf=* \
  1085. | --program-trans=* | --program-tran=* \
  1086. | --progr-tra=* | --program-tr=* | --program-t=*)
  1087. program_transform_name=$ac_optarg ;;
  1088. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1089. ac_prev=pdfdir ;;
  1090. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1091. pdfdir=$ac_optarg ;;
  1092. -psdir | --psdir | --psdi | --psd | --ps)
  1093. ac_prev=psdir ;;
  1094. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1095. psdir=$ac_optarg ;;
  1096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1097. | -silent | --silent | --silen | --sile | --sil)
  1098. silent=yes ;;
  1099. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1100. ac_prev=sbindir ;;
  1101. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1102. | --sbi=* | --sb=*)
  1103. sbindir=$ac_optarg ;;
  1104. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1105. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1106. | --sharedst | --shareds | --shared | --share | --shar \
  1107. | --sha | --sh)
  1108. ac_prev=sharedstatedir ;;
  1109. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1110. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1111. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1112. | --sha=* | --sh=*)
  1113. sharedstatedir=$ac_optarg ;;
  1114. -site | --site | --sit)
  1115. ac_prev=site ;;
  1116. -site=* | --site=* | --sit=*)
  1117. site=$ac_optarg ;;
  1118. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1119. ac_prev=srcdir ;;
  1120. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1121. srcdir=$ac_optarg ;;
  1122. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1123. | --syscon | --sysco | --sysc | --sys | --sy)
  1124. ac_prev=sysconfdir ;;
  1125. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1126. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1127. sysconfdir=$ac_optarg ;;
  1128. -target | --target | --targe | --targ | --tar | --ta | --t)
  1129. ac_prev=target_alias ;;
  1130. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1131. target_alias=$ac_optarg ;;
  1132. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1133. verbose=yes ;;
  1134. -version | --version | --versio | --versi | --vers | -V)
  1135. ac_init_version=: ;;
  1136. -with-* | --with-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. as_fn_error "invalid package name: $ac_useropt"
  1141. ac_useropt_orig=$ac_useropt
  1142. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1143. case $ac_user_opts in
  1144. *"
  1145. "with_$ac_useropt"
  1146. "*) ;;
  1147. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1148. ac_unrecognized_sep=', ';;
  1149. esac
  1150. eval with_$ac_useropt=\$ac_optarg ;;
  1151. -without-* | --without-*)
  1152. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1153. # Reject names that are not valid shell variable names.
  1154. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1155. as_fn_error "invalid package name: $ac_useropt"
  1156. ac_useropt_orig=$ac_useropt
  1157. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1158. case $ac_user_opts in
  1159. *"
  1160. "with_$ac_useropt"
  1161. "*) ;;
  1162. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1163. ac_unrecognized_sep=', ';;
  1164. esac
  1165. eval with_$ac_useropt=no ;;
  1166. --x)
  1167. # Obsolete; use --with-x.
  1168. with_x=yes ;;
  1169. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1170. | --x-incl | --x-inc | --x-in | --x-i)
  1171. ac_prev=x_includes ;;
  1172. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1173. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1174. x_includes=$ac_optarg ;;
  1175. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1176. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1177. ac_prev=x_libraries ;;
  1178. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1179. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1180. x_libraries=$ac_optarg ;;
  1181. -*) as_fn_error "unrecognized option: \`$ac_option'
  1182. Try \`$0 --help' for more information."
  1183. ;;
  1184. *=*)
  1185. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1186. # Reject names that are not valid shell variable names.
  1187. case $ac_envvar in #(
  1188. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1189. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1190. esac
  1191. eval $ac_envvar=\$ac_optarg
  1192. export $ac_envvar ;;
  1193. *)
  1194. # FIXME: should be removed in autoconf 3.0.
  1195. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1196. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1197. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1198. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1199. ;;
  1200. esac
  1201. done
  1202. if test -n "$ac_prev"; then
  1203. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1204. as_fn_error "missing argument to $ac_option"
  1205. fi
  1206. if test -n "$ac_unrecognized_opts"; then
  1207. case $enable_option_checking in
  1208. no) ;;
  1209. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1210. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1211. esac
  1212. fi
  1213. # Check all directory arguments for consistency.
  1214. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1215. datadir sysconfdir sharedstatedir localstatedir includedir \
  1216. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1217. libdir localedir mandir
  1218. do
  1219. eval ac_val=\$$ac_var
  1220. # Remove trailing slashes.
  1221. case $ac_val in
  1222. */ )
  1223. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1224. eval $ac_var=\$ac_val;;
  1225. esac
  1226. # Be sure to have absolute directory names.
  1227. case $ac_val in
  1228. [\\/$]* | ?:[\\/]* ) continue;;
  1229. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1230. esac
  1231. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1232. done
  1233. # There might be people who depend on the old broken behavior: `$host'
  1234. # used to hold the argument of --host etc.
  1235. # FIXME: To remove some day.
  1236. build=$build_alias
  1237. host=$host_alias
  1238. target=$target_alias
  1239. # FIXME: To remove some day.
  1240. if test "x$host_alias" != x; then
  1241. if test "x$build_alias" = x; then
  1242. cross_compiling=maybe
  1243. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1244. If a cross compiler is detected then cross compile mode will be used." >&2
  1245. elif test "x$build_alias" != "x$host_alias"; then
  1246. cross_compiling=yes
  1247. fi
  1248. fi
  1249. ac_tool_prefix=
  1250. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1251. test "$silent" = yes && exec 6>/dev/null
  1252. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1253. ac_ls_di=`ls -di .` &&
  1254. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1255. as_fn_error "working directory cannot be determined"
  1256. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1257. as_fn_error "pwd does not report name of working directory"
  1258. # Find the source files, if location was not specified.
  1259. if test -z "$srcdir"; then
  1260. ac_srcdir_defaulted=yes
  1261. # Try the directory containing this script, then the parent directory.
  1262. ac_confdir=`$as_dirname -- "$as_myself" ||
  1263. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1264. X"$as_myself" : 'X\(//\)[^/]' \| \
  1265. X"$as_myself" : 'X\(//\)$' \| \
  1266. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1267. $as_echo X"$as_myself" |
  1268. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\/\)[^/].*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. /^X\(\/\/\)$/{
  1277. s//\1/
  1278. q
  1279. }
  1280. /^X\(\/\).*/{
  1281. s//\1/
  1282. q
  1283. }
  1284. s/.*/./; q'`
  1285. srcdir=$ac_confdir
  1286. if test ! -r "$srcdir/$ac_unique_file"; then
  1287. srcdir=..
  1288. fi
  1289. else
  1290. ac_srcdir_defaulted=no
  1291. fi
  1292. if test ! -r "$srcdir/$ac_unique_file"; then
  1293. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1294. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1295. fi
  1296. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1297. ac_abs_confdir=`(
  1298. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1299. pwd)`
  1300. # When building in place, set srcdir=.
  1301. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1302. srcdir=.
  1303. fi
  1304. # Remove unnecessary trailing slashes from srcdir.
  1305. # Double slashes in file names in object file debugging info
  1306. # mess up M-x gdb in Emacs.
  1307. case $srcdir in
  1308. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1309. esac
  1310. for ac_var in $ac_precious_vars; do
  1311. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1312. eval ac_env_${ac_var}_value=\$${ac_var}
  1313. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1314. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1315. done
  1316. #
  1317. # Report the --help message.
  1318. #
  1319. if test "$ac_init_help" = "long"; then
  1320. # Omit some internal or obsolete options to make the list less imposing.
  1321. # This message is too long to be a string in the A/UX 3.1 sh.
  1322. cat <<_ACEOF
  1323. \`configure' configures aria2 1.9.4 to adapt to many kinds of systems.
  1324. Usage: $0 [OPTION]... [VAR=VALUE]...
  1325. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1326. VAR=VALUE. See below for descriptions of some of the useful variables.
  1327. Defaults for the options are specified in brackets.
  1328. Configuration:
  1329. -h, --help display this help and exit
  1330. --help=short display options specific to this package
  1331. --help=recursive display the short help of all the included packages
  1332. -V, --version display version information and exit
  1333. -q, --quiet, --silent do not print \`checking...' messages
  1334. --cache-file=FILE cache test results in FILE [disabled]
  1335. -C, --config-cache alias for \`--cache-file=config.cache'
  1336. -n, --no-create do not create output files
  1337. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1338. Installation directories:
  1339. --prefix=PREFIX install architecture-independent files in PREFIX
  1340. [$ac_default_prefix]
  1341. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1342. [PREFIX]
  1343. By default, \`make install' will install all the files in
  1344. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1345. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1346. for instance \`--prefix=\$HOME'.
  1347. For better control, use the options below.
  1348. Fine tuning of the installation directories:
  1349. --bindir=DIR user executables [EPREFIX/bin]
  1350. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1351. --libexecdir=DIR program executables [EPREFIX/libexec]
  1352. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1353. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1354. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1355. --libdir=DIR object code libraries [EPREFIX/lib]
  1356. --includedir=DIR C header files [PREFIX/include]
  1357. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1358. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1359. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1360. --infodir=DIR info documentation [DATAROOTDIR/info]
  1361. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1362. --mandir=DIR man documentation [DATAROOTDIR/man]
  1363. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1364. --htmldir=DIR html documentation [DOCDIR]
  1365. --dvidir=DIR dvi documentation [DOCDIR]
  1366. --pdfdir=DIR pdf documentation [DOCDIR]
  1367. --psdir=DIR ps documentation [DOCDIR]
  1368. _ACEOF
  1369. cat <<\_ACEOF
  1370. Program names:
  1371. --program-prefix=PREFIX prepend PREFIX to installed program names
  1372. --program-suffix=SUFFIX append SUFFIX to installed program names
  1373. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1374. System types:
  1375. --build=BUILD configure for building on BUILD [guessed]
  1376. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1377. --target=TARGET configure for building compilers for TARGET [HOST]
  1378. _ACEOF
  1379. fi
  1380. if test -n "$ac_init_help"; then
  1381. case $ac_init_help in
  1382. short | recursive ) echo "Configuration of aria2 1.9.4:";;
  1383. esac
  1384. cat <<\_ACEOF
  1385. Optional Features:
  1386. --disable-option-checking ignore unrecognized --enable/--with options
  1387. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1388. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1389. --enable-bittorrent Enable bittorrent support.
  1390. --enable-metalink Enable metalink support.
  1391. --enable-epoll Enable epoll support.
  1392. --disable-dependency-tracking speeds up one-time build
  1393. --enable-dependency-tracking do not reject slow dependency extractors
  1394. --disable-xmltest Do not try to compile and run a test LIBXML program
  1395. --disable-largefile omit support for large files
  1396. --disable-nls do not use Native Language Support
  1397. --enable-threads={posix|solaris|pth|win32}
  1398. specify multithreading API
  1399. --disable-threads build without multithread safety
  1400. --disable-rpath do not hardcode runtime library paths
  1401. Optional Packages:
  1402. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1403. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1404. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1405. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1406. --with-gnutls Use gnutls if it is installed.
  1407. --with-openssl Use openssl if it is installed.
  1408. --with-sqlite3 Use sqlite3 if it is installed.
  1409. --with-libxml2 Use libxml2 if it is installed.
  1410. --with-libexpat Use libexpat if it is installed.
  1411. --with-libcares Use libcares if it is installed.
  1412. --with-libz Use libz if it is installed.
  1413. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1414. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1415. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1416. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1417. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1418. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1419. --with-libgcrypt-prefix=PFX
  1420. prefix where LIBGCRYPT is installed (optional)
  1421. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1422. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1423. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1424. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1425. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1426. --without-libpth-prefix don't search for libpth in includedir and libdir
  1427. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1428. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1429. --with-included-gettext use the GNU gettext library included here
  1430. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1431. --without-libintl-prefix don't search for libintl in includedir and libdir
  1432. Some influential environment variables:
  1433. CXX C++ compiler command
  1434. CXXFLAGS C++ compiler flags
  1435. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1436. nonstandard directory <lib dir>
  1437. LIBS libraries to pass to the linker, e.g. -l<library>
  1438. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1439. you have headers in a nonstandard directory <include dir>
  1440. CC C compiler command
  1441. CFLAGS C compiler flags
  1442. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1443. the first program found out of: `bison -y', `byacc', `yacc'.
  1444. YFLAGS The list of arguments that will be passed by default to $YACC.
  1445. This script will default YFLAGS to the empty string to avoid a
  1446. default value of `-d' given by some make applications.
  1447. CXXCPP C++ preprocessor
  1448. PKG_CONFIG path to pkg-config utility
  1449. PKG_CONFIG_PATH
  1450. directories to add to pkg-config's search path
  1451. PKG_CONFIG_LIBDIR
  1452. path overriding pkg-config's built-in search path
  1453. SQLITE3_CFLAGS
  1454. C compiler flags for SQLITE3, overriding pkg-config
  1455. SQLITE3_LIBS
  1456. linker flags for SQLITE3, overriding pkg-config
  1457. LIBGNUTLS_CFLAGS
  1458. C compiler flags for LIBGNUTLS, overriding pkg-config
  1459. LIBGNUTLS_LIBS
  1460. linker flags for LIBGNUTLS, overriding pkg-config
  1461. Use these variables to override the choices made by `configure' or to help
  1462. it to find libraries and programs with nonstandard names/locations.
  1463. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1464. aria2 home page: <http://aria2.sourceforge.net/>.
  1465. _ACEOF
  1466. ac_status=$?
  1467. fi
  1468. if test "$ac_init_help" = "recursive"; then
  1469. # If there are subdirs, report their specific --help.
  1470. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1471. test -d "$ac_dir" ||
  1472. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1473. continue
  1474. ac_builddir=.
  1475. case "$ac_dir" in
  1476. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1477. *)
  1478. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1479. # A ".." for each directory in $ac_dir_suffix.
  1480. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1481. case $ac_top_builddir_sub in
  1482. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1483. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1484. esac ;;
  1485. esac
  1486. ac_abs_top_builddir=$ac_pwd
  1487. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1488. # for backward compatibility:
  1489. ac_top_builddir=$ac_top_build_prefix
  1490. case $srcdir in
  1491. .) # We are building in place.
  1492. ac_srcdir=.
  1493. ac_top_srcdir=$ac_top_builddir_sub
  1494. ac_abs_top_srcdir=$ac_pwd ;;
  1495. [\\/]* | ?:[\\/]* ) # Absolute name.
  1496. ac_srcdir=$srcdir$ac_dir_suffix;
  1497. ac_top_srcdir=$srcdir
  1498. ac_abs_top_srcdir=$srcdir ;;
  1499. *) # Relative name.
  1500. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1501. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1502. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1503. esac
  1504. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1505. cd "$ac_dir" || { ac_status=$?; continue; }
  1506. # Check for guested configure.
  1507. if test -f "$ac_srcdir/configure.gnu"; then
  1508. echo &&
  1509. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1510. elif test -f "$ac_srcdir/configure"; then
  1511. echo &&
  1512. $SHELL "$ac_srcdir/configure" --help=recursive
  1513. else
  1514. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1515. fi || ac_status=$?
  1516. cd "$ac_pwd" || { ac_status=$?; break; }
  1517. done
  1518. fi
  1519. test -n "$ac_init_help" && exit $ac_status
  1520. if $ac_init_version; then
  1521. cat <<\_ACEOF
  1522. aria2 configure 1.9.4
  1523. generated by GNU Autoconf 2.65
  1524. Copyright (C) 2009 Free Software Foundation, Inc.
  1525. This configure script is free software; the Free Software Foundation
  1526. gives unlimited permission to copy, distribute and modify it.
  1527. _ACEOF
  1528. exit
  1529. fi
  1530. ## ------------------------ ##
  1531. ## Autoconf initialization. ##
  1532. ## ------------------------ ##
  1533. # ac_fn_cxx_try_compile LINENO
  1534. # ----------------------------
  1535. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_cxx_try_compile ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. rm -f conftest.$ac_objext
  1540. if { { ac_try="$ac_compile"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_compile") 2>conftest.err
  1548. ac_status=$?
  1549. if test -s conftest.err; then
  1550. grep -v '^ *+' conftest.err >conftest.er1
  1551. cat conftest.er1 >&5
  1552. mv -f conftest.er1 conftest.err
  1553. fi
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && {
  1556. test -z "$ac_cxx_werror_flag" ||
  1557. test ! -s conftest.err
  1558. } && test -s conftest.$ac_objext; then :
  1559. ac_retval=0
  1560. else
  1561. $as_echo "$as_me: failed program was:" >&5
  1562. sed 's/^/| /' conftest.$ac_ext >&5
  1563. ac_retval=1
  1564. fi
  1565. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1566. as_fn_set_status $ac_retval
  1567. } # ac_fn_cxx_try_compile
  1568. # ac_fn_c_try_compile LINENO
  1569. # --------------------------
  1570. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1571. ac_fn_c_try_compile ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. rm -f conftest.$ac_objext
  1575. if { { ac_try="$ac_compile"
  1576. case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_compile") 2>conftest.err
  1583. ac_status=$?
  1584. if test -s conftest.err; then
  1585. grep -v '^ *+' conftest.err >conftest.er1
  1586. cat conftest.er1 >&5
  1587. mv -f conftest.er1 conftest.err
  1588. fi
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && {
  1591. test -z "$ac_c_werror_flag" ||
  1592. test ! -s conftest.err
  1593. } && test -s conftest.$ac_objext; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_compile
  1603. # ac_fn_cxx_try_cpp LINENO
  1604. # ------------------------
  1605. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1606. ac_fn_cxx_try_cpp ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } >/dev/null && {
  1625. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1626. test ! -s conftest.err
  1627. }; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1635. as_fn_set_status $ac_retval
  1636. } # ac_fn_cxx_try_cpp
  1637. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1638. # ---------------------------------------------------------
  1639. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1640. # the include files in INCLUDES and setting the cache variable VAR
  1641. # accordingly.
  1642. ac_fn_cxx_check_header_mongrel ()
  1643. {
  1644. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1645. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1647. $as_echo_n "checking for $2... " >&6; }
  1648. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1649. $as_echo_n "(cached) " >&6
  1650. fi
  1651. eval ac_res=\$$3
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1653. $as_echo "$ac_res" >&6; }
  1654. else
  1655. # Is the header compilable?
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1657. $as_echo_n "checking $2 usability... " >&6; }
  1658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. /* end confdefs.h. */
  1660. $4
  1661. #include <$2>
  1662. _ACEOF
  1663. if ac_fn_cxx_try_compile "$LINENO"; then :
  1664. ac_header_compiler=yes
  1665. else
  1666. ac_header_compiler=no
  1667. fi
  1668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1670. $as_echo "$ac_header_compiler" >&6; }
  1671. # Is the header present?
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1673. $as_echo_n "checking $2 presence... " >&6; }
  1674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1675. /* end confdefs.h. */
  1676. #include <$2>
  1677. _ACEOF
  1678. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1679. ac_header_preproc=yes
  1680. else
  1681. ac_header_preproc=no
  1682. fi
  1683. rm -f conftest.err conftest.$ac_ext
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1685. $as_echo "$ac_header_preproc" >&6; }
  1686. # So? What about this header?
  1687. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1688. yes:no: )
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1690. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1692. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1693. ;;
  1694. no:yes:* )
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1696. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1698. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1700. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1702. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1704. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1705. ( cat <<\_ASBOX
  1706. ## ----------------------------------------------- ##
  1707. ## Report this to t-tujikawa@users.sourceforge.net ##
  1708. ## ----------------------------------------------- ##
  1709. _ASBOX
  1710. ) | sed "s/^/$as_me: WARNING: /" >&2
  1711. ;;
  1712. esac
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1714. $as_echo_n "checking for $2... " >&6; }
  1715. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1716. $as_echo_n "(cached) " >&6
  1717. else
  1718. eval "$3=\$ac_header_compiler"
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. fi
  1724. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1725. } # ac_fn_cxx_check_header_mongrel
  1726. # ac_fn_cxx_try_run LINENO
  1727. # ------------------------
  1728. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1729. # that executables *can* be run.
  1730. ac_fn_cxx_try_run ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. if { { ac_try="$ac_link"
  1734. case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1739. $as_echo "$ac_try_echo"; } >&5
  1740. (eval "$ac_link") 2>&5
  1741. ac_status=$?
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1744. { { case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_try") 2>&5
  1751. ac_status=$?
  1752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1753. test $ac_status = 0; }; }; then :
  1754. ac_retval=0
  1755. else
  1756. $as_echo "$as_me: program exited with status $ac_status" >&5
  1757. $as_echo "$as_me: failed program was:" >&5
  1758. sed 's/^/| /' conftest.$ac_ext >&5
  1759. ac_retval=$ac_status
  1760. fi
  1761. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1762. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1763. as_fn_set_status $ac_retval
  1764. } # ac_fn_cxx_try_run
  1765. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1766. # ---------------------------------------------------------
  1767. # Tests whether HEADER exists and can be compiled using the include files in
  1768. # INCLUDES, setting the cache variable VAR accordingly.
  1769. ac_fn_cxx_check_header_compile ()
  1770. {
  1771. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1773. $as_echo_n "checking for $2... " >&6; }
  1774. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1775. $as_echo_n "(cached) " >&6
  1776. else
  1777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. $4
  1780. #include <$2>
  1781. _ACEOF
  1782. if ac_fn_cxx_try_compile "$LINENO"; then :
  1783. eval "$3=yes"
  1784. else
  1785. eval "$3=no"
  1786. fi
  1787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1788. fi
  1789. eval ac_res=\$$3
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1791. $as_echo "$ac_res" >&6; }
  1792. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1793. } # ac_fn_cxx_check_header_compile
  1794. # ac_fn_cxx_try_link LINENO
  1795. # -------------------------
  1796. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1797. ac_fn_cxx_try_link ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. rm -f conftest.$ac_objext conftest$ac_exeext
  1801. if { { ac_try="$ac_link"
  1802. case "(($ac_try" in
  1803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1804. *) ac_try_echo=$ac_try;;
  1805. esac
  1806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1807. $as_echo "$ac_try_echo"; } >&5
  1808. (eval "$ac_link") 2>conftest.err
  1809. ac_status=$?
  1810. if test -s conftest.err; then
  1811. grep -v '^ *+' conftest.err >conftest.er1
  1812. cat conftest.er1 >&5
  1813. mv -f conftest.er1 conftest.err
  1814. fi
  1815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1816. test $ac_status = 0; } && {
  1817. test -z "$ac_cxx_werror_flag" ||
  1818. test ! -s conftest.err
  1819. } && test -s conftest$ac_exeext && {
  1820. test "$cross_compiling" = yes ||
  1821. $as_test_x conftest$ac_exeext
  1822. }; then :
  1823. ac_retval=0
  1824. else
  1825. $as_echo "$as_me: failed program was:" >&5
  1826. sed 's/^/| /' conftest.$ac_ext >&5
  1827. ac_retval=1
  1828. fi
  1829. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1830. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1831. # interfere with the next link command; also delete a directory that is
  1832. # left behind by Apple's compiler. We do this before executing the actions.
  1833. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1834. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1835. as_fn_set_status $ac_retval
  1836. } # ac_fn_cxx_try_link
  1837. # ac_fn_cxx_check_func LINENO FUNC VAR
  1838. # ------------------------------------
  1839. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1840. ac_fn_cxx_check_func ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1844. $as_echo_n "checking for $2... " >&6; }
  1845. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1846. $as_echo_n "(cached) " >&6
  1847. else
  1848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1849. /* end confdefs.h. */
  1850. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1851. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1852. #define $2 innocuous_$2
  1853. /* System header to define __stub macros and hopefully few prototypes,
  1854. which can conflict with char $2 (); below.
  1855. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1856. <limits.h> exists even on freestanding compilers. */
  1857. #ifdef __STDC__
  1858. # include <limits.h>
  1859. #else
  1860. # include <assert.h>
  1861. #endif
  1862. #undef $2
  1863. /* Override any GCC internal prototype to avoid an error.
  1864. Use char because int might match the return type of a GCC
  1865. builtin and then its argument prototype would still apply. */
  1866. #ifdef __cplusplus
  1867. extern "C"
  1868. #endif
  1869. char $2 ();
  1870. /* The GNU C library defines this for functions which it implements
  1871. to always fail with ENOSYS. Some functions are actually named
  1872. something starting with __ and the normal name is an alias. */
  1873. #if defined __stub_$2 || defined __stub___$2
  1874. choke me
  1875. #endif
  1876. int
  1877. main ()
  1878. {
  1879. return $2 ();
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_cxx_try_link "$LINENO"; then :
  1885. eval "$3=yes"
  1886. else
  1887. eval "$3=no"
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext \
  1890. conftest$ac_exeext conftest.$ac_ext
  1891. fi
  1892. eval ac_res=\$$3
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1894. $as_echo "$ac_res" >&6; }
  1895. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1896. } # ac_fn_cxx_check_func
  1897. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1898. # ---------------------------------------------
  1899. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1900. # variable VAR accordingly.
  1901. ac_fn_cxx_check_type ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1905. $as_echo_n "checking for $2... " >&6; }
  1906. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1907. $as_echo_n "(cached) " >&6
  1908. else
  1909. eval "$3=no"
  1910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1911. /* end confdefs.h. */
  1912. $4
  1913. int
  1914. main ()
  1915. {
  1916. if (sizeof ($2))
  1917. return 0;
  1918. ;
  1919. return 0;
  1920. }
  1921. _ACEOF
  1922. if ac_fn_cxx_try_compile "$LINENO"; then :
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. $4
  1926. int
  1927. main ()
  1928. {
  1929. if (sizeof (($2)))
  1930. return 0;
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. if ac_fn_cxx_try_compile "$LINENO"; then :
  1936. else
  1937. eval "$3=yes"
  1938. fi
  1939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1942. fi
  1943. eval ac_res=\$$3
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1945. $as_echo "$ac_res" >&6; }
  1946. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1947. } # ac_fn_cxx_check_type
  1948. # ac_fn_c_find_intX_t LINENO BITS VAR
  1949. # -----------------------------------
  1950. # Finds a signed integer type with width BITS, setting cache variable VAR
  1951. # accordingly.
  1952. ac_fn_c_find_intX_t ()
  1953. {
  1954. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1956. $as_echo_n "checking for int$2_t... " >&6; }
  1957. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1958. $as_echo_n "(cached) " >&6
  1959. else
  1960. eval "$3=no"
  1961. # Order is important - never check a type that is potentially smaller
  1962. # than half of the expected target width.
  1963. for ac_type in int$2_t 'int' 'long int' \
  1964. 'long long int' 'short int' 'signed char'; do
  1965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1966. /* end confdefs.h. */
  1967. $ac_includes_default
  1968. enum { N = $2 / 2 - 1 };
  1969. int
  1970. main ()
  1971. {
  1972. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1973. test_array [0] = 0
  1974. ;
  1975. return 0;
  1976. }
  1977. _ACEOF
  1978. if ac_fn_cxx_try_compile "$LINENO"; then :
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $ac_includes_default
  1982. enum { N = $2 / 2 - 1 };
  1983. int
  1984. main ()
  1985. {
  1986. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1987. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1988. test_array [0] = 0
  1989. ;
  1990. return 0;
  1991. }
  1992. _ACEOF
  1993. if ac_fn_cxx_try_compile "$LINENO"; then :
  1994. else
  1995. case $ac_type in #(
  1996. int$2_t) :
  1997. eval "$3=yes" ;; #(
  1998. *) :
  1999. eval "$3=\$ac_type" ;;
  2000. esac
  2001. fi
  2002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2003. fi
  2004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2005. eval as_val=\$$3
  2006. if test "x$as_val" = x""no; then :
  2007. else
  2008. break
  2009. fi
  2010. done
  2011. fi
  2012. eval ac_res=\$$3
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2014. $as_echo "$ac_res" >&6; }
  2015. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2016. } # ac_fn_c_find_intX_t
  2017. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2018. # ------------------------------------
  2019. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2020. # accordingly.
  2021. ac_fn_c_find_uintX_t ()
  2022. {
  2023. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2025. $as_echo_n "checking for uint$2_t... " >&6; }
  2026. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2027. $as_echo_n "(cached) " >&6
  2028. else
  2029. eval "$3=no"
  2030. # Order is important - never check a type that is potentially smaller
  2031. # than half of the expected target width.
  2032. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2033. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2035. /* end confdefs.h. */
  2036. $ac_includes_default
  2037. int
  2038. main ()
  2039. {
  2040. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2041. test_array [0] = 0
  2042. ;
  2043. return 0;
  2044. }
  2045. _ACEOF
  2046. if ac_fn_cxx_try_compile "$LINENO"; then :
  2047. case $ac_type in #(
  2048. uint$2_t) :
  2049. eval "$3=yes" ;; #(
  2050. *) :
  2051. eval "$3=\$ac_type" ;;
  2052. esac
  2053. fi
  2054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2055. eval as_val=\$$3
  2056. if test "x$as_val" = x""no; then :
  2057. else
  2058. break
  2059. fi
  2060. done
  2061. fi
  2062. eval ac_res=\$$3
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2064. $as_echo "$ac_res" >&6; }
  2065. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2066. } # ac_fn_c_find_uintX_t
  2067. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2068. # ----------------------------------------------
  2069. # Tries to find the compile-time value of EXPR in a program that includes
  2070. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2071. # computed
  2072. ac_fn_cxx_compute_int ()
  2073. {
  2074. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2075. if test "$cross_compiling" = yes; then
  2076. # Depending upon the size, compute the lo and hi bounds.
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. $4
  2080. int
  2081. main ()
  2082. {
  2083. static int test_array [1 - 2 * !(($2) >= 0)];
  2084. test_array [0] = 0
  2085. ;
  2086. return 0;
  2087. }
  2088. _ACEOF
  2089. if ac_fn_cxx_try_compile "$LINENO"; then :
  2090. ac_lo=0 ac_mid=0
  2091. while :; do
  2092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093. /* end confdefs.h. */
  2094. $4
  2095. int
  2096. main ()
  2097. {
  2098. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2099. test_array [0] = 0
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. if ac_fn_cxx_try_compile "$LINENO"; then :
  2105. ac_hi=$ac_mid; break
  2106. else
  2107. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2108. if test $ac_lo -le $ac_mid; then
  2109. ac_lo= ac_hi=
  2110. break
  2111. fi
  2112. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2113. fi
  2114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2115. done
  2116. else
  2117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2118. /* end confdefs.h. */
  2119. $4
  2120. int
  2121. main ()
  2122. {
  2123. static int test_array [1 - 2 * !(($2) < 0)];
  2124. test_array [0] = 0
  2125. ;
  2126. return 0;
  2127. }
  2128. _ACEOF
  2129. if ac_fn_cxx_try_compile "$LINENO"; then :
  2130. ac_hi=-1 ac_mid=-1
  2131. while :; do
  2132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2133. /* end confdefs.h. */
  2134. $4
  2135. int
  2136. main ()
  2137. {
  2138. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2139. test_array [0] = 0
  2140. ;
  2141. return 0;
  2142. }
  2143. _ACEOF
  2144. if ac_fn_cxx_try_compile "$LINENO"; then :
  2145. ac_lo=$ac_mid; break
  2146. else
  2147. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2148. if test $ac_mid -le $ac_hi; then
  2149. ac_lo= ac_hi=
  2150. break
  2151. fi
  2152. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. done
  2156. else
  2157. ac_lo= ac_hi=
  2158. fi
  2159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2160. fi
  2161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2162. # Binary search between lo and hi bounds.
  2163. while test "x$ac_lo" != "x$ac_hi"; do
  2164. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2166. /* end confdefs.h. */
  2167. $4
  2168. int
  2169. main ()
  2170. {
  2171. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2172. test_array [0] = 0
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. if ac_fn_cxx_try_compile "$LINENO"; then :
  2178. ac_hi=$ac_mid
  2179. else
  2180. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. done
  2184. case $ac_lo in #((
  2185. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2186. '') ac_retval=1 ;;
  2187. esac
  2188. else
  2189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2190. /* end confdefs.h. */
  2191. $4
  2192. static long int longval () { return $2; }
  2193. static unsigned long int ulongval () { return $2; }
  2194. #include <stdio.h>
  2195. #include <stdlib.h>
  2196. int
  2197. main ()
  2198. {
  2199. FILE *f = fopen ("conftest.val", "w");
  2200. if (! f)
  2201. return 1;
  2202. if (($2) < 0)
  2203. {
  2204. long int i = longval ();
  2205. if (i != ($2))
  2206. return 1;
  2207. fprintf (f, "%ld", i);
  2208. }
  2209. else
  2210. {
  2211. unsigned long int i = ulongval ();
  2212. if (i != ($2))
  2213. return 1;
  2214. fprintf (f, "%lu", i);
  2215. }
  2216. /* Do not output a trailing newline, as this causes \r\n confusion
  2217. on some platforms. */
  2218. return ferror (f) || fclose (f) != 0;
  2219. ;
  2220. return 0;
  2221. }
  2222. _ACEOF
  2223. if ac_fn_cxx_try_run "$LINENO"; then :
  2224. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2225. else
  2226. ac_retval=1
  2227. fi
  2228. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2229. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2230. rm -f conftest.val
  2231. fi
  2232. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2233. as_fn_set_status $ac_retval
  2234. } # ac_fn_cxx_compute_int
  2235. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2236. # ------------------------------------------------------
  2237. # Tries to find if the field MEMBER exists in type AGGR, after including
  2238. # INCLUDES, setting cache variable VAR accordingly.
  2239. ac_fn_cxx_check_member ()
  2240. {
  2241. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2243. $as_echo_n "checking for $2.$3... " >&6; }
  2244. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2245. $as_echo_n "(cached) " >&6
  2246. else
  2247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2248. /* end confdefs.h. */
  2249. $5
  2250. int
  2251. main ()
  2252. {
  2253. static $2 ac_aggr;
  2254. if (ac_aggr.$3)
  2255. return 0;
  2256. ;
  2257. return 0;
  2258. }
  2259. _ACEOF
  2260. if ac_fn_cxx_try_compile "$LINENO"; then :
  2261. eval "$4=yes"
  2262. else
  2263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2264. /* end confdefs.h. */
  2265. $5
  2266. int
  2267. main ()
  2268. {
  2269. static $2 ac_aggr;
  2270. if (sizeof ac_aggr.$3)
  2271. return 0;
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. if ac_fn_cxx_try_compile "$LINENO"; then :
  2277. eval "$4=yes"
  2278. else
  2279. eval "$4=no"
  2280. fi
  2281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2282. fi
  2283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2284. fi
  2285. eval ac_res=\$$4
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2287. $as_echo "$ac_res" >&6; }
  2288. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2289. } # ac_fn_cxx_check_member
  2290. cat >config.log <<_ACEOF
  2291. This file contains any messages produced by compilers while
  2292. running configure, to aid debugging if configure makes a mistake.
  2293. It was created by aria2 $as_me 1.9.4, which was
  2294. generated by GNU Autoconf 2.65. Invocation command line was
  2295. $ $0 $@
  2296. _ACEOF
  2297. exec 5>>config.log
  2298. {
  2299. cat <<_ASUNAME
  2300. ## --------- ##
  2301. ## Platform. ##
  2302. ## --------- ##
  2303. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2304. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2305. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2306. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2307. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2308. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2309. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2310. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2311. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2312. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2313. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2314. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2315. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2316. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2317. _ASUNAME
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. $as_echo "PATH: $as_dir"
  2324. done
  2325. IFS=$as_save_IFS
  2326. } >&5
  2327. cat >&5 <<_ACEOF
  2328. ## ----------- ##
  2329. ## Core tests. ##
  2330. ## ----------- ##
  2331. _ACEOF
  2332. # Keep a trace of the command line.
  2333. # Strip out --no-create and --no-recursion so they do not pile up.
  2334. # Strip out --silent because we don't want to record it for future runs.
  2335. # Also quote any args containing shell meta-characters.
  2336. # Make two passes to allow for proper duplicate-argument suppression.
  2337. ac_configure_args=
  2338. ac_configure_args0=
  2339. ac_configure_args1=
  2340. ac_must_keep_next=false
  2341. for ac_pass in 1 2
  2342. do
  2343. for ac_arg
  2344. do
  2345. case $ac_arg in
  2346. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2347. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2348. | -silent | --silent | --silen | --sile | --sil)
  2349. continue ;;
  2350. *\'*)
  2351. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2352. esac
  2353. case $ac_pass in
  2354. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2355. 2)
  2356. as_fn_append ac_configure_args1 " '$ac_arg'"
  2357. if test $ac_must_keep_next = true; then
  2358. ac_must_keep_next=false # Got value, back to normal.
  2359. else
  2360. case $ac_arg in
  2361. *=* | --config-cache | -C | -disable-* | --disable-* \
  2362. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2363. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2364. | -with-* | --with-* | -without-* | --without-* | --x)
  2365. case "$ac_configure_args0 " in
  2366. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2367. esac
  2368. ;;
  2369. -* ) ac_must_keep_next=true ;;
  2370. esac
  2371. fi
  2372. as_fn_append ac_configure_args " '$ac_arg'"
  2373. ;;
  2374. esac
  2375. done
  2376. done
  2377. { ac_configure_args0=; unset ac_configure_args0;}
  2378. { ac_configure_args1=; unset ac_configure_args1;}
  2379. # When interrupted or exit'd, cleanup temporary files, and complete
  2380. # config.log. We remove comments because anyway the quotes in there
  2381. # would cause problems or look ugly.
  2382. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2383. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2384. trap 'exit_status=$?
  2385. # Save into config.log some information that might help in debugging.
  2386. {
  2387. echo
  2388. cat <<\_ASBOX
  2389. ## ---------------- ##
  2390. ## Cache variables. ##
  2391. ## ---------------- ##
  2392. _ASBOX
  2393. echo
  2394. # The following way of writing the cache mishandles newlines in values,
  2395. (
  2396. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2397. eval ac_val=\$$ac_var
  2398. case $ac_val in #(
  2399. *${as_nl}*)
  2400. case $ac_var in #(
  2401. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2402. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2403. esac
  2404. case $ac_var in #(
  2405. _ | IFS | as_nl) ;; #(
  2406. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2407. *) { eval $ac_var=; unset $ac_var;} ;;
  2408. esac ;;
  2409. esac
  2410. done
  2411. (set) 2>&1 |
  2412. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2413. *${as_nl}ac_space=\ *)
  2414. sed -n \
  2415. "s/'\''/'\''\\\\'\'''\''/g;
  2416. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2417. ;; #(
  2418. *)
  2419. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2420. ;;
  2421. esac |
  2422. sort
  2423. )
  2424. echo
  2425. cat <<\_ASBOX
  2426. ## ----------------- ##
  2427. ## Output variables. ##
  2428. ## ----------------- ##
  2429. _ASBOX
  2430. echo
  2431. for ac_var in $ac_subst_vars
  2432. do
  2433. eval ac_val=\$$ac_var
  2434. case $ac_val in
  2435. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2436. esac
  2437. $as_echo "$ac_var='\''$ac_val'\''"
  2438. done | sort
  2439. echo
  2440. if test -n "$ac_subst_files"; then
  2441. cat <<\_ASBOX
  2442. ## ------------------- ##
  2443. ## File substitutions. ##
  2444. ## ------------------- ##
  2445. _ASBOX
  2446. echo
  2447. for ac_var in $ac_subst_files
  2448. do
  2449. eval ac_val=\$$ac_var
  2450. case $ac_val in
  2451. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2452. esac
  2453. $as_echo "$ac_var='\''$ac_val'\''"
  2454. done | sort
  2455. echo
  2456. fi
  2457. if test -s confdefs.h; then
  2458. cat <<\_ASBOX
  2459. ## ----------- ##
  2460. ## confdefs.h. ##
  2461. ## ----------- ##
  2462. _ASBOX
  2463. echo
  2464. cat confdefs.h
  2465. echo
  2466. fi
  2467. test "$ac_signal" != 0 &&
  2468. $as_echo "$as_me: caught signal $ac_signal"
  2469. $as_echo "$as_me: exit $exit_status"
  2470. } >&5
  2471. rm -f core *.core core.conftest.* &&
  2472. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2473. exit $exit_status
  2474. ' 0
  2475. for ac_signal in 1 2 13 15; do
  2476. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2477. done
  2478. ac_signal=0
  2479. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2480. rm -f -r conftest* confdefs.h
  2481. $as_echo "/* confdefs.h */" > confdefs.h
  2482. # Predefined preprocessor variables.
  2483. cat >>confdefs.h <<_ACEOF
  2484. #define PACKAGE_NAME "$PACKAGE_NAME"
  2485. _ACEOF
  2486. cat >>confdefs.h <<_ACEOF
  2487. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2488. _ACEOF
  2489. cat >>confdefs.h <<_ACEOF
  2490. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2491. _ACEOF
  2492. cat >>confdefs.h <<_ACEOF
  2493. #define PACKAGE_STRING "$PACKAGE_STRING"
  2494. _ACEOF
  2495. cat >>confdefs.h <<_ACEOF
  2496. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2497. _ACEOF
  2498. cat >>confdefs.h <<_ACEOF
  2499. #define PACKAGE_URL "$PACKAGE_URL"
  2500. _ACEOF
  2501. # Let the site file select an alternate cache file if it wants to.
  2502. # Prefer an explicitly selected file to automatically selected ones.
  2503. ac_site_file1=NONE
  2504. ac_site_file2=NONE
  2505. if test -n "$CONFIG_SITE"; then
  2506. ac_site_file1=$CONFIG_SITE
  2507. elif test "x$prefix" != xNONE; then
  2508. ac_site_file1=$prefix/share/config.site
  2509. ac_site_file2=$prefix/etc/config.site
  2510. else
  2511. ac_site_file1=$ac_default_prefix/share/config.site
  2512. ac_site_file2=$ac_default_prefix/etc/config.site
  2513. fi
  2514. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2515. do
  2516. test "x$ac_site_file" = xNONE && continue
  2517. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2519. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2520. sed 's/^/| /' "$ac_site_file" >&5
  2521. . "$ac_site_file"
  2522. fi
  2523. done
  2524. if test -r "$cache_file"; then
  2525. # Some versions of bash will fail to source /dev/null (special files
  2526. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2527. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2529. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2530. case $cache_file in
  2531. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2532. *) . "./$cache_file";;
  2533. esac
  2534. fi
  2535. else
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2537. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2538. >$cache_file
  2539. fi
  2540. gt_needs="$gt_needs "
  2541. as_fn_append ac_header_list " stdlib.h"
  2542. as_fn_append ac_header_list " unistd.h"
  2543. as_fn_append ac_header_list " sys/param.h"
  2544. as_fn_append ac_header_list " sys/time.h"
  2545. as_fn_append ac_func_list " alarm"
  2546. # Check that the precious variables saved in the cache have kept the same
  2547. # value.
  2548. ac_cache_corrupted=false
  2549. for ac_var in $ac_precious_vars; do
  2550. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2551. eval ac_new_set=\$ac_env_${ac_var}_set
  2552. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2553. eval ac_new_val=\$ac_env_${ac_var}_value
  2554. case $ac_old_set,$ac_new_set in
  2555. set,)
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2557. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2558. ac_cache_corrupted=: ;;
  2559. ,set)
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2561. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2562. ac_cache_corrupted=: ;;
  2563. ,);;
  2564. *)
  2565. if test "x$ac_old_val" != "x$ac_new_val"; then
  2566. # differences in whitespace do not lead to failure.
  2567. ac_old_val_w=`echo x $ac_old_val`
  2568. ac_new_val_w=`echo x $ac_new_val`
  2569. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2571. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2572. ac_cache_corrupted=:
  2573. else
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2575. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2576. eval $ac_var=\$ac_old_val
  2577. fi
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2579. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2581. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2582. fi;;
  2583. esac
  2584. # Pass precious variables to config.status.
  2585. if test "$ac_new_set" = set; then
  2586. case $ac_new_val in
  2587. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2588. *) ac_arg=$ac_var=$ac_new_val ;;
  2589. esac
  2590. case " $ac_configure_args " in
  2591. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2592. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2593. esac
  2594. fi
  2595. done
  2596. if $ac_cache_corrupted; then
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2600. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2601. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2602. fi
  2603. ## -------------------- ##
  2604. ## Main body of script. ##
  2605. ## -------------------- ##
  2606. ac_ext=c
  2607. ac_cpp='$CPP $CPPFLAGS'
  2608. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2609. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2610. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2611. ac_aux_dir=
  2612. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2613. for ac_t in install-sh install.sh shtool; do
  2614. if test -f "$ac_dir/$ac_t"; then
  2615. ac_aux_dir=$ac_dir
  2616. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. if test -z "$ac_aux_dir"; then
  2622. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2623. fi
  2624. # These three variables are undocumented and unsupported,
  2625. # and are intended to be withdrawn in a future Autoconf release.
  2626. # They can cause serious problems if a builder's source tree is in a directory
  2627. # whose full name contains unusual characters.
  2628. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2629. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2630. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2631. # Make sure we can run config.sub.
  2632. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2633. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2635. $as_echo_n "checking build system type... " >&6; }
  2636. if test "${ac_cv_build+set}" = set; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. ac_build_alias=$build_alias
  2640. test "x$ac_build_alias" = x &&
  2641. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2642. test "x$ac_build_alias" = x &&
  2643. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2644. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2645. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2648. $as_echo "$ac_cv_build" >&6; }
  2649. case $ac_cv_build in
  2650. *-*-*) ;;
  2651. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2652. esac
  2653. build=$ac_cv_build
  2654. ac_save_IFS=$IFS; IFS='-'
  2655. set x $ac_cv_build
  2656. shift
  2657. build_cpu=$1
  2658. build_vendor=$2
  2659. shift; shift
  2660. # Remember, the first character of IFS is used to create $*,
  2661. # except with old shells:
  2662. build_os=$*
  2663. IFS=$ac_save_IFS
  2664. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2666. $as_echo_n "checking host system type... " >&6; }
  2667. if test "${ac_cv_host+set}" = set; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test "x$host_alias" = x; then
  2671. ac_cv_host=$ac_cv_build
  2672. else
  2673. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2674. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2678. $as_echo "$ac_cv_host" >&6; }
  2679. case $ac_cv_host in
  2680. *-*-*) ;;
  2681. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2682. esac
  2683. host=$ac_cv_host
  2684. ac_save_IFS=$IFS; IFS='-'
  2685. set x $ac_cv_host
  2686. shift
  2687. host_cpu=$1
  2688. host_vendor=$2
  2689. shift; shift
  2690. # Remember, the first character of IFS is used to create $*,
  2691. # except with old shells:
  2692. host_os=$*
  2693. IFS=$ac_save_IFS
  2694. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2696. $as_echo_n "checking target system type... " >&6; }
  2697. if test "${ac_cv_target+set}" = set; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. if test "x$target_alias" = x; then
  2701. ac_cv_target=$ac_cv_host
  2702. else
  2703. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2704. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2705. fi
  2706. fi
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2708. $as_echo "$ac_cv_target" >&6; }
  2709. case $ac_cv_target in
  2710. *-*-*) ;;
  2711. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2712. esac
  2713. target=$ac_cv_target
  2714. ac_save_IFS=$IFS; IFS='-'
  2715. set x $ac_cv_target
  2716. shift
  2717. target_cpu=$1
  2718. target_vendor=$2
  2719. shift; shift
  2720. # Remember, the first character of IFS is used to create $*,
  2721. # except with old shells:
  2722. target_os=$*
  2723. IFS=$ac_save_IFS
  2724. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2725. # The aliases save the names the user supplied, while $host etc.
  2726. # will get canonicalized.
  2727. test -n "$target_alias" &&
  2728. test "$program_prefix$program_suffix$program_transform_name" = \
  2729. NONENONEs,x,x, &&
  2730. program_prefix=${target_alias}-
  2731. am__api_version='1.11'
  2732. # Find a good install program. We prefer a C program (faster),
  2733. # so one script is as good as another. But avoid the broken or
  2734. # incompatible versions:
  2735. # SysV /etc/install, /usr/sbin/install
  2736. # SunOS /usr/etc/install
  2737. # IRIX /sbin/install
  2738. # AIX /bin/install
  2739. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2740. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2741. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2742. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2743. # OS/2's system install, which has a completely different semantic
  2744. # ./install, which can be erroneously created by make from ./install.sh.
  2745. # Reject install programs that cannot install multiple files.
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2747. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2748. if test -z "$INSTALL"; then
  2749. if test "${ac_cv_path_install+set}" = set; then :
  2750. $as_echo_n "(cached) " >&6
  2751. else
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. test -z "$as_dir" && as_dir=.
  2757. # Account for people who put trailing slashes in PATH elements.
  2758. case $as_dir/ in #((
  2759. ./ | .// | /[cC]/* | \
  2760. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2761. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2762. /usr/ucb/* ) ;;
  2763. *)
  2764. # OSF1 and SCO ODT 3.0 have their own names for install.
  2765. # Don't use installbsd from OSF since it installs stuff as root
  2766. # by default.
  2767. for ac_prog in ginstall scoinst install; do
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2770. if test $ac_prog = install &&
  2771. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2772. # AIX install. It has an incompatible calling convention.
  2773. :
  2774. elif test $ac_prog = install &&
  2775. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2776. # program-specific install script used by HP pwplus--don't use.
  2777. :
  2778. else
  2779. rm -rf conftest.one conftest.two conftest.dir
  2780. echo one > conftest.one
  2781. echo two > conftest.two
  2782. mkdir conftest.dir
  2783. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2784. test -s conftest.one && test -s conftest.two &&
  2785. test -s conftest.dir/conftest.one &&
  2786. test -s conftest.dir/conftest.two
  2787. then
  2788. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2789. break 3
  2790. fi
  2791. fi
  2792. fi
  2793. done
  2794. done
  2795. ;;
  2796. esac
  2797. done
  2798. IFS=$as_save_IFS
  2799. rm -rf conftest.one conftest.two conftest.dir
  2800. fi
  2801. if test "${ac_cv_path_install+set}" = set; then
  2802. INSTALL=$ac_cv_path_install
  2803. else
  2804. # As a last resort, use the slow shell script. Don't cache a
  2805. # value for INSTALL within a source directory, because that will
  2806. # break other packages using the cache if that directory is
  2807. # removed, or if the value is a relative name.
  2808. INSTALL=$ac_install_sh
  2809. fi
  2810. fi
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2812. $as_echo "$INSTALL" >&6; }
  2813. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2814. # It thinks the first close brace ends the variable substitution.
  2815. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2816. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2817. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2819. $as_echo_n "checking whether build environment is sane... " >&6; }
  2820. # Just in case
  2821. sleep 1
  2822. echo timestamp > conftest.file
  2823. # Reject unsafe characters in $srcdir or the absolute working directory
  2824. # name. Accept space and tab only in the latter.
  2825. am_lf='
  2826. '
  2827. case `pwd` in
  2828. *[\\\"\#\$\&\'\`$am_lf]*)
  2829. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2830. esac
  2831. case $srcdir in
  2832. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2833. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2834. esac
  2835. # Do `set' in a subshell so we don't clobber the current shell's
  2836. # arguments. Must try -L first in case configure is actually a
  2837. # symlink; some systems play weird games with the mod time of symlinks
  2838. # (eg FreeBSD returns the mod time of the symlink's containing
  2839. # directory).
  2840. if (
  2841. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2842. if test "$*" = "X"; then
  2843. # -L didn't work.
  2844. set X `ls -t "$srcdir/configure" conftest.file`
  2845. fi
  2846. rm -f conftest.file
  2847. if test "$*" != "X $srcdir/configure conftest.file" \
  2848. && test "$*" != "X conftest.file $srcdir/configure"; then
  2849. # If neither matched, then we have a broken ls. This can happen
  2850. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2851. # broken ls alias from the environment. This has actually
  2852. # happened. Such a system could not be considered "sane".
  2853. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2854. alias in your environment" "$LINENO" 5
  2855. fi
  2856. test "$2" = conftest.file
  2857. )
  2858. then
  2859. # Ok.
  2860. :
  2861. else
  2862. as_fn_error "newly created file is older than distributed files!
  2863. Check your system clock" "$LINENO" 5
  2864. fi
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2866. $as_echo "yes" >&6; }
  2867. test "$program_prefix" != NONE &&
  2868. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2869. # Use a double $ so make ignores it.
  2870. test "$program_suffix" != NONE &&
  2871. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2872. # Double any \ or $.
  2873. # By default was `s,x,x', remove it if useless.
  2874. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2875. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2876. # expand $ac_aux_dir to an absolute path
  2877. am_aux_dir=`cd $ac_aux_dir && pwd`
  2878. if test x"${MISSING+set}" != xset; then
  2879. case $am_aux_dir in
  2880. *\ * | *\ *)
  2881. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2882. *)
  2883. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2884. esac
  2885. fi
  2886. # Use eval to expand $SHELL
  2887. if eval "$MISSING --run true"; then
  2888. am_missing_run="$MISSING --run "
  2889. else
  2890. am_missing_run=
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2892. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2893. fi
  2894. if test x"${install_sh}" != xset; then
  2895. case $am_aux_dir in
  2896. *\ * | *\ *)
  2897. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2898. *)
  2899. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2900. esac
  2901. fi
  2902. # Installed binaries are usually stripped using `strip' when the user
  2903. # run `make install-strip'. However `strip' might not be the right
  2904. # tool to use in cross-compilation environments, therefore Automake
  2905. # will honor the `STRIP' environment variable to overrule this program.
  2906. if test "$cross_compiling" != no; then
  2907. if test -n "$ac_tool_prefix"; then
  2908. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2909. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2911. $as_echo_n "checking for $ac_word... " >&6; }
  2912. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. if test -n "$STRIP"; then
  2916. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2917. else
  2918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2919. for as_dir in $PATH
  2920. do
  2921. IFS=$as_save_IFS
  2922. test -z "$as_dir" && as_dir=.
  2923. for ac_exec_ext in '' $ac_executable_extensions; do
  2924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2925. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2927. break 2
  2928. fi
  2929. done
  2930. done
  2931. IFS=$as_save_IFS
  2932. fi
  2933. fi
  2934. STRIP=$ac_cv_prog_STRIP
  2935. if test -n "$STRIP"; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2937. $as_echo "$STRIP" >&6; }
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. fi
  2942. fi
  2943. if test -z "$ac_cv_prog_STRIP"; then
  2944. ac_ct_STRIP=$STRIP
  2945. # Extract the first word of "strip", so it can be a program name with args.
  2946. set dummy strip; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$ac_ct_STRIP"; then
  2953. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2962. ac_cv_prog_ac_ct_STRIP="strip"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2972. if test -n "$ac_ct_STRIP"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2974. $as_echo "$ac_ct_STRIP" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. if test "x$ac_ct_STRIP" = x; then
  2980. STRIP=":"
  2981. else
  2982. case $cross_compiling:$ac_tool_warned in
  2983. yes:)
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2986. ac_tool_warned=yes ;;
  2987. esac
  2988. STRIP=$ac_ct_STRIP
  2989. fi
  2990. else
  2991. STRIP="$ac_cv_prog_STRIP"
  2992. fi
  2993. fi
  2994. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2996. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2997. if test -z "$MKDIR_P"; then
  2998. if test "${ac_cv_path_mkdir+set}" = set; then :
  2999. $as_echo_n "(cached) " >&6
  3000. else
  3001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3002. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3003. do
  3004. IFS=$as_save_IFS
  3005. test -z "$as_dir" && as_dir=.
  3006. for ac_prog in mkdir gmkdir; do
  3007. for ac_exec_ext in '' $ac_executable_extensions; do
  3008. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3009. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3010. 'mkdir (GNU coreutils) '* | \
  3011. 'mkdir (coreutils) '* | \
  3012. 'mkdir (fileutils) '4.1*)
  3013. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3014. break 3;;
  3015. esac
  3016. done
  3017. done
  3018. done
  3019. IFS=$as_save_IFS
  3020. fi
  3021. test -d ./--version && rmdir ./--version
  3022. if test "${ac_cv_path_mkdir+set}" = set; then
  3023. MKDIR_P="$ac_cv_path_mkdir -p"
  3024. else
  3025. # As a last resort, use the slow shell script. Don't cache a
  3026. # value for MKDIR_P within a source directory, because that will
  3027. # break other packages using the cache if that directory is
  3028. # removed, or if the value is a relative name.
  3029. MKDIR_P="$ac_install_sh -d"
  3030. fi
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3033. $as_echo "$MKDIR_P" >&6; }
  3034. mkdir_p="$MKDIR_P"
  3035. case $mkdir_p in
  3036. [\\/$]* | ?:[\\/]*) ;;
  3037. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3038. esac
  3039. for ac_prog in gawk mawk nawk awk
  3040. do
  3041. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3042. set dummy $ac_prog; ac_word=$2
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3044. $as_echo_n "checking for $ac_word... " >&6; }
  3045. if test "${ac_cv_prog_AWK+set}" = set; then :
  3046. $as_echo_n "(cached) " >&6
  3047. else
  3048. if test -n "$AWK"; then
  3049. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3050. else
  3051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3052. for as_dir in $PATH
  3053. do
  3054. IFS=$as_save_IFS
  3055. test -z "$as_dir" && as_dir=.
  3056. for ac_exec_ext in '' $ac_executable_extensions; do
  3057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3058. ac_cv_prog_AWK="$ac_prog"
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3060. break 2
  3061. fi
  3062. done
  3063. done
  3064. IFS=$as_save_IFS
  3065. fi
  3066. fi
  3067. AWK=$ac_cv_prog_AWK
  3068. if test -n "$AWK"; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3070. $as_echo "$AWK" >&6; }
  3071. else
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3073. $as_echo "no" >&6; }
  3074. fi
  3075. test -n "$AWK" && break
  3076. done
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3078. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3079. set x ${MAKE-make}
  3080. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3081. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3082. $as_echo_n "(cached) " >&6
  3083. else
  3084. cat >conftest.make <<\_ACEOF
  3085. SHELL = /bin/sh
  3086. all:
  3087. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3088. _ACEOF
  3089. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3090. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3091. *@@@%%%=?*=@@@%%%*)
  3092. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3093. *)
  3094. eval ac_cv_prog_make_${ac_make}_set=no;;
  3095. esac
  3096. rm -f conftest.make
  3097. fi
  3098. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3100. $as_echo "yes" >&6; }
  3101. SET_MAKE=
  3102. else
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3104. $as_echo "no" >&6; }
  3105. SET_MAKE="MAKE=${MAKE-make}"
  3106. fi
  3107. rm -rf .tst 2>/dev/null
  3108. mkdir .tst 2>/dev/null
  3109. if test -d .tst; then
  3110. am__leading_dot=.
  3111. else
  3112. am__leading_dot=_
  3113. fi
  3114. rmdir .tst 2>/dev/null
  3115. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3116. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3117. # is not polluted with repeated "-I."
  3118. am__isrc=' -I$(srcdir)'
  3119. # test to see if srcdir already configured
  3120. if test -f $srcdir/config.status; then
  3121. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3122. fi
  3123. fi
  3124. # test whether we have cygpath
  3125. if test -z "$CYGPATH_W"; then
  3126. if (cygpath --version) >/dev/null 2>/dev/null; then
  3127. CYGPATH_W='cygpath -w'
  3128. else
  3129. CYGPATH_W=echo
  3130. fi
  3131. fi
  3132. # Define the identity of the package.
  3133. PACKAGE='aria2'
  3134. VERSION='1.9.4'
  3135. cat >>confdefs.h <<_ACEOF
  3136. #define PACKAGE "$PACKAGE"
  3137. _ACEOF
  3138. cat >>confdefs.h <<_ACEOF
  3139. #define VERSION "$VERSION"
  3140. _ACEOF
  3141. # Some tools Automake needs.
  3142. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3143. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3144. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3145. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3146. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3147. # We need awk for the "check" target. The system "awk" is bad on
  3148. # some platforms.
  3149. # Always define AMTAR for backward compatibility.
  3150. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3151. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3152. # Check whether --with-cppunit-prefix was given.
  3153. if test "${with_cppunit_prefix+set}" = set; then :
  3154. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3155. else
  3156. cppunit_config_prefix=""
  3157. fi
  3158. # Check whether --with-cppunit-exec-prefix was given.
  3159. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3160. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3161. else
  3162. cppunit_config_exec_prefix=""
  3163. fi
  3164. if test x$cppunit_config_exec_prefix != x ; then
  3165. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3166. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3167. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3168. fi
  3169. fi
  3170. if test x$cppunit_config_prefix != x ; then
  3171. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3172. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3173. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3174. fi
  3175. fi
  3176. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3177. set dummy cppunit-config; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. case $CPPUNIT_CONFIG in
  3184. [\\/]* | ?:[\\/]*)
  3185. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3186. ;;
  3187. *)
  3188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3189. for as_dir in $PATH
  3190. do
  3191. IFS=$as_save_IFS
  3192. test -z "$as_dir" && as_dir=.
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3195. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3197. break 2
  3198. fi
  3199. done
  3200. done
  3201. IFS=$as_save_IFS
  3202. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3203. ;;
  3204. esac
  3205. fi
  3206. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3207. if test -n "$CPPUNIT_CONFIG"; then
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3209. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3210. else
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3212. $as_echo "no" >&6; }
  3213. fi
  3214. cppunit_version_min=1.10.2
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3216. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3217. no_cppunit=""
  3218. if test "$CPPUNIT_CONFIG" = "no" ; then
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3220. $as_echo "no" >&6; }
  3221. no_cppunit=yes
  3222. else
  3223. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3224. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3225. cppunit_version=`$CPPUNIT_CONFIG --version`
  3226. cppunit_major_version=`echo $cppunit_version | \
  3227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3228. cppunit_minor_version=`echo $cppunit_version | \
  3229. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3230. cppunit_micro_version=`echo $cppunit_version | \
  3231. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3232. cppunit_major_min=`echo $cppunit_version_min | \
  3233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3234. if test "x${cppunit_major_min}" = "x" ; then
  3235. cppunit_major_min=0
  3236. fi
  3237. cppunit_minor_min=`echo $cppunit_version_min | \
  3238. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3239. if test "x${cppunit_minor_min}" = "x" ; then
  3240. cppunit_minor_min=0
  3241. fi
  3242. cppunit_micro_min=`echo $cppunit_version_min | \
  3243. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3244. if test "x${cppunit_micro_min}" = "x" ; then
  3245. cppunit_micro_min=0
  3246. fi
  3247. cppunit_version_proper=`expr \
  3248. $cppunit_major_version \> $cppunit_major_min \| \
  3249. $cppunit_major_version \= $cppunit_major_min \& \
  3250. $cppunit_minor_version \> $cppunit_minor_min \| \
  3251. $cppunit_major_version \= $cppunit_major_min \& \
  3252. $cppunit_minor_version \= $cppunit_minor_min \& \
  3253. $cppunit_micro_version \>= $cppunit_micro_min `
  3254. if test "$cppunit_version_proper" = "1" ; then
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3256. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3257. else
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. $as_echo "no" >&6; }
  3260. no_cppunit=yes
  3261. fi
  3262. fi
  3263. if test "x$no_cppunit" = x ; then
  3264. :
  3265. else
  3266. CPPUNIT_CFLAGS=""
  3267. CPPUNIT_LIBS=""
  3268. :
  3269. fi
  3270. ac_config_headers="$ac_config_headers config.h"
  3271. case "$target" in
  3272. *mingw*|*cygwin*)
  3273. WINSOCK_LIBS="-lws2_32"
  3274. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3275. ;;
  3276. esac
  3277. cat >>confdefs.h <<_ACEOF
  3278. #define TARGET "$target"
  3279. _ACEOF
  3280. # Checks for arguments.
  3281. # Check whether --with-gnutls was given.
  3282. if test "${with_gnutls+set}" = set; then :
  3283. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3284. else
  3285. with_gnutls=yes
  3286. fi
  3287. # Check whether --with-openssl was given.
  3288. if test "${with_openssl+set}" = set; then :
  3289. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3290. else
  3291. with_openssl=yes
  3292. fi
  3293. # Check whether --with-sqlite3 was given.
  3294. if test "${with_sqlite3+set}" = set; then :
  3295. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3296. else
  3297. with_sqlite3=yes
  3298. fi
  3299. # Check whether --with-libxml2 was given.
  3300. if test "${with_libxml2+set}" = set; then :
  3301. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3302. else
  3303. with_libxml2=yes
  3304. fi
  3305. # Check whether --with-libexpat was given.
  3306. if test "${with_libexpat+set}" = set; then :
  3307. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3308. else
  3309. with_libexpat=yes
  3310. fi
  3311. # Check whether --with-libcares was given.
  3312. if test "${with_libcares+set}" = set; then :
  3313. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3314. else
  3315. with_libcares=yes
  3316. fi
  3317. # Check whether --with-libz was given.
  3318. if test "${with_libz+set}" = set; then :
  3319. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3320. else
  3321. with_libz=yes
  3322. fi
  3323. # Check whether --enable-bittorrent was given.
  3324. if test "${enable_bittorrent+set}" = set; then :
  3325. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3326. else
  3327. enable_bittorrent=yes
  3328. fi
  3329. # Check whether --enable-metalink was given.
  3330. if test "${enable_metalink+set}" = set; then :
  3331. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3332. else
  3333. enable_metalink=yes
  3334. fi
  3335. # Check whether --enable-epoll was given.
  3336. if test "${enable_epoll+set}" = set; then :
  3337. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3338. else
  3339. enable_epoll=yes
  3340. fi
  3341. # Check whether --with-ca-bundle was given.
  3342. if test "${with_ca_bundle+set}" = set; then :
  3343. withval=$with_ca_bundle; ca_bundle=$withval
  3344. else
  3345. ca_bundle=""
  3346. fi
  3347. # Checks for programs.
  3348. ac_ext=cpp
  3349. ac_cpp='$CXXCPP $CPPFLAGS'
  3350. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3351. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3352. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3353. if test -z "$CXX"; then
  3354. if test -n "$CCC"; then
  3355. CXX=$CCC
  3356. else
  3357. if test -n "$ac_tool_prefix"; then
  3358. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3359. do
  3360. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3361. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3363. $as_echo_n "checking for $ac_word... " >&6; }
  3364. if test "${ac_cv_prog_CXX+set}" = set; then :
  3365. $as_echo_n "(cached) " >&6
  3366. else
  3367. if test -n "$CXX"; then
  3368. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3369. else
  3370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3371. for as_dir in $PATH
  3372. do
  3373. IFS=$as_save_IFS
  3374. test -z "$as_dir" && as_dir=.
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3377. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3379. break 2
  3380. fi
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. fi
  3385. fi
  3386. CXX=$ac_cv_prog_CXX
  3387. if test -n "$CXX"; then
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3389. $as_echo "$CXX" >&6; }
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3392. $as_echo "no" >&6; }
  3393. fi
  3394. test -n "$CXX" && break
  3395. done
  3396. fi
  3397. if test -z "$CXX"; then
  3398. ac_ct_CXX=$CXX
  3399. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3400. do
  3401. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3402. set dummy $ac_prog; ac_word=$2
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3404. $as_echo_n "checking for $ac_word... " >&6; }
  3405. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3406. $as_echo_n "(cached) " >&6
  3407. else
  3408. if test -n "$ac_ct_CXX"; then
  3409. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3410. else
  3411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3412. for as_dir in $PATH
  3413. do
  3414. IFS=$as_save_IFS
  3415. test -z "$as_dir" && as_dir=.
  3416. for ac_exec_ext in '' $ac_executable_extensions; do
  3417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3418. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3420. break 2
  3421. fi
  3422. done
  3423. done
  3424. IFS=$as_save_IFS
  3425. fi
  3426. fi
  3427. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3428. if test -n "$ac_ct_CXX"; then
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3430. $as_echo "$ac_ct_CXX" >&6; }
  3431. else
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3433. $as_echo "no" >&6; }
  3434. fi
  3435. test -n "$ac_ct_CXX" && break
  3436. done
  3437. if test "x$ac_ct_CXX" = x; then
  3438. CXX="g++"
  3439. else
  3440. case $cross_compiling:$ac_tool_warned in
  3441. yes:)
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3444. ac_tool_warned=yes ;;
  3445. esac
  3446. CXX=$ac_ct_CXX
  3447. fi
  3448. fi
  3449. fi
  3450. fi
  3451. # Provide some information about the compiler.
  3452. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3453. set X $ac_compile
  3454. ac_compiler=$2
  3455. for ac_option in --version -v -V -qversion; do
  3456. { { ac_try="$ac_compiler $ac_option >&5"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3462. $as_echo "$ac_try_echo"; } >&5
  3463. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3464. ac_status=$?
  3465. if test -s conftest.err; then
  3466. sed '10a\
  3467. ... rest of stderr output deleted ...
  3468. 10q' conftest.err >conftest.er1
  3469. cat conftest.er1 >&5
  3470. fi
  3471. rm -f conftest.er1 conftest.err
  3472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3473. test $ac_status = 0; }
  3474. done
  3475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3476. /* end confdefs.h. */
  3477. int
  3478. main ()
  3479. {
  3480. ;
  3481. return 0;
  3482. }
  3483. _ACEOF
  3484. ac_clean_files_save=$ac_clean_files
  3485. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3486. # Try to create an executable without -o first, disregard a.out.
  3487. # It will help us diagnose broken compilers, and finding out an intuition
  3488. # of exeext.
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3490. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3491. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3492. # The possible output files:
  3493. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3494. ac_rmfiles=
  3495. for ac_file in $ac_files
  3496. do
  3497. case $ac_file in
  3498. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3499. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3500. esac
  3501. done
  3502. rm -f $ac_rmfiles
  3503. if { { ac_try="$ac_link_default"
  3504. case "(($ac_try" in
  3505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3506. *) ac_try_echo=$ac_try;;
  3507. esac
  3508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3509. $as_echo "$ac_try_echo"; } >&5
  3510. (eval "$ac_link_default") 2>&5
  3511. ac_status=$?
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3513. test $ac_status = 0; }; then :
  3514. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3515. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3516. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3517. # so that the user can short-circuit this test for compilers unknown to
  3518. # Autoconf.
  3519. for ac_file in $ac_files ''
  3520. do
  3521. test -f "$ac_file" || continue
  3522. case $ac_file in
  3523. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3524. ;;
  3525. [ab].out )
  3526. # We found the default executable, but exeext='' is most
  3527. # certainly right.
  3528. break;;
  3529. *.* )
  3530. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3531. then :; else
  3532. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3533. fi
  3534. # We set ac_cv_exeext here because the later test for it is not
  3535. # safe: cross compilers may not add the suffix if given an `-o'
  3536. # argument, so we may need to know it at that point already.
  3537. # Even if this section looks crufty: it has the advantage of
  3538. # actually working.
  3539. break;;
  3540. * )
  3541. break;;
  3542. esac
  3543. done
  3544. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3545. else
  3546. ac_file=''
  3547. fi
  3548. if test -z "$ac_file"; then :
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3550. $as_echo "no" >&6; }
  3551. $as_echo "$as_me: failed program was:" >&5
  3552. sed 's/^/| /' conftest.$ac_ext >&5
  3553. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3555. { as_fn_set_status 77
  3556. as_fn_error "C++ compiler cannot create executables
  3557. See \`config.log' for more details." "$LINENO" 5; }; }
  3558. else
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3560. $as_echo "yes" >&6; }
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3563. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3565. $as_echo "$ac_file" >&6; }
  3566. ac_exeext=$ac_cv_exeext
  3567. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3568. ac_clean_files=$ac_clean_files_save
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3570. $as_echo_n "checking for suffix of executables... " >&6; }
  3571. if { { ac_try="$ac_link"
  3572. case "(($ac_try" in
  3573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3574. *) ac_try_echo=$ac_try;;
  3575. esac
  3576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3577. $as_echo "$ac_try_echo"; } >&5
  3578. (eval "$ac_link") 2>&5
  3579. ac_status=$?
  3580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3581. test $ac_status = 0; }; then :
  3582. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3583. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3584. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3585. # `rm'.
  3586. for ac_file in conftest.exe conftest conftest.*; do
  3587. test -f "$ac_file" || continue
  3588. case $ac_file in
  3589. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3590. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3591. break;;
  3592. * ) break;;
  3593. esac
  3594. done
  3595. else
  3596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3598. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3599. See \`config.log' for more details." "$LINENO" 5; }
  3600. fi
  3601. rm -f conftest conftest$ac_cv_exeext
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3603. $as_echo "$ac_cv_exeext" >&6; }
  3604. rm -f conftest.$ac_ext
  3605. EXEEXT=$ac_cv_exeext
  3606. ac_exeext=$EXEEXT
  3607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3608. /* end confdefs.h. */
  3609. #include <stdio.h>
  3610. int
  3611. main ()
  3612. {
  3613. FILE *f = fopen ("conftest.out", "w");
  3614. return ferror (f) || fclose (f) != 0;
  3615. ;
  3616. return 0;
  3617. }
  3618. _ACEOF
  3619. ac_clean_files="$ac_clean_files conftest.out"
  3620. # Check that the compiler produces executables we can run. If not, either
  3621. # the compiler is broken, or we cross compile.
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3623. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3624. if test "$cross_compiling" != yes; then
  3625. { { ac_try="$ac_link"
  3626. case "(($ac_try" in
  3627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3628. *) ac_try_echo=$ac_try;;
  3629. esac
  3630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3631. $as_echo "$ac_try_echo"; } >&5
  3632. (eval "$ac_link") 2>&5
  3633. ac_status=$?
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3635. test $ac_status = 0; }
  3636. if { ac_try='./conftest$ac_cv_exeext'
  3637. { { case "(($ac_try" in
  3638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3639. *) ac_try_echo=$ac_try;;
  3640. esac
  3641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3642. $as_echo "$ac_try_echo"; } >&5
  3643. (eval "$ac_try") 2>&5
  3644. ac_status=$?
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }; }; then
  3647. cross_compiling=no
  3648. else
  3649. if test "$cross_compiling" = maybe; then
  3650. cross_compiling=yes
  3651. else
  3652. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3654. as_fn_error "cannot run C++ compiled programs.
  3655. If you meant to cross compile, use \`--host'.
  3656. See \`config.log' for more details." "$LINENO" 5; }
  3657. fi
  3658. fi
  3659. fi
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3661. $as_echo "$cross_compiling" >&6; }
  3662. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3663. ac_clean_files=$ac_clean_files_save
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3665. $as_echo_n "checking for suffix of object files... " >&6; }
  3666. if test "${ac_cv_objext+set}" = set; then :
  3667. $as_echo_n "(cached) " >&6
  3668. else
  3669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3670. /* end confdefs.h. */
  3671. int
  3672. main ()
  3673. {
  3674. ;
  3675. return 0;
  3676. }
  3677. _ACEOF
  3678. rm -f conftest.o conftest.obj
  3679. if { { ac_try="$ac_compile"
  3680. case "(($ac_try" in
  3681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3682. *) ac_try_echo=$ac_try;;
  3683. esac
  3684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3685. $as_echo "$ac_try_echo"; } >&5
  3686. (eval "$ac_compile") 2>&5
  3687. ac_status=$?
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3689. test $ac_status = 0; }; then :
  3690. for ac_file in conftest.o conftest.obj conftest.*; do
  3691. test -f "$ac_file" || continue;
  3692. case $ac_file in
  3693. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3694. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3695. break;;
  3696. esac
  3697. done
  3698. else
  3699. $as_echo "$as_me: failed program was:" >&5
  3700. sed 's/^/| /' conftest.$ac_ext >&5
  3701. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3702. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3703. as_fn_error "cannot compute suffix of object files: cannot compile
  3704. See \`config.log' for more details." "$LINENO" 5; }
  3705. fi
  3706. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3709. $as_echo "$ac_cv_objext" >&6; }
  3710. OBJEXT=$ac_cv_objext
  3711. ac_objext=$OBJEXT
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3713. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3714. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3718. /* end confdefs.h. */
  3719. int
  3720. main ()
  3721. {
  3722. #ifndef __GNUC__
  3723. choke me
  3724. #endif
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. if ac_fn_cxx_try_compile "$LINENO"; then :
  3730. ac_compiler_gnu=yes
  3731. else
  3732. ac_compiler_gnu=no
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3735. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3738. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3739. if test $ac_compiler_gnu = yes; then
  3740. GXX=yes
  3741. else
  3742. GXX=
  3743. fi
  3744. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3745. ac_save_CXXFLAGS=$CXXFLAGS
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3747. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3748. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3752. ac_cxx_werror_flag=yes
  3753. ac_cv_prog_cxx_g=no
  3754. CXXFLAGS="-g"
  3755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3756. /* end confdefs.h. */
  3757. int
  3758. main ()
  3759. {
  3760. ;
  3761. return 0;
  3762. }
  3763. _ACEOF
  3764. if ac_fn_cxx_try_compile "$LINENO"; then :
  3765. ac_cv_prog_cxx_g=yes
  3766. else
  3767. CXXFLAGS=""
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. int
  3771. main ()
  3772. {
  3773. ;
  3774. return 0;
  3775. }
  3776. _ACEOF
  3777. if ac_fn_cxx_try_compile "$LINENO"; then :
  3778. else
  3779. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3780. CXXFLAGS="-g"
  3781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3782. /* end confdefs.h. */
  3783. int
  3784. main ()
  3785. {
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. if ac_fn_cxx_try_compile "$LINENO"; then :
  3791. ac_cv_prog_cxx_g=yes
  3792. fi
  3793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3794. fi
  3795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3796. fi
  3797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3798. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3799. fi
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3801. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3802. if test "$ac_test_CXXFLAGS" = set; then
  3803. CXXFLAGS=$ac_save_CXXFLAGS
  3804. elif test $ac_cv_prog_cxx_g = yes; then
  3805. if test "$GXX" = yes; then
  3806. CXXFLAGS="-g -O2"
  3807. else
  3808. CXXFLAGS="-g"
  3809. fi
  3810. else
  3811. if test "$GXX" = yes; then
  3812. CXXFLAGS="-O2"
  3813. else
  3814. CXXFLAGS=
  3815. fi
  3816. fi
  3817. ac_ext=c
  3818. ac_cpp='$CPP $CPPFLAGS'
  3819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3822. DEPDIR="${am__leading_dot}deps"
  3823. ac_config_commands="$ac_config_commands depfiles"
  3824. am_make=${MAKE-make}
  3825. cat > confinc << 'END'
  3826. am__doit:
  3827. @echo this is the am__doit target
  3828. .PHONY: am__doit
  3829. END
  3830. # If we don't find an include directive, just comment out the code.
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3832. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3833. am__include="#"
  3834. am__quote=
  3835. _am_result=none
  3836. # First try GNU make style include.
  3837. echo "include confinc" > confmf
  3838. # Ignore all kinds of additional output from `make'.
  3839. case `$am_make -s -f confmf 2> /dev/null` in #(
  3840. *the\ am__doit\ target*)
  3841. am__include=include
  3842. am__quote=
  3843. _am_result=GNU
  3844. ;;
  3845. esac
  3846. # Now try BSD make style include.
  3847. if test "$am__include" = "#"; then
  3848. echo '.include "confinc"' > confmf
  3849. case `$am_make -s -f confmf 2> /dev/null` in #(
  3850. *the\ am__doit\ target*)
  3851. am__include=.include
  3852. am__quote="\""
  3853. _am_result=BSD
  3854. ;;
  3855. esac
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3858. $as_echo "$_am_result" >&6; }
  3859. rm -f confinc confmf
  3860. # Check whether --enable-dependency-tracking was given.
  3861. if test "${enable_dependency_tracking+set}" = set; then :
  3862. enableval=$enable_dependency_tracking;
  3863. fi
  3864. if test "x$enable_dependency_tracking" != xno; then
  3865. am_depcomp="$ac_aux_dir/depcomp"
  3866. AMDEPBACKSLASH='\'
  3867. fi
  3868. if test "x$enable_dependency_tracking" != xno; then
  3869. AMDEP_TRUE=
  3870. AMDEP_FALSE='#'
  3871. else
  3872. AMDEP_TRUE='#'
  3873. AMDEP_FALSE=
  3874. fi
  3875. depcc="$CXX" am_compiler_list=
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3877. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3878. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3882. # We make a subdir and do the tests there. Otherwise we can end up
  3883. # making bogus files that we don't know about and never remove. For
  3884. # instance it was reported that on HP-UX the gcc test will end up
  3885. # making a dummy file named `D' -- because `-MD' means `put the output
  3886. # in D'.
  3887. mkdir conftest.dir
  3888. # Copy depcomp to subdir because otherwise we won't find it if we're
  3889. # using a relative directory.
  3890. cp "$am_depcomp" conftest.dir
  3891. cd conftest.dir
  3892. # We will build objects and dependencies in a subdirectory because
  3893. # it helps to detect inapplicable dependency modes. For instance
  3894. # both Tru64's cc and ICC support -MD to output dependencies as a
  3895. # side effect of compilation, but ICC will put the dependencies in
  3896. # the current directory while Tru64 will put them in the object
  3897. # directory.
  3898. mkdir sub
  3899. am_cv_CXX_dependencies_compiler_type=none
  3900. if test "$am_compiler_list" = ""; then
  3901. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3902. fi
  3903. am__universal=false
  3904. case " $depcc " in #(
  3905. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3906. esac
  3907. for depmode in $am_compiler_list; do
  3908. # Setup a source with many dependencies, because some compilers
  3909. # like to wrap large dependency lists on column 80 (with \), and
  3910. # we should not choose a depcomp mode which is confused by this.
  3911. #
  3912. # We need to recreate these files for each test, as the compiler may
  3913. # overwrite some of them when testing with obscure command lines.
  3914. # This happens at least with the AIX C compiler.
  3915. : > sub/conftest.c
  3916. for i in 1 2 3 4 5 6; do
  3917. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3918. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3919. # Solaris 8's {/usr,}/bin/sh.
  3920. touch sub/conftst$i.h
  3921. done
  3922. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3923. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3924. # mode. It turns out that the SunPro C++ compiler does not properly
  3925. # handle `-M -o', and we need to detect this. Also, some Intel
  3926. # versions had trouble with output in subdirs
  3927. am__obj=sub/conftest.${OBJEXT-o}
  3928. am__minus_obj="-o $am__obj"
  3929. case $depmode in
  3930. gcc)
  3931. # This depmode causes a compiler race in universal mode.
  3932. test "$am__universal" = false || continue
  3933. ;;
  3934. nosideeffect)
  3935. # after this tag, mechanisms are not by side-effect, so they'll
  3936. # only be used when explicitly requested
  3937. if test "x$enable_dependency_tracking" = xyes; then
  3938. continue
  3939. else
  3940. break
  3941. fi
  3942. ;;
  3943. msvisualcpp | msvcmsys)
  3944. # This compiler won't grok `-c -o', but also, the minuso test has
  3945. # not run yet. These depmodes are late enough in the game, and
  3946. # so weak that their functioning should not be impacted.
  3947. am__obj=conftest.${OBJEXT-o}
  3948. am__minus_obj=
  3949. ;;
  3950. none) break ;;
  3951. esac
  3952. if depmode=$depmode \
  3953. source=sub/conftest.c object=$am__obj \
  3954. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3955. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3956. >/dev/null 2>conftest.err &&
  3957. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3958. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3959. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3960. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3961. # icc doesn't choke on unknown options, it will just issue warnings
  3962. # or remarks (even with -Werror). So we grep stderr for any message
  3963. # that says an option was ignored or not supported.
  3964. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3965. # icc: Command line warning: ignoring option '-M'; no argument required
  3966. # The diagnosis changed in icc 8.0:
  3967. # icc: Command line remark: option '-MP' not supported
  3968. if (grep 'ignoring option' conftest.err ||
  3969. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3970. am_cv_CXX_dependencies_compiler_type=$depmode
  3971. break
  3972. fi
  3973. fi
  3974. done
  3975. cd ..
  3976. rm -rf conftest.dir
  3977. else
  3978. am_cv_CXX_dependencies_compiler_type=none
  3979. fi
  3980. fi
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3982. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3983. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3984. if
  3985. test "x$enable_dependency_tracking" != xno \
  3986. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3987. am__fastdepCXX_TRUE=
  3988. am__fastdepCXX_FALSE='#'
  3989. else
  3990. am__fastdepCXX_TRUE='#'
  3991. am__fastdepCXX_FALSE=
  3992. fi
  3993. ac_ext=c
  3994. ac_cpp='$CPP $CPPFLAGS'
  3995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3998. if test -n "$ac_tool_prefix"; then
  3999. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4000. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if test "${ac_cv_prog_CC+set}" = set; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$CC"; then
  4007. ac_cv_prog_CC="$CC" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4016. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. CC=$ac_cv_prog_CC
  4026. if test -n "$CC"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4028. $as_echo "$CC" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. fi
  4034. if test -z "$ac_cv_prog_CC"; then
  4035. ac_ct_CC=$CC
  4036. # Extract the first word of "gcc", so it can be a program name with args.
  4037. set dummy gcc; ac_word=$2
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4039. $as_echo_n "checking for $ac_word... " >&6; }
  4040. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. if test -n "$ac_ct_CC"; then
  4044. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4045. else
  4046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4047. for as_dir in $PATH
  4048. do
  4049. IFS=$as_save_IFS
  4050. test -z "$as_dir" && as_dir=.
  4051. for ac_exec_ext in '' $ac_executable_extensions; do
  4052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4053. ac_cv_prog_ac_ct_CC="gcc"
  4054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4055. break 2
  4056. fi
  4057. done
  4058. done
  4059. IFS=$as_save_IFS
  4060. fi
  4061. fi
  4062. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4063. if test -n "$ac_ct_CC"; then
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4065. $as_echo "$ac_ct_CC" >&6; }
  4066. else
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4068. $as_echo "no" >&6; }
  4069. fi
  4070. if test "x$ac_ct_CC" = x; then
  4071. CC=""
  4072. else
  4073. case $cross_compiling:$ac_tool_warned in
  4074. yes:)
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4077. ac_tool_warned=yes ;;
  4078. esac
  4079. CC=$ac_ct_CC
  4080. fi
  4081. else
  4082. CC="$ac_cv_prog_CC"
  4083. fi
  4084. if test -z "$CC"; then
  4085. if test -n "$ac_tool_prefix"; then
  4086. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4087. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4089. $as_echo_n "checking for $ac_word... " >&6; }
  4090. if test "${ac_cv_prog_CC+set}" = set; then :
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. if test -n "$CC"; then
  4094. ac_cv_prog_CC="$CC" # Let the user override the test.
  4095. else
  4096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4097. for as_dir in $PATH
  4098. do
  4099. IFS=$as_save_IFS
  4100. test -z "$as_dir" && as_dir=.
  4101. for ac_exec_ext in '' $ac_executable_extensions; do
  4102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4103. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4105. break 2
  4106. fi
  4107. done
  4108. done
  4109. IFS=$as_save_IFS
  4110. fi
  4111. fi
  4112. CC=$ac_cv_prog_CC
  4113. if test -n "$CC"; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4115. $as_echo "$CC" >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4118. $as_echo "no" >&6; }
  4119. fi
  4120. fi
  4121. fi
  4122. if test -z "$CC"; then
  4123. # Extract the first word of "cc", so it can be a program name with args.
  4124. set dummy cc; ac_word=$2
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4126. $as_echo_n "checking for $ac_word... " >&6; }
  4127. if test "${ac_cv_prog_CC+set}" = set; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. if test -n "$CC"; then
  4131. ac_cv_prog_CC="$CC" # Let the user override the test.
  4132. else
  4133. ac_prog_rejected=no
  4134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4135. for as_dir in $PATH
  4136. do
  4137. IFS=$as_save_IFS
  4138. test -z "$as_dir" && as_dir=.
  4139. for ac_exec_ext in '' $ac_executable_extensions; do
  4140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4141. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4142. ac_prog_rejected=yes
  4143. continue
  4144. fi
  4145. ac_cv_prog_CC="cc"
  4146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147. break 2
  4148. fi
  4149. done
  4150. done
  4151. IFS=$as_save_IFS
  4152. if test $ac_prog_rejected = yes; then
  4153. # We found a bogon in the path, so make sure we never use it.
  4154. set dummy $ac_cv_prog_CC
  4155. shift
  4156. if test $# != 0; then
  4157. # We chose a different compiler from the bogus one.
  4158. # However, it has the same basename, so the bogon will be chosen
  4159. # first if we set CC to just the basename; use the full file name.
  4160. shift
  4161. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4162. fi
  4163. fi
  4164. fi
  4165. fi
  4166. CC=$ac_cv_prog_CC
  4167. if test -n "$CC"; then
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4169. $as_echo "$CC" >&6; }
  4170. else
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4172. $as_echo "no" >&6; }
  4173. fi
  4174. fi
  4175. if test -z "$CC"; then
  4176. if test -n "$ac_tool_prefix"; then
  4177. for ac_prog in cl.exe
  4178. do
  4179. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4180. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4182. $as_echo_n "checking for $ac_word... " >&6; }
  4183. if test "${ac_cv_prog_CC+set}" = set; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. if test -n "$CC"; then
  4187. ac_cv_prog_CC="$CC" # Let the user override the test.
  4188. else
  4189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4190. for as_dir in $PATH
  4191. do
  4192. IFS=$as_save_IFS
  4193. test -z "$as_dir" && as_dir=.
  4194. for ac_exec_ext in '' $ac_executable_extensions; do
  4195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4196. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4198. break 2
  4199. fi
  4200. done
  4201. done
  4202. IFS=$as_save_IFS
  4203. fi
  4204. fi
  4205. CC=$ac_cv_prog_CC
  4206. if test -n "$CC"; then
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4208. $as_echo "$CC" >&6; }
  4209. else
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4211. $as_echo "no" >&6; }
  4212. fi
  4213. test -n "$CC" && break
  4214. done
  4215. fi
  4216. if test -z "$CC"; then
  4217. ac_ct_CC=$CC
  4218. for ac_prog in cl.exe
  4219. do
  4220. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4221. set dummy $ac_prog; ac_word=$2
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4223. $as_echo_n "checking for $ac_word... " >&6; }
  4224. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. if test -n "$ac_ct_CC"; then
  4228. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4229. else
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH
  4232. do
  4233. IFS=$as_save_IFS
  4234. test -z "$as_dir" && as_dir=.
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4237. ac_cv_prog_ac_ct_CC="$ac_prog"
  4238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4239. break 2
  4240. fi
  4241. done
  4242. done
  4243. IFS=$as_save_IFS
  4244. fi
  4245. fi
  4246. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4247. if test -n "$ac_ct_CC"; then
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4249. $as_echo "$ac_ct_CC" >&6; }
  4250. else
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4252. $as_echo "no" >&6; }
  4253. fi
  4254. test -n "$ac_ct_CC" && break
  4255. done
  4256. if test "x$ac_ct_CC" = x; then
  4257. CC=""
  4258. else
  4259. case $cross_compiling:$ac_tool_warned in
  4260. yes:)
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4262. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4263. ac_tool_warned=yes ;;
  4264. esac
  4265. CC=$ac_ct_CC
  4266. fi
  4267. fi
  4268. fi
  4269. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4271. as_fn_error "no acceptable C compiler found in \$PATH
  4272. See \`config.log' for more details." "$LINENO" 5; }
  4273. # Provide some information about the compiler.
  4274. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4275. set X $ac_compile
  4276. ac_compiler=$2
  4277. for ac_option in --version -v -V -qversion; do
  4278. { { ac_try="$ac_compiler $ac_option >&5"
  4279. case "(($ac_try" in
  4280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4281. *) ac_try_echo=$ac_try;;
  4282. esac
  4283. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4284. $as_echo "$ac_try_echo"; } >&5
  4285. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4286. ac_status=$?
  4287. if test -s conftest.err; then
  4288. sed '10a\
  4289. ... rest of stderr output deleted ...
  4290. 10q' conftest.err >conftest.er1
  4291. cat conftest.er1 >&5
  4292. fi
  4293. rm -f conftest.er1 conftest.err
  4294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4295. test $ac_status = 0; }
  4296. done
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4298. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4299. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4303. /* end confdefs.h. */
  4304. int
  4305. main ()
  4306. {
  4307. #ifndef __GNUC__
  4308. choke me
  4309. #endif
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. if ac_fn_c_try_compile "$LINENO"; then :
  4315. ac_compiler_gnu=yes
  4316. else
  4317. ac_compiler_gnu=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4321. fi
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4323. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4324. if test $ac_compiler_gnu = yes; then
  4325. GCC=yes
  4326. else
  4327. GCC=
  4328. fi
  4329. ac_test_CFLAGS=${CFLAGS+set}
  4330. ac_save_CFLAGS=$CFLAGS
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4332. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4333. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. ac_save_c_werror_flag=$ac_c_werror_flag
  4337. ac_c_werror_flag=yes
  4338. ac_cv_prog_cc_g=no
  4339. CFLAGS="-g"
  4340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end confdefs.h. */
  4342. int
  4343. main ()
  4344. {
  4345. ;
  4346. return 0;
  4347. }
  4348. _ACEOF
  4349. if ac_fn_c_try_compile "$LINENO"; then :
  4350. ac_cv_prog_cc_g=yes
  4351. else
  4352. CFLAGS=""
  4353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4354. /* end confdefs.h. */
  4355. int
  4356. main ()
  4357. {
  4358. ;
  4359. return 0;
  4360. }
  4361. _ACEOF
  4362. if ac_fn_c_try_compile "$LINENO"; then :
  4363. else
  4364. ac_c_werror_flag=$ac_save_c_werror_flag
  4365. CFLAGS="-g"
  4366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4367. /* end confdefs.h. */
  4368. int
  4369. main ()
  4370. {
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. if ac_fn_c_try_compile "$LINENO"; then :
  4376. ac_cv_prog_cc_g=yes
  4377. fi
  4378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4379. fi
  4380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4381. fi
  4382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4383. ac_c_werror_flag=$ac_save_c_werror_flag
  4384. fi
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4386. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4387. if test "$ac_test_CFLAGS" = set; then
  4388. CFLAGS=$ac_save_CFLAGS
  4389. elif test $ac_cv_prog_cc_g = yes; then
  4390. if test "$GCC" = yes; then
  4391. CFLAGS="-g -O2"
  4392. else
  4393. CFLAGS="-g"
  4394. fi
  4395. else
  4396. if test "$GCC" = yes; then
  4397. CFLAGS="-O2"
  4398. else
  4399. CFLAGS=
  4400. fi
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4403. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4404. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. ac_cv_prog_cc_c89=no
  4408. ac_save_CC=$CC
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. #include <stdarg.h>
  4412. #include <stdio.h>
  4413. #include <sys/types.h>
  4414. #include <sys/stat.h>
  4415. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4416. struct buf { int x; };
  4417. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4418. static char *e (p, i)
  4419. char **p;
  4420. int i;
  4421. {
  4422. return p[i];
  4423. }
  4424. static char *f (char * (*g) (char **, int), char **p, ...)
  4425. {
  4426. char *s;
  4427. va_list v;
  4428. va_start (v,p);
  4429. s = g (p, va_arg (v,int));
  4430. va_end (v);
  4431. return s;
  4432. }
  4433. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4434. function prototypes and stuff, but not '\xHH' hex character constants.
  4435. These don't provoke an error unfortunately, instead are silently treated
  4436. as 'x'. The following induces an error, until -std is added to get
  4437. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4438. array size at least. It's necessary to write '\x00'==0 to get something
  4439. that's true only with -std. */
  4440. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4441. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4442. inside strings and character constants. */
  4443. #define FOO(x) 'x'
  4444. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4445. int test (int i, double x);
  4446. struct s1 {int (*f) (int a);};
  4447. struct s2 {int (*f) (double a);};
  4448. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4449. int argc;
  4450. char **argv;
  4451. int
  4452. main ()
  4453. {
  4454. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4460. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4461. do
  4462. CC="$ac_save_CC $ac_arg"
  4463. if ac_fn_c_try_compile "$LINENO"; then :
  4464. ac_cv_prog_cc_c89=$ac_arg
  4465. fi
  4466. rm -f core conftest.err conftest.$ac_objext
  4467. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4468. done
  4469. rm -f conftest.$ac_ext
  4470. CC=$ac_save_CC
  4471. fi
  4472. # AC_CACHE_VAL
  4473. case "x$ac_cv_prog_cc_c89" in
  4474. x)
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4476. $as_echo "none needed" >&6; } ;;
  4477. xno)
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4479. $as_echo "unsupported" >&6; } ;;
  4480. *)
  4481. CC="$CC $ac_cv_prog_cc_c89"
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4483. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4484. esac
  4485. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4486. fi
  4487. ac_ext=c
  4488. ac_cpp='$CPP $CPPFLAGS'
  4489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4492. depcc="$CC" am_compiler_list=
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4494. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4495. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4499. # We make a subdir and do the tests there. Otherwise we can end up
  4500. # making bogus files that we don't know about and never remove. For
  4501. # instance it was reported that on HP-UX the gcc test will end up
  4502. # making a dummy file named `D' -- because `-MD' means `put the output
  4503. # in D'.
  4504. mkdir conftest.dir
  4505. # Copy depcomp to subdir because otherwise we won't find it if we're
  4506. # using a relative directory.
  4507. cp "$am_depcomp" conftest.dir
  4508. cd conftest.dir
  4509. # We will build objects and dependencies in a subdirectory because
  4510. # it helps to detect inapplicable dependency modes. For instance
  4511. # both Tru64's cc and ICC support -MD to output dependencies as a
  4512. # side effect of compilation, but ICC will put the dependencies in
  4513. # the current directory while Tru64 will put them in the object
  4514. # directory.
  4515. mkdir sub
  4516. am_cv_CC_dependencies_compiler_type=none
  4517. if test "$am_compiler_list" = ""; then
  4518. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4519. fi
  4520. am__universal=false
  4521. case " $depcc " in #(
  4522. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4523. esac
  4524. for depmode in $am_compiler_list; do
  4525. # Setup a source with many dependencies, because some compilers
  4526. # like to wrap large dependency lists on column 80 (with \), and
  4527. # we should not choose a depcomp mode which is confused by this.
  4528. #
  4529. # We need to recreate these files for each test, as the compiler may
  4530. # overwrite some of them when testing with obscure command lines.
  4531. # This happens at least with the AIX C compiler.
  4532. : > sub/conftest.c
  4533. for i in 1 2 3 4 5 6; do
  4534. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4535. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4536. # Solaris 8's {/usr,}/bin/sh.
  4537. touch sub/conftst$i.h
  4538. done
  4539. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4540. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4541. # mode. It turns out that the SunPro C++ compiler does not properly
  4542. # handle `-M -o', and we need to detect this. Also, some Intel
  4543. # versions had trouble with output in subdirs
  4544. am__obj=sub/conftest.${OBJEXT-o}
  4545. am__minus_obj="-o $am__obj"
  4546. case $depmode in
  4547. gcc)
  4548. # This depmode causes a compiler race in universal mode.
  4549. test "$am__universal" = false || continue
  4550. ;;
  4551. nosideeffect)
  4552. # after this tag, mechanisms are not by side-effect, so they'll
  4553. # only be used when explicitly requested
  4554. if test "x$enable_dependency_tracking" = xyes; then
  4555. continue
  4556. else
  4557. break
  4558. fi
  4559. ;;
  4560. msvisualcpp | msvcmsys)
  4561. # This compiler won't grok `-c -o', but also, the minuso test has
  4562. # not run yet. These depmodes are late enough in the game, and
  4563. # so weak that their functioning should not be impacted.
  4564. am__obj=conftest.${OBJEXT-o}
  4565. am__minus_obj=
  4566. ;;
  4567. none) break ;;
  4568. esac
  4569. if depmode=$depmode \
  4570. source=sub/conftest.c object=$am__obj \
  4571. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4572. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4573. >/dev/null 2>conftest.err &&
  4574. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4575. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4576. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4577. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4578. # icc doesn't choke on unknown options, it will just issue warnings
  4579. # or remarks (even with -Werror). So we grep stderr for any message
  4580. # that says an option was ignored or not supported.
  4581. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4582. # icc: Command line warning: ignoring option '-M'; no argument required
  4583. # The diagnosis changed in icc 8.0:
  4584. # icc: Command line remark: option '-MP' not supported
  4585. if (grep 'ignoring option' conftest.err ||
  4586. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4587. am_cv_CC_dependencies_compiler_type=$depmode
  4588. break
  4589. fi
  4590. fi
  4591. done
  4592. cd ..
  4593. rm -rf conftest.dir
  4594. else
  4595. am_cv_CC_dependencies_compiler_type=none
  4596. fi
  4597. fi
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4599. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4600. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4601. if
  4602. test "x$enable_dependency_tracking" != xno \
  4603. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4604. am__fastdepCC_TRUE=
  4605. am__fastdepCC_FALSE='#'
  4606. else
  4607. am__fastdepCC_TRUE='#'
  4608. am__fastdepCC_FALSE=
  4609. fi
  4610. if test -n "$ac_tool_prefix"; then
  4611. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4612. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4614. $as_echo_n "checking for $ac_word... " >&6; }
  4615. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if test -n "$RANLIB"; then
  4619. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4620. else
  4621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4622. for as_dir in $PATH
  4623. do
  4624. IFS=$as_save_IFS
  4625. test -z "$as_dir" && as_dir=.
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4628. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi
  4636. fi
  4637. RANLIB=$ac_cv_prog_RANLIB
  4638. if test -n "$RANLIB"; then
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4640. $as_echo "$RANLIB" >&6; }
  4641. else
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. fi
  4645. fi
  4646. if test -z "$ac_cv_prog_RANLIB"; then
  4647. ac_ct_RANLIB=$RANLIB
  4648. # Extract the first word of "ranlib", so it can be a program name with args.
  4649. set dummy ranlib; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$ac_ct_RANLIB"; then
  4656. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4657. else
  4658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659. for as_dir in $PATH
  4660. do
  4661. IFS=$as_save_IFS
  4662. test -z "$as_dir" && as_dir=.
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4665. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667. break 2
  4668. fi
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. fi
  4673. fi
  4674. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4675. if test -n "$ac_ct_RANLIB"; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4677. $as_echo "$ac_ct_RANLIB" >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4680. $as_echo "no" >&6; }
  4681. fi
  4682. if test "x$ac_ct_RANLIB" = x; then
  4683. RANLIB=":"
  4684. else
  4685. case $cross_compiling:$ac_tool_warned in
  4686. yes:)
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4689. ac_tool_warned=yes ;;
  4690. esac
  4691. RANLIB=$ac_ct_RANLIB
  4692. fi
  4693. else
  4694. RANLIB="$ac_cv_prog_RANLIB"
  4695. fi
  4696. for ac_prog in 'bison -y' byacc
  4697. do
  4698. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4699. set dummy $ac_prog; ac_word=$2
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4701. $as_echo_n "checking for $ac_word... " >&6; }
  4702. if test "${ac_cv_prog_YACC+set}" = set; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if test -n "$YACC"; then
  4706. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4715. ac_cv_prog_YACC="$ac_prog"
  4716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. fi
  4723. fi
  4724. YACC=$ac_cv_prog_YACC
  4725. if test -n "$YACC"; then
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4727. $as_echo "$YACC" >&6; }
  4728. else
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4730. $as_echo "no" >&6; }
  4731. fi
  4732. test -n "$YACC" && break
  4733. done
  4734. test -n "$YACC" || YACC="yacc"
  4735. # Setting language choice
  4736. ac_ext=cpp
  4737. ac_cpp='$CXXCPP $CPPFLAGS'
  4738. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4739. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4740. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4741. # Enable system extensions
  4742. ac_ext=cpp
  4743. ac_cpp='$CXXCPP $CPPFLAGS'
  4744. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4745. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4746. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4748. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4749. if test -z "$CXXCPP"; then
  4750. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. # Double quotes because CXXCPP needs to be expanded
  4754. for CXXCPP in "$CXX -E" "/lib/cpp"
  4755. do
  4756. ac_preproc_ok=false
  4757. for ac_cxx_preproc_warn_flag in '' yes
  4758. do
  4759. # Use a header file that comes with gcc, so configuring glibc
  4760. # with a fresh cross-compiler works.
  4761. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4762. # <limits.h> exists even on freestanding compilers.
  4763. # On the NeXT, cc -E runs the code through the compiler's parser,
  4764. # not just through cpp. "Syntax error" is here to catch this case.
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. #ifdef __STDC__
  4768. # include <limits.h>
  4769. #else
  4770. # include <assert.h>
  4771. #endif
  4772. Syntax error
  4773. _ACEOF
  4774. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4775. else
  4776. # Broken: fails on valid input.
  4777. continue
  4778. fi
  4779. rm -f conftest.err conftest.$ac_ext
  4780. # OK, works on sane cases. Now check whether nonexistent headers
  4781. # can be detected and how.
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. #include <ac_nonexistent.h>
  4785. _ACEOF
  4786. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4787. # Broken: success on invalid input.
  4788. continue
  4789. else
  4790. # Passes both tests.
  4791. ac_preproc_ok=:
  4792. break
  4793. fi
  4794. rm -f conftest.err conftest.$ac_ext
  4795. done
  4796. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4797. rm -f conftest.err conftest.$ac_ext
  4798. if $ac_preproc_ok; then :
  4799. break
  4800. fi
  4801. done
  4802. ac_cv_prog_CXXCPP=$CXXCPP
  4803. fi
  4804. CXXCPP=$ac_cv_prog_CXXCPP
  4805. else
  4806. ac_cv_prog_CXXCPP=$CXXCPP
  4807. fi
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4809. $as_echo "$CXXCPP" >&6; }
  4810. ac_preproc_ok=false
  4811. for ac_cxx_preproc_warn_flag in '' yes
  4812. do
  4813. # Use a header file that comes with gcc, so configuring glibc
  4814. # with a fresh cross-compiler works.
  4815. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4816. # <limits.h> exists even on freestanding compilers.
  4817. # On the NeXT, cc -E runs the code through the compiler's parser,
  4818. # not just through cpp. "Syntax error" is here to catch this case.
  4819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4820. /* end confdefs.h. */
  4821. #ifdef __STDC__
  4822. # include <limits.h>
  4823. #else
  4824. # include <assert.h>
  4825. #endif
  4826. Syntax error
  4827. _ACEOF
  4828. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4829. else
  4830. # Broken: fails on valid input.
  4831. continue
  4832. fi
  4833. rm -f conftest.err conftest.$ac_ext
  4834. # OK, works on sane cases. Now check whether nonexistent headers
  4835. # can be detected and how.
  4836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4837. /* end confdefs.h. */
  4838. #include <ac_nonexistent.h>
  4839. _ACEOF
  4840. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4841. # Broken: success on invalid input.
  4842. continue
  4843. else
  4844. # Passes both tests.
  4845. ac_preproc_ok=:
  4846. break
  4847. fi
  4848. rm -f conftest.err conftest.$ac_ext
  4849. done
  4850. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4851. rm -f conftest.err conftest.$ac_ext
  4852. if $ac_preproc_ok; then :
  4853. else
  4854. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4855. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4856. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4857. See \`config.log' for more details." "$LINENO" 5; }
  4858. fi
  4859. ac_ext=cpp
  4860. ac_cpp='$CXXCPP $CPPFLAGS'
  4861. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4862. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4863. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4865. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4866. if test "${ac_cv_path_GREP+set}" = set; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -z "$GREP"; then
  4870. ac_path_GREP_found=false
  4871. # Loop through the user's path and test for each of PROGNAME-LIST
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_prog in grep ggrep; do
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4880. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4881. # Check for GNU ac_path_GREP and select it if it is found.
  4882. # Check for GNU $ac_path_GREP
  4883. case `"$ac_path_GREP" --version 2>&1` in
  4884. *GNU*)
  4885. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4886. *)
  4887. ac_count=0
  4888. $as_echo_n 0123456789 >"conftest.in"
  4889. while :
  4890. do
  4891. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4892. mv "conftest.tmp" "conftest.in"
  4893. cp "conftest.in" "conftest.nl"
  4894. $as_echo 'GREP' >> "conftest.nl"
  4895. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4896. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4897. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4898. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4899. # Best one so far, save it but keep looking for a better one
  4900. ac_cv_path_GREP="$ac_path_GREP"
  4901. ac_path_GREP_max=$ac_count
  4902. fi
  4903. # 10*(2^10) chars as input seems more than enough
  4904. test $ac_count -gt 10 && break
  4905. done
  4906. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4907. esac
  4908. $ac_path_GREP_found && break 3
  4909. done
  4910. done
  4911. done
  4912. IFS=$as_save_IFS
  4913. if test -z "$ac_cv_path_GREP"; then
  4914. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4915. fi
  4916. else
  4917. ac_cv_path_GREP=$GREP
  4918. fi
  4919. fi
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4921. $as_echo "$ac_cv_path_GREP" >&6; }
  4922. GREP="$ac_cv_path_GREP"
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4924. $as_echo_n "checking for egrep... " >&6; }
  4925. if test "${ac_cv_path_EGREP+set}" = set; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4929. then ac_cv_path_EGREP="$GREP -E"
  4930. else
  4931. if test -z "$EGREP"; then
  4932. ac_path_EGREP_found=false
  4933. # Loop through the user's path and test for each of PROGNAME-LIST
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_prog in egrep; do
  4940. for ac_exec_ext in '' $ac_executable_extensions; do
  4941. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4942. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4943. # Check for GNU ac_path_EGREP and select it if it is found.
  4944. # Check for GNU $ac_path_EGREP
  4945. case `"$ac_path_EGREP" --version 2>&1` in
  4946. *GNU*)
  4947. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4948. *)
  4949. ac_count=0
  4950. $as_echo_n 0123456789 >"conftest.in"
  4951. while :
  4952. do
  4953. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4954. mv "conftest.tmp" "conftest.in"
  4955. cp "conftest.in" "conftest.nl"
  4956. $as_echo 'EGREP' >> "conftest.nl"
  4957. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4958. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4959. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4960. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4961. # Best one so far, save it but keep looking for a better one
  4962. ac_cv_path_EGREP="$ac_path_EGREP"
  4963. ac_path_EGREP_max=$ac_count
  4964. fi
  4965. # 10*(2^10) chars as input seems more than enough
  4966. test $ac_count -gt 10 && break
  4967. done
  4968. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4969. esac
  4970. $ac_path_EGREP_found && break 3
  4971. done
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. if test -z "$ac_cv_path_EGREP"; then
  4976. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4977. fi
  4978. else
  4979. ac_cv_path_EGREP=$EGREP
  4980. fi
  4981. fi
  4982. fi
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4984. $as_echo "$ac_cv_path_EGREP" >&6; }
  4985. EGREP="$ac_cv_path_EGREP"
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4987. $as_echo_n "checking for ANSI C header files... " >&6; }
  4988. if test "${ac_cv_header_stdc+set}" = set; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4992. /* end confdefs.h. */
  4993. #include <stdlib.h>
  4994. #include <stdarg.h>
  4995. #include <string.h>
  4996. #include <float.h>
  4997. int
  4998. main ()
  4999. {
  5000. ;
  5001. return 0;
  5002. }
  5003. _ACEOF
  5004. if ac_fn_cxx_try_compile "$LINENO"; then :
  5005. ac_cv_header_stdc=yes
  5006. else
  5007. ac_cv_header_stdc=no
  5008. fi
  5009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5010. if test $ac_cv_header_stdc = yes; then
  5011. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5013. /* end confdefs.h. */
  5014. #include <string.h>
  5015. _ACEOF
  5016. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5017. $EGREP "memchr" >/dev/null 2>&1; then :
  5018. else
  5019. ac_cv_header_stdc=no
  5020. fi
  5021. rm -f conftest*
  5022. fi
  5023. if test $ac_cv_header_stdc = yes; then
  5024. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5026. /* end confdefs.h. */
  5027. #include <stdlib.h>
  5028. _ACEOF
  5029. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5030. $EGREP "free" >/dev/null 2>&1; then :
  5031. else
  5032. ac_cv_header_stdc=no
  5033. fi
  5034. rm -f conftest*
  5035. fi
  5036. if test $ac_cv_header_stdc = yes; then
  5037. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5038. if test "$cross_compiling" = yes; then :
  5039. :
  5040. else
  5041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5042. /* end confdefs.h. */
  5043. #include <ctype.h>
  5044. #include <stdlib.h>
  5045. #if ((' ' & 0x0FF) == 0x020)
  5046. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5047. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5048. #else
  5049. # define ISLOWER(c) \
  5050. (('a' <= (c) && (c) <= 'i') \
  5051. || ('j' <= (c) && (c) <= 'r') \
  5052. || ('s' <= (c) && (c) <= 'z'))
  5053. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5054. #endif
  5055. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5056. int
  5057. main ()
  5058. {
  5059. int i;
  5060. for (i = 0; i < 256; i++)
  5061. if (XOR (islower (i), ISLOWER (i))
  5062. || toupper (i) != TOUPPER (i))
  5063. return 2;
  5064. return 0;
  5065. }
  5066. _ACEOF
  5067. if ac_fn_cxx_try_run "$LINENO"; then :
  5068. else
  5069. ac_cv_header_stdc=no
  5070. fi
  5071. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5072. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5073. fi
  5074. fi
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5077. $as_echo "$ac_cv_header_stdc" >&6; }
  5078. if test $ac_cv_header_stdc = yes; then
  5079. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5080. fi
  5081. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5082. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5083. inttypes.h stdint.h unistd.h
  5084. do :
  5085. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5086. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5087. "
  5088. eval as_val=\$$as_ac_Header
  5089. if test "x$as_val" = x""yes; then :
  5090. cat >>confdefs.h <<_ACEOF
  5091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5092. _ACEOF
  5093. fi
  5094. done
  5095. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5096. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5097. MINIX=yes
  5098. else
  5099. MINIX=
  5100. fi
  5101. if test "$MINIX" = yes; then
  5102. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5103. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5104. $as_echo "#define _MINIX 1" >>confdefs.h
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5107. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5108. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5112. /* end confdefs.h. */
  5113. # define __EXTENSIONS__ 1
  5114. $ac_includes_default
  5115. int
  5116. main ()
  5117. {
  5118. ;
  5119. return 0;
  5120. }
  5121. _ACEOF
  5122. if ac_fn_cxx_try_compile "$LINENO"; then :
  5123. ac_cv_safe_to_define___extensions__=yes
  5124. else
  5125. ac_cv_safe_to_define___extensions__=no
  5126. fi
  5127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5128. fi
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5130. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5131. test $ac_cv_safe_to_define___extensions__ = yes &&
  5132. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5133. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5134. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5135. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5136. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5137. # Check pkg-config is available
  5138. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5139. if test -n "$ac_tool_prefix"; then
  5140. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5141. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5143. $as_echo_n "checking for $ac_word... " >&6; }
  5144. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. case $PKG_CONFIG in
  5148. [\\/]* | ?:[\\/]*)
  5149. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5150. ;;
  5151. *)
  5152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5153. for as_dir in $PATH
  5154. do
  5155. IFS=$as_save_IFS
  5156. test -z "$as_dir" && as_dir=.
  5157. for ac_exec_ext in '' $ac_executable_extensions; do
  5158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5159. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5161. break 2
  5162. fi
  5163. done
  5164. done
  5165. IFS=$as_save_IFS
  5166. ;;
  5167. esac
  5168. fi
  5169. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5170. if test -n "$PKG_CONFIG"; then
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5172. $as_echo "$PKG_CONFIG" >&6; }
  5173. else
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5175. $as_echo "no" >&6; }
  5176. fi
  5177. fi
  5178. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5179. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5180. # Extract the first word of "pkg-config", so it can be a program name with args.
  5181. set dummy pkg-config; ac_word=$2
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5183. $as_echo_n "checking for $ac_word... " >&6; }
  5184. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. case $ac_pt_PKG_CONFIG in
  5188. [\\/]* | ?:[\\/]*)
  5189. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5190. ;;
  5191. *)
  5192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5193. for as_dir in $PATH
  5194. do
  5195. IFS=$as_save_IFS
  5196. test -z "$as_dir" && as_dir=.
  5197. for ac_exec_ext in '' $ac_executable_extensions; do
  5198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5199. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5201. break 2
  5202. fi
  5203. done
  5204. done
  5205. IFS=$as_save_IFS
  5206. ;;
  5207. esac
  5208. fi
  5209. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5210. if test -n "$ac_pt_PKG_CONFIG"; then
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5212. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5213. else
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5215. $as_echo "no" >&6; }
  5216. fi
  5217. if test "x$ac_pt_PKG_CONFIG" = x; then
  5218. PKG_CONFIG=""
  5219. else
  5220. case $cross_compiling:$ac_tool_warned in
  5221. yes:)
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5224. ac_tool_warned=yes ;;
  5225. esac
  5226. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5227. fi
  5228. else
  5229. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5230. fi
  5231. fi
  5232. if test -n "$PKG_CONFIG"; then
  5233. _pkg_min_version=0.20
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5235. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5236. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5238. $as_echo "yes" >&6; }
  5239. else
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5241. $as_echo "no" >&6; }
  5242. PKG_CONFIG=""
  5243. fi
  5244. fi
  5245. # Checks for libraries.
  5246. if test "x$with_libxml2" = "xyes"; then
  5247. # Check whether --with-xml-prefix was given.
  5248. if test "${with_xml_prefix+set}" = set; then :
  5249. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5250. else
  5251. xml_config_prefix=""
  5252. fi
  5253. # Check whether --with-xml-exec-prefix was given.
  5254. if test "${with_xml_exec_prefix+set}" = set; then :
  5255. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5256. else
  5257. xml_config_exec_prefix=""
  5258. fi
  5259. # Check whether --enable-xmltest was given.
  5260. if test "${enable_xmltest+set}" = set; then :
  5261. enableval=$enable_xmltest;
  5262. else
  5263. enable_xmltest=yes
  5264. fi
  5265. if test x$xml_config_exec_prefix != x ; then
  5266. xml_config_args="$xml_config_args"
  5267. if test x${XML2_CONFIG+set} != xset ; then
  5268. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5269. fi
  5270. fi
  5271. if test x$xml_config_prefix != x ; then
  5272. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5273. if test x${XML2_CONFIG+set} != xset ; then
  5274. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5275. fi
  5276. fi
  5277. # Extract the first word of "xml2-config", so it can be a program name with args.
  5278. set dummy xml2-config; ac_word=$2
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5280. $as_echo_n "checking for $ac_word... " >&6; }
  5281. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5282. $as_echo_n "(cached) " >&6
  5283. else
  5284. case $XML2_CONFIG in
  5285. [\\/]* | ?:[\\/]*)
  5286. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5287. ;;
  5288. *)
  5289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5290. for as_dir in $PATH
  5291. do
  5292. IFS=$as_save_IFS
  5293. test -z "$as_dir" && as_dir=.
  5294. for ac_exec_ext in '' $ac_executable_extensions; do
  5295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5296. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5298. break 2
  5299. fi
  5300. done
  5301. done
  5302. IFS=$as_save_IFS
  5303. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5304. ;;
  5305. esac
  5306. fi
  5307. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5308. if test -n "$XML2_CONFIG"; then
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5310. $as_echo "$XML2_CONFIG" >&6; }
  5311. else
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5313. $as_echo "no" >&6; }
  5314. fi
  5315. min_xml_version=2.6.24
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5317. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5318. no_xml=""
  5319. if test "$XML2_CONFIG" = "no" ; then
  5320. no_xml=yes
  5321. else
  5322. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5323. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5324. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5325. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5326. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5327. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5328. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5330. if test "x$enable_xmltest" = "xyes" ; then
  5331. ac_save_CPPFLAGS="$CPPFLAGS"
  5332. ac_save_LIBS="$LIBS"
  5333. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5334. LIBS="$XML_LIBS $LIBS"
  5335. rm -f conf.xmltest
  5336. if test "$cross_compiling" = yes; then :
  5337. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5338. else
  5339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5340. /* end confdefs.h. */
  5341. #include <stdlib.h>
  5342. #include <stdio.h>
  5343. #include <string.h>
  5344. #include <libxml/xmlversion.h>
  5345. int
  5346. main()
  5347. {
  5348. int xml_major_version, xml_minor_version, xml_micro_version;
  5349. int major, minor, micro;
  5350. char *tmp_version;
  5351. system("touch conf.xmltest");
  5352. /* Capture xml2-config output via autoconf/configure variables */
  5353. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5354. tmp_version = (char *)strdup("$min_xml_version");
  5355. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5356. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5357. exit(1);
  5358. }
  5359. free(tmp_version);
  5360. /* Capture the version information from the header files */
  5361. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5362. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5363. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5364. exit(1);
  5365. }
  5366. free(tmp_version);
  5367. /* Compare xml2-config output to the libxml headers */
  5368. if ((xml_major_version != $xml_config_major_version) ||
  5369. (xml_minor_version != $xml_config_minor_version) ||
  5370. (xml_micro_version != $xml_config_micro_version))
  5371. {
  5372. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5373. xml_major_version, xml_minor_version, xml_micro_version);
  5374. printf("*** xml2-config (version %d.%d.%d)\n",
  5375. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5376. return 1;
  5377. }
  5378. /* Compare the headers to the library to make sure we match */
  5379. /* Less than ideal -- doesn't provide us with return value feedback,
  5380. * only exits if there's a serious mismatch between header and library.
  5381. */
  5382. LIBXML_TEST_VERSION;
  5383. /* Test that the library is greater than our minimum version */
  5384. if ((xml_major_version > major) ||
  5385. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5386. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5387. (xml_micro_version >= micro)))
  5388. {
  5389. return 0;
  5390. }
  5391. else
  5392. {
  5393. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5394. xml_major_version, xml_minor_version, xml_micro_version);
  5395. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5396. major, minor, micro);
  5397. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5398. printf("***\n");
  5399. printf("*** If you have already installed a sufficiently new version, this error\n");
  5400. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5401. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5402. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5403. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5404. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5405. printf("*** so that the correct libraries are found at run-time))\n");
  5406. }
  5407. return 1;
  5408. }
  5409. _ACEOF
  5410. if ac_fn_cxx_try_run "$LINENO"; then :
  5411. else
  5412. no_xml=yes
  5413. fi
  5414. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5415. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5416. fi
  5417. CPPFLAGS="$ac_save_CPPFLAGS"
  5418. LIBS="$ac_save_LIBS"
  5419. fi
  5420. fi
  5421. if test "x$no_xml" = x ; then
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5423. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5424. have_libxml2=yes
  5425. else
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. if test "$XML2_CONFIG" = "no" ; then
  5429. echo "*** The xml2-config script installed by LIBXML could not be found"
  5430. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5431. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5432. echo "*** full path to xml2-config."
  5433. else
  5434. if test -f conf.xmltest ; then
  5435. :
  5436. else
  5437. echo "*** Could not run libxml test program, checking why..."
  5438. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5439. LIBS="$LIBS $XML_LIBS"
  5440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5441. /* end confdefs.h. */
  5442. #include <libxml/xmlversion.h>
  5443. #include <stdio.h>
  5444. int
  5445. main ()
  5446. {
  5447. LIBXML_TEST_VERSION; return 0;
  5448. ;
  5449. return 0;
  5450. }
  5451. _ACEOF
  5452. if ac_fn_cxx_try_link "$LINENO"; then :
  5453. echo "*** The test program compiled, but did not run. This usually means"
  5454. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5455. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5456. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5457. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5458. echo "*** is required on your system"
  5459. echo "***"
  5460. echo "*** If you have an old version installed, it is best to remove it, although"
  5461. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5462. else
  5463. echo "*** The test program failed to compile or link. See the file config.log for the"
  5464. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5465. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5466. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5467. fi
  5468. rm -f core conftest.err conftest.$ac_objext \
  5469. conftest$ac_exeext conftest.$ac_ext
  5470. CPPFLAGS="$ac_save_CPPFLAGS"
  5471. LIBS="$ac_save_LIBS"
  5472. fi
  5473. fi
  5474. XML_CPPFLAGS=""
  5475. XML_LIBS=""
  5476. :
  5477. fi
  5478. rm -f conf.xmltest
  5479. if test "x$have_libxml2" = "xyes"; then
  5480. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5481. elif test "x$with_libxml2_requested" = "xyes"; then
  5482. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5484. as_fn_error "libxml2 is requested but not found in the system.
  5485. See \`config.log' for more details." "$LINENO" 5; }
  5486. fi
  5487. fi
  5488. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5489. # Check whether --with-libexpat-prefix was given.
  5490. if test "${with_libexpat_prefix+set}" = set; then :
  5491. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5492. else
  5493. libexpat_prefix=""
  5494. fi
  5495. if test "x$libexpat_prefix" = "x"; then
  5496. libexpat_prefix="/usr"
  5497. fi
  5498. libexpat_prefix_lib=$libexpat_prefix/lib
  5499. libexpat_prefix_include=$libexpat_prefix/include
  5500. LIBS_save=$LIBS
  5501. CPPFLAGS_save=$CPPFLAGS
  5502. LIBS="-L$libexpat_prefix_lib $LIBS"
  5503. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5505. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5506. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5507. $as_echo_n "(cached) " >&6
  5508. else
  5509. ac_check_lib_save_LIBS=$LIBS
  5510. LIBS="-lexpat $LIBS"
  5511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5512. /* end confdefs.h. */
  5513. /* Override any GCC internal prototype to avoid an error.
  5514. Use char because int might match the return type of a GCC
  5515. builtin and then its argument prototype would still apply. */
  5516. #ifdef __cplusplus
  5517. extern "C"
  5518. #endif
  5519. char XML_ParserCreate ();
  5520. int
  5521. main ()
  5522. {
  5523. return XML_ParserCreate ();
  5524. ;
  5525. return 0;
  5526. }
  5527. _ACEOF
  5528. if ac_fn_cxx_try_link "$LINENO"; then :
  5529. ac_cv_lib_expat_XML_ParserCreate=yes
  5530. else
  5531. ac_cv_lib_expat_XML_ParserCreate=no
  5532. fi
  5533. rm -f core conftest.err conftest.$ac_objext \
  5534. conftest$ac_exeext conftest.$ac_ext
  5535. LIBS=$ac_check_lib_save_LIBS
  5536. fi
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5538. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5539. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5540. have_libexpat=yes
  5541. fi
  5542. if test "x$have_libexpat" = "xyes"; then
  5543. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5544. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5545. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5546. fi
  5547. LIBS=$LIBS_save
  5548. CPPFLAGS=$CPPFLAGS_save
  5549. if test "x$have_libexpat" != "xyes" &&
  5550. test "x$with_libexpat_requested" = "xyes"; then
  5551. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5552. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5553. as_fn_error "libexpat is requested but not found in the system.
  5554. See \`config.log' for more details." "$LINENO" 5; }
  5555. fi
  5556. fi
  5557. if test "x$with_sqlite3" = "xyes"; then
  5558. # Check whether --with-sqlite3-prefix was given.
  5559. if test "${with_sqlite3_prefix+set}" = set; then :
  5560. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5561. else
  5562. sqlite3_prefix=""
  5563. fi
  5564. if test "x$sqlite3_prefix" = "x"; then
  5565. sqlite3_prefix="/usr"
  5566. fi
  5567. LIBS_save=$LIBS
  5568. CPPFLAGS_save=$CPPFLAGS
  5569. pkg_failed=no
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5571. $as_echo_n "checking for SQLITE3... " >&6; }
  5572. if test -n "$SQLITE3_CFLAGS"; then
  5573. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5574. elif test -n "$PKG_CONFIG"; then
  5575. if test -n "$PKG_CONFIG" && \
  5576. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5577. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5578. ac_status=$?
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }; then
  5581. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5582. else
  5583. pkg_failed=yes
  5584. fi
  5585. else
  5586. pkg_failed=untried
  5587. fi
  5588. if test -n "$SQLITE3_LIBS"; then
  5589. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5590. elif test -n "$PKG_CONFIG"; then
  5591. if test -n "$PKG_CONFIG" && \
  5592. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5593. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5594. ac_status=$?
  5595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5596. test $ac_status = 0; }; then
  5597. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5598. else
  5599. pkg_failed=yes
  5600. fi
  5601. else
  5602. pkg_failed=untried
  5603. fi
  5604. if test $pkg_failed = yes; then
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5608. _pkg_short_errors_supported=yes
  5609. else
  5610. _pkg_short_errors_supported=no
  5611. fi
  5612. if test $_pkg_short_errors_supported = yes; then
  5613. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
  5614. else
  5615. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
  5616. fi
  5617. # Put the nasty error message in config.log where it belongs
  5618. echo "$SQLITE3_PKG_ERRORS" >&5
  5619. have_sqlite3=no
  5620. elif test $pkg_failed = untried; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. have_sqlite3=no
  5624. else
  5625. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5626. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5628. $as_echo "yes" >&6; }
  5629. have_sqlite3=yes
  5630. fi
  5631. if test "x$have_sqlite3" != "xyes"; then
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5633. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5634. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5635. sqlite3_prefix_include=$sqlite3_prefix/include
  5636. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5637. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5639. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5640. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. ac_check_lib_save_LIBS=$LIBS
  5644. LIBS="-lsqlite3 $LIBS"
  5645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5646. /* end confdefs.h. */
  5647. /* Override any GCC internal prototype to avoid an error.
  5648. Use char because int might match the return type of a GCC
  5649. builtin and then its argument prototype would still apply. */
  5650. #ifdef __cplusplus
  5651. extern "C"
  5652. #endif
  5653. char sqlite3_open ();
  5654. int
  5655. main ()
  5656. {
  5657. return sqlite3_open ();
  5658. ;
  5659. return 0;
  5660. }
  5661. _ACEOF
  5662. if ac_fn_cxx_try_link "$LINENO"; then :
  5663. ac_cv_lib_sqlite3_sqlite3_open=yes
  5664. else
  5665. ac_cv_lib_sqlite3_sqlite3_open=no
  5666. fi
  5667. rm -f core conftest.err conftest.$ac_objext \
  5668. conftest$ac_exeext conftest.$ac_ext
  5669. LIBS=$ac_check_lib_save_LIBS
  5670. fi
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5672. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5673. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5674. have_sqlite3=yes
  5675. fi
  5676. if test "x$have_sqlite3" = "xyes"; then
  5677. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5678. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5679. fi
  5680. fi
  5681. if test "x$have_sqlite3" = "xyes"; then
  5682. LIBS="$SQLITE3_LIBS $LIBS"
  5683. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5684. for ac_func in sqlite3_open_v2
  5685. do :
  5686. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5687. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5688. cat >>confdefs.h <<_ACEOF
  5689. #define HAVE_SQLITE3_OPEN_V2 1
  5690. _ACEOF
  5691. fi
  5692. done
  5693. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5694. fi
  5695. LIBS=$LIBS_save
  5696. CPPFLAGS=$CPPFLAGS_save
  5697. if test "x$have_sqlite3" != "xyes" &&
  5698. test "x$with_sqlite3_requested" = "xyes"; then
  5699. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5700. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5701. as_fn_error "sqlite3 is requested but not found in the system.
  5702. See \`config.log' for more details." "$LINENO" 5; }
  5703. fi
  5704. fi
  5705. if test "x$with_gnutls" = "xyes"; then
  5706. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5707. # First check the presence of libgnutls using pkg-config.
  5708. pkg_failed=no
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5710. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5711. if test -n "$LIBGNUTLS_CFLAGS"; then
  5712. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5713. elif test -n "$PKG_CONFIG"; then
  5714. if test -n "$PKG_CONFIG" && \
  5715. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5716. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5717. ac_status=$?
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5719. test $ac_status = 0; }; then
  5720. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5721. else
  5722. pkg_failed=yes
  5723. fi
  5724. else
  5725. pkg_failed=untried
  5726. fi
  5727. if test -n "$LIBGNUTLS_LIBS"; then
  5728. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5729. elif test -n "$PKG_CONFIG"; then
  5730. if test -n "$PKG_CONFIG" && \
  5731. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5732. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5733. ac_status=$?
  5734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5735. test $ac_status = 0; }; then
  5736. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5737. else
  5738. pkg_failed=yes
  5739. fi
  5740. else
  5741. pkg_failed=untried
  5742. fi
  5743. if test $pkg_failed = yes; then
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5747. _pkg_short_errors_supported=yes
  5748. else
  5749. _pkg_short_errors_supported=no
  5750. fi
  5751. if test $_pkg_short_errors_supported = yes; then
  5752. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.2.9" 2>&1`
  5753. else
  5754. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.2.9" 2>&1`
  5755. fi
  5756. # Put the nasty error message in config.log where it belongs
  5757. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5758. have_libgnutls=no
  5759. elif test $pkg_failed = untried; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. have_libgnutls=no
  5763. else
  5764. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5765. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5767. $as_echo "yes" >&6; }
  5768. have_libgnutls=yes
  5769. fi
  5770. # If no libgnutls found by pkg-config, fall back to old macro
  5771. if test "x$have_libgnutls" = "xno"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5773. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5774. # Check whether --with-libgnutls-prefix was given.
  5775. if test "${with_libgnutls_prefix+set}" = set; then :
  5776. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5777. else
  5778. libgnutls_config_prefix=""
  5779. fi
  5780. if test x$libgnutls_config_prefix != x ; then
  5781. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5782. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5783. fi
  5784. fi
  5785. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5786. set dummy libgnutls-config; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. case $LIBGNUTLS_CONFIG in
  5793. [\\/]* | ?:[\\/]*)
  5794. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5795. ;;
  5796. *)
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5804. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5812. ;;
  5813. esac
  5814. fi
  5815. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5816. if test -n "$LIBGNUTLS_CONFIG"; then
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5818. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5819. else
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. min_libgnutls_version=1.2.9
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5825. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5826. no_libgnutls=""
  5827. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5828. no_libgnutls=yes
  5829. else
  5830. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5831. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5832. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5833. ac_save_CFLAGS="$CFLAGS"
  5834. ac_save_LIBS="$LIBS"
  5835. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5836. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5837. rm -f conf.libgnutlstest
  5838. if test "$cross_compiling" = yes; then :
  5839. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5840. else
  5841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5842. /* end confdefs.h. */
  5843. #include <stdio.h>
  5844. #include <stdlib.h>
  5845. #include <string.h>
  5846. #include <gnutls/gnutls.h>
  5847. int
  5848. main ()
  5849. {
  5850. system ("touch conf.libgnutlstest");
  5851. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5852. {
  5853. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5854. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5855. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5856. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5857. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5858. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5859. printf("*** required on your system.\n");
  5860. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5861. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5862. printf("*** before re-running configure\n");
  5863. }
  5864. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5865. {
  5866. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5867. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5868. }
  5869. else
  5870. {
  5871. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5872. {
  5873. return 0;
  5874. }
  5875. else
  5876. {
  5877. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5878. gnutls_check_version(NULL) );
  5879. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5880. "$min_libgnutls_version" );
  5881. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5882. printf("*** \n");
  5883. printf("*** If you have already installed a sufficiently new version, this error\n");
  5884. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5885. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5886. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5887. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5888. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5889. printf("*** so that the correct libraries are found at run-time))\n");
  5890. }
  5891. }
  5892. return 1;
  5893. }
  5894. _ACEOF
  5895. if ac_fn_cxx_try_run "$LINENO"; then :
  5896. else
  5897. no_libgnutls=yes
  5898. fi
  5899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5901. fi
  5902. CFLAGS="$ac_save_CFLAGS"
  5903. LIBS="$ac_save_LIBS"
  5904. fi
  5905. if test "x$no_libgnutls" = x ; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5907. $as_echo "yes" >&6; }
  5908. have_libgnutls=yes
  5909. else
  5910. if test -f conf.libgnutlstest ; then
  5911. :
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5917. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5918. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5919. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5920. echo "*** full path to libgnutls-config."
  5921. else
  5922. if test -f conf.libgnutlstest ; then
  5923. :
  5924. else
  5925. echo "*** Could not run libgnutls test program, checking why..."
  5926. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5927. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. #include <stdio.h>
  5931. #include <stdlib.h>
  5932. #include <string.h>
  5933. #include <gnutls/gnutls.h>
  5934. int
  5935. main ()
  5936. {
  5937. return !!gnutls_check_version(NULL);
  5938. ;
  5939. return 0;
  5940. }
  5941. _ACEOF
  5942. if ac_fn_cxx_try_link "$LINENO"; then :
  5943. echo "*** The test program compiled, but did not run. This usually means"
  5944. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5945. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5946. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5947. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5948. echo "*** is required on your system"
  5949. echo "***"
  5950. echo "*** If you have an old version installed, it is best to remove it, although"
  5951. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5952. echo "***"
  5953. else
  5954. echo "*** The test program failed to compile or link. See the file config.log for the"
  5955. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5956. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5957. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5958. fi
  5959. rm -f core conftest.err conftest.$ac_objext \
  5960. conftest$ac_exeext conftest.$ac_ext
  5961. CFLAGS="$ac_save_CFLAGS"
  5962. LIBS="$ac_save_LIBS"
  5963. fi
  5964. fi
  5965. LIBGNUTLS_CFLAGS=""
  5966. LIBGNUTLS_LIBS=""
  5967. :
  5968. fi
  5969. rm -f conf.libgnutlstest
  5970. fi
  5971. if test "x$have_libgnutls" = "xyes"; then
  5972. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5973. elif test "x$with_gnutls_requested" = "xyes"; then
  5974. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5975. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5976. as_fn_error "gnutls is requested but not found in the system.
  5977. See \`config.log' for more details." "$LINENO" 5; }
  5978. fi
  5979. fi
  5980. if test "x$have_libgnutls" = "xyes"; then
  5981. # Check whether --with-libgcrypt-prefix was given.
  5982. if test "${with_libgcrypt_prefix+set}" = set; then :
  5983. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5984. else
  5985. libgcrypt_config_prefix=""
  5986. fi
  5987. if test x$libgcrypt_config_prefix != x ; then
  5988. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5989. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5990. fi
  5991. fi
  5992. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5993. set dummy libgcrypt-config; ac_word=$2
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5995. $as_echo_n "checking for $ac_word... " >&6; }
  5996. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. case $LIBGCRYPT_CONFIG in
  6000. [\\/]* | ?:[\\/]*)
  6001. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6002. ;;
  6003. *)
  6004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6005. for as_dir in $PATH
  6006. do
  6007. IFS=$as_save_IFS
  6008. test -z "$as_dir" && as_dir=.
  6009. for ac_exec_ext in '' $ac_executable_extensions; do
  6010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6011. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6013. break 2
  6014. fi
  6015. done
  6016. done
  6017. IFS=$as_save_IFS
  6018. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6019. ;;
  6020. esac
  6021. fi
  6022. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6023. if test -n "$LIBGCRYPT_CONFIG"; then
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6025. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6026. else
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6028. $as_echo "no" >&6; }
  6029. fi
  6030. tmp=1.2.2
  6031. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6032. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6033. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6034. else
  6035. req_libgcrypt_api=0
  6036. min_libgcrypt_version="$tmp"
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6039. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6040. ok=no
  6041. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6042. req_major=`echo $min_libgcrypt_version | \
  6043. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6044. req_minor=`echo $min_libgcrypt_version | \
  6045. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6046. req_micro=`echo $min_libgcrypt_version | \
  6047. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6048. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6049. major=`echo $libgcrypt_config_version | \
  6050. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6051. minor=`echo $libgcrypt_config_version | \
  6052. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6053. micro=`echo $libgcrypt_config_version | \
  6054. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6055. if test "$major" -gt "$req_major"; then
  6056. ok=yes
  6057. else
  6058. if test "$major" -eq "$req_major"; then
  6059. if test "$minor" -gt "$req_minor"; then
  6060. ok=yes
  6061. else
  6062. if test "$minor" -eq "$req_minor"; then
  6063. if test "$micro" -ge "$req_micro"; then
  6064. ok=yes
  6065. fi
  6066. fi
  6067. fi
  6068. fi
  6069. fi
  6070. fi
  6071. if test $ok = yes; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6073. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6074. else
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6076. $as_echo "no" >&6; }
  6077. fi
  6078. if test $ok = yes; then
  6079. # If we have a recent libgcrypt, we should also check that the
  6080. # API is compatible
  6081. if test "$req_libgcrypt_api" -gt 0 ; then
  6082. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6083. if test "$tmp" -gt 0 ; then
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6085. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6086. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6088. $as_echo "okay" >&6; }
  6089. else
  6090. ok=no
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6092. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6093. fi
  6094. fi
  6095. fi
  6096. fi
  6097. if test $ok = yes; then
  6098. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6099. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6100. have_libgcrypt=yes
  6101. else
  6102. LIBGCRYPT_CFLAGS=""
  6103. LIBGCRYPT_LIBS=""
  6104. :
  6105. fi
  6106. if test "x$have_libgcrypt" = "xyes"; then
  6107. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6108. fi
  6109. fi
  6110. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6111. # Check whether --with-openssl-prefix was given.
  6112. if test "${with_openssl_prefix+set}" = set; then :
  6113. withval=$with_openssl_prefix; openssl_prefix=$withval
  6114. else
  6115. openssl_prefix=""
  6116. fi
  6117. if test "x$openssl_prefix" = "x"; then
  6118. openssl_prefix="/usr/local"
  6119. fi
  6120. LIBS_save=$LIBS
  6121. CPPFLAGS_save=$CPPFLAGS
  6122. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6123. if test -x $PKG_CONFIG; then
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6125. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6126. $PKG_CONFIG --exists openssl
  6127. if test "$?" = "0"; then
  6128. # Use pkg-config to detect LIBS and CFLAGS
  6129. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6130. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6131. LIBS="$OPENSSL_LIBS $LIBS"
  6132. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6133. have_openssl=yes
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6135. $as_echo "yes" >&6; }
  6136. else
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6138. $as_echo "no" >&6; }
  6139. fi
  6140. fi
  6141. if test "x$have_openssl" != "xyes"; then
  6142. openssl_prefix_lib=$openssl_prefix/lib
  6143. openssl_prefix_include=$openssl_prefix/include
  6144. LIBS="-L$openssl_prefix_lib $LIBS"
  6145. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6147. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6148. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. ac_check_lib_save_LIBS=$LIBS
  6152. LIBS="-lssl $LIBS"
  6153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6154. /* end confdefs.h. */
  6155. /* Override any GCC internal prototype to avoid an error.
  6156. Use char because int might match the return type of a GCC
  6157. builtin and then its argument prototype would still apply. */
  6158. #ifdef __cplusplus
  6159. extern "C"
  6160. #endif
  6161. char SSL_library_init ();
  6162. int
  6163. main ()
  6164. {
  6165. return SSL_library_init ();
  6166. ;
  6167. return 0;
  6168. }
  6169. _ACEOF
  6170. if ac_fn_cxx_try_link "$LINENO"; then :
  6171. ac_cv_lib_ssl_SSL_library_init=yes
  6172. else
  6173. ac_cv_lib_ssl_SSL_library_init=no
  6174. fi
  6175. rm -f core conftest.err conftest.$ac_objext \
  6176. conftest$ac_exeext conftest.$ac_ext
  6177. LIBS=$ac_check_lib_save_LIBS
  6178. fi
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6180. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6181. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6182. have_openssl=yes LIBS="-lssl $LIBS"
  6183. fi
  6184. if test "x$have_openssl" = "xyes"; then
  6185. have_openssl=no
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6187. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6188. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. ac_check_lib_save_LIBS=$LIBS
  6192. LIBS="-lcrypto $LIBS"
  6193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6194. /* end confdefs.h. */
  6195. int
  6196. main ()
  6197. {
  6198. return main ();
  6199. ;
  6200. return 0;
  6201. }
  6202. _ACEOF
  6203. if ac_fn_cxx_try_link "$LINENO"; then :
  6204. ac_cv_lib_crypto_main=yes
  6205. else
  6206. ac_cv_lib_crypto_main=no
  6207. fi
  6208. rm -f core conftest.err conftest.$ac_objext \
  6209. conftest$ac_exeext conftest.$ac_ext
  6210. LIBS=$ac_check_lib_save_LIBS
  6211. fi
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6213. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6214. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6215. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6216. fi
  6217. if test "x$have_openssl" = "xyes"; then
  6218. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6219. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6220. fi
  6221. fi
  6222. fi
  6223. if test "x$have_openssl" = "xyes"; then
  6224. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6225. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6226. for ac_func in EVP_DigestInit_ex
  6227. do :
  6228. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6229. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6230. cat >>confdefs.h <<_ACEOF
  6231. #define HAVE_EVP_DIGESTINIT_EX 1
  6232. _ACEOF
  6233. have_digestinit_ex=yes
  6234. fi
  6235. done
  6236. if test "x$have_digestinit_ex" = "x"; then
  6237. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6238. fi
  6239. # search for sha256 support
  6240. for ac_func in EVP_sha256
  6241. do :
  6242. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6243. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define HAVE_EVP_SHA256 1
  6246. _ACEOF
  6247. fi
  6248. done
  6249. fi
  6250. LIBS=$LIBS_save
  6251. CPPFLAGS=$CPPFLAGS_save
  6252. if test "x$have_openssl" != "xyes" &&
  6253. test "x$with_openssl_requested" = "xyes"; then
  6254. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6255. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6256. as_fn_error "openssl is requested but not found in the system.
  6257. See \`config.log' for more details." "$LINENO" 5; }
  6258. fi
  6259. fi
  6260. if test "x$with_libcares" = "xyes"; then
  6261. # Check whether --with-libcares-prefix was given.
  6262. if test "${with_libcares_prefix+set}" = set; then :
  6263. withval=$with_libcares_prefix; libcares_prefix=$withval
  6264. else
  6265. libcares_prefix=""
  6266. fi
  6267. if test "x$libcares_prefix" = "x"; then
  6268. libcares_prefix="/usr"
  6269. fi
  6270. libcares_prefix_lib=$libcares_prefix/lib
  6271. libcares_prefix_include=$libcares_prefix/include
  6272. LIBS_save=$LIBS
  6273. CPPFLAGS_save=$CPPFLAGS
  6274. LIBS="-L$libcares_prefix_lib $LIBS"
  6275. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6277. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6278. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6279. $as_echo_n "(cached) " >&6
  6280. else
  6281. ac_check_lib_save_LIBS=$LIBS
  6282. LIBS="-lcares $LIBS"
  6283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6284. /* end confdefs.h. */
  6285. /* Override any GCC internal prototype to avoid an error.
  6286. Use char because int might match the return type of a GCC
  6287. builtin and then its argument prototype would still apply. */
  6288. #ifdef __cplusplus
  6289. extern "C"
  6290. #endif
  6291. char ares_init ();
  6292. int
  6293. main ()
  6294. {
  6295. return ares_init ();
  6296. ;
  6297. return 0;
  6298. }
  6299. _ACEOF
  6300. if ac_fn_cxx_try_link "$LINENO"; then :
  6301. ac_cv_lib_cares_ares_init=yes
  6302. else
  6303. ac_cv_lib_cares_ares_init=no
  6304. fi
  6305. rm -f core conftest.err conftest.$ac_objext \
  6306. conftest$ac_exeext conftest.$ac_ext
  6307. LIBS=$ac_check_lib_save_LIBS
  6308. fi
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6310. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6311. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6312. have_libcares=yes
  6313. fi
  6314. if test "x$have_libcares" != "xyes"; then
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6316. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6317. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. ac_check_lib_save_LIBS=$LIBS
  6321. LIBS="-lcares -lrt $LIBS"
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. /* Override any GCC internal prototype to avoid an error.
  6325. Use char because int might match the return type of a GCC
  6326. builtin and then its argument prototype would still apply. */
  6327. #ifdef __cplusplus
  6328. extern "C"
  6329. #endif
  6330. char ares_init ();
  6331. int
  6332. main ()
  6333. {
  6334. return ares_init ();
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. if ac_fn_cxx_try_link "$LINENO"; then :
  6340. ac_cv_lib_cares_ares_init=yes
  6341. else
  6342. ac_cv_lib_cares_ares_init=no
  6343. fi
  6344. rm -f core conftest.err conftest.$ac_objext \
  6345. conftest$ac_exeext conftest.$ac_ext
  6346. LIBS=$ac_check_lib_save_LIBS
  6347. fi
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6349. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6350. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6351. have_libcares=yes need_librt=yes
  6352. fi
  6353. fi
  6354. if test "x$have_libcares" = "xyes"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6356. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6358. /* end confdefs.h. */
  6359. #include <ares.h>
  6360. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6361. int
  6362. main ()
  6363. {
  6364. ares_channel channel;
  6365. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6366. ;
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. if ac_fn_cxx_try_compile "$LINENO"; then :
  6371. have_libcares1_5=yes
  6372. else
  6373. have_libcares1_5=no
  6374. fi
  6375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6377. $as_echo "$have_libcares1_5" >&6; }
  6378. if test "x$have_libcares1_5" = "xyes"; then
  6379. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6380. fi
  6381. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6382. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6383. if test "x$need_librt" = "xyes"; then
  6384. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6385. fi
  6386. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6387. fi
  6388. LIBS=$LIBS_save
  6389. CPPFLAGS=$CPPFLAGS_save
  6390. if test "x$have_libcares" != "xyes" &&
  6391. test "x$with_libcares_requested" = "xyes"; then
  6392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6394. as_fn_error "libcares is requested but not found in the system.
  6395. See \`config.log' for more details." "$LINENO" 5; }
  6396. fi
  6397. fi
  6398. # Check availability of libz
  6399. if test "x$with_libz" = "xyes"; then
  6400. # Check whether --with-libz-prefix was given.
  6401. if test "${with_libz_prefix+set}" = set; then :
  6402. withval=$with_libz_prefix; libz_prefix=$withval
  6403. else
  6404. libz_prefix=""
  6405. fi
  6406. if test "x$libz_prefix" = "x"; then
  6407. libz_prefix="/usr"
  6408. fi
  6409. libz_prefix_lib=$libz_prefix/lib
  6410. libz_prefix_include=$libz_prefix/include
  6411. LIBS_save=$LIBS
  6412. CPPFLAGS_save=$CPPFLAGS
  6413. LIBS="-L$libz_prefix_lib $LIBS"
  6414. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6416. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6417. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. ac_check_lib_save_LIBS=$LIBS
  6421. LIBS="-lz $LIBS"
  6422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6423. /* end confdefs.h. */
  6424. /* Override any GCC internal prototype to avoid an error.
  6425. Use char because int might match the return type of a GCC
  6426. builtin and then its argument prototype would still apply. */
  6427. #ifdef __cplusplus
  6428. extern "C"
  6429. #endif
  6430. char zlibVersion ();
  6431. int
  6432. main ()
  6433. {
  6434. return zlibVersion ();
  6435. ;
  6436. return 0;
  6437. }
  6438. _ACEOF
  6439. if ac_fn_cxx_try_link "$LINENO"; then :
  6440. ac_cv_lib_z_zlibVersion=yes
  6441. else
  6442. ac_cv_lib_z_zlibVersion=no
  6443. fi
  6444. rm -f core conftest.err conftest.$ac_objext \
  6445. conftest$ac_exeext conftest.$ac_ext
  6446. LIBS=$ac_check_lib_save_LIBS
  6447. fi
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6449. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6450. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6451. have_libz=yes
  6452. fi
  6453. if test "x$have_libz" = "xyes"; then
  6454. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6455. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6456. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6457. fi
  6458. LIBS=$LIBS_save
  6459. CPPFLAGS=$CPPFLAGS_save
  6460. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6461. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6462. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6463. as_fn_error "libz is requested but not found in the system.
  6464. See \`config.log' for more details." "$LINENO" 5; }
  6465. fi
  6466. fi
  6467. # Define variables based on the result of the checks for libraries.
  6468. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6469. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6470. if true; then
  6471. ENABLE_SSL_TRUE=
  6472. ENABLE_SSL_FALSE='#'
  6473. else
  6474. ENABLE_SSL_TRUE='#'
  6475. ENABLE_SSL_FALSE=
  6476. fi
  6477. else
  6478. if false; then
  6479. ENABLE_SSL_TRUE=
  6480. ENABLE_SSL_FALSE='#'
  6481. else
  6482. ENABLE_SSL_TRUE='#'
  6483. ENABLE_SSL_FALSE=
  6484. fi
  6485. fi
  6486. if test "x$have_libgnutls" = "xyes" ; then
  6487. HAVE_LIBGNUTLS_TRUE=
  6488. HAVE_LIBGNUTLS_FALSE='#'
  6489. else
  6490. HAVE_LIBGNUTLS_TRUE='#'
  6491. HAVE_LIBGNUTLS_FALSE=
  6492. fi
  6493. if test "x$have_openssl" = "xyes" ; then
  6494. HAVE_LIBSSL_TRUE=
  6495. HAVE_LIBSSL_FALSE='#'
  6496. else
  6497. HAVE_LIBSSL_TRUE='#'
  6498. HAVE_LIBSSL_FALSE=
  6499. fi
  6500. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6501. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6502. if true; then
  6503. ENABLE_MESSAGE_DIGEST_TRUE=
  6504. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6505. else
  6506. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6507. ENABLE_MESSAGE_DIGEST_FALSE=
  6508. fi
  6509. enable_message_digest=yes
  6510. else
  6511. if false; then
  6512. ENABLE_MESSAGE_DIGEST_TRUE=
  6513. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6514. else
  6515. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6516. ENABLE_MESSAGE_DIGEST_FALSE=
  6517. fi
  6518. fi
  6519. if test "x$enable_bittorrent" = "xyes" &&
  6520. test "x$enable_message_digest" = "xyes"; then
  6521. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6522. if true; then
  6523. ENABLE_BITTORRENT_TRUE=
  6524. ENABLE_BITTORRENT_FALSE='#'
  6525. else
  6526. ENABLE_BITTORRENT_TRUE='#'
  6527. ENABLE_BITTORRENT_FALSE=
  6528. fi
  6529. else
  6530. if test "x$enable_bittorrent_requested" = "xyes"; then
  6531. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6533. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6534. configuration.\
  6535. Make sure that dependent libraries are installed and configure script options\
  6536. are correct.
  6537. See \`config.log' for more details." "$LINENO" 5; }
  6538. fi
  6539. enable_bittorrent=no
  6540. if false; then
  6541. ENABLE_BITTORRENT_TRUE=
  6542. ENABLE_BITTORRENT_FALSE='#'
  6543. else
  6544. ENABLE_BITTORRENT_TRUE='#'
  6545. ENABLE_BITTORRENT_FALSE=
  6546. fi
  6547. fi
  6548. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6549. test "x$enable_metalink" = "xyes"; then
  6550. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6551. if true; then
  6552. ENABLE_METALINK_TRUE=
  6553. ENABLE_METALINK_FALSE='#'
  6554. else
  6555. ENABLE_METALINK_TRUE='#'
  6556. ENABLE_METALINK_FALSE=
  6557. fi
  6558. else
  6559. if test "x$enable_metalink_requested" = "xyes"; then
  6560. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6561. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6562. as_fn_error "metalink is requested but cannot be enabled with current\
  6563. configuration.\
  6564. Make sure that dependent libraries are installed and configure script options\
  6565. are correct.
  6566. See \`config.log' for more details." "$LINENO" 5; }
  6567. fi
  6568. enable_metalink=no
  6569. if false; then
  6570. ENABLE_METALINK_TRUE=
  6571. ENABLE_METALINK_FALSE='#'
  6572. else
  6573. ENABLE_METALINK_TRUE='#'
  6574. ENABLE_METALINK_FALSE=
  6575. fi
  6576. fi
  6577. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6578. ENABLE_METALINK_LIBXML2_TRUE=
  6579. ENABLE_METALINK_LIBXML2_FALSE='#'
  6580. else
  6581. ENABLE_METALINK_LIBXML2_TRUE='#'
  6582. ENABLE_METALINK_LIBXML2_FALSE=
  6583. fi
  6584. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6585. ENABLE_METALINK_LIBEXPAT_TRUE=
  6586. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6587. else
  6588. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6589. ENABLE_METALINK_LIBEXPAT_FALSE=
  6590. fi
  6591. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6592. enable_xml_rpc=yes
  6593. fi
  6594. if test "x$enable_xml_rpc" = "xyes"; then
  6595. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6596. fi
  6597. if test "x$enable_xml_rpc" = "xyes"; then
  6598. ENABLE_XML_RPC_TRUE=
  6599. ENABLE_XML_RPC_FALSE='#'
  6600. else
  6601. ENABLE_XML_RPC_TRUE='#'
  6602. ENABLE_XML_RPC_FALSE=
  6603. fi
  6604. if test "x$have_libxml2" = "xyes"; then
  6605. HAVE_LIBXML2_TRUE=
  6606. HAVE_LIBXML2_FALSE='#'
  6607. else
  6608. HAVE_LIBXML2_TRUE='#'
  6609. HAVE_LIBXML2_FALSE=
  6610. fi
  6611. if test "x$have_libexpat" = "xyes"; then
  6612. HAVE_LIBEXPAT_TRUE=
  6613. HAVE_LIBEXPAT_FALSE='#'
  6614. else
  6615. HAVE_LIBEXPAT_TRUE='#'
  6616. HAVE_LIBEXPAT_FALSE=
  6617. fi
  6618. if test "x$have_libcares" = "xyes"; then
  6619. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6620. if true; then
  6621. ENABLE_ASYNC_DNS_TRUE=
  6622. ENABLE_ASYNC_DNS_FALSE='#'
  6623. else
  6624. ENABLE_ASYNC_DNS_TRUE='#'
  6625. ENABLE_ASYNC_DNS_FALSE=
  6626. fi
  6627. else
  6628. if false; then
  6629. ENABLE_ASYNC_DNS_TRUE=
  6630. ENABLE_ASYNC_DNS_FALSE='#'
  6631. else
  6632. ENABLE_ASYNC_DNS_TRUE='#'
  6633. ENABLE_ASYNC_DNS_FALSE=
  6634. fi
  6635. fi
  6636. # Set conditional for libz
  6637. if test "x$have_libz" = "xyes"; then
  6638. HAVE_LIBZ_TRUE=
  6639. HAVE_LIBZ_FALSE='#'
  6640. else
  6641. HAVE_LIBZ_TRUE='#'
  6642. HAVE_LIBZ_FALSE=
  6643. fi
  6644. # Set conditional for sqlite3
  6645. if test "x$have_sqlite3" = "xyes"; then
  6646. HAVE_SQLITE3_TRUE=
  6647. HAVE_SQLITE3_FALSE='#'
  6648. else
  6649. HAVE_SQLITE3_TRUE='#'
  6650. HAVE_SQLITE3_FALSE=
  6651. fi
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6653. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6654. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. ac_func_search_save_LIBS=$LIBS
  6658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6659. /* end confdefs.h. */
  6660. /* Override any GCC internal prototype to avoid an error.
  6661. Use char because int might match the return type of a GCC
  6662. builtin and then its argument prototype would still apply. */
  6663. #ifdef __cplusplus
  6664. extern "C"
  6665. #endif
  6666. char clock_gettime ();
  6667. int
  6668. main ()
  6669. {
  6670. return clock_gettime ();
  6671. ;
  6672. return 0;
  6673. }
  6674. _ACEOF
  6675. for ac_lib in '' rt; do
  6676. if test -z "$ac_lib"; then
  6677. ac_res="none required"
  6678. else
  6679. ac_res=-l$ac_lib
  6680. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6681. fi
  6682. if ac_fn_cxx_try_link "$LINENO"; then :
  6683. ac_cv_search_clock_gettime=$ac_res
  6684. fi
  6685. rm -f core conftest.err conftest.$ac_objext \
  6686. conftest$ac_exeext
  6687. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6688. break
  6689. fi
  6690. done
  6691. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6692. else
  6693. ac_cv_search_clock_gettime=no
  6694. fi
  6695. rm conftest.$ac_ext
  6696. LIBS=$ac_func_search_save_LIBS
  6697. fi
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6699. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6700. ac_res=$ac_cv_search_clock_gettime
  6701. if test "$ac_res" != no; then :
  6702. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6703. fi
  6704. case "$target" in
  6705. *solaris*)
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6707. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6708. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. ac_func_search_save_LIBS=$LIBS
  6712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6713. /* end confdefs.h. */
  6714. /* Override any GCC internal prototype to avoid an error.
  6715. Use char because int might match the return type of a GCC
  6716. builtin and then its argument prototype would still apply. */
  6717. #ifdef __cplusplus
  6718. extern "C"
  6719. #endif
  6720. char getaddrinfo ();
  6721. int
  6722. main ()
  6723. {
  6724. return getaddrinfo ();
  6725. ;
  6726. return 0;
  6727. }
  6728. _ACEOF
  6729. for ac_lib in '' nsl socket; do
  6730. if test -z "$ac_lib"; then
  6731. ac_res="none required"
  6732. else
  6733. ac_res=-l$ac_lib
  6734. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6735. fi
  6736. if ac_fn_cxx_try_link "$LINENO"; then :
  6737. ac_cv_search_getaddrinfo=$ac_res
  6738. fi
  6739. rm -f core conftest.err conftest.$ac_objext \
  6740. conftest$ac_exeext
  6741. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6742. break
  6743. fi
  6744. done
  6745. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6746. else
  6747. ac_cv_search_getaddrinfo=no
  6748. fi
  6749. rm conftest.$ac_ext
  6750. LIBS=$ac_func_search_save_LIBS
  6751. fi
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6753. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6754. ac_res=$ac_cv_search_getaddrinfo
  6755. if test "$ac_res" != no; then :
  6756. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6757. fi
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6759. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6760. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. ac_func_search_save_LIBS=$LIBS
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. /* Override any GCC internal prototype to avoid an error.
  6767. Use char because int might match the return type of a GCC
  6768. builtin and then its argument prototype would still apply. */
  6769. #ifdef __cplusplus
  6770. extern "C"
  6771. #endif
  6772. char inet_aton ();
  6773. int
  6774. main ()
  6775. {
  6776. return inet_aton ();
  6777. ;
  6778. return 0;
  6779. }
  6780. _ACEOF
  6781. for ac_lib in '' nsl socket; do
  6782. if test -z "$ac_lib"; then
  6783. ac_res="none required"
  6784. else
  6785. ac_res=-l$ac_lib
  6786. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6787. fi
  6788. if ac_fn_cxx_try_link "$LINENO"; then :
  6789. ac_cv_search_inet_aton=$ac_res
  6790. fi
  6791. rm -f core conftest.err conftest.$ac_objext \
  6792. conftest$ac_exeext
  6793. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6794. break
  6795. fi
  6796. done
  6797. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6798. else
  6799. ac_cv_search_inet_aton=no
  6800. fi
  6801. rm conftest.$ac_ext
  6802. LIBS=$ac_func_search_save_LIBS
  6803. fi
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6805. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6806. ac_res=$ac_cv_search_inet_aton
  6807. if test "$ac_res" != no; then :
  6808. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6809. fi
  6810. ;;
  6811. esac
  6812. # Checks for header files.
  6813. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6814. # for constant arguments. Useless!
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6816. $as_echo_n "checking for working alloca.h... " >&6; }
  6817. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6818. $as_echo_n "(cached) " >&6
  6819. else
  6820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6821. /* end confdefs.h. */
  6822. #include <alloca.h>
  6823. int
  6824. main ()
  6825. {
  6826. char *p = (char *) alloca (2 * sizeof (int));
  6827. if (p) return 0;
  6828. ;
  6829. return 0;
  6830. }
  6831. _ACEOF
  6832. if ac_fn_cxx_try_link "$LINENO"; then :
  6833. ac_cv_working_alloca_h=yes
  6834. else
  6835. ac_cv_working_alloca_h=no
  6836. fi
  6837. rm -f core conftest.err conftest.$ac_objext \
  6838. conftest$ac_exeext conftest.$ac_ext
  6839. fi
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6841. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6842. if test $ac_cv_working_alloca_h = yes; then
  6843. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6844. fi
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6846. $as_echo_n "checking for alloca... " >&6; }
  6847. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6851. /* end confdefs.h. */
  6852. #ifdef __GNUC__
  6853. # define alloca __builtin_alloca
  6854. #else
  6855. # ifdef _MSC_VER
  6856. # include <malloc.h>
  6857. # define alloca _alloca
  6858. # else
  6859. # ifdef HAVE_ALLOCA_H
  6860. # include <alloca.h>
  6861. # else
  6862. # ifdef _AIX
  6863. #pragma alloca
  6864. # else
  6865. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6866. char *alloca ();
  6867. # endif
  6868. # endif
  6869. # endif
  6870. # endif
  6871. #endif
  6872. int
  6873. main ()
  6874. {
  6875. char *p = (char *) alloca (1);
  6876. if (p) return 0;
  6877. ;
  6878. return 0;
  6879. }
  6880. _ACEOF
  6881. if ac_fn_cxx_try_link "$LINENO"; then :
  6882. ac_cv_func_alloca_works=yes
  6883. else
  6884. ac_cv_func_alloca_works=no
  6885. fi
  6886. rm -f core conftest.err conftest.$ac_objext \
  6887. conftest$ac_exeext conftest.$ac_ext
  6888. fi
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6890. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6891. if test $ac_cv_func_alloca_works = yes; then
  6892. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6893. else
  6894. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6895. # that cause trouble. Some versions do not even contain alloca or
  6896. # contain a buggy version. If you still want to use their alloca,
  6897. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6898. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6899. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6901. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6902. if test "${ac_cv_os_cray+set}" = set; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6906. /* end confdefs.h. */
  6907. #if defined CRAY && ! defined CRAY2
  6908. webecray
  6909. #else
  6910. wenotbecray
  6911. #endif
  6912. _ACEOF
  6913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6914. $EGREP "webecray" >/dev/null 2>&1; then :
  6915. ac_cv_os_cray=yes
  6916. else
  6917. ac_cv_os_cray=no
  6918. fi
  6919. rm -f conftest*
  6920. fi
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6922. $as_echo "$ac_cv_os_cray" >&6; }
  6923. if test $ac_cv_os_cray = yes; then
  6924. for ac_func in _getb67 GETB67 getb67; do
  6925. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6926. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6927. eval as_val=\$$as_ac_var
  6928. if test "x$as_val" = x""yes; then :
  6929. cat >>confdefs.h <<_ACEOF
  6930. #define CRAY_STACKSEG_END $ac_func
  6931. _ACEOF
  6932. break
  6933. fi
  6934. done
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6937. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6938. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. if test "$cross_compiling" = yes; then :
  6942. ac_cv_c_stack_direction=0
  6943. else
  6944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6945. /* end confdefs.h. */
  6946. $ac_includes_default
  6947. int
  6948. find_stack_direction ()
  6949. {
  6950. static char *addr = 0;
  6951. auto char dummy;
  6952. if (addr == 0)
  6953. {
  6954. addr = &dummy;
  6955. return find_stack_direction ();
  6956. }
  6957. else
  6958. return (&dummy > addr) ? 1 : -1;
  6959. }
  6960. int
  6961. main ()
  6962. {
  6963. return find_stack_direction () < 0;
  6964. }
  6965. _ACEOF
  6966. if ac_fn_cxx_try_run "$LINENO"; then :
  6967. ac_cv_c_stack_direction=1
  6968. else
  6969. ac_cv_c_stack_direction=-1
  6970. fi
  6971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6972. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6973. fi
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6976. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6977. cat >>confdefs.h <<_ACEOF
  6978. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6979. _ACEOF
  6980. fi
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6982. $as_echo_n "checking for ANSI C header files... " >&6; }
  6983. if test "${ac_cv_header_stdc+set}" = set; then :
  6984. $as_echo_n "(cached) " >&6
  6985. else
  6986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6987. /* end confdefs.h. */
  6988. #include <stdlib.h>
  6989. #include <stdarg.h>
  6990. #include <string.h>
  6991. #include <float.h>
  6992. int
  6993. main ()
  6994. {
  6995. ;
  6996. return 0;
  6997. }
  6998. _ACEOF
  6999. if ac_fn_cxx_try_compile "$LINENO"; then :
  7000. ac_cv_header_stdc=yes
  7001. else
  7002. ac_cv_header_stdc=no
  7003. fi
  7004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7005. if test $ac_cv_header_stdc = yes; then
  7006. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7008. /* end confdefs.h. */
  7009. #include <string.h>
  7010. _ACEOF
  7011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7012. $EGREP "memchr" >/dev/null 2>&1; then :
  7013. else
  7014. ac_cv_header_stdc=no
  7015. fi
  7016. rm -f conftest*
  7017. fi
  7018. if test $ac_cv_header_stdc = yes; then
  7019. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7021. /* end confdefs.h. */
  7022. #include <stdlib.h>
  7023. _ACEOF
  7024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7025. $EGREP "free" >/dev/null 2>&1; then :
  7026. else
  7027. ac_cv_header_stdc=no
  7028. fi
  7029. rm -f conftest*
  7030. fi
  7031. if test $ac_cv_header_stdc = yes; then
  7032. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7033. if test "$cross_compiling" = yes; then :
  7034. :
  7035. else
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. #include <ctype.h>
  7039. #include <stdlib.h>
  7040. #if ((' ' & 0x0FF) == 0x020)
  7041. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7042. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7043. #else
  7044. # define ISLOWER(c) \
  7045. (('a' <= (c) && (c) <= 'i') \
  7046. || ('j' <= (c) && (c) <= 'r') \
  7047. || ('s' <= (c) && (c) <= 'z'))
  7048. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7049. #endif
  7050. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7051. int
  7052. main ()
  7053. {
  7054. int i;
  7055. for (i = 0; i < 256; i++)
  7056. if (XOR (islower (i), ISLOWER (i))
  7057. || toupper (i) != TOUPPER (i))
  7058. return 2;
  7059. return 0;
  7060. }
  7061. _ACEOF
  7062. if ac_fn_cxx_try_run "$LINENO"; then :
  7063. else
  7064. ac_cv_header_stdc=no
  7065. fi
  7066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7068. fi
  7069. fi
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7072. $as_echo "$ac_cv_header_stdc" >&6; }
  7073. if test $ac_cv_header_stdc = yes; then
  7074. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7075. fi
  7076. case "$target" in
  7077. *mingw*)
  7078. for ac_header in windows.h \
  7079. winsock2.h \
  7080. ws2tcpip.h \
  7081. mmsystem.h
  7082. do :
  7083. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7084. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7085. # include <windows.h>
  7086. #endif
  7087. "
  7088. eval as_val=\$$as_ac_Header
  7089. if test "x$as_val" = x""yes; then :
  7090. cat >>confdefs.h <<_ACEOF
  7091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7092. _ACEOF
  7093. fi
  7094. done
  7095. ;;
  7096. esac
  7097. for ac_header in argz.h \
  7098. arpa/inet.h \
  7099. fcntl.h \
  7100. float.h \
  7101. inttypes.h \
  7102. io.h \
  7103. langinfo.h \
  7104. libintl.h \
  7105. limits.h \
  7106. locale.h \
  7107. malloc.h \
  7108. netdb.h \
  7109. netinet/in.h \
  7110. poll.h \
  7111. port.h \
  7112. stddef.h \
  7113. stdint.h \
  7114. stdio_ext.h \
  7115. stdlib.h \
  7116. string.h \
  7117. strings.h \
  7118. sys/ioctl.h \
  7119. sys/param.h \
  7120. sys/socket.h \
  7121. sys/time.h \
  7122. termios.h \
  7123. unistd.h \
  7124. utime.h \
  7125. wchar.h \
  7126. ifaddrs.h
  7127. do :
  7128. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7129. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7130. eval as_val=\$$as_ac_Header
  7131. if test "x$as_val" = x""yes; then :
  7132. cat >>confdefs.h <<_ACEOF
  7133. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7134. _ACEOF
  7135. fi
  7136. done
  7137. # Checks for typedefs, structures, and compiler characteristics.
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7139. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7140. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7144. /* end confdefs.h. */
  7145. #include <stdbool.h>
  7146. #ifndef bool
  7147. "error: bool is not defined"
  7148. #endif
  7149. #ifndef false
  7150. "error: false is not defined"
  7151. #endif
  7152. #if false
  7153. "error: false is not 0"
  7154. #endif
  7155. #ifndef true
  7156. "error: true is not defined"
  7157. #endif
  7158. #if true != 1
  7159. "error: true is not 1"
  7160. #endif
  7161. #ifndef __bool_true_false_are_defined
  7162. "error: __bool_true_false_are_defined is not defined"
  7163. #endif
  7164. struct s { _Bool s: 1; _Bool t; } s;
  7165. char a[true == 1 ? 1 : -1];
  7166. char b[false == 0 ? 1 : -1];
  7167. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7168. char d[(bool) 0.5 == true ? 1 : -1];
  7169. bool e = &s;
  7170. char f[(_Bool) 0.0 == false ? 1 : -1];
  7171. char g[true];
  7172. char h[sizeof (_Bool)];
  7173. char i[sizeof s.t];
  7174. enum { j = false, k = true, l = false * true, m = true * 256 };
  7175. /* The following fails for
  7176. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7177. _Bool n[m];
  7178. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7179. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7180. # if defined __xlc__ || defined __GNUC__
  7181. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7182. reported by James Lemley on 2005-10-05; see
  7183. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7184. This test is not quite right, since xlc is allowed to
  7185. reject this program, as the initializer for xlcbug is
  7186. not one of the forms that C requires support for.
  7187. However, doing the test right would require a runtime
  7188. test, and that would make cross-compilation harder.
  7189. Let us hope that IBM fixes the xlc bug, and also adds
  7190. support for this kind of constant expression. In the
  7191. meantime, this test will reject xlc, which is OK, since
  7192. our stdbool.h substitute should suffice. We also test
  7193. this with GCC, where it should work, to detect more
  7194. quickly whether someone messes up the test in the
  7195. future. */
  7196. char digs[] = "0123456789";
  7197. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7198. # endif
  7199. /* Catch a bug in an HP-UX C compiler. See
  7200. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7201. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7202. */
  7203. _Bool q = true;
  7204. _Bool *pq = &q;
  7205. int
  7206. main ()
  7207. {
  7208. *pq |= q;
  7209. *pq |= ! q;
  7210. /* Refer to every declared value, to avoid compiler optimizations. */
  7211. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7212. + !m + !n + !o + !p + !q + !pq);
  7213. ;
  7214. return 0;
  7215. }
  7216. _ACEOF
  7217. if ac_fn_cxx_try_compile "$LINENO"; then :
  7218. ac_cv_header_stdbool_h=yes
  7219. else
  7220. ac_cv_header_stdbool_h=no
  7221. fi
  7222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7225. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7226. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7227. if test "x$ac_cv_type__Bool" = x""yes; then :
  7228. cat >>confdefs.h <<_ACEOF
  7229. #define HAVE__BOOL 1
  7230. _ACEOF
  7231. fi
  7232. if test $ac_cv_header_stdbool_h = yes; then
  7233. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7236. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7237. if test "${ac_cv_c_const+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7241. /* end confdefs.h. */
  7242. int
  7243. main ()
  7244. {
  7245. /* FIXME: Include the comments suggested by Paul. */
  7246. #ifndef __cplusplus
  7247. /* Ultrix mips cc rejects this. */
  7248. typedef int charset[2];
  7249. const charset cs;
  7250. /* SunOS 4.1.1 cc rejects this. */
  7251. char const *const *pcpcc;
  7252. char **ppc;
  7253. /* NEC SVR4.0.2 mips cc rejects this. */
  7254. struct point {int x, y;};
  7255. static struct point const zero = {0,0};
  7256. /* AIX XL C 1.02.0.0 rejects this.
  7257. It does not let you subtract one const X* pointer from another in
  7258. an arm of an if-expression whose if-part is not a constant
  7259. expression */
  7260. const char *g = "string";
  7261. pcpcc = &g + (g ? g-g : 0);
  7262. /* HPUX 7.0 cc rejects these. */
  7263. ++pcpcc;
  7264. ppc = (char**) pcpcc;
  7265. pcpcc = (char const *const *) ppc;
  7266. { /* SCO 3.2v4 cc rejects this. */
  7267. char *t;
  7268. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7269. *t++ = 0;
  7270. if (s) return 0;
  7271. }
  7272. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7273. int x[] = {25, 17};
  7274. const int *foo = &x[0];
  7275. ++foo;
  7276. }
  7277. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7278. typedef const int *iptr;
  7279. iptr p = 0;
  7280. ++p;
  7281. }
  7282. { /* AIX XL C 1.02.0.0 rejects this saying
  7283. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7284. struct s { int j; const int *ap[3]; };
  7285. struct s *b; b->j = 5;
  7286. }
  7287. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7288. const int foo = 10;
  7289. if (!foo) return 0;
  7290. }
  7291. return !cs[0] && !zero.x;
  7292. #endif
  7293. ;
  7294. return 0;
  7295. }
  7296. _ACEOF
  7297. if ac_fn_cxx_try_compile "$LINENO"; then :
  7298. ac_cv_c_const=yes
  7299. else
  7300. ac_cv_c_const=no
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7305. $as_echo "$ac_cv_c_const" >&6; }
  7306. if test $ac_cv_c_const = no; then
  7307. $as_echo "#define const /**/" >>confdefs.h
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7310. $as_echo_n "checking for inline... " >&6; }
  7311. if test "${ac_cv_c_inline+set}" = set; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. ac_cv_c_inline=no
  7315. for ac_kw in inline __inline__ __inline; do
  7316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7317. /* end confdefs.h. */
  7318. #ifndef __cplusplus
  7319. typedef int foo_t;
  7320. static $ac_kw foo_t static_foo () {return 0; }
  7321. $ac_kw foo_t foo () {return 0; }
  7322. #endif
  7323. _ACEOF
  7324. if ac_fn_cxx_try_compile "$LINENO"; then :
  7325. ac_cv_c_inline=$ac_kw
  7326. fi
  7327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7328. test "$ac_cv_c_inline" != no && break
  7329. done
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7332. $as_echo "$ac_cv_c_inline" >&6; }
  7333. case $ac_cv_c_inline in
  7334. inline | yes) ;;
  7335. *)
  7336. case $ac_cv_c_inline in
  7337. no) ac_val=;;
  7338. *) ac_val=$ac_cv_c_inline;;
  7339. esac
  7340. cat >>confdefs.h <<_ACEOF
  7341. #ifndef __cplusplus
  7342. #define inline $ac_val
  7343. #endif
  7344. _ACEOF
  7345. ;;
  7346. esac
  7347. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7348. case $ac_cv_c_int16_t in #(
  7349. no|yes) ;; #(
  7350. *)
  7351. cat >>confdefs.h <<_ACEOF
  7352. #define int16_t $ac_cv_c_int16_t
  7353. _ACEOF
  7354. ;;
  7355. esac
  7356. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7357. case $ac_cv_c_int32_t in #(
  7358. no|yes) ;; #(
  7359. *)
  7360. cat >>confdefs.h <<_ACEOF
  7361. #define int32_t $ac_cv_c_int32_t
  7362. _ACEOF
  7363. ;;
  7364. esac
  7365. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7366. case $ac_cv_c_int64_t in #(
  7367. no|yes) ;; #(
  7368. *)
  7369. cat >>confdefs.h <<_ACEOF
  7370. #define int64_t $ac_cv_c_int64_t
  7371. _ACEOF
  7372. ;;
  7373. esac
  7374. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7375. case $ac_cv_c_int8_t in #(
  7376. no|yes) ;; #(
  7377. *)
  7378. cat >>confdefs.h <<_ACEOF
  7379. #define int8_t $ac_cv_c_int8_t
  7380. _ACEOF
  7381. ;;
  7382. esac
  7383. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7384. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7385. else
  7386. cat >>confdefs.h <<_ACEOF
  7387. #define mode_t int
  7388. _ACEOF
  7389. fi
  7390. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7391. if test "x$ac_cv_type_off_t" = x""yes; then :
  7392. else
  7393. cat >>confdefs.h <<_ACEOF
  7394. #define off_t long int
  7395. _ACEOF
  7396. fi
  7397. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7398. if test "x$ac_cv_type_size_t" = x""yes; then :
  7399. else
  7400. cat >>confdefs.h <<_ACEOF
  7401. #define size_t unsigned int
  7402. _ACEOF
  7403. fi
  7404. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7405. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7406. else
  7407. cat >>confdefs.h <<_ACEOF
  7408. #define ssize_t int
  7409. _ACEOF
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7412. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7413. if test "${ac_cv_header_time+set}" = set; then :
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7417. /* end confdefs.h. */
  7418. #include <sys/types.h>
  7419. #include <sys/time.h>
  7420. #include <time.h>
  7421. int
  7422. main ()
  7423. {
  7424. if ((struct tm *) 0)
  7425. return 0;
  7426. ;
  7427. return 0;
  7428. }
  7429. _ACEOF
  7430. if ac_fn_cxx_try_compile "$LINENO"; then :
  7431. ac_cv_header_time=yes
  7432. else
  7433. ac_cv_header_time=no
  7434. fi
  7435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7436. fi
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7438. $as_echo "$ac_cv_header_time" >&6; }
  7439. if test $ac_cv_header_time = yes; then
  7440. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7443. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7444. if test "${ac_cv_struct_tm+set}" = set; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7448. /* end confdefs.h. */
  7449. #include <sys/types.h>
  7450. #include <time.h>
  7451. int
  7452. main ()
  7453. {
  7454. struct tm tm;
  7455. int *p = &tm.tm_sec;
  7456. return !p;
  7457. ;
  7458. return 0;
  7459. }
  7460. _ACEOF
  7461. if ac_fn_cxx_try_compile "$LINENO"; then :
  7462. ac_cv_struct_tm=time.h
  7463. else
  7464. ac_cv_struct_tm=sys/time.h
  7465. fi
  7466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7467. fi
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7469. $as_echo "$ac_cv_struct_tm" >&6; }
  7470. if test $ac_cv_struct_tm = sys/time.h; then
  7471. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7472. fi
  7473. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7474. case $ac_cv_c_uint16_t in #(
  7475. no|yes) ;; #(
  7476. *)
  7477. cat >>confdefs.h <<_ACEOF
  7478. #define uint16_t $ac_cv_c_uint16_t
  7479. _ACEOF
  7480. ;;
  7481. esac
  7482. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7483. case $ac_cv_c_uint32_t in #(
  7484. no|yes) ;; #(
  7485. *)
  7486. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7487. cat >>confdefs.h <<_ACEOF
  7488. #define uint32_t $ac_cv_c_uint32_t
  7489. _ACEOF
  7490. ;;
  7491. esac
  7492. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7493. case $ac_cv_c_uint64_t in #(
  7494. no|yes) ;; #(
  7495. *)
  7496. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7497. cat >>confdefs.h <<_ACEOF
  7498. #define uint64_t $ac_cv_c_uint64_t
  7499. _ACEOF
  7500. ;;
  7501. esac
  7502. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7503. case $ac_cv_c_uint8_t in #(
  7504. no|yes) ;; #(
  7505. *)
  7506. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7507. cat >>confdefs.h <<_ACEOF
  7508. #define uint8_t $ac_cv_c_uint8_t
  7509. _ACEOF
  7510. ;;
  7511. esac
  7512. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7513. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7514. else
  7515. cat >>confdefs.h <<_ACEOF
  7516. #define pid_t int
  7517. _ACEOF
  7518. fi
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7520. $as_echo_n "checking for working volatile... " >&6; }
  7521. if test "${ac_cv_c_volatile+set}" = set; then :
  7522. $as_echo_n "(cached) " >&6
  7523. else
  7524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7525. /* end confdefs.h. */
  7526. int
  7527. main ()
  7528. {
  7529. volatile int x;
  7530. int * volatile y = (int *) 0;
  7531. return !x && !y;
  7532. ;
  7533. return 0;
  7534. }
  7535. _ACEOF
  7536. if ac_fn_cxx_try_compile "$LINENO"; then :
  7537. ac_cv_c_volatile=yes
  7538. else
  7539. ac_cv_c_volatile=no
  7540. fi
  7541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7542. fi
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7544. $as_echo "$ac_cv_c_volatile" >&6; }
  7545. if test $ac_cv_c_volatile = no; then
  7546. $as_echo "#define volatile /**/" >>confdefs.h
  7547. fi
  7548. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7549. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7550. cat >>confdefs.h <<_ACEOF
  7551. #define HAVE_PTRDIFF_T 1
  7552. _ACEOF
  7553. fi
  7554. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7555. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7556. cat >>confdefs.h <<_ACEOF
  7557. #define HAVE_STRUCT_TIMESPEC 1
  7558. _ACEOF
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7561. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7562. if test "${ac_cv_c_bigendian+set}" = set; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. ac_cv_c_bigendian=unknown
  7566. # See if we're dealing with a universal compiler.
  7567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7568. /* end confdefs.h. */
  7569. #ifndef __APPLE_CC__
  7570. not a universal capable compiler
  7571. #endif
  7572. typedef int dummy;
  7573. _ACEOF
  7574. if ac_fn_cxx_try_compile "$LINENO"; then :
  7575. # Check for potential -arch flags. It is not universal unless
  7576. # there are at least two -arch flags with different values.
  7577. ac_arch=
  7578. ac_prev=
  7579. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7580. if test -n "$ac_prev"; then
  7581. case $ac_word in
  7582. i?86 | x86_64 | ppc | ppc64)
  7583. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7584. ac_arch=$ac_word
  7585. else
  7586. ac_cv_c_bigendian=universal
  7587. break
  7588. fi
  7589. ;;
  7590. esac
  7591. ac_prev=
  7592. elif test "x$ac_word" = "x-arch"; then
  7593. ac_prev=arch
  7594. fi
  7595. done
  7596. fi
  7597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7598. if test $ac_cv_c_bigendian = unknown; then
  7599. # See if sys/param.h defines the BYTE_ORDER macro.
  7600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7601. /* end confdefs.h. */
  7602. #include <sys/types.h>
  7603. #include <sys/param.h>
  7604. int
  7605. main ()
  7606. {
  7607. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7608. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7609. && LITTLE_ENDIAN)
  7610. bogus endian macros
  7611. #endif
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. if ac_fn_cxx_try_compile "$LINENO"; then :
  7617. # It does; now see whether it defined to BIG_ENDIAN or not.
  7618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7619. /* end confdefs.h. */
  7620. #include <sys/types.h>
  7621. #include <sys/param.h>
  7622. int
  7623. main ()
  7624. {
  7625. #if BYTE_ORDER != BIG_ENDIAN
  7626. not big endian
  7627. #endif
  7628. ;
  7629. return 0;
  7630. }
  7631. _ACEOF
  7632. if ac_fn_cxx_try_compile "$LINENO"; then :
  7633. ac_cv_c_bigendian=yes
  7634. else
  7635. ac_cv_c_bigendian=no
  7636. fi
  7637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7638. fi
  7639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. fi
  7641. if test $ac_cv_c_bigendian = unknown; then
  7642. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. #include <limits.h>
  7646. int
  7647. main ()
  7648. {
  7649. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7650. bogus endian macros
  7651. #endif
  7652. ;
  7653. return 0;
  7654. }
  7655. _ACEOF
  7656. if ac_fn_cxx_try_compile "$LINENO"; then :
  7657. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #include <limits.h>
  7661. int
  7662. main ()
  7663. {
  7664. #ifndef _BIG_ENDIAN
  7665. not big endian
  7666. #endif
  7667. ;
  7668. return 0;
  7669. }
  7670. _ACEOF
  7671. if ac_fn_cxx_try_compile "$LINENO"; then :
  7672. ac_cv_c_bigendian=yes
  7673. else
  7674. ac_cv_c_bigendian=no
  7675. fi
  7676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7677. fi
  7678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. if test $ac_cv_c_bigendian = unknown; then
  7681. # Compile a test program.
  7682. if test "$cross_compiling" = yes; then :
  7683. # Try to guess by grepping values from an object file.
  7684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7685. /* end confdefs.h. */
  7686. short int ascii_mm[] =
  7687. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7688. short int ascii_ii[] =
  7689. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7690. int use_ascii (int i) {
  7691. return ascii_mm[i] + ascii_ii[i];
  7692. }
  7693. short int ebcdic_ii[] =
  7694. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7695. short int ebcdic_mm[] =
  7696. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7697. int use_ebcdic (int i) {
  7698. return ebcdic_mm[i] + ebcdic_ii[i];
  7699. }
  7700. extern int foo;
  7701. int
  7702. main ()
  7703. {
  7704. return use_ascii (foo) == use_ebcdic (foo);
  7705. ;
  7706. return 0;
  7707. }
  7708. _ACEOF
  7709. if ac_fn_cxx_try_compile "$LINENO"; then :
  7710. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7711. ac_cv_c_bigendian=yes
  7712. fi
  7713. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7714. if test "$ac_cv_c_bigendian" = unknown; then
  7715. ac_cv_c_bigendian=no
  7716. else
  7717. # finding both strings is unlikely to happen, but who knows?
  7718. ac_cv_c_bigendian=unknown
  7719. fi
  7720. fi
  7721. fi
  7722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7723. else
  7724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7725. /* end confdefs.h. */
  7726. $ac_includes_default
  7727. int
  7728. main ()
  7729. {
  7730. /* Are we little or big endian? From Harbison&Steele. */
  7731. union
  7732. {
  7733. long int l;
  7734. char c[sizeof (long int)];
  7735. } u;
  7736. u.l = 1;
  7737. return u.c[sizeof (long int) - 1] == 1;
  7738. ;
  7739. return 0;
  7740. }
  7741. _ACEOF
  7742. if ac_fn_cxx_try_run "$LINENO"; then :
  7743. ac_cv_c_bigendian=no
  7744. else
  7745. ac_cv_c_bigendian=yes
  7746. fi
  7747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7749. fi
  7750. fi
  7751. fi
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7753. $as_echo "$ac_cv_c_bigendian" >&6; }
  7754. case $ac_cv_c_bigendian in #(
  7755. yes)
  7756. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7757. ;; #(
  7758. no)
  7759. ;; #(
  7760. universal)
  7761. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7762. ;; #(
  7763. *)
  7764. as_fn_error "unknown endianness
  7765. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7766. esac
  7767. # Check whether --enable-largefile was given.
  7768. if test "${enable_largefile+set}" = set; then :
  7769. enableval=$enable_largefile;
  7770. fi
  7771. if test "$enable_largefile" != no; then
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7773. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7774. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7775. $as_echo_n "(cached) " >&6
  7776. else
  7777. ac_cv_sys_largefile_CC=no
  7778. if test "$GCC" != yes; then
  7779. ac_save_CC=$CC
  7780. while :; do
  7781. # IRIX 6.2 and later do not support large files by default,
  7782. # so use the C compiler's -n32 option if that helps.
  7783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7784. /* end confdefs.h. */
  7785. #include <sys/types.h>
  7786. /* Check that off_t can represent 2**63 - 1 correctly.
  7787. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7788. since some C++ compilers masquerading as C compilers
  7789. incorrectly reject 9223372036854775807. */
  7790. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7791. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7792. && LARGE_OFF_T % 2147483647 == 1)
  7793. ? 1 : -1];
  7794. int
  7795. main ()
  7796. {
  7797. ;
  7798. return 0;
  7799. }
  7800. _ACEOF
  7801. if ac_fn_cxx_try_compile "$LINENO"; then :
  7802. break
  7803. fi
  7804. rm -f core conftest.err conftest.$ac_objext
  7805. CC="$CC -n32"
  7806. if ac_fn_cxx_try_compile "$LINENO"; then :
  7807. ac_cv_sys_largefile_CC=' -n32'; break
  7808. fi
  7809. rm -f core conftest.err conftest.$ac_objext
  7810. break
  7811. done
  7812. CC=$ac_save_CC
  7813. rm -f conftest.$ac_ext
  7814. fi
  7815. fi
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7817. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7818. if test "$ac_cv_sys_largefile_CC" != no; then
  7819. CC=$CC$ac_cv_sys_largefile_CC
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7822. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7823. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. while :; do
  7827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7828. /* end confdefs.h. */
  7829. #include <sys/types.h>
  7830. /* Check that off_t can represent 2**63 - 1 correctly.
  7831. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7832. since some C++ compilers masquerading as C compilers
  7833. incorrectly reject 9223372036854775807. */
  7834. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7835. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7836. && LARGE_OFF_T % 2147483647 == 1)
  7837. ? 1 : -1];
  7838. int
  7839. main ()
  7840. {
  7841. ;
  7842. return 0;
  7843. }
  7844. _ACEOF
  7845. if ac_fn_cxx_try_compile "$LINENO"; then :
  7846. ac_cv_sys_file_offset_bits=no; break
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7850. /* end confdefs.h. */
  7851. #define _FILE_OFFSET_BITS 64
  7852. #include <sys/types.h>
  7853. /* Check that off_t can represent 2**63 - 1 correctly.
  7854. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7855. since some C++ compilers masquerading as C compilers
  7856. incorrectly reject 9223372036854775807. */
  7857. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7858. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7859. && LARGE_OFF_T % 2147483647 == 1)
  7860. ? 1 : -1];
  7861. int
  7862. main ()
  7863. {
  7864. ;
  7865. return 0;
  7866. }
  7867. _ACEOF
  7868. if ac_fn_cxx_try_compile "$LINENO"; then :
  7869. ac_cv_sys_file_offset_bits=64; break
  7870. fi
  7871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7872. ac_cv_sys_file_offset_bits=unknown
  7873. break
  7874. done
  7875. fi
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7877. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7878. case $ac_cv_sys_file_offset_bits in #(
  7879. no | unknown) ;;
  7880. *)
  7881. cat >>confdefs.h <<_ACEOF
  7882. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7883. _ACEOF
  7884. ;;
  7885. esac
  7886. rm -rf conftest*
  7887. if test $ac_cv_sys_file_offset_bits = unknown; then
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7889. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7890. if test "${ac_cv_sys_large_files+set}" = set; then :
  7891. $as_echo_n "(cached) " >&6
  7892. else
  7893. while :; do
  7894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7895. /* end confdefs.h. */
  7896. #include <sys/types.h>
  7897. /* Check that off_t can represent 2**63 - 1 correctly.
  7898. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7899. since some C++ compilers masquerading as C compilers
  7900. incorrectly reject 9223372036854775807. */
  7901. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7902. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7903. && LARGE_OFF_T % 2147483647 == 1)
  7904. ? 1 : -1];
  7905. int
  7906. main ()
  7907. {
  7908. ;
  7909. return 0;
  7910. }
  7911. _ACEOF
  7912. if ac_fn_cxx_try_compile "$LINENO"; then :
  7913. ac_cv_sys_large_files=no; break
  7914. fi
  7915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7917. /* end confdefs.h. */
  7918. #define _LARGE_FILES 1
  7919. #include <sys/types.h>
  7920. /* Check that off_t can represent 2**63 - 1 correctly.
  7921. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7922. since some C++ compilers masquerading as C compilers
  7923. incorrectly reject 9223372036854775807. */
  7924. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7925. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7926. && LARGE_OFF_T % 2147483647 == 1)
  7927. ? 1 : -1];
  7928. int
  7929. main ()
  7930. {
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. if ac_fn_cxx_try_compile "$LINENO"; then :
  7936. ac_cv_sys_large_files=1; break
  7937. fi
  7938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7939. ac_cv_sys_large_files=unknown
  7940. break
  7941. done
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7944. $as_echo "$ac_cv_sys_large_files" >&6; }
  7945. case $ac_cv_sys_large_files in #(
  7946. no | unknown) ;;
  7947. *)
  7948. cat >>confdefs.h <<_ACEOF
  7949. #define _LARGE_FILES $ac_cv_sys_large_files
  7950. _ACEOF
  7951. ;;
  7952. esac
  7953. rm -rf conftest*
  7954. fi
  7955. fi
  7956. # Checks for library functions.
  7957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7958. $as_echo_n "checking whether NLS is requested... " >&6; }
  7959. # Check whether --enable-nls was given.
  7960. if test "${enable_nls+set}" = set; then :
  7961. enableval=$enable_nls; USE_NLS=$enableval
  7962. else
  7963. USE_NLS=yes
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7966. $as_echo "$USE_NLS" >&6; }
  7967. GETTEXT_MACRO_VERSION=0.17
  7968. # Prepare PATH_SEPARATOR.
  7969. # The user is always right.
  7970. if test "${PATH_SEPARATOR+set}" != set; then
  7971. echo "#! /bin/sh" >conf$$.sh
  7972. echo "exit 0" >>conf$$.sh
  7973. chmod +x conf$$.sh
  7974. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7975. PATH_SEPARATOR=';'
  7976. else
  7977. PATH_SEPARATOR=:
  7978. fi
  7979. rm -f conf$$.sh
  7980. fi
  7981. # Find out how to test for executable files. Don't use a zero-byte file,
  7982. # as systems may use methods other than mode bits to determine executability.
  7983. cat >conf$$.file <<_ASEOF
  7984. #! /bin/sh
  7985. exit 0
  7986. _ASEOF
  7987. chmod +x conf$$.file
  7988. if test -x conf$$.file >/dev/null 2>&1; then
  7989. ac_executable_p="test -x"
  7990. else
  7991. ac_executable_p="test -f"
  7992. fi
  7993. rm -f conf$$.file
  7994. # Extract the first word of "msgfmt", so it can be a program name with args.
  7995. set dummy msgfmt; ac_word=$2
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7997. $as_echo_n "checking for $ac_word... " >&6; }
  7998. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. case "$MSGFMT" in
  8002. [\\/]* | ?:[\\/]*)
  8003. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8004. ;;
  8005. *)
  8006. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8007. for ac_dir in $PATH; do
  8008. IFS="$ac_save_IFS"
  8009. test -z "$ac_dir" && ac_dir=.
  8010. for ac_exec_ext in '' $ac_executable_extensions; do
  8011. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8012. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8013. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8014. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8015. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8016. break 2
  8017. fi
  8018. fi
  8019. done
  8020. done
  8021. IFS="$ac_save_IFS"
  8022. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8023. ;;
  8024. esac
  8025. fi
  8026. MSGFMT="$ac_cv_path_MSGFMT"
  8027. if test "$MSGFMT" != ":"; then
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8029. $as_echo "$MSGFMT" >&6; }
  8030. else
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8032. $as_echo "no" >&6; }
  8033. fi
  8034. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8035. set dummy gmsgfmt; ac_word=$2
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8037. $as_echo_n "checking for $ac_word... " >&6; }
  8038. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8039. $as_echo_n "(cached) " >&6
  8040. else
  8041. case $GMSGFMT in
  8042. [\\/]* | ?:[\\/]*)
  8043. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8044. ;;
  8045. *)
  8046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8047. for as_dir in $PATH
  8048. do
  8049. IFS=$as_save_IFS
  8050. test -z "$as_dir" && as_dir=.
  8051. for ac_exec_ext in '' $ac_executable_extensions; do
  8052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8053. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8055. break 2
  8056. fi
  8057. done
  8058. done
  8059. IFS=$as_save_IFS
  8060. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8061. ;;
  8062. esac
  8063. fi
  8064. GMSGFMT=$ac_cv_path_GMSGFMT
  8065. if test -n "$GMSGFMT"; then
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8067. $as_echo "$GMSGFMT" >&6; }
  8068. else
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8070. $as_echo "no" >&6; }
  8071. fi
  8072. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8073. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8074. *) MSGFMT_015=$MSGFMT ;;
  8075. esac
  8076. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8077. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8078. *) GMSGFMT_015=$GMSGFMT ;;
  8079. esac
  8080. # Prepare PATH_SEPARATOR.
  8081. # The user is always right.
  8082. if test "${PATH_SEPARATOR+set}" != set; then
  8083. echo "#! /bin/sh" >conf$$.sh
  8084. echo "exit 0" >>conf$$.sh
  8085. chmod +x conf$$.sh
  8086. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8087. PATH_SEPARATOR=';'
  8088. else
  8089. PATH_SEPARATOR=:
  8090. fi
  8091. rm -f conf$$.sh
  8092. fi
  8093. # Find out how to test for executable files. Don't use a zero-byte file,
  8094. # as systems may use methods other than mode bits to determine executability.
  8095. cat >conf$$.file <<_ASEOF
  8096. #! /bin/sh
  8097. exit 0
  8098. _ASEOF
  8099. chmod +x conf$$.file
  8100. if test -x conf$$.file >/dev/null 2>&1; then
  8101. ac_executable_p="test -x"
  8102. else
  8103. ac_executable_p="test -f"
  8104. fi
  8105. rm -f conf$$.file
  8106. # Extract the first word of "xgettext", so it can be a program name with args.
  8107. set dummy xgettext; ac_word=$2
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8109. $as_echo_n "checking for $ac_word... " >&6; }
  8110. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8111. $as_echo_n "(cached) " >&6
  8112. else
  8113. case "$XGETTEXT" in
  8114. [\\/]* | ?:[\\/]*)
  8115. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8116. ;;
  8117. *)
  8118. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8119. for ac_dir in $PATH; do
  8120. IFS="$ac_save_IFS"
  8121. test -z "$ac_dir" && ac_dir=.
  8122. for ac_exec_ext in '' $ac_executable_extensions; do
  8123. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8124. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8125. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8126. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8127. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8128. break 2
  8129. fi
  8130. fi
  8131. done
  8132. done
  8133. IFS="$ac_save_IFS"
  8134. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8135. ;;
  8136. esac
  8137. fi
  8138. XGETTEXT="$ac_cv_path_XGETTEXT"
  8139. if test "$XGETTEXT" != ":"; then
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8141. $as_echo "$XGETTEXT" >&6; }
  8142. else
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8144. $as_echo "no" >&6; }
  8145. fi
  8146. rm -f messages.po
  8147. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8148. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8149. *) XGETTEXT_015=$XGETTEXT ;;
  8150. esac
  8151. # Prepare PATH_SEPARATOR.
  8152. # The user is always right.
  8153. if test "${PATH_SEPARATOR+set}" != set; then
  8154. echo "#! /bin/sh" >conf$$.sh
  8155. echo "exit 0" >>conf$$.sh
  8156. chmod +x conf$$.sh
  8157. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8158. PATH_SEPARATOR=';'
  8159. else
  8160. PATH_SEPARATOR=:
  8161. fi
  8162. rm -f conf$$.sh
  8163. fi
  8164. # Find out how to test for executable files. Don't use a zero-byte file,
  8165. # as systems may use methods other than mode bits to determine executability.
  8166. cat >conf$$.file <<_ASEOF
  8167. #! /bin/sh
  8168. exit 0
  8169. _ASEOF
  8170. chmod +x conf$$.file
  8171. if test -x conf$$.file >/dev/null 2>&1; then
  8172. ac_executable_p="test -x"
  8173. else
  8174. ac_executable_p="test -f"
  8175. fi
  8176. rm -f conf$$.file
  8177. # Extract the first word of "msgmerge", so it can be a program name with args.
  8178. set dummy msgmerge; ac_word=$2
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8180. $as_echo_n "checking for $ac_word... " >&6; }
  8181. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8182. $as_echo_n "(cached) " >&6
  8183. else
  8184. case "$MSGMERGE" in
  8185. [\\/]* | ?:[\\/]*)
  8186. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8187. ;;
  8188. *)
  8189. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8190. for ac_dir in $PATH; do
  8191. IFS="$ac_save_IFS"
  8192. test -z "$ac_dir" && ac_dir=.
  8193. for ac_exec_ext in '' $ac_executable_extensions; do
  8194. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8195. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8196. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8197. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8198. break 2
  8199. fi
  8200. fi
  8201. done
  8202. done
  8203. IFS="$ac_save_IFS"
  8204. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8205. ;;
  8206. esac
  8207. fi
  8208. MSGMERGE="$ac_cv_path_MSGMERGE"
  8209. if test "$MSGMERGE" != ":"; then
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8211. $as_echo "$MSGMERGE" >&6; }
  8212. else
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8214. $as_echo "no" >&6; }
  8215. fi
  8216. test -n "$localedir" || localedir='${datadir}/locale'
  8217. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8218. ac_config_commands="$ac_config_commands po-directories"
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8220. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8221. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8225. /* end confdefs.h. */
  8226. #include <features.h>
  8227. #ifdef __GNU_LIBRARY__
  8228. #if (__GLIBC__ >= 2)
  8229. Lucky GNU user
  8230. #endif
  8231. #endif
  8232. _ACEOF
  8233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8234. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8235. ac_cv_gnu_library_2=yes
  8236. else
  8237. ac_cv_gnu_library_2=no
  8238. fi
  8239. rm -f conftest*
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8242. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8243. GLIBC2="$ac_cv_gnu_library_2"
  8244. CFLAG_VISIBILITY=
  8245. HAVE_VISIBILITY=0
  8246. if test -n "$GCC"; then
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8248. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8249. if test "${gl_cv_cc_visibility+set}" = set; then :
  8250. $as_echo_n "(cached) " >&6
  8251. else
  8252. gl_save_CFLAGS="$CFLAGS"
  8253. CFLAGS="$CFLAGS -fvisibility=hidden"
  8254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8255. /* end confdefs.h. */
  8256. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8257. extern __attribute__((__visibility__("default"))) int exportedvar;
  8258. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8259. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8260. int
  8261. main ()
  8262. {
  8263. ;
  8264. return 0;
  8265. }
  8266. _ACEOF
  8267. if ac_fn_cxx_try_compile "$LINENO"; then :
  8268. gl_cv_cc_visibility=yes
  8269. else
  8270. gl_cv_cc_visibility=no
  8271. fi
  8272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8273. CFLAGS="$gl_save_CFLAGS"
  8274. fi
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8276. $as_echo "$gl_cv_cc_visibility" >&6; }
  8277. if test $gl_cv_cc_visibility = yes; then
  8278. CFLAG_VISIBILITY="-fvisibility=hidden"
  8279. HAVE_VISIBILITY=1
  8280. fi
  8281. fi
  8282. cat >>confdefs.h <<_ACEOF
  8283. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8284. _ACEOF
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8286. $as_echo_n "checking for stdint.h... " >&6; }
  8287. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8288. $as_echo_n "(cached) " >&6
  8289. else
  8290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8291. /* end confdefs.h. */
  8292. #include <sys/types.h>
  8293. #include <stdint.h>
  8294. int
  8295. main ()
  8296. {
  8297. uintmax_t i = (uintmax_t) -1; return !i;
  8298. ;
  8299. return 0;
  8300. }
  8301. _ACEOF
  8302. if ac_fn_cxx_try_compile "$LINENO"; then :
  8303. gl_cv_header_stdint_h=yes
  8304. else
  8305. gl_cv_header_stdint_h=no
  8306. fi
  8307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8308. fi
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8310. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8311. if test $gl_cv_header_stdint_h = yes; then
  8312. cat >>confdefs.h <<_ACEOF
  8313. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8314. _ACEOF
  8315. fi
  8316. for ac_header in $ac_header_list
  8317. do :
  8318. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8319. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8320. "
  8321. eval as_val=\$$as_ac_Header
  8322. if test "x$as_val" = x""yes; then :
  8323. cat >>confdefs.h <<_ACEOF
  8324. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8325. _ACEOF
  8326. fi
  8327. done
  8328. for ac_func in getpagesize
  8329. do :
  8330. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8331. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8332. cat >>confdefs.h <<_ACEOF
  8333. #define HAVE_GETPAGESIZE 1
  8334. _ACEOF
  8335. fi
  8336. done
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8338. $as_echo_n "checking for working mmap... " >&6; }
  8339. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. if test "$cross_compiling" = yes; then :
  8343. ac_cv_func_mmap_fixed_mapped=no
  8344. else
  8345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8346. /* end confdefs.h. */
  8347. $ac_includes_default
  8348. /* malloc might have been renamed as rpl_malloc. */
  8349. #undef malloc
  8350. /* Thanks to Mike Haertel and Jim Avera for this test.
  8351. Here is a matrix of mmap possibilities:
  8352. mmap private not fixed
  8353. mmap private fixed at somewhere currently unmapped
  8354. mmap private fixed at somewhere already mapped
  8355. mmap shared not fixed
  8356. mmap shared fixed at somewhere currently unmapped
  8357. mmap shared fixed at somewhere already mapped
  8358. For private mappings, we should verify that changes cannot be read()
  8359. back from the file, nor mmap's back from the file at a different
  8360. address. (There have been systems where private was not correctly
  8361. implemented like the infamous i386 svr4.0, and systems where the
  8362. VM page cache was not coherent with the file system buffer cache
  8363. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8364. For shared mappings, we should conversely verify that changes get
  8365. propagated back to all the places they're supposed to be.
  8366. Grep wants private fixed already mapped.
  8367. The main things grep needs to know about mmap are:
  8368. * does it exist and is it safe to write into the mmap'd area
  8369. * how to use it (BSD variants) */
  8370. #include <fcntl.h>
  8371. #include <sys/mman.h>
  8372. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8373. char *malloc ();
  8374. #endif
  8375. /* This mess was copied from the GNU getpagesize.h. */
  8376. #ifndef HAVE_GETPAGESIZE
  8377. # ifdef _SC_PAGESIZE
  8378. # define getpagesize() sysconf(_SC_PAGESIZE)
  8379. # else /* no _SC_PAGESIZE */
  8380. # ifdef HAVE_SYS_PARAM_H
  8381. # include <sys/param.h>
  8382. # ifdef EXEC_PAGESIZE
  8383. # define getpagesize() EXEC_PAGESIZE
  8384. # else /* no EXEC_PAGESIZE */
  8385. # ifdef NBPG
  8386. # define getpagesize() NBPG * CLSIZE
  8387. # ifndef CLSIZE
  8388. # define CLSIZE 1
  8389. # endif /* no CLSIZE */
  8390. # else /* no NBPG */
  8391. # ifdef NBPC
  8392. # define getpagesize() NBPC
  8393. # else /* no NBPC */
  8394. # ifdef PAGESIZE
  8395. # define getpagesize() PAGESIZE
  8396. # endif /* PAGESIZE */
  8397. # endif /* no NBPC */
  8398. # endif /* no NBPG */
  8399. # endif /* no EXEC_PAGESIZE */
  8400. # else /* no HAVE_SYS_PARAM_H */
  8401. # define getpagesize() 8192 /* punt totally */
  8402. # endif /* no HAVE_SYS_PARAM_H */
  8403. # endif /* no _SC_PAGESIZE */
  8404. #endif /* no HAVE_GETPAGESIZE */
  8405. int
  8406. main ()
  8407. {
  8408. char *data, *data2, *data3;
  8409. const char *cdata2;
  8410. int i, pagesize;
  8411. int fd, fd2;
  8412. pagesize = getpagesize ();
  8413. /* First, make a file with some known garbage in it. */
  8414. data = (char *) malloc (pagesize);
  8415. if (!data)
  8416. return 1;
  8417. for (i = 0; i < pagesize; ++i)
  8418. *(data + i) = rand ();
  8419. umask (0);
  8420. fd = creat ("conftest.mmap", 0600);
  8421. if (fd < 0)
  8422. return 2;
  8423. if (write (fd, data, pagesize) != pagesize)
  8424. return 3;
  8425. close (fd);
  8426. /* Next, check that the tail of a page is zero-filled. File must have
  8427. non-zero length, otherwise we risk SIGBUS for entire page. */
  8428. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8429. if (fd2 < 0)
  8430. return 4;
  8431. cdata2 = "";
  8432. if (write (fd2, cdata2, 1) != 1)
  8433. return 5;
  8434. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8435. if (data2 == MAP_FAILED)
  8436. return 6;
  8437. for (i = 0; i < pagesize; ++i)
  8438. if (*(data2 + i))
  8439. return 7;
  8440. close (fd2);
  8441. if (munmap (data2, pagesize))
  8442. return 8;
  8443. /* Next, try to mmap the file at a fixed address which already has
  8444. something else allocated at it. If we can, also make sure that
  8445. we see the same garbage. */
  8446. fd = open ("conftest.mmap", O_RDWR);
  8447. if (fd < 0)
  8448. return 9;
  8449. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8450. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8451. return 10;
  8452. for (i = 0; i < pagesize; ++i)
  8453. if (*(data + i) != *(data2 + i))
  8454. return 11;
  8455. /* Finally, make sure that changes to the mapped area do not
  8456. percolate back to the file as seen by read(). (This is a bug on
  8457. some variants of i386 svr4.0.) */
  8458. for (i = 0; i < pagesize; ++i)
  8459. *(data2 + i) = *(data2 + i) + 1;
  8460. data3 = (char *) malloc (pagesize);
  8461. if (!data3)
  8462. return 12;
  8463. if (read (fd, data3, pagesize) != pagesize)
  8464. return 13;
  8465. for (i = 0; i < pagesize; ++i)
  8466. if (*(data + i) != *(data3 + i))
  8467. return 14;
  8468. close (fd);
  8469. return 0;
  8470. }
  8471. _ACEOF
  8472. if ac_fn_cxx_try_run "$LINENO"; then :
  8473. ac_cv_func_mmap_fixed_mapped=yes
  8474. else
  8475. ac_cv_func_mmap_fixed_mapped=no
  8476. fi
  8477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8478. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8479. fi
  8480. fi
  8481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8482. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8483. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8484. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8485. fi
  8486. rm -f conftest.mmap conftest.txt
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8488. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8489. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8490. $as_echo_n "(cached) " >&6
  8491. else
  8492. gt_cv_int_divbyzero_sigfpe=
  8493. case "$host_os" in
  8494. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8495. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8496. # compiling. If we were to perform the real test, 1 Crash Report
  8497. # dialog window would pop up.
  8498. case "$host_cpu" in
  8499. i[34567]86 | x86_64)
  8500. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8501. esac
  8502. ;;
  8503. esac
  8504. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8505. if test "$cross_compiling" = yes; then :
  8506. # Guess based on the CPU.
  8507. case "$host_cpu" in
  8508. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8509. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8510. *)
  8511. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8512. esac
  8513. else
  8514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8515. /* end confdefs.h. */
  8516. #include <stdlib.h>
  8517. #include <signal.h>
  8518. static void
  8519. sigfpe_handler (int sig)
  8520. {
  8521. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8522. exit (sig != SIGFPE);
  8523. }
  8524. int x = 1;
  8525. int y = 0;
  8526. int z;
  8527. int nan;
  8528. int main ()
  8529. {
  8530. signal (SIGFPE, sigfpe_handler);
  8531. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8532. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8533. signal (SIGTRAP, sigfpe_handler);
  8534. #endif
  8535. /* Linux/SPARC yields signal SIGILL. */
  8536. #if defined (__sparc__) && defined (__linux__)
  8537. signal (SIGILL, sigfpe_handler);
  8538. #endif
  8539. z = x / y;
  8540. nan = y / y;
  8541. exit (1);
  8542. }
  8543. _ACEOF
  8544. if ac_fn_cxx_try_run "$LINENO"; then :
  8545. gt_cv_int_divbyzero_sigfpe=yes
  8546. else
  8547. gt_cv_int_divbyzero_sigfpe=no
  8548. fi
  8549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8551. fi
  8552. fi
  8553. fi
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8555. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8556. case "$gt_cv_int_divbyzero_sigfpe" in
  8557. *yes) value=1;;
  8558. *) value=0;;
  8559. esac
  8560. cat >>confdefs.h <<_ACEOF
  8561. #define INTDIV0_RAISES_SIGFPE $value
  8562. _ACEOF
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8564. $as_echo_n "checking for inttypes.h... " >&6; }
  8565. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8566. $as_echo_n "(cached) " >&6
  8567. else
  8568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8569. /* end confdefs.h. */
  8570. #include <sys/types.h>
  8571. #include <inttypes.h>
  8572. int
  8573. main ()
  8574. {
  8575. uintmax_t i = (uintmax_t) -1; return !i;
  8576. ;
  8577. return 0;
  8578. }
  8579. _ACEOF
  8580. if ac_fn_cxx_try_compile "$LINENO"; then :
  8581. gl_cv_header_inttypes_h=yes
  8582. else
  8583. gl_cv_header_inttypes_h=no
  8584. fi
  8585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8586. fi
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8588. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8589. if test $gl_cv_header_inttypes_h = yes; then
  8590. cat >>confdefs.h <<_ACEOF
  8591. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8592. _ACEOF
  8593. fi
  8594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8595. $as_echo_n "checking for unsigned long long int... " >&6; }
  8596. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8597. $as_echo_n "(cached) " >&6
  8598. else
  8599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8600. /* end confdefs.h. */
  8601. /* Test preprocessor. */
  8602. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8603. error in preprocessor;
  8604. #endif
  8605. #if ! (18446744073709551615ULL <= -1ull)
  8606. error in preprocessor;
  8607. #endif
  8608. /* Test literals. */
  8609. long long int ll = 9223372036854775807ll;
  8610. long long int nll = -9223372036854775807LL;
  8611. unsigned long long int ull = 18446744073709551615ULL;
  8612. /* Test constant expressions. */
  8613. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8614. ? 1 : -1)];
  8615. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8616. ? 1 : -1)];
  8617. int i = 63;
  8618. int
  8619. main ()
  8620. {
  8621. /* Test availability of runtime routines for shift and division. */
  8622. long long int llmax = 9223372036854775807ll;
  8623. unsigned long long int ullmax = 18446744073709551615ull;
  8624. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8625. | (llmax / ll) | (llmax % ll)
  8626. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8627. | (ullmax / ull) | (ullmax % ull));
  8628. ;
  8629. return 0;
  8630. }
  8631. _ACEOF
  8632. if ac_fn_cxx_try_link "$LINENO"; then :
  8633. ac_cv_type_unsigned_long_long_int=yes
  8634. else
  8635. ac_cv_type_unsigned_long_long_int=no
  8636. fi
  8637. rm -f core conftest.err conftest.$ac_objext \
  8638. conftest$ac_exeext conftest.$ac_ext
  8639. fi
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8641. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8642. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8643. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8644. fi
  8645. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8646. test $ac_cv_type_unsigned_long_long_int = yes \
  8647. && ac_type='unsigned long long' \
  8648. || ac_type='unsigned long'
  8649. cat >>confdefs.h <<_ACEOF
  8650. #define uintmax_t $ac_type
  8651. _ACEOF
  8652. else
  8653. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8654. fi
  8655. for ac_header in inttypes.h
  8656. do :
  8657. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8658. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8659. cat >>confdefs.h <<_ACEOF
  8660. #define HAVE_INTTYPES_H 1
  8661. _ACEOF
  8662. fi
  8663. done
  8664. if test $ac_cv_header_inttypes_h = yes; then
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8666. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8667. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8668. $as_echo_n "(cached) " >&6
  8669. else
  8670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8671. /* end confdefs.h. */
  8672. #include <inttypes.h>
  8673. #ifdef PRId32
  8674. char *p = PRId32;
  8675. #endif
  8676. int
  8677. main ()
  8678. {
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. if ac_fn_cxx_try_compile "$LINENO"; then :
  8684. gt_cv_inttypes_pri_broken=no
  8685. else
  8686. gt_cv_inttypes_pri_broken=yes
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8689. fi
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8691. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8692. fi
  8693. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8694. cat >>confdefs.h <<_ACEOF
  8695. #define PRI_MACROS_BROKEN 1
  8696. _ACEOF
  8697. PRI_MACROS_BROKEN=1
  8698. else
  8699. PRI_MACROS_BROKEN=0
  8700. fi
  8701. # Check whether --enable-threads was given.
  8702. if test "${enable_threads+set}" = set; then :
  8703. enableval=$enable_threads; gl_use_threads=$enableval
  8704. else
  8705. case "$host_os" in
  8706. osf*) gl_use_threads=no ;;
  8707. *) gl_use_threads=yes ;;
  8708. esac
  8709. fi
  8710. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8711. # For using <pthread.h>:
  8712. case "$host_os" in
  8713. osf*)
  8714. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8715. # groks <pthread.h>. cc also understands the flag -pthread, but
  8716. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8717. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8718. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8719. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8720. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8721. ;;
  8722. esac
  8723. # Some systems optimize for single-threaded programs by default, and
  8724. # need special flags to disable these optimizations. For example, the
  8725. # definition of 'errno' in <errno.h>.
  8726. case "$host_os" in
  8727. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8728. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8729. esac
  8730. fi
  8731. if test "X$prefix" = "XNONE"; then
  8732. acl_final_prefix="$ac_default_prefix"
  8733. else
  8734. acl_final_prefix="$prefix"
  8735. fi
  8736. if test "X$exec_prefix" = "XNONE"; then
  8737. acl_final_exec_prefix='${prefix}'
  8738. else
  8739. acl_final_exec_prefix="$exec_prefix"
  8740. fi
  8741. acl_save_prefix="$prefix"
  8742. prefix="$acl_final_prefix"
  8743. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8744. prefix="$acl_save_prefix"
  8745. # Check whether --with-gnu-ld was given.
  8746. if test "${with_gnu_ld+set}" = set; then :
  8747. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8748. else
  8749. with_gnu_ld=no
  8750. fi
  8751. # Prepare PATH_SEPARATOR.
  8752. # The user is always right.
  8753. if test "${PATH_SEPARATOR+set}" != set; then
  8754. echo "#! /bin/sh" >conf$$.sh
  8755. echo "exit 0" >>conf$$.sh
  8756. chmod +x conf$$.sh
  8757. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8758. PATH_SEPARATOR=';'
  8759. else
  8760. PATH_SEPARATOR=:
  8761. fi
  8762. rm -f conf$$.sh
  8763. fi
  8764. ac_prog=ld
  8765. if test "$GCC" = yes; then
  8766. # Check if gcc -print-prog-name=ld gives a path.
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8768. $as_echo_n "checking for ld used by GCC... " >&6; }
  8769. case $host in
  8770. *-*-mingw*)
  8771. # gcc leaves a trailing carriage return which upsets mingw
  8772. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8773. *)
  8774. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8775. esac
  8776. case $ac_prog in
  8777. # Accept absolute paths.
  8778. [\\/]* | [A-Za-z]:[\\/]*)
  8779. re_direlt='/[^/][^/]*/\.\./'
  8780. # Canonicalize the path of ld
  8781. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8782. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8783. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8784. done
  8785. test -z "$LD" && LD="$ac_prog"
  8786. ;;
  8787. "")
  8788. # If it fails, then pretend we aren't using GCC.
  8789. ac_prog=ld
  8790. ;;
  8791. *)
  8792. # If it is relative, then search for the first ld in PATH.
  8793. with_gnu_ld=unknown
  8794. ;;
  8795. esac
  8796. elif test "$with_gnu_ld" = yes; then
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8798. $as_echo_n "checking for GNU ld... " >&6; }
  8799. else
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8801. $as_echo_n "checking for non-GNU ld... " >&6; }
  8802. fi
  8803. if test "${acl_cv_path_LD+set}" = set; then :
  8804. $as_echo_n "(cached) " >&6
  8805. else
  8806. if test -z "$LD"; then
  8807. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8808. for ac_dir in $PATH; do
  8809. test -z "$ac_dir" && ac_dir=.
  8810. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8811. acl_cv_path_LD="$ac_dir/$ac_prog"
  8812. # Check to see if the program is GNU ld. I'd rather use --version,
  8813. # but apparently some GNU ld's only accept -v.
  8814. # Break only if it was the GNU/non-GNU ld that we prefer.
  8815. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8816. *GNU* | *'with BFD'*)
  8817. test "$with_gnu_ld" != no && break ;;
  8818. *)
  8819. test "$with_gnu_ld" != yes && break ;;
  8820. esac
  8821. fi
  8822. done
  8823. IFS="$ac_save_ifs"
  8824. else
  8825. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8826. fi
  8827. fi
  8828. LD="$acl_cv_path_LD"
  8829. if test -n "$LD"; then
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8831. $as_echo "$LD" >&6; }
  8832. else
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8834. $as_echo "no" >&6; }
  8835. fi
  8836. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8838. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8839. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8840. $as_echo_n "(cached) " >&6
  8841. else
  8842. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8843. case `$LD -v 2>&1 </dev/null` in
  8844. *GNU* | *'with BFD'*)
  8845. acl_cv_prog_gnu_ld=yes ;;
  8846. *)
  8847. acl_cv_prog_gnu_ld=no ;;
  8848. esac
  8849. fi
  8850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8851. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8852. with_gnu_ld=$acl_cv_prog_gnu_ld
  8853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8854. $as_echo_n "checking for shared library run path origin... " >&6; }
  8855. if test "${acl_cv_rpath+set}" = set; then :
  8856. $as_echo_n "(cached) " >&6
  8857. else
  8858. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8859. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8860. . ./conftest.sh
  8861. rm -f ./conftest.sh
  8862. acl_cv_rpath=done
  8863. fi
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8865. $as_echo "$acl_cv_rpath" >&6; }
  8866. wl="$acl_cv_wl"
  8867. acl_libext="$acl_cv_libext"
  8868. acl_shlibext="$acl_cv_shlibext"
  8869. acl_libname_spec="$acl_cv_libname_spec"
  8870. acl_library_names_spec="$acl_cv_library_names_spec"
  8871. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8872. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8873. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8874. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8875. # Check whether --enable-rpath was given.
  8876. if test "${enable_rpath+set}" = set; then :
  8877. enableval=$enable_rpath; :
  8878. else
  8879. enable_rpath=yes
  8880. fi
  8881. acl_libdirstem=lib
  8882. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8883. if test -n "$searchpath"; then
  8884. acl_save_IFS="${IFS= }"; IFS=":"
  8885. for searchdir in $searchpath; do
  8886. if test -d "$searchdir"; then
  8887. case "$searchdir" in
  8888. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8889. *) searchdir=`cd "$searchdir" && pwd`
  8890. case "$searchdir" in
  8891. */lib64 ) acl_libdirstem=lib64 ;;
  8892. esac ;;
  8893. esac
  8894. fi
  8895. done
  8896. IFS="$acl_save_IFS"
  8897. fi
  8898. gl_threads_api=none
  8899. LIBTHREAD=
  8900. LTLIBTHREAD=
  8901. LIBMULTITHREAD=
  8902. LTLIBMULTITHREAD=
  8903. if test "$gl_use_threads" != no; then
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8905. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8906. gl_have_weak=no
  8907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8908. /* end confdefs.h. */
  8909. extern void xyzzy ();
  8910. #pragma weak xyzzy
  8911. int
  8912. main ()
  8913. {
  8914. xyzzy();
  8915. ;
  8916. return 0;
  8917. }
  8918. _ACEOF
  8919. if ac_fn_cxx_try_link "$LINENO"; then :
  8920. gl_have_weak=yes
  8921. fi
  8922. rm -f core conftest.err conftest.$ac_objext \
  8923. conftest$ac_exeext conftest.$ac_ext
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8925. $as_echo "$gl_have_weak" >&6; }
  8926. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8927. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8928. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8929. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8930. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8931. gl_have_pthread_h=yes
  8932. else
  8933. gl_have_pthread_h=no
  8934. fi
  8935. if test "$gl_have_pthread_h" = yes; then
  8936. # Other possible tests:
  8937. # -lpthreads (FSU threads, PCthreads)
  8938. # -lgthreads
  8939. gl_have_pthread=
  8940. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8941. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8942. # the second one only in libpthread, and lock.c needs it.
  8943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8944. /* end confdefs.h. */
  8945. #include <pthread.h>
  8946. int
  8947. main ()
  8948. {
  8949. pthread_mutex_lock((pthread_mutex_t*)0);
  8950. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8951. ;
  8952. return 0;
  8953. }
  8954. _ACEOF
  8955. if ac_fn_cxx_try_link "$LINENO"; then :
  8956. gl_have_pthread=yes
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext \
  8959. conftest$ac_exeext conftest.$ac_ext
  8960. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8961. # since it is defined as a macro on OSF/1.)
  8962. if test -n "$gl_have_pthread"; then
  8963. # The program links fine without libpthread. But it may actually
  8964. # need to link with libpthread in order to create multiple threads.
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8966. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8967. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8968. $as_echo_n "(cached) " >&6
  8969. else
  8970. ac_check_lib_save_LIBS=$LIBS
  8971. LIBS="-lpthread $LIBS"
  8972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8973. /* end confdefs.h. */
  8974. /* Override any GCC internal prototype to avoid an error.
  8975. Use char because int might match the return type of a GCC
  8976. builtin and then its argument prototype would still apply. */
  8977. #ifdef __cplusplus
  8978. extern "C"
  8979. #endif
  8980. char pthread_kill ();
  8981. int
  8982. main ()
  8983. {
  8984. return pthread_kill ();
  8985. ;
  8986. return 0;
  8987. }
  8988. _ACEOF
  8989. if ac_fn_cxx_try_link "$LINENO"; then :
  8990. ac_cv_lib_pthread_pthread_kill=yes
  8991. else
  8992. ac_cv_lib_pthread_pthread_kill=no
  8993. fi
  8994. rm -f core conftest.err conftest.$ac_objext \
  8995. conftest$ac_exeext conftest.$ac_ext
  8996. LIBS=$ac_check_lib_save_LIBS
  8997. fi
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8999. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9000. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9001. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9002. # On Solaris and HP-UX, most pthread functions exist also in libc.
  9003. # Therefore pthread_in_use() needs to actually try to create a
  9004. # thread: pthread_create from libc will fail, whereas
  9005. # pthread_create will actually create a thread.
  9006. case "$host_os" in
  9007. solaris* | hpux*)
  9008. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9009. esac
  9010. fi
  9011. else
  9012. # Some library is needed. Try libpthread and libc_r.
  9013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9014. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9015. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9016. $as_echo_n "(cached) " >&6
  9017. else
  9018. ac_check_lib_save_LIBS=$LIBS
  9019. LIBS="-lpthread $LIBS"
  9020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9021. /* end confdefs.h. */
  9022. /* Override any GCC internal prototype to avoid an error.
  9023. Use char because int might match the return type of a GCC
  9024. builtin and then its argument prototype would still apply. */
  9025. #ifdef __cplusplus
  9026. extern "C"
  9027. #endif
  9028. char pthread_kill ();
  9029. int
  9030. main ()
  9031. {
  9032. return pthread_kill ();
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. if ac_fn_cxx_try_link "$LINENO"; then :
  9038. ac_cv_lib_pthread_pthread_kill=yes
  9039. else
  9040. ac_cv_lib_pthread_pthread_kill=no
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. LIBS=$ac_check_lib_save_LIBS
  9045. fi
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9047. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9048. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9049. gl_have_pthread=yes
  9050. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9051. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9052. fi
  9053. if test -z "$gl_have_pthread"; then
  9054. # For FreeBSD 4.
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9056. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9057. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9058. $as_echo_n "(cached) " >&6
  9059. else
  9060. ac_check_lib_save_LIBS=$LIBS
  9061. LIBS="-lc_r $LIBS"
  9062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9063. /* end confdefs.h. */
  9064. /* Override any GCC internal prototype to avoid an error.
  9065. Use char because int might match the return type of a GCC
  9066. builtin and then its argument prototype would still apply. */
  9067. #ifdef __cplusplus
  9068. extern "C"
  9069. #endif
  9070. char pthread_kill ();
  9071. int
  9072. main ()
  9073. {
  9074. return pthread_kill ();
  9075. ;
  9076. return 0;
  9077. }
  9078. _ACEOF
  9079. if ac_fn_cxx_try_link "$LINENO"; then :
  9080. ac_cv_lib_c_r_pthread_kill=yes
  9081. else
  9082. ac_cv_lib_c_r_pthread_kill=no
  9083. fi
  9084. rm -f core conftest.err conftest.$ac_objext \
  9085. conftest$ac_exeext conftest.$ac_ext
  9086. LIBS=$ac_check_lib_save_LIBS
  9087. fi
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9089. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9090. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9091. gl_have_pthread=yes
  9092. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9093. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9094. fi
  9095. fi
  9096. fi
  9097. if test -n "$gl_have_pthread"; then
  9098. gl_threads_api=posix
  9099. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9100. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9101. if test $gl_have_weak = yes; then
  9102. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9103. LIBTHREAD=
  9104. LTLIBTHREAD=
  9105. fi
  9106. fi
  9107. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9108. # pthread_rwlock_* functions.
  9109. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9110. "
  9111. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9112. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9113. fi
  9114. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9116. /* end confdefs.h. */
  9117. #include <pthread.h>
  9118. int
  9119. main ()
  9120. {
  9121. #if __FreeBSD__ == 4
  9122. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9123. #else
  9124. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9125. return !x;
  9126. #endif
  9127. ;
  9128. return 0;
  9129. }
  9130. _ACEOF
  9131. if ac_fn_cxx_try_compile "$LINENO"; then :
  9132. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9133. fi
  9134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9135. fi
  9136. fi
  9137. fi
  9138. if test -z "$gl_have_pthread"; then
  9139. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9140. gl_have_solaristhread=
  9141. gl_save_LIBS="$LIBS"
  9142. LIBS="$LIBS -lthread"
  9143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9144. /* end confdefs.h. */
  9145. #include <thread.h>
  9146. #include <synch.h>
  9147. int
  9148. main ()
  9149. {
  9150. thr_self();
  9151. ;
  9152. return 0;
  9153. }
  9154. _ACEOF
  9155. if ac_fn_cxx_try_link "$LINENO"; then :
  9156. gl_have_solaristhread=yes
  9157. fi
  9158. rm -f core conftest.err conftest.$ac_objext \
  9159. conftest$ac_exeext conftest.$ac_ext
  9160. LIBS="$gl_save_LIBS"
  9161. if test -n "$gl_have_solaristhread"; then
  9162. gl_threads_api=solaris
  9163. LIBTHREAD=-lthread
  9164. LTLIBTHREAD=-lthread
  9165. LIBMULTITHREAD="$LIBTHREAD"
  9166. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9167. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9168. if test $gl_have_weak = yes; then
  9169. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9170. LIBTHREAD=
  9171. LTLIBTHREAD=
  9172. fi
  9173. fi
  9174. fi
  9175. fi
  9176. if test "$gl_use_threads" = pth; then
  9177. gl_save_CPPFLAGS="$CPPFLAGS"
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9179. $as_echo_n "checking how to link with libpth... " >&6; }
  9180. if test "${ac_cv_libpth_libs+set}" = set; then :
  9181. $as_echo_n "(cached) " >&6
  9182. else
  9183. use_additional=yes
  9184. acl_save_prefix="$prefix"
  9185. prefix="$acl_final_prefix"
  9186. acl_save_exec_prefix="$exec_prefix"
  9187. exec_prefix="$acl_final_exec_prefix"
  9188. eval additional_includedir=\"$includedir\"
  9189. eval additional_libdir=\"$libdir\"
  9190. exec_prefix="$acl_save_exec_prefix"
  9191. prefix="$acl_save_prefix"
  9192. # Check whether --with-libpth-prefix was given.
  9193. if test "${with_libpth_prefix+set}" = set; then :
  9194. withval=$with_libpth_prefix;
  9195. if test "X$withval" = "Xno"; then
  9196. use_additional=no
  9197. else
  9198. if test "X$withval" = "X"; then
  9199. acl_save_prefix="$prefix"
  9200. prefix="$acl_final_prefix"
  9201. acl_save_exec_prefix="$exec_prefix"
  9202. exec_prefix="$acl_final_exec_prefix"
  9203. eval additional_includedir=\"$includedir\"
  9204. eval additional_libdir=\"$libdir\"
  9205. exec_prefix="$acl_save_exec_prefix"
  9206. prefix="$acl_save_prefix"
  9207. else
  9208. additional_includedir="$withval/include"
  9209. additional_libdir="$withval/$acl_libdirstem"
  9210. fi
  9211. fi
  9212. fi
  9213. LIBPTH=
  9214. LTLIBPTH=
  9215. INCPTH=
  9216. LIBPTH_PREFIX=
  9217. rpathdirs=
  9218. ltrpathdirs=
  9219. names_already_handled=
  9220. names_next_round='pth '
  9221. while test -n "$names_next_round"; do
  9222. names_this_round="$names_next_round"
  9223. names_next_round=
  9224. for name in $names_this_round; do
  9225. already_handled=
  9226. for n in $names_already_handled; do
  9227. if test "$n" = "$name"; then
  9228. already_handled=yes
  9229. break
  9230. fi
  9231. done
  9232. if test -z "$already_handled"; then
  9233. names_already_handled="$names_already_handled $name"
  9234. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9235. eval value=\"\$HAVE_LIB$uppername\"
  9236. if test -n "$value"; then
  9237. if test "$value" = yes; then
  9238. eval value=\"\$LIB$uppername\"
  9239. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9240. eval value=\"\$LTLIB$uppername\"
  9241. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9242. else
  9243. :
  9244. fi
  9245. else
  9246. found_dir=
  9247. found_la=
  9248. found_so=
  9249. found_a=
  9250. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9251. if test -n "$acl_shlibext"; then
  9252. shrext=".$acl_shlibext" # typically: shrext=.so
  9253. else
  9254. shrext=
  9255. fi
  9256. if test $use_additional = yes; then
  9257. dir="$additional_libdir"
  9258. if test -n "$acl_shlibext"; then
  9259. if test -f "$dir/$libname$shrext"; then
  9260. found_dir="$dir"
  9261. found_so="$dir/$libname$shrext"
  9262. else
  9263. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9264. ver=`(cd "$dir" && \
  9265. for f in "$libname$shrext".*; do echo "$f"; done \
  9266. | sed -e "s,^$libname$shrext\\\\.,," \
  9267. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9268. | sed 1q ) 2>/dev/null`
  9269. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9270. found_dir="$dir"
  9271. found_so="$dir/$libname$shrext.$ver"
  9272. fi
  9273. else
  9274. eval library_names=\"$acl_library_names_spec\"
  9275. for f in $library_names; do
  9276. if test -f "$dir/$f"; then
  9277. found_dir="$dir"
  9278. found_so="$dir/$f"
  9279. break
  9280. fi
  9281. done
  9282. fi
  9283. fi
  9284. fi
  9285. if test "X$found_dir" = "X"; then
  9286. if test -f "$dir/$libname.$acl_libext"; then
  9287. found_dir="$dir"
  9288. found_a="$dir/$libname.$acl_libext"
  9289. fi
  9290. fi
  9291. if test "X$found_dir" != "X"; then
  9292. if test -f "$dir/$libname.la"; then
  9293. found_la="$dir/$libname.la"
  9294. fi
  9295. fi
  9296. fi
  9297. if test "X$found_dir" = "X"; then
  9298. for x in $LDFLAGS $LTLIBPTH; do
  9299. acl_save_prefix="$prefix"
  9300. prefix="$acl_final_prefix"
  9301. acl_save_exec_prefix="$exec_prefix"
  9302. exec_prefix="$acl_final_exec_prefix"
  9303. eval x=\"$x\"
  9304. exec_prefix="$acl_save_exec_prefix"
  9305. prefix="$acl_save_prefix"
  9306. case "$x" in
  9307. -L*)
  9308. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9309. if test -n "$acl_shlibext"; then
  9310. if test -f "$dir/$libname$shrext"; then
  9311. found_dir="$dir"
  9312. found_so="$dir/$libname$shrext"
  9313. else
  9314. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9315. ver=`(cd "$dir" && \
  9316. for f in "$libname$shrext".*; do echo "$f"; done \
  9317. | sed -e "s,^$libname$shrext\\\\.,," \
  9318. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9319. | sed 1q ) 2>/dev/null`
  9320. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9321. found_dir="$dir"
  9322. found_so="$dir/$libname$shrext.$ver"
  9323. fi
  9324. else
  9325. eval library_names=\"$acl_library_names_spec\"
  9326. for f in $library_names; do
  9327. if test -f "$dir/$f"; then
  9328. found_dir="$dir"
  9329. found_so="$dir/$f"
  9330. break
  9331. fi
  9332. done
  9333. fi
  9334. fi
  9335. fi
  9336. if test "X$found_dir" = "X"; then
  9337. if test -f "$dir/$libname.$acl_libext"; then
  9338. found_dir="$dir"
  9339. found_a="$dir/$libname.$acl_libext"
  9340. fi
  9341. fi
  9342. if test "X$found_dir" != "X"; then
  9343. if test -f "$dir/$libname.la"; then
  9344. found_la="$dir/$libname.la"
  9345. fi
  9346. fi
  9347. ;;
  9348. esac
  9349. if test "X$found_dir" != "X"; then
  9350. break
  9351. fi
  9352. done
  9353. fi
  9354. if test "X$found_dir" != "X"; then
  9355. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9356. if test "X$found_so" != "X"; then
  9357. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9358. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9359. else
  9360. haveit=
  9361. for x in $ltrpathdirs; do
  9362. if test "X$x" = "X$found_dir"; then
  9363. haveit=yes
  9364. break
  9365. fi
  9366. done
  9367. if test -z "$haveit"; then
  9368. ltrpathdirs="$ltrpathdirs $found_dir"
  9369. fi
  9370. if test "$acl_hardcode_direct" = yes; then
  9371. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9372. else
  9373. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9374. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9375. haveit=
  9376. for x in $rpathdirs; do
  9377. if test "X$x" = "X$found_dir"; then
  9378. haveit=yes
  9379. break
  9380. fi
  9381. done
  9382. if test -z "$haveit"; then
  9383. rpathdirs="$rpathdirs $found_dir"
  9384. fi
  9385. else
  9386. haveit=
  9387. for x in $LDFLAGS $LIBPTH; do
  9388. acl_save_prefix="$prefix"
  9389. prefix="$acl_final_prefix"
  9390. acl_save_exec_prefix="$exec_prefix"
  9391. exec_prefix="$acl_final_exec_prefix"
  9392. eval x=\"$x\"
  9393. exec_prefix="$acl_save_exec_prefix"
  9394. prefix="$acl_save_prefix"
  9395. if test "X$x" = "X-L$found_dir"; then
  9396. haveit=yes
  9397. break
  9398. fi
  9399. done
  9400. if test -z "$haveit"; then
  9401. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9402. fi
  9403. if test "$acl_hardcode_minus_L" != no; then
  9404. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9405. else
  9406. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9407. fi
  9408. fi
  9409. fi
  9410. fi
  9411. else
  9412. if test "X$found_a" != "X"; then
  9413. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9414. else
  9415. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9416. fi
  9417. fi
  9418. additional_includedir=
  9419. case "$found_dir" in
  9420. */$acl_libdirstem | */$acl_libdirstem/)
  9421. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9422. LIBPTH_PREFIX="$basedir"
  9423. additional_includedir="$basedir/include"
  9424. ;;
  9425. esac
  9426. if test "X$additional_includedir" != "X"; then
  9427. if test "X$additional_includedir" != "X/usr/include"; then
  9428. haveit=
  9429. if test "X$additional_includedir" = "X/usr/local/include"; then
  9430. if test -n "$GCC"; then
  9431. case $host_os in
  9432. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9433. esac
  9434. fi
  9435. fi
  9436. if test -z "$haveit"; then
  9437. for x in $CPPFLAGS $INCPTH; do
  9438. acl_save_prefix="$prefix"
  9439. prefix="$acl_final_prefix"
  9440. acl_save_exec_prefix="$exec_prefix"
  9441. exec_prefix="$acl_final_exec_prefix"
  9442. eval x=\"$x\"
  9443. exec_prefix="$acl_save_exec_prefix"
  9444. prefix="$acl_save_prefix"
  9445. if test "X$x" = "X-I$additional_includedir"; then
  9446. haveit=yes
  9447. break
  9448. fi
  9449. done
  9450. if test -z "$haveit"; then
  9451. if test -d "$additional_includedir"; then
  9452. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9453. fi
  9454. fi
  9455. fi
  9456. fi
  9457. fi
  9458. if test -n "$found_la"; then
  9459. save_libdir="$libdir"
  9460. case "$found_la" in
  9461. */* | *\\*) . "$found_la" ;;
  9462. *) . "./$found_la" ;;
  9463. esac
  9464. libdir="$save_libdir"
  9465. for dep in $dependency_libs; do
  9466. case "$dep" in
  9467. -L*)
  9468. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9469. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9470. haveit=
  9471. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9472. if test -n "$GCC"; then
  9473. case $host_os in
  9474. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9475. esac
  9476. fi
  9477. fi
  9478. if test -z "$haveit"; then
  9479. haveit=
  9480. for x in $LDFLAGS $LIBPTH; do
  9481. acl_save_prefix="$prefix"
  9482. prefix="$acl_final_prefix"
  9483. acl_save_exec_prefix="$exec_prefix"
  9484. exec_prefix="$acl_final_exec_prefix"
  9485. eval x=\"$x\"
  9486. exec_prefix="$acl_save_exec_prefix"
  9487. prefix="$acl_save_prefix"
  9488. if test "X$x" = "X-L$additional_libdir"; then
  9489. haveit=yes
  9490. break
  9491. fi
  9492. done
  9493. if test -z "$haveit"; then
  9494. if test -d "$additional_libdir"; then
  9495. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9496. fi
  9497. fi
  9498. haveit=
  9499. for x in $LDFLAGS $LTLIBPTH; do
  9500. acl_save_prefix="$prefix"
  9501. prefix="$acl_final_prefix"
  9502. acl_save_exec_prefix="$exec_prefix"
  9503. exec_prefix="$acl_final_exec_prefix"
  9504. eval x=\"$x\"
  9505. exec_prefix="$acl_save_exec_prefix"
  9506. prefix="$acl_save_prefix"
  9507. if test "X$x" = "X-L$additional_libdir"; then
  9508. haveit=yes
  9509. break
  9510. fi
  9511. done
  9512. if test -z "$haveit"; then
  9513. if test -d "$additional_libdir"; then
  9514. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. ;;
  9520. -R*)
  9521. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9522. if test "$enable_rpath" != no; then
  9523. haveit=
  9524. for x in $rpathdirs; do
  9525. if test "X$x" = "X$dir"; then
  9526. haveit=yes
  9527. break
  9528. fi
  9529. done
  9530. if test -z "$haveit"; then
  9531. rpathdirs="$rpathdirs $dir"
  9532. fi
  9533. haveit=
  9534. for x in $ltrpathdirs; do
  9535. if test "X$x" = "X$dir"; then
  9536. haveit=yes
  9537. break
  9538. fi
  9539. done
  9540. if test -z "$haveit"; then
  9541. ltrpathdirs="$ltrpathdirs $dir"
  9542. fi
  9543. fi
  9544. ;;
  9545. -l*)
  9546. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9547. ;;
  9548. *.la)
  9549. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9550. ;;
  9551. *)
  9552. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9553. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9554. ;;
  9555. esac
  9556. done
  9557. fi
  9558. else
  9559. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9560. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9561. fi
  9562. fi
  9563. fi
  9564. done
  9565. done
  9566. if test "X$rpathdirs" != "X"; then
  9567. if test -n "$acl_hardcode_libdir_separator"; then
  9568. alldirs=
  9569. for found_dir in $rpathdirs; do
  9570. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9571. done
  9572. acl_save_libdir="$libdir"
  9573. libdir="$alldirs"
  9574. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9575. libdir="$acl_save_libdir"
  9576. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9577. else
  9578. for found_dir in $rpathdirs; do
  9579. acl_save_libdir="$libdir"
  9580. libdir="$found_dir"
  9581. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9582. libdir="$acl_save_libdir"
  9583. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9584. done
  9585. fi
  9586. fi
  9587. if test "X$ltrpathdirs" != "X"; then
  9588. for found_dir in $ltrpathdirs; do
  9589. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9590. done
  9591. fi
  9592. ac_cv_libpth_libs="$LIBPTH"
  9593. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9594. ac_cv_libpth_cppflags="$INCPTH"
  9595. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9598. $as_echo "$ac_cv_libpth_libs" >&6; }
  9599. LIBPTH="$ac_cv_libpth_libs"
  9600. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9601. INCPTH="$ac_cv_libpth_cppflags"
  9602. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9603. for element in $INCPTH; do
  9604. haveit=
  9605. for x in $CPPFLAGS; do
  9606. acl_save_prefix="$prefix"
  9607. prefix="$acl_final_prefix"
  9608. acl_save_exec_prefix="$exec_prefix"
  9609. exec_prefix="$acl_final_exec_prefix"
  9610. eval x=\"$x\"
  9611. exec_prefix="$acl_save_exec_prefix"
  9612. prefix="$acl_save_prefix"
  9613. if test "X$x" = "X$element"; then
  9614. haveit=yes
  9615. break
  9616. fi
  9617. done
  9618. if test -z "$haveit"; then
  9619. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9620. fi
  9621. done
  9622. HAVE_LIBPTH=yes
  9623. gl_have_pth=
  9624. gl_save_LIBS="$LIBS"
  9625. LIBS="$LIBS -lpth"
  9626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9627. /* end confdefs.h. */
  9628. #include <pth.h>
  9629. int
  9630. main ()
  9631. {
  9632. pth_self();
  9633. ;
  9634. return 0;
  9635. }
  9636. _ACEOF
  9637. if ac_fn_cxx_try_link "$LINENO"; then :
  9638. gl_have_pth=yes
  9639. fi
  9640. rm -f core conftest.err conftest.$ac_objext \
  9641. conftest$ac_exeext conftest.$ac_ext
  9642. LIBS="$gl_save_LIBS"
  9643. if test -n "$gl_have_pth"; then
  9644. gl_threads_api=pth
  9645. LIBTHREAD="$LIBPTH"
  9646. LTLIBTHREAD="$LTLIBPTH"
  9647. LIBMULTITHREAD="$LIBTHREAD"
  9648. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9649. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9650. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9651. if test $gl_have_weak = yes; then
  9652. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9653. LIBTHREAD=
  9654. LTLIBTHREAD=
  9655. fi
  9656. fi
  9657. else
  9658. CPPFLAGS="$gl_save_CPPFLAGS"
  9659. fi
  9660. fi
  9661. if test -z "$gl_have_pthread"; then
  9662. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9663. if { case "$host_os" in
  9664. mingw*) true;;
  9665. *) false;;
  9666. esac
  9667. }; then
  9668. gl_threads_api=win32
  9669. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9670. fi
  9671. fi
  9672. fi
  9673. fi
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9675. $as_echo_n "checking for multithread API to use... " >&6; }
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9677. $as_echo "$gl_threads_api" >&6; }
  9678. use_additional=yes
  9679. acl_save_prefix="$prefix"
  9680. prefix="$acl_final_prefix"
  9681. acl_save_exec_prefix="$exec_prefix"
  9682. exec_prefix="$acl_final_exec_prefix"
  9683. eval additional_includedir=\"$includedir\"
  9684. eval additional_libdir=\"$libdir\"
  9685. exec_prefix="$acl_save_exec_prefix"
  9686. prefix="$acl_save_prefix"
  9687. # Check whether --with-libiconv-prefix was given.
  9688. if test "${with_libiconv_prefix+set}" = set; then :
  9689. withval=$with_libiconv_prefix;
  9690. if test "X$withval" = "Xno"; then
  9691. use_additional=no
  9692. else
  9693. if test "X$withval" = "X"; then
  9694. acl_save_prefix="$prefix"
  9695. prefix="$acl_final_prefix"
  9696. acl_save_exec_prefix="$exec_prefix"
  9697. exec_prefix="$acl_final_exec_prefix"
  9698. eval additional_includedir=\"$includedir\"
  9699. eval additional_libdir=\"$libdir\"
  9700. exec_prefix="$acl_save_exec_prefix"
  9701. prefix="$acl_save_prefix"
  9702. else
  9703. additional_includedir="$withval/include"
  9704. additional_libdir="$withval/$acl_libdirstem"
  9705. fi
  9706. fi
  9707. fi
  9708. LIBICONV=
  9709. LTLIBICONV=
  9710. INCICONV=
  9711. LIBICONV_PREFIX=
  9712. rpathdirs=
  9713. ltrpathdirs=
  9714. names_already_handled=
  9715. names_next_round='iconv '
  9716. while test -n "$names_next_round"; do
  9717. names_this_round="$names_next_round"
  9718. names_next_round=
  9719. for name in $names_this_round; do
  9720. already_handled=
  9721. for n in $names_already_handled; do
  9722. if test "$n" = "$name"; then
  9723. already_handled=yes
  9724. break
  9725. fi
  9726. done
  9727. if test -z "$already_handled"; then
  9728. names_already_handled="$names_already_handled $name"
  9729. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9730. eval value=\"\$HAVE_LIB$uppername\"
  9731. if test -n "$value"; then
  9732. if test "$value" = yes; then
  9733. eval value=\"\$LIB$uppername\"
  9734. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9735. eval value=\"\$LTLIB$uppername\"
  9736. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9737. else
  9738. :
  9739. fi
  9740. else
  9741. found_dir=
  9742. found_la=
  9743. found_so=
  9744. found_a=
  9745. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9746. if test -n "$acl_shlibext"; then
  9747. shrext=".$acl_shlibext" # typically: shrext=.so
  9748. else
  9749. shrext=
  9750. fi
  9751. if test $use_additional = yes; then
  9752. dir="$additional_libdir"
  9753. if test -n "$acl_shlibext"; then
  9754. if test -f "$dir/$libname$shrext"; then
  9755. found_dir="$dir"
  9756. found_so="$dir/$libname$shrext"
  9757. else
  9758. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9759. ver=`(cd "$dir" && \
  9760. for f in "$libname$shrext".*; do echo "$f"; done \
  9761. | sed -e "s,^$libname$shrext\\\\.,," \
  9762. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9763. | sed 1q ) 2>/dev/null`
  9764. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9765. found_dir="$dir"
  9766. found_so="$dir/$libname$shrext.$ver"
  9767. fi
  9768. else
  9769. eval library_names=\"$acl_library_names_spec\"
  9770. for f in $library_names; do
  9771. if test -f "$dir/$f"; then
  9772. found_dir="$dir"
  9773. found_so="$dir/$f"
  9774. break
  9775. fi
  9776. done
  9777. fi
  9778. fi
  9779. fi
  9780. if test "X$found_dir" = "X"; then
  9781. if test -f "$dir/$libname.$acl_libext"; then
  9782. found_dir="$dir"
  9783. found_a="$dir/$libname.$acl_libext"
  9784. fi
  9785. fi
  9786. if test "X$found_dir" != "X"; then
  9787. if test -f "$dir/$libname.la"; then
  9788. found_la="$dir/$libname.la"
  9789. fi
  9790. fi
  9791. fi
  9792. if test "X$found_dir" = "X"; then
  9793. for x in $LDFLAGS $LTLIBICONV; do
  9794. acl_save_prefix="$prefix"
  9795. prefix="$acl_final_prefix"
  9796. acl_save_exec_prefix="$exec_prefix"
  9797. exec_prefix="$acl_final_exec_prefix"
  9798. eval x=\"$x\"
  9799. exec_prefix="$acl_save_exec_prefix"
  9800. prefix="$acl_save_prefix"
  9801. case "$x" in
  9802. -L*)
  9803. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9804. if test -n "$acl_shlibext"; then
  9805. if test -f "$dir/$libname$shrext"; then
  9806. found_dir="$dir"
  9807. found_so="$dir/$libname$shrext"
  9808. else
  9809. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9810. ver=`(cd "$dir" && \
  9811. for f in "$libname$shrext".*; do echo "$f"; done \
  9812. | sed -e "s,^$libname$shrext\\\\.,," \
  9813. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9814. | sed 1q ) 2>/dev/null`
  9815. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9816. found_dir="$dir"
  9817. found_so="$dir/$libname$shrext.$ver"
  9818. fi
  9819. else
  9820. eval library_names=\"$acl_library_names_spec\"
  9821. for f in $library_names; do
  9822. if test -f "$dir/$f"; then
  9823. found_dir="$dir"
  9824. found_so="$dir/$f"
  9825. break
  9826. fi
  9827. done
  9828. fi
  9829. fi
  9830. fi
  9831. if test "X$found_dir" = "X"; then
  9832. if test -f "$dir/$libname.$acl_libext"; then
  9833. found_dir="$dir"
  9834. found_a="$dir/$libname.$acl_libext"
  9835. fi
  9836. fi
  9837. if test "X$found_dir" != "X"; then
  9838. if test -f "$dir/$libname.la"; then
  9839. found_la="$dir/$libname.la"
  9840. fi
  9841. fi
  9842. ;;
  9843. esac
  9844. if test "X$found_dir" != "X"; then
  9845. break
  9846. fi
  9847. done
  9848. fi
  9849. if test "X$found_dir" != "X"; then
  9850. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9851. if test "X$found_so" != "X"; then
  9852. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9853. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9854. else
  9855. haveit=
  9856. for x in $ltrpathdirs; do
  9857. if test "X$x" = "X$found_dir"; then
  9858. haveit=yes
  9859. break
  9860. fi
  9861. done
  9862. if test -z "$haveit"; then
  9863. ltrpathdirs="$ltrpathdirs $found_dir"
  9864. fi
  9865. if test "$acl_hardcode_direct" = yes; then
  9866. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9867. else
  9868. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9869. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9870. haveit=
  9871. for x in $rpathdirs; do
  9872. if test "X$x" = "X$found_dir"; then
  9873. haveit=yes
  9874. break
  9875. fi
  9876. done
  9877. if test -z "$haveit"; then
  9878. rpathdirs="$rpathdirs $found_dir"
  9879. fi
  9880. else
  9881. haveit=
  9882. for x in $LDFLAGS $LIBICONV; do
  9883. acl_save_prefix="$prefix"
  9884. prefix="$acl_final_prefix"
  9885. acl_save_exec_prefix="$exec_prefix"
  9886. exec_prefix="$acl_final_exec_prefix"
  9887. eval x=\"$x\"
  9888. exec_prefix="$acl_save_exec_prefix"
  9889. prefix="$acl_save_prefix"
  9890. if test "X$x" = "X-L$found_dir"; then
  9891. haveit=yes
  9892. break
  9893. fi
  9894. done
  9895. if test -z "$haveit"; then
  9896. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9897. fi
  9898. if test "$acl_hardcode_minus_L" != no; then
  9899. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9900. else
  9901. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9902. fi
  9903. fi
  9904. fi
  9905. fi
  9906. else
  9907. if test "X$found_a" != "X"; then
  9908. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9909. else
  9910. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9911. fi
  9912. fi
  9913. additional_includedir=
  9914. case "$found_dir" in
  9915. */$acl_libdirstem | */$acl_libdirstem/)
  9916. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9917. LIBICONV_PREFIX="$basedir"
  9918. additional_includedir="$basedir/include"
  9919. ;;
  9920. esac
  9921. if test "X$additional_includedir" != "X"; then
  9922. if test "X$additional_includedir" != "X/usr/include"; then
  9923. haveit=
  9924. if test "X$additional_includedir" = "X/usr/local/include"; then
  9925. if test -n "$GCC"; then
  9926. case $host_os in
  9927. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9928. esac
  9929. fi
  9930. fi
  9931. if test -z "$haveit"; then
  9932. for x in $CPPFLAGS $INCICONV; do
  9933. acl_save_prefix="$prefix"
  9934. prefix="$acl_final_prefix"
  9935. acl_save_exec_prefix="$exec_prefix"
  9936. exec_prefix="$acl_final_exec_prefix"
  9937. eval x=\"$x\"
  9938. exec_prefix="$acl_save_exec_prefix"
  9939. prefix="$acl_save_prefix"
  9940. if test "X$x" = "X-I$additional_includedir"; then
  9941. haveit=yes
  9942. break
  9943. fi
  9944. done
  9945. if test -z "$haveit"; then
  9946. if test -d "$additional_includedir"; then
  9947. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9948. fi
  9949. fi
  9950. fi
  9951. fi
  9952. fi
  9953. if test -n "$found_la"; then
  9954. save_libdir="$libdir"
  9955. case "$found_la" in
  9956. */* | *\\*) . "$found_la" ;;
  9957. *) . "./$found_la" ;;
  9958. esac
  9959. libdir="$save_libdir"
  9960. for dep in $dependency_libs; do
  9961. case "$dep" in
  9962. -L*)
  9963. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9964. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9965. haveit=
  9966. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9967. if test -n "$GCC"; then
  9968. case $host_os in
  9969. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9970. esac
  9971. fi
  9972. fi
  9973. if test -z "$haveit"; then
  9974. haveit=
  9975. for x in $LDFLAGS $LIBICONV; do
  9976. acl_save_prefix="$prefix"
  9977. prefix="$acl_final_prefix"
  9978. acl_save_exec_prefix="$exec_prefix"
  9979. exec_prefix="$acl_final_exec_prefix"
  9980. eval x=\"$x\"
  9981. exec_prefix="$acl_save_exec_prefix"
  9982. prefix="$acl_save_prefix"
  9983. if test "X$x" = "X-L$additional_libdir"; then
  9984. haveit=yes
  9985. break
  9986. fi
  9987. done
  9988. if test -z "$haveit"; then
  9989. if test -d "$additional_libdir"; then
  9990. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9991. fi
  9992. fi
  9993. haveit=
  9994. for x in $LDFLAGS $LTLIBICONV; do
  9995. acl_save_prefix="$prefix"
  9996. prefix="$acl_final_prefix"
  9997. acl_save_exec_prefix="$exec_prefix"
  9998. exec_prefix="$acl_final_exec_prefix"
  9999. eval x=\"$x\"
  10000. exec_prefix="$acl_save_exec_prefix"
  10001. prefix="$acl_save_prefix"
  10002. if test "X$x" = "X-L$additional_libdir"; then
  10003. haveit=yes
  10004. break
  10005. fi
  10006. done
  10007. if test -z "$haveit"; then
  10008. if test -d "$additional_libdir"; then
  10009. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10010. fi
  10011. fi
  10012. fi
  10013. fi
  10014. ;;
  10015. -R*)
  10016. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10017. if test "$enable_rpath" != no; then
  10018. haveit=
  10019. for x in $rpathdirs; do
  10020. if test "X$x" = "X$dir"; then
  10021. haveit=yes
  10022. break
  10023. fi
  10024. done
  10025. if test -z "$haveit"; then
  10026. rpathdirs="$rpathdirs $dir"
  10027. fi
  10028. haveit=
  10029. for x in $ltrpathdirs; do
  10030. if test "X$x" = "X$dir"; then
  10031. haveit=yes
  10032. break
  10033. fi
  10034. done
  10035. if test -z "$haveit"; then
  10036. ltrpathdirs="$ltrpathdirs $dir"
  10037. fi
  10038. fi
  10039. ;;
  10040. -l*)
  10041. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10042. ;;
  10043. *.la)
  10044. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10045. ;;
  10046. *)
  10047. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10048. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10049. ;;
  10050. esac
  10051. done
  10052. fi
  10053. else
  10054. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10055. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10056. fi
  10057. fi
  10058. fi
  10059. done
  10060. done
  10061. if test "X$rpathdirs" != "X"; then
  10062. if test -n "$acl_hardcode_libdir_separator"; then
  10063. alldirs=
  10064. for found_dir in $rpathdirs; do
  10065. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10066. done
  10067. acl_save_libdir="$libdir"
  10068. libdir="$alldirs"
  10069. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10070. libdir="$acl_save_libdir"
  10071. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10072. else
  10073. for found_dir in $rpathdirs; do
  10074. acl_save_libdir="$libdir"
  10075. libdir="$found_dir"
  10076. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10077. libdir="$acl_save_libdir"
  10078. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10079. done
  10080. fi
  10081. fi
  10082. if test "X$ltrpathdirs" != "X"; then
  10083. for found_dir in $ltrpathdirs; do
  10084. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10085. done
  10086. fi
  10087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10088. /* end confdefs.h. */
  10089. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10090. int
  10091. main ()
  10092. {
  10093. ;
  10094. return 0;
  10095. }
  10096. _ACEOF
  10097. if ac_fn_cxx_try_link "$LINENO"; then :
  10098. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10099. fi
  10100. rm -f core conftest.err conftest.$ac_objext \
  10101. conftest$ac_exeext conftest.$ac_ext
  10102. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10103. do :
  10104. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10105. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10106. eval as_val=\$$as_ac_Header
  10107. if test "x$as_val" = x""yes; then :
  10108. cat >>confdefs.h <<_ACEOF
  10109. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10110. _ACEOF
  10111. fi
  10112. done
  10113. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10114. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10115. argz_next __fsetlocking
  10116. do :
  10117. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10118. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10119. eval as_val=\$$as_ac_var
  10120. if test "x$as_val" = x""yes; then :
  10121. cat >>confdefs.h <<_ACEOF
  10122. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10123. _ACEOF
  10124. fi
  10125. done
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10127. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10128. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10132. /* end confdefs.h. */
  10133. #include <stdio.h>
  10134. int
  10135. main ()
  10136. {
  10137. #ifndef feof_unlocked
  10138. char *p = (char *) feof_unlocked;
  10139. #endif
  10140. ;
  10141. return 0;
  10142. }
  10143. _ACEOF
  10144. if ac_fn_cxx_try_compile "$LINENO"; then :
  10145. ac_cv_have_decl_feof_unlocked=yes
  10146. else
  10147. ac_cv_have_decl_feof_unlocked=no
  10148. fi
  10149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10152. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10153. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10154. gt_value=1
  10155. else
  10156. gt_value=0
  10157. fi
  10158. cat >>confdefs.h <<_ACEOF
  10159. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10160. _ACEOF
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10162. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10163. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10164. $as_echo_n "(cached) " >&6
  10165. else
  10166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10167. /* end confdefs.h. */
  10168. #include <stdio.h>
  10169. int
  10170. main ()
  10171. {
  10172. #ifndef fgets_unlocked
  10173. char *p = (char *) fgets_unlocked;
  10174. #endif
  10175. ;
  10176. return 0;
  10177. }
  10178. _ACEOF
  10179. if ac_fn_cxx_try_compile "$LINENO"; then :
  10180. ac_cv_have_decl_fgets_unlocked=yes
  10181. else
  10182. ac_cv_have_decl_fgets_unlocked=no
  10183. fi
  10184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10187. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10188. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10189. gt_value=1
  10190. else
  10191. gt_value=0
  10192. fi
  10193. cat >>confdefs.h <<_ACEOF
  10194. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10195. _ACEOF
  10196. am_save_CPPFLAGS="$CPPFLAGS"
  10197. for element in $INCICONV; do
  10198. haveit=
  10199. for x in $CPPFLAGS; do
  10200. acl_save_prefix="$prefix"
  10201. prefix="$acl_final_prefix"
  10202. acl_save_exec_prefix="$exec_prefix"
  10203. exec_prefix="$acl_final_exec_prefix"
  10204. eval x=\"$x\"
  10205. exec_prefix="$acl_save_exec_prefix"
  10206. prefix="$acl_save_prefix"
  10207. if test "X$x" = "X$element"; then
  10208. haveit=yes
  10209. break
  10210. fi
  10211. done
  10212. if test -z "$haveit"; then
  10213. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10214. fi
  10215. done
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10217. $as_echo_n "checking for iconv... " >&6; }
  10218. if test "${am_cv_func_iconv+set}" = set; then :
  10219. $as_echo_n "(cached) " >&6
  10220. else
  10221. am_cv_func_iconv="no, consider installing GNU libiconv"
  10222. am_cv_lib_iconv=no
  10223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10224. /* end confdefs.h. */
  10225. #include <stdlib.h>
  10226. #include <iconv.h>
  10227. int
  10228. main ()
  10229. {
  10230. iconv_t cd = iconv_open("","");
  10231. iconv(cd,NULL,NULL,NULL,NULL);
  10232. iconv_close(cd);
  10233. ;
  10234. return 0;
  10235. }
  10236. _ACEOF
  10237. if ac_fn_cxx_try_link "$LINENO"; then :
  10238. am_cv_func_iconv=yes
  10239. fi
  10240. rm -f core conftest.err conftest.$ac_objext \
  10241. conftest$ac_exeext conftest.$ac_ext
  10242. if test "$am_cv_func_iconv" != yes; then
  10243. am_save_LIBS="$LIBS"
  10244. LIBS="$LIBS $LIBICONV"
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. #include <stdlib.h>
  10248. #include <iconv.h>
  10249. int
  10250. main ()
  10251. {
  10252. iconv_t cd = iconv_open("","");
  10253. iconv(cd,NULL,NULL,NULL,NULL);
  10254. iconv_close(cd);
  10255. ;
  10256. return 0;
  10257. }
  10258. _ACEOF
  10259. if ac_fn_cxx_try_link "$LINENO"; then :
  10260. am_cv_lib_iconv=yes
  10261. am_cv_func_iconv=yes
  10262. fi
  10263. rm -f core conftest.err conftest.$ac_objext \
  10264. conftest$ac_exeext conftest.$ac_ext
  10265. LIBS="$am_save_LIBS"
  10266. fi
  10267. fi
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10269. $as_echo "$am_cv_func_iconv" >&6; }
  10270. if test "$am_cv_func_iconv" = yes; then
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10272. $as_echo_n "checking for working iconv... " >&6; }
  10273. if test "${am_cv_func_iconv_works+set}" = set; then :
  10274. $as_echo_n "(cached) " >&6
  10275. else
  10276. am_save_LIBS="$LIBS"
  10277. if test $am_cv_lib_iconv = yes; then
  10278. LIBS="$LIBS $LIBICONV"
  10279. fi
  10280. if test "$cross_compiling" = yes; then :
  10281. case "$host_os" in
  10282. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10283. *) am_cv_func_iconv_works="guessing yes" ;;
  10284. esac
  10285. else
  10286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10287. /* end confdefs.h. */
  10288. #include <iconv.h>
  10289. #include <string.h>
  10290. int main ()
  10291. {
  10292. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10293. returns. */
  10294. {
  10295. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10296. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10297. {
  10298. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10299. char buf[10];
  10300. const char *inptr = input;
  10301. size_t inbytesleft = strlen (input);
  10302. char *outptr = buf;
  10303. size_t outbytesleft = sizeof (buf);
  10304. size_t res = iconv (cd_utf8_to_88591,
  10305. (char **) &inptr, &inbytesleft,
  10306. &outptr, &outbytesleft);
  10307. if (res == 0)
  10308. return 1;
  10309. }
  10310. }
  10311. #if 0 /* This bug could be worked around by the caller. */
  10312. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10313. {
  10314. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10315. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10316. {
  10317. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10318. char buf[50];
  10319. const char *inptr = input;
  10320. size_t inbytesleft = strlen (input);
  10321. char *outptr = buf;
  10322. size_t outbytesleft = sizeof (buf);
  10323. size_t res = iconv (cd_88591_to_utf8,
  10324. (char **) &inptr, &inbytesleft,
  10325. &outptr, &outbytesleft);
  10326. if ((int)res > 0)
  10327. return 1;
  10328. }
  10329. }
  10330. #endif
  10331. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10332. provided. */
  10333. if (/* Try standardized names. */
  10334. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10335. /* Try IRIX, OSF/1 names. */
  10336. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10337. /* Try AIX names. */
  10338. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10339. /* Try HP-UX names. */
  10340. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10341. return 1;
  10342. return 0;
  10343. }
  10344. _ACEOF
  10345. if ac_fn_cxx_try_run "$LINENO"; then :
  10346. am_cv_func_iconv_works=yes
  10347. else
  10348. am_cv_func_iconv_works=no
  10349. fi
  10350. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10351. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10352. fi
  10353. LIBS="$am_save_LIBS"
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10356. $as_echo "$am_cv_func_iconv_works" >&6; }
  10357. case "$am_cv_func_iconv_works" in
  10358. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10359. *) am_func_iconv=yes ;;
  10360. esac
  10361. else
  10362. am_func_iconv=no am_cv_lib_iconv=no
  10363. fi
  10364. if test "$am_func_iconv" = yes; then
  10365. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10366. fi
  10367. if test "$am_cv_lib_iconv" = yes; then
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10369. $as_echo_n "checking how to link with libiconv... " >&6; }
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10371. $as_echo "$LIBICONV" >&6; }
  10372. else
  10373. CPPFLAGS="$am_save_CPPFLAGS"
  10374. LIBICONV=
  10375. LTLIBICONV=
  10376. fi
  10377. if test "$am_cv_func_iconv" = yes; then
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10379. $as_echo_n "checking for iconv declaration... " >&6; }
  10380. if test "${am_cv_proto_iconv+set}" = set; then :
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10384. /* end confdefs.h. */
  10385. #include <stdlib.h>
  10386. #include <iconv.h>
  10387. extern
  10388. #ifdef __cplusplus
  10389. "C"
  10390. #endif
  10391. #if defined(__STDC__) || defined(__cplusplus)
  10392. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10393. #else
  10394. size_t iconv();
  10395. #endif
  10396. int
  10397. main ()
  10398. {
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. if ac_fn_cxx_try_compile "$LINENO"; then :
  10404. am_cv_proto_iconv_arg1=""
  10405. else
  10406. am_cv_proto_iconv_arg1="const"
  10407. fi
  10408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10409. 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);"
  10410. fi
  10411. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10413. }$am_cv_proto_iconv" >&5
  10414. $as_echo "${ac_t:-
  10415. }$am_cv_proto_iconv" >&6; }
  10416. cat >>confdefs.h <<_ACEOF
  10417. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10418. _ACEOF
  10419. fi
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10421. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10422. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10426. /* end confdefs.h. */
  10427. #include <langinfo.h>
  10428. #include <locale.h>
  10429. int
  10430. main ()
  10431. {
  10432. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10433. return !cs;
  10434. ;
  10435. return 0;
  10436. }
  10437. _ACEOF
  10438. if ac_fn_cxx_try_link "$LINENO"; then :
  10439. gt_cv_nl_locale_name=yes
  10440. else
  10441. gt_cv_nl_locale_name=no
  10442. fi
  10443. rm -f core conftest.err conftest.$ac_objext \
  10444. conftest$ac_exeext conftest.$ac_ext
  10445. fi
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10447. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10448. if test $gt_cv_nl_locale_name = yes; then
  10449. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10450. fi
  10451. for ac_prog in bison
  10452. do
  10453. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10454. set dummy $ac_prog; ac_word=$2
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10456. $as_echo_n "checking for $ac_word... " >&6; }
  10457. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10458. $as_echo_n "(cached) " >&6
  10459. else
  10460. if test -n "$INTLBISON"; then
  10461. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10462. else
  10463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10464. for as_dir in $PATH
  10465. do
  10466. IFS=$as_save_IFS
  10467. test -z "$as_dir" && as_dir=.
  10468. for ac_exec_ext in '' $ac_executable_extensions; do
  10469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10470. ac_cv_prog_INTLBISON="$ac_prog"
  10471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10472. break 2
  10473. fi
  10474. done
  10475. done
  10476. IFS=$as_save_IFS
  10477. fi
  10478. fi
  10479. INTLBISON=$ac_cv_prog_INTLBISON
  10480. if test -n "$INTLBISON"; then
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10482. $as_echo "$INTLBISON" >&6; }
  10483. else
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10485. $as_echo "no" >&6; }
  10486. fi
  10487. test -n "$INTLBISON" && break
  10488. done
  10489. if test -z "$INTLBISON"; then
  10490. ac_verc_fail=yes
  10491. else
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10493. $as_echo_n "checking version of bison... " >&6; }
  10494. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10495. case $ac_prog_version in
  10496. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10497. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10498. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10499. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10500. esac
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10502. $as_echo "$ac_prog_version" >&6; }
  10503. fi
  10504. if test $ac_verc_fail = yes; then
  10505. INTLBISON=:
  10506. fi
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10508. $as_echo_n "checking for long long int... " >&6; }
  10509. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10510. $as_echo_n "(cached) " >&6
  10511. else
  10512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10513. /* end confdefs.h. */
  10514. /* Test preprocessor. */
  10515. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10516. error in preprocessor;
  10517. #endif
  10518. #if ! (18446744073709551615ULL <= -1ull)
  10519. error in preprocessor;
  10520. #endif
  10521. /* Test literals. */
  10522. long long int ll = 9223372036854775807ll;
  10523. long long int nll = -9223372036854775807LL;
  10524. unsigned long long int ull = 18446744073709551615ULL;
  10525. /* Test constant expressions. */
  10526. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10527. ? 1 : -1)];
  10528. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10529. ? 1 : -1)];
  10530. int i = 63;
  10531. int
  10532. main ()
  10533. {
  10534. /* Test availability of runtime routines for shift and division. */
  10535. long long int llmax = 9223372036854775807ll;
  10536. unsigned long long int ullmax = 18446744073709551615ull;
  10537. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10538. | (llmax / ll) | (llmax % ll)
  10539. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10540. | (ullmax / ull) | (ullmax % ull));
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. if ac_fn_cxx_try_link "$LINENO"; then :
  10546. if test "$cross_compiling" = yes; then :
  10547. ac_cv_type_long_long_int=yes
  10548. else
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. #include <limits.h>
  10552. #ifndef LLONG_MAX
  10553. # define HALF \
  10554. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10555. # define LLONG_MAX (HALF - 1 + HALF)
  10556. #endif
  10557. int
  10558. main ()
  10559. {
  10560. long long int n = 1;
  10561. int i;
  10562. for (i = 0; ; i++)
  10563. {
  10564. long long int m = n << i;
  10565. if (m >> i != n)
  10566. return 1;
  10567. if (LLONG_MAX / 2 < m)
  10568. break;
  10569. }
  10570. return 0;
  10571. ;
  10572. return 0;
  10573. }
  10574. _ACEOF
  10575. if ac_fn_cxx_try_run "$LINENO"; then :
  10576. ac_cv_type_long_long_int=yes
  10577. else
  10578. ac_cv_type_long_long_int=no
  10579. fi
  10580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10581. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10582. fi
  10583. else
  10584. ac_cv_type_long_long_int=no
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext \
  10587. conftest$ac_exeext conftest.$ac_ext
  10588. fi
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10590. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10591. if test $ac_cv_type_long_long_int = yes; then
  10592. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10593. fi
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10595. $as_echo_n "checking for wchar_t... " >&6; }
  10596. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10597. $as_echo_n "(cached) " >&6
  10598. else
  10599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10600. /* end confdefs.h. */
  10601. #include <stddef.h>
  10602. wchar_t foo = (wchar_t)'\0';
  10603. int
  10604. main ()
  10605. {
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. if ac_fn_cxx_try_compile "$LINENO"; then :
  10611. gt_cv_c_wchar_t=yes
  10612. else
  10613. gt_cv_c_wchar_t=no
  10614. fi
  10615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10616. fi
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10618. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10619. if test $gt_cv_c_wchar_t = yes; then
  10620. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10621. fi
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10623. $as_echo_n "checking for wint_t... " >&6; }
  10624. if test "${gt_cv_c_wint_t+set}" = set; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10628. /* end confdefs.h. */
  10629. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10630. <wchar.h>.
  10631. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10632. before <wchar.h>. */
  10633. #include <stddef.h>
  10634. #include <stdio.h>
  10635. #include <time.h>
  10636. #include <wchar.h>
  10637. wint_t foo = (wchar_t)'\0';
  10638. int
  10639. main ()
  10640. {
  10641. ;
  10642. return 0;
  10643. }
  10644. _ACEOF
  10645. if ac_fn_cxx_try_compile "$LINENO"; then :
  10646. gt_cv_c_wint_t=yes
  10647. else
  10648. gt_cv_c_wint_t=no
  10649. fi
  10650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10651. fi
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10653. $as_echo "$gt_cv_c_wint_t" >&6; }
  10654. if test $gt_cv_c_wint_t = yes; then
  10655. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10656. fi
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10658. $as_echo_n "checking for intmax_t... " >&6; }
  10659. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10660. $as_echo_n "(cached) " >&6
  10661. else
  10662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10663. /* end confdefs.h. */
  10664. #include <stddef.h>
  10665. #include <stdlib.h>
  10666. #if HAVE_STDINT_H_WITH_UINTMAX
  10667. #include <stdint.h>
  10668. #endif
  10669. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10670. #include <inttypes.h>
  10671. #endif
  10672. int
  10673. main ()
  10674. {
  10675. intmax_t x = -1;
  10676. return !x;
  10677. ;
  10678. return 0;
  10679. }
  10680. _ACEOF
  10681. if ac_fn_cxx_try_compile "$LINENO"; then :
  10682. gt_cv_c_intmax_t=yes
  10683. else
  10684. gt_cv_c_intmax_t=no
  10685. fi
  10686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10687. fi
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10689. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10690. if test $gt_cv_c_intmax_t = yes; then
  10691. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10692. fi
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10694. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10695. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10696. $as_echo_n "(cached) " >&6
  10697. else
  10698. if test "$cross_compiling" = yes; then :
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10702. notposix
  10703. #endif
  10704. _ACEOF
  10705. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10706. $EGREP "notposix" >/dev/null 2>&1; then :
  10707. gt_cv_func_printf_posix="guessing no"
  10708. else
  10709. gt_cv_func_printf_posix="guessing yes"
  10710. fi
  10711. rm -f conftest*
  10712. else
  10713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10714. /* end confdefs.h. */
  10715. #include <stdio.h>
  10716. #include <string.h>
  10717. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10718. dollar expansion (possibly an autoconf bug). */
  10719. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10720. static char buf[100];
  10721. int main ()
  10722. {
  10723. sprintf (buf, format, 33, 55);
  10724. return (strcmp (buf, "55 33") != 0);
  10725. }
  10726. _ACEOF
  10727. if ac_fn_cxx_try_run "$LINENO"; then :
  10728. gt_cv_func_printf_posix=yes
  10729. else
  10730. gt_cv_func_printf_posix=no
  10731. fi
  10732. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10733. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10734. fi
  10735. fi
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10737. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10738. case $gt_cv_func_printf_posix in
  10739. *yes)
  10740. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10741. ;;
  10742. esac
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10744. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10745. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10746. $as_echo_n "(cached) " >&6
  10747. else
  10748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10749. /* end confdefs.h. */
  10750. #include <features.h>
  10751. #ifdef __GNU_LIBRARY__
  10752. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10753. Lucky GNU user
  10754. #endif
  10755. #endif
  10756. _ACEOF
  10757. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10758. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10759. ac_cv_gnu_library_2_1=yes
  10760. else
  10761. ac_cv_gnu_library_2_1=no
  10762. fi
  10763. rm -f conftest*
  10764. fi
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10766. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10767. GLIBC21="$ac_cv_gnu_library_2_1"
  10768. for ac_header in stdint.h
  10769. do :
  10770. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10771. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10772. cat >>confdefs.h <<_ACEOF
  10773. #define HAVE_STDINT_H 1
  10774. _ACEOF
  10775. fi
  10776. done
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10778. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10779. if test "${gl_cv_size_max+set}" = set; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. gl_cv_size_max=
  10783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10784. /* end confdefs.h. */
  10785. #include <limits.h>
  10786. #if HAVE_STDINT_H
  10787. #include <stdint.h>
  10788. #endif
  10789. #ifdef SIZE_MAX
  10790. Found it
  10791. #endif
  10792. _ACEOF
  10793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10794. $EGREP "Found it" >/dev/null 2>&1; then :
  10795. gl_cv_size_max=yes
  10796. fi
  10797. rm -f conftest*
  10798. if test -z "$gl_cv_size_max"; then
  10799. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10800. #include <limits.h>"; then :
  10801. else
  10802. size_t_bits_minus_1=
  10803. fi
  10804. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10805. else
  10806. fits_in_uint=
  10807. fi
  10808. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10809. if test $fits_in_uint = 1; then
  10810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10811. /* end confdefs.h. */
  10812. #include <stddef.h>
  10813. extern size_t foo;
  10814. extern unsigned long foo;
  10815. int
  10816. main ()
  10817. {
  10818. ;
  10819. return 0;
  10820. }
  10821. _ACEOF
  10822. if ac_fn_cxx_try_compile "$LINENO"; then :
  10823. fits_in_uint=0
  10824. fi
  10825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10826. fi
  10827. if test $fits_in_uint = 1; then
  10828. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10829. else
  10830. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10831. fi
  10832. else
  10833. gl_cv_size_max='((size_t)~(size_t)0)'
  10834. fi
  10835. fi
  10836. fi
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10838. $as_echo "$gl_cv_size_max" >&6; }
  10839. if test "$gl_cv_size_max" != yes; then
  10840. cat >>confdefs.h <<_ACEOF
  10841. #define SIZE_MAX $gl_cv_size_max
  10842. _ACEOF
  10843. fi
  10844. for ac_header in stdint.h
  10845. do :
  10846. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10847. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10848. cat >>confdefs.h <<_ACEOF
  10849. #define HAVE_STDINT_H 1
  10850. _ACEOF
  10851. fi
  10852. done
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10854. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10855. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. gt_save_LIBS="$LIBS"
  10859. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10861. /* end confdefs.h. */
  10862. #include <CoreFoundation/CFPreferences.h>
  10863. int
  10864. main ()
  10865. {
  10866. CFPreferencesCopyAppValue(NULL, NULL)
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. if ac_fn_cxx_try_link "$LINENO"; then :
  10872. gt_cv_func_CFPreferencesCopyAppValue=yes
  10873. else
  10874. gt_cv_func_CFPreferencesCopyAppValue=no
  10875. fi
  10876. rm -f core conftest.err conftest.$ac_objext \
  10877. conftest$ac_exeext conftest.$ac_ext
  10878. LIBS="$gt_save_LIBS"
  10879. fi
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10881. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10882. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10883. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10884. fi
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10886. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10887. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10888. $as_echo_n "(cached) " >&6
  10889. else
  10890. gt_save_LIBS="$LIBS"
  10891. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10893. /* end confdefs.h. */
  10894. #include <CoreFoundation/CFLocale.h>
  10895. int
  10896. main ()
  10897. {
  10898. CFLocaleCopyCurrent();
  10899. ;
  10900. return 0;
  10901. }
  10902. _ACEOF
  10903. if ac_fn_cxx_try_link "$LINENO"; then :
  10904. gt_cv_func_CFLocaleCopyCurrent=yes
  10905. else
  10906. gt_cv_func_CFLocaleCopyCurrent=no
  10907. fi
  10908. rm -f core conftest.err conftest.$ac_objext \
  10909. conftest$ac_exeext conftest.$ac_ext
  10910. LIBS="$gt_save_LIBS"
  10911. fi
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10913. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10914. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10915. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10916. fi
  10917. INTL_MACOSX_LIBS=
  10918. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10919. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10920. fi
  10921. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10922. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10923. else
  10924. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10925. fi
  10926. for ac_header in stddef.h stdlib.h string.h
  10927. do :
  10928. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10929. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10930. eval as_val=\$$as_ac_Header
  10931. if test "x$as_val" = x""yes; then :
  10932. cat >>confdefs.h <<_ACEOF
  10933. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10934. _ACEOF
  10935. fi
  10936. done
  10937. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10938. do :
  10939. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10940. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10941. eval as_val=\$$as_ac_var
  10942. if test "x$as_val" = x""yes; then :
  10943. cat >>confdefs.h <<_ACEOF
  10944. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10945. _ACEOF
  10946. fi
  10947. done
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10949. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10950. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10954. /* end confdefs.h. */
  10955. #include <stdio.h>
  10956. int
  10957. main ()
  10958. {
  10959. #ifndef _snprintf
  10960. char *p = (char *) _snprintf;
  10961. #endif
  10962. ;
  10963. return 0;
  10964. }
  10965. _ACEOF
  10966. if ac_fn_cxx_try_compile "$LINENO"; then :
  10967. ac_cv_have_decl__snprintf=yes
  10968. else
  10969. ac_cv_have_decl__snprintf=no
  10970. fi
  10971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10972. fi
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10974. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10975. if test $ac_cv_have_decl__snprintf = yes; then
  10976. gt_value=1
  10977. else
  10978. gt_value=0
  10979. fi
  10980. cat >>confdefs.h <<_ACEOF
  10981. #define HAVE_DECL__SNPRINTF $gt_value
  10982. _ACEOF
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10984. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10985. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10986. $as_echo_n "(cached) " >&6
  10987. else
  10988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10989. /* end confdefs.h. */
  10990. #include <stdio.h>
  10991. int
  10992. main ()
  10993. {
  10994. #ifndef _snwprintf
  10995. char *p = (char *) _snwprintf;
  10996. #endif
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. if ac_fn_cxx_try_compile "$LINENO"; then :
  11002. ac_cv_have_decl__snwprintf=yes
  11003. else
  11004. ac_cv_have_decl__snwprintf=no
  11005. fi
  11006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11007. fi
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11009. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11010. if test $ac_cv_have_decl__snwprintf = yes; then
  11011. gt_value=1
  11012. else
  11013. gt_value=0
  11014. fi
  11015. cat >>confdefs.h <<_ACEOF
  11016. #define HAVE_DECL__SNWPRINTF $gt_value
  11017. _ACEOF
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11019. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11020. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11021. $as_echo_n "(cached) " >&6
  11022. else
  11023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11024. /* end confdefs.h. */
  11025. #include <stdio.h>
  11026. int
  11027. main ()
  11028. {
  11029. #ifndef getc_unlocked
  11030. char *p = (char *) getc_unlocked;
  11031. #endif
  11032. ;
  11033. return 0;
  11034. }
  11035. _ACEOF
  11036. if ac_fn_cxx_try_compile "$LINENO"; then :
  11037. ac_cv_have_decl_getc_unlocked=yes
  11038. else
  11039. ac_cv_have_decl_getc_unlocked=no
  11040. fi
  11041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11042. fi
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11044. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11045. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11046. gt_value=1
  11047. else
  11048. gt_value=0
  11049. fi
  11050. cat >>confdefs.h <<_ACEOF
  11051. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11052. _ACEOF
  11053. case $gt_cv_func_printf_posix in
  11054. *yes) HAVE_POSIX_PRINTF=1 ;;
  11055. *) HAVE_POSIX_PRINTF=0 ;;
  11056. esac
  11057. if test "$ac_cv_func_asprintf" = yes; then
  11058. HAVE_ASPRINTF=1
  11059. else
  11060. HAVE_ASPRINTF=0
  11061. fi
  11062. if test "$ac_cv_func_snprintf" = yes; then
  11063. HAVE_SNPRINTF=1
  11064. else
  11065. HAVE_SNPRINTF=0
  11066. fi
  11067. if test "$ac_cv_func_wprintf" = yes; then
  11068. HAVE_WPRINTF=1
  11069. else
  11070. HAVE_WPRINTF=0
  11071. fi
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11073. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11074. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11078. /* end confdefs.h. */
  11079. #include <langinfo.h>
  11080. int
  11081. main ()
  11082. {
  11083. char* cs = nl_langinfo(CODESET); return !cs;
  11084. ;
  11085. return 0;
  11086. }
  11087. _ACEOF
  11088. if ac_fn_cxx_try_link "$LINENO"; then :
  11089. am_cv_langinfo_codeset=yes
  11090. else
  11091. am_cv_langinfo_codeset=no
  11092. fi
  11093. rm -f core conftest.err conftest.$ac_objext \
  11094. conftest$ac_exeext conftest.$ac_ext
  11095. fi
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11097. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11098. if test $am_cv_langinfo_codeset = yes; then
  11099. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11100. fi
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11102. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11103. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11104. $as_echo_n "(cached) " >&6
  11105. else
  11106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11107. /* end confdefs.h. */
  11108. #include <locale.h>
  11109. int
  11110. main ()
  11111. {
  11112. return LC_MESSAGES
  11113. ;
  11114. return 0;
  11115. }
  11116. _ACEOF
  11117. if ac_fn_cxx_try_link "$LINENO"; then :
  11118. gt_cv_val_LC_MESSAGES=yes
  11119. else
  11120. gt_cv_val_LC_MESSAGES=no
  11121. fi
  11122. rm -f core conftest.err conftest.$ac_objext \
  11123. conftest$ac_exeext conftest.$ac_ext
  11124. fi
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11126. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11127. if test $gt_cv_val_LC_MESSAGES = yes; then
  11128. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11129. fi
  11130. if test "$enable_shared" = yes; then
  11131. case "$host_os" in
  11132. mingw* | cygwin*) is_woe32dll=yes ;;
  11133. *) is_woe32dll=no ;;
  11134. esac
  11135. else
  11136. is_woe32dll=no
  11137. fi
  11138. WOE32DLL=$is_woe32dll
  11139. case "$host_os" in
  11140. mingw* | cygwin*) is_woe32=yes ;;
  11141. *) is_woe32=no ;;
  11142. esac
  11143. WOE32=$is_woe32
  11144. if test $WOE32 = yes; then
  11145. if test -n "$ac_tool_prefix"; then
  11146. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11147. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11149. $as_echo_n "checking for $ac_word... " >&6; }
  11150. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. if test -n "$WINDRES"; then
  11154. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11155. else
  11156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11157. for as_dir in $PATH
  11158. do
  11159. IFS=$as_save_IFS
  11160. test -z "$as_dir" && as_dir=.
  11161. for ac_exec_ext in '' $ac_executable_extensions; do
  11162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11163. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11165. break 2
  11166. fi
  11167. done
  11168. done
  11169. IFS=$as_save_IFS
  11170. fi
  11171. fi
  11172. WINDRES=$ac_cv_prog_WINDRES
  11173. if test -n "$WINDRES"; then
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11175. $as_echo "$WINDRES" >&6; }
  11176. else
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11178. $as_echo "no" >&6; }
  11179. fi
  11180. fi
  11181. if test -z "$ac_cv_prog_WINDRES"; then
  11182. ac_ct_WINDRES=$WINDRES
  11183. # Extract the first word of "windres", so it can be a program name with args.
  11184. set dummy windres; ac_word=$2
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11186. $as_echo_n "checking for $ac_word... " >&6; }
  11187. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11188. $as_echo_n "(cached) " >&6
  11189. else
  11190. if test -n "$ac_ct_WINDRES"; then
  11191. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11192. else
  11193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11194. for as_dir in $PATH
  11195. do
  11196. IFS=$as_save_IFS
  11197. test -z "$as_dir" && as_dir=.
  11198. for ac_exec_ext in '' $ac_executable_extensions; do
  11199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11200. ac_cv_prog_ac_ct_WINDRES="windres"
  11201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11202. break 2
  11203. fi
  11204. done
  11205. done
  11206. IFS=$as_save_IFS
  11207. fi
  11208. fi
  11209. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11210. if test -n "$ac_ct_WINDRES"; then
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11212. $as_echo "$ac_ct_WINDRES" >&6; }
  11213. else
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. $as_echo "no" >&6; }
  11216. fi
  11217. if test "x$ac_ct_WINDRES" = x; then
  11218. WINDRES=""
  11219. else
  11220. case $cross_compiling:$ac_tool_warned in
  11221. yes:)
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11224. ac_tool_warned=yes ;;
  11225. esac
  11226. WINDRES=$ac_ct_WINDRES
  11227. fi
  11228. else
  11229. WINDRES="$ac_cv_prog_WINDRES"
  11230. fi
  11231. fi
  11232. case "$host_os" in
  11233. hpux*) LTLIBC="" ;;
  11234. *) LTLIBC="-lc" ;;
  11235. esac
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11237. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11238. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11239. $as_echo_n "(cached) " >&6
  11240. else
  11241. gt_save_LIBS="$LIBS"
  11242. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11244. /* end confdefs.h. */
  11245. #include <CoreFoundation/CFPreferences.h>
  11246. int
  11247. main ()
  11248. {
  11249. CFPreferencesCopyAppValue(NULL, NULL)
  11250. ;
  11251. return 0;
  11252. }
  11253. _ACEOF
  11254. if ac_fn_cxx_try_link "$LINENO"; then :
  11255. gt_cv_func_CFPreferencesCopyAppValue=yes
  11256. else
  11257. gt_cv_func_CFPreferencesCopyAppValue=no
  11258. fi
  11259. rm -f core conftest.err conftest.$ac_objext \
  11260. conftest$ac_exeext conftest.$ac_ext
  11261. LIBS="$gt_save_LIBS"
  11262. fi
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11264. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11265. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11266. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11267. fi
  11268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11269. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11270. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11271. $as_echo_n "(cached) " >&6
  11272. else
  11273. gt_save_LIBS="$LIBS"
  11274. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11276. /* end confdefs.h. */
  11277. #include <CoreFoundation/CFLocale.h>
  11278. int
  11279. main ()
  11280. {
  11281. CFLocaleCopyCurrent();
  11282. ;
  11283. return 0;
  11284. }
  11285. _ACEOF
  11286. if ac_fn_cxx_try_link "$LINENO"; then :
  11287. gt_cv_func_CFLocaleCopyCurrent=yes
  11288. else
  11289. gt_cv_func_CFLocaleCopyCurrent=no
  11290. fi
  11291. rm -f core conftest.err conftest.$ac_objext \
  11292. conftest$ac_exeext conftest.$ac_ext
  11293. LIBS="$gt_save_LIBS"
  11294. fi
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11296. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11297. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11298. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11299. fi
  11300. INTL_MACOSX_LIBS=
  11301. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11302. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11303. fi
  11304. BUILD_INCLUDED_LIBINTL=no
  11305. USE_INCLUDED_LIBINTL=no
  11306. LIBINTL=
  11307. LTLIBINTL=
  11308. POSUB=
  11309. case " $gt_needs " in
  11310. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11311. *" need-ngettext "*) gt_api_version=2 ;;
  11312. *) gt_api_version=1 ;;
  11313. esac
  11314. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11315. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11316. if test "$USE_NLS" = "yes"; then
  11317. gt_use_preinstalled_gnugettext=no
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11319. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11320. # Check whether --with-included-gettext was given.
  11321. if test "${with_included_gettext+set}" = set; then :
  11322. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11323. else
  11324. nls_cv_force_use_gnu_gettext=no
  11325. fi
  11326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11327. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11328. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11329. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11330. if test $gt_api_version -ge 3; then
  11331. gt_revision_test_code='
  11332. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11333. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11334. #endif
  11335. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11336. '
  11337. else
  11338. gt_revision_test_code=
  11339. fi
  11340. if test $gt_api_version -ge 2; then
  11341. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11342. else
  11343. gt_expression_test_code=
  11344. fi
  11345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11346. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11347. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11348. $as_echo_n "(cached) " >&6
  11349. else
  11350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11351. /* end confdefs.h. */
  11352. #include <libintl.h>
  11353. $gt_revision_test_code
  11354. extern int _nl_msg_cat_cntr;
  11355. extern int *_nl_domain_bindings;
  11356. int
  11357. main ()
  11358. {
  11359. bindtextdomain ("", "");
  11360. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11361. ;
  11362. return 0;
  11363. }
  11364. _ACEOF
  11365. if ac_fn_cxx_try_link "$LINENO"; then :
  11366. eval "$gt_func_gnugettext_libc=yes"
  11367. else
  11368. eval "$gt_func_gnugettext_libc=no"
  11369. fi
  11370. rm -f core conftest.err conftest.$ac_objext \
  11371. conftest$ac_exeext conftest.$ac_ext
  11372. fi
  11373. eval ac_res=\$$gt_func_gnugettext_libc
  11374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11375. $as_echo "$ac_res" >&6; }
  11376. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11377. use_additional=yes
  11378. acl_save_prefix="$prefix"
  11379. prefix="$acl_final_prefix"
  11380. acl_save_exec_prefix="$exec_prefix"
  11381. exec_prefix="$acl_final_exec_prefix"
  11382. eval additional_includedir=\"$includedir\"
  11383. eval additional_libdir=\"$libdir\"
  11384. exec_prefix="$acl_save_exec_prefix"
  11385. prefix="$acl_save_prefix"
  11386. # Check whether --with-libintl-prefix was given.
  11387. if test "${with_libintl_prefix+set}" = set; then :
  11388. withval=$with_libintl_prefix;
  11389. if test "X$withval" = "Xno"; then
  11390. use_additional=no
  11391. else
  11392. if test "X$withval" = "X"; then
  11393. acl_save_prefix="$prefix"
  11394. prefix="$acl_final_prefix"
  11395. acl_save_exec_prefix="$exec_prefix"
  11396. exec_prefix="$acl_final_exec_prefix"
  11397. eval additional_includedir=\"$includedir\"
  11398. eval additional_libdir=\"$libdir\"
  11399. exec_prefix="$acl_save_exec_prefix"
  11400. prefix="$acl_save_prefix"
  11401. else
  11402. additional_includedir="$withval/include"
  11403. additional_libdir="$withval/$acl_libdirstem"
  11404. fi
  11405. fi
  11406. fi
  11407. LIBINTL=
  11408. LTLIBINTL=
  11409. INCINTL=
  11410. LIBINTL_PREFIX=
  11411. rpathdirs=
  11412. ltrpathdirs=
  11413. names_already_handled=
  11414. names_next_round='intl '
  11415. while test -n "$names_next_round"; do
  11416. names_this_round="$names_next_round"
  11417. names_next_round=
  11418. for name in $names_this_round; do
  11419. already_handled=
  11420. for n in $names_already_handled; do
  11421. if test "$n" = "$name"; then
  11422. already_handled=yes
  11423. break
  11424. fi
  11425. done
  11426. if test -z "$already_handled"; then
  11427. names_already_handled="$names_already_handled $name"
  11428. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11429. eval value=\"\$HAVE_LIB$uppername\"
  11430. if test -n "$value"; then
  11431. if test "$value" = yes; then
  11432. eval value=\"\$LIB$uppername\"
  11433. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11434. eval value=\"\$LTLIB$uppername\"
  11435. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11436. else
  11437. :
  11438. fi
  11439. else
  11440. found_dir=
  11441. found_la=
  11442. found_so=
  11443. found_a=
  11444. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11445. if test -n "$acl_shlibext"; then
  11446. shrext=".$acl_shlibext" # typically: shrext=.so
  11447. else
  11448. shrext=
  11449. fi
  11450. if test $use_additional = yes; then
  11451. dir="$additional_libdir"
  11452. if test -n "$acl_shlibext"; then
  11453. if test -f "$dir/$libname$shrext"; then
  11454. found_dir="$dir"
  11455. found_so="$dir/$libname$shrext"
  11456. else
  11457. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11458. ver=`(cd "$dir" && \
  11459. for f in "$libname$shrext".*; do echo "$f"; done \
  11460. | sed -e "s,^$libname$shrext\\\\.,," \
  11461. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11462. | sed 1q ) 2>/dev/null`
  11463. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11464. found_dir="$dir"
  11465. found_so="$dir/$libname$shrext.$ver"
  11466. fi
  11467. else
  11468. eval library_names=\"$acl_library_names_spec\"
  11469. for f in $library_names; do
  11470. if test -f "$dir/$f"; then
  11471. found_dir="$dir"
  11472. found_so="$dir/$f"
  11473. break
  11474. fi
  11475. done
  11476. fi
  11477. fi
  11478. fi
  11479. if test "X$found_dir" = "X"; then
  11480. if test -f "$dir/$libname.$acl_libext"; then
  11481. found_dir="$dir"
  11482. found_a="$dir/$libname.$acl_libext"
  11483. fi
  11484. fi
  11485. if test "X$found_dir" != "X"; then
  11486. if test -f "$dir/$libname.la"; then
  11487. found_la="$dir/$libname.la"
  11488. fi
  11489. fi
  11490. fi
  11491. if test "X$found_dir" = "X"; then
  11492. for x in $LDFLAGS $LTLIBINTL; do
  11493. acl_save_prefix="$prefix"
  11494. prefix="$acl_final_prefix"
  11495. acl_save_exec_prefix="$exec_prefix"
  11496. exec_prefix="$acl_final_exec_prefix"
  11497. eval x=\"$x\"
  11498. exec_prefix="$acl_save_exec_prefix"
  11499. prefix="$acl_save_prefix"
  11500. case "$x" in
  11501. -L*)
  11502. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11503. if test -n "$acl_shlibext"; then
  11504. if test -f "$dir/$libname$shrext"; then
  11505. found_dir="$dir"
  11506. found_so="$dir/$libname$shrext"
  11507. else
  11508. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11509. ver=`(cd "$dir" && \
  11510. for f in "$libname$shrext".*; do echo "$f"; done \
  11511. | sed -e "s,^$libname$shrext\\\\.,," \
  11512. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11513. | sed 1q ) 2>/dev/null`
  11514. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11515. found_dir="$dir"
  11516. found_so="$dir/$libname$shrext.$ver"
  11517. fi
  11518. else
  11519. eval library_names=\"$acl_library_names_spec\"
  11520. for f in $library_names; do
  11521. if test -f "$dir/$f"; then
  11522. found_dir="$dir"
  11523. found_so="$dir/$f"
  11524. break
  11525. fi
  11526. done
  11527. fi
  11528. fi
  11529. fi
  11530. if test "X$found_dir" = "X"; then
  11531. if test -f "$dir/$libname.$acl_libext"; then
  11532. found_dir="$dir"
  11533. found_a="$dir/$libname.$acl_libext"
  11534. fi
  11535. fi
  11536. if test "X$found_dir" != "X"; then
  11537. if test -f "$dir/$libname.la"; then
  11538. found_la="$dir/$libname.la"
  11539. fi
  11540. fi
  11541. ;;
  11542. esac
  11543. if test "X$found_dir" != "X"; then
  11544. break
  11545. fi
  11546. done
  11547. fi
  11548. if test "X$found_dir" != "X"; then
  11549. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11550. if test "X$found_so" != "X"; then
  11551. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11552. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11553. else
  11554. haveit=
  11555. for x in $ltrpathdirs; do
  11556. if test "X$x" = "X$found_dir"; then
  11557. haveit=yes
  11558. break
  11559. fi
  11560. done
  11561. if test -z "$haveit"; then
  11562. ltrpathdirs="$ltrpathdirs $found_dir"
  11563. fi
  11564. if test "$acl_hardcode_direct" = yes; then
  11565. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11566. else
  11567. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11568. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11569. haveit=
  11570. for x in $rpathdirs; do
  11571. if test "X$x" = "X$found_dir"; then
  11572. haveit=yes
  11573. break
  11574. fi
  11575. done
  11576. if test -z "$haveit"; then
  11577. rpathdirs="$rpathdirs $found_dir"
  11578. fi
  11579. else
  11580. haveit=
  11581. for x in $LDFLAGS $LIBINTL; do
  11582. acl_save_prefix="$prefix"
  11583. prefix="$acl_final_prefix"
  11584. acl_save_exec_prefix="$exec_prefix"
  11585. exec_prefix="$acl_final_exec_prefix"
  11586. eval x=\"$x\"
  11587. exec_prefix="$acl_save_exec_prefix"
  11588. prefix="$acl_save_prefix"
  11589. if test "X$x" = "X-L$found_dir"; then
  11590. haveit=yes
  11591. break
  11592. fi
  11593. done
  11594. if test -z "$haveit"; then
  11595. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11596. fi
  11597. if test "$acl_hardcode_minus_L" != no; then
  11598. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11599. else
  11600. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11601. fi
  11602. fi
  11603. fi
  11604. fi
  11605. else
  11606. if test "X$found_a" != "X"; then
  11607. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11608. else
  11609. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11610. fi
  11611. fi
  11612. additional_includedir=
  11613. case "$found_dir" in
  11614. */$acl_libdirstem | */$acl_libdirstem/)
  11615. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11616. LIBINTL_PREFIX="$basedir"
  11617. additional_includedir="$basedir/include"
  11618. ;;
  11619. esac
  11620. if test "X$additional_includedir" != "X"; then
  11621. if test "X$additional_includedir" != "X/usr/include"; then
  11622. haveit=
  11623. if test "X$additional_includedir" = "X/usr/local/include"; then
  11624. if test -n "$GCC"; then
  11625. case $host_os in
  11626. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11627. esac
  11628. fi
  11629. fi
  11630. if test -z "$haveit"; then
  11631. for x in $CPPFLAGS $INCINTL; do
  11632. acl_save_prefix="$prefix"
  11633. prefix="$acl_final_prefix"
  11634. acl_save_exec_prefix="$exec_prefix"
  11635. exec_prefix="$acl_final_exec_prefix"
  11636. eval x=\"$x\"
  11637. exec_prefix="$acl_save_exec_prefix"
  11638. prefix="$acl_save_prefix"
  11639. if test "X$x" = "X-I$additional_includedir"; then
  11640. haveit=yes
  11641. break
  11642. fi
  11643. done
  11644. if test -z "$haveit"; then
  11645. if test -d "$additional_includedir"; then
  11646. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11647. fi
  11648. fi
  11649. fi
  11650. fi
  11651. fi
  11652. if test -n "$found_la"; then
  11653. save_libdir="$libdir"
  11654. case "$found_la" in
  11655. */* | *\\*) . "$found_la" ;;
  11656. *) . "./$found_la" ;;
  11657. esac
  11658. libdir="$save_libdir"
  11659. for dep in $dependency_libs; do
  11660. case "$dep" in
  11661. -L*)
  11662. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11663. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11664. haveit=
  11665. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11666. if test -n "$GCC"; then
  11667. case $host_os in
  11668. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11669. esac
  11670. fi
  11671. fi
  11672. if test -z "$haveit"; then
  11673. haveit=
  11674. for x in $LDFLAGS $LIBINTL; do
  11675. acl_save_prefix="$prefix"
  11676. prefix="$acl_final_prefix"
  11677. acl_save_exec_prefix="$exec_prefix"
  11678. exec_prefix="$acl_final_exec_prefix"
  11679. eval x=\"$x\"
  11680. exec_prefix="$acl_save_exec_prefix"
  11681. prefix="$acl_save_prefix"
  11682. if test "X$x" = "X-L$additional_libdir"; then
  11683. haveit=yes
  11684. break
  11685. fi
  11686. done
  11687. if test -z "$haveit"; then
  11688. if test -d "$additional_libdir"; then
  11689. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11690. fi
  11691. fi
  11692. haveit=
  11693. for x in $LDFLAGS $LTLIBINTL; do
  11694. acl_save_prefix="$prefix"
  11695. prefix="$acl_final_prefix"
  11696. acl_save_exec_prefix="$exec_prefix"
  11697. exec_prefix="$acl_final_exec_prefix"
  11698. eval x=\"$x\"
  11699. exec_prefix="$acl_save_exec_prefix"
  11700. prefix="$acl_save_prefix"
  11701. if test "X$x" = "X-L$additional_libdir"; then
  11702. haveit=yes
  11703. break
  11704. fi
  11705. done
  11706. if test -z "$haveit"; then
  11707. if test -d "$additional_libdir"; then
  11708. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11709. fi
  11710. fi
  11711. fi
  11712. fi
  11713. ;;
  11714. -R*)
  11715. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11716. if test "$enable_rpath" != no; then
  11717. haveit=
  11718. for x in $rpathdirs; do
  11719. if test "X$x" = "X$dir"; then
  11720. haveit=yes
  11721. break
  11722. fi
  11723. done
  11724. if test -z "$haveit"; then
  11725. rpathdirs="$rpathdirs $dir"
  11726. fi
  11727. haveit=
  11728. for x in $ltrpathdirs; do
  11729. if test "X$x" = "X$dir"; then
  11730. haveit=yes
  11731. break
  11732. fi
  11733. done
  11734. if test -z "$haveit"; then
  11735. ltrpathdirs="$ltrpathdirs $dir"
  11736. fi
  11737. fi
  11738. ;;
  11739. -l*)
  11740. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11741. ;;
  11742. *.la)
  11743. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11744. ;;
  11745. *)
  11746. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11747. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11748. ;;
  11749. esac
  11750. done
  11751. fi
  11752. else
  11753. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11754. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11755. fi
  11756. fi
  11757. fi
  11758. done
  11759. done
  11760. if test "X$rpathdirs" != "X"; then
  11761. if test -n "$acl_hardcode_libdir_separator"; then
  11762. alldirs=
  11763. for found_dir in $rpathdirs; do
  11764. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11765. done
  11766. acl_save_libdir="$libdir"
  11767. libdir="$alldirs"
  11768. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11769. libdir="$acl_save_libdir"
  11770. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11771. else
  11772. for found_dir in $rpathdirs; do
  11773. acl_save_libdir="$libdir"
  11774. libdir="$found_dir"
  11775. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11776. libdir="$acl_save_libdir"
  11777. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11778. done
  11779. fi
  11780. fi
  11781. if test "X$ltrpathdirs" != "X"; then
  11782. for found_dir in $ltrpathdirs; do
  11783. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11784. done
  11785. fi
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11787. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11788. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11789. $as_echo_n "(cached) " >&6
  11790. else
  11791. gt_save_CPPFLAGS="$CPPFLAGS"
  11792. CPPFLAGS="$CPPFLAGS $INCINTL"
  11793. gt_save_LIBS="$LIBS"
  11794. LIBS="$LIBS $LIBINTL"
  11795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11796. /* end confdefs.h. */
  11797. #include <libintl.h>
  11798. $gt_revision_test_code
  11799. extern int _nl_msg_cat_cntr;
  11800. extern
  11801. #ifdef __cplusplus
  11802. "C"
  11803. #endif
  11804. const char *_nl_expand_alias (const char *);
  11805. int
  11806. main ()
  11807. {
  11808. bindtextdomain ("", "");
  11809. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11810. ;
  11811. return 0;
  11812. }
  11813. _ACEOF
  11814. if ac_fn_cxx_try_link "$LINENO"; then :
  11815. eval "$gt_func_gnugettext_libintl=yes"
  11816. else
  11817. eval "$gt_func_gnugettext_libintl=no"
  11818. fi
  11819. rm -f core conftest.err conftest.$ac_objext \
  11820. conftest$ac_exeext conftest.$ac_ext
  11821. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11822. LIBS="$LIBS $LIBICONV"
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. #include <libintl.h>
  11826. $gt_revision_test_code
  11827. extern int _nl_msg_cat_cntr;
  11828. extern
  11829. #ifdef __cplusplus
  11830. "C"
  11831. #endif
  11832. const char *_nl_expand_alias (const char *);
  11833. int
  11834. main ()
  11835. {
  11836. bindtextdomain ("", "");
  11837. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11838. ;
  11839. return 0;
  11840. }
  11841. _ACEOF
  11842. if ac_fn_cxx_try_link "$LINENO"; then :
  11843. LIBINTL="$LIBINTL $LIBICONV"
  11844. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11845. eval "$gt_func_gnugettext_libintl=yes"
  11846. fi
  11847. rm -f core conftest.err conftest.$ac_objext \
  11848. conftest$ac_exeext conftest.$ac_ext
  11849. fi
  11850. CPPFLAGS="$gt_save_CPPFLAGS"
  11851. LIBS="$gt_save_LIBS"
  11852. fi
  11853. eval ac_res=\$$gt_func_gnugettext_libintl
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11855. $as_echo "$ac_res" >&6; }
  11856. fi
  11857. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11858. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11859. && test "$PACKAGE" != gettext-runtime \
  11860. && test "$PACKAGE" != gettext-tools; }; then
  11861. gt_use_preinstalled_gnugettext=yes
  11862. else
  11863. LIBINTL=
  11864. LTLIBINTL=
  11865. INCINTL=
  11866. fi
  11867. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11868. nls_cv_use_gnu_gettext=yes
  11869. fi
  11870. fi
  11871. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11872. BUILD_INCLUDED_LIBINTL=yes
  11873. USE_INCLUDED_LIBINTL=yes
  11874. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11875. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11876. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11877. fi
  11878. CATOBJEXT=
  11879. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11880. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11881. CATOBJEXT=.gmo
  11882. fi
  11883. if test -n "$INTL_MACOSX_LIBS"; then
  11884. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11885. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11886. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11887. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11888. fi
  11889. fi
  11890. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11891. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11892. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11893. else
  11894. USE_NLS=no
  11895. fi
  11896. fi
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11898. $as_echo_n "checking whether to use NLS... " >&6; }
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11900. $as_echo "$USE_NLS" >&6; }
  11901. if test "$USE_NLS" = "yes"; then
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11903. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11904. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11905. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11906. gt_source="external libintl"
  11907. else
  11908. gt_source="libc"
  11909. fi
  11910. else
  11911. gt_source="included intl directory"
  11912. fi
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11914. $as_echo "$gt_source" >&6; }
  11915. fi
  11916. if test "$USE_NLS" = "yes"; then
  11917. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11918. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11920. $as_echo_n "checking how to link with libintl... " >&6; }
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11922. $as_echo "$LIBINTL" >&6; }
  11923. for element in $INCINTL; do
  11924. haveit=
  11925. for x in $CPPFLAGS; do
  11926. acl_save_prefix="$prefix"
  11927. prefix="$acl_final_prefix"
  11928. acl_save_exec_prefix="$exec_prefix"
  11929. exec_prefix="$acl_final_exec_prefix"
  11930. eval x=\"$x\"
  11931. exec_prefix="$acl_save_exec_prefix"
  11932. prefix="$acl_save_prefix"
  11933. if test "X$x" = "X$element"; then
  11934. haveit=yes
  11935. break
  11936. fi
  11937. done
  11938. if test -z "$haveit"; then
  11939. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11940. fi
  11941. done
  11942. fi
  11943. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11944. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11945. fi
  11946. POSUB=po
  11947. fi
  11948. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11949. BUILD_INCLUDED_LIBINTL=yes
  11950. fi
  11951. nls_cv_header_intl=
  11952. nls_cv_header_libgt=
  11953. DATADIRNAME=share
  11954. INSTOBJEXT=.mo
  11955. GENCAT=gencat
  11956. INTLOBJS=
  11957. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11958. INTLOBJS="\$(GETTOBJS)"
  11959. fi
  11960. INTL_LIBTOOL_SUFFIX_PREFIX=
  11961. INTLLIBS="$LIBINTL"
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11963. $as_echo_n "checking for error_at_line... " >&6; }
  11964. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11965. $as_echo_n "(cached) " >&6
  11966. else
  11967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11968. /* end confdefs.h. */
  11969. #include <error.h>
  11970. int
  11971. main ()
  11972. {
  11973. error_at_line (0, 0, "", 0, "an error occurred");
  11974. ;
  11975. return 0;
  11976. }
  11977. _ACEOF
  11978. if ac_fn_cxx_try_link "$LINENO"; then :
  11979. ac_cv_lib_error_at_line=yes
  11980. else
  11981. ac_cv_lib_error_at_line=no
  11982. fi
  11983. rm -f core conftest.err conftest.$ac_objext \
  11984. conftest$ac_exeext conftest.$ac_ext
  11985. fi
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11987. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11988. if test $ac_cv_lib_error_at_line = no; then
  11989. case " $LIBOBJS " in
  11990. *" error.$ac_objext "* ) ;;
  11991. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11992. ;;
  11993. esac
  11994. fi
  11995. if test $ac_cv_c_compiler_gnu = yes; then
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11997. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11998. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11999. $as_echo_n "(cached) " >&6
  12000. else
  12001. ac_pattern="Autoconf.*'x'"
  12002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12003. /* end confdefs.h. */
  12004. #include <sgtty.h>
  12005. Autoconf TIOCGETP
  12006. _ACEOF
  12007. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12008. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12009. ac_cv_prog_gcc_traditional=yes
  12010. else
  12011. ac_cv_prog_gcc_traditional=no
  12012. fi
  12013. rm -f conftest*
  12014. if test $ac_cv_prog_gcc_traditional = no; then
  12015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12016. /* end confdefs.h. */
  12017. #include <termio.h>
  12018. Autoconf TCGETA
  12019. _ACEOF
  12020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12021. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12022. ac_cv_prog_gcc_traditional=yes
  12023. fi
  12024. rm -f conftest*
  12025. fi
  12026. fi
  12027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12028. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12029. if test $ac_cv_prog_gcc_traditional = yes; then
  12030. CC="$CC -traditional"
  12031. fi
  12032. fi
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12034. $as_echo_n "checking for working memcmp... " >&6; }
  12035. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12036. $as_echo_n "(cached) " >&6
  12037. else
  12038. if test "$cross_compiling" = yes; then :
  12039. ac_cv_func_memcmp_working=no
  12040. else
  12041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12042. /* end confdefs.h. */
  12043. $ac_includes_default
  12044. int
  12045. main ()
  12046. {
  12047. /* Some versions of memcmp are not 8-bit clean. */
  12048. char c0 = '\100', c1 = '\200', c2 = '\201';
  12049. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12050. return 1;
  12051. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12052. or more and with at least one buffer not starting on a 4-byte boundary.
  12053. William Lewis provided this test program. */
  12054. {
  12055. char foo[21];
  12056. char bar[21];
  12057. int i;
  12058. for (i = 0; i < 4; i++)
  12059. {
  12060. char *a = foo + i;
  12061. char *b = bar + i;
  12062. strcpy (a, "--------01111111");
  12063. strcpy (b, "--------10000000");
  12064. if (memcmp (a, b, 16) >= 0)
  12065. return 1;
  12066. }
  12067. return 0;
  12068. }
  12069. ;
  12070. return 0;
  12071. }
  12072. _ACEOF
  12073. if ac_fn_cxx_try_run "$LINENO"; then :
  12074. ac_cv_func_memcmp_working=yes
  12075. else
  12076. ac_cv_func_memcmp_working=no
  12077. fi
  12078. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12079. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12080. fi
  12081. fi
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12083. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12084. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12085. *" memcmp.$ac_objext "* ) ;;
  12086. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12087. ;;
  12088. esac
  12089. for ac_func in $ac_func_list
  12090. do :
  12091. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12092. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12093. eval as_val=\$$as_ac_var
  12094. if test "x$as_val" = x""yes; then :
  12095. cat >>confdefs.h <<_ACEOF
  12096. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12097. _ACEOF
  12098. fi
  12099. done
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12101. $as_echo_n "checking for working mktime... " >&6; }
  12102. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12103. $as_echo_n "(cached) " >&6
  12104. else
  12105. if test "$cross_compiling" = yes; then :
  12106. ac_cv_func_working_mktime=no
  12107. else
  12108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12109. /* end confdefs.h. */
  12110. /* Test program from Paul Eggert and Tony Leneis. */
  12111. #ifdef TIME_WITH_SYS_TIME
  12112. # include <sys/time.h>
  12113. # include <time.h>
  12114. #else
  12115. # ifdef HAVE_SYS_TIME_H
  12116. # include <sys/time.h>
  12117. # else
  12118. # include <time.h>
  12119. # endif
  12120. #endif
  12121. #include <limits.h>
  12122. #include <stdlib.h>
  12123. #ifdef HAVE_UNISTD_H
  12124. # include <unistd.h>
  12125. #endif
  12126. #ifndef HAVE_ALARM
  12127. # define alarm(X) /* empty */
  12128. #endif
  12129. /* Work around redefinition to rpl_putenv by other config tests. */
  12130. #undef putenv
  12131. static time_t time_t_max;
  12132. static time_t time_t_min;
  12133. /* Values we'll use to set the TZ environment variable. */
  12134. static char *tz_strings[] = {
  12135. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12136. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12137. };
  12138. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12139. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12140. Based on a problem report from Andreas Jaeger. */
  12141. static int
  12142. spring_forward_gap ()
  12143. {
  12144. /* glibc (up to about 1998-10-07) failed this test. */
  12145. struct tm tm;
  12146. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12147. instead of "TZ=America/Vancouver" in order to detect the bug even
  12148. on systems that don't support the Olson extension, or don't have the
  12149. full zoneinfo tables installed. */
  12150. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12151. tm.tm_year = 98;
  12152. tm.tm_mon = 3;
  12153. tm.tm_mday = 5;
  12154. tm.tm_hour = 2;
  12155. tm.tm_min = 0;
  12156. tm.tm_sec = 0;
  12157. tm.tm_isdst = -1;
  12158. return mktime (&tm) != (time_t) -1;
  12159. }
  12160. static int
  12161. mktime_test1 (now)
  12162. time_t now;
  12163. {
  12164. struct tm *lt;
  12165. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12166. }
  12167. static int
  12168. mktime_test (now)
  12169. time_t now;
  12170. {
  12171. return (mktime_test1 (now)
  12172. && mktime_test1 ((time_t) (time_t_max - now))
  12173. && mktime_test1 ((time_t) (time_t_min + now)));
  12174. }
  12175. static int
  12176. irix_6_4_bug ()
  12177. {
  12178. /* Based on code from Ariel Faigon. */
  12179. struct tm tm;
  12180. tm.tm_year = 96;
  12181. tm.tm_mon = 3;
  12182. tm.tm_mday = 0;
  12183. tm.tm_hour = 0;
  12184. tm.tm_min = 0;
  12185. tm.tm_sec = 0;
  12186. tm.tm_isdst = -1;
  12187. mktime (&tm);
  12188. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12189. }
  12190. static int
  12191. bigtime_test (j)
  12192. int j;
  12193. {
  12194. struct tm tm;
  12195. time_t now;
  12196. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12197. now = mktime (&tm);
  12198. if (now != (time_t) -1)
  12199. {
  12200. struct tm *lt = localtime (&now);
  12201. if (! (lt
  12202. && lt->tm_year == tm.tm_year
  12203. && lt->tm_mon == tm.tm_mon
  12204. && lt->tm_mday == tm.tm_mday
  12205. && lt->tm_hour == tm.tm_hour
  12206. && lt->tm_min == tm.tm_min
  12207. && lt->tm_sec == tm.tm_sec
  12208. && lt->tm_yday == tm.tm_yday
  12209. && lt->tm_wday == tm.tm_wday
  12210. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12211. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12212. return 0;
  12213. }
  12214. return 1;
  12215. }
  12216. static int
  12217. year_2050_test ()
  12218. {
  12219. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12220. ignoring leap seconds. */
  12221. unsigned long int answer = 2527315200UL;
  12222. struct tm tm;
  12223. time_t t;
  12224. tm.tm_year = 2050 - 1900;
  12225. tm.tm_mon = 2 - 1;
  12226. tm.tm_mday = 1;
  12227. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12228. tm.tm_isdst = -1;
  12229. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12230. instead of "TZ=America/Vancouver" in order to detect the bug even
  12231. on systems that don't support the Olson extension, or don't have the
  12232. full zoneinfo tables installed. */
  12233. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12234. t = mktime (&tm);
  12235. /* Check that the result is either a failure, or close enough
  12236. to the correct answer that we can assume the discrepancy is
  12237. due to leap seconds. */
  12238. return (t == (time_t) -1
  12239. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12240. }
  12241. int
  12242. main ()
  12243. {
  12244. time_t t, delta;
  12245. int i, j;
  12246. /* This test makes some buggy mktime implementations loop.
  12247. Give up after 60 seconds; a mktime slower than that
  12248. isn't worth using anyway. */
  12249. alarm (60);
  12250. for (;;)
  12251. {
  12252. t = (time_t_max << 1) + 1;
  12253. if (t <= time_t_max)
  12254. break;
  12255. time_t_max = t;
  12256. }
  12257. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12258. delta = time_t_max / 997; /* a suitable prime number */
  12259. for (i = 0; i < N_STRINGS; i++)
  12260. {
  12261. if (tz_strings[i])
  12262. putenv (tz_strings[i]);
  12263. for (t = 0; t <= time_t_max - delta; t += delta)
  12264. if (! mktime_test (t))
  12265. return 1;
  12266. if (! (mktime_test ((time_t) 1)
  12267. && mktime_test ((time_t) (60 * 60))
  12268. && mktime_test ((time_t) (60 * 60 * 24))))
  12269. return 1;
  12270. for (j = 1; ; j <<= 1)
  12271. if (! bigtime_test (j))
  12272. return 1;
  12273. else if (INT_MAX / 2 < j)
  12274. break;
  12275. if (! bigtime_test (INT_MAX))
  12276. return 1;
  12277. }
  12278. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12279. }
  12280. _ACEOF
  12281. if ac_fn_cxx_try_run "$LINENO"; then :
  12282. ac_cv_func_working_mktime=yes
  12283. else
  12284. ac_cv_func_working_mktime=no
  12285. fi
  12286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12287. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12288. fi
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12291. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12292. if test $ac_cv_func_working_mktime = no; then
  12293. case " $LIBOBJS " in
  12294. *" mktime.$ac_objext "* ) ;;
  12295. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12296. ;;
  12297. esac
  12298. fi
  12299. for ac_func in getpagesize
  12300. do :
  12301. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12302. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12303. cat >>confdefs.h <<_ACEOF
  12304. #define HAVE_GETPAGESIZE 1
  12305. _ACEOF
  12306. fi
  12307. done
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12309. $as_echo_n "checking for working mmap... " >&6; }
  12310. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12311. $as_echo_n "(cached) " >&6
  12312. else
  12313. if test "$cross_compiling" = yes; then :
  12314. ac_cv_func_mmap_fixed_mapped=no
  12315. else
  12316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12317. /* end confdefs.h. */
  12318. $ac_includes_default
  12319. /* malloc might have been renamed as rpl_malloc. */
  12320. #undef malloc
  12321. /* Thanks to Mike Haertel and Jim Avera for this test.
  12322. Here is a matrix of mmap possibilities:
  12323. mmap private not fixed
  12324. mmap private fixed at somewhere currently unmapped
  12325. mmap private fixed at somewhere already mapped
  12326. mmap shared not fixed
  12327. mmap shared fixed at somewhere currently unmapped
  12328. mmap shared fixed at somewhere already mapped
  12329. For private mappings, we should verify that changes cannot be read()
  12330. back from the file, nor mmap's back from the file at a different
  12331. address. (There have been systems where private was not correctly
  12332. implemented like the infamous i386 svr4.0, and systems where the
  12333. VM page cache was not coherent with the file system buffer cache
  12334. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12335. For shared mappings, we should conversely verify that changes get
  12336. propagated back to all the places they're supposed to be.
  12337. Grep wants private fixed already mapped.
  12338. The main things grep needs to know about mmap are:
  12339. * does it exist and is it safe to write into the mmap'd area
  12340. * how to use it (BSD variants) */
  12341. #include <fcntl.h>
  12342. #include <sys/mman.h>
  12343. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12344. char *malloc ();
  12345. #endif
  12346. /* This mess was copied from the GNU getpagesize.h. */
  12347. #ifndef HAVE_GETPAGESIZE
  12348. # ifdef _SC_PAGESIZE
  12349. # define getpagesize() sysconf(_SC_PAGESIZE)
  12350. # else /* no _SC_PAGESIZE */
  12351. # ifdef HAVE_SYS_PARAM_H
  12352. # include <sys/param.h>
  12353. # ifdef EXEC_PAGESIZE
  12354. # define getpagesize() EXEC_PAGESIZE
  12355. # else /* no EXEC_PAGESIZE */
  12356. # ifdef NBPG
  12357. # define getpagesize() NBPG * CLSIZE
  12358. # ifndef CLSIZE
  12359. # define CLSIZE 1
  12360. # endif /* no CLSIZE */
  12361. # else /* no NBPG */
  12362. # ifdef NBPC
  12363. # define getpagesize() NBPC
  12364. # else /* no NBPC */
  12365. # ifdef PAGESIZE
  12366. # define getpagesize() PAGESIZE
  12367. # endif /* PAGESIZE */
  12368. # endif /* no NBPC */
  12369. # endif /* no NBPG */
  12370. # endif /* no EXEC_PAGESIZE */
  12371. # else /* no HAVE_SYS_PARAM_H */
  12372. # define getpagesize() 8192 /* punt totally */
  12373. # endif /* no HAVE_SYS_PARAM_H */
  12374. # endif /* no _SC_PAGESIZE */
  12375. #endif /* no HAVE_GETPAGESIZE */
  12376. int
  12377. main ()
  12378. {
  12379. char *data, *data2, *data3;
  12380. const char *cdata2;
  12381. int i, pagesize;
  12382. int fd, fd2;
  12383. pagesize = getpagesize ();
  12384. /* First, make a file with some known garbage in it. */
  12385. data = (char *) malloc (pagesize);
  12386. if (!data)
  12387. return 1;
  12388. for (i = 0; i < pagesize; ++i)
  12389. *(data + i) = rand ();
  12390. umask (0);
  12391. fd = creat ("conftest.mmap", 0600);
  12392. if (fd < 0)
  12393. return 2;
  12394. if (write (fd, data, pagesize) != pagesize)
  12395. return 3;
  12396. close (fd);
  12397. /* Next, check that the tail of a page is zero-filled. File must have
  12398. non-zero length, otherwise we risk SIGBUS for entire page. */
  12399. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12400. if (fd2 < 0)
  12401. return 4;
  12402. cdata2 = "";
  12403. if (write (fd2, cdata2, 1) != 1)
  12404. return 5;
  12405. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12406. if (data2 == MAP_FAILED)
  12407. return 6;
  12408. for (i = 0; i < pagesize; ++i)
  12409. if (*(data2 + i))
  12410. return 7;
  12411. close (fd2);
  12412. if (munmap (data2, pagesize))
  12413. return 8;
  12414. /* Next, try to mmap the file at a fixed address which already has
  12415. something else allocated at it. If we can, also make sure that
  12416. we see the same garbage. */
  12417. fd = open ("conftest.mmap", O_RDWR);
  12418. if (fd < 0)
  12419. return 9;
  12420. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12421. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12422. return 10;
  12423. for (i = 0; i < pagesize; ++i)
  12424. if (*(data + i) != *(data2 + i))
  12425. return 11;
  12426. /* Finally, make sure that changes to the mapped area do not
  12427. percolate back to the file as seen by read(). (This is a bug on
  12428. some variants of i386 svr4.0.) */
  12429. for (i = 0; i < pagesize; ++i)
  12430. *(data2 + i) = *(data2 + i) + 1;
  12431. data3 = (char *) malloc (pagesize);
  12432. if (!data3)
  12433. return 12;
  12434. if (read (fd, data3, pagesize) != pagesize)
  12435. return 13;
  12436. for (i = 0; i < pagesize; ++i)
  12437. if (*(data + i) != *(data3 + i))
  12438. return 14;
  12439. close (fd);
  12440. return 0;
  12441. }
  12442. _ACEOF
  12443. if ac_fn_cxx_try_run "$LINENO"; then :
  12444. ac_cv_func_mmap_fixed_mapped=yes
  12445. else
  12446. ac_cv_func_mmap_fixed_mapped=no
  12447. fi
  12448. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12449. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12450. fi
  12451. fi
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12453. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12454. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12455. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12456. fi
  12457. rm -f conftest.mmap conftest.txt
  12458. for ac_header in sys/select.h sys/socket.h
  12459. do :
  12460. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12461. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12462. eval as_val=\$$as_ac_Header
  12463. if test "x$as_val" = x""yes; then :
  12464. cat >>confdefs.h <<_ACEOF
  12465. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12466. _ACEOF
  12467. fi
  12468. done
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12470. $as_echo_n "checking types of arguments for select... " >&6; }
  12471. if test "${ac_cv_func_select_args+set}" = set; then :
  12472. $as_echo_n "(cached) " >&6
  12473. else
  12474. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12475. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12476. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12478. /* end confdefs.h. */
  12479. $ac_includes_default
  12480. #ifdef HAVE_SYS_SELECT_H
  12481. # include <sys/select.h>
  12482. #endif
  12483. #ifdef HAVE_SYS_SOCKET_H
  12484. # include <sys/socket.h>
  12485. #endif
  12486. int
  12487. main ()
  12488. {
  12489. extern int select ($ac_arg1,
  12490. $ac_arg234, $ac_arg234, $ac_arg234,
  12491. $ac_arg5);
  12492. ;
  12493. return 0;
  12494. }
  12495. _ACEOF
  12496. if ac_fn_cxx_try_compile "$LINENO"; then :
  12497. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12498. fi
  12499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12500. done
  12501. done
  12502. done
  12503. # Provide a safe default value.
  12504. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12505. fi
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12507. $as_echo "$ac_cv_func_select_args" >&6; }
  12508. ac_save_IFS=$IFS; IFS=','
  12509. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12510. IFS=$ac_save_IFS
  12511. shift
  12512. cat >>confdefs.h <<_ACEOF
  12513. #define SELECT_TYPE_ARG1 $1
  12514. _ACEOF
  12515. cat >>confdefs.h <<_ACEOF
  12516. #define SELECT_TYPE_ARG234 ($2)
  12517. _ACEOF
  12518. cat >>confdefs.h <<_ACEOF
  12519. #define SELECT_TYPE_ARG5 ($3)
  12520. _ACEOF
  12521. rm -f conftest*
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12523. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12524. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12525. $as_echo_n "(cached) " >&6
  12526. else
  12527. rm -f conftest.sym conftest.file
  12528. echo >conftest.file
  12529. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12530. if test "$cross_compiling" = yes; then :
  12531. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12532. else
  12533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12534. /* end confdefs.h. */
  12535. $ac_includes_default
  12536. int
  12537. main ()
  12538. {
  12539. struct stat sbuf;
  12540. /* Linux will dereference the symlink and fail, as required by POSIX.
  12541. That is better in the sense that it means we will not
  12542. have to compile and use the lstat wrapper. */
  12543. return lstat ("conftest.sym/", &sbuf) == 0;
  12544. ;
  12545. return 0;
  12546. }
  12547. _ACEOF
  12548. if ac_fn_cxx_try_run "$LINENO"; then :
  12549. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12550. else
  12551. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12552. fi
  12553. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12554. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12555. fi
  12556. else
  12557. # If the `ln -s' command failed, then we probably don't even
  12558. # have an lstat function.
  12559. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12560. fi
  12561. rm -f conftest.sym conftest.file
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12564. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12565. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12566. cat >>confdefs.h <<_ACEOF
  12567. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12568. _ACEOF
  12569. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12570. case " $LIBOBJS " in
  12571. *" lstat.$ac_objext "* ) ;;
  12572. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12573. ;;
  12574. esac
  12575. fi
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12577. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12578. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12579. $as_echo_n "(cached) " >&6
  12580. else
  12581. if test "$cross_compiling" = yes; then :
  12582. ac_cv_func_stat_empty_string_bug=yes
  12583. else
  12584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12585. /* end confdefs.h. */
  12586. $ac_includes_default
  12587. int
  12588. main ()
  12589. {
  12590. struct stat sbuf;
  12591. return stat ("", &sbuf) == 0;
  12592. ;
  12593. return 0;
  12594. }
  12595. _ACEOF
  12596. if ac_fn_cxx_try_run "$LINENO"; then :
  12597. ac_cv_func_stat_empty_string_bug=no
  12598. else
  12599. ac_cv_func_stat_empty_string_bug=yes
  12600. fi
  12601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12603. fi
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12606. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12607. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12608. case " $LIBOBJS " in
  12609. *" stat.$ac_objext "* ) ;;
  12610. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12611. ;;
  12612. esac
  12613. cat >>confdefs.h <<_ACEOF
  12614. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12615. _ACEOF
  12616. fi
  12617. for ac_func in strftime
  12618. do :
  12619. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12620. if test "x$ac_cv_func_strftime" = x""yes; then :
  12621. cat >>confdefs.h <<_ACEOF
  12622. #define HAVE_STRFTIME 1
  12623. _ACEOF
  12624. else
  12625. # strftime is in -lintl on SCO UNIX.
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12627. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12628. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12629. $as_echo_n "(cached) " >&6
  12630. else
  12631. ac_check_lib_save_LIBS=$LIBS
  12632. LIBS="-lintl $LIBS"
  12633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12634. /* end confdefs.h. */
  12635. /* Override any GCC internal prototype to avoid an error.
  12636. Use char because int might match the return type of a GCC
  12637. builtin and then its argument prototype would still apply. */
  12638. #ifdef __cplusplus
  12639. extern "C"
  12640. #endif
  12641. char strftime ();
  12642. int
  12643. main ()
  12644. {
  12645. return strftime ();
  12646. ;
  12647. return 0;
  12648. }
  12649. _ACEOF
  12650. if ac_fn_cxx_try_link "$LINENO"; then :
  12651. ac_cv_lib_intl_strftime=yes
  12652. else
  12653. ac_cv_lib_intl_strftime=no
  12654. fi
  12655. rm -f core conftest.err conftest.$ac_objext \
  12656. conftest$ac_exeext conftest.$ac_ext
  12657. LIBS=$ac_check_lib_save_LIBS
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12660. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12661. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12662. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12663. LIBS="-lintl $LIBS"
  12664. fi
  12665. fi
  12666. done
  12667. for ac_func in vprintf
  12668. do :
  12669. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12670. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12671. cat >>confdefs.h <<_ACEOF
  12672. #define HAVE_VPRINTF 1
  12673. _ACEOF
  12674. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12675. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12676. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12677. fi
  12678. fi
  12679. done
  12680. for ac_header in vfork.h
  12681. do :
  12682. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12683. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12684. cat >>confdefs.h <<_ACEOF
  12685. #define HAVE_VFORK_H 1
  12686. _ACEOF
  12687. fi
  12688. done
  12689. for ac_func in fork vfork
  12690. do :
  12691. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12692. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12693. eval as_val=\$$as_ac_var
  12694. if test "x$as_val" = x""yes; then :
  12695. cat >>confdefs.h <<_ACEOF
  12696. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12697. _ACEOF
  12698. fi
  12699. done
  12700. if test "x$ac_cv_func_fork" = xyes; then
  12701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12702. $as_echo_n "checking for working fork... " >&6; }
  12703. if test "${ac_cv_func_fork_works+set}" = set; then :
  12704. $as_echo_n "(cached) " >&6
  12705. else
  12706. if test "$cross_compiling" = yes; then :
  12707. ac_cv_func_fork_works=cross
  12708. else
  12709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12710. /* end confdefs.h. */
  12711. $ac_includes_default
  12712. int
  12713. main ()
  12714. {
  12715. /* By Ruediger Kuhlmann. */
  12716. return fork () < 0;
  12717. ;
  12718. return 0;
  12719. }
  12720. _ACEOF
  12721. if ac_fn_cxx_try_run "$LINENO"; then :
  12722. ac_cv_func_fork_works=yes
  12723. else
  12724. ac_cv_func_fork_works=no
  12725. fi
  12726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12728. fi
  12729. fi
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12731. $as_echo "$ac_cv_func_fork_works" >&6; }
  12732. else
  12733. ac_cv_func_fork_works=$ac_cv_func_fork
  12734. fi
  12735. if test "x$ac_cv_func_fork_works" = xcross; then
  12736. case $host in
  12737. *-*-amigaos* | *-*-msdosdjgpp*)
  12738. # Override, as these systems have only a dummy fork() stub
  12739. ac_cv_func_fork_works=no
  12740. ;;
  12741. *)
  12742. ac_cv_func_fork_works=yes
  12743. ;;
  12744. esac
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12746. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12747. fi
  12748. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12749. if test "x$ac_cv_func_vfork" = xyes; then
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12751. $as_echo_n "checking for working vfork... " >&6; }
  12752. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12753. $as_echo_n "(cached) " >&6
  12754. else
  12755. if test "$cross_compiling" = yes; then :
  12756. ac_cv_func_vfork_works=cross
  12757. else
  12758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12759. /* end confdefs.h. */
  12760. /* Thanks to Paul Eggert for this test. */
  12761. $ac_includes_default
  12762. #include <sys/wait.h>
  12763. #ifdef HAVE_VFORK_H
  12764. # include <vfork.h>
  12765. #endif
  12766. /* On some sparc systems, changes by the child to local and incoming
  12767. argument registers are propagated back to the parent. The compiler
  12768. is told about this with #include <vfork.h>, but some compilers
  12769. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12770. static variable whose address is put into a register that is
  12771. clobbered by the vfork. */
  12772. static void
  12773. #ifdef __cplusplus
  12774. sparc_address_test (int arg)
  12775. # else
  12776. sparc_address_test (arg) int arg;
  12777. #endif
  12778. {
  12779. static pid_t child;
  12780. if (!child) {
  12781. child = vfork ();
  12782. if (child < 0) {
  12783. perror ("vfork");
  12784. _exit(2);
  12785. }
  12786. if (!child) {
  12787. arg = getpid();
  12788. write(-1, "", 0);
  12789. _exit (arg);
  12790. }
  12791. }
  12792. }
  12793. int
  12794. main ()
  12795. {
  12796. pid_t parent = getpid ();
  12797. pid_t child;
  12798. sparc_address_test (0);
  12799. child = vfork ();
  12800. if (child == 0) {
  12801. /* Here is another test for sparc vfork register problems. This
  12802. test uses lots of local variables, at least as many local
  12803. variables as main has allocated so far including compiler
  12804. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12805. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12806. reuse the register of parent for one of the local variables,
  12807. since it will think that parent can't possibly be used any more
  12808. in this routine. Assigning to the local variable will thus
  12809. munge parent in the parent process. */
  12810. pid_t
  12811. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12812. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12813. /* Convince the compiler that p..p7 are live; otherwise, it might
  12814. use the same hardware register for all 8 local variables. */
  12815. if (p != p1 || p != p2 || p != p3 || p != p4
  12816. || p != p5 || p != p6 || p != p7)
  12817. _exit(1);
  12818. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12819. from child file descriptors. If the child closes a descriptor
  12820. before it execs or exits, this munges the parent's descriptor
  12821. as well. Test for this by closing stdout in the child. */
  12822. _exit(close(fileno(stdout)) != 0);
  12823. } else {
  12824. int status;
  12825. struct stat st;
  12826. while (wait(&status) != child)
  12827. ;
  12828. return (
  12829. /* Was there some problem with vforking? */
  12830. child < 0
  12831. /* Did the child fail? (This shouldn't happen.) */
  12832. || status
  12833. /* Did the vfork/compiler bug occur? */
  12834. || parent != getpid()
  12835. /* Did the file descriptor bug occur? */
  12836. || fstat(fileno(stdout), &st) != 0
  12837. );
  12838. }
  12839. }
  12840. _ACEOF
  12841. if ac_fn_cxx_try_run "$LINENO"; then :
  12842. ac_cv_func_vfork_works=yes
  12843. else
  12844. ac_cv_func_vfork_works=no
  12845. fi
  12846. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12847. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12848. fi
  12849. fi
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12851. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12852. fi;
  12853. if test "x$ac_cv_func_fork_works" = xcross; then
  12854. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12856. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12857. fi
  12858. if test "x$ac_cv_func_vfork_works" = xyes; then
  12859. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12860. else
  12861. $as_echo "#define vfork fork" >>confdefs.h
  12862. fi
  12863. if test "x$ac_cv_func_fork_works" = xyes; then
  12864. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12865. fi
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12867. $as_echo_n "checking for working strtod... " >&6; }
  12868. if test "${ac_cv_func_strtod+set}" = set; then :
  12869. $as_echo_n "(cached) " >&6
  12870. else
  12871. if test "$cross_compiling" = yes; then :
  12872. ac_cv_func_strtod=no
  12873. else
  12874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12875. /* end confdefs.h. */
  12876. $ac_includes_default
  12877. #ifndef strtod
  12878. double strtod ();
  12879. #endif
  12880. int
  12881. main()
  12882. {
  12883. {
  12884. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12885. char *string = " +69";
  12886. char *term;
  12887. double value;
  12888. value = strtod (string, &term);
  12889. if (value != 69 || term != (string + 4))
  12890. return 1;
  12891. }
  12892. {
  12893. /* Under Solaris 2.4, strtod returns the wrong value for the
  12894. terminating character under some conditions. */
  12895. char *string = "NaN";
  12896. char *term;
  12897. strtod (string, &term);
  12898. if (term != string && *(term - 1) == 0)
  12899. return 1;
  12900. }
  12901. return 0;
  12902. }
  12903. _ACEOF
  12904. if ac_fn_cxx_try_run "$LINENO"; then :
  12905. ac_cv_func_strtod=yes
  12906. else
  12907. ac_cv_func_strtod=no
  12908. fi
  12909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12911. fi
  12912. fi
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12914. $as_echo "$ac_cv_func_strtod" >&6; }
  12915. if test $ac_cv_func_strtod = no; then
  12916. case " $LIBOBJS " in
  12917. *" strtod.$ac_objext "* ) ;;
  12918. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12919. ;;
  12920. esac
  12921. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12922. if test "x$ac_cv_func_pow" = x""yes; then :
  12923. fi
  12924. if test $ac_cv_func_pow = no; then
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12926. $as_echo_n "checking for pow in -lm... " >&6; }
  12927. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12928. $as_echo_n "(cached) " >&6
  12929. else
  12930. ac_check_lib_save_LIBS=$LIBS
  12931. LIBS="-lm $LIBS"
  12932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12933. /* end confdefs.h. */
  12934. /* Override any GCC internal prototype to avoid an error.
  12935. Use char because int might match the return type of a GCC
  12936. builtin and then its argument prototype would still apply. */
  12937. #ifdef __cplusplus
  12938. extern "C"
  12939. #endif
  12940. char pow ();
  12941. int
  12942. main ()
  12943. {
  12944. return pow ();
  12945. ;
  12946. return 0;
  12947. }
  12948. _ACEOF
  12949. if ac_fn_cxx_try_link "$LINENO"; then :
  12950. ac_cv_lib_m_pow=yes
  12951. else
  12952. ac_cv_lib_m_pow=no
  12953. fi
  12954. rm -f core conftest.err conftest.$ac_objext \
  12955. conftest$ac_exeext conftest.$ac_ext
  12956. LIBS=$ac_check_lib_save_LIBS
  12957. fi
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12959. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12960. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12961. POW_LIB=-lm
  12962. else
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12964. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12965. fi
  12966. fi
  12967. fi
  12968. for ac_func in __argz_count \
  12969. __argz_next \
  12970. __argz_stringify \
  12971. atexit \
  12972. ftruncate \
  12973. getcwd \
  12974. gethostbyaddr \
  12975. gethostbyname \
  12976. getifaddrs \
  12977. getpagesize \
  12978. inet_ntoa \
  12979. memchr \
  12980. memmove \
  12981. mempcpy \
  12982. memset \
  12983. mkdir \
  12984. munmap \
  12985. nl_langinfo \
  12986. posix_memalign \
  12987. pow \
  12988. putenv \
  12989. rmdir \
  12990. select \
  12991. setlocale \
  12992. sleep \
  12993. socket \
  12994. stpcpy \
  12995. strcasecmp \
  12996. strchr \
  12997. strcspn \
  12998. strdup \
  12999. strerror \
  13000. strncasecmp \
  13001. strstr \
  13002. strtol \
  13003. strtoul \
  13004. strtoull \
  13005. tzset \
  13006. unsetenv \
  13007. usleep \
  13008. utime
  13009. do :
  13010. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13011. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13012. eval as_val=\$$as_ac_var
  13013. if test "x$as_val" = x""yes; then :
  13014. cat >>confdefs.h <<_ACEOF
  13015. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13016. _ACEOF
  13017. fi
  13018. done
  13019. if test "x$enable_epoll" = "xyes"; then
  13020. for ac_func in epoll_create
  13021. do :
  13022. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13023. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13024. cat >>confdefs.h <<_ACEOF
  13025. #define HAVE_EPOLL_CREATE 1
  13026. _ACEOF
  13027. have_epoll=yes
  13028. fi
  13029. done
  13030. if test "x$have_epoll" = "xyes"; then
  13031. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13032. fi
  13033. fi
  13034. if test "x$have_epoll" = "xyes"; then
  13035. HAVE_EPOLL_TRUE=
  13036. HAVE_EPOLL_FALSE='#'
  13037. else
  13038. HAVE_EPOLL_TRUE='#'
  13039. HAVE_EPOLL_FALSE=
  13040. fi
  13041. for ac_func in posix_fallocate
  13042. do :
  13043. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13044. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13045. cat >>confdefs.h <<_ACEOF
  13046. #define HAVE_POSIX_FALLOCATE 1
  13047. _ACEOF
  13048. have_posix_fallocate=yes
  13049. fi
  13050. done
  13051. if test "x$have_posix_fallocate" = "xyes"; then
  13052. HAVE_POSIX_FALLOCATE_TRUE=
  13053. HAVE_POSIX_FALLOCATE_FALSE='#'
  13054. else
  13055. HAVE_POSIX_FALLOCATE_TRUE='#'
  13056. HAVE_POSIX_FALLOCATE_FALSE=
  13057. fi
  13058. for ac_func in asctime_r
  13059. do :
  13060. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13061. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13062. cat >>confdefs.h <<_ACEOF
  13063. #define HAVE_ASCTIME_R 1
  13064. _ACEOF
  13065. if true; then
  13066. HAVE_ASCTIME_R_TRUE=
  13067. HAVE_ASCTIME_R_FALSE='#'
  13068. else
  13069. HAVE_ASCTIME_R_TRUE='#'
  13070. HAVE_ASCTIME_R_FALSE=
  13071. fi
  13072. else
  13073. if false; then
  13074. HAVE_ASCTIME_R_TRUE=
  13075. HAVE_ASCTIME_R_FALSE='#'
  13076. else
  13077. HAVE_ASCTIME_R_TRUE='#'
  13078. HAVE_ASCTIME_R_FALSE=
  13079. fi
  13080. fi
  13081. done
  13082. for ac_func in basename
  13083. do :
  13084. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13085. if test "x$ac_cv_func_basename" = x""yes; then :
  13086. cat >>confdefs.h <<_ACEOF
  13087. #define HAVE_BASENAME 1
  13088. _ACEOF
  13089. if true; then
  13090. HAVE_BASENAME_TRUE=
  13091. HAVE_BASENAME_FALSE='#'
  13092. else
  13093. HAVE_BASENAME_TRUE='#'
  13094. HAVE_BASENAME_FALSE=
  13095. fi
  13096. else
  13097. if false; then
  13098. HAVE_BASENAME_TRUE=
  13099. HAVE_BASENAME_FALSE='#'
  13100. else
  13101. HAVE_BASENAME_TRUE='#'
  13102. HAVE_BASENAME_FALSE=
  13103. fi
  13104. fi
  13105. done
  13106. for ac_func in gai_strerror
  13107. do :
  13108. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13109. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13110. cat >>confdefs.h <<_ACEOF
  13111. #define HAVE_GAI_STRERROR 1
  13112. _ACEOF
  13113. if true; then
  13114. HAVE_GAI_STRERROR_TRUE=
  13115. HAVE_GAI_STRERROR_FALSE='#'
  13116. else
  13117. HAVE_GAI_STRERROR_TRUE='#'
  13118. HAVE_GAI_STRERROR_FALSE=
  13119. fi
  13120. else
  13121. if false; then
  13122. HAVE_GAI_STRERROR_TRUE=
  13123. HAVE_GAI_STRERROR_FALSE='#'
  13124. else
  13125. HAVE_GAI_STRERROR_TRUE='#'
  13126. HAVE_GAI_STRERROR_FALSE=
  13127. fi
  13128. fi
  13129. done
  13130. for ac_func in getaddrinfo
  13131. do :
  13132. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13133. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13134. cat >>confdefs.h <<_ACEOF
  13135. #define HAVE_GETADDRINFO 1
  13136. _ACEOF
  13137. if true; then
  13138. HAVE_GETADDRINFO_TRUE=
  13139. HAVE_GETADDRINFO_FALSE='#'
  13140. else
  13141. HAVE_GETADDRINFO_TRUE='#'
  13142. HAVE_GETADDRINFO_FALSE=
  13143. fi
  13144. else
  13145. if false; then
  13146. HAVE_GETADDRINFO_TRUE=
  13147. HAVE_GETADDRINFO_FALSE='#'
  13148. else
  13149. HAVE_GETADDRINFO_TRUE='#'
  13150. HAVE_GETADDRINFO_FALSE=
  13151. fi
  13152. fi
  13153. done
  13154. for ac_func in gettimeofday
  13155. do :
  13156. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13157. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13158. cat >>confdefs.h <<_ACEOF
  13159. #define HAVE_GETTIMEOFDAY 1
  13160. _ACEOF
  13161. if true; then
  13162. HAVE_GETTIMEOFDAY_TRUE=
  13163. HAVE_GETTIMEOFDAY_FALSE='#'
  13164. else
  13165. HAVE_GETTIMEOFDAY_TRUE='#'
  13166. HAVE_GETTIMEOFDAY_FALSE=
  13167. fi
  13168. else
  13169. if false; then
  13170. HAVE_GETTIMEOFDAY_TRUE=
  13171. HAVE_GETTIMEOFDAY_FALSE='#'
  13172. else
  13173. HAVE_GETTIMEOFDAY_TRUE='#'
  13174. HAVE_GETTIMEOFDAY_FALSE=
  13175. fi
  13176. fi
  13177. done
  13178. for ac_func in inet_aton
  13179. do :
  13180. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13181. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13182. cat >>confdefs.h <<_ACEOF
  13183. #define HAVE_INET_ATON 1
  13184. _ACEOF
  13185. if true; then
  13186. HAVE_INET_ATON_TRUE=
  13187. HAVE_INET_ATON_FALSE='#'
  13188. else
  13189. HAVE_INET_ATON_TRUE='#'
  13190. HAVE_INET_ATON_FALSE=
  13191. fi
  13192. else
  13193. if false; then
  13194. HAVE_INET_ATON_TRUE=
  13195. HAVE_INET_ATON_FALSE='#'
  13196. else
  13197. HAVE_INET_ATON_TRUE='#'
  13198. HAVE_INET_ATON_FALSE=
  13199. fi
  13200. fi
  13201. done
  13202. for ac_func in localtime_r
  13203. do :
  13204. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13205. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13206. cat >>confdefs.h <<_ACEOF
  13207. #define HAVE_LOCALTIME_R 1
  13208. _ACEOF
  13209. if true; then
  13210. HAVE_LOCALTIME_R_TRUE=
  13211. HAVE_LOCALTIME_R_FALSE='#'
  13212. else
  13213. HAVE_LOCALTIME_R_TRUE='#'
  13214. HAVE_LOCALTIME_R_FALSE=
  13215. fi
  13216. else
  13217. if false; then
  13218. HAVE_LOCALTIME_R_TRUE=
  13219. HAVE_LOCALTIME_R_FALSE='#'
  13220. else
  13221. HAVE_LOCALTIME_R_TRUE='#'
  13222. HAVE_LOCALTIME_R_FALSE=
  13223. fi
  13224. fi
  13225. done
  13226. for ac_func in strptime
  13227. do :
  13228. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13229. if test "x$ac_cv_func_strptime" = x""yes; then :
  13230. cat >>confdefs.h <<_ACEOF
  13231. #define HAVE_STRPTIME 1
  13232. _ACEOF
  13233. if true; then
  13234. HAVE_STRPTIME_TRUE=
  13235. HAVE_STRPTIME_FALSE='#'
  13236. else
  13237. HAVE_STRPTIME_TRUE='#'
  13238. HAVE_STRPTIME_FALSE=
  13239. fi
  13240. else
  13241. if false; then
  13242. HAVE_STRPTIME_TRUE=
  13243. HAVE_STRPTIME_FALSE='#'
  13244. else
  13245. HAVE_STRPTIME_TRUE='#'
  13246. HAVE_STRPTIME_FALSE=
  13247. fi
  13248. fi
  13249. done
  13250. for ac_func in timegm
  13251. do :
  13252. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13253. if test "x$ac_cv_func_timegm" = x""yes; then :
  13254. cat >>confdefs.h <<_ACEOF
  13255. #define HAVE_TIMEGM 1
  13256. _ACEOF
  13257. if true; then
  13258. HAVE_TIMEGM_TRUE=
  13259. HAVE_TIMEGM_FALSE='#'
  13260. else
  13261. HAVE_TIMEGM_TRUE='#'
  13262. HAVE_TIMEGM_FALSE=
  13263. fi
  13264. else
  13265. if false; then
  13266. HAVE_TIMEGM_TRUE=
  13267. HAVE_TIMEGM_FALSE='#'
  13268. else
  13269. HAVE_TIMEGM_TRUE='#'
  13270. HAVE_TIMEGM_FALSE=
  13271. fi
  13272. fi
  13273. done
  13274. for ac_func in daemon
  13275. do :
  13276. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13277. if test "x$ac_cv_func_daemon" = x""yes; then :
  13278. cat >>confdefs.h <<_ACEOF
  13279. #define HAVE_DAEMON 1
  13280. _ACEOF
  13281. have_daemon=yes
  13282. fi
  13283. done
  13284. if test "x$have_daemon" = "xyes"; then
  13285. HAVE_DAEMON_TRUE=
  13286. HAVE_DAEMON_FALSE='#'
  13287. else
  13288. HAVE_DAEMON_TRUE='#'
  13289. HAVE_DAEMON_FALSE=
  13290. fi
  13291. for ac_func in clock_gettime
  13292. do :
  13293. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13294. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13295. cat >>confdefs.h <<_ACEOF
  13296. #define HAVE_CLOCK_GETTIME 1
  13297. _ACEOF
  13298. have_clock_gettime=yes
  13299. fi
  13300. done
  13301. if test "x$have_clock_gettime" != "xyes"; then
  13302. for ac_func in mach_absolute_time
  13303. do :
  13304. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13305. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13306. cat >>confdefs.h <<_ACEOF
  13307. #define HAVE_MACH_ABSOLUTE_TIME 1
  13308. _ACEOF
  13309. have_mach_absolute_time=yes
  13310. fi
  13311. done
  13312. fi
  13313. if test "x$have_mach_absolute_time" = "xyes"; then
  13314. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13315. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13316. else
  13317. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13318. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13319. fi
  13320. for ac_func in poll
  13321. do :
  13322. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13323. if test "x$ac_cv_func_poll" = x""yes; then :
  13324. cat >>confdefs.h <<_ACEOF
  13325. #define HAVE_POLL 1
  13326. _ACEOF
  13327. have_poll=yes
  13328. fi
  13329. done
  13330. if test "x$have_poll" = "xyes"; then
  13331. HAVE_POLL_TRUE=
  13332. HAVE_POLL_FALSE='#'
  13333. else
  13334. HAVE_POLL_TRUE='#'
  13335. HAVE_POLL_FALSE=
  13336. fi
  13337. case "$target" in
  13338. *mingw*)
  13339. if true; then
  13340. HAVE_GETADDRINFO_TRUE=
  13341. HAVE_GETADDRINFO_FALSE='#'
  13342. else
  13343. HAVE_GETADDRINFO_TRUE='#'
  13344. HAVE_GETADDRINFO_FALSE=
  13345. fi
  13346. if false; then
  13347. HAVE_GAI_STRERROR_TRUE=
  13348. HAVE_GAI_STRERROR_FALSE='#'
  13349. else
  13350. HAVE_GAI_STRERROR_TRUE='#'
  13351. HAVE_GAI_STRERROR_FALSE=
  13352. fi
  13353. if test "x$have_clock_gettime" != "xyes"; then
  13354. if true; then
  13355. HAVE_TIMEGETTIME_TRUE=
  13356. HAVE_TIMEGETTIME_FALSE='#'
  13357. else
  13358. HAVE_TIMEGETTIME_TRUE='#'
  13359. HAVE_TIMEGETTIME_FALSE=
  13360. fi
  13361. fi
  13362. ;;
  13363. *)
  13364. if false; then
  13365. HAVE_TIMEGETTIME_TRUE=
  13366. HAVE_TIMEGETTIME_FALSE='#'
  13367. else
  13368. HAVE_TIMEGETTIME_TRUE='#'
  13369. HAVE_TIMEGETTIME_FALSE=
  13370. fi
  13371. ;;
  13372. esac
  13373. for ac_func in port_associate
  13374. do :
  13375. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13376. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13377. cat >>confdefs.h <<_ACEOF
  13378. #define HAVE_PORT_ASSOCIATE 1
  13379. _ACEOF
  13380. have_port_associate=yes
  13381. fi
  13382. done
  13383. if test "x$have_port_associate" = "xyes"; then
  13384. HAVE_PORT_ASSOCIATE_TRUE=
  13385. HAVE_PORT_ASSOCIATE_FALSE='#'
  13386. else
  13387. HAVE_PORT_ASSOCIATE_TRUE='#'
  13388. HAVE_PORT_ASSOCIATE_FALSE=
  13389. fi
  13390. for ac_func in kqueue
  13391. do :
  13392. ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  13393. if test "x$ac_cv_func_kqueue" = x""yes; then :
  13394. cat >>confdefs.h <<_ACEOF
  13395. #define HAVE_KQUEUE 1
  13396. _ACEOF
  13397. have_kqueue=yes
  13398. fi
  13399. done
  13400. if test "x$have_kqueue" = "xyes"; then
  13401. HAVE_KQUEUE_TRUE=
  13402. HAVE_KQUEUE_FALSE='#'
  13403. else
  13404. HAVE_KQUEUE_TRUE='#'
  13405. HAVE_KQUEUE_FALSE=
  13406. fi
  13407. if test "x$have_kqueue" = "xyes"; then
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
  13409. $as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
  13410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13411. /* end confdefs.h. */
  13412. #include <sys/types.h>
  13413. #include <sys/event.h>
  13414. #include <sys/time.h>
  13415. int
  13416. main ()
  13417. {
  13418. struct kevent event;
  13419. event.udata = reinterpret_cast<intptr_t>(&event);
  13420. ;
  13421. return 0;
  13422. }
  13423. _ACEOF
  13424. if ac_fn_cxx_try_compile "$LINENO"; then :
  13425. kevent_udata_intptr_t=yes
  13426. else
  13427. kevent_udata_intptr_t=no
  13428. fi
  13429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
  13431. $as_echo "$kevent_udata_intptr_t" >&6; }
  13432. if test "x$kevent_udata_intptr_t" = "xyes"; then
  13433. $as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
  13434. fi
  13435. fi
  13436. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13437. "
  13438. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13439. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13440. fi
  13441. # Check struct option.name is assignable from const char*. struct
  13442. # option.name in opensolaris is of type char*. In Linux, it is const
  13443. # char*
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13445. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13447. /* end confdefs.h. */
  13448. #include <unistd.h>
  13449. #include <getopt.h>
  13450. int
  13451. main ()
  13452. {
  13453. const char* s = "const char";
  13454. option op;
  13455. op.name = s;
  13456. ;
  13457. return 0;
  13458. }
  13459. _ACEOF
  13460. if ac_fn_cxx_try_compile "$LINENO"; then :
  13461. have_option_const_name=yes
  13462. else
  13463. have_option_const_name=no
  13464. fi
  13465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13467. $as_echo "$have_option_const_name" >&6; }
  13468. if test "x$have_option_const_name" = "xyes"; then
  13469. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13470. fi
  13471. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13472. cat >confcache <<\_ACEOF
  13473. # This file is a shell script that caches the results of configure
  13474. # tests run on this system so they can be shared between configure
  13475. # scripts and configure runs, see configure's option --config-cache.
  13476. # It is not useful on other systems. If it contains results you don't
  13477. # want to keep, you may remove or edit it.
  13478. #
  13479. # config.status only pays attention to the cache file if you give it
  13480. # the --recheck option to rerun configure.
  13481. #
  13482. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13483. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13484. # following values.
  13485. _ACEOF
  13486. # The following way of writing the cache mishandles newlines in values,
  13487. # but we know of no workaround that is simple, portable, and efficient.
  13488. # So, we kill variables containing newlines.
  13489. # Ultrix sh set writes to stderr and can't be redirected directly,
  13490. # and sets the high bit in the cache file unless we assign to the vars.
  13491. (
  13492. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13493. eval ac_val=\$$ac_var
  13494. case $ac_val in #(
  13495. *${as_nl}*)
  13496. case $ac_var in #(
  13497. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13498. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13499. esac
  13500. case $ac_var in #(
  13501. _ | IFS | as_nl) ;; #(
  13502. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13503. *) { eval $ac_var=; unset $ac_var;} ;;
  13504. esac ;;
  13505. esac
  13506. done
  13507. (set) 2>&1 |
  13508. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13509. *${as_nl}ac_space=\ *)
  13510. # `set' does not quote correctly, so add quotes: double-quote
  13511. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13512. sed -n \
  13513. "s/'/'\\\\''/g;
  13514. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13515. ;; #(
  13516. *)
  13517. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13518. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13519. ;;
  13520. esac |
  13521. sort
  13522. ) |
  13523. sed '
  13524. /^ac_cv_env_/b end
  13525. t clear
  13526. :clear
  13527. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13528. t end
  13529. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13530. :end' >>confcache
  13531. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13532. if test -w "$cache_file"; then
  13533. test "x$cache_file" != "x/dev/null" &&
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13535. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13536. cat confcache >$cache_file
  13537. else
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13539. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13540. fi
  13541. fi
  13542. rm -f confcache
  13543. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13544. # Let make expand exec_prefix.
  13545. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13546. DEFS=-DHAVE_CONFIG_H
  13547. ac_libobjs=
  13548. ac_ltlibobjs=
  13549. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13550. # 1. Remove the extension, and $U if already installed.
  13551. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13552. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13553. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13554. # will be set to the directory where LIBOBJS objects are built.
  13555. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13556. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13557. done
  13558. LIBOBJS=$ac_libobjs
  13559. LTLIBOBJS=$ac_ltlibobjs
  13560. if test -n "$EXEEXT"; then
  13561. am__EXEEXT_TRUE=
  13562. am__EXEEXT_FALSE='#'
  13563. else
  13564. am__EXEEXT_TRUE='#'
  13565. am__EXEEXT_FALSE=
  13566. fi
  13567. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13568. as_fn_error "conditional \"AMDEP\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13572. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13576. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13580. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13584. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13588. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13592. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13596. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13600. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13604. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13608. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13612. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13616. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13618. fi
  13619. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13620. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13622. fi
  13623. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13624. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13626. fi
  13627. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13628. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13630. fi
  13631. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13632. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13634. fi
  13635. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13636. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13638. fi
  13639. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13640. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13642. fi
  13643. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13644. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13646. fi
  13647. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13648. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13650. fi
  13651. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13652. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13654. fi
  13655. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13656. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13658. fi
  13659. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13660. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13662. fi
  13663. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13664. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13666. fi
  13667. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13668. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13669. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13670. fi
  13671. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13672. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13673. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13674. fi
  13675. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13676. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13677. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13678. fi
  13679. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13680. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13681. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13682. fi
  13683. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13684. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13686. fi
  13687. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13688. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13690. fi
  13691. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13692. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13693. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13694. fi
  13695. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13696. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13697. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13698. fi
  13699. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13700. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13701. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13702. fi
  13703. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13704. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13705. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13706. fi
  13707. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13708. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13709. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13710. fi
  13711. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13712. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13713. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13714. fi
  13715. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13716. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13717. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13718. fi
  13719. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13720. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13721. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13722. fi
  13723. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13724. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13725. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13726. fi
  13727. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13728. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13729. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13730. fi
  13731. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13732. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13733. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13734. fi
  13735. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13736. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13737. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13738. fi
  13739. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13740. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13741. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13742. fi
  13743. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13744. as_fn_error "conditional \"HAVE_POLL\" was never defined.
  13745. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13746. fi
  13747. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13748. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13749. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13750. fi
  13751. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13752. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13753. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13754. fi
  13755. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13756. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13757. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13758. fi
  13759. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13760. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13761. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13762. fi
  13763. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13764. as_fn_error "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13765. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13766. fi
  13767. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  13768. as_fn_error "conditional \"HAVE_KQUEUE\" was never defined.
  13769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13770. fi
  13771. : ${CONFIG_STATUS=./config.status}
  13772. ac_write_fail=0
  13773. ac_clean_files_save=$ac_clean_files
  13774. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13776. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13777. as_write_fail=0
  13778. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13779. #! $SHELL
  13780. # Generated by $as_me.
  13781. # Run this file to recreate the current configuration.
  13782. # Compiler output produced by configure, useful for debugging
  13783. # configure, is in config.log if it exists.
  13784. debug=false
  13785. ac_cs_recheck=false
  13786. ac_cs_silent=false
  13787. SHELL=\${CONFIG_SHELL-$SHELL}
  13788. export SHELL
  13789. _ASEOF
  13790. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13791. ## -------------------- ##
  13792. ## M4sh Initialization. ##
  13793. ## -------------------- ##
  13794. # Be more Bourne compatible
  13795. DUALCASE=1; export DUALCASE # for MKS sh
  13796. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13797. emulate sh
  13798. NULLCMD=:
  13799. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13800. # is contrary to our usage. Disable this feature.
  13801. alias -g '${1+"$@"}'='"$@"'
  13802. setopt NO_GLOB_SUBST
  13803. else
  13804. case `(set -o) 2>/dev/null` in #(
  13805. *posix*) :
  13806. set -o posix ;; #(
  13807. *) :
  13808. ;;
  13809. esac
  13810. fi
  13811. as_nl='
  13812. '
  13813. export as_nl
  13814. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13815. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13816. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13817. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13818. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13819. # but without wasting forks for bash or zsh.
  13820. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13821. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13822. as_echo='print -r --'
  13823. as_echo_n='print -rn --'
  13824. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13825. as_echo='printf %s\n'
  13826. as_echo_n='printf %s'
  13827. else
  13828. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13829. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13830. as_echo_n='/usr/ucb/echo -n'
  13831. else
  13832. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13833. as_echo_n_body='eval
  13834. arg=$1;
  13835. case $arg in #(
  13836. *"$as_nl"*)
  13837. expr "X$arg" : "X\\(.*\\)$as_nl";
  13838. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13839. esac;
  13840. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13841. '
  13842. export as_echo_n_body
  13843. as_echo_n='sh -c $as_echo_n_body as_echo'
  13844. fi
  13845. export as_echo_body
  13846. as_echo='sh -c $as_echo_body as_echo'
  13847. fi
  13848. # The user is always right.
  13849. if test "${PATH_SEPARATOR+set}" != set; then
  13850. PATH_SEPARATOR=:
  13851. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13852. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13853. PATH_SEPARATOR=';'
  13854. }
  13855. fi
  13856. # IFS
  13857. # We need space, tab and new line, in precisely that order. Quoting is
  13858. # there to prevent editors from complaining about space-tab.
  13859. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13860. # splitting by setting IFS to empty value.)
  13861. IFS=" "" $as_nl"
  13862. # Find who we are. Look in the path if we contain no directory separator.
  13863. case $0 in #((
  13864. *[\\/]* ) as_myself=$0 ;;
  13865. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13866. for as_dir in $PATH
  13867. do
  13868. IFS=$as_save_IFS
  13869. test -z "$as_dir" && as_dir=.
  13870. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13871. done
  13872. IFS=$as_save_IFS
  13873. ;;
  13874. esac
  13875. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13876. # in which case we are not to be found in the path.
  13877. if test "x$as_myself" = x; then
  13878. as_myself=$0
  13879. fi
  13880. if test ! -f "$as_myself"; then
  13881. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13882. exit 1
  13883. fi
  13884. # Unset variables that we do not need and which cause bugs (e.g. in
  13885. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13886. # suppresses any "Segmentation fault" message there. '((' could
  13887. # trigger a bug in pdksh 5.2.14.
  13888. for as_var in BASH_ENV ENV MAIL MAILPATH
  13889. do eval test x\${$as_var+set} = xset \
  13890. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13891. done
  13892. PS1='$ '
  13893. PS2='> '
  13894. PS4='+ '
  13895. # NLS nuisances.
  13896. LC_ALL=C
  13897. export LC_ALL
  13898. LANGUAGE=C
  13899. export LANGUAGE
  13900. # CDPATH.
  13901. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13902. # as_fn_error ERROR [LINENO LOG_FD]
  13903. # ---------------------------------
  13904. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13905. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13906. # script with status $?, using 1 if that was 0.
  13907. as_fn_error ()
  13908. {
  13909. as_status=$?; test $as_status -eq 0 && as_status=1
  13910. if test "$3"; then
  13911. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13912. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13913. fi
  13914. $as_echo "$as_me: error: $1" >&2
  13915. as_fn_exit $as_status
  13916. } # as_fn_error
  13917. # as_fn_set_status STATUS
  13918. # -----------------------
  13919. # Set $? to STATUS, without forking.
  13920. as_fn_set_status ()
  13921. {
  13922. return $1
  13923. } # as_fn_set_status
  13924. # as_fn_exit STATUS
  13925. # -----------------
  13926. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13927. as_fn_exit ()
  13928. {
  13929. set +e
  13930. as_fn_set_status $1
  13931. exit $1
  13932. } # as_fn_exit
  13933. # as_fn_unset VAR
  13934. # ---------------
  13935. # Portably unset VAR.
  13936. as_fn_unset ()
  13937. {
  13938. { eval $1=; unset $1;}
  13939. }
  13940. as_unset=as_fn_unset
  13941. # as_fn_append VAR VALUE
  13942. # ----------------------
  13943. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13944. # advantage of any shell optimizations that allow amortized linear growth over
  13945. # repeated appends, instead of the typical quadratic growth present in naive
  13946. # implementations.
  13947. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13948. eval 'as_fn_append ()
  13949. {
  13950. eval $1+=\$2
  13951. }'
  13952. else
  13953. as_fn_append ()
  13954. {
  13955. eval $1=\$$1\$2
  13956. }
  13957. fi # as_fn_append
  13958. # as_fn_arith ARG...
  13959. # ------------------
  13960. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13961. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13962. # must be portable across $(()) and expr.
  13963. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13964. eval 'as_fn_arith ()
  13965. {
  13966. as_val=$(( $* ))
  13967. }'
  13968. else
  13969. as_fn_arith ()
  13970. {
  13971. as_val=`expr "$@" || test $? -eq 1`
  13972. }
  13973. fi # as_fn_arith
  13974. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13975. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13976. as_expr=expr
  13977. else
  13978. as_expr=false
  13979. fi
  13980. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13981. as_basename=basename
  13982. else
  13983. as_basename=false
  13984. fi
  13985. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13986. as_dirname=dirname
  13987. else
  13988. as_dirname=false
  13989. fi
  13990. as_me=`$as_basename -- "$0" ||
  13991. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13992. X"$0" : 'X\(//\)$' \| \
  13993. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13994. $as_echo X/"$0" |
  13995. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13996. s//\1/
  13997. q
  13998. }
  13999. /^X\/\(\/\/\)$/{
  14000. s//\1/
  14001. q
  14002. }
  14003. /^X\/\(\/\).*/{
  14004. s//\1/
  14005. q
  14006. }
  14007. s/.*/./; q'`
  14008. # Avoid depending upon Character Ranges.
  14009. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14010. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14011. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14012. as_cr_digits='0123456789'
  14013. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14014. ECHO_C= ECHO_N= ECHO_T=
  14015. case `echo -n x` in #(((((
  14016. -n*)
  14017. case `echo 'xy\c'` in
  14018. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14019. xy) ECHO_C='\c';;
  14020. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14021. ECHO_T=' ';;
  14022. esac;;
  14023. *)
  14024. ECHO_N='-n';;
  14025. esac
  14026. rm -f conf$$ conf$$.exe conf$$.file
  14027. if test -d conf$$.dir; then
  14028. rm -f conf$$.dir/conf$$.file
  14029. else
  14030. rm -f conf$$.dir
  14031. mkdir conf$$.dir 2>/dev/null
  14032. fi
  14033. if (echo >conf$$.file) 2>/dev/null; then
  14034. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14035. as_ln_s='ln -s'
  14036. # ... but there are two gotchas:
  14037. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14038. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14039. # In both cases, we have to default to `cp -p'.
  14040. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14041. as_ln_s='cp -p'
  14042. elif ln conf$$.file conf$$ 2>/dev/null; then
  14043. as_ln_s=ln
  14044. else
  14045. as_ln_s='cp -p'
  14046. fi
  14047. else
  14048. as_ln_s='cp -p'
  14049. fi
  14050. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14051. rmdir conf$$.dir 2>/dev/null
  14052. # as_fn_mkdir_p
  14053. # -------------
  14054. # Create "$as_dir" as a directory, including parents if necessary.
  14055. as_fn_mkdir_p ()
  14056. {
  14057. case $as_dir in #(
  14058. -*) as_dir=./$as_dir;;
  14059. esac
  14060. test -d "$as_dir" || eval $as_mkdir_p || {
  14061. as_dirs=
  14062. while :; do
  14063. case $as_dir in #(
  14064. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14065. *) as_qdir=$as_dir;;
  14066. esac
  14067. as_dirs="'$as_qdir' $as_dirs"
  14068. as_dir=`$as_dirname -- "$as_dir" ||
  14069. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14070. X"$as_dir" : 'X\(//\)[^/]' \| \
  14071. X"$as_dir" : 'X\(//\)$' \| \
  14072. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14073. $as_echo X"$as_dir" |
  14074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14075. s//\1/
  14076. q
  14077. }
  14078. /^X\(\/\/\)[^/].*/{
  14079. s//\1/
  14080. q
  14081. }
  14082. /^X\(\/\/\)$/{
  14083. s//\1/
  14084. q
  14085. }
  14086. /^X\(\/\).*/{
  14087. s//\1/
  14088. q
  14089. }
  14090. s/.*/./; q'`
  14091. test -d "$as_dir" && break
  14092. done
  14093. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14094. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14095. } # as_fn_mkdir_p
  14096. if mkdir -p . 2>/dev/null; then
  14097. as_mkdir_p='mkdir -p "$as_dir"'
  14098. else
  14099. test -d ./-p && rmdir ./-p
  14100. as_mkdir_p=false
  14101. fi
  14102. if test -x / >/dev/null 2>&1; then
  14103. as_test_x='test -x'
  14104. else
  14105. if ls -dL / >/dev/null 2>&1; then
  14106. as_ls_L_option=L
  14107. else
  14108. as_ls_L_option=
  14109. fi
  14110. as_test_x='
  14111. eval sh -c '\''
  14112. if test -d "$1"; then
  14113. test -d "$1/.";
  14114. else
  14115. case $1 in #(
  14116. -*)set "./$1";;
  14117. esac;
  14118. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14119. ???[sx]*):;;*)false;;esac;fi
  14120. '\'' sh
  14121. '
  14122. fi
  14123. as_executable_p=$as_test_x
  14124. # Sed expression to map a string onto a valid CPP name.
  14125. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14126. # Sed expression to map a string onto a valid variable name.
  14127. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14128. exec 6>&1
  14129. ## ----------------------------------- ##
  14130. ## Main body of $CONFIG_STATUS script. ##
  14131. ## ----------------------------------- ##
  14132. _ASEOF
  14133. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14135. # Save the log message, to keep $0 and so on meaningful, and to
  14136. # report actual input values of CONFIG_FILES etc. instead of their
  14137. # values after options handling.
  14138. ac_log="
  14139. This file was extended by aria2 $as_me 1.9.4, which was
  14140. generated by GNU Autoconf 2.65. Invocation command line was
  14141. CONFIG_FILES = $CONFIG_FILES
  14142. CONFIG_HEADERS = $CONFIG_HEADERS
  14143. CONFIG_LINKS = $CONFIG_LINKS
  14144. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14145. $ $0 $@
  14146. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14147. "
  14148. _ACEOF
  14149. case $ac_config_files in *"
  14150. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14151. esac
  14152. case $ac_config_headers in *"
  14153. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14154. esac
  14155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14156. # Files that config.status was made for.
  14157. config_files="$ac_config_files"
  14158. config_headers="$ac_config_headers"
  14159. config_commands="$ac_config_commands"
  14160. _ACEOF
  14161. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14162. ac_cs_usage="\
  14163. \`$as_me' instantiates files and other configuration actions
  14164. from templates according to the current configuration. Unless the files
  14165. and actions are specified as TAGs, all are instantiated by default.
  14166. Usage: $0 [OPTION]... [TAG]...
  14167. -h, --help print this help, then exit
  14168. -V, --version print version number and configuration settings, then exit
  14169. --config print configuration, then exit
  14170. -q, --quiet, --silent
  14171. do not print progress messages
  14172. -d, --debug don't remove temporary files
  14173. --recheck update $as_me by reconfiguring in the same conditions
  14174. --file=FILE[:TEMPLATE]
  14175. instantiate the configuration file FILE
  14176. --header=FILE[:TEMPLATE]
  14177. instantiate the configuration header FILE
  14178. Configuration files:
  14179. $config_files
  14180. Configuration headers:
  14181. $config_headers
  14182. Configuration commands:
  14183. $config_commands
  14184. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14185. aria2 home page: <http://aria2.sourceforge.net/>."
  14186. _ACEOF
  14187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14188. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14189. ac_cs_version="\\
  14190. aria2 config.status 1.9.4
  14191. configured by $0, generated by GNU Autoconf 2.65,
  14192. with options \\"\$ac_cs_config\\"
  14193. Copyright (C) 2009 Free Software Foundation, Inc.
  14194. This config.status script is free software; the Free Software Foundation
  14195. gives unlimited permission to copy, distribute and modify it."
  14196. ac_pwd='$ac_pwd'
  14197. srcdir='$srcdir'
  14198. INSTALL='$INSTALL'
  14199. MKDIR_P='$MKDIR_P'
  14200. AWK='$AWK'
  14201. test -n "\$AWK" || AWK=awk
  14202. _ACEOF
  14203. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14204. # The default lists apply if the user does not specify any file.
  14205. ac_need_defaults=:
  14206. while test $# != 0
  14207. do
  14208. case $1 in
  14209. --*=*)
  14210. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14211. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14212. ac_shift=:
  14213. ;;
  14214. *)
  14215. ac_option=$1
  14216. ac_optarg=$2
  14217. ac_shift=shift
  14218. ;;
  14219. esac
  14220. case $ac_option in
  14221. # Handling of the options.
  14222. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14223. ac_cs_recheck=: ;;
  14224. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14225. $as_echo "$ac_cs_version"; exit ;;
  14226. --config | --confi | --conf | --con | --co | --c )
  14227. $as_echo "$ac_cs_config"; exit ;;
  14228. --debug | --debu | --deb | --de | --d | -d )
  14229. debug=: ;;
  14230. --file | --fil | --fi | --f )
  14231. $ac_shift
  14232. case $ac_optarg in
  14233. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14234. esac
  14235. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14236. ac_need_defaults=false;;
  14237. --header | --heade | --head | --hea )
  14238. $ac_shift
  14239. case $ac_optarg in
  14240. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14241. esac
  14242. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14243. ac_need_defaults=false;;
  14244. --he | --h)
  14245. # Conflict between --help and --header
  14246. as_fn_error "ambiguous option: \`$1'
  14247. Try \`$0 --help' for more information.";;
  14248. --help | --hel | -h )
  14249. $as_echo "$ac_cs_usage"; exit ;;
  14250. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14251. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14252. ac_cs_silent=: ;;
  14253. # This is an error.
  14254. -*) as_fn_error "unrecognized option: \`$1'
  14255. Try \`$0 --help' for more information." ;;
  14256. *) as_fn_append ac_config_targets " $1"
  14257. ac_need_defaults=false ;;
  14258. esac
  14259. shift
  14260. done
  14261. ac_configure_extra_args=
  14262. if $ac_cs_silent; then
  14263. exec 6>/dev/null
  14264. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14265. fi
  14266. _ACEOF
  14267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14268. if \$ac_cs_recheck; then
  14269. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14270. shift
  14271. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14272. CONFIG_SHELL='$SHELL'
  14273. export CONFIG_SHELL
  14274. exec "\$@"
  14275. fi
  14276. _ACEOF
  14277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14278. exec 5>>config.log
  14279. {
  14280. echo
  14281. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14282. ## Running $as_me. ##
  14283. _ASBOX
  14284. $as_echo "$ac_log"
  14285. } >&5
  14286. _ACEOF
  14287. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14288. #
  14289. # INIT-COMMANDS
  14290. #
  14291. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14292. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14293. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14294. # from automake < 1.5.
  14295. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14296. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14297. LINGUAS="${LINGUAS-%UNSET%}"
  14298. _ACEOF
  14299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14300. # Handling of arguments.
  14301. for ac_config_target in $ac_config_targets
  14302. do
  14303. case $ac_config_target in
  14304. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14305. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14306. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14307. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14308. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14309. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14310. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14311. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14312. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14313. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14314. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14315. esac
  14316. done
  14317. # If the user did not use the arguments to specify the items to instantiate,
  14318. # then the envvar interface is used. Set only those that are not.
  14319. # We use the long form for the default assignment because of an extremely
  14320. # bizarre bug on SunOS 4.1.3.
  14321. if $ac_need_defaults; then
  14322. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14323. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14324. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14325. fi
  14326. # Have a temporary directory for convenience. Make it in the build tree
  14327. # simply because there is no reason against having it here, and in addition,
  14328. # creating and moving files from /tmp can sometimes cause problems.
  14329. # Hook for its removal unless debugging.
  14330. # Note that there is a small window in which the directory will not be cleaned:
  14331. # after its creation but before its name has been assigned to `$tmp'.
  14332. $debug ||
  14333. {
  14334. tmp=
  14335. trap 'exit_status=$?
  14336. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14337. ' 0
  14338. trap 'as_fn_exit 1' 1 2 13 15
  14339. }
  14340. # Create a (secure) tmp directory for tmp files.
  14341. {
  14342. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14343. test -n "$tmp" && test -d "$tmp"
  14344. } ||
  14345. {
  14346. tmp=./conf$$-$RANDOM
  14347. (umask 077 && mkdir "$tmp")
  14348. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14349. # Set up the scripts for CONFIG_FILES section.
  14350. # No need to generate them if there are no CONFIG_FILES.
  14351. # This happens for instance with `./config.status config.h'.
  14352. if test -n "$CONFIG_FILES"; then
  14353. ac_cr=`echo X | tr X '\015'`
  14354. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14355. # But we know of no other shell where ac_cr would be empty at this
  14356. # point, so we can use a bashism as a fallback.
  14357. if test "x$ac_cr" = x; then
  14358. eval ac_cr=\$\'\\r\'
  14359. fi
  14360. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14361. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14362. ac_cs_awk_cr='\r'
  14363. else
  14364. ac_cs_awk_cr=$ac_cr
  14365. fi
  14366. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14367. _ACEOF
  14368. {
  14369. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14370. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14371. echo "_ACEOF"
  14372. } >conf$$subs.sh ||
  14373. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14374. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14375. ac_delim='%!_!# '
  14376. for ac_last_try in false false false false false :; do
  14377. . ./conf$$subs.sh ||
  14378. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14379. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14380. if test $ac_delim_n = $ac_delim_num; then
  14381. break
  14382. elif $ac_last_try; then
  14383. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14384. else
  14385. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14386. fi
  14387. done
  14388. rm -f conf$$subs.sh
  14389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14390. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14391. _ACEOF
  14392. sed -n '
  14393. h
  14394. s/^/S["/; s/!.*/"]=/
  14395. p
  14396. g
  14397. s/^[^!]*!//
  14398. :repl
  14399. t repl
  14400. s/'"$ac_delim"'$//
  14401. t delim
  14402. :nl
  14403. h
  14404. s/\(.\{148\}\)..*/\1/
  14405. t more1
  14406. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14407. p
  14408. n
  14409. b repl
  14410. :more1
  14411. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14412. p
  14413. g
  14414. s/.\{148\}//
  14415. t nl
  14416. :delim
  14417. h
  14418. s/\(.\{148\}\)..*/\1/
  14419. t more2
  14420. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14421. p
  14422. b
  14423. :more2
  14424. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14425. p
  14426. g
  14427. s/.\{148\}//
  14428. t delim
  14429. ' <conf$$subs.awk | sed '
  14430. /^[^""]/{
  14431. N
  14432. s/\n//
  14433. }
  14434. ' >>$CONFIG_STATUS || ac_write_fail=1
  14435. rm -f conf$$subs.awk
  14436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14437. _ACAWK
  14438. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14439. for (key in S) S_is_set[key] = 1
  14440. FS = ""
  14441. }
  14442. {
  14443. line = $ 0
  14444. nfields = split(line, field, "@")
  14445. substed = 0
  14446. len = length(field[1])
  14447. for (i = 2; i < nfields; i++) {
  14448. key = field[i]
  14449. keylen = length(key)
  14450. if (S_is_set[key]) {
  14451. value = S[key]
  14452. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14453. len += length(value) + length(field[++i])
  14454. substed = 1
  14455. } else
  14456. len += 1 + keylen
  14457. }
  14458. print line
  14459. }
  14460. _ACAWK
  14461. _ACEOF
  14462. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14463. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14464. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14465. else
  14466. cat
  14467. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14468. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14469. _ACEOF
  14470. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14471. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14472. # trailing colons and then remove the whole line if VPATH becomes empty
  14473. # (actually we leave an empty line to preserve line numbers).
  14474. if test "x$srcdir" = x.; then
  14475. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14476. s/:*\$(srcdir):*/:/
  14477. s/:*\${srcdir}:*/:/
  14478. s/:*@srcdir@:*/:/
  14479. s/^\([^=]*=[ ]*\):*/\1/
  14480. s/:*$//
  14481. s/^[^=]*=[ ]*$//
  14482. }'
  14483. fi
  14484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14485. fi # test -n "$CONFIG_FILES"
  14486. # Set up the scripts for CONFIG_HEADERS section.
  14487. # No need to generate them if there are no CONFIG_HEADERS.
  14488. # This happens for instance with `./config.status Makefile'.
  14489. if test -n "$CONFIG_HEADERS"; then
  14490. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14491. BEGIN {
  14492. _ACEOF
  14493. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14494. # here-document in config.status, that substitutes the proper values into
  14495. # config.h.in to produce config.h.
  14496. # Create a delimiter string that does not exist in confdefs.h, to ease
  14497. # handling of long lines.
  14498. ac_delim='%!_!# '
  14499. for ac_last_try in false false :; do
  14500. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14501. if test -z "$ac_t"; then
  14502. break
  14503. elif $ac_last_try; then
  14504. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14505. else
  14506. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14507. fi
  14508. done
  14509. # For the awk script, D is an array of macro values keyed by name,
  14510. # likewise P contains macro parameters if any. Preserve backslash
  14511. # newline sequences.
  14512. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14513. sed -n '
  14514. s/.\{148\}/&'"$ac_delim"'/g
  14515. t rset
  14516. :rset
  14517. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14518. t def
  14519. d
  14520. :def
  14521. s/\\$//
  14522. t bsnl
  14523. s/["\\]/\\&/g
  14524. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14525. D["\1"]=" \3"/p
  14526. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14527. d
  14528. :bsnl
  14529. s/["\\]/\\&/g
  14530. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14531. D["\1"]=" \3\\\\\\n"\\/p
  14532. t cont
  14533. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14534. t cont
  14535. d
  14536. :cont
  14537. n
  14538. s/.\{148\}/&'"$ac_delim"'/g
  14539. t clear
  14540. :clear
  14541. s/\\$//
  14542. t bsnlc
  14543. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14544. d
  14545. :bsnlc
  14546. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14547. b cont
  14548. ' <confdefs.h | sed '
  14549. s/'"$ac_delim"'/"\\\
  14550. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14551. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14552. for (key in D) D_is_set[key] = 1
  14553. FS = ""
  14554. }
  14555. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14556. line = \$ 0
  14557. split(line, arg, " ")
  14558. if (arg[1] == "#") {
  14559. defundef = arg[2]
  14560. mac1 = arg[3]
  14561. } else {
  14562. defundef = substr(arg[1], 2)
  14563. mac1 = arg[2]
  14564. }
  14565. split(mac1, mac2, "(") #)
  14566. macro = mac2[1]
  14567. prefix = substr(line, 1, index(line, defundef) - 1)
  14568. if (D_is_set[macro]) {
  14569. # Preserve the white space surrounding the "#".
  14570. print prefix "define", macro P[macro] D[macro]
  14571. next
  14572. } else {
  14573. # Replace #undef with comments. This is necessary, for example,
  14574. # in the case of _POSIX_SOURCE, which is predefined and required
  14575. # on some systems where configure will not decide to define it.
  14576. if (defundef == "undef") {
  14577. print "/*", prefix defundef, macro, "*/"
  14578. next
  14579. }
  14580. }
  14581. }
  14582. { print }
  14583. _ACAWK
  14584. _ACEOF
  14585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14586. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14587. fi # test -n "$CONFIG_HEADERS"
  14588. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14589. shift
  14590. for ac_tag
  14591. do
  14592. case $ac_tag in
  14593. :[FHLC]) ac_mode=$ac_tag; continue;;
  14594. esac
  14595. case $ac_mode$ac_tag in
  14596. :[FHL]*:*);;
  14597. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14598. :[FH]-) ac_tag=-:-;;
  14599. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14600. esac
  14601. ac_save_IFS=$IFS
  14602. IFS=:
  14603. set x $ac_tag
  14604. IFS=$ac_save_IFS
  14605. shift
  14606. ac_file=$1
  14607. shift
  14608. case $ac_mode in
  14609. :L) ac_source=$1;;
  14610. :[FH])
  14611. ac_file_inputs=
  14612. for ac_f
  14613. do
  14614. case $ac_f in
  14615. -) ac_f="$tmp/stdin";;
  14616. *) # Look for the file first in the build tree, then in the source tree
  14617. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14618. # because $ac_f cannot contain `:'.
  14619. test -f "$ac_f" ||
  14620. case $ac_f in
  14621. [\\/$]*) false;;
  14622. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14623. esac ||
  14624. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14625. esac
  14626. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14627. as_fn_append ac_file_inputs " '$ac_f'"
  14628. done
  14629. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14630. # use $as_me), people would be surprised to read:
  14631. # /* config.h. Generated by config.status. */
  14632. configure_input='Generated from '`
  14633. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14634. `' by configure.'
  14635. if test x"$ac_file" != x-; then
  14636. configure_input="$ac_file. $configure_input"
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14638. $as_echo "$as_me: creating $ac_file" >&6;}
  14639. fi
  14640. # Neutralize special characters interpreted by sed in replacement strings.
  14641. case $configure_input in #(
  14642. *\&* | *\|* | *\\* )
  14643. ac_sed_conf_input=`$as_echo "$configure_input" |
  14644. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14645. *) ac_sed_conf_input=$configure_input;;
  14646. esac
  14647. case $ac_tag in
  14648. *:-:* | *:-) cat >"$tmp/stdin" \
  14649. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14650. esac
  14651. ;;
  14652. esac
  14653. ac_dir=`$as_dirname -- "$ac_file" ||
  14654. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14655. X"$ac_file" : 'X\(//\)[^/]' \| \
  14656. X"$ac_file" : 'X\(//\)$' \| \
  14657. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14658. $as_echo X"$ac_file" |
  14659. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14660. s//\1/
  14661. q
  14662. }
  14663. /^X\(\/\/\)[^/].*/{
  14664. s//\1/
  14665. q
  14666. }
  14667. /^X\(\/\/\)$/{
  14668. s//\1/
  14669. q
  14670. }
  14671. /^X\(\/\).*/{
  14672. s//\1/
  14673. q
  14674. }
  14675. s/.*/./; q'`
  14676. as_dir="$ac_dir"; as_fn_mkdir_p
  14677. ac_builddir=.
  14678. case "$ac_dir" in
  14679. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14680. *)
  14681. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14682. # A ".." for each directory in $ac_dir_suffix.
  14683. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14684. case $ac_top_builddir_sub in
  14685. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14686. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14687. esac ;;
  14688. esac
  14689. ac_abs_top_builddir=$ac_pwd
  14690. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14691. # for backward compatibility:
  14692. ac_top_builddir=$ac_top_build_prefix
  14693. case $srcdir in
  14694. .) # We are building in place.
  14695. ac_srcdir=.
  14696. ac_top_srcdir=$ac_top_builddir_sub
  14697. ac_abs_top_srcdir=$ac_pwd ;;
  14698. [\\/]* | ?:[\\/]* ) # Absolute name.
  14699. ac_srcdir=$srcdir$ac_dir_suffix;
  14700. ac_top_srcdir=$srcdir
  14701. ac_abs_top_srcdir=$srcdir ;;
  14702. *) # Relative name.
  14703. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14704. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14705. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14706. esac
  14707. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14708. case $ac_mode in
  14709. :F)
  14710. #
  14711. # CONFIG_FILE
  14712. #
  14713. case $INSTALL in
  14714. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14715. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14716. esac
  14717. ac_MKDIR_P=$MKDIR_P
  14718. case $MKDIR_P in
  14719. [\\/$]* | ?:[\\/]* ) ;;
  14720. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14721. esac
  14722. _ACEOF
  14723. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14724. # If the template does not know about datarootdir, expand it.
  14725. # FIXME: This hack should be removed a few years after 2.60.
  14726. ac_datarootdir_hack=; ac_datarootdir_seen=
  14727. ac_sed_dataroot='
  14728. /datarootdir/ {
  14729. p
  14730. q
  14731. }
  14732. /@datadir@/p
  14733. /@docdir@/p
  14734. /@infodir@/p
  14735. /@localedir@/p
  14736. /@mandir@/p'
  14737. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14738. *datarootdir*) ac_datarootdir_seen=yes;;
  14739. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14741. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14742. _ACEOF
  14743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14744. ac_datarootdir_hack='
  14745. s&@datadir@&$datadir&g
  14746. s&@docdir@&$docdir&g
  14747. s&@infodir@&$infodir&g
  14748. s&@localedir@&$localedir&g
  14749. s&@mandir@&$mandir&g
  14750. s&\\\${datarootdir}&$datarootdir&g' ;;
  14751. esac
  14752. _ACEOF
  14753. # Neutralize VPATH when `$srcdir' = `.'.
  14754. # Shell code in configure.ac might set extrasub.
  14755. # FIXME: do we really want to maintain this feature?
  14756. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14757. ac_sed_extra="$ac_vpsub
  14758. $extrasub
  14759. _ACEOF
  14760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14761. :t
  14762. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14763. s|@configure_input@|$ac_sed_conf_input|;t t
  14764. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14765. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14766. s&@srcdir@&$ac_srcdir&;t t
  14767. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14768. s&@top_srcdir@&$ac_top_srcdir&;t t
  14769. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14770. s&@builddir@&$ac_builddir&;t t
  14771. s&@abs_builddir@&$ac_abs_builddir&;t t
  14772. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14773. s&@INSTALL@&$ac_INSTALL&;t t
  14774. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14775. $ac_datarootdir_hack
  14776. "
  14777. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14778. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14779. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14780. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14781. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14783. which seems to be undefined. Please make sure it is defined." >&5
  14784. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14785. which seems to be undefined. Please make sure it is defined." >&2;}
  14786. rm -f "$tmp/stdin"
  14787. case $ac_file in
  14788. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14789. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14790. esac \
  14791. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14792. ;;
  14793. :H)
  14794. #
  14795. # CONFIG_HEADER
  14796. #
  14797. if test x"$ac_file" != x-; then
  14798. {
  14799. $as_echo "/* $configure_input */" \
  14800. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14801. } >"$tmp/config.h" \
  14802. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14803. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14805. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14806. else
  14807. rm -f "$ac_file"
  14808. mv "$tmp/config.h" "$ac_file" \
  14809. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14810. fi
  14811. else
  14812. $as_echo "/* $configure_input */" \
  14813. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14814. || as_fn_error "could not create -" "$LINENO" 5
  14815. fi
  14816. # Compute "$ac_file"'s index in $config_headers.
  14817. _am_arg="$ac_file"
  14818. _am_stamp_count=1
  14819. for _am_header in $config_headers :; do
  14820. case $_am_header in
  14821. $_am_arg | $_am_arg:* )
  14822. break ;;
  14823. * )
  14824. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14825. esac
  14826. done
  14827. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14828. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14829. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14830. X"$_am_arg" : 'X\(//\)$' \| \
  14831. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14832. $as_echo X"$_am_arg" |
  14833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14834. s//\1/
  14835. q
  14836. }
  14837. /^X\(\/\/\)[^/].*/{
  14838. s//\1/
  14839. q
  14840. }
  14841. /^X\(\/\/\)$/{
  14842. s//\1/
  14843. q
  14844. }
  14845. /^X\(\/\).*/{
  14846. s//\1/
  14847. q
  14848. }
  14849. s/.*/./; q'`/stamp-h$_am_stamp_count
  14850. ;;
  14851. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14852. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14853. ;;
  14854. esac
  14855. case $ac_file$ac_mode in
  14856. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14857. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14858. # are listed without --file. Let's play safe and only enable the eval
  14859. # if we detect the quoting.
  14860. case $CONFIG_FILES in
  14861. *\'*) eval set x "$CONFIG_FILES" ;;
  14862. *) set x $CONFIG_FILES ;;
  14863. esac
  14864. shift
  14865. for mf
  14866. do
  14867. # Strip MF so we end up with the name of the file.
  14868. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14869. # Check whether this is an Automake generated Makefile or not.
  14870. # We used to match only the files named `Makefile.in', but
  14871. # some people rename them; so instead we look at the file content.
  14872. # Grep'ing the first line is not enough: some people post-process
  14873. # each Makefile.in and add a new line on top of each file to say so.
  14874. # Grep'ing the whole file is not good either: AIX grep has a line
  14875. # limit of 2048, but all sed's we know have understand at least 4000.
  14876. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14877. dirpart=`$as_dirname -- "$mf" ||
  14878. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14879. X"$mf" : 'X\(//\)[^/]' \| \
  14880. X"$mf" : 'X\(//\)$' \| \
  14881. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14882. $as_echo X"$mf" |
  14883. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14884. s//\1/
  14885. q
  14886. }
  14887. /^X\(\/\/\)[^/].*/{
  14888. s//\1/
  14889. q
  14890. }
  14891. /^X\(\/\/\)$/{
  14892. s//\1/
  14893. q
  14894. }
  14895. /^X\(\/\).*/{
  14896. s//\1/
  14897. q
  14898. }
  14899. s/.*/./; q'`
  14900. else
  14901. continue
  14902. fi
  14903. # Extract the definition of DEPDIR, am__include, and am__quote
  14904. # from the Makefile without running `make'.
  14905. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14906. test -z "$DEPDIR" && continue
  14907. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14908. test -z "am__include" && continue
  14909. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14910. # When using ansi2knr, U may be empty or an underscore; expand it
  14911. U=`sed -n 's/^U = //p' < "$mf"`
  14912. # Find all dependency output files, they are included files with
  14913. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14914. # simplest approach to changing $(DEPDIR) to its actual value in the
  14915. # expansion.
  14916. for file in `sed -n "
  14917. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14918. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14919. # Make sure the directory exists.
  14920. test -f "$dirpart/$file" && continue
  14921. fdir=`$as_dirname -- "$file" ||
  14922. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14923. X"$file" : 'X\(//\)[^/]' \| \
  14924. X"$file" : 'X\(//\)$' \| \
  14925. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14926. $as_echo X"$file" |
  14927. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14928. s//\1/
  14929. q
  14930. }
  14931. /^X\(\/\/\)[^/].*/{
  14932. s//\1/
  14933. q
  14934. }
  14935. /^X\(\/\/\)$/{
  14936. s//\1/
  14937. q
  14938. }
  14939. /^X\(\/\).*/{
  14940. s//\1/
  14941. q
  14942. }
  14943. s/.*/./; q'`
  14944. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14945. # echo "creating $dirpart/$file"
  14946. echo '# dummy' > "$dirpart/$file"
  14947. done
  14948. done
  14949. }
  14950. ;;
  14951. "po-directories":C)
  14952. for ac_file in $CONFIG_FILES; do
  14953. # Support "outfile[:infile[:infile...]]"
  14954. case "$ac_file" in
  14955. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14956. esac
  14957. # PO directories have a Makefile.in generated from Makefile.in.in.
  14958. case "$ac_file" in */Makefile.in)
  14959. # Adjust a relative srcdir.
  14960. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14961. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14962. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14963. # In autoconf-2.13 it is called $ac_given_srcdir.
  14964. # In autoconf-2.50 it is called $srcdir.
  14965. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14966. case "$ac_given_srcdir" in
  14967. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14968. /*) top_srcdir="$ac_given_srcdir" ;;
  14969. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14970. esac
  14971. # Treat a directory as a PO directory if and only if it has a
  14972. # POTFILES.in file. This allows packages to have multiple PO
  14973. # directories under different names or in different locations.
  14974. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14975. rm -f "$ac_dir/POTFILES"
  14976. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14977. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14978. POMAKEFILEDEPS="POTFILES.in"
  14979. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14980. # on $ac_dir but don't depend on user-specified configuration
  14981. # parameters.
  14982. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14983. # The LINGUAS file contains the set of available languages.
  14984. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14985. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14986. fi
  14987. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14988. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14989. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14990. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14991. else
  14992. # The set of available languages was given in configure.in.
  14993. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14994. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14995. fi
  14996. # Compute POFILES
  14997. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14998. # Compute UPDATEPOFILES
  14999. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  15000. # Compute DUMMYPOFILES
  15001. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  15002. # Compute GMOFILES
  15003. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15004. case "$ac_given_srcdir" in
  15005. .) srcdirpre= ;;
  15006. *) srcdirpre='$(srcdir)/' ;;
  15007. esac
  15008. POFILES=
  15009. UPDATEPOFILES=
  15010. DUMMYPOFILES=
  15011. GMOFILES=
  15012. for lang in $ALL_LINGUAS; do
  15013. POFILES="$POFILES $srcdirpre$lang.po"
  15014. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15015. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15016. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15017. done
  15018. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15019. # environment variable.
  15020. INST_LINGUAS=
  15021. if test -n "$ALL_LINGUAS"; then
  15022. for presentlang in $ALL_LINGUAS; do
  15023. useit=no
  15024. if test "%UNSET%" != "$LINGUAS"; then
  15025. desiredlanguages="$LINGUAS"
  15026. else
  15027. desiredlanguages="$ALL_LINGUAS"
  15028. fi
  15029. for desiredlang in $desiredlanguages; do
  15030. # Use the presentlang catalog if desiredlang is
  15031. # a. equal to presentlang, or
  15032. # b. a variant of presentlang (because in this case,
  15033. # presentlang can be used as a fallback for messages
  15034. # which are not translated in the desiredlang catalog).
  15035. case "$desiredlang" in
  15036. "$presentlang"*) useit=yes;;
  15037. esac
  15038. done
  15039. if test $useit = yes; then
  15040. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15041. fi
  15042. done
  15043. fi
  15044. CATALOGS=
  15045. if test -n "$INST_LINGUAS"; then
  15046. for lang in $INST_LINGUAS; do
  15047. CATALOGS="$CATALOGS $lang.gmo"
  15048. done
  15049. fi
  15050. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15051. 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"
  15052. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15053. if test -f "$f"; then
  15054. case "$f" in
  15055. *.orig | *.bak | *~) ;;
  15056. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15057. esac
  15058. fi
  15059. done
  15060. fi
  15061. ;;
  15062. esac
  15063. done ;;
  15064. esac
  15065. done # for ac_tag
  15066. as_fn_exit 0
  15067. _ACEOF
  15068. ac_clean_files=$ac_clean_files_save
  15069. test $ac_write_fail = 0 ||
  15070. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15071. # configure is writing to config.log, and then calls config.status.
  15072. # config.status does its own redirection, appending to config.log.
  15073. # Unfortunately, on DOS this fails, as config.log is still kept open
  15074. # by configure, so config.status won't be able to write to it; its
  15075. # output is simply discarded. So we exec the FD to /dev/null,
  15076. # effectively closing config.log, so it can be properly (re)opened and
  15077. # appended to by config.status. When coming back to configure, we
  15078. # need to make the FD available again.
  15079. if test "$no_create" != yes; then
  15080. ac_cs_success=:
  15081. ac_config_status_args=
  15082. test "$silent" = yes &&
  15083. ac_config_status_args="$ac_config_status_args --quiet"
  15084. exec 5>/dev/null
  15085. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15086. exec 5>>config.log
  15087. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15088. # would make configure fail if this is the last instruction.
  15089. $ac_cs_success || as_fn_exit $?
  15090. fi
  15091. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15093. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15094. fi
  15095. echo " "
  15096. echo "Build: $build"
  15097. echo "Target: $target"
  15098. echo "Install prefix: $prefix"
  15099. echo "CXXFLAGS: $CXXFLAGS"
  15100. echo "CFLAGS: $CFLAGS"
  15101. echo "CPPFLAGS: $CPPFLAGS"
  15102. echo "LDFLAGS: $LDFLAGS"
  15103. echo "LIBS: $LIBS"
  15104. echo "SQLite3: $have_sqlite3"
  15105. echo "GnuTLS: $have_libgnutls"
  15106. echo "OpenSSL: $have_openssl"
  15107. echo "CA Bundle: $ca_bundle"
  15108. echo "LibXML2: $have_libxml2"
  15109. echo "LibExpat: $have_libexpat"
  15110. echo "LibCares: $have_libcares"
  15111. echo "Libz: $have_libz"
  15112. echo "Epoll: $have_epoll"
  15113. echo "Bittorrent: $enable_bittorrent"
  15114. echo "Metalink: $enable_metalink"
  15115. echo "XML-RPC: $enable_xml_rpc"