configure 529 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="import/memmem.c"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. # include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. # include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"
  542. ac_func_list=
  543. ac_header_list=
  544. gl_fnmatch_required=POSIX
  545. ac_subst_vars='am__EXEEXT_FALSE
  546. am__EXEEXT_TRUE
  547. gltests_LTLIBOBJS
  548. gltests_LIBOBJS
  549. gl_LTLIBOBJS
  550. gl_LIBOBJS
  551. LTLIBOBJS
  552. LIBOBJS
  553. LN_S
  554. am__fastdepCC_FALSE
  555. am__fastdepCC_TRUE
  556. CCDEPMODE
  557. AMDEPBACKSLASH
  558. AMDEP_FALSE
  559. AMDEP_TRUE
  560. am__quote
  561. am__include
  562. DEPDIR
  563. am__untar
  564. am__tar
  565. AMTAR
  566. am__leading_dot
  567. SET_MAKE
  568. AWK
  569. mkdir_p
  570. INSTALL_STRIP_PROGRAM
  571. STRIP
  572. install_sh
  573. MAKEINFO
  574. AUTOHEADER
  575. AUTOMAKE
  576. AUTOCONF
  577. ACLOCAL
  578. VERSION
  579. PACKAGE
  580. CYGPATH_W
  581. am__isrc
  582. INSTALL_DATA
  583. INSTALL_SCRIPT
  584. INSTALL_PROGRAM
  585. LIBGNU_LTLIBDEPS
  586. LIBGNU_LIBDEPS
  587. gltests_WITNESS
  588. REPLACE_TOWLOWER
  589. REPLACE_ISWCNTRL
  590. HAVE_WCTYPE_H
  591. NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
  592. NEXT_WCTYPE_H
  593. HAVE_ISWCNTRL
  594. REPLACE_ISWBLANK
  595. HAVE_WCTRANS_T
  596. HAVE_WCTYPE_T
  597. HAVE_ISWBLANK
  598. GNULIB_TOWCTRANS
  599. GNULIB_WCTRANS
  600. GNULIB_ISWCTYPE
  601. GNULIB_WCTYPE
  602. GNULIB_ISWBLANK
  603. HAVE_WINT_T
  604. HAVE_FEATURES_H
  605. NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
  606. NEXT_WCHAR_H
  607. HAVE_UNISTD_H
  608. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
  609. NEXT_UNISTD_H
  610. UNISTD_H_DEFINES_STRUCT_TIMESPEC
  611. PTHREAD_H_DEFINES_STRUCT_TIMESPEC
  612. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
  613. TIME_H_DEFINES_STRUCT_TIMESPEC
  614. NEXT_AS_FIRST_DIRECTIVE_TIME_H
  615. NEXT_TIME_H
  616. REPLACE_LOCALTIME
  617. REPLACE_GMTIME
  618. REPLACE_TIMEGM
  619. REPLACE_NANOSLEEP
  620. REPLACE_MKTIME
  621. REPLACE_LOCALTIME_R
  622. HAVE_TIMEGM
  623. HAVE_STRPTIME
  624. HAVE_NANOSLEEP
  625. HAVE_DECL_LOCALTIME_R
  626. GNULIB_TIME_RZ
  627. GNULIB_TIME_R
  628. GNULIB_TIMEGM
  629. GNULIB_STRPTIME
  630. GNULIB_NANOSLEEP
  631. GNULIB_MKTIME
  632. WINDOWS_64_BIT_OFF_T
  633. NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
  634. NEXT_SYS_TYPES_H
  635. MKDIR_P
  636. WINDOWS_64_BIT_ST_SIZE
  637. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
  638. NEXT_SYS_STAT_H
  639. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  640. NEXT_STRING_H
  641. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
  642. NEXT_STDLIB_H
  643. NEXT_AS_FIRST_DIRECTIVE_STDIO_H
  644. NEXT_STDIO_H
  645. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  646. NEXT_STDDEF_H
  647. GL_GENERATE_STDDEF_H_FALSE
  648. GL_GENERATE_STDDEF_H_TRUE
  649. STDDEF_H
  650. HAVE_WCHAR_T
  651. HAVE_MAX_ALIGN_T
  652. REPLACE_NULL
  653. HAVE__BOOL
  654. GL_GENERATE_STDBOOL_H_FALSE
  655. GL_GENERATE_STDBOOL_H_TRUE
  656. STDBOOL_H
  657. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  658. NEXT_SIGNAL_H
  659. REPLACE_RAISE
  660. REPLACE_PTHREAD_SIGMASK
  661. HAVE_SIGHANDLER_T
  662. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  663. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  664. HAVE_SIGACTION
  665. HAVE_SIGINFO_T
  666. HAVE_SIGSET_T
  667. HAVE_RAISE
  668. HAVE_PTHREAD_SIGMASK
  669. HAVE_POSIX_SIGNALBLOCKING
  670. GNULIB_SIGACTION
  671. GNULIB_SIGPROCMASK
  672. GNULIB_SIGNAL_H_SIGPIPE
  673. GNULIB_RAISE
  674. GNULIB_PTHREAD_SIGMASK
  675. REPLACE_VSPRINTF
  676. REPLACE_VSNPRINTF
  677. REPLACE_VPRINTF
  678. REPLACE_VFPRINTF
  679. REPLACE_VDPRINTF
  680. REPLACE_VASPRINTF
  681. REPLACE_TMPFILE
  682. REPLACE_STDIO_WRITE_FUNCS
  683. REPLACE_STDIO_READ_FUNCS
  684. REPLACE_SPRINTF
  685. REPLACE_SNPRINTF
  686. REPLACE_RENAMEAT
  687. REPLACE_RENAME
  688. REPLACE_REMOVE
  689. REPLACE_PRINTF
  690. REPLACE_POPEN
  691. REPLACE_PERROR
  692. REPLACE_OBSTACK_PRINTF
  693. REPLACE_GETLINE
  694. REPLACE_GETDELIM
  695. REPLACE_FTELLO
  696. REPLACE_FTELL
  697. REPLACE_FSEEKO
  698. REPLACE_FSEEK
  699. REPLACE_FREOPEN
  700. REPLACE_FPURGE
  701. REPLACE_FPRINTF
  702. REPLACE_FOPEN
  703. REPLACE_FFLUSH
  704. REPLACE_FDOPEN
  705. REPLACE_FCLOSE
  706. REPLACE_DPRINTF
  707. HAVE_VDPRINTF
  708. HAVE_VASPRINTF
  709. HAVE_RENAMEAT
  710. HAVE_POPEN
  711. HAVE_PCLOSE
  712. HAVE_FTELLO
  713. HAVE_FSEEKO
  714. HAVE_DPRINTF
  715. HAVE_DECL_VSNPRINTF
  716. HAVE_DECL_SNPRINTF
  717. HAVE_DECL_OBSTACK_PRINTF
  718. HAVE_DECL_GETLINE
  719. HAVE_DECL_GETDELIM
  720. HAVE_DECL_FTELLO
  721. HAVE_DECL_FSEEKO
  722. HAVE_DECL_FPURGE
  723. GNULIB_VSPRINTF_POSIX
  724. GNULIB_VSNPRINTF
  725. GNULIB_VPRINTF_POSIX
  726. GNULIB_VPRINTF
  727. GNULIB_VFPRINTF_POSIX
  728. GNULIB_VFPRINTF
  729. GNULIB_VDPRINTF
  730. GNULIB_VSCANF
  731. GNULIB_VFSCANF
  732. GNULIB_VASPRINTF
  733. GNULIB_TMPFILE
  734. GNULIB_STDIO_H_SIGPIPE
  735. GNULIB_STDIO_H_NONBLOCKING
  736. GNULIB_SPRINTF_POSIX
  737. GNULIB_SNPRINTF
  738. GNULIB_SCANF
  739. GNULIB_RENAMEAT
  740. GNULIB_RENAME
  741. GNULIB_REMOVE
  742. GNULIB_PUTS
  743. GNULIB_PUTCHAR
  744. GNULIB_PUTC
  745. GNULIB_PRINTF_POSIX
  746. GNULIB_PRINTF
  747. GNULIB_POPEN
  748. GNULIB_PERROR
  749. GNULIB_PCLOSE
  750. GNULIB_OBSTACK_PRINTF_POSIX
  751. GNULIB_OBSTACK_PRINTF
  752. GNULIB_GETLINE
  753. GNULIB_GETDELIM
  754. GNULIB_GETCHAR
  755. GNULIB_GETC
  756. GNULIB_FWRITE
  757. GNULIB_FTELLO
  758. GNULIB_FTELL
  759. GNULIB_FSEEKO
  760. GNULIB_FSEEK
  761. GNULIB_FSCANF
  762. GNULIB_FREOPEN
  763. GNULIB_FREAD
  764. GNULIB_FPUTS
  765. GNULIB_FPUTC
  766. GNULIB_FPURGE
  767. GNULIB_FPRINTF_POSIX
  768. GNULIB_FPRINTF
  769. GNULIB_FOPEN
  770. GNULIB_FGETS
  771. GNULIB_FGETC
  772. GNULIB_FFLUSH
  773. GNULIB_FDOPEN
  774. GNULIB_FCLOSE
  775. GNULIB_DPRINTF
  776. UNDEFINE_STRTOK_R
  777. REPLACE_STRTOK_R
  778. REPLACE_STRSIGNAL
  779. REPLACE_STRNLEN
  780. REPLACE_STRNDUP
  781. REPLACE_STRNCAT
  782. REPLACE_STRERROR_R
  783. REPLACE_STRERROR
  784. REPLACE_STRCHRNUL
  785. REPLACE_STRCASESTR
  786. REPLACE_STRSTR
  787. REPLACE_STRDUP
  788. REPLACE_STPNCPY
  789. REPLACE_MEMMEM
  790. REPLACE_MEMCHR
  791. HAVE_STRVERSCMP
  792. HAVE_DECL_STRSIGNAL
  793. HAVE_DECL_STRERROR_R
  794. HAVE_DECL_STRTOK_R
  795. HAVE_STRCASESTR
  796. HAVE_STRSEP
  797. HAVE_STRPBRK
  798. HAVE_DECL_STRNLEN
  799. HAVE_DECL_STRNDUP
  800. HAVE_DECL_STRDUP
  801. HAVE_STRCHRNUL
  802. HAVE_STPNCPY
  803. HAVE_STPCPY
  804. HAVE_RAWMEMCHR
  805. HAVE_DECL_MEMRCHR
  806. HAVE_MEMPCPY
  807. HAVE_DECL_MEMMEM
  808. HAVE_MEMCHR
  809. HAVE_FFSLL
  810. HAVE_FFSL
  811. HAVE_MBSLEN
  812. GNULIB_STRVERSCMP
  813. GNULIB_STRSIGNAL
  814. GNULIB_STRERROR_R
  815. GNULIB_STRERROR
  816. GNULIB_MBSTOK_R
  817. GNULIB_MBSSEP
  818. GNULIB_MBSSPN
  819. GNULIB_MBSPBRK
  820. GNULIB_MBSCSPN
  821. GNULIB_MBSCASESTR
  822. GNULIB_MBSPCASECMP
  823. GNULIB_MBSNCASECMP
  824. GNULIB_MBSCASECMP
  825. GNULIB_MBSSTR
  826. GNULIB_MBSRCHR
  827. GNULIB_MBSCHR
  828. GNULIB_MBSNLEN
  829. GNULIB_MBSLEN
  830. GNULIB_STRTOK_R
  831. GNULIB_STRCASESTR
  832. GNULIB_STRSTR
  833. GNULIB_STRSEP
  834. GNULIB_STRPBRK
  835. GNULIB_STRNLEN
  836. GNULIB_STRNDUP
  837. GNULIB_STRNCAT
  838. GNULIB_STRDUP
  839. GNULIB_STRCHRNUL
  840. GNULIB_STPNCPY
  841. GNULIB_STPCPY
  842. GNULIB_RAWMEMCHR
  843. GNULIB_MEMRCHR
  844. GNULIB_MEMPCPY
  845. GNULIB_MEMMEM
  846. GNULIB_MEMCHR
  847. GNULIB_FFSLL
  848. GNULIB_FFSL
  849. LOCALE_FR
  850. LOCALE_FR_UTF8
  851. LOCALE_ZH_CN
  852. LOCALE_JA
  853. REPLACE_WCSWIDTH
  854. REPLACE_WCWIDTH
  855. REPLACE_WCSNRTOMBS
  856. REPLACE_WCSRTOMBS
  857. REPLACE_WCRTOMB
  858. REPLACE_MBSNRTOWCS
  859. REPLACE_MBSRTOWCS
  860. REPLACE_MBRLEN
  861. REPLACE_MBRTOWC
  862. REPLACE_MBSINIT
  863. REPLACE_WCTOB
  864. REPLACE_BTOWC
  865. REPLACE_MBSTATE_T
  866. HAVE_DECL_WCWIDTH
  867. HAVE_DECL_WCTOB
  868. HAVE_WCSWIDTH
  869. HAVE_WCSTOK
  870. HAVE_WCSSTR
  871. HAVE_WCSPBRK
  872. HAVE_WCSSPN
  873. HAVE_WCSCSPN
  874. HAVE_WCSRCHR
  875. HAVE_WCSCHR
  876. HAVE_WCSDUP
  877. HAVE_WCSXFRM
  878. HAVE_WCSCOLL
  879. HAVE_WCSNCASECMP
  880. HAVE_WCSCASECMP
  881. HAVE_WCSNCMP
  882. HAVE_WCSCMP
  883. HAVE_WCSNCAT
  884. HAVE_WCSCAT
  885. HAVE_WCPNCPY
  886. HAVE_WCSNCPY
  887. HAVE_WCPCPY
  888. HAVE_WCSCPY
  889. HAVE_WCSNLEN
  890. HAVE_WCSLEN
  891. HAVE_WMEMSET
  892. HAVE_WMEMMOVE
  893. HAVE_WMEMCPY
  894. HAVE_WMEMCMP
  895. HAVE_WMEMCHR
  896. HAVE_WCSNRTOMBS
  897. HAVE_WCSRTOMBS
  898. HAVE_WCRTOMB
  899. HAVE_MBSNRTOWCS
  900. HAVE_MBSRTOWCS
  901. HAVE_MBRLEN
  902. HAVE_MBRTOWC
  903. HAVE_MBSINIT
  904. HAVE_BTOWC
  905. GNULIB_WCSWIDTH
  906. GNULIB_WCSTOK
  907. GNULIB_WCSSTR
  908. GNULIB_WCSPBRK
  909. GNULIB_WCSSPN
  910. GNULIB_WCSCSPN
  911. GNULIB_WCSRCHR
  912. GNULIB_WCSCHR
  913. GNULIB_WCSDUP
  914. GNULIB_WCSXFRM
  915. GNULIB_WCSCOLL
  916. GNULIB_WCSNCASECMP
  917. GNULIB_WCSCASECMP
  918. GNULIB_WCSNCMP
  919. GNULIB_WCSCMP
  920. GNULIB_WCSNCAT
  921. GNULIB_WCSCAT
  922. GNULIB_WCPNCPY
  923. GNULIB_WCSNCPY
  924. GNULIB_WCPCPY
  925. GNULIB_WCSCPY
  926. GNULIB_WCSNLEN
  927. GNULIB_WCSLEN
  928. GNULIB_WMEMSET
  929. GNULIB_WMEMMOVE
  930. GNULIB_WMEMCPY
  931. GNULIB_WMEMCMP
  932. GNULIB_WMEMCHR
  933. GNULIB_WCWIDTH
  934. GNULIB_WCSNRTOMBS
  935. GNULIB_WCSRTOMBS
  936. GNULIB_WCRTOMB
  937. GNULIB_MBSNRTOWCS
  938. GNULIB_MBSRTOWCS
  939. GNULIB_MBRLEN
  940. GNULIB_MBRTOWC
  941. GNULIB_MBSINIT
  942. GNULIB_WCTOB
  943. GNULIB_BTOWC
  944. NEXT_AS_FIRST_DIRECTIVE_MATH_H
  945. NEXT_MATH_H
  946. REPLACE_UTIMENSAT
  947. REPLACE_STAT
  948. REPLACE_MKNOD
  949. REPLACE_MKFIFO
  950. REPLACE_MKDIR
  951. REPLACE_LSTAT
  952. REPLACE_FUTIMENS
  953. REPLACE_FSTATAT
  954. REPLACE_FSTAT
  955. HAVE_UTIMENSAT
  956. HAVE_MKNODAT
  957. HAVE_MKNOD
  958. HAVE_MKFIFOAT
  959. HAVE_MKFIFO
  960. HAVE_MKDIRAT
  961. HAVE_LSTAT
  962. HAVE_LCHMOD
  963. HAVE_FUTIMENS
  964. HAVE_FSTATAT
  965. HAVE_FCHMODAT
  966. GNULIB_UTIMENSAT
  967. GNULIB_STAT
  968. GNULIB_MKNODAT
  969. GNULIB_MKNOD
  970. GNULIB_MKFIFOAT
  971. GNULIB_MKFIFO
  972. GNULIB_MKDIRAT
  973. GNULIB_LSTAT
  974. GNULIB_LCHMOD
  975. GNULIB_FUTIMENS
  976. GNULIB_FSTATAT
  977. GNULIB_FSTAT
  978. GNULIB_FCHMODAT
  979. LOCALCHARSET_TESTS_ENVIRONMENT
  980. GLIBC21
  981. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
  982. NEXT_INTTYPES_H
  983. UINT64_MAX_EQ_ULONG_MAX
  984. UINT32_MAX_LT_UINTMAX_MAX
  985. PRIPTR_PREFIX
  986. PRI_MACROS_BROKEN
  987. INT64_MAX_EQ_LONG_MAX
  988. INT32_MAX_LT_INTMAX_MAX
  989. REPLACE_STRTOUMAX
  990. REPLACE_STRTOIMAX
  991. HAVE_DECL_STRTOUMAX
  992. HAVE_DECL_STRTOIMAX
  993. HAVE_DECL_IMAXDIV
  994. HAVE_DECL_IMAXABS
  995. GNULIB_STRTOUMAX
  996. GNULIB_STRTOIMAX
  997. GNULIB_IMAXDIV
  998. GNULIB_IMAXABS
  999. GL_GENERATE_STDINT_H_FALSE
  1000. GL_GENERATE_STDINT_H_TRUE
  1001. STDINT_H
  1002. WINT_T_SUFFIX
  1003. WCHAR_T_SUFFIX
  1004. SIG_ATOMIC_T_SUFFIX
  1005. SIZE_T_SUFFIX
  1006. PTRDIFF_T_SUFFIX
  1007. HAVE_SIGNED_WINT_T
  1008. HAVE_SIGNED_WCHAR_T
  1009. HAVE_SIGNED_SIG_ATOMIC_T
  1010. BITSIZEOF_WINT_T
  1011. BITSIZEOF_WCHAR_T
  1012. BITSIZEOF_SIG_ATOMIC_T
  1013. BITSIZEOF_SIZE_T
  1014. BITSIZEOF_PTRDIFF_T
  1015. APPLE_UNIVERSAL_BUILD
  1016. HAVE_SYS_BITYPES_H
  1017. HAVE_SYS_INTTYPES_H
  1018. HAVE_STDINT_H
  1019. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  1020. NEXT_STDINT_H
  1021. HAVE_SYS_TYPES_H
  1022. HAVE_INTTYPES_H
  1023. HAVE_WCHAR_H
  1024. HAVE_UNSIGNED_LONG_LONG_INT
  1025. HAVE_LONG_LONG_INT
  1026. HAVE_WINSOCK2_H
  1027. NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
  1028. NEXT_SYS_TIME_H
  1029. REPLACE_STRUCT_TIMEVAL
  1030. REPLACE_GETTIMEOFDAY
  1031. HAVE_TIMEZONE_T
  1032. HAVE_SYS_TIME_H
  1033. HAVE_STRUCT_TIMEVAL
  1034. HAVE_GETTIMEOFDAY
  1035. GNULIB_GETTIMEOFDAY
  1036. FREXPL_LIBM
  1037. HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
  1038. FREXP_LIBM
  1039. REPLACE_TRUNCL
  1040. REPLACE_TRUNCF
  1041. REPLACE_TRUNC
  1042. REPLACE_SQRTL
  1043. REPLACE_SIGNBIT_USING_GCC
  1044. REPLACE_SIGNBIT
  1045. REPLACE_ROUNDL
  1046. REPLACE_ROUNDF
  1047. REPLACE_ROUND
  1048. REPLACE_REMAINDERL
  1049. REPLACE_REMAINDERF
  1050. REPLACE_REMAINDER
  1051. REPLACE_NAN
  1052. REPLACE_MODFL
  1053. REPLACE_MODFF
  1054. REPLACE_MODF
  1055. REPLACE_LOGBL
  1056. REPLACE_LOGBF
  1057. REPLACE_LOGB
  1058. REPLACE_LOG2L
  1059. REPLACE_LOG2F
  1060. REPLACE_LOG2
  1061. REPLACE_LOG1PL
  1062. REPLACE_LOG1PF
  1063. REPLACE_LOG1P
  1064. REPLACE_LOG10L
  1065. REPLACE_LOG10F
  1066. REPLACE_LOG10
  1067. REPLACE_LOGL
  1068. REPLACE_LOGF
  1069. REPLACE_LOG
  1070. REPLACE_LDEXPL
  1071. REPLACE_ISNAN
  1072. REPLACE_ISINF
  1073. REPLACE_ISFINITE
  1074. REPLACE_ILOGBF
  1075. REPLACE_ILOGB
  1076. REPLACE_HYPOTL
  1077. REPLACE_HYPOTF
  1078. REPLACE_HYPOT
  1079. REPLACE_HUGE_VAL
  1080. REPLACE_FREXPL
  1081. REPLACE_FREXP
  1082. REPLACE_FREXPF
  1083. REPLACE_FMODL
  1084. REPLACE_FMODF
  1085. REPLACE_FMOD
  1086. REPLACE_FMAL
  1087. REPLACE_FMAF
  1088. REPLACE_FMA
  1089. REPLACE_FLOORL
  1090. REPLACE_FLOORF
  1091. REPLACE_FLOOR
  1092. REPLACE_FABSL
  1093. REPLACE_EXP2L
  1094. REPLACE_EXP2
  1095. REPLACE_EXPM1F
  1096. REPLACE_EXPM1
  1097. REPLACE_CEILL
  1098. REPLACE_CEILF
  1099. REPLACE_CEIL
  1100. REPLACE_CBRTL
  1101. REPLACE_CBRTF
  1102. HAVE_DECL_TRUNCL
  1103. HAVE_DECL_TRUNCF
  1104. HAVE_DECL_TRUNC
  1105. HAVE_DECL_TANL
  1106. HAVE_DECL_SQRTL
  1107. HAVE_DECL_SINL
  1108. HAVE_DECL_ROUNDL
  1109. HAVE_DECL_ROUNDF
  1110. HAVE_DECL_ROUND
  1111. HAVE_DECL_RINTF
  1112. HAVE_DECL_REMAINDERL
  1113. HAVE_DECL_REMAINDER
  1114. HAVE_DECL_LOGB
  1115. HAVE_DECL_LOG2L
  1116. HAVE_DECL_LOG2F
  1117. HAVE_DECL_LOG2
  1118. HAVE_DECL_LOG10L
  1119. HAVE_DECL_LOGL
  1120. HAVE_DECL_LDEXPL
  1121. HAVE_DECL_FREXPL
  1122. HAVE_DECL_FLOORL
  1123. HAVE_DECL_FLOORF
  1124. HAVE_DECL_EXPM1L
  1125. HAVE_DECL_EXP2L
  1126. HAVE_DECL_EXP2F
  1127. HAVE_DECL_EXP2
  1128. HAVE_DECL_EXPL
  1129. HAVE_DECL_COSL
  1130. HAVE_DECL_COPYSIGNF
  1131. HAVE_DECL_CEILL
  1132. HAVE_DECL_CEILF
  1133. HAVE_DECL_CBRTL
  1134. HAVE_DECL_CBRTF
  1135. HAVE_DECL_ATANL
  1136. HAVE_DECL_ASINL
  1137. HAVE_DECL_ACOSL
  1138. HAVE_TANHF
  1139. HAVE_TANL
  1140. HAVE_TANF
  1141. HAVE_SQRTL
  1142. HAVE_SQRTF
  1143. HAVE_SINHF
  1144. HAVE_SINL
  1145. HAVE_SINF
  1146. HAVE_RINTL
  1147. HAVE_RINT
  1148. HAVE_REMAINDERF
  1149. HAVE_REMAINDER
  1150. HAVE_POWF
  1151. HAVE_MODFL
  1152. HAVE_MODFF
  1153. HAVE_LOGBL
  1154. HAVE_LOGBF
  1155. HAVE_LOG1PL
  1156. HAVE_LOG1PF
  1157. HAVE_LOG1P
  1158. HAVE_LOG10L
  1159. HAVE_LOG10F
  1160. HAVE_LOGL
  1161. HAVE_LOGF
  1162. HAVE_LDEXPF
  1163. HAVE_ISNANL
  1164. HAVE_ISNAND
  1165. HAVE_ISNANF
  1166. HAVE_ILOGBL
  1167. HAVE_ILOGBF
  1168. HAVE_ILOGB
  1169. HAVE_HYPOTL
  1170. HAVE_HYPOTF
  1171. HAVE_FREXPF
  1172. HAVE_FMODL
  1173. HAVE_FMODF
  1174. HAVE_FMAL
  1175. HAVE_FMAF
  1176. HAVE_FMA
  1177. HAVE_FABSL
  1178. HAVE_FABSF
  1179. HAVE_EXPM1F
  1180. HAVE_EXPM1
  1181. HAVE_EXPL
  1182. HAVE_EXPF
  1183. HAVE_COSHF
  1184. HAVE_COSL
  1185. HAVE_COSF
  1186. HAVE_COPYSIGNL
  1187. HAVE_COPYSIGN
  1188. HAVE_CBRTL
  1189. HAVE_CBRTF
  1190. HAVE_CBRT
  1191. HAVE_ATAN2F
  1192. HAVE_ATANL
  1193. HAVE_ATANF
  1194. HAVE_ASINL
  1195. HAVE_ASINF
  1196. HAVE_ACOSL
  1197. HAVE_ACOSF
  1198. GNULIB_TRUNCL
  1199. GNULIB_TRUNCF
  1200. GNULIB_TRUNC
  1201. GNULIB_TANHF
  1202. GNULIB_TANL
  1203. GNULIB_TANF
  1204. GNULIB_SQRTL
  1205. GNULIB_SQRTF
  1206. GNULIB_SINHF
  1207. GNULIB_SINL
  1208. GNULIB_SINF
  1209. GNULIB_SIGNBIT
  1210. GNULIB_ROUNDL
  1211. GNULIB_ROUNDF
  1212. GNULIB_ROUND
  1213. GNULIB_RINTL
  1214. GNULIB_RINTF
  1215. GNULIB_RINT
  1216. GNULIB_REMAINDERL
  1217. GNULIB_REMAINDERF
  1218. GNULIB_REMAINDER
  1219. GNULIB_POWF
  1220. GNULIB_MODFL
  1221. GNULIB_MODFF
  1222. GNULIB_MODF
  1223. GNULIB_LOGBL
  1224. GNULIB_LOGBF
  1225. GNULIB_LOGB
  1226. GNULIB_LOG2L
  1227. GNULIB_LOG2F
  1228. GNULIB_LOG2
  1229. GNULIB_LOG1PL
  1230. GNULIB_LOG1PF
  1231. GNULIB_LOG1P
  1232. GNULIB_LOG10L
  1233. GNULIB_LOG10F
  1234. GNULIB_LOG10
  1235. GNULIB_LOGL
  1236. GNULIB_LOGF
  1237. GNULIB_LOG
  1238. GNULIB_LDEXPL
  1239. GNULIB_LDEXPF
  1240. GNULIB_ISNANL
  1241. GNULIB_ISNAND
  1242. GNULIB_ISNANF
  1243. GNULIB_ISNAN
  1244. GNULIB_ISINF
  1245. GNULIB_ISFINITE
  1246. GNULIB_ILOGBL
  1247. GNULIB_ILOGBF
  1248. GNULIB_ILOGB
  1249. GNULIB_HYPOTL
  1250. GNULIB_HYPOTF
  1251. GNULIB_HYPOT
  1252. GNULIB_FREXPL
  1253. GNULIB_FREXP
  1254. GNULIB_FREXPF
  1255. GNULIB_FMODL
  1256. GNULIB_FMODF
  1257. GNULIB_FMOD
  1258. GNULIB_FMAL
  1259. GNULIB_FMAF
  1260. GNULIB_FMA
  1261. GNULIB_FLOORL
  1262. GNULIB_FLOORF
  1263. GNULIB_FLOOR
  1264. GNULIB_FABSL
  1265. GNULIB_FABSF
  1266. GNULIB_EXPM1L
  1267. GNULIB_EXPM1F
  1268. GNULIB_EXPM1
  1269. GNULIB_EXP2L
  1270. GNULIB_EXP2F
  1271. GNULIB_EXP2
  1272. GNULIB_EXPL
  1273. GNULIB_EXPF
  1274. GNULIB_COSHF
  1275. GNULIB_COSL
  1276. GNULIB_COSF
  1277. GNULIB_COPYSIGNL
  1278. GNULIB_COPYSIGNF
  1279. GNULIB_COPYSIGN
  1280. GNULIB_CEILL
  1281. GNULIB_CEILF
  1282. GNULIB_CEIL
  1283. GNULIB_CBRTL
  1284. GNULIB_CBRTF
  1285. GNULIB_CBRT
  1286. GNULIB_ATAN2F
  1287. GNULIB_ATANL
  1288. GNULIB_ATANF
  1289. GNULIB_ASINL
  1290. GNULIB_ASINF
  1291. GNULIB_ACOSL
  1292. GNULIB_ACOSF
  1293. GL_GENERATE_FNMATCH_H_FALSE
  1294. GL_GENERATE_FNMATCH_H_TRUE
  1295. FNMATCH_H
  1296. REPLACE_ITOLD
  1297. GL_GENERATE_FLOAT_H_FALSE
  1298. GL_GENERATE_FLOAT_H_TRUE
  1299. FLOAT_H
  1300. NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
  1301. NEXT_FLOAT_H
  1302. EOVERFLOW_VALUE
  1303. EOVERFLOW_HIDDEN
  1304. ENOLINK_VALUE
  1305. ENOLINK_HIDDEN
  1306. EMULTIHOP_VALUE
  1307. EMULTIHOP_HIDDEN
  1308. GL_GENERATE_ERRNO_H_FALSE
  1309. GL_GENERATE_ERRNO_H_TRUE
  1310. ERRNO_H
  1311. NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
  1312. NEXT_ERRNO_H
  1313. HAVE_DIRENT_H
  1314. NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
  1315. NEXT_DIRENT_H
  1316. PRAGMA_COLUMNS
  1317. PRAGMA_SYSTEM_HEADER
  1318. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  1319. INCLUDE_NEXT
  1320. REPLACE_FDOPENDIR
  1321. REPLACE_DIRFD
  1322. REPLACE_CLOSEDIR
  1323. REPLACE_OPENDIR
  1324. HAVE_ALPHASORT
  1325. HAVE_SCANDIR
  1326. HAVE_FDOPENDIR
  1327. HAVE_DECL_FDOPENDIR
  1328. HAVE_DECL_DIRFD
  1329. HAVE_CLOSEDIR
  1330. HAVE_REWINDDIR
  1331. HAVE_READDIR
  1332. HAVE_OPENDIR
  1333. GNULIB_ALPHASORT
  1334. GNULIB_SCANDIR
  1335. GNULIB_FDOPENDIR
  1336. GNULIB_DIRFD
  1337. GNULIB_CLOSEDIR
  1338. GNULIB_REWINDDIR
  1339. GNULIB_READDIR
  1340. GNULIB_OPENDIR
  1341. pkglibexecdir
  1342. runstatedir
  1343. lispdir
  1344. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
  1345. UNISTD_H_HAVE_WINSOCK2_H
  1346. REPLACE_WRITE
  1347. REPLACE_USLEEP
  1348. REPLACE_UNLINKAT
  1349. REPLACE_UNLINK
  1350. REPLACE_TTYNAME_R
  1351. REPLACE_SYMLINKAT
  1352. REPLACE_SYMLINK
  1353. REPLACE_SLEEP
  1354. REPLACE_RMDIR
  1355. REPLACE_READLINKAT
  1356. REPLACE_READLINK
  1357. REPLACE_READ
  1358. REPLACE_PWRITE
  1359. REPLACE_PREAD
  1360. REPLACE_LSEEK
  1361. REPLACE_LINKAT
  1362. REPLACE_LINK
  1363. REPLACE_LCHOWN
  1364. REPLACE_ISATTY
  1365. REPLACE_GETPAGESIZE
  1366. REPLACE_GETGROUPS
  1367. REPLACE_GETLOGIN_R
  1368. REPLACE_GETDTABLESIZE
  1369. REPLACE_GETDOMAINNAME
  1370. REPLACE_GETCWD
  1371. REPLACE_FTRUNCATE
  1372. REPLACE_FCHOWNAT
  1373. REPLACE_DUP2
  1374. REPLACE_DUP
  1375. REPLACE_CLOSE
  1376. REPLACE_CHOWN
  1377. HAVE_SYS_PARAM_H
  1378. HAVE_OS_H
  1379. HAVE_DECL_TTYNAME_R
  1380. HAVE_DECL_SETHOSTNAME
  1381. HAVE_DECL_GETUSERSHELL
  1382. HAVE_DECL_GETPAGESIZE
  1383. HAVE_DECL_GETLOGIN_R
  1384. HAVE_DECL_GETDOMAINNAME
  1385. HAVE_DECL_FDATASYNC
  1386. HAVE_DECL_FCHDIR
  1387. HAVE_DECL_ENVIRON
  1388. HAVE_USLEEP
  1389. HAVE_UNLINKAT
  1390. HAVE_SYMLINKAT
  1391. HAVE_SYMLINK
  1392. HAVE_SLEEP
  1393. HAVE_SETHOSTNAME
  1394. HAVE_READLINKAT
  1395. HAVE_READLINK
  1396. HAVE_PWRITE
  1397. HAVE_PREAD
  1398. HAVE_PIPE2
  1399. HAVE_PIPE
  1400. HAVE_LINKAT
  1401. HAVE_LINK
  1402. HAVE_LCHOWN
  1403. HAVE_GROUP_MEMBER
  1404. HAVE_GETPAGESIZE
  1405. HAVE_GETLOGIN
  1406. HAVE_GETHOSTNAME
  1407. HAVE_GETGROUPS
  1408. HAVE_GETDTABLESIZE
  1409. HAVE_FTRUNCATE
  1410. HAVE_FSYNC
  1411. HAVE_FDATASYNC
  1412. HAVE_FCHOWNAT
  1413. HAVE_FCHDIR
  1414. HAVE_FACCESSAT
  1415. HAVE_EUIDACCESS
  1416. HAVE_DUP3
  1417. HAVE_DUP2
  1418. HAVE_CHOWN
  1419. GNULIB_WRITE
  1420. GNULIB_USLEEP
  1421. GNULIB_UNLINKAT
  1422. GNULIB_UNLINK
  1423. GNULIB_UNISTD_H_SIGPIPE
  1424. GNULIB_UNISTD_H_NONBLOCKING
  1425. GNULIB_TTYNAME_R
  1426. GNULIB_SYMLINKAT
  1427. GNULIB_SYMLINK
  1428. GNULIB_SLEEP
  1429. GNULIB_SETHOSTNAME
  1430. GNULIB_RMDIR
  1431. GNULIB_READLINKAT
  1432. GNULIB_READLINK
  1433. GNULIB_READ
  1434. GNULIB_PWRITE
  1435. GNULIB_PREAD
  1436. GNULIB_PIPE2
  1437. GNULIB_PIPE
  1438. GNULIB_LSEEK
  1439. GNULIB_LINKAT
  1440. GNULIB_LINK
  1441. GNULIB_LCHOWN
  1442. GNULIB_ISATTY
  1443. GNULIB_GROUP_MEMBER
  1444. GNULIB_GETUSERSHELL
  1445. GNULIB_GETPAGESIZE
  1446. GNULIB_GETLOGIN_R
  1447. GNULIB_GETLOGIN
  1448. GNULIB_GETHOSTNAME
  1449. GNULIB_GETGROUPS
  1450. GNULIB_GETDTABLESIZE
  1451. GNULIB_GETDOMAINNAME
  1452. GNULIB_GETCWD
  1453. GNULIB_FTRUNCATE
  1454. GNULIB_FSYNC
  1455. GNULIB_FDATASYNC
  1456. GNULIB_FCHOWNAT
  1457. GNULIB_FCHDIR
  1458. GNULIB_FACCESSAT
  1459. GNULIB_EUIDACCESS
  1460. GNULIB_ENVIRON
  1461. GNULIB_DUP3
  1462. GNULIB_DUP2
  1463. GNULIB_DUP
  1464. GNULIB_CLOSE
  1465. GNULIB_CHOWN
  1466. GNULIB_CHDIR
  1467. REPLACE_WCTOMB
  1468. REPLACE_UNSETENV
  1469. REPLACE_STRTOD
  1470. REPLACE_SETENV
  1471. REPLACE_REALPATH
  1472. REPLACE_REALLOC
  1473. REPLACE_RANDOM_R
  1474. REPLACE_QSORT_R
  1475. REPLACE_PUTENV
  1476. REPLACE_PTSNAME_R
  1477. REPLACE_PTSNAME
  1478. REPLACE_MKSTEMP
  1479. REPLACE_MBTOWC
  1480. REPLACE_MALLOC
  1481. REPLACE_CANONICALIZE_FILE_NAME
  1482. REPLACE_CALLOC
  1483. HAVE_DECL_UNSETENV
  1484. HAVE_UNLOCKPT
  1485. HAVE_SYS_LOADAVG_H
  1486. HAVE_STRUCT_RANDOM_DATA
  1487. HAVE_STRTOULL
  1488. HAVE_STRTOLL
  1489. HAVE_STRTOD
  1490. HAVE_DECL_SETENV
  1491. HAVE_SETENV
  1492. HAVE_SECURE_GETENV
  1493. HAVE_RPMATCH
  1494. HAVE_REALPATH
  1495. HAVE_RANDOM_R
  1496. HAVE_RANDOM_H
  1497. HAVE_RANDOM
  1498. HAVE_PTSNAME_R
  1499. HAVE_PTSNAME
  1500. HAVE_POSIX_OPENPT
  1501. HAVE_MKSTEMPS
  1502. HAVE_MKSTEMP
  1503. HAVE_MKOSTEMPS
  1504. HAVE_MKOSTEMP
  1505. HAVE_MKDTEMP
  1506. HAVE_GRANTPT
  1507. HAVE_GETSUBOPT
  1508. HAVE_DECL_GETLOADAVG
  1509. HAVE_CANONICALIZE_FILE_NAME
  1510. HAVE_ATOLL
  1511. HAVE__EXIT
  1512. GNULIB_WCTOMB
  1513. GNULIB_UNSETENV
  1514. GNULIB_UNLOCKPT
  1515. GNULIB_SYSTEM_POSIX
  1516. GNULIB_STRTOULL
  1517. GNULIB_STRTOLL
  1518. GNULIB_STRTOD
  1519. GNULIB_SETENV
  1520. GNULIB_SECURE_GETENV
  1521. GNULIB_RPMATCH
  1522. GNULIB_REALPATH
  1523. GNULIB_REALLOC_POSIX
  1524. GNULIB_RANDOM_R
  1525. GNULIB_RANDOM
  1526. GNULIB_QSORT_R
  1527. GNULIB_PUTENV
  1528. GNULIB_PTSNAME_R
  1529. GNULIB_PTSNAME
  1530. GNULIB_POSIX_OPENPT
  1531. GNULIB_MKSTEMPS
  1532. GNULIB_MKSTEMP
  1533. GNULIB_MKOSTEMPS
  1534. GNULIB_MKOSTEMP
  1535. GNULIB_MKDTEMP
  1536. GNULIB_MBTOWC
  1537. GNULIB_MALLOC_POSIX
  1538. GNULIB_GRANTPT
  1539. GNULIB_GETSUBOPT
  1540. GNULIB_GETLOADAVG
  1541. GNULIB_CANONICALIZE_FILE_NAME
  1542. GNULIB_CALLOC_POSIX
  1543. GNULIB_ATOLL
  1544. GNULIB__EXIT
  1545. GL_GENERATE_ALLOCA_H_FALSE
  1546. GL_GENERATE_ALLOCA_H_TRUE
  1547. ALLOCA_H
  1548. ALLOCA
  1549. GL_COND_LIBTOOL_FALSE
  1550. GL_COND_LIBTOOL_TRUE
  1551. target_os
  1552. target_vendor
  1553. target_cpu
  1554. target
  1555. host_os
  1556. host_vendor
  1557. host_cpu
  1558. host
  1559. build_os
  1560. build_vendor
  1561. build_cpu
  1562. build
  1563. RANLIB
  1564. ARFLAGS
  1565. AR
  1566. EGREP
  1567. GREP
  1568. CPP
  1569. OBJEXT
  1570. EXEEXT
  1571. ac_ct_CC
  1572. CPPFLAGS
  1573. LDFLAGS
  1574. CFLAGS
  1575. CC
  1576. MAINT
  1577. MAINTAINER_MODE_FALSE
  1578. MAINTAINER_MODE_TRUE
  1579. target_alias
  1580. host_alias
  1581. build_alias
  1582. LIBS
  1583. ECHO_T
  1584. ECHO_N
  1585. ECHO_C
  1586. DEFS
  1587. mandir
  1588. localedir
  1589. libdir
  1590. psdir
  1591. pdfdir
  1592. dvidir
  1593. htmldir
  1594. infodir
  1595. docdir
  1596. oldincludedir
  1597. includedir
  1598. localstatedir
  1599. sharedstatedir
  1600. sysconfdir
  1601. datadir
  1602. datarootdir
  1603. libexecdir
  1604. sbindir
  1605. bindir
  1606. program_transform_name
  1607. prefix
  1608. exec_prefix
  1609. PACKAGE_URL
  1610. PACKAGE_BUGREPORT
  1611. PACKAGE_STRING
  1612. PACKAGE_VERSION
  1613. PACKAGE_TARNAME
  1614. PACKAGE_NAME
  1615. PATH_SEPARATOR
  1616. SHELL'
  1617. ac_subst_files=''
  1618. ac_user_opts='
  1619. enable_option_checking
  1620. enable_maintainer_mode
  1621. enable_largefile
  1622. enable_dependency_tracking
  1623. '
  1624. ac_precious_vars='build_alias
  1625. host_alias
  1626. target_alias
  1627. CC
  1628. CFLAGS
  1629. LDFLAGS
  1630. LIBS
  1631. CPPFLAGS
  1632. CPP'
  1633. # Initialize some variables set by options.
  1634. ac_init_help=
  1635. ac_init_version=false
  1636. ac_unrecognized_opts=
  1637. ac_unrecognized_sep=
  1638. # The variables have the same names as the options, with
  1639. # dashes changed to underlines.
  1640. cache_file=/dev/null
  1641. exec_prefix=NONE
  1642. no_create=
  1643. no_recursion=
  1644. prefix=NONE
  1645. program_prefix=NONE
  1646. program_suffix=NONE
  1647. program_transform_name=s,x,x,
  1648. silent=
  1649. site=
  1650. srcdir=
  1651. verbose=
  1652. x_includes=NONE
  1653. x_libraries=NONE
  1654. # Installation directory options.
  1655. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1656. # and all the variables that are supposed to be based on exec_prefix
  1657. # by default will actually change.
  1658. # Use braces instead of parens because sh, perl, etc. also accept them.
  1659. # (The list follows the same order as the GNU Coding Standards.)
  1660. bindir='${exec_prefix}/bin'
  1661. sbindir='${exec_prefix}/sbin'
  1662. libexecdir='${exec_prefix}/libexec'
  1663. datarootdir='${prefix}/share'
  1664. datadir='${datarootdir}'
  1665. sysconfdir='${prefix}/etc'
  1666. sharedstatedir='${prefix}/com'
  1667. localstatedir='${prefix}/var'
  1668. includedir='${prefix}/include'
  1669. oldincludedir='/usr/include'
  1670. docdir='${datarootdir}/doc/${PACKAGE}'
  1671. infodir='${datarootdir}/info'
  1672. htmldir='${docdir}'
  1673. dvidir='${docdir}'
  1674. pdfdir='${docdir}'
  1675. psdir='${docdir}'
  1676. libdir='${exec_prefix}/lib'
  1677. localedir='${datarootdir}/locale'
  1678. mandir='${datarootdir}/man'
  1679. ac_prev=
  1680. ac_dashdash=
  1681. for ac_option
  1682. do
  1683. # If the previous option needs an argument, assign it.
  1684. if test -n "$ac_prev"; then
  1685. eval $ac_prev=\$ac_option
  1686. ac_prev=
  1687. continue
  1688. fi
  1689. case $ac_option in
  1690. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1691. *) ac_optarg=yes ;;
  1692. esac
  1693. # Accept the important Cygnus configure options, so we can diagnose typos.
  1694. case $ac_dashdash$ac_option in
  1695. --)
  1696. ac_dashdash=yes ;;
  1697. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1698. ac_prev=bindir ;;
  1699. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1700. bindir=$ac_optarg ;;
  1701. -build | --build | --buil | --bui | --bu)
  1702. ac_prev=build_alias ;;
  1703. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1704. build_alias=$ac_optarg ;;
  1705. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1706. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1707. ac_prev=cache_file ;;
  1708. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1709. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1710. cache_file=$ac_optarg ;;
  1711. --config-cache | -C)
  1712. cache_file=config.cache ;;
  1713. -datadir | --datadir | --datadi | --datad)
  1714. ac_prev=datadir ;;
  1715. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1716. datadir=$ac_optarg ;;
  1717. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1718. | --dataroo | --dataro | --datar)
  1719. ac_prev=datarootdir ;;
  1720. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1721. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1722. datarootdir=$ac_optarg ;;
  1723. -disable-* | --disable-*)
  1724. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1725. # Reject names that are not valid shell variable names.
  1726. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1727. as_fn_error "invalid feature name: $ac_useropt"
  1728. ac_useropt_orig=$ac_useropt
  1729. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1730. case $ac_user_opts in
  1731. *"
  1732. "enable_$ac_useropt"
  1733. "*) ;;
  1734. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1735. ac_unrecognized_sep=', ';;
  1736. esac
  1737. eval enable_$ac_useropt=no ;;
  1738. -docdir | --docdir | --docdi | --doc | --do)
  1739. ac_prev=docdir ;;
  1740. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1741. docdir=$ac_optarg ;;
  1742. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1743. ac_prev=dvidir ;;
  1744. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1745. dvidir=$ac_optarg ;;
  1746. -enable-* | --enable-*)
  1747. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1748. # Reject names that are not valid shell variable names.
  1749. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1750. as_fn_error "invalid feature name: $ac_useropt"
  1751. ac_useropt_orig=$ac_useropt
  1752. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1753. case $ac_user_opts in
  1754. *"
  1755. "enable_$ac_useropt"
  1756. "*) ;;
  1757. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1758. ac_unrecognized_sep=', ';;
  1759. esac
  1760. eval enable_$ac_useropt=\$ac_optarg ;;
  1761. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1762. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1763. | --exec | --exe | --ex)
  1764. ac_prev=exec_prefix ;;
  1765. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1766. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1767. | --exec=* | --exe=* | --ex=*)
  1768. exec_prefix=$ac_optarg ;;
  1769. -gas | --gas | --ga | --g)
  1770. # Obsolete; use --with-gas.
  1771. with_gas=yes ;;
  1772. -help | --help | --hel | --he | -h)
  1773. ac_init_help=long ;;
  1774. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1775. ac_init_help=recursive ;;
  1776. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1777. ac_init_help=short ;;
  1778. -host | --host | --hos | --ho)
  1779. ac_prev=host_alias ;;
  1780. -host=* | --host=* | --hos=* | --ho=*)
  1781. host_alias=$ac_optarg ;;
  1782. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1783. ac_prev=htmldir ;;
  1784. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1785. | --ht=*)
  1786. htmldir=$ac_optarg ;;
  1787. -includedir | --includedir | --includedi | --included | --include \
  1788. | --includ | --inclu | --incl | --inc)
  1789. ac_prev=includedir ;;
  1790. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1791. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1792. includedir=$ac_optarg ;;
  1793. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1794. ac_prev=infodir ;;
  1795. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1796. infodir=$ac_optarg ;;
  1797. -libdir | --libdir | --libdi | --libd)
  1798. ac_prev=libdir ;;
  1799. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1800. libdir=$ac_optarg ;;
  1801. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1802. | --libexe | --libex | --libe)
  1803. ac_prev=libexecdir ;;
  1804. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1805. | --libexe=* | --libex=* | --libe=*)
  1806. libexecdir=$ac_optarg ;;
  1807. -localedir | --localedir | --localedi | --localed | --locale)
  1808. ac_prev=localedir ;;
  1809. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1810. localedir=$ac_optarg ;;
  1811. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1812. | --localstate | --localstat | --localsta | --localst | --locals)
  1813. ac_prev=localstatedir ;;
  1814. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1815. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1816. localstatedir=$ac_optarg ;;
  1817. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1818. ac_prev=mandir ;;
  1819. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1820. mandir=$ac_optarg ;;
  1821. -nfp | --nfp | --nf)
  1822. # Obsolete; use --without-fp.
  1823. with_fp=no ;;
  1824. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1825. | --no-cr | --no-c | -n)
  1826. no_create=yes ;;
  1827. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1828. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1829. no_recursion=yes ;;
  1830. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1831. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1832. | --oldin | --oldi | --old | --ol | --o)
  1833. ac_prev=oldincludedir ;;
  1834. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1835. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1836. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1837. oldincludedir=$ac_optarg ;;
  1838. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1839. ac_prev=prefix ;;
  1840. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1841. prefix=$ac_optarg ;;
  1842. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1843. | --program-pre | --program-pr | --program-p)
  1844. ac_prev=program_prefix ;;
  1845. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1846. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1847. program_prefix=$ac_optarg ;;
  1848. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1849. | --program-suf | --program-su | --program-s)
  1850. ac_prev=program_suffix ;;
  1851. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1852. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1853. program_suffix=$ac_optarg ;;
  1854. -program-transform-name | --program-transform-name \
  1855. | --program-transform-nam | --program-transform-na \
  1856. | --program-transform-n | --program-transform- \
  1857. | --program-transform | --program-transfor \
  1858. | --program-transfo | --program-transf \
  1859. | --program-trans | --program-tran \
  1860. | --progr-tra | --program-tr | --program-t)
  1861. ac_prev=program_transform_name ;;
  1862. -program-transform-name=* | --program-transform-name=* \
  1863. | --program-transform-nam=* | --program-transform-na=* \
  1864. | --program-transform-n=* | --program-transform-=* \
  1865. | --program-transform=* | --program-transfor=* \
  1866. | --program-transfo=* | --program-transf=* \
  1867. | --program-trans=* | --program-tran=* \
  1868. | --progr-tra=* | --program-tr=* | --program-t=*)
  1869. program_transform_name=$ac_optarg ;;
  1870. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1871. ac_prev=pdfdir ;;
  1872. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1873. pdfdir=$ac_optarg ;;
  1874. -psdir | --psdir | --psdi | --psd | --ps)
  1875. ac_prev=psdir ;;
  1876. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1877. psdir=$ac_optarg ;;
  1878. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1879. | -silent | --silent | --silen | --sile | --sil)
  1880. silent=yes ;;
  1881. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1882. ac_prev=sbindir ;;
  1883. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1884. | --sbi=* | --sb=*)
  1885. sbindir=$ac_optarg ;;
  1886. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1887. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1888. | --sharedst | --shareds | --shared | --share | --shar \
  1889. | --sha | --sh)
  1890. ac_prev=sharedstatedir ;;
  1891. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1892. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1893. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1894. | --sha=* | --sh=*)
  1895. sharedstatedir=$ac_optarg ;;
  1896. -site | --site | --sit)
  1897. ac_prev=site ;;
  1898. -site=* | --site=* | --sit=*)
  1899. site=$ac_optarg ;;
  1900. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1901. ac_prev=srcdir ;;
  1902. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1903. srcdir=$ac_optarg ;;
  1904. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1905. | --syscon | --sysco | --sysc | --sys | --sy)
  1906. ac_prev=sysconfdir ;;
  1907. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1908. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1909. sysconfdir=$ac_optarg ;;
  1910. -target | --target | --targe | --targ | --tar | --ta | --t)
  1911. ac_prev=target_alias ;;
  1912. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1913. target_alias=$ac_optarg ;;
  1914. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1915. verbose=yes ;;
  1916. -version | --version | --versio | --versi | --vers | -V)
  1917. ac_init_version=: ;;
  1918. -with-* | --with-*)
  1919. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1920. # Reject names that are not valid shell variable names.
  1921. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1922. as_fn_error "invalid package name: $ac_useropt"
  1923. ac_useropt_orig=$ac_useropt
  1924. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1925. case $ac_user_opts in
  1926. *"
  1927. "with_$ac_useropt"
  1928. "*) ;;
  1929. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1930. ac_unrecognized_sep=', ';;
  1931. esac
  1932. eval with_$ac_useropt=\$ac_optarg ;;
  1933. -without-* | --without-*)
  1934. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1935. # Reject names that are not valid shell variable names.
  1936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1937. as_fn_error "invalid package name: $ac_useropt"
  1938. ac_useropt_orig=$ac_useropt
  1939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1940. case $ac_user_opts in
  1941. *"
  1942. "with_$ac_useropt"
  1943. "*) ;;
  1944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1945. ac_unrecognized_sep=', ';;
  1946. esac
  1947. eval with_$ac_useropt=no ;;
  1948. --x)
  1949. # Obsolete; use --with-x.
  1950. with_x=yes ;;
  1951. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1952. | --x-incl | --x-inc | --x-in | --x-i)
  1953. ac_prev=x_includes ;;
  1954. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1955. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1956. x_includes=$ac_optarg ;;
  1957. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1958. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1959. ac_prev=x_libraries ;;
  1960. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1961. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1962. x_libraries=$ac_optarg ;;
  1963. -*) as_fn_error "unrecognized option: \`$ac_option'
  1964. Try \`$0 --help' for more information."
  1965. ;;
  1966. *=*)
  1967. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1968. # Reject names that are not valid shell variable names.
  1969. case $ac_envvar in #(
  1970. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1971. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1972. esac
  1973. eval $ac_envvar=\$ac_optarg
  1974. export $ac_envvar ;;
  1975. *)
  1976. # FIXME: should be removed in autoconf 3.0.
  1977. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1978. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1979. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1980. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1981. ;;
  1982. esac
  1983. done
  1984. if test -n "$ac_prev"; then
  1985. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1986. as_fn_error "missing argument to $ac_option"
  1987. fi
  1988. if test -n "$ac_unrecognized_opts"; then
  1989. case $enable_option_checking in
  1990. no) ;;
  1991. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1992. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1993. esac
  1994. fi
  1995. # Check all directory arguments for consistency.
  1996. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1997. datadir sysconfdir sharedstatedir localstatedir includedir \
  1998. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1999. libdir localedir mandir
  2000. do
  2001. eval ac_val=\$$ac_var
  2002. # Remove trailing slashes.
  2003. case $ac_val in
  2004. */ )
  2005. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  2006. eval $ac_var=\$ac_val;;
  2007. esac
  2008. # Be sure to have absolute directory names.
  2009. case $ac_val in
  2010. [\\/$]* | ?:[\\/]* ) continue;;
  2011. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  2012. esac
  2013. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  2014. done
  2015. # There might be people who depend on the old broken behavior: `$host'
  2016. # used to hold the argument of --host etc.
  2017. # FIXME: To remove some day.
  2018. build=$build_alias
  2019. host=$host_alias
  2020. target=$target_alias
  2021. # FIXME: To remove some day.
  2022. if test "x$host_alias" != x; then
  2023. if test "x$build_alias" = x; then
  2024. cross_compiling=maybe
  2025. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  2026. If a cross compiler is detected then cross compile mode will be used." >&2
  2027. elif test "x$build_alias" != "x$host_alias"; then
  2028. cross_compiling=yes
  2029. fi
  2030. fi
  2031. ac_tool_prefix=
  2032. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  2033. test "$silent" = yes && exec 6>/dev/null
  2034. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  2035. ac_ls_di=`ls -di .` &&
  2036. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  2037. as_fn_error "working directory cannot be determined"
  2038. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  2039. as_fn_error "pwd does not report name of working directory"
  2040. # Find the source files, if location was not specified.
  2041. if test -z "$srcdir"; then
  2042. ac_srcdir_defaulted=yes
  2043. # Try the directory containing this script, then the parent directory.
  2044. ac_confdir=`$as_dirname -- "$as_myself" ||
  2045. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2046. X"$as_myself" : 'X\(//\)[^/]' \| \
  2047. X"$as_myself" : 'X\(//\)$' \| \
  2048. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  2049. $as_echo X"$as_myself" |
  2050. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2051. s//\1/
  2052. q
  2053. }
  2054. /^X\(\/\/\)[^/].*/{
  2055. s//\1/
  2056. q
  2057. }
  2058. /^X\(\/\/\)$/{
  2059. s//\1/
  2060. q
  2061. }
  2062. /^X\(\/\).*/{
  2063. s//\1/
  2064. q
  2065. }
  2066. s/.*/./; q'`
  2067. srcdir=$ac_confdir
  2068. if test ! -r "$srcdir/$ac_unique_file"; then
  2069. srcdir=..
  2070. fi
  2071. else
  2072. ac_srcdir_defaulted=no
  2073. fi
  2074. if test ! -r "$srcdir/$ac_unique_file"; then
  2075. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  2076. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  2077. fi
  2078. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  2079. ac_abs_confdir=`(
  2080. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  2081. pwd)`
  2082. # When building in place, set srcdir=.
  2083. if test "$ac_abs_confdir" = "$ac_pwd"; then
  2084. srcdir=.
  2085. fi
  2086. # Remove unnecessary trailing slashes from srcdir.
  2087. # Double slashes in file names in object file debugging info
  2088. # mess up M-x gdb in Emacs.
  2089. case $srcdir in
  2090. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  2091. esac
  2092. for ac_var in $ac_precious_vars; do
  2093. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  2094. eval ac_env_${ac_var}_value=\$${ac_var}
  2095. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  2096. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  2097. done
  2098. #
  2099. # Report the --help message.
  2100. #
  2101. if test "$ac_init_help" = "long"; then
  2102. # Omit some internal or obsolete options to make the list less imposing.
  2103. # This message is too long to be a string in the A/UX 3.1 sh.
  2104. cat <<_ACEOF
  2105. \`configure' configures this package to adapt to many kinds of systems.
  2106. Usage: $0 [OPTION]... [VAR=VALUE]...
  2107. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  2108. VAR=VALUE. See below for descriptions of some of the useful variables.
  2109. Defaults for the options are specified in brackets.
  2110. Configuration:
  2111. -h, --help display this help and exit
  2112. --help=short display options specific to this package
  2113. --help=recursive display the short help of all the included packages
  2114. -V, --version display version information and exit
  2115. -q, --quiet, --silent do not print \`checking...' messages
  2116. --cache-file=FILE cache test results in FILE [disabled]
  2117. -C, --config-cache alias for \`--cache-file=config.cache'
  2118. -n, --no-create do not create output files
  2119. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  2120. Installation directories:
  2121. --prefix=PREFIX install architecture-independent files in PREFIX
  2122. [$ac_default_prefix]
  2123. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  2124. [PREFIX]
  2125. By default, \`make install' will install all the files in
  2126. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  2127. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  2128. for instance \`--prefix=\$HOME'.
  2129. For better control, use the options below.
  2130. Fine tuning of the installation directories:
  2131. --bindir=DIR user executables [EPREFIX/bin]
  2132. --sbindir=DIR system admin executables [EPREFIX/sbin]
  2133. --libexecdir=DIR program executables [EPREFIX/libexec]
  2134. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  2135. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  2136. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  2137. --libdir=DIR object code libraries [EPREFIX/lib]
  2138. --includedir=DIR C header files [PREFIX/include]
  2139. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  2140. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  2141. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  2142. --infodir=DIR info documentation [DATAROOTDIR/info]
  2143. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  2144. --mandir=DIR man documentation [DATAROOTDIR/man]
  2145. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  2146. --htmldir=DIR html documentation [DOCDIR]
  2147. --dvidir=DIR dvi documentation [DOCDIR]
  2148. --pdfdir=DIR pdf documentation [DOCDIR]
  2149. --psdir=DIR ps documentation [DOCDIR]
  2150. _ACEOF
  2151. cat <<\_ACEOF
  2152. Program names:
  2153. --program-prefix=PREFIX prepend PREFIX to installed program names
  2154. --program-suffix=SUFFIX append SUFFIX to installed program names
  2155. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  2156. System types:
  2157. --build=BUILD configure for building on BUILD [guessed]
  2158. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  2159. --target=TARGET configure for building compilers for TARGET [HOST]
  2160. _ACEOF
  2161. fi
  2162. if test -n "$ac_init_help"; then
  2163. cat <<\_ACEOF
  2164. Optional Features:
  2165. --disable-option-checking ignore unrecognized --enable/--with options
  2166. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  2167. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  2168. --enable-maintainer-mode enable make rules and dependencies not useful
  2169. (and sometimes confusing) to the casual installer
  2170. --disable-largefile omit support for large files
  2171. --disable-dependency-tracking speeds up one-time build
  2172. --enable-dependency-tracking do not reject slow dependency extractors
  2173. Some influential environment variables:
  2174. CC C compiler command
  2175. CFLAGS C compiler flags
  2176. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2177. nonstandard directory <lib dir>
  2178. LIBS libraries to pass to the linker, e.g. -l<library>
  2179. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  2180. you have headers in a nonstandard directory <include dir>
  2181. CPP C preprocessor
  2182. Use these variables to override the choices made by `configure' or to help
  2183. it to find libraries and programs with nonstandard names/locations.
  2184. Report bugs to the package provider.
  2185. _ACEOF
  2186. ac_status=$?
  2187. fi
  2188. if test "$ac_init_help" = "recursive"; then
  2189. # If there are subdirs, report their specific --help.
  2190. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2191. test -d "$ac_dir" ||
  2192. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2193. continue
  2194. ac_builddir=.
  2195. case "$ac_dir" in
  2196. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2197. *)
  2198. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2199. # A ".." for each directory in $ac_dir_suffix.
  2200. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2201. case $ac_top_builddir_sub in
  2202. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2203. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2204. esac ;;
  2205. esac
  2206. ac_abs_top_builddir=$ac_pwd
  2207. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2208. # for backward compatibility:
  2209. ac_top_builddir=$ac_top_build_prefix
  2210. case $srcdir in
  2211. .) # We are building in place.
  2212. ac_srcdir=.
  2213. ac_top_srcdir=$ac_top_builddir_sub
  2214. ac_abs_top_srcdir=$ac_pwd ;;
  2215. [\\/]* | ?:[\\/]* ) # Absolute name.
  2216. ac_srcdir=$srcdir$ac_dir_suffix;
  2217. ac_top_srcdir=$srcdir
  2218. ac_abs_top_srcdir=$srcdir ;;
  2219. *) # Relative name.
  2220. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2221. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2222. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2223. esac
  2224. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2225. cd "$ac_dir" || { ac_status=$?; continue; }
  2226. # Check for guested configure.
  2227. if test -f "$ac_srcdir/configure.gnu"; then
  2228. echo &&
  2229. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2230. elif test -f "$ac_srcdir/configure"; then
  2231. echo &&
  2232. $SHELL "$ac_srcdir/configure" --help=recursive
  2233. else
  2234. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2235. fi || ac_status=$?
  2236. cd "$ac_pwd" || { ac_status=$?; break; }
  2237. done
  2238. fi
  2239. test -n "$ac_init_help" && exit $ac_status
  2240. if $ac_init_version; then
  2241. cat <<\_ACEOF
  2242. configure
  2243. generated by GNU Autoconf 2.64
  2244. Copyright (C) 2009 Free Software Foundation, Inc.
  2245. This configure script is free software; the Free Software Foundation
  2246. gives unlimited permission to copy, distribute and modify it.
  2247. _ACEOF
  2248. exit
  2249. fi
  2250. ## ------------------------ ##
  2251. ## Autoconf initialization. ##
  2252. ## ------------------------ ##
  2253. # ac_fn_c_try_compile LINENO
  2254. # --------------------------
  2255. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2256. ac_fn_c_try_compile ()
  2257. {
  2258. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2259. rm -f conftest.$ac_objext
  2260. if { { ac_try="$ac_compile"
  2261. case "(($ac_try" in
  2262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2263. *) ac_try_echo=$ac_try;;
  2264. esac
  2265. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2266. $as_echo "$ac_try_echo"; } >&5
  2267. (eval "$ac_compile") 2>conftest.err
  2268. ac_status=$?
  2269. if test -s conftest.err; then
  2270. grep -v '^ *+' conftest.err >conftest.er1
  2271. cat conftest.er1 >&5
  2272. mv -f conftest.er1 conftest.err
  2273. fi
  2274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2275. test $ac_status = 0; } && {
  2276. test -z "$ac_c_werror_flag" ||
  2277. test ! -s conftest.err
  2278. } && test -s conftest.$ac_objext; then :
  2279. ac_retval=0
  2280. else
  2281. $as_echo "$as_me: failed program was:" >&5
  2282. sed 's/^/| /' conftest.$ac_ext >&5
  2283. ac_retval=1
  2284. fi
  2285. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2286. return $ac_retval
  2287. } # ac_fn_c_try_compile
  2288. # ac_fn_c_try_cpp LINENO
  2289. # ----------------------
  2290. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2291. ac_fn_c_try_cpp ()
  2292. {
  2293. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2294. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2295. case "(($ac_try" in
  2296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2297. *) ac_try_echo=$ac_try;;
  2298. esac
  2299. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2300. $as_echo "$ac_try_echo"; } >&5
  2301. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2302. ac_status=$?
  2303. if test -s conftest.err; then
  2304. grep -v '^ *+' conftest.err >conftest.er1
  2305. cat conftest.er1 >&5
  2306. mv -f conftest.er1 conftest.err
  2307. fi
  2308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2309. test $ac_status = 0; } >/dev/null && {
  2310. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2311. test ! -s conftest.err
  2312. }; then :
  2313. ac_retval=0
  2314. else
  2315. $as_echo "$as_me: failed program was:" >&5
  2316. sed 's/^/| /' conftest.$ac_ext >&5
  2317. ac_retval=1
  2318. fi
  2319. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2320. return $ac_retval
  2321. } # ac_fn_c_try_cpp
  2322. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2323. # -------------------------------------------------------
  2324. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2325. # the include files in INCLUDES and setting the cache variable VAR
  2326. # accordingly.
  2327. ac_fn_c_check_header_mongrel ()
  2328. {
  2329. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2330. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2332. $as_echo_n "checking for $2... " >&6; }
  2333. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2334. $as_echo_n "(cached) " >&6
  2335. fi
  2336. eval ac_res=\$$3
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2338. $as_echo "$ac_res" >&6; }
  2339. else
  2340. # Is the header compilable?
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2342. $as_echo_n "checking $2 usability... " >&6; }
  2343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2344. /* end confdefs.h. */
  2345. $4
  2346. #include <$2>
  2347. _ACEOF
  2348. if ac_fn_c_try_compile "$LINENO"; then :
  2349. ac_header_compiler=yes
  2350. else
  2351. ac_header_compiler=no
  2352. fi
  2353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2355. $as_echo "$ac_header_compiler" >&6; }
  2356. # Is the header present?
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2358. $as_echo_n "checking $2 presence... " >&6; }
  2359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2360. /* end confdefs.h. */
  2361. #include <$2>
  2362. _ACEOF
  2363. if ac_fn_c_try_cpp "$LINENO"; then :
  2364. ac_header_preproc=yes
  2365. else
  2366. ac_header_preproc=no
  2367. fi
  2368. rm -f conftest.err conftest.$ac_ext
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2370. $as_echo "$ac_header_preproc" >&6; }
  2371. # So? What about this header?
  2372. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2373. yes:no: )
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2375. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2377. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2378. ;;
  2379. no:yes:* )
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2381. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2383. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2385. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2387. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2389. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2390. ;;
  2391. esac
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2393. $as_echo_n "checking for $2... " >&6; }
  2394. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2395. $as_echo_n "(cached) " >&6
  2396. else
  2397. eval "$3=\$ac_header_compiler"
  2398. fi
  2399. eval ac_res=\$$3
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2401. $as_echo "$ac_res" >&6; }
  2402. fi
  2403. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2404. } # ac_fn_c_check_header_mongrel
  2405. # ac_fn_c_try_run LINENO
  2406. # ----------------------
  2407. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2408. # that executables *can* be run.
  2409. ac_fn_c_try_run ()
  2410. {
  2411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2412. if { { ac_try="$ac_link"
  2413. case "(($ac_try" in
  2414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2415. *) ac_try_echo=$ac_try;;
  2416. esac
  2417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2418. $as_echo "$ac_try_echo"; } >&5
  2419. (eval "$ac_link") 2>&5
  2420. ac_status=$?
  2421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2422. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2423. { { case "(($ac_try" in
  2424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2425. *) ac_try_echo=$ac_try;;
  2426. esac
  2427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2428. $as_echo "$ac_try_echo"; } >&5
  2429. (eval "$ac_try") 2>&5
  2430. ac_status=$?
  2431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2432. test $ac_status = 0; }; }; then :
  2433. ac_retval=0
  2434. else
  2435. $as_echo "$as_me: program exited with status $ac_status" >&5
  2436. $as_echo "$as_me: failed program was:" >&5
  2437. sed 's/^/| /' conftest.$ac_ext >&5
  2438. ac_retval=$ac_status
  2439. fi
  2440. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2441. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2442. return $ac_retval
  2443. } # ac_fn_c_try_run
  2444. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2445. # -------------------------------------------------------
  2446. # Tests whether HEADER exists and can be compiled using the include files in
  2447. # INCLUDES, setting the cache variable VAR accordingly.
  2448. ac_fn_c_check_header_compile ()
  2449. {
  2450. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2452. $as_echo_n "checking for $2... " >&6; }
  2453. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2454. $as_echo_n "(cached) " >&6
  2455. else
  2456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2457. /* end confdefs.h. */
  2458. $4
  2459. #include <$2>
  2460. _ACEOF
  2461. if ac_fn_c_try_compile "$LINENO"; then :
  2462. eval "$3=yes"
  2463. else
  2464. eval "$3=no"
  2465. fi
  2466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2467. fi
  2468. eval ac_res=\$$3
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2470. $as_echo "$ac_res" >&6; }
  2471. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2472. } # ac_fn_c_check_header_compile
  2473. # ac_fn_c_try_link LINENO
  2474. # -----------------------
  2475. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2476. ac_fn_c_try_link ()
  2477. {
  2478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2479. rm -f conftest.$ac_objext conftest$ac_exeext
  2480. if { { ac_try="$ac_link"
  2481. case "(($ac_try" in
  2482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2483. *) ac_try_echo=$ac_try;;
  2484. esac
  2485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2486. $as_echo "$ac_try_echo"; } >&5
  2487. (eval "$ac_link") 2>conftest.err
  2488. ac_status=$?
  2489. if test -s conftest.err; then
  2490. grep -v '^ *+' conftest.err >conftest.er1
  2491. cat conftest.er1 >&5
  2492. mv -f conftest.er1 conftest.err
  2493. fi
  2494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2495. test $ac_status = 0; } && {
  2496. test -z "$ac_c_werror_flag" ||
  2497. test ! -s conftest.err
  2498. } && test -s conftest$ac_exeext && {
  2499. test "$cross_compiling" = yes ||
  2500. $as_test_x conftest$ac_exeext
  2501. }; then :
  2502. ac_retval=0
  2503. else
  2504. $as_echo "$as_me: failed program was:" >&5
  2505. sed 's/^/| /' conftest.$ac_ext >&5
  2506. ac_retval=1
  2507. fi
  2508. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2509. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2510. # interfere with the next link command; also delete a directory that is
  2511. # left behind by Apple's compiler. We do this before executing the actions.
  2512. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2513. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2514. return $ac_retval
  2515. } # ac_fn_c_try_link
  2516. # ac_fn_c_check_func LINENO FUNC VAR
  2517. # ----------------------------------
  2518. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2519. ac_fn_c_check_func ()
  2520. {
  2521. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2523. $as_echo_n "checking for $2... " >&6; }
  2524. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2525. $as_echo_n "(cached) " >&6
  2526. else
  2527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2528. /* end confdefs.h. */
  2529. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2530. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2531. #define $2 innocuous_$2
  2532. /* System header to define __stub macros and hopefully few prototypes,
  2533. which can conflict with char $2 (); below.
  2534. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2535. <limits.h> exists even on freestanding compilers. */
  2536. #ifdef __STDC__
  2537. # include <limits.h>
  2538. #else
  2539. # include <assert.h>
  2540. #endif
  2541. #undef $2
  2542. /* Override any GCC internal prototype to avoid an error.
  2543. Use char because int might match the return type of a GCC
  2544. builtin and then its argument prototype would still apply. */
  2545. #ifdef __cplusplus
  2546. extern "C"
  2547. #endif
  2548. char $2 ();
  2549. /* The GNU C library defines this for functions which it implements
  2550. to always fail with ENOSYS. Some functions are actually named
  2551. something starting with __ and the normal name is an alias. */
  2552. #if defined __stub_$2 || defined __stub___$2
  2553. choke me
  2554. #endif
  2555. int
  2556. main ()
  2557. {
  2558. return $2 ();
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. if ac_fn_c_try_link "$LINENO"; then :
  2564. eval "$3=yes"
  2565. else
  2566. eval "$3=no"
  2567. fi
  2568. rm -f core conftest.err conftest.$ac_objext \
  2569. conftest$ac_exeext conftest.$ac_ext
  2570. fi
  2571. eval ac_res=\$$3
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2573. $as_echo "$ac_res" >&6; }
  2574. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2575. } # ac_fn_c_check_func
  2576. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2577. # ------------------------------------
  2578. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2579. ac_fn_c_check_decl ()
  2580. {
  2581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2583. $as_echo_n "checking whether $2 is declared... " >&6; }
  2584. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2585. $as_echo_n "(cached) " >&6
  2586. else
  2587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2588. /* end confdefs.h. */
  2589. $4
  2590. int
  2591. main ()
  2592. {
  2593. #ifndef $2
  2594. (void) $2;
  2595. #endif
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. if ac_fn_c_try_compile "$LINENO"; then :
  2601. eval "$3=yes"
  2602. else
  2603. eval "$3=no"
  2604. fi
  2605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2606. fi
  2607. eval ac_res=\$$3
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2609. $as_echo "$ac_res" >&6; }
  2610. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2611. } # ac_fn_c_check_decl
  2612. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2613. # --------------------------------------------
  2614. # Tries to find the compile-time value of EXPR in a program that includes
  2615. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2616. # computed
  2617. ac_fn_c_compute_int ()
  2618. {
  2619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2620. if test "$cross_compiling" = yes; then
  2621. # Depending upon the size, compute the lo and hi bounds.
  2622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2623. /* end confdefs.h. */
  2624. $4
  2625. int
  2626. main ()
  2627. {
  2628. static int test_array [1 - 2 * !(($2) >= 0)];
  2629. test_array [0] = 0
  2630. ;
  2631. return 0;
  2632. }
  2633. _ACEOF
  2634. if ac_fn_c_try_compile "$LINENO"; then :
  2635. ac_lo=0 ac_mid=0
  2636. while :; do
  2637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2638. /* end confdefs.h. */
  2639. $4
  2640. int
  2641. main ()
  2642. {
  2643. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2644. test_array [0] = 0
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. if ac_fn_c_try_compile "$LINENO"; then :
  2650. ac_hi=$ac_mid; break
  2651. else
  2652. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2653. if test $ac_lo -le $ac_mid; then
  2654. ac_lo= ac_hi=
  2655. break
  2656. fi
  2657. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2658. fi
  2659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2660. done
  2661. else
  2662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2663. /* end confdefs.h. */
  2664. $4
  2665. int
  2666. main ()
  2667. {
  2668. static int test_array [1 - 2 * !(($2) < 0)];
  2669. test_array [0] = 0
  2670. ;
  2671. return 0;
  2672. }
  2673. _ACEOF
  2674. if ac_fn_c_try_compile "$LINENO"; then :
  2675. ac_hi=-1 ac_mid=-1
  2676. while :; do
  2677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end confdefs.h. */
  2679. $4
  2680. int
  2681. main ()
  2682. {
  2683. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2684. test_array [0] = 0
  2685. ;
  2686. return 0;
  2687. }
  2688. _ACEOF
  2689. if ac_fn_c_try_compile "$LINENO"; then :
  2690. ac_lo=$ac_mid; break
  2691. else
  2692. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2693. if test $ac_mid -le $ac_hi; then
  2694. ac_lo= ac_hi=
  2695. break
  2696. fi
  2697. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2698. fi
  2699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2700. done
  2701. else
  2702. ac_lo= ac_hi=
  2703. fi
  2704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2705. fi
  2706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2707. # Binary search between lo and hi bounds.
  2708. while test "x$ac_lo" != "x$ac_hi"; do
  2709. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2711. /* end confdefs.h. */
  2712. $4
  2713. int
  2714. main ()
  2715. {
  2716. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2717. test_array [0] = 0
  2718. ;
  2719. return 0;
  2720. }
  2721. _ACEOF
  2722. if ac_fn_c_try_compile "$LINENO"; then :
  2723. ac_hi=$ac_mid
  2724. else
  2725. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2726. fi
  2727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2728. done
  2729. case $ac_lo in #((
  2730. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2731. '') ac_retval=1 ;;
  2732. esac
  2733. else
  2734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2735. /* end confdefs.h. */
  2736. $4
  2737. static long int longval () { return $2; }
  2738. static unsigned long int ulongval () { return $2; }
  2739. #include <stdio.h>
  2740. #include <stdlib.h>
  2741. int
  2742. main ()
  2743. {
  2744. FILE *f = fopen ("conftest.val", "w");
  2745. if (! f)
  2746. return 1;
  2747. if (($2) < 0)
  2748. {
  2749. long int i = longval ();
  2750. if (i != ($2))
  2751. return 1;
  2752. fprintf (f, "%ld", i);
  2753. }
  2754. else
  2755. {
  2756. unsigned long int i = ulongval ();
  2757. if (i != ($2))
  2758. return 1;
  2759. fprintf (f, "%lu", i);
  2760. }
  2761. /* Do not output a trailing newline, as this causes \r\n confusion
  2762. on some platforms. */
  2763. return ferror (f) || fclose (f) != 0;
  2764. ;
  2765. return 0;
  2766. }
  2767. _ACEOF
  2768. if ac_fn_c_try_run "$LINENO"; then :
  2769. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2770. else
  2771. ac_retval=1
  2772. fi
  2773. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2774. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2775. rm -f conftest.val
  2776. fi
  2777. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2778. return $ac_retval
  2779. } # ac_fn_c_compute_int
  2780. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2781. # -------------------------------------------
  2782. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2783. # variable VAR accordingly.
  2784. ac_fn_c_check_type ()
  2785. {
  2786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2788. $as_echo_n "checking for $2... " >&6; }
  2789. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2790. $as_echo_n "(cached) " >&6
  2791. else
  2792. eval "$3=no"
  2793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2794. /* end confdefs.h. */
  2795. $4
  2796. int
  2797. main ()
  2798. {
  2799. if (sizeof ($2))
  2800. return 0;
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. if ac_fn_c_try_compile "$LINENO"; then :
  2806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2807. /* end confdefs.h. */
  2808. $4
  2809. int
  2810. main ()
  2811. {
  2812. if (sizeof (($2)))
  2813. return 0;
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. if ac_fn_c_try_compile "$LINENO"; then :
  2819. else
  2820. eval "$3=yes"
  2821. fi
  2822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. fi
  2824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2825. fi
  2826. eval ac_res=\$$3
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2828. $as_echo "$ac_res" >&6; }
  2829. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2830. } # ac_fn_c_check_type
  2831. cat >config.log <<_ACEOF
  2832. This file contains any messages produced by compilers while
  2833. running configure, to aid debugging if configure makes a mistake.
  2834. It was created by $as_me, which was
  2835. generated by GNU Autoconf 2.64. Invocation command line was
  2836. $ $0 $@
  2837. _ACEOF
  2838. exec 5>>config.log
  2839. {
  2840. cat <<_ASUNAME
  2841. ## --------- ##
  2842. ## Platform. ##
  2843. ## --------- ##
  2844. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2845. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2846. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2847. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2848. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2849. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2850. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2851. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2852. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2853. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2854. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2855. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2856. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2857. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2858. _ASUNAME
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. $as_echo "PATH: $as_dir"
  2865. done
  2866. IFS=$as_save_IFS
  2867. } >&5
  2868. cat >&5 <<_ACEOF
  2869. ## ----------- ##
  2870. ## Core tests. ##
  2871. ## ----------- ##
  2872. _ACEOF
  2873. # Keep a trace of the command line.
  2874. # Strip out --no-create and --no-recursion so they do not pile up.
  2875. # Strip out --silent because we don't want to record it for future runs.
  2876. # Also quote any args containing shell meta-characters.
  2877. # Make two passes to allow for proper duplicate-argument suppression.
  2878. ac_configure_args=
  2879. ac_configure_args0=
  2880. ac_configure_args1=
  2881. ac_must_keep_next=false
  2882. for ac_pass in 1 2
  2883. do
  2884. for ac_arg
  2885. do
  2886. case $ac_arg in
  2887. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2889. | -silent | --silent | --silen | --sile | --sil)
  2890. continue ;;
  2891. *\'*)
  2892. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2893. esac
  2894. case $ac_pass in
  2895. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2896. 2)
  2897. as_fn_append ac_configure_args1 " '$ac_arg'"
  2898. if test $ac_must_keep_next = true; then
  2899. ac_must_keep_next=false # Got value, back to normal.
  2900. else
  2901. case $ac_arg in
  2902. *=* | --config-cache | -C | -disable-* | --disable-* \
  2903. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2904. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2905. | -with-* | --with-* | -without-* | --without-* | --x)
  2906. case "$ac_configure_args0 " in
  2907. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2908. esac
  2909. ;;
  2910. -* ) ac_must_keep_next=true ;;
  2911. esac
  2912. fi
  2913. as_fn_append ac_configure_args " '$ac_arg'"
  2914. ;;
  2915. esac
  2916. done
  2917. done
  2918. { ac_configure_args0=; unset ac_configure_args0;}
  2919. { ac_configure_args1=; unset ac_configure_args1;}
  2920. # When interrupted or exit'd, cleanup temporary files, and complete
  2921. # config.log. We remove comments because anyway the quotes in there
  2922. # would cause problems or look ugly.
  2923. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2924. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2925. trap 'exit_status=$?
  2926. # Save into config.log some information that might help in debugging.
  2927. {
  2928. echo
  2929. cat <<\_ASBOX
  2930. ## ---------------- ##
  2931. ## Cache variables. ##
  2932. ## ---------------- ##
  2933. _ASBOX
  2934. echo
  2935. # The following way of writing the cache mishandles newlines in values,
  2936. (
  2937. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2938. eval ac_val=\$$ac_var
  2939. case $ac_val in #(
  2940. *${as_nl}*)
  2941. case $ac_var in #(
  2942. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2943. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2944. esac
  2945. case $ac_var in #(
  2946. _ | IFS | as_nl) ;; #(
  2947. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2948. *) { eval $ac_var=; unset $ac_var;} ;;
  2949. esac ;;
  2950. esac
  2951. done
  2952. (set) 2>&1 |
  2953. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2954. *${as_nl}ac_space=\ *)
  2955. sed -n \
  2956. "s/'\''/'\''\\\\'\'''\''/g;
  2957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2958. ;; #(
  2959. *)
  2960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2961. ;;
  2962. esac |
  2963. sort
  2964. )
  2965. echo
  2966. cat <<\_ASBOX
  2967. ## ----------------- ##
  2968. ## Output variables. ##
  2969. ## ----------------- ##
  2970. _ASBOX
  2971. echo
  2972. for ac_var in $ac_subst_vars
  2973. do
  2974. eval ac_val=\$$ac_var
  2975. case $ac_val in
  2976. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2977. esac
  2978. $as_echo "$ac_var='\''$ac_val'\''"
  2979. done | sort
  2980. echo
  2981. if test -n "$ac_subst_files"; then
  2982. cat <<\_ASBOX
  2983. ## ------------------- ##
  2984. ## File substitutions. ##
  2985. ## ------------------- ##
  2986. _ASBOX
  2987. echo
  2988. for ac_var in $ac_subst_files
  2989. do
  2990. eval ac_val=\$$ac_var
  2991. case $ac_val in
  2992. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2993. esac
  2994. $as_echo "$ac_var='\''$ac_val'\''"
  2995. done | sort
  2996. echo
  2997. fi
  2998. if test -s confdefs.h; then
  2999. cat <<\_ASBOX
  3000. ## ----------- ##
  3001. ## confdefs.h. ##
  3002. ## ----------- ##
  3003. _ASBOX
  3004. echo
  3005. cat confdefs.h
  3006. echo
  3007. fi
  3008. test "$ac_signal" != 0 &&
  3009. $as_echo "$as_me: caught signal $ac_signal"
  3010. $as_echo "$as_me: exit $exit_status"
  3011. } >&5
  3012. rm -f core *.core core.conftest.* &&
  3013. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3014. exit $exit_status
  3015. ' 0
  3016. for ac_signal in 1 2 13 15; do
  3017. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3018. done
  3019. ac_signal=0
  3020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3021. rm -f -r conftest* confdefs.h
  3022. $as_echo "/* confdefs.h */" > confdefs.h
  3023. # Predefined preprocessor variables.
  3024. cat >>confdefs.h <<_ACEOF
  3025. #define PACKAGE_NAME "$PACKAGE_NAME"
  3026. _ACEOF
  3027. cat >>confdefs.h <<_ACEOF
  3028. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3029. _ACEOF
  3030. cat >>confdefs.h <<_ACEOF
  3031. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3032. _ACEOF
  3033. cat >>confdefs.h <<_ACEOF
  3034. #define PACKAGE_STRING "$PACKAGE_STRING"
  3035. _ACEOF
  3036. cat >>confdefs.h <<_ACEOF
  3037. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3038. _ACEOF
  3039. cat >>confdefs.h <<_ACEOF
  3040. #define PACKAGE_URL "$PACKAGE_URL"
  3041. _ACEOF
  3042. # Let the site file select an alternate cache file if it wants to.
  3043. # Prefer an explicitly selected file to automatically selected ones.
  3044. ac_site_file1=NONE
  3045. ac_site_file2=NONE
  3046. if test -n "$CONFIG_SITE"; then
  3047. ac_site_file1=$CONFIG_SITE
  3048. elif test "x$prefix" != xNONE; then
  3049. ac_site_file1=$prefix/share/config.site
  3050. ac_site_file2=$prefix/etc/config.site
  3051. else
  3052. ac_site_file1=$ac_default_prefix/share/config.site
  3053. ac_site_file2=$ac_default_prefix/etc/config.site
  3054. fi
  3055. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3056. do
  3057. test "x$ac_site_file" = xNONE && continue
  3058. if test -r "$ac_site_file"; then
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3060. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3061. sed 's/^/| /' "$ac_site_file" >&5
  3062. . "$ac_site_file"
  3063. fi
  3064. done
  3065. if test -r "$cache_file"; then
  3066. # Some versions of bash will fail to source /dev/null (special
  3067. # files actually), so we avoid doing that.
  3068. if test -f "$cache_file"; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3070. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3071. case $cache_file in
  3072. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3073. *) . "./$cache_file";;
  3074. esac
  3075. fi
  3076. else
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3078. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3079. >$cache_file
  3080. fi
  3081. as_fn_append ac_func_list " canonicalize_file_name"
  3082. as_fn_append ac_func_list " getcwd"
  3083. as_fn_append ac_func_list " readlink"
  3084. as_fn_append ac_func_list " realpath"
  3085. as_fn_append ac_header_list " sys/param.h"
  3086. as_fn_append ac_header_list " dirent.h"
  3087. as_fn_append ac_func_list " btowc"
  3088. as_fn_append ac_func_list " isblank"
  3089. as_fn_append ac_func_list " iswctype"
  3090. as_fn_append ac_func_list " mbsrtowcs"
  3091. as_fn_append ac_func_list " mempcpy"
  3092. as_fn_append ac_func_list " wmemchr"
  3093. as_fn_append ac_func_list " wmemcpy"
  3094. as_fn_append ac_func_list " wmempcpy"
  3095. as_fn_append ac_header_list " wctype.h"
  3096. gl_fnmatch_required=GNU
  3097. as_fn_append ac_header_list " sys/time.h"
  3098. as_fn_append ac_header_list " sys/socket.h"
  3099. as_fn_append ac_func_list " gettimeofday"
  3100. as_fn_append ac_header_list " wchar.h"
  3101. as_fn_append ac_header_list " stdint.h"
  3102. as_fn_append ac_header_list " inttypes.h"
  3103. as_fn_append ac_header_list " unistd.h"
  3104. as_fn_append ac_func_list " symlink"
  3105. as_fn_append ac_func_list " lstat"
  3106. as_fn_append ac_header_list " math.h"
  3107. as_fn_append ac_func_list " mbsinit"
  3108. as_fn_append ac_func_list " mbrtowc"
  3109. as_fn_append ac_header_list " sys/mman.h"
  3110. as_fn_append ac_func_list " mprotect"
  3111. as_fn_append ac_func_list " link"
  3112. as_fn_append ac_header_list " sys/stat.h"
  3113. as_fn_append ac_header_list " features.h"
  3114. as_fn_append ac_func_list " iswcntrl"
  3115. # Check that the precious variables saved in the cache have kept the same
  3116. # value.
  3117. ac_cache_corrupted=false
  3118. for ac_var in $ac_precious_vars; do
  3119. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3120. eval ac_new_set=\$ac_env_${ac_var}_set
  3121. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3122. eval ac_new_val=\$ac_env_${ac_var}_value
  3123. case $ac_old_set,$ac_new_set in
  3124. set,)
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3126. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3127. ac_cache_corrupted=: ;;
  3128. ,set)
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3130. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3131. ac_cache_corrupted=: ;;
  3132. ,);;
  3133. *)
  3134. if test "x$ac_old_val" != "x$ac_new_val"; then
  3135. # differences in whitespace do not lead to failure.
  3136. ac_old_val_w=`echo x $ac_old_val`
  3137. ac_new_val_w=`echo x $ac_new_val`
  3138. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3140. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3141. ac_cache_corrupted=:
  3142. else
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3144. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3145. eval $ac_var=\$ac_old_val
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3148. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3150. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3151. fi;;
  3152. esac
  3153. # Pass precious variables to config.status.
  3154. if test "$ac_new_set" = set; then
  3155. case $ac_new_val in
  3156. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3157. *) ac_arg=$ac_var=$ac_new_val ;;
  3158. esac
  3159. case " $ac_configure_args " in
  3160. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3161. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3162. esac
  3163. fi
  3164. done
  3165. if $ac_cache_corrupted; then
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3169. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3170. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3171. fi
  3172. ## -------------------- ##
  3173. ## Main body of script. ##
  3174. ## -------------------- ##
  3175. ac_ext=c
  3176. ac_cpp='$CPP $CPPFLAGS'
  3177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3180. ac_config_headers="$ac_config_headers config.h:config.in"
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3182. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3183. # Check whether --enable-maintainer-mode was given.
  3184. if test "${enable_maintainer_mode+set}" = set; then :
  3185. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3186. else
  3187. USE_MAINTAINER_MODE=no
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3190. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3191. if test $USE_MAINTAINER_MODE = yes; then
  3192. MAINTAINER_MODE_TRUE=
  3193. MAINTAINER_MODE_FALSE='#'
  3194. else
  3195. MAINTAINER_MODE_TRUE='#'
  3196. MAINTAINER_MODE_FALSE=
  3197. fi
  3198. MAINT=$MAINTAINER_MODE_TRUE
  3199. ac_ext=c
  3200. ac_cpp='$CPP $CPPFLAGS'
  3201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3204. if test -n "$ac_tool_prefix"; then
  3205. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3206. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3208. $as_echo_n "checking for $ac_word... " >&6; }
  3209. if test "${ac_cv_prog_CC+set}" = set; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -n "$CC"; then
  3213. ac_cv_prog_CC="$CC" # Let the user override the test.
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3222. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. IFS=$as_save_IFS
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3234. $as_echo "$CC" >&6; }
  3235. else
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3237. $as_echo "no" >&6; }
  3238. fi
  3239. fi
  3240. if test -z "$ac_cv_prog_CC"; then
  3241. ac_ct_CC=$CC
  3242. # Extract the first word of "gcc", so it can be a program name with args.
  3243. set dummy gcc; ac_word=$2
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$ac_ct_CC"; then
  3250. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3259. ac_cv_prog_ac_ct_CC="gcc"
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. IFS=$as_save_IFS
  3266. fi
  3267. fi
  3268. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3269. if test -n "$ac_ct_CC"; then
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3271. $as_echo "$ac_ct_CC" >&6; }
  3272. else
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3274. $as_echo "no" >&6; }
  3275. fi
  3276. if test "x$ac_ct_CC" = x; then
  3277. CC=""
  3278. else
  3279. case $cross_compiling:$ac_tool_warned in
  3280. yes:)
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3283. ac_tool_warned=yes ;;
  3284. esac
  3285. CC=$ac_ct_CC
  3286. fi
  3287. else
  3288. CC="$ac_cv_prog_CC"
  3289. fi
  3290. if test -z "$CC"; then
  3291. if test -n "$ac_tool_prefix"; then
  3292. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3293. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3295. $as_echo_n "checking for $ac_word... " >&6; }
  3296. if test "${ac_cv_prog_CC+set}" = set; then :
  3297. $as_echo_n "(cached) " >&6
  3298. else
  3299. if test -n "$CC"; then
  3300. ac_cv_prog_CC="$CC" # Let the user override the test.
  3301. else
  3302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3303. for as_dir in $PATH
  3304. do
  3305. IFS=$as_save_IFS
  3306. test -z "$as_dir" && as_dir=.
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3309. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3311. break 2
  3312. fi
  3313. done
  3314. done
  3315. IFS=$as_save_IFS
  3316. fi
  3317. fi
  3318. CC=$ac_cv_prog_CC
  3319. if test -n "$CC"; then
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3321. $as_echo "$CC" >&6; }
  3322. else
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3324. $as_echo "no" >&6; }
  3325. fi
  3326. fi
  3327. fi
  3328. if test -z "$CC"; then
  3329. # Extract the first word of "cc", so it can be a program name with args.
  3330. set dummy cc; ac_word=$2
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3332. $as_echo_n "checking for $ac_word... " >&6; }
  3333. if test "${ac_cv_prog_CC+set}" = set; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. if test -n "$CC"; then
  3337. ac_cv_prog_CC="$CC" # Let the user override the test.
  3338. else
  3339. ac_prog_rejected=no
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3347. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3348. ac_prog_rejected=yes
  3349. continue
  3350. fi
  3351. ac_cv_prog_CC="cc"
  3352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. if test $ac_prog_rejected = yes; then
  3359. # We found a bogon in the path, so make sure we never use it.
  3360. set dummy $ac_cv_prog_CC
  3361. shift
  3362. if test $# != 0; then
  3363. # We chose a different compiler from the bogus one.
  3364. # However, it has the same basename, so the bogon will be chosen
  3365. # first if we set CC to just the basename; use the full file name.
  3366. shift
  3367. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3368. fi
  3369. fi
  3370. fi
  3371. fi
  3372. CC=$ac_cv_prog_CC
  3373. if test -n "$CC"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3375. $as_echo "$CC" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. fi
  3381. if test -z "$CC"; then
  3382. if test -n "$ac_tool_prefix"; then
  3383. for ac_prog in cl.exe
  3384. do
  3385. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3386. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3388. $as_echo_n "checking for $ac_word... " >&6; }
  3389. if test "${ac_cv_prog_CC+set}" = set; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -n "$CC"; then
  3393. ac_cv_prog_CC="$CC" # Let the user override the test.
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3402. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. CC=$ac_cv_prog_CC
  3412. if test -n "$CC"; then
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3414. $as_echo "$CC" >&6; }
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. fi
  3419. test -n "$CC" && break
  3420. done
  3421. fi
  3422. if test -z "$CC"; then
  3423. ac_ct_CC=$CC
  3424. for ac_prog in cl.exe
  3425. do
  3426. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3427. set dummy $ac_prog; ac_word=$2
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. $as_echo_n "checking for $ac_word... " >&6; }
  3430. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. if test -n "$ac_ct_CC"; then
  3434. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3435. else
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439. IFS=$as_save_IFS
  3440. test -z "$as_dir" && as_dir=.
  3441. for ac_exec_ext in '' $ac_executable_extensions; do
  3442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3443. ac_cv_prog_ac_ct_CC="$ac_prog"
  3444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3445. break 2
  3446. fi
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. fi
  3451. fi
  3452. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3453. if test -n "$ac_ct_CC"; then
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3455. $as_echo "$ac_ct_CC" >&6; }
  3456. else
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3458. $as_echo "no" >&6; }
  3459. fi
  3460. test -n "$ac_ct_CC" && break
  3461. done
  3462. if test "x$ac_ct_CC" = x; then
  3463. CC=""
  3464. else
  3465. case $cross_compiling:$ac_tool_warned in
  3466. yes:)
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3469. ac_tool_warned=yes ;;
  3470. esac
  3471. CC=$ac_ct_CC
  3472. fi
  3473. fi
  3474. fi
  3475. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3477. as_fn_error "no acceptable C compiler found in \$PATH
  3478. See \`config.log' for more details." "$LINENO" 5; }
  3479. # Provide some information about the compiler.
  3480. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3481. set X $ac_compile
  3482. ac_compiler=$2
  3483. for ac_option in --version -v -V -qversion; do
  3484. { { ac_try="$ac_compiler $ac_option >&5"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3492. ac_status=$?
  3493. if test -s conftest.err; then
  3494. sed '10a\
  3495. ... rest of stderr output deleted ...
  3496. 10q' conftest.err >conftest.er1
  3497. cat conftest.er1 >&5
  3498. rm -f conftest.er1 conftest.err
  3499. fi
  3500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3501. test $ac_status = 0; }
  3502. done
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. #include <stdio.h>
  3506. int
  3507. main ()
  3508. {
  3509. FILE *f = fopen ("conftest.out", "w");
  3510. return ferror (f) || fclose (f) != 0;
  3511. ;
  3512. return 0;
  3513. }
  3514. _ACEOF
  3515. ac_clean_files_save=$ac_clean_files
  3516. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3517. # Try to create an executable without -o first, disregard a.out.
  3518. # It will help us diagnose broken compilers, and finding out an intuition
  3519. # of exeext.
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3521. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3522. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3523. # The possible output files:
  3524. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3525. ac_rmfiles=
  3526. for ac_file in $ac_files
  3527. do
  3528. case $ac_file in
  3529. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3530. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3531. esac
  3532. done
  3533. rm -f $ac_rmfiles
  3534. if { { ac_try="$ac_link_default"
  3535. case "(($ac_try" in
  3536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3537. *) ac_try_echo=$ac_try;;
  3538. esac
  3539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3540. $as_echo "$ac_try_echo"; } >&5
  3541. (eval "$ac_link_default") 2>&5
  3542. ac_status=$?
  3543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3544. test $ac_status = 0; }; then :
  3545. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3546. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3547. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3548. # so that the user can short-circuit this test for compilers unknown to
  3549. # Autoconf.
  3550. for ac_file in $ac_files ''
  3551. do
  3552. test -f "$ac_file" || continue
  3553. case $ac_file in
  3554. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3555. ;;
  3556. [ab].out )
  3557. # We found the default executable, but exeext='' is most
  3558. # certainly right.
  3559. break;;
  3560. *.* )
  3561. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3562. then :; else
  3563. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3564. fi
  3565. # We set ac_cv_exeext here because the later test for it is not
  3566. # safe: cross compilers may not add the suffix if given an `-o'
  3567. # argument, so we may need to know it at that point already.
  3568. # Even if this section looks crufty: it has the advantage of
  3569. # actually working.
  3570. break;;
  3571. * )
  3572. break;;
  3573. esac
  3574. done
  3575. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3576. else
  3577. ac_file=''
  3578. fi
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3580. $as_echo "$ac_file" >&6; }
  3581. if test -z "$ac_file"; then :
  3582. $as_echo "$as_me: failed program was:" >&5
  3583. sed 's/^/| /' conftest.$ac_ext >&5
  3584. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3586. { as_fn_set_status 77
  3587. as_fn_error "C compiler cannot create executables
  3588. See \`config.log' for more details." "$LINENO" 5; }; }
  3589. fi
  3590. ac_exeext=$ac_cv_exeext
  3591. # Check that the compiler produces executables we can run. If not, either
  3592. # the compiler is broken, or we cross compile.
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3594. $as_echo_n "checking whether the C compiler works... " >&6; }
  3595. # If not cross compiling, check that we can run a simple program.
  3596. if test "$cross_compiling" != yes; then
  3597. if { ac_try='./$ac_file'
  3598. { { case "(($ac_try" in
  3599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3600. *) ac_try_echo=$ac_try;;
  3601. esac
  3602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3603. $as_echo "$ac_try_echo"; } >&5
  3604. (eval "$ac_try") 2>&5
  3605. ac_status=$?
  3606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3607. test $ac_status = 0; }; }; then
  3608. cross_compiling=no
  3609. else
  3610. if test "$cross_compiling" = maybe; then
  3611. cross_compiling=yes
  3612. else
  3613. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3614. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3615. as_fn_error "cannot run C compiled programs.
  3616. If you meant to cross compile, use \`--host'.
  3617. See \`config.log' for more details." "$LINENO" 5; }
  3618. fi
  3619. fi
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3622. $as_echo "yes" >&6; }
  3623. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3624. ac_clean_files=$ac_clean_files_save
  3625. # Check that the compiler produces executables we can run. If not, either
  3626. # the compiler is broken, or we cross compile.
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3628. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3630. $as_echo "$cross_compiling" >&6; }
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3632. $as_echo_n "checking for suffix of executables... " >&6; }
  3633. if { { ac_try="$ac_link"
  3634. case "(($ac_try" in
  3635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3636. *) ac_try_echo=$ac_try;;
  3637. esac
  3638. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3639. $as_echo "$ac_try_echo"; } >&5
  3640. (eval "$ac_link") 2>&5
  3641. ac_status=$?
  3642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3643. test $ac_status = 0; }; then :
  3644. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3645. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3646. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3647. # `rm'.
  3648. for ac_file in conftest.exe conftest conftest.*; do
  3649. test -f "$ac_file" || continue
  3650. case $ac_file in
  3651. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3652. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3653. break;;
  3654. * ) break;;
  3655. esac
  3656. done
  3657. else
  3658. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3659. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3660. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3661. See \`config.log' for more details." "$LINENO" 5; }
  3662. fi
  3663. rm -f conftest$ac_cv_exeext
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3665. $as_echo "$ac_cv_exeext" >&6; }
  3666. rm -f conftest.$ac_ext
  3667. EXEEXT=$ac_cv_exeext
  3668. ac_exeext=$EXEEXT
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3670. $as_echo_n "checking for suffix of object files... " >&6; }
  3671. if test "${ac_cv_objext+set}" = set; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3675. /* end confdefs.h. */
  3676. int
  3677. main ()
  3678. {
  3679. ;
  3680. return 0;
  3681. }
  3682. _ACEOF
  3683. rm -f conftest.o conftest.obj
  3684. if { { ac_try="$ac_compile"
  3685. case "(($ac_try" in
  3686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3687. *) ac_try_echo=$ac_try;;
  3688. esac
  3689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3690. $as_echo "$ac_try_echo"; } >&5
  3691. (eval "$ac_compile") 2>&5
  3692. ac_status=$?
  3693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3694. test $ac_status = 0; }; then :
  3695. for ac_file in conftest.o conftest.obj conftest.*; do
  3696. test -f "$ac_file" || continue;
  3697. case $ac_file in
  3698. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3699. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3700. break;;
  3701. esac
  3702. done
  3703. else
  3704. $as_echo "$as_me: failed program was:" >&5
  3705. sed 's/^/| /' conftest.$ac_ext >&5
  3706. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3707. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3708. as_fn_error "cannot compute suffix of object files: cannot compile
  3709. See \`config.log' for more details." "$LINENO" 5; }
  3710. fi
  3711. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3714. $as_echo "$ac_cv_objext" >&6; }
  3715. OBJEXT=$ac_cv_objext
  3716. ac_objext=$OBJEXT
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3718. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3719. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3720. $as_echo_n "(cached) " >&6
  3721. else
  3722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3723. /* end confdefs.h. */
  3724. int
  3725. main ()
  3726. {
  3727. #ifndef __GNUC__
  3728. choke me
  3729. #endif
  3730. ;
  3731. return 0;
  3732. }
  3733. _ACEOF
  3734. if ac_fn_c_try_compile "$LINENO"; then :
  3735. ac_compiler_gnu=yes
  3736. else
  3737. ac_compiler_gnu=no
  3738. fi
  3739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3743. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3744. if test $ac_compiler_gnu = yes; then
  3745. GCC=yes
  3746. else
  3747. GCC=
  3748. fi
  3749. ac_test_CFLAGS=${CFLAGS+set}
  3750. ac_save_CFLAGS=$CFLAGS
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3752. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3753. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. ac_save_c_werror_flag=$ac_c_werror_flag
  3757. ac_c_werror_flag=yes
  3758. ac_cv_prog_cc_g=no
  3759. CFLAGS="-g"
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. if ac_fn_c_try_compile "$LINENO"; then :
  3770. ac_cv_prog_cc_g=yes
  3771. else
  3772. CFLAGS=""
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_c_try_compile "$LINENO"; then :
  3783. else
  3784. ac_c_werror_flag=$ac_save_c_werror_flag
  3785. CFLAGS="-g"
  3786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end confdefs.h. */
  3788. int
  3789. main ()
  3790. {
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. if ac_fn_c_try_compile "$LINENO"; then :
  3796. ac_cv_prog_cc_g=yes
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3799. fi
  3800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3801. fi
  3802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3803. ac_c_werror_flag=$ac_save_c_werror_flag
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3806. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3807. if test "$ac_test_CFLAGS" = set; then
  3808. CFLAGS=$ac_save_CFLAGS
  3809. elif test $ac_cv_prog_cc_g = yes; then
  3810. if test "$GCC" = yes; then
  3811. CFLAGS="-g -O2"
  3812. else
  3813. CFLAGS="-g"
  3814. fi
  3815. else
  3816. if test "$GCC" = yes; then
  3817. CFLAGS="-O2"
  3818. else
  3819. CFLAGS=
  3820. fi
  3821. fi
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3823. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3824. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_cv_prog_cc_c89=no
  3828. ac_save_CC=$CC
  3829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3830. /* end confdefs.h. */
  3831. #include <stdarg.h>
  3832. #include <stdio.h>
  3833. #include <sys/types.h>
  3834. #include <sys/stat.h>
  3835. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3836. struct buf { int x; };
  3837. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3838. static char *e (p, i)
  3839. char **p;
  3840. int i;
  3841. {
  3842. return p[i];
  3843. }
  3844. static char *f (char * (*g) (char **, int), char **p, ...)
  3845. {
  3846. char *s;
  3847. va_list v;
  3848. va_start (v,p);
  3849. s = g (p, va_arg (v,int));
  3850. va_end (v);
  3851. return s;
  3852. }
  3853. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3854. function prototypes and stuff, but not '\xHH' hex character constants.
  3855. These don't provoke an error unfortunately, instead are silently treated
  3856. as 'x'. The following induces an error, until -std is added to get
  3857. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3858. array size at least. It's necessary to write '\x00'==0 to get something
  3859. that's true only with -std. */
  3860. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3861. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3862. inside strings and character constants. */
  3863. #define FOO(x) 'x'
  3864. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3865. int test (int i, double x);
  3866. struct s1 {int (*f) (int a);};
  3867. struct s2 {int (*f) (double a);};
  3868. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3869. int argc;
  3870. char **argv;
  3871. int
  3872. main ()
  3873. {
  3874. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3875. ;
  3876. return 0;
  3877. }
  3878. _ACEOF
  3879. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3880. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3881. do
  3882. CC="$ac_save_CC $ac_arg"
  3883. if ac_fn_c_try_compile "$LINENO"; then :
  3884. ac_cv_prog_cc_c89=$ac_arg
  3885. fi
  3886. rm -f core conftest.err conftest.$ac_objext
  3887. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3888. done
  3889. rm -f conftest.$ac_ext
  3890. CC=$ac_save_CC
  3891. fi
  3892. # AC_CACHE_VAL
  3893. case "x$ac_cv_prog_cc_c89" in
  3894. x)
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3896. $as_echo "none needed" >&6; } ;;
  3897. xno)
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3899. $as_echo "unsupported" >&6; } ;;
  3900. *)
  3901. CC="$CC $ac_cv_prog_cc_c89"
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3903. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3904. esac
  3905. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3906. fi
  3907. ac_ext=c
  3908. ac_cpp='$CPP $CPPFLAGS'
  3909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3912. ac_ext=c
  3913. ac_cpp='$CPP $CPPFLAGS'
  3914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3918. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3919. # On Suns, sometimes $CPP names a directory.
  3920. if test -n "$CPP" && test -d "$CPP"; then
  3921. CPP=
  3922. fi
  3923. if test -z "$CPP"; then
  3924. if test "${ac_cv_prog_CPP+set}" = set; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. # Double quotes because CPP needs to be expanded
  3928. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3929. do
  3930. ac_preproc_ok=false
  3931. for ac_c_preproc_warn_flag in '' yes
  3932. do
  3933. # Use a header file that comes with gcc, so configuring glibc
  3934. # with a fresh cross-compiler works.
  3935. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3936. # <limits.h> exists even on freestanding compilers.
  3937. # On the NeXT, cc -E runs the code through the compiler's parser,
  3938. # not just through cpp. "Syntax error" is here to catch this case.
  3939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h. */
  3941. #ifdef __STDC__
  3942. # include <limits.h>
  3943. #else
  3944. # include <assert.h>
  3945. #endif
  3946. Syntax error
  3947. _ACEOF
  3948. if ac_fn_c_try_cpp "$LINENO"; then :
  3949. else
  3950. # Broken: fails on valid input.
  3951. continue
  3952. fi
  3953. rm -f conftest.err conftest.$ac_ext
  3954. # OK, works on sane cases. Now check whether nonexistent headers
  3955. # can be detected and how.
  3956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3957. /* end confdefs.h. */
  3958. #include <ac_nonexistent.h>
  3959. _ACEOF
  3960. if ac_fn_c_try_cpp "$LINENO"; then :
  3961. # Broken: success on invalid input.
  3962. continue
  3963. else
  3964. # Passes both tests.
  3965. ac_preproc_ok=:
  3966. break
  3967. fi
  3968. rm -f conftest.err conftest.$ac_ext
  3969. done
  3970. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3971. rm -f conftest.err conftest.$ac_ext
  3972. if $ac_preproc_ok; then :
  3973. break
  3974. fi
  3975. done
  3976. ac_cv_prog_CPP=$CPP
  3977. fi
  3978. CPP=$ac_cv_prog_CPP
  3979. else
  3980. ac_cv_prog_CPP=$CPP
  3981. fi
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3983. $as_echo "$CPP" >&6; }
  3984. ac_preproc_ok=false
  3985. for ac_c_preproc_warn_flag in '' yes
  3986. do
  3987. # Use a header file that comes with gcc, so configuring glibc
  3988. # with a fresh cross-compiler works.
  3989. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3990. # <limits.h> exists even on freestanding compilers.
  3991. # On the NeXT, cc -E runs the code through the compiler's parser,
  3992. # not just through cpp. "Syntax error" is here to catch this case.
  3993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3994. /* end confdefs.h. */
  3995. #ifdef __STDC__
  3996. # include <limits.h>
  3997. #else
  3998. # include <assert.h>
  3999. #endif
  4000. Syntax error
  4001. _ACEOF
  4002. if ac_fn_c_try_cpp "$LINENO"; then :
  4003. else
  4004. # Broken: fails on valid input.
  4005. continue
  4006. fi
  4007. rm -f conftest.err conftest.$ac_ext
  4008. # OK, works on sane cases. Now check whether nonexistent headers
  4009. # can be detected and how.
  4010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4011. /* end confdefs.h. */
  4012. #include <ac_nonexistent.h>
  4013. _ACEOF
  4014. if ac_fn_c_try_cpp "$LINENO"; then :
  4015. # Broken: success on invalid input.
  4016. continue
  4017. else
  4018. # Passes both tests.
  4019. ac_preproc_ok=:
  4020. break
  4021. fi
  4022. rm -f conftest.err conftest.$ac_ext
  4023. done
  4024. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4025. rm -f conftest.err conftest.$ac_ext
  4026. if $ac_preproc_ok; then :
  4027. else
  4028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4030. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4031. See \`config.log' for more details." "$LINENO" 5; }
  4032. fi
  4033. ac_ext=c
  4034. ac_cpp='$CPP $CPPFLAGS'
  4035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4039. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4040. if test "${ac_cv_path_GREP+set}" = set; then :
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. if test -z "$GREP"; then
  4044. ac_path_GREP_found=false
  4045. # Loop through the user's path and test for each of PROGNAME-LIST
  4046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4047. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4048. do
  4049. IFS=$as_save_IFS
  4050. test -z "$as_dir" && as_dir=.
  4051. for ac_prog in grep ggrep; do
  4052. for ac_exec_ext in '' $ac_executable_extensions; do
  4053. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4054. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4055. # Check for GNU ac_path_GREP and select it if it is found.
  4056. # Check for GNU $ac_path_GREP
  4057. case `"$ac_path_GREP" --version 2>&1` in
  4058. *GNU*)
  4059. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4060. *)
  4061. ac_count=0
  4062. $as_echo_n 0123456789 >"conftest.in"
  4063. while :
  4064. do
  4065. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4066. mv "conftest.tmp" "conftest.in"
  4067. cp "conftest.in" "conftest.nl"
  4068. $as_echo 'GREP' >> "conftest.nl"
  4069. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4070. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4071. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4072. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4073. # Best one so far, save it but keep looking for a better one
  4074. ac_cv_path_GREP="$ac_path_GREP"
  4075. ac_path_GREP_max=$ac_count
  4076. fi
  4077. # 10*(2^10) chars as input seems more than enough
  4078. test $ac_count -gt 10 && break
  4079. done
  4080. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4081. esac
  4082. $ac_path_GREP_found && break 3
  4083. done
  4084. done
  4085. done
  4086. IFS=$as_save_IFS
  4087. if test -z "$ac_cv_path_GREP"; then
  4088. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4089. fi
  4090. else
  4091. ac_cv_path_GREP=$GREP
  4092. fi
  4093. fi
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4095. $as_echo "$ac_cv_path_GREP" >&6; }
  4096. GREP="$ac_cv_path_GREP"
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4098. $as_echo_n "checking for egrep... " >&6; }
  4099. if test "${ac_cv_path_EGREP+set}" = set; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4103. then ac_cv_path_EGREP="$GREP -E"
  4104. else
  4105. if test -z "$EGREP"; then
  4106. ac_path_EGREP_found=false
  4107. # Loop through the user's path and test for each of PROGNAME-LIST
  4108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4109. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4110. do
  4111. IFS=$as_save_IFS
  4112. test -z "$as_dir" && as_dir=.
  4113. for ac_prog in egrep; do
  4114. for ac_exec_ext in '' $ac_executable_extensions; do
  4115. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4116. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4117. # Check for GNU ac_path_EGREP and select it if it is found.
  4118. # Check for GNU $ac_path_EGREP
  4119. case `"$ac_path_EGREP" --version 2>&1` in
  4120. *GNU*)
  4121. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4122. *)
  4123. ac_count=0
  4124. $as_echo_n 0123456789 >"conftest.in"
  4125. while :
  4126. do
  4127. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4128. mv "conftest.tmp" "conftest.in"
  4129. cp "conftest.in" "conftest.nl"
  4130. $as_echo 'EGREP' >> "conftest.nl"
  4131. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4132. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4133. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4134. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4135. # Best one so far, save it but keep looking for a better one
  4136. ac_cv_path_EGREP="$ac_path_EGREP"
  4137. ac_path_EGREP_max=$ac_count
  4138. fi
  4139. # 10*(2^10) chars as input seems more than enough
  4140. test $ac_count -gt 10 && break
  4141. done
  4142. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4143. esac
  4144. $ac_path_EGREP_found && break 3
  4145. done
  4146. done
  4147. done
  4148. IFS=$as_save_IFS
  4149. if test -z "$ac_cv_path_EGREP"; then
  4150. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4151. fi
  4152. else
  4153. ac_cv_path_EGREP=$EGREP
  4154. fi
  4155. fi
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4158. $as_echo "$ac_cv_path_EGREP" >&6; }
  4159. EGREP="$ac_cv_path_EGREP"
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4161. $as_echo_n "checking for ANSI C header files... " >&6; }
  4162. if test "${ac_cv_header_stdc+set}" = set; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. #include <stdlib.h>
  4168. #include <stdarg.h>
  4169. #include <string.h>
  4170. #include <float.h>
  4171. int
  4172. main ()
  4173. {
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. if ac_fn_c_try_compile "$LINENO"; then :
  4179. ac_cv_header_stdc=yes
  4180. else
  4181. ac_cv_header_stdc=no
  4182. fi
  4183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4184. if test $ac_cv_header_stdc = yes; then
  4185. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4187. /* end confdefs.h. */
  4188. #include <string.h>
  4189. _ACEOF
  4190. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4191. $EGREP "memchr" >/dev/null 2>&1; then :
  4192. else
  4193. ac_cv_header_stdc=no
  4194. fi
  4195. rm -f conftest*
  4196. fi
  4197. if test $ac_cv_header_stdc = yes; then
  4198. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. #include <stdlib.h>
  4202. _ACEOF
  4203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4204. $EGREP "free" >/dev/null 2>&1; then :
  4205. else
  4206. ac_cv_header_stdc=no
  4207. fi
  4208. rm -f conftest*
  4209. fi
  4210. if test $ac_cv_header_stdc = yes; then
  4211. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4212. if test "$cross_compiling" = yes; then :
  4213. :
  4214. else
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. #include <ctype.h>
  4218. #include <stdlib.h>
  4219. #if ((' ' & 0x0FF) == 0x020)
  4220. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4221. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4222. #else
  4223. # define ISLOWER(c) \
  4224. (('a' <= (c) && (c) <= 'i') \
  4225. || ('j' <= (c) && (c) <= 'r') \
  4226. || ('s' <= (c) && (c) <= 'z'))
  4227. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4228. #endif
  4229. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4230. int
  4231. main ()
  4232. {
  4233. int i;
  4234. for (i = 0; i < 256; i++)
  4235. if (XOR (islower (i), ISLOWER (i))
  4236. || toupper (i) != TOUPPER (i))
  4237. return 2;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. if ac_fn_c_try_run "$LINENO"; then :
  4242. else
  4243. ac_cv_header_stdc=no
  4244. fi
  4245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4247. fi
  4248. fi
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4251. $as_echo "$ac_cv_header_stdc" >&6; }
  4252. if test $ac_cv_header_stdc = yes; then
  4253. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4254. fi
  4255. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4256. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4257. inttypes.h stdint.h unistd.h
  4258. do :
  4259. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4260. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4261. "
  4262. eval as_val=\$$as_ac_Header
  4263. if test "x$as_val" = x""yes; then :
  4264. cat >>confdefs.h <<_ACEOF
  4265. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4266. _ACEOF
  4267. fi
  4268. done
  4269. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4270. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4271. MINIX=yes
  4272. else
  4273. MINIX=
  4274. fi
  4275. if test "$MINIX" = yes; then
  4276. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4277. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4278. $as_echo "#define _MINIX 1" >>confdefs.h
  4279. $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4282. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4283. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. # define __EXTENSIONS__ 1
  4289. $ac_includes_default
  4290. int
  4291. main ()
  4292. {
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. ac_cv_safe_to_define___extensions__=yes
  4299. else
  4300. ac_cv_safe_to_define___extensions__=no
  4301. fi
  4302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4303. fi
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4305. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4306. test $ac_cv_safe_to_define___extensions__ = yes &&
  4307. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4308. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4309. $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4310. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4311. $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
  4312. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4313. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4315. $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4316. if test "${ac_cv_should_define__xopen_source+set}" = set; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. ac_cv_should_define__xopen_source=no
  4320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end confdefs.h. */
  4322. #include <wchar.h>
  4323. mbstate_t x;
  4324. int
  4325. main ()
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. if ac_fn_c_try_compile "$LINENO"; then :
  4332. else
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. #define _XOPEN_SOURCE 500
  4336. #include <wchar.h>
  4337. mbstate_t x;
  4338. int
  4339. main ()
  4340. {
  4341. ;
  4342. return 0;
  4343. }
  4344. _ACEOF
  4345. if ac_fn_c_try_compile "$LINENO"; then :
  4346. ac_cv_should_define__xopen_source=yes
  4347. fi
  4348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4349. fi
  4350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4351. fi
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4353. $as_echo "$ac_cv_should_define__xopen_source" >&6; }
  4354. test $ac_cv_should_define__xopen_source = yes &&
  4355. $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
  4357. $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
  4358. if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4362. /* end confdefs.h. */
  4363. #ifdef __ACK__
  4364. Amsterdam
  4365. #endif
  4366. _ACEOF
  4367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4368. $EGREP "Amsterdam" >/dev/null 2>&1; then :
  4369. gl_cv_c_amsterdam_compiler=yes
  4370. else
  4371. gl_cv_c_amsterdam_compiler=no
  4372. fi
  4373. rm -f conftest*
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
  4376. $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
  4377. if test -z "$AR"; then
  4378. if test $gl_cv_c_amsterdam_compiler = yes; then
  4379. AR='cc -c.a'
  4380. if test -z "$ARFLAGS"; then
  4381. ARFLAGS='-o'
  4382. fi
  4383. else
  4384. if test -n "$ac_tool_prefix"; then
  4385. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4386. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4388. $as_echo_n "checking for $ac_word... " >&6; }
  4389. if test "${ac_cv_prog_AR+set}" = set; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. if test -n "$AR"; then
  4393. ac_cv_prog_AR="$AR" # Let the user override the test.
  4394. else
  4395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4396. for as_dir in $PATH
  4397. do
  4398. IFS=$as_save_IFS
  4399. test -z "$as_dir" && as_dir=.
  4400. for ac_exec_ext in '' $ac_executable_extensions; do
  4401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4402. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4404. break 2
  4405. fi
  4406. done
  4407. done
  4408. IFS=$as_save_IFS
  4409. fi
  4410. fi
  4411. AR=$ac_cv_prog_AR
  4412. if test -n "$AR"; then
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4414. $as_echo "$AR" >&6; }
  4415. else
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4417. $as_echo "no" >&6; }
  4418. fi
  4419. fi
  4420. if test -z "$ac_cv_prog_AR"; then
  4421. ac_ct_AR=$AR
  4422. # Extract the first word of "ar", so it can be a program name with args.
  4423. set dummy ar; ac_word=$2
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4425. $as_echo_n "checking for $ac_word... " >&6; }
  4426. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test -n "$ac_ct_AR"; then
  4430. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4431. else
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4439. ac_cv_prog_ac_ct_AR="ar"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. fi
  4447. fi
  4448. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4449. if test -n "$ac_ct_AR"; then
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4451. $as_echo "$ac_ct_AR" >&6; }
  4452. else
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. fi
  4456. if test "x$ac_ct_AR" = x; then
  4457. AR="ar"
  4458. else
  4459. case $cross_compiling:$ac_tool_warned in
  4460. yes:)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4462. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4463. ac_tool_warned=yes ;;
  4464. esac
  4465. AR=$ac_ct_AR
  4466. fi
  4467. else
  4468. AR="$ac_cv_prog_AR"
  4469. fi
  4470. if test -z "$ARFLAGS"; then
  4471. ARFLAGS='cr'
  4472. fi
  4473. fi
  4474. else
  4475. if test -z "$ARFLAGS"; then
  4476. ARFLAGS='cr'
  4477. fi
  4478. fi
  4479. if test -z "$RANLIB"; then
  4480. if test $gl_cv_c_amsterdam_compiler = yes; then
  4481. RANLIB=':'
  4482. else
  4483. if test -n "$ac_tool_prefix"; then
  4484. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4485. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4487. $as_echo_n "checking for $ac_word... " >&6; }
  4488. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. if test -n "$RANLIB"; then
  4492. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4493. else
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. test -z "$as_dir" && as_dir=.
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4501. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4503. break 2
  4504. fi
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. fi
  4509. fi
  4510. RANLIB=$ac_cv_prog_RANLIB
  4511. if test -n "$RANLIB"; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4513. $as_echo "$RANLIB" >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4516. $as_echo "no" >&6; }
  4517. fi
  4518. fi
  4519. if test -z "$ac_cv_prog_RANLIB"; then
  4520. ac_ct_RANLIB=$RANLIB
  4521. # Extract the first word of "ranlib", so it can be a program name with args.
  4522. set dummy ranlib; ac_word=$2
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4524. $as_echo_n "checking for $ac_word... " >&6; }
  4525. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. if test -n "$ac_ct_RANLIB"; then
  4529. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4530. else
  4531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4532. for as_dir in $PATH
  4533. do
  4534. IFS=$as_save_IFS
  4535. test -z "$as_dir" && as_dir=.
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4538. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4540. break 2
  4541. fi
  4542. done
  4543. done
  4544. IFS=$as_save_IFS
  4545. fi
  4546. fi
  4547. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4548. if test -n "$ac_ct_RANLIB"; then
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4550. $as_echo "$ac_ct_RANLIB" >&6; }
  4551. else
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4553. $as_echo "no" >&6; }
  4554. fi
  4555. if test "x$ac_ct_RANLIB" = x; then
  4556. RANLIB=":"
  4557. else
  4558. case $cross_compiling:$ac_tool_warned in
  4559. yes:)
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4562. ac_tool_warned=yes ;;
  4563. esac
  4564. RANLIB=$ac_ct_RANLIB
  4565. fi
  4566. else
  4567. RANLIB="$ac_cv_prog_RANLIB"
  4568. fi
  4569. fi
  4570. fi
  4571. ac_aux_dir=
  4572. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4573. for ac_t in install-sh install.sh shtool; do
  4574. if test -f "$ac_dir/$ac_t"; then
  4575. ac_aux_dir=$ac_dir
  4576. ac_install_sh="$ac_aux_dir/$ac_t -c"
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. if test -z "$ac_aux_dir"; then
  4582. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4583. fi
  4584. # These three variables are undocumented and unsupported,
  4585. # and are intended to be withdrawn in a future Autoconf release.
  4586. # They can cause serious problems if a builder's source tree is in a directory
  4587. # whose full name contains unusual characters.
  4588. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4589. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4590. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4591. # Make sure we can run config.sub.
  4592. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4593. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4595. $as_echo_n "checking build system type... " >&6; }
  4596. if test "${ac_cv_build+set}" = set; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. ac_build_alias=$build_alias
  4600. test "x$ac_build_alias" = x &&
  4601. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4602. test "x$ac_build_alias" = x &&
  4603. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4604. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4605. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4606. fi
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4608. $as_echo "$ac_cv_build" >&6; }
  4609. case $ac_cv_build in
  4610. *-*-*) ;;
  4611. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4612. esac
  4613. build=$ac_cv_build
  4614. ac_save_IFS=$IFS; IFS='-'
  4615. set x $ac_cv_build
  4616. shift
  4617. build_cpu=$1
  4618. build_vendor=$2
  4619. shift; shift
  4620. # Remember, the first character of IFS is used to create $*,
  4621. # except with old shells:
  4622. build_os=$*
  4623. IFS=$ac_save_IFS
  4624. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4626. $as_echo_n "checking host system type... " >&6; }
  4627. if test "${ac_cv_host+set}" = set; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test "x$host_alias" = x; then
  4631. ac_cv_host=$ac_cv_build
  4632. else
  4633. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4634. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4635. fi
  4636. fi
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4638. $as_echo "$ac_cv_host" >&6; }
  4639. case $ac_cv_host in
  4640. *-*-*) ;;
  4641. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4642. esac
  4643. host=$ac_cv_host
  4644. ac_save_IFS=$IFS; IFS='-'
  4645. set x $ac_cv_host
  4646. shift
  4647. host_cpu=$1
  4648. host_vendor=$2
  4649. shift; shift
  4650. # Remember, the first character of IFS is used to create $*,
  4651. # except with old shells:
  4652. host_os=$*
  4653. IFS=$ac_save_IFS
  4654. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4655. # IEEE behaviour is the default on all CPUs except Alpha and SH
  4656. # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
  4657. # and the GCC 4.1.2 manual).
  4658. case "$host_cpu" in
  4659. alpha*)
  4660. # On Alpha systems, a compiler option provides the behaviour.
  4661. # See the ieee(3) manual page, also available at
  4662. # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
  4663. if test -n "$GCC"; then
  4664. # GCC has the option -mieee.
  4665. # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
  4666. CPPFLAGS="$CPPFLAGS -mieee"
  4667. else
  4668. # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
  4669. # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
  4670. CPPFLAGS="$CPPFLAGS -ieee"
  4671. fi
  4672. ;;
  4673. sh*)
  4674. if test -n "$GCC"; then
  4675. # GCC has the option -mieee.
  4676. CPPFLAGS="$CPPFLAGS -mieee"
  4677. fi
  4678. ;;
  4679. esac
  4680. # Check whether --enable-largefile was given.
  4681. if test "${enable_largefile+set}" = set; then :
  4682. enableval=$enable_largefile;
  4683. fi
  4684. if test "$enable_largefile" != no; then
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4686. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4687. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. ac_cv_sys_largefile_CC=no
  4691. if test "$GCC" != yes; then
  4692. ac_save_CC=$CC
  4693. while :; do
  4694. # IRIX 6.2 and later do not support large files by default,
  4695. # so use the C compiler's -n32 option if that helps.
  4696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4697. /* end confdefs.h. */
  4698. #include <sys/types.h>
  4699. /* Check that off_t can represent 2**63 - 1 correctly.
  4700. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4701. since some C++ compilers masquerading as C compilers
  4702. incorrectly reject 9223372036854775807. */
  4703. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4704. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4705. && LARGE_OFF_T % 2147483647 == 1)
  4706. ? 1 : -1];
  4707. int
  4708. main ()
  4709. {
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_c_try_compile "$LINENO"; then :
  4715. break
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext
  4718. CC="$CC -n32"
  4719. if ac_fn_c_try_compile "$LINENO"; then :
  4720. ac_cv_sys_largefile_CC=' -n32'; break
  4721. fi
  4722. rm -f core conftest.err conftest.$ac_objext
  4723. break
  4724. done
  4725. CC=$ac_save_CC
  4726. rm -f conftest.$ac_ext
  4727. fi
  4728. fi
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4730. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4731. if test "$ac_cv_sys_largefile_CC" != no; then
  4732. CC=$CC$ac_cv_sys_largefile_CC
  4733. fi
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4735. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4736. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. while :; do
  4740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4741. /* end confdefs.h. */
  4742. #include <sys/types.h>
  4743. /* Check that off_t can represent 2**63 - 1 correctly.
  4744. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4745. since some C++ compilers masquerading as C compilers
  4746. incorrectly reject 9223372036854775807. */
  4747. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4748. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4749. && LARGE_OFF_T % 2147483647 == 1)
  4750. ? 1 : -1];
  4751. int
  4752. main ()
  4753. {
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. if ac_fn_c_try_compile "$LINENO"; then :
  4759. ac_cv_sys_file_offset_bits=no; break
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4763. /* end confdefs.h. */
  4764. #define _FILE_OFFSET_BITS 64
  4765. #include <sys/types.h>
  4766. /* Check that off_t can represent 2**63 - 1 correctly.
  4767. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4768. since some C++ compilers masquerading as C compilers
  4769. incorrectly reject 9223372036854775807. */
  4770. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4771. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4772. && LARGE_OFF_T % 2147483647 == 1)
  4773. ? 1 : -1];
  4774. int
  4775. main ()
  4776. {
  4777. ;
  4778. return 0;
  4779. }
  4780. _ACEOF
  4781. if ac_fn_c_try_compile "$LINENO"; then :
  4782. ac_cv_sys_file_offset_bits=64; break
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. ac_cv_sys_file_offset_bits=unknown
  4786. break
  4787. done
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4790. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4791. case $ac_cv_sys_file_offset_bits in #(
  4792. no | unknown) ;;
  4793. *)
  4794. cat >>confdefs.h <<_ACEOF
  4795. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4796. _ACEOF
  4797. ;;
  4798. esac
  4799. rm -rf conftest*
  4800. if test $ac_cv_sys_file_offset_bits = unknown; then
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4802. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4803. if test "${ac_cv_sys_large_files+set}" = set; then :
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. while :; do
  4807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4808. /* end confdefs.h. */
  4809. #include <sys/types.h>
  4810. /* Check that off_t can represent 2**63 - 1 correctly.
  4811. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4812. since some C++ compilers masquerading as C compilers
  4813. incorrectly reject 9223372036854775807. */
  4814. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4815. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4816. && LARGE_OFF_T % 2147483647 == 1)
  4817. ? 1 : -1];
  4818. int
  4819. main ()
  4820. {
  4821. ;
  4822. return 0;
  4823. }
  4824. _ACEOF
  4825. if ac_fn_c_try_compile "$LINENO"; then :
  4826. ac_cv_sys_large_files=no; break
  4827. fi
  4828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4830. /* end confdefs.h. */
  4831. #define _LARGE_FILES 1
  4832. #include <sys/types.h>
  4833. /* Check that off_t can represent 2**63 - 1 correctly.
  4834. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4835. since some C++ compilers masquerading as C compilers
  4836. incorrectly reject 9223372036854775807. */
  4837. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4838. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4839. && LARGE_OFF_T % 2147483647 == 1)
  4840. ? 1 : -1];
  4841. int
  4842. main ()
  4843. {
  4844. ;
  4845. return 0;
  4846. }
  4847. _ACEOF
  4848. if ac_fn_c_try_compile "$LINENO"; then :
  4849. ac_cv_sys_large_files=1; break
  4850. fi
  4851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4852. ac_cv_sys_large_files=unknown
  4853. break
  4854. done
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4857. $as_echo "$ac_cv_sys_large_files" >&6; }
  4858. case $ac_cv_sys_large_files in #(
  4859. no | unknown) ;;
  4860. *)
  4861. cat >>confdefs.h <<_ACEOF
  4862. #define _LARGE_FILES $ac_cv_sys_large_files
  4863. _ACEOF
  4864. ;;
  4865. esac
  4866. rm -rf conftest*
  4867. fi
  4868. $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
  4869. fi
  4870. # Code from module absolute-header:
  4871. # Code from module alloca:
  4872. # Code from module alloca-opt:
  4873. # Code from module canonicalize-lgpl:
  4874. # Code from module chdir:
  4875. # Code from module configmake:
  4876. # Code from module dirent:
  4877. # Code from module dirfd:
  4878. # Code from module dirname-lgpl:
  4879. # Code from module dosname:
  4880. # Code from module double-slash-root:
  4881. # Code from module errno:
  4882. # Code from module extensions:
  4883. # Code from module extern-inline:
  4884. # Code from module float:
  4885. # Code from module fnmatch:
  4886. # Code from module fnmatch-gnu:
  4887. # Code from module fpieee:
  4888. # Code from module fpucw:
  4889. # Code from module frexp:
  4890. # Code from module frexpl:
  4891. # Code from module gettimeofday:
  4892. # Code from module include_next:
  4893. # Code from module inttypes:
  4894. # Code from module inttypes-incomplete:
  4895. # Code from module isnand-nolibm:
  4896. # Code from module isnanl-nolibm:
  4897. # Code from module largefile:
  4898. # Code from module localcharset:
  4899. # Code from module lstat:
  4900. # Code from module malloc-posix:
  4901. # Code from module malloca:
  4902. # Code from module math:
  4903. # Code from module mbrtowc:
  4904. # Code from module mbsinit:
  4905. # Code from module mbsrtowcs:
  4906. # Code from module memchr:
  4907. # Code from module memmem:
  4908. # Code from module memmem-simple:
  4909. # Code from module multiarch:
  4910. # Code from module nocrash:
  4911. # Code from module pathmax:
  4912. # Code from module readlink:
  4913. # Code from module rename:
  4914. # Code from module rmdir:
  4915. # Code from module same-inode:
  4916. # Code from module signal-h:
  4917. # Code from module snippet/_Noreturn:
  4918. # Code from module snippet/arg-nonnull:
  4919. # Code from module snippet/c++defs:
  4920. # Code from module snippet/warn-on-use:
  4921. # Code from module ssize_t:
  4922. # Code from module stat:
  4923. # Code from module stdbool:
  4924. # Code from module stddef:
  4925. # Code from module stdint:
  4926. # Code from module stdio:
  4927. # Code from module stdlib:
  4928. # Code from module streq:
  4929. # Code from module string:
  4930. # Code from module strnlen1:
  4931. # Code from module strstr:
  4932. # Code from module strstr-simple:
  4933. # Code from module strtok_r:
  4934. # Code from module sys_stat:
  4935. # Code from module sys_time:
  4936. # Code from module sys_types:
  4937. # Code from module time:
  4938. # Code from module unistd:
  4939. # Code from module update-copyright:
  4940. # Code from module verify:
  4941. # Code from module wchar:
  4942. # Code from module wctype-h:
  4943. ac_ext=c
  4944. ac_cpp='$CPP $CPPFLAGS'
  4945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4948. if test -n "$ac_tool_prefix"; then
  4949. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4950. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4952. $as_echo_n "checking for $ac_word... " >&6; }
  4953. if test "${ac_cv_prog_CC+set}" = set; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. if test -n "$CC"; then
  4957. ac_cv_prog_CC="$CC" # Let the user override the test.
  4958. else
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4966. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. fi
  4974. fi
  4975. CC=$ac_cv_prog_CC
  4976. if test -n "$CC"; then
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4978. $as_echo "$CC" >&6; }
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. fi
  4983. fi
  4984. if test -z "$ac_cv_prog_CC"; then
  4985. ac_ct_CC=$CC
  4986. # Extract the first word of "gcc", so it can be a program name with args.
  4987. set dummy gcc; ac_word=$2
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4989. $as_echo_n "checking for $ac_word... " >&6; }
  4990. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4991. $as_echo_n "(cached) " >&6
  4992. else
  4993. if test -n "$ac_ct_CC"; then
  4994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4995. else
  4996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4997. for as_dir in $PATH
  4998. do
  4999. IFS=$as_save_IFS
  5000. test -z "$as_dir" && as_dir=.
  5001. for ac_exec_ext in '' $ac_executable_extensions; do
  5002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5003. ac_cv_prog_ac_ct_CC="gcc"
  5004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5005. break 2
  5006. fi
  5007. done
  5008. done
  5009. IFS=$as_save_IFS
  5010. fi
  5011. fi
  5012. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5013. if test -n "$ac_ct_CC"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5015. $as_echo "$ac_ct_CC" >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5018. $as_echo "no" >&6; }
  5019. fi
  5020. if test "x$ac_ct_CC" = x; then
  5021. CC=""
  5022. else
  5023. case $cross_compiling:$ac_tool_warned in
  5024. yes:)
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5027. ac_tool_warned=yes ;;
  5028. esac
  5029. CC=$ac_ct_CC
  5030. fi
  5031. else
  5032. CC="$ac_cv_prog_CC"
  5033. fi
  5034. if test -z "$CC"; then
  5035. if test -n "$ac_tool_prefix"; then
  5036. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5037. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5039. $as_echo_n "checking for $ac_word... " >&6; }
  5040. if test "${ac_cv_prog_CC+set}" = set; then :
  5041. $as_echo_n "(cached) " >&6
  5042. else
  5043. if test -n "$CC"; then
  5044. ac_cv_prog_CC="$CC" # Let the user override the test.
  5045. else
  5046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5047. for as_dir in $PATH
  5048. do
  5049. IFS=$as_save_IFS
  5050. test -z "$as_dir" && as_dir=.
  5051. for ac_exec_ext in '' $ac_executable_extensions; do
  5052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5053. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5055. break 2
  5056. fi
  5057. done
  5058. done
  5059. IFS=$as_save_IFS
  5060. fi
  5061. fi
  5062. CC=$ac_cv_prog_CC
  5063. if test -n "$CC"; then
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5065. $as_echo "$CC" >&6; }
  5066. else
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5068. $as_echo "no" >&6; }
  5069. fi
  5070. fi
  5071. fi
  5072. if test -z "$CC"; then
  5073. # Extract the first word of "cc", so it can be a program name with args.
  5074. set dummy cc; ac_word=$2
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5076. $as_echo_n "checking for $ac_word... " >&6; }
  5077. if test "${ac_cv_prog_CC+set}" = set; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. if test -n "$CC"; then
  5081. ac_cv_prog_CC="$CC" # Let the user override the test.
  5082. else
  5083. ac_prog_rejected=no
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5091. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5092. ac_prog_rejected=yes
  5093. continue
  5094. fi
  5095. ac_cv_prog_CC="cc"
  5096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5097. break 2
  5098. fi
  5099. done
  5100. done
  5101. IFS=$as_save_IFS
  5102. if test $ac_prog_rejected = yes; then
  5103. # We found a bogon in the path, so make sure we never use it.
  5104. set dummy $ac_cv_prog_CC
  5105. shift
  5106. if test $# != 0; then
  5107. # We chose a different compiler from the bogus one.
  5108. # However, it has the same basename, so the bogon will be chosen
  5109. # first if we set CC to just the basename; use the full file name.
  5110. shift
  5111. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5112. fi
  5113. fi
  5114. fi
  5115. fi
  5116. CC=$ac_cv_prog_CC
  5117. if test -n "$CC"; then
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5119. $as_echo "$CC" >&6; }
  5120. else
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5122. $as_echo "no" >&6; }
  5123. fi
  5124. fi
  5125. if test -z "$CC"; then
  5126. if test -n "$ac_tool_prefix"; then
  5127. for ac_prog in cl.exe
  5128. do
  5129. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5130. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5132. $as_echo_n "checking for $ac_word... " >&6; }
  5133. if test "${ac_cv_prog_CC+set}" = set; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. if test -n "$CC"; then
  5137. ac_cv_prog_CC="$CC" # Let the user override the test.
  5138. else
  5139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5140. for as_dir in $PATH
  5141. do
  5142. IFS=$as_save_IFS
  5143. test -z "$as_dir" && as_dir=.
  5144. for ac_exec_ext in '' $ac_executable_extensions; do
  5145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5146. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. fi
  5154. fi
  5155. CC=$ac_cv_prog_CC
  5156. if test -n "$CC"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5158. $as_echo "$CC" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. test -n "$CC" && break
  5164. done
  5165. fi
  5166. if test -z "$CC"; then
  5167. ac_ct_CC=$CC
  5168. for ac_prog in cl.exe
  5169. do
  5170. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5171. set dummy $ac_prog; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. if test -n "$ac_ct_CC"; then
  5178. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5179. else
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_exec_ext in '' $ac_executable_extensions; do
  5186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5187. ac_cv_prog_ac_ct_CC="$ac_prog"
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189. break 2
  5190. fi
  5191. done
  5192. done
  5193. IFS=$as_save_IFS
  5194. fi
  5195. fi
  5196. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5197. if test -n "$ac_ct_CC"; then
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5199. $as_echo "$ac_ct_CC" >&6; }
  5200. else
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5202. $as_echo "no" >&6; }
  5203. fi
  5204. test -n "$ac_ct_CC" && break
  5205. done
  5206. if test "x$ac_ct_CC" = x; then
  5207. CC=""
  5208. else
  5209. case $cross_compiling:$ac_tool_warned in
  5210. yes:)
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5213. ac_tool_warned=yes ;;
  5214. esac
  5215. CC=$ac_ct_CC
  5216. fi
  5217. fi
  5218. fi
  5219. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5221. as_fn_error "no acceptable C compiler found in \$PATH
  5222. See \`config.log' for more details." "$LINENO" 5; }
  5223. # Provide some information about the compiler.
  5224. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5225. set X $ac_compile
  5226. ac_compiler=$2
  5227. for ac_option in --version -v -V -qversion; do
  5228. { { ac_try="$ac_compiler $ac_option >&5"
  5229. case "(($ac_try" in
  5230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5231. *) ac_try_echo=$ac_try;;
  5232. esac
  5233. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5234. $as_echo "$ac_try_echo"; } >&5
  5235. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5236. ac_status=$?
  5237. if test -s conftest.err; then
  5238. sed '10a\
  5239. ... rest of stderr output deleted ...
  5240. 10q' conftest.err >conftest.er1
  5241. cat conftest.er1 >&5
  5242. rm -f conftest.er1 conftest.err
  5243. fi
  5244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5245. test $ac_status = 0; }
  5246. done
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5248. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5249. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  5250. $as_echo_n "(cached) " >&6
  5251. else
  5252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5253. /* end confdefs.h. */
  5254. int
  5255. main ()
  5256. {
  5257. #ifndef __GNUC__
  5258. choke me
  5259. #endif
  5260. ;
  5261. return 0;
  5262. }
  5263. _ACEOF
  5264. if ac_fn_c_try_compile "$LINENO"; then :
  5265. ac_compiler_gnu=yes
  5266. else
  5267. ac_compiler_gnu=no
  5268. fi
  5269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5270. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5273. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5274. if test $ac_compiler_gnu = yes; then
  5275. GCC=yes
  5276. else
  5277. GCC=
  5278. fi
  5279. ac_test_CFLAGS=${CFLAGS+set}
  5280. ac_save_CFLAGS=$CFLAGS
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5282. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5283. if test "${ac_cv_prog_cc_g+set}" = set; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. ac_save_c_werror_flag=$ac_c_werror_flag
  5287. ac_c_werror_flag=yes
  5288. ac_cv_prog_cc_g=no
  5289. CFLAGS="-g"
  5290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5291. /* end confdefs.h. */
  5292. int
  5293. main ()
  5294. {
  5295. ;
  5296. return 0;
  5297. }
  5298. _ACEOF
  5299. if ac_fn_c_try_compile "$LINENO"; then :
  5300. ac_cv_prog_cc_g=yes
  5301. else
  5302. CFLAGS=""
  5303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5304. /* end confdefs.h. */
  5305. int
  5306. main ()
  5307. {
  5308. ;
  5309. return 0;
  5310. }
  5311. _ACEOF
  5312. if ac_fn_c_try_compile "$LINENO"; then :
  5313. else
  5314. ac_c_werror_flag=$ac_save_c_werror_flag
  5315. CFLAGS="-g"
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. int
  5319. main ()
  5320. {
  5321. ;
  5322. return 0;
  5323. }
  5324. _ACEOF
  5325. if ac_fn_c_try_compile "$LINENO"; then :
  5326. ac_cv_prog_cc_g=yes
  5327. fi
  5328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5329. fi
  5330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5331. fi
  5332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5333. ac_c_werror_flag=$ac_save_c_werror_flag
  5334. fi
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5336. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5337. if test "$ac_test_CFLAGS" = set; then
  5338. CFLAGS=$ac_save_CFLAGS
  5339. elif test $ac_cv_prog_cc_g = yes; then
  5340. if test "$GCC" = yes; then
  5341. CFLAGS="-g -O2"
  5342. else
  5343. CFLAGS="-g"
  5344. fi
  5345. else
  5346. if test "$GCC" = yes; then
  5347. CFLAGS="-O2"
  5348. else
  5349. CFLAGS=
  5350. fi
  5351. fi
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5353. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5354. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. ac_cv_prog_cc_c89=no
  5358. ac_save_CC=$CC
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. #include <stdarg.h>
  5362. #include <stdio.h>
  5363. #include <sys/types.h>
  5364. #include <sys/stat.h>
  5365. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5366. struct buf { int x; };
  5367. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5368. static char *e (p, i)
  5369. char **p;
  5370. int i;
  5371. {
  5372. return p[i];
  5373. }
  5374. static char *f (char * (*g) (char **, int), char **p, ...)
  5375. {
  5376. char *s;
  5377. va_list v;
  5378. va_start (v,p);
  5379. s = g (p, va_arg (v,int));
  5380. va_end (v);
  5381. return s;
  5382. }
  5383. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5384. function prototypes and stuff, but not '\xHH' hex character constants.
  5385. These don't provoke an error unfortunately, instead are silently treated
  5386. as 'x'. The following induces an error, until -std is added to get
  5387. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5388. array size at least. It's necessary to write '\x00'==0 to get something
  5389. that's true only with -std. */
  5390. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5391. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5392. inside strings and character constants. */
  5393. #define FOO(x) 'x'
  5394. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5395. int test (int i, double x);
  5396. struct s1 {int (*f) (int a);};
  5397. struct s2 {int (*f) (double a);};
  5398. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5399. int argc;
  5400. char **argv;
  5401. int
  5402. main ()
  5403. {
  5404. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5405. ;
  5406. return 0;
  5407. }
  5408. _ACEOF
  5409. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5410. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5411. do
  5412. CC="$ac_save_CC $ac_arg"
  5413. if ac_fn_c_try_compile "$LINENO"; then :
  5414. ac_cv_prog_cc_c89=$ac_arg
  5415. fi
  5416. rm -f core conftest.err conftest.$ac_objext
  5417. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5418. done
  5419. rm -f conftest.$ac_ext
  5420. CC=$ac_save_CC
  5421. fi
  5422. # AC_CACHE_VAL
  5423. case "x$ac_cv_prog_cc_c89" in
  5424. x)
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5426. $as_echo "none needed" >&6; } ;;
  5427. xno)
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5429. $as_echo "unsupported" >&6; } ;;
  5430. *)
  5431. CC="$CC $ac_cv_prog_cc_c89"
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5433. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5434. esac
  5435. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5436. fi
  5437. ac_ext=c
  5438. ac_cpp='$CPP $CPPFLAGS'
  5439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5442. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5443. ac_aux_dir=
  5444. for ac_dir in ../.. "$srcdir"/../..; do
  5445. for ac_t in install-sh install.sh shtool; do
  5446. if test -f "$ac_dir/$ac_t"; then
  5447. ac_aux_dir=$ac_dir
  5448. ac_install_sh="$ac_aux_dir/$ac_t -c"
  5449. break 2
  5450. fi
  5451. done
  5452. done
  5453. if test -z "$ac_aux_dir"; then
  5454. as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
  5455. fi
  5456. # These three variables are undocumented and unsupported,
  5457. # and are intended to be withdrawn in a future Autoconf release.
  5458. # They can cause serious problems if a builder's source tree is in a directory
  5459. # whose full name contains unusual characters.
  5460. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  5461. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  5462. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  5464. $as_echo_n "checking target system type... " >&6; }
  5465. if test "${ac_cv_target+set}" = set; then :
  5466. $as_echo_n "(cached) " >&6
  5467. else
  5468. if test "x$target_alias" = x; then
  5469. ac_cv_target=$ac_cv_host
  5470. else
  5471. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  5472. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  5473. fi
  5474. fi
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  5476. $as_echo "$ac_cv_target" >&6; }
  5477. case $ac_cv_target in
  5478. *-*-*) ;;
  5479. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  5480. esac
  5481. target=$ac_cv_target
  5482. ac_save_IFS=$IFS; IFS='-'
  5483. set x $ac_cv_target
  5484. shift
  5485. target_cpu=$1
  5486. target_vendor=$2
  5487. shift; shift
  5488. # Remember, the first character of IFS is used to create $*,
  5489. # except with old shells:
  5490. target_os=$*
  5491. IFS=$ac_save_IFS
  5492. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  5493. # The aliases save the names the user supplied, while $host etc.
  5494. # will get canonicalized.
  5495. test -n "$target_alias" &&
  5496. test "$program_prefix$program_suffix$program_transform_name" = \
  5497. NONENONEs,x,x, &&
  5498. program_prefix=${target_alias}-
  5499. LIBC_FATAL_STDERR_=1
  5500. export LIBC_FATAL_STDERR_
  5501. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5502. # for constant arguments. Useless!
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  5504. $as_echo_n "checking for working alloca.h... " >&6; }
  5505. if test "${ac_cv_working_alloca_h+set}" = set; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5509. /* end confdefs.h. */
  5510. #include <alloca.h>
  5511. int
  5512. main ()
  5513. {
  5514. char *p = (char *) alloca (2 * sizeof (int));
  5515. if (p) return 0;
  5516. ;
  5517. return 0;
  5518. }
  5519. _ACEOF
  5520. if ac_fn_c_try_link "$LINENO"; then :
  5521. ac_cv_working_alloca_h=yes
  5522. else
  5523. ac_cv_working_alloca_h=no
  5524. fi
  5525. rm -f core conftest.err conftest.$ac_objext \
  5526. conftest$ac_exeext conftest.$ac_ext
  5527. fi
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  5529. $as_echo "$ac_cv_working_alloca_h" >&6; }
  5530. if test $ac_cv_working_alloca_h = yes; then
  5531. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  5532. fi
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  5534. $as_echo_n "checking for alloca... " >&6; }
  5535. if test "${ac_cv_func_alloca_works+set}" = set; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. #ifdef __GNUC__
  5541. # define alloca __builtin_alloca
  5542. #else
  5543. # ifdef _MSC_VER
  5544. # include <malloc.h>
  5545. # define alloca _alloca
  5546. # else
  5547. # ifdef HAVE_ALLOCA_H
  5548. # include <alloca.h>
  5549. # else
  5550. # ifdef _AIX
  5551. #pragma alloca
  5552. # else
  5553. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5554. char *alloca ();
  5555. # endif
  5556. # endif
  5557. # endif
  5558. # endif
  5559. #endif
  5560. int
  5561. main ()
  5562. {
  5563. char *p = (char *) alloca (1);
  5564. if (p) return 0;
  5565. ;
  5566. return 0;
  5567. }
  5568. _ACEOF
  5569. if ac_fn_c_try_link "$LINENO"; then :
  5570. ac_cv_func_alloca_works=yes
  5571. else
  5572. ac_cv_func_alloca_works=no
  5573. fi
  5574. rm -f core conftest.err conftest.$ac_objext \
  5575. conftest$ac_exeext conftest.$ac_ext
  5576. fi
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  5578. $as_echo "$ac_cv_func_alloca_works" >&6; }
  5579. if test $ac_cv_func_alloca_works = yes; then
  5580. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  5581. else
  5582. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5583. # that cause trouble. Some versions do not even contain alloca or
  5584. # contain a buggy version. If you still want to use their alloca,
  5585. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5586. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5587. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
  5589. $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
  5590. if test "${ac_cv_os_cray+set}" = set; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5594. /* end confdefs.h. */
  5595. #if defined CRAY && ! defined CRAY2
  5596. webecray
  5597. #else
  5598. wenotbecray
  5599. #endif
  5600. _ACEOF
  5601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5602. $EGREP "webecray" >/dev/null 2>&1; then :
  5603. ac_cv_os_cray=yes
  5604. else
  5605. ac_cv_os_cray=no
  5606. fi
  5607. rm -f conftest*
  5608. fi
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5610. $as_echo "$ac_cv_os_cray" >&6; }
  5611. if test $ac_cv_os_cray = yes; then
  5612. for ac_func in _getb67 GETB67 getb67; do
  5613. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5614. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5615. eval as_val=\$$as_ac_var
  5616. if test "x$as_val" = x""yes; then :
  5617. cat >>confdefs.h <<_ACEOF
  5618. #define CRAY_STACKSEG_END $ac_func
  5619. _ACEOF
  5620. break
  5621. fi
  5622. done
  5623. fi
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5625. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5626. if test "${ac_cv_c_stack_direction+set}" = set; then :
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. if test "$cross_compiling" = yes; then :
  5630. ac_cv_c_stack_direction=0
  5631. else
  5632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5633. /* end confdefs.h. */
  5634. $ac_includes_default
  5635. int
  5636. find_stack_direction (int *addr, int depth)
  5637. {
  5638. int dir, dummy = 0;
  5639. if (! addr)
  5640. addr = &dummy;
  5641. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  5642. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  5643. return dir + dummy;
  5644. }
  5645. int
  5646. main (int argc, char **argv)
  5647. {
  5648. return find_stack_direction (0, argc + !argv + 20) < 0;
  5649. }
  5650. _ACEOF
  5651. if ac_fn_c_try_run "$LINENO"; then :
  5652. ac_cv_c_stack_direction=1
  5653. else
  5654. ac_cv_c_stack_direction=-1
  5655. fi
  5656. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5657. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5658. fi
  5659. fi
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5661. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5662. cat >>confdefs.h <<_ACEOF
  5663. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5664. _ACEOF
  5665. fi
  5666. GNULIB__EXIT=0;
  5667. GNULIB_ATOLL=0;
  5668. GNULIB_CALLOC_POSIX=0;
  5669. GNULIB_CANONICALIZE_FILE_NAME=0;
  5670. GNULIB_GETLOADAVG=0;
  5671. GNULIB_GETSUBOPT=0;
  5672. GNULIB_GRANTPT=0;
  5673. GNULIB_MALLOC_POSIX=0;
  5674. GNULIB_MBTOWC=0;
  5675. GNULIB_MKDTEMP=0;
  5676. GNULIB_MKOSTEMP=0;
  5677. GNULIB_MKOSTEMPS=0;
  5678. GNULIB_MKSTEMP=0;
  5679. GNULIB_MKSTEMPS=0;
  5680. GNULIB_POSIX_OPENPT=0;
  5681. GNULIB_PTSNAME=0;
  5682. GNULIB_PTSNAME_R=0;
  5683. GNULIB_PUTENV=0;
  5684. GNULIB_QSORT_R=0;
  5685. GNULIB_RANDOM=0;
  5686. GNULIB_RANDOM_R=0;
  5687. GNULIB_REALLOC_POSIX=0;
  5688. GNULIB_REALPATH=0;
  5689. GNULIB_RPMATCH=0;
  5690. GNULIB_SECURE_GETENV=0;
  5691. GNULIB_SETENV=0;
  5692. GNULIB_STRTOD=0;
  5693. GNULIB_STRTOLL=0;
  5694. GNULIB_STRTOULL=0;
  5695. GNULIB_SYSTEM_POSIX=0;
  5696. GNULIB_UNLOCKPT=0;
  5697. GNULIB_UNSETENV=0;
  5698. GNULIB_WCTOMB=0;
  5699. HAVE__EXIT=1;
  5700. HAVE_ATOLL=1;
  5701. HAVE_CANONICALIZE_FILE_NAME=1;
  5702. HAVE_DECL_GETLOADAVG=1;
  5703. HAVE_GETSUBOPT=1;
  5704. HAVE_GRANTPT=1;
  5705. HAVE_MKDTEMP=1;
  5706. HAVE_MKOSTEMP=1;
  5707. HAVE_MKOSTEMPS=1;
  5708. HAVE_MKSTEMP=1;
  5709. HAVE_MKSTEMPS=1;
  5710. HAVE_POSIX_OPENPT=1;
  5711. HAVE_PTSNAME=1;
  5712. HAVE_PTSNAME_R=1;
  5713. HAVE_RANDOM=1;
  5714. HAVE_RANDOM_H=1;
  5715. HAVE_RANDOM_R=1;
  5716. HAVE_REALPATH=1;
  5717. HAVE_RPMATCH=1;
  5718. HAVE_SECURE_GETENV=1;
  5719. HAVE_SETENV=1;
  5720. HAVE_DECL_SETENV=1;
  5721. HAVE_STRTOD=1;
  5722. HAVE_STRTOLL=1;
  5723. HAVE_STRTOULL=1;
  5724. HAVE_STRUCT_RANDOM_DATA=1;
  5725. HAVE_SYS_LOADAVG_H=0;
  5726. HAVE_UNLOCKPT=1;
  5727. HAVE_DECL_UNSETENV=1;
  5728. REPLACE_CALLOC=0;
  5729. REPLACE_CANONICALIZE_FILE_NAME=0;
  5730. REPLACE_MALLOC=0;
  5731. REPLACE_MBTOWC=0;
  5732. REPLACE_MKSTEMP=0;
  5733. REPLACE_PTSNAME=0;
  5734. REPLACE_PTSNAME_R=0;
  5735. REPLACE_PUTENV=0;
  5736. REPLACE_QSORT_R=0;
  5737. REPLACE_RANDOM_R=0;
  5738. REPLACE_REALLOC=0;
  5739. REPLACE_REALPATH=0;
  5740. REPLACE_SETENV=0;
  5741. REPLACE_STRTOD=0;
  5742. REPLACE_UNSETENV=0;
  5743. REPLACE_WCTOMB=0;
  5744. for ac_func in $ac_func_list
  5745. do :
  5746. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5747. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5748. eval as_val=\$$as_ac_var
  5749. if test "x$as_val" = x""yes; then :
  5750. cat >>confdefs.h <<_ACEOF
  5751. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5752. _ACEOF
  5753. fi
  5754. done
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
  5756. $as_echo_n "checking whether // is distinct from /... " >&6; }
  5757. if test "${gl_cv_double_slash_root+set}" = set; then :
  5758. $as_echo_n "(cached) " >&6
  5759. else
  5760. if test x"$cross_compiling" = xyes ; then
  5761. # When cross-compiling, there is no way to tell whether // is special
  5762. # short of a list of hosts. However, the only known hosts to date
  5763. # that have a distinct // are Apollo DomainOS (too old to port to),
  5764. # Cygwin, and z/OS. If anyone knows of another system for which // has
  5765. # special semantics and is distinct from /, please report it to
  5766. # <bug-gnulib@gnu.org>.
  5767. case $host in
  5768. *-cygwin | i370-ibm-openedition)
  5769. gl_cv_double_slash_root=yes ;;
  5770. *)
  5771. # Be optimistic and assume that / and // are the same when we
  5772. # don't know.
  5773. gl_cv_double_slash_root='unknown, assuming no' ;;
  5774. esac
  5775. else
  5776. set x `ls -di / // 2>/dev/null`
  5777. if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
  5778. gl_cv_double_slash_root=no
  5779. else
  5780. gl_cv_double_slash_root=yes
  5781. fi
  5782. fi
  5783. fi
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
  5785. $as_echo "$gl_cv_double_slash_root" >&6; }
  5786. if test "$gl_cv_double_slash_root" = yes; then
  5787. $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
  5788. fi
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
  5790. $as_echo_n "checking whether realpath works... " >&6; }
  5791. if test "${gl_cv_func_realpath_works+set}" = set; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. touch conftest.a
  5795. mkdir conftest.d
  5796. if test "$cross_compiling" = yes; then :
  5797. case "$host_os" in
  5798. # Guess yes on glibc systems.
  5799. *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
  5800. # If we don't know, assume the worst.
  5801. *) gl_cv_func_realpath_works="guessing no" ;;
  5802. esac
  5803. else
  5804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5805. /* end confdefs.h. */
  5806. #include <stdlib.h>
  5807. #if defined __MACH__ && defined __APPLE__
  5808. /* Avoid a crash on Mac OS X. */
  5809. #include <mach/mach.h>
  5810. #include <mach/mach_error.h>
  5811. #include <mach/thread_status.h>
  5812. #include <mach/exception.h>
  5813. #include <mach/task.h>
  5814. #include <pthread.h>
  5815. /* The exception port on which our thread listens. */
  5816. static mach_port_t our_exception_port;
  5817. /* The main function of the thread listening for exceptions of type
  5818. EXC_BAD_ACCESS. */
  5819. static void *
  5820. mach_exception_thread (void *arg)
  5821. {
  5822. /* Buffer for a message to be received. */
  5823. struct {
  5824. mach_msg_header_t head;
  5825. mach_msg_body_t msgh_body;
  5826. char data[1024];
  5827. } msg;
  5828. mach_msg_return_t retval;
  5829. /* Wait for a message on the exception port. */
  5830. retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
  5831. our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  5832. if (retval != MACH_MSG_SUCCESS)
  5833. abort ();
  5834. exit (1);
  5835. }
  5836. static void
  5837. nocrash_init (void)
  5838. {
  5839. mach_port_t self = mach_task_self ();
  5840. /* Allocate a port on which the thread shall listen for exceptions. */
  5841. if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
  5842. == KERN_SUCCESS) {
  5843. /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
  5844. if (mach_port_insert_right (self, our_exception_port, our_exception_port,
  5845. MACH_MSG_TYPE_MAKE_SEND)
  5846. == KERN_SUCCESS) {
  5847. /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
  5848. for us. */
  5849. exception_mask_t mask = EXC_MASK_BAD_ACCESS;
  5850. /* Create the thread listening on the exception port. */
  5851. pthread_attr_t attr;
  5852. pthread_t thread;
  5853. if (pthread_attr_init (&attr) == 0
  5854. && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
  5855. && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
  5856. pthread_attr_destroy (&attr);
  5857. /* Replace the exception port info for these exceptions with our own.
  5858. Note that we replace the exception port for the entire task, not only
  5859. for a particular thread. This has the effect that when our exception
  5860. port gets the message, the thread specific exception port has already
  5861. been asked, and we don't need to bother about it.
  5862. See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
  5863. task_set_exception_ports (self, mask, our_exception_port,
  5864. EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
  5865. }
  5866. }
  5867. }
  5868. }
  5869. #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  5870. /* Avoid a crash on native Windows. */
  5871. #define WIN32_LEAN_AND_MEAN
  5872. #include <windows.h>
  5873. #include <winerror.h>
  5874. static LONG WINAPI
  5875. exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
  5876. {
  5877. switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
  5878. {
  5879. case EXCEPTION_ACCESS_VIOLATION:
  5880. case EXCEPTION_IN_PAGE_ERROR:
  5881. case EXCEPTION_STACK_OVERFLOW:
  5882. case EXCEPTION_GUARD_PAGE:
  5883. case EXCEPTION_PRIV_INSTRUCTION:
  5884. case EXCEPTION_ILLEGAL_INSTRUCTION:
  5885. case EXCEPTION_DATATYPE_MISALIGNMENT:
  5886. case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
  5887. case EXCEPTION_NONCONTINUABLE_EXCEPTION:
  5888. exit (1);
  5889. }
  5890. return EXCEPTION_CONTINUE_SEARCH;
  5891. }
  5892. static void
  5893. nocrash_init (void)
  5894. {
  5895. SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
  5896. }
  5897. #else
  5898. /* Avoid a crash on POSIX systems. */
  5899. #include <signal.h>
  5900. /* A POSIX signal handler. */
  5901. static void
  5902. exception_handler (int sig)
  5903. {
  5904. exit (1);
  5905. }
  5906. static void
  5907. nocrash_init (void)
  5908. {
  5909. #ifdef SIGSEGV
  5910. signal (SIGSEGV, exception_handler);
  5911. #endif
  5912. #ifdef SIGBUS
  5913. signal (SIGBUS, exception_handler);
  5914. #endif
  5915. }
  5916. #endif
  5917. #include <stdlib.h>
  5918. #include <string.h>
  5919. int
  5920. main ()
  5921. {
  5922. int result = 0;
  5923. {
  5924. char *name = realpath ("conftest.a", NULL);
  5925. if (!(name && *name == '/'))
  5926. result |= 1;
  5927. }
  5928. {
  5929. char *name = realpath ("conftest.b/../conftest.a", NULL);
  5930. if (name != NULL)
  5931. result |= 2;
  5932. }
  5933. {
  5934. char *name = realpath ("conftest.a/", NULL);
  5935. if (name != NULL)
  5936. result |= 4;
  5937. }
  5938. {
  5939. char *name1 = realpath (".", NULL);
  5940. char *name2 = realpath ("conftest.d//./..", NULL);
  5941. if (strcmp (name1, name2) != 0)
  5942. result |= 8;
  5943. }
  5944. return result;
  5945. ;
  5946. return 0;
  5947. }
  5948. _ACEOF
  5949. if ac_fn_c_try_run "$LINENO"; then :
  5950. gl_cv_func_realpath_works=yes
  5951. else
  5952. gl_cv_func_realpath_works=no
  5953. fi
  5954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5956. fi
  5957. rm -rf conftest.a conftest.d
  5958. fi
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
  5960. $as_echo "$gl_cv_func_realpath_works" >&6; }
  5961. case "$gl_cv_func_realpath_works" in
  5962. *yes)
  5963. $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
  5964. ;;
  5965. esac
  5966. for ac_header in $ac_header_list
  5967. do :
  5968. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5969. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5970. "
  5971. eval as_val=\$$as_ac_Header
  5972. if test "x$as_val" = x""yes; then :
  5973. cat >>confdefs.h <<_ACEOF
  5974. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5975. _ACEOF
  5976. fi
  5977. done
  5978. GNULIB_CHDIR=0;
  5979. GNULIB_CHOWN=0;
  5980. GNULIB_CLOSE=0;
  5981. GNULIB_DUP=0;
  5982. GNULIB_DUP2=0;
  5983. GNULIB_DUP3=0;
  5984. GNULIB_ENVIRON=0;
  5985. GNULIB_EUIDACCESS=0;
  5986. GNULIB_FACCESSAT=0;
  5987. GNULIB_FCHDIR=0;
  5988. GNULIB_FCHOWNAT=0;
  5989. GNULIB_FDATASYNC=0;
  5990. GNULIB_FSYNC=0;
  5991. GNULIB_FTRUNCATE=0;
  5992. GNULIB_GETCWD=0;
  5993. GNULIB_GETDOMAINNAME=0;
  5994. GNULIB_GETDTABLESIZE=0;
  5995. GNULIB_GETGROUPS=0;
  5996. GNULIB_GETHOSTNAME=0;
  5997. GNULIB_GETLOGIN=0;
  5998. GNULIB_GETLOGIN_R=0;
  5999. GNULIB_GETPAGESIZE=0;
  6000. GNULIB_GETUSERSHELL=0;
  6001. GNULIB_GROUP_MEMBER=0;
  6002. GNULIB_ISATTY=0;
  6003. GNULIB_LCHOWN=0;
  6004. GNULIB_LINK=0;
  6005. GNULIB_LINKAT=0;
  6006. GNULIB_LSEEK=0;
  6007. GNULIB_PIPE=0;
  6008. GNULIB_PIPE2=0;
  6009. GNULIB_PREAD=0;
  6010. GNULIB_PWRITE=0;
  6011. GNULIB_READ=0;
  6012. GNULIB_READLINK=0;
  6013. GNULIB_READLINKAT=0;
  6014. GNULIB_RMDIR=0;
  6015. GNULIB_SETHOSTNAME=0;
  6016. GNULIB_SLEEP=0;
  6017. GNULIB_SYMLINK=0;
  6018. GNULIB_SYMLINKAT=0;
  6019. GNULIB_TTYNAME_R=0;
  6020. GNULIB_UNISTD_H_NONBLOCKING=0;
  6021. GNULIB_UNISTD_H_SIGPIPE=0;
  6022. GNULIB_UNLINK=0;
  6023. GNULIB_UNLINKAT=0;
  6024. GNULIB_USLEEP=0;
  6025. GNULIB_WRITE=0;
  6026. HAVE_CHOWN=1;
  6027. HAVE_DUP2=1;
  6028. HAVE_DUP3=1;
  6029. HAVE_EUIDACCESS=1;
  6030. HAVE_FACCESSAT=1;
  6031. HAVE_FCHDIR=1;
  6032. HAVE_FCHOWNAT=1;
  6033. HAVE_FDATASYNC=1;
  6034. HAVE_FSYNC=1;
  6035. HAVE_FTRUNCATE=1;
  6036. HAVE_GETDTABLESIZE=1;
  6037. HAVE_GETGROUPS=1;
  6038. HAVE_GETHOSTNAME=1;
  6039. HAVE_GETLOGIN=1;
  6040. HAVE_GETPAGESIZE=1;
  6041. HAVE_GROUP_MEMBER=1;
  6042. HAVE_LCHOWN=1;
  6043. HAVE_LINK=1;
  6044. HAVE_LINKAT=1;
  6045. HAVE_PIPE=1;
  6046. HAVE_PIPE2=1;
  6047. HAVE_PREAD=1;
  6048. HAVE_PWRITE=1;
  6049. HAVE_READLINK=1;
  6050. HAVE_READLINKAT=1;
  6051. HAVE_SETHOSTNAME=1;
  6052. HAVE_SLEEP=1;
  6053. HAVE_SYMLINK=1;
  6054. HAVE_SYMLINKAT=1;
  6055. HAVE_UNLINKAT=1;
  6056. HAVE_USLEEP=1;
  6057. HAVE_DECL_ENVIRON=1;
  6058. HAVE_DECL_FCHDIR=1;
  6059. HAVE_DECL_FDATASYNC=1;
  6060. HAVE_DECL_GETDOMAINNAME=1;
  6061. HAVE_DECL_GETLOGIN_R=1;
  6062. HAVE_DECL_GETPAGESIZE=1;
  6063. HAVE_DECL_GETUSERSHELL=1;
  6064. HAVE_DECL_SETHOSTNAME=1;
  6065. HAVE_DECL_TTYNAME_R=1;
  6066. HAVE_OS_H=0;
  6067. HAVE_SYS_PARAM_H=0;
  6068. REPLACE_CHOWN=0;
  6069. REPLACE_CLOSE=0;
  6070. REPLACE_DUP=0;
  6071. REPLACE_DUP2=0;
  6072. REPLACE_FCHOWNAT=0;
  6073. REPLACE_FTRUNCATE=0;
  6074. REPLACE_GETCWD=0;
  6075. REPLACE_GETDOMAINNAME=0;
  6076. REPLACE_GETDTABLESIZE=0;
  6077. REPLACE_GETLOGIN_R=0;
  6078. REPLACE_GETGROUPS=0;
  6079. REPLACE_GETPAGESIZE=0;
  6080. REPLACE_ISATTY=0;
  6081. REPLACE_LCHOWN=0;
  6082. REPLACE_LINK=0;
  6083. REPLACE_LINKAT=0;
  6084. REPLACE_LSEEK=0;
  6085. REPLACE_PREAD=0;
  6086. REPLACE_PWRITE=0;
  6087. REPLACE_READ=0;
  6088. REPLACE_READLINK=0;
  6089. REPLACE_READLINKAT=0;
  6090. REPLACE_RMDIR=0;
  6091. REPLACE_SLEEP=0;
  6092. REPLACE_SYMLINK=0;
  6093. REPLACE_SYMLINKAT=0;
  6094. REPLACE_TTYNAME_R=0;
  6095. REPLACE_UNLINK=0;
  6096. REPLACE_UNLINKAT=0;
  6097. REPLACE_USLEEP=0;
  6098. REPLACE_WRITE=0;
  6099. UNISTD_H_HAVE_WINSOCK2_H=0;
  6100. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
  6101. GNULIB_OPENDIR=0;
  6102. GNULIB_READDIR=0;
  6103. GNULIB_REWINDDIR=0;
  6104. GNULIB_CLOSEDIR=0;
  6105. GNULIB_DIRFD=0;
  6106. GNULIB_FDOPENDIR=0;
  6107. GNULIB_SCANDIR=0;
  6108. GNULIB_ALPHASORT=0;
  6109. HAVE_OPENDIR=1;
  6110. HAVE_READDIR=1;
  6111. HAVE_REWINDDIR=1;
  6112. HAVE_CLOSEDIR=1;
  6113. HAVE_DECL_DIRFD=1;
  6114. HAVE_DECL_FDOPENDIR=1;
  6115. HAVE_FDOPENDIR=1;
  6116. HAVE_SCANDIR=1;
  6117. HAVE_ALPHASORT=1;
  6118. REPLACE_OPENDIR=0;
  6119. REPLACE_CLOSEDIR=0;
  6120. REPLACE_DIRFD=0;
  6121. REPLACE_FDOPENDIR=0;
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  6123. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  6124. if test "${gl_cv_have_include_next+set}" = set; then :
  6125. $as_echo_n "(cached) " >&6
  6126. else
  6127. rm -rf conftestd1a conftestd1b conftestd2
  6128. mkdir conftestd1a conftestd1b conftestd2
  6129. cat <<EOF > conftestd1a/conftest.h
  6130. #define DEFINED_IN_CONFTESTD1
  6131. #include_next <conftest.h>
  6132. #ifdef DEFINED_IN_CONFTESTD2
  6133. int foo;
  6134. #else
  6135. #error "include_next doesn't work"
  6136. #endif
  6137. EOF
  6138. cat <<EOF > conftestd1b/conftest.h
  6139. #define DEFINED_IN_CONFTESTD1
  6140. #include <stdio.h>
  6141. #include_next <conftest.h>
  6142. #ifdef DEFINED_IN_CONFTESTD2
  6143. int foo;
  6144. #else
  6145. #error "include_next doesn't work"
  6146. #endif
  6147. EOF
  6148. cat <<EOF > conftestd2/conftest.h
  6149. #ifndef DEFINED_IN_CONFTESTD1
  6150. #error "include_next test doesn't work"
  6151. #endif
  6152. #define DEFINED_IN_CONFTESTD2
  6153. EOF
  6154. gl_save_CPPFLAGS="$CPPFLAGS"
  6155. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  6156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end confdefs.h. */
  6158. #include <conftest.h>
  6159. _ACEOF
  6160. if ac_fn_c_try_compile "$LINENO"; then :
  6161. gl_cv_have_include_next=yes
  6162. else
  6163. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  6164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6165. /* end confdefs.h. */
  6166. #include <conftest.h>
  6167. _ACEOF
  6168. if ac_fn_c_try_compile "$LINENO"; then :
  6169. gl_cv_have_include_next=buggy
  6170. else
  6171. gl_cv_have_include_next=no
  6172. fi
  6173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6174. fi
  6175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6176. CPPFLAGS="$gl_save_CPPFLAGS"
  6177. rm -rf conftestd1a conftestd1b conftestd2
  6178. fi
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  6180. $as_echo "$gl_cv_have_include_next" >&6; }
  6181. PRAGMA_SYSTEM_HEADER=
  6182. if test $gl_cv_have_include_next = yes; then
  6183. INCLUDE_NEXT=include_next
  6184. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  6185. if test -n "$GCC"; then
  6186. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  6187. fi
  6188. else
  6189. if test $gl_cv_have_include_next = buggy; then
  6190. INCLUDE_NEXT=include
  6191. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  6192. else
  6193. INCLUDE_NEXT=include
  6194. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  6195. fi
  6196. fi
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  6198. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  6199. if test "${gl_cv_pragma_columns+set}" = set; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. #ifdef __TANDEM
  6205. choke me
  6206. #endif
  6207. _ACEOF
  6208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6209. $EGREP "choke me" >/dev/null 2>&1; then :
  6210. gl_cv_pragma_columns=yes
  6211. else
  6212. gl_cv_pragma_columns=no
  6213. fi
  6214. rm -f conftest*
  6215. fi
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  6217. $as_echo "$gl_cv_pragma_columns" >&6; }
  6218. if test $gl_cv_pragma_columns = yes; then
  6219. PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  6220. else
  6221. PRAGMA_COLUMNS=
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
  6224. $as_echo_n "checking for complete errno.h... " >&6; }
  6225. if test "${gl_cv_header_errno_h_complete+set}" = set; then :
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. #include <errno.h>
  6231. #if !defined ETXTBSY
  6232. booboo
  6233. #endif
  6234. #if !defined ENOMSG
  6235. booboo
  6236. #endif
  6237. #if !defined EIDRM
  6238. booboo
  6239. #endif
  6240. #if !defined ENOLINK
  6241. booboo
  6242. #endif
  6243. #if !defined EPROTO
  6244. booboo
  6245. #endif
  6246. #if !defined EMULTIHOP
  6247. booboo
  6248. #endif
  6249. #if !defined EBADMSG
  6250. booboo
  6251. #endif
  6252. #if !defined EOVERFLOW
  6253. booboo
  6254. #endif
  6255. #if !defined ENOTSUP
  6256. booboo
  6257. #endif
  6258. #if !defined ENETRESET
  6259. booboo
  6260. #endif
  6261. #if !defined ECONNABORTED
  6262. booboo
  6263. #endif
  6264. #if !defined ESTALE
  6265. booboo
  6266. #endif
  6267. #if !defined EDQUOT
  6268. booboo
  6269. #endif
  6270. #if !defined ECANCELED
  6271. booboo
  6272. #endif
  6273. #if !defined EOWNERDEAD
  6274. booboo
  6275. #endif
  6276. #if !defined ENOTRECOVERABLE
  6277. booboo
  6278. #endif
  6279. #if !defined EILSEQ
  6280. booboo
  6281. #endif
  6282. _ACEOF
  6283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6284. $EGREP "booboo" >/dev/null 2>&1; then :
  6285. gl_cv_header_errno_h_complete=no
  6286. else
  6287. gl_cv_header_errno_h_complete=yes
  6288. fi
  6289. rm -f conftest*
  6290. fi
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
  6292. $as_echo "$gl_cv_header_errno_h_complete" >&6; }
  6293. if test $gl_cv_header_errno_h_complete = yes; then
  6294. ERRNO_H=''
  6295. else
  6296. if test $gl_cv_have_include_next = yes; then
  6297. gl_cv_next_errno_h='<'errno.h'>'
  6298. else
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
  6300. $as_echo_n "checking absolute name of <errno.h>... " >&6; }
  6301. if test "${gl_cv_next_errno_h+set}" = set; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6305. /* end confdefs.h. */
  6306. #include <errno.h>
  6307. _ACEOF
  6308. case "$host_os" in
  6309. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  6310. *) gl_absname_cpp="$ac_cpp" ;;
  6311. esac
  6312. case "$host_os" in
  6313. mingw*)
  6314. gl_dirsep_regex='[/\\]'
  6315. ;;
  6316. *)
  6317. gl_dirsep_regex='\/'
  6318. ;;
  6319. esac
  6320. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  6321. gl_header_literal_regex=`echo 'errno.h' \
  6322. | sed -e "$gl_make_literal_regex_sed"`
  6323. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  6324. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  6325. s|^/[^/]|//&|
  6326. p
  6327. q
  6328. }'
  6329. gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  6330. sed -n "$gl_absolute_header_sed"`
  6331. gl_header=$gl_cv_absolute_errno_h
  6332. gl_cv_next_errno_h='"'$gl_header'"'
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
  6335. $as_echo "$gl_cv_next_errno_h" >&6; }
  6336. fi
  6337. NEXT_ERRNO_H=$gl_cv_next_errno_h
  6338. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  6339. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  6340. gl_next_as_first_directive='<'errno.h'>'
  6341. else
  6342. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  6343. gl_next_as_first_directive=$gl_cv_next_errno_h
  6344. fi
  6345. NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
  6346. ERRNO_H='errno.h'
  6347. fi
  6348. if test -n "$ERRNO_H"; then
  6349. GL_GENERATE_ERRNO_H_TRUE=
  6350. GL_GENERATE_ERRNO_H_FALSE='#'
  6351. else
  6352. GL_GENERATE_ERRNO_H_TRUE='#'
  6353. GL_GENERATE_ERRNO_H_FALSE=
  6354. fi
  6355. if test -n "$ERRNO_H"; then
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
  6357. $as_echo_n "checking for EMULTIHOP value... " >&6; }
  6358. if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
  6359. $as_echo_n "(cached) " >&6
  6360. else
  6361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6362. /* end confdefs.h. */
  6363. #include <errno.h>
  6364. #ifdef EMULTIHOP
  6365. yes
  6366. #endif
  6367. _ACEOF
  6368. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6369. $EGREP "yes" >/dev/null 2>&1; then :
  6370. gl_cv_header_errno_h_EMULTIHOP=yes
  6371. else
  6372. gl_cv_header_errno_h_EMULTIHOP=no
  6373. fi
  6374. rm -f conftest*
  6375. if test $gl_cv_header_errno_h_EMULTIHOP = no; then
  6376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end confdefs.h. */
  6378. #define _XOPEN_SOURCE_EXTENDED 1
  6379. #include <errno.h>
  6380. #ifdef EMULTIHOP
  6381. yes
  6382. #endif
  6383. _ACEOF
  6384. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6385. $EGREP "yes" >/dev/null 2>&1; then :
  6386. gl_cv_header_errno_h_EMULTIHOP=hidden
  6387. fi
  6388. rm -f conftest*
  6389. if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
  6390. if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
  6391. #define _XOPEN_SOURCE_EXTENDED 1
  6392. #include <errno.h>
  6393. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  6394. #include <stdio.h>
  6395. #include <stdlib.h>
  6396. "; then :
  6397. fi
  6398. fi
  6399. fi
  6400. fi
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
  6402. $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
  6403. case $gl_cv_header_errno_h_EMULTIHOP in
  6404. yes | no)
  6405. EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
  6406. ;;
  6407. *)
  6408. EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
  6409. ;;
  6410. esac
  6411. fi
  6412. if test -n "$ERRNO_H"; then
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
  6414. $as_echo_n "checking for ENOLINK value... " >&6; }
  6415. if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6419. /* end confdefs.h. */
  6420. #include <errno.h>
  6421. #ifdef ENOLINK
  6422. yes
  6423. #endif
  6424. _ACEOF
  6425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6426. $EGREP "yes" >/dev/null 2>&1; then :
  6427. gl_cv_header_errno_h_ENOLINK=yes
  6428. else
  6429. gl_cv_header_errno_h_ENOLINK=no
  6430. fi
  6431. rm -f conftest*
  6432. if test $gl_cv_header_errno_h_ENOLINK = no; then
  6433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6434. /* end confdefs.h. */
  6435. #define _XOPEN_SOURCE_EXTENDED 1
  6436. #include <errno.h>
  6437. #ifdef ENOLINK
  6438. yes
  6439. #endif
  6440. _ACEOF
  6441. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6442. $EGREP "yes" >/dev/null 2>&1; then :
  6443. gl_cv_header_errno_h_ENOLINK=hidden
  6444. fi
  6445. rm -f conftest*
  6446. if test $gl_cv_header_errno_h_ENOLINK = hidden; then
  6447. if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
  6448. #define _XOPEN_SOURCE_EXTENDED 1
  6449. #include <errno.h>
  6450. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  6451. #include <stdio.h>
  6452. #include <stdlib.h>
  6453. "; then :
  6454. fi
  6455. fi
  6456. fi
  6457. fi
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
  6459. $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
  6460. case $gl_cv_header_errno_h_ENOLINK in
  6461. yes | no)
  6462. ENOLINK_HIDDEN=0; ENOLINK_VALUE=
  6463. ;;
  6464. *)
  6465. ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
  6466. ;;
  6467. esac
  6468. fi
  6469. if test -n "$ERRNO_H"; then
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
  6471. $as_echo_n "checking for EOVERFLOW value... " >&6; }
  6472. if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6476. /* end confdefs.h. */
  6477. #include <errno.h>
  6478. #ifdef EOVERFLOW
  6479. yes
  6480. #endif
  6481. _ACEOF
  6482. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6483. $EGREP "yes" >/dev/null 2>&1; then :
  6484. gl_cv_header_errno_h_EOVERFLOW=yes
  6485. else
  6486. gl_cv_header_errno_h_EOVERFLOW=no
  6487. fi
  6488. rm -f conftest*
  6489. if test $gl_cv_header_errno_h_EOVERFLOW = no; then
  6490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6491. /* end confdefs.h. */
  6492. #define _XOPEN_SOURCE_EXTENDED 1
  6493. #include <errno.h>
  6494. #ifdef EOVERFLOW
  6495. yes
  6496. #endif
  6497. _ACEOF
  6498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6499. $EGREP "yes" >/dev/null 2>&1; then :
  6500. gl_cv_header_errno_h_EOVERFLOW=hidden
  6501. fi
  6502. rm -f conftest*
  6503. if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
  6504. if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
  6505. #define _XOPEN_SOURCE_EXTENDED 1
  6506. #include <errno.h>
  6507. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  6508. #include <stdio.h>
  6509. #include <stdlib.h>
  6510. "; then :
  6511. fi
  6512. fi
  6513. fi
  6514. fi
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
  6516. $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
  6517. case $gl_cv_header_errno_h_EOVERFLOW in
  6518. yes | no)
  6519. EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
  6520. ;;
  6521. *)
  6522. EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
  6523. ;;
  6524. esac
  6525. fi
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  6527. $as_echo_n "checking for mbstate_t... " >&6; }
  6528. if test "${ac_cv_type_mbstate_t+set}" = set; then :
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6532. /* end confdefs.h. */
  6533. $ac_includes_default
  6534. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  6535. <wchar.h>.
  6536. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  6537. included before <wchar.h>. */
  6538. #include <stddef.h>
  6539. #include <stdio.h>
  6540. #include <time.h>
  6541. #include <wchar.h>
  6542. int
  6543. main ()
  6544. {
  6545. mbstate_t x; return sizeof x;
  6546. ;
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. if ac_fn_c_try_compile "$LINENO"; then :
  6551. ac_cv_type_mbstate_t=yes
  6552. else
  6553. ac_cv_type_mbstate_t=no
  6554. fi
  6555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6556. fi
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  6558. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  6559. if test $ac_cv_type_mbstate_t = yes; then
  6560. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  6561. else
  6562. $as_echo "#define mbstate_t int" >>confdefs.h
  6563. fi
  6564. GNULIB_ACOSF=0;
  6565. GNULIB_ACOSL=0;
  6566. GNULIB_ASINF=0;
  6567. GNULIB_ASINL=0;
  6568. GNULIB_ATANF=0;
  6569. GNULIB_ATANL=0;
  6570. GNULIB_ATAN2F=0;
  6571. GNULIB_CBRT=0;
  6572. GNULIB_CBRTF=0;
  6573. GNULIB_CBRTL=0;
  6574. GNULIB_CEIL=0;
  6575. GNULIB_CEILF=0;
  6576. GNULIB_CEILL=0;
  6577. GNULIB_COPYSIGN=0;
  6578. GNULIB_COPYSIGNF=0;
  6579. GNULIB_COPYSIGNL=0;
  6580. GNULIB_COSF=0;
  6581. GNULIB_COSL=0;
  6582. GNULIB_COSHF=0;
  6583. GNULIB_EXPF=0;
  6584. GNULIB_EXPL=0;
  6585. GNULIB_EXP2=0;
  6586. GNULIB_EXP2F=0;
  6587. GNULIB_EXP2L=0;
  6588. GNULIB_EXPM1=0;
  6589. GNULIB_EXPM1F=0;
  6590. GNULIB_EXPM1L=0;
  6591. GNULIB_FABSF=0;
  6592. GNULIB_FABSL=0;
  6593. GNULIB_FLOOR=0;
  6594. GNULIB_FLOORF=0;
  6595. GNULIB_FLOORL=0;
  6596. GNULIB_FMA=0;
  6597. GNULIB_FMAF=0;
  6598. GNULIB_FMAL=0;
  6599. GNULIB_FMOD=0;
  6600. GNULIB_FMODF=0;
  6601. GNULIB_FMODL=0;
  6602. GNULIB_FREXPF=0;
  6603. GNULIB_FREXP=0;
  6604. GNULIB_FREXPL=0;
  6605. GNULIB_HYPOT=0;
  6606. GNULIB_HYPOTF=0;
  6607. GNULIB_HYPOTL=0;
  6608. GNULIB_ILOGB=0;
  6609. GNULIB_ILOGBF=0;
  6610. GNULIB_ILOGBL=0;
  6611. GNULIB_ISFINITE=0;
  6612. GNULIB_ISINF=0;
  6613. GNULIB_ISNAN=0;
  6614. GNULIB_ISNANF=0;
  6615. GNULIB_ISNAND=0;
  6616. GNULIB_ISNANL=0;
  6617. GNULIB_LDEXPF=0;
  6618. GNULIB_LDEXPL=0;
  6619. GNULIB_LOG=0;
  6620. GNULIB_LOGF=0;
  6621. GNULIB_LOGL=0;
  6622. GNULIB_LOG10=0;
  6623. GNULIB_LOG10F=0;
  6624. GNULIB_LOG10L=0;
  6625. GNULIB_LOG1P=0;
  6626. GNULIB_LOG1PF=0;
  6627. GNULIB_LOG1PL=0;
  6628. GNULIB_LOG2=0;
  6629. GNULIB_LOG2F=0;
  6630. GNULIB_LOG2L=0;
  6631. GNULIB_LOGB=0;
  6632. GNULIB_LOGBF=0;
  6633. GNULIB_LOGBL=0;
  6634. GNULIB_MODF=0;
  6635. GNULIB_MODFF=0;
  6636. GNULIB_MODFL=0;
  6637. GNULIB_POWF=0;
  6638. GNULIB_REMAINDER=0;
  6639. GNULIB_REMAINDERF=0;
  6640. GNULIB_REMAINDERL=0;
  6641. GNULIB_RINT=0;
  6642. GNULIB_RINTF=0;
  6643. GNULIB_RINTL=0;
  6644. GNULIB_ROUND=0;
  6645. GNULIB_ROUNDF=0;
  6646. GNULIB_ROUNDL=0;
  6647. GNULIB_SIGNBIT=0;
  6648. GNULIB_SINF=0;
  6649. GNULIB_SINL=0;
  6650. GNULIB_SINHF=0;
  6651. GNULIB_SQRTF=0;
  6652. GNULIB_SQRTL=0;
  6653. GNULIB_TANF=0;
  6654. GNULIB_TANL=0;
  6655. GNULIB_TANHF=0;
  6656. GNULIB_TRUNC=0;
  6657. GNULIB_TRUNCF=0;
  6658. GNULIB_TRUNCL=0;
  6659. HAVE_ACOSF=1;
  6660. HAVE_ACOSL=1;
  6661. HAVE_ASINF=1;
  6662. HAVE_ASINL=1;
  6663. HAVE_ATANF=1;
  6664. HAVE_ATANL=1;
  6665. HAVE_ATAN2F=1;
  6666. HAVE_CBRT=1;
  6667. HAVE_CBRTF=1;
  6668. HAVE_CBRTL=1;
  6669. HAVE_COPYSIGN=1;
  6670. HAVE_COPYSIGNL=1;
  6671. HAVE_COSF=1;
  6672. HAVE_COSL=1;
  6673. HAVE_COSHF=1;
  6674. HAVE_EXPF=1;
  6675. HAVE_EXPL=1;
  6676. HAVE_EXPM1=1;
  6677. HAVE_EXPM1F=1;
  6678. HAVE_FABSF=1;
  6679. HAVE_FABSL=1;
  6680. HAVE_FMA=1;
  6681. HAVE_FMAF=1;
  6682. HAVE_FMAL=1;
  6683. HAVE_FMODF=1;
  6684. HAVE_FMODL=1;
  6685. HAVE_FREXPF=1;
  6686. HAVE_HYPOTF=1;
  6687. HAVE_HYPOTL=1;
  6688. HAVE_ILOGB=1;
  6689. HAVE_ILOGBF=1;
  6690. HAVE_ILOGBL=1;
  6691. HAVE_ISNANF=1;
  6692. HAVE_ISNAND=1;
  6693. HAVE_ISNANL=1;
  6694. HAVE_LDEXPF=1;
  6695. HAVE_LOGF=1;
  6696. HAVE_LOGL=1;
  6697. HAVE_LOG10F=1;
  6698. HAVE_LOG10L=1;
  6699. HAVE_LOG1P=1;
  6700. HAVE_LOG1PF=1;
  6701. HAVE_LOG1PL=1;
  6702. HAVE_LOGBF=1;
  6703. HAVE_LOGBL=1;
  6704. HAVE_MODFF=1;
  6705. HAVE_MODFL=1;
  6706. HAVE_POWF=1;
  6707. HAVE_REMAINDER=1;
  6708. HAVE_REMAINDERF=1;
  6709. HAVE_RINT=1;
  6710. HAVE_RINTL=1;
  6711. HAVE_SINF=1;
  6712. HAVE_SINL=1;
  6713. HAVE_SINHF=1;
  6714. HAVE_SQRTF=1;
  6715. HAVE_SQRTL=1;
  6716. HAVE_TANF=1;
  6717. HAVE_TANL=1;
  6718. HAVE_TANHF=1;
  6719. HAVE_DECL_ACOSL=1;
  6720. HAVE_DECL_ASINL=1;
  6721. HAVE_DECL_ATANL=1;
  6722. HAVE_DECL_CBRTF=1;
  6723. HAVE_DECL_CBRTL=1;
  6724. HAVE_DECL_CEILF=1;
  6725. HAVE_DECL_CEILL=1;
  6726. HAVE_DECL_COPYSIGNF=1;
  6727. HAVE_DECL_COSL=1;
  6728. HAVE_DECL_EXPL=1;
  6729. HAVE_DECL_EXP2=1;
  6730. HAVE_DECL_EXP2F=1;
  6731. HAVE_DECL_EXP2L=1;
  6732. HAVE_DECL_EXPM1L=1;
  6733. HAVE_DECL_FLOORF=1;
  6734. HAVE_DECL_FLOORL=1;
  6735. HAVE_DECL_FREXPL=1;
  6736. HAVE_DECL_LDEXPL=1;
  6737. HAVE_DECL_LOGL=1;
  6738. HAVE_DECL_LOG10L=1;
  6739. HAVE_DECL_LOG2=1;
  6740. HAVE_DECL_LOG2F=1;
  6741. HAVE_DECL_LOG2L=1;
  6742. HAVE_DECL_LOGB=1;
  6743. HAVE_DECL_REMAINDER=1;
  6744. HAVE_DECL_REMAINDERL=1;
  6745. HAVE_DECL_RINTF=1;
  6746. HAVE_DECL_ROUND=1;
  6747. HAVE_DECL_ROUNDF=1;
  6748. HAVE_DECL_ROUNDL=1;
  6749. HAVE_DECL_SINL=1;
  6750. HAVE_DECL_SQRTL=1;
  6751. HAVE_DECL_TANL=1;
  6752. HAVE_DECL_TRUNC=1;
  6753. HAVE_DECL_TRUNCF=1;
  6754. HAVE_DECL_TRUNCL=1;
  6755. REPLACE_CBRTF=0;
  6756. REPLACE_CBRTL=0;
  6757. REPLACE_CEIL=0;
  6758. REPLACE_CEILF=0;
  6759. REPLACE_CEILL=0;
  6760. REPLACE_EXPM1=0;
  6761. REPLACE_EXPM1F=0;
  6762. REPLACE_EXP2=0;
  6763. REPLACE_EXP2L=0;
  6764. REPLACE_FABSL=0;
  6765. REPLACE_FLOOR=0;
  6766. REPLACE_FLOORF=0;
  6767. REPLACE_FLOORL=0;
  6768. REPLACE_FMA=0;
  6769. REPLACE_FMAF=0;
  6770. REPLACE_FMAL=0;
  6771. REPLACE_FMOD=0;
  6772. REPLACE_FMODF=0;
  6773. REPLACE_FMODL=0;
  6774. REPLACE_FREXPF=0;
  6775. REPLACE_FREXP=0;
  6776. REPLACE_FREXPL=0;
  6777. REPLACE_HUGE_VAL=0;
  6778. REPLACE_HYPOT=0;
  6779. REPLACE_HYPOTF=0;
  6780. REPLACE_HYPOTL=0;
  6781. REPLACE_ILOGB=0;
  6782. REPLACE_ILOGBF=0;
  6783. REPLACE_ISFINITE=0;
  6784. REPLACE_ISINF=0;
  6785. REPLACE_ISNAN=0;
  6786. REPLACE_LDEXPL=0;
  6787. REPLACE_LOG=0;
  6788. REPLACE_LOGF=0;
  6789. REPLACE_LOGL=0;
  6790. REPLACE_LOG10=0;
  6791. REPLACE_LOG10F=0;
  6792. REPLACE_LOG10L=0;
  6793. REPLACE_LOG1P=0;
  6794. REPLACE_LOG1PF=0;
  6795. REPLACE_LOG1PL=0;
  6796. REPLACE_LOG2=0;
  6797. REPLACE_LOG2F=0;
  6798. REPLACE_LOG2L=0;
  6799. REPLACE_LOGB=0;
  6800. REPLACE_LOGBF=0;
  6801. REPLACE_LOGBL=0;
  6802. REPLACE_MODF=0;
  6803. REPLACE_MODFF=0;
  6804. REPLACE_MODFL=0;
  6805. REPLACE_NAN=0;
  6806. REPLACE_REMAINDER=0;
  6807. REPLACE_REMAINDERF=0;
  6808. REPLACE_REMAINDERL=0;
  6809. REPLACE_ROUND=0;
  6810. REPLACE_ROUNDF=0;
  6811. REPLACE_ROUNDL=0;
  6812. REPLACE_SIGNBIT=0;
  6813. REPLACE_SIGNBIT_USING_GCC=0;
  6814. REPLACE_SQRTL=0;
  6815. REPLACE_TRUNC=0;
  6816. REPLACE_TRUNCF=0;
  6817. REPLACE_TRUNCL=0;
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
  6819. $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
  6820. if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6824. /* end confdefs.h. */
  6825. #include <math.h>
  6826. double x;
  6827. int
  6828. main ()
  6829. {
  6830. int e; return frexp (x, &e) > 0;
  6831. ;
  6832. return 0;
  6833. }
  6834. _ACEOF
  6835. if ac_fn_c_try_link "$LINENO"; then :
  6836. gl_cv_func_frexp_no_libm=yes
  6837. else
  6838. gl_cv_func_frexp_no_libm=no
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext \
  6841. conftest$ac_exeext conftest.$ac_ext
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
  6844. $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
  6845. ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
  6846. if test "x$ac_cv_have_decl_alarm" = x""yes; then :
  6847. ac_have_decl=1
  6848. else
  6849. ac_have_decl=0
  6850. fi
  6851. cat >>confdefs.h <<_ACEOF
  6852. #define HAVE_DECL_ALARM $ac_have_decl
  6853. _ACEOF
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
  6855. $as_echo_n "checking whether long double and double are the same... " >&6; }
  6856. if test "${gl_cv_long_double_equals_double+set}" = set; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6860. /* end confdefs.h. */
  6861. #include <float.h>
  6862. int
  6863. main ()
  6864. {
  6865. typedef int check[sizeof (long double) == sizeof (double)
  6866. && LDBL_MANT_DIG == DBL_MANT_DIG
  6867. && LDBL_MAX_EXP == DBL_MAX_EXP
  6868. && LDBL_MIN_EXP == DBL_MIN_EXP
  6869. ? 1 : -1];
  6870. ;
  6871. return 0;
  6872. }
  6873. _ACEOF
  6874. if ac_fn_c_try_compile "$LINENO"; then :
  6875. gl_cv_long_double_equals_double=yes
  6876. else
  6877. gl_cv_long_double_equals_double=no
  6878. fi
  6879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
  6882. $as_echo "$gl_cv_long_double_equals_double" >&6; }
  6883. if test $gl_cv_long_double_equals_double = yes; then
  6884. $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
  6885. HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
  6886. else
  6887. HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
  6888. fi
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  6890. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  6891. if test "${ac_cv_c_restrict+set}" = set; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. ac_cv_c_restrict=no
  6895. # The order here caters to the fact that C++ does not require restrict.
  6896. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. typedef int *int_ptr;
  6900. int foo (int_ptr $ac_kw ip) { return ip[0]; }
  6901. int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
  6902. int bar (int ip[$ac_kw]) { return ip[0]; }
  6903. int
  6904. main ()
  6905. {
  6906. int s[1];
  6907. int *$ac_kw t = s;
  6908. t[0] = 0;
  6909. return foo (t) + bar (t);
  6910. ;
  6911. return 0;
  6912. }
  6913. _ACEOF
  6914. if ac_fn_c_try_compile "$LINENO"; then :
  6915. ac_cv_c_restrict=$ac_kw
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. test "$ac_cv_c_restrict" != no && break
  6919. done
  6920. fi
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  6922. $as_echo "$ac_cv_c_restrict" >&6; }
  6923. case $ac_cv_c_restrict in
  6924. restrict) ;;
  6925. no) $as_echo "#define restrict /**/" >>confdefs.h
  6926. ;;
  6927. *) cat >>confdefs.h <<_ACEOF
  6928. #define restrict $ac_cv_c_restrict
  6929. _ACEOF
  6930. ;;
  6931. esac
  6932. GNULIB_GETTIMEOFDAY=0;
  6933. HAVE_GETTIMEOFDAY=1;
  6934. HAVE_STRUCT_TIMEVAL=1;
  6935. HAVE_SYS_TIME_H=1;
  6936. HAVE_TIMEZONE_T=0;
  6937. REPLACE_GETTIMEOFDAY=0;
  6938. REPLACE_STRUCT_TIMEVAL=0;
  6939. if test $gl_cv_have_include_next = yes; then
  6940. gl_cv_next_sys_time_h='<'sys/time.h'>'
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
  6943. $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
  6944. if test "${gl_cv_next_sys_time_h+set}" = set; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. if test $ac_cv_header_sys_time_h = yes; then
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. #include <sys/time.h>
  6951. _ACEOF
  6952. case "$host_os" in
  6953. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  6954. *) gl_absname_cpp="$ac_cpp" ;;
  6955. esac
  6956. case "$host_os" in
  6957. mingw*)
  6958. gl_dirsep_regex='[/\\]'
  6959. ;;
  6960. *)
  6961. gl_dirsep_regex='\/'
  6962. ;;
  6963. esac
  6964. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  6965. gl_header_literal_regex=`echo 'sys/time.h' \
  6966. | sed -e "$gl_make_literal_regex_sed"`
  6967. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  6968. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  6969. s|^/[^/]|//&|
  6970. p
  6971. q
  6972. }'
  6973. gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  6974. sed -n "$gl_absolute_header_sed"`
  6975. gl_header=$gl_cv_absolute_sys_time_h
  6976. gl_cv_next_sys_time_h='"'$gl_header'"'
  6977. else
  6978. gl_cv_next_sys_time_h='<'sys/time.h'>'
  6979. fi
  6980. fi
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
  6982. $as_echo "$gl_cv_next_sys_time_h" >&6; }
  6983. fi
  6984. NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
  6985. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  6986. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  6987. gl_next_as_first_directive='<'sys/time.h'>'
  6988. else
  6989. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  6990. gl_next_as_first_directive=$gl_cv_next_sys_time_h
  6991. fi
  6992. NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
  6993. if test $ac_cv_header_sys_time_h != yes; then
  6994. HAVE_SYS_TIME_H=0
  6995. fi
  6996. if test $ac_cv_header_sys_socket_h != yes; then
  6997. for ac_header in winsock2.h
  6998. do :
  6999. ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  7000. if test "x$ac_cv_header_winsock2_h" = x""yes; then :
  7001. cat >>confdefs.h <<_ACEOF
  7002. #define HAVE_WINSOCK2_H 1
  7003. _ACEOF
  7004. fi
  7005. done
  7006. fi
  7007. if test "$ac_cv_header_winsock2_h" = yes; then
  7008. HAVE_WINSOCK2_H=1
  7009. UNISTD_H_HAVE_WINSOCK2_H=1
  7010. SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  7011. else
  7012. HAVE_WINSOCK2_H=0
  7013. fi
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  7015. $as_echo_n "checking for struct timeval... " >&6; }
  7016. if test "${gl_cv_sys_struct_timeval+set}" = set; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7020. /* end confdefs.h. */
  7021. #if HAVE_SYS_TIME_H
  7022. #include <sys/time.h>
  7023. #endif
  7024. #include <time.h>
  7025. #if HAVE_WINSOCK2_H
  7026. # include <winsock2.h>
  7027. #endif
  7028. int
  7029. main ()
  7030. {
  7031. static struct timeval x; x.tv_sec = x.tv_usec;
  7032. ;
  7033. return 0;
  7034. }
  7035. _ACEOF
  7036. if ac_fn_c_try_compile "$LINENO"; then :
  7037. gl_cv_sys_struct_timeval=yes
  7038. else
  7039. gl_cv_sys_struct_timeval=no
  7040. fi
  7041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7042. fi
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
  7044. $as_echo "$gl_cv_sys_struct_timeval" >&6; }
  7045. if test $gl_cv_sys_struct_timeval != yes; then
  7046. HAVE_STRUCT_TIMEVAL=0
  7047. else
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
  7049. $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
  7050. if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
  7051. $as_echo_n "(cached) " >&6
  7052. else
  7053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7054. /* end confdefs.h. */
  7055. #if HAVE_SYS_TIME_H
  7056. #include <sys/time.h>
  7057. #endif
  7058. #include <time.h>
  7059. #if HAVE_WINSOCK2_H
  7060. # include <winsock2.h>
  7061. #endif
  7062. int
  7063. main ()
  7064. {
  7065. static struct timeval x;
  7066. typedef int verify_tv_sec_type[
  7067. sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
  7068. ];
  7069. ;
  7070. return 0;
  7071. }
  7072. _ACEOF
  7073. if ac_fn_c_try_compile "$LINENO"; then :
  7074. gl_cv_sys_struct_timeval_tv_sec=yes
  7075. else
  7076. gl_cv_sys_struct_timeval_tv_sec=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
  7081. $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
  7082. if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
  7083. REPLACE_STRUCT_TIMEVAL=1
  7084. fi
  7085. fi
  7086. for gl_func in gettimeofday; do
  7087. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  7089. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  7090. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7094. /* end confdefs.h. */
  7095. #if HAVE_SYS_TIME_H
  7096. # include <sys/time.h>
  7097. #endif
  7098. #include <time.h>
  7099. int
  7100. main ()
  7101. {
  7102. #undef $gl_func
  7103. (void) $gl_func;
  7104. ;
  7105. return 0;
  7106. }
  7107. _ACEOF
  7108. if ac_fn_c_try_compile "$LINENO"; then :
  7109. eval "$as_gl_Symbol=yes"
  7110. else
  7111. eval "$as_gl_Symbol=no"
  7112. fi
  7113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7114. fi
  7115. eval ac_res=\$$as_gl_Symbol
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7117. $as_echo "$ac_res" >&6; }
  7118. eval as_val=\$$as_gl_Symbol
  7119. if test "x$as_val" = x""yes; then :
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  7122. _ACEOF
  7123. eval ac_cv_have_decl_$gl_func=yes
  7124. fi
  7125. done
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  7127. $as_echo_n "checking for unsigned long long int... " >&6; }
  7128. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. ac_cv_type_unsigned_long_long_int=yes
  7132. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7134. /* end confdefs.h. */
  7135. /* For now, do not test the preprocessor; as of 2007 there are too many
  7136. implementations with broken preprocessors. Perhaps this can
  7137. be revisited in 2012. In the meantime, code should not expect
  7138. #if to work with literals wider than 32 bits. */
  7139. /* Test literals. */
  7140. long long int ll = 9223372036854775807ll;
  7141. long long int nll = -9223372036854775807LL;
  7142. unsigned long long int ull = 18446744073709551615ULL;
  7143. /* Test constant expressions. */
  7144. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  7145. ? 1 : -1)];
  7146. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  7147. ? 1 : -1)];
  7148. int i = 63;
  7149. int
  7150. main ()
  7151. {
  7152. /* Test availability of runtime routines for shift and division. */
  7153. long long int llmax = 9223372036854775807ll;
  7154. unsigned long long int ullmax = 18446744073709551615ull;
  7155. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  7156. | (llmax / ll) | (llmax % ll)
  7157. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  7158. | (ullmax / ull) | (ullmax % ull));
  7159. ;
  7160. return 0;
  7161. }
  7162. _ACEOF
  7163. if ac_fn_c_try_link "$LINENO"; then :
  7164. else
  7165. ac_cv_type_unsigned_long_long_int=no
  7166. fi
  7167. rm -f core conftest.err conftest.$ac_objext \
  7168. conftest$ac_exeext conftest.$ac_ext
  7169. fi
  7170. fi
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  7172. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  7173. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7174. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  7175. fi
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  7177. $as_echo_n "checking for long long int... " >&6; }
  7178. if test "${ac_cv_type_long_long_int+set}" = set; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. ac_cv_type_long_long_int=yes
  7182. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7183. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  7184. if test $ac_cv_type_long_long_int = yes; then
  7185. if test "$cross_compiling" = yes; then :
  7186. :
  7187. else
  7188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7189. /* end confdefs.h. */
  7190. #include <limits.h>
  7191. #ifndef LLONG_MAX
  7192. # define HALF \
  7193. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  7194. # define LLONG_MAX (HALF - 1 + HALF)
  7195. #endif
  7196. int
  7197. main ()
  7198. {
  7199. long long int n = 1;
  7200. int i;
  7201. for (i = 0; ; i++)
  7202. {
  7203. long long int m = n << i;
  7204. if (m >> i != n)
  7205. return 1;
  7206. if (LLONG_MAX / 2 < m)
  7207. break;
  7208. }
  7209. return 0;
  7210. ;
  7211. return 0;
  7212. }
  7213. _ACEOF
  7214. if ac_fn_c_try_run "$LINENO"; then :
  7215. else
  7216. ac_cv_type_long_long_int=no
  7217. fi
  7218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7219. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7220. fi
  7221. fi
  7222. fi
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  7225. $as_echo "$ac_cv_type_long_long_int" >&6; }
  7226. if test $ac_cv_type_long_long_int = yes; then
  7227. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  7228. fi
  7229. gl_cv_c_multiarch=no
  7230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7231. /* end confdefs.h. */
  7232. #ifndef __APPLE_CC__
  7233. not a universal capable compiler
  7234. #endif
  7235. typedef int dummy;
  7236. _ACEOF
  7237. if ac_fn_c_try_compile "$LINENO"; then :
  7238. arch=
  7239. prev=
  7240. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  7241. if test -n "$prev"; then
  7242. case $word in
  7243. i?86 | x86_64 | ppc | ppc64)
  7244. if test -z "$arch" || test "$arch" = "$word"; then
  7245. arch="$word"
  7246. else
  7247. gl_cv_c_multiarch=yes
  7248. fi
  7249. ;;
  7250. esac
  7251. prev=
  7252. else
  7253. if test "x$word" = "x-arch"; then
  7254. prev=arch
  7255. fi
  7256. fi
  7257. done
  7258. fi
  7259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7260. if test $gl_cv_c_multiarch = yes; then
  7261. APPLE_UNIVERSAL_BUILD=1
  7262. else
  7263. APPLE_UNIVERSAL_BUILD=0
  7264. fi
  7265. if test $ac_cv_type_long_long_int = yes; then
  7266. HAVE_LONG_LONG_INT=1
  7267. else
  7268. HAVE_LONG_LONG_INT=0
  7269. fi
  7270. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7271. HAVE_UNSIGNED_LONG_LONG_INT=1
  7272. else
  7273. HAVE_UNSIGNED_LONG_LONG_INT=0
  7274. fi
  7275. if test $ac_cv_header_wchar_h = yes; then
  7276. HAVE_WCHAR_H=1
  7277. else
  7278. HAVE_WCHAR_H=0
  7279. fi
  7280. if test $ac_cv_header_inttypes_h = yes; then
  7281. HAVE_INTTYPES_H=1
  7282. else
  7283. HAVE_INTTYPES_H=0
  7284. fi
  7285. if test $ac_cv_header_sys_types_h = yes; then
  7286. HAVE_SYS_TYPES_H=1
  7287. else
  7288. HAVE_SYS_TYPES_H=0
  7289. fi
  7290. if test $gl_cv_have_include_next = yes; then
  7291. gl_cv_next_stdint_h='<'stdint.h'>'
  7292. else
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  7294. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  7295. if test "${gl_cv_next_stdint_h+set}" = set; then :
  7296. $as_echo_n "(cached) " >&6
  7297. else
  7298. if test $ac_cv_header_stdint_h = yes; then
  7299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7300. /* end confdefs.h. */
  7301. #include <stdint.h>
  7302. _ACEOF
  7303. case "$host_os" in
  7304. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  7305. *) gl_absname_cpp="$ac_cpp" ;;
  7306. esac
  7307. case "$host_os" in
  7308. mingw*)
  7309. gl_dirsep_regex='[/\\]'
  7310. ;;
  7311. *)
  7312. gl_dirsep_regex='\/'
  7313. ;;
  7314. esac
  7315. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  7316. gl_header_literal_regex=`echo 'stdint.h' \
  7317. | sed -e "$gl_make_literal_regex_sed"`
  7318. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  7319. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  7320. s|^/[^/]|//&|
  7321. p
  7322. q
  7323. }'
  7324. gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  7325. sed -n "$gl_absolute_header_sed"`
  7326. gl_header=$gl_cv_absolute_stdint_h
  7327. gl_cv_next_stdint_h='"'$gl_header'"'
  7328. else
  7329. gl_cv_next_stdint_h='<'stdint.h'>'
  7330. fi
  7331. fi
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  7333. $as_echo "$gl_cv_next_stdint_h" >&6; }
  7334. fi
  7335. NEXT_STDINT_H=$gl_cv_next_stdint_h
  7336. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  7337. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  7338. gl_next_as_first_directive='<'stdint.h'>'
  7339. else
  7340. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  7341. gl_next_as_first_directive=$gl_cv_next_stdint_h
  7342. fi
  7343. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  7344. if test $ac_cv_header_stdint_h = yes; then
  7345. HAVE_STDINT_H=1
  7346. else
  7347. HAVE_STDINT_H=0
  7348. fi
  7349. if test $ac_cv_header_stdint_h = yes; then
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  7351. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  7352. if test "${gl_cv_header_working_stdint_h+set}" = set; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. gl_cv_header_working_stdint_h=no
  7356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7357. /* end confdefs.h. */
  7358. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  7359. #include <stdint.h>
  7360. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  7361. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  7362. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  7363. #endif
  7364. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7365. included before <wchar.h>. */
  7366. #include <stddef.h>
  7367. #include <signal.h>
  7368. #if HAVE_WCHAR_H
  7369. # include <stdio.h>
  7370. # include <time.h>
  7371. # include <wchar.h>
  7372. #endif
  7373. #ifdef INT8_MAX
  7374. int8_t a1 = INT8_MAX;
  7375. int8_t a1min = INT8_MIN;
  7376. #endif
  7377. #ifdef INT16_MAX
  7378. int16_t a2 = INT16_MAX;
  7379. int16_t a2min = INT16_MIN;
  7380. #endif
  7381. #ifdef INT32_MAX
  7382. int32_t a3 = INT32_MAX;
  7383. int32_t a3min = INT32_MIN;
  7384. #endif
  7385. #ifdef INT64_MAX
  7386. int64_t a4 = INT64_MAX;
  7387. int64_t a4min = INT64_MIN;
  7388. #endif
  7389. #ifdef UINT8_MAX
  7390. uint8_t b1 = UINT8_MAX;
  7391. #else
  7392. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  7393. #endif
  7394. #ifdef UINT16_MAX
  7395. uint16_t b2 = UINT16_MAX;
  7396. #endif
  7397. #ifdef UINT32_MAX
  7398. uint32_t b3 = UINT32_MAX;
  7399. #endif
  7400. #ifdef UINT64_MAX
  7401. uint64_t b4 = UINT64_MAX;
  7402. #endif
  7403. int_least8_t c1 = INT8_C (0x7f);
  7404. int_least8_t c1max = INT_LEAST8_MAX;
  7405. int_least8_t c1min = INT_LEAST8_MIN;
  7406. int_least16_t c2 = INT16_C (0x7fff);
  7407. int_least16_t c2max = INT_LEAST16_MAX;
  7408. int_least16_t c2min = INT_LEAST16_MIN;
  7409. int_least32_t c3 = INT32_C (0x7fffffff);
  7410. int_least32_t c3max = INT_LEAST32_MAX;
  7411. int_least32_t c3min = INT_LEAST32_MIN;
  7412. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  7413. int_least64_t c4max = INT_LEAST64_MAX;
  7414. int_least64_t c4min = INT_LEAST64_MIN;
  7415. uint_least8_t d1 = UINT8_C (0xff);
  7416. uint_least8_t d1max = UINT_LEAST8_MAX;
  7417. uint_least16_t d2 = UINT16_C (0xffff);
  7418. uint_least16_t d2max = UINT_LEAST16_MAX;
  7419. uint_least32_t d3 = UINT32_C (0xffffffff);
  7420. uint_least32_t d3max = UINT_LEAST32_MAX;
  7421. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  7422. uint_least64_t d4max = UINT_LEAST64_MAX;
  7423. int_fast8_t e1 = INT_FAST8_MAX;
  7424. int_fast8_t e1min = INT_FAST8_MIN;
  7425. int_fast16_t e2 = INT_FAST16_MAX;
  7426. int_fast16_t e2min = INT_FAST16_MIN;
  7427. int_fast32_t e3 = INT_FAST32_MAX;
  7428. int_fast32_t e3min = INT_FAST32_MIN;
  7429. int_fast64_t e4 = INT_FAST64_MAX;
  7430. int_fast64_t e4min = INT_FAST64_MIN;
  7431. uint_fast8_t f1 = UINT_FAST8_MAX;
  7432. uint_fast16_t f2 = UINT_FAST16_MAX;
  7433. uint_fast32_t f3 = UINT_FAST32_MAX;
  7434. uint_fast64_t f4 = UINT_FAST64_MAX;
  7435. #ifdef INTPTR_MAX
  7436. intptr_t g = INTPTR_MAX;
  7437. intptr_t gmin = INTPTR_MIN;
  7438. #endif
  7439. #ifdef UINTPTR_MAX
  7440. uintptr_t h = UINTPTR_MAX;
  7441. #endif
  7442. intmax_t i = INTMAX_MAX;
  7443. uintmax_t j = UINTMAX_MAX;
  7444. #include <limits.h> /* for CHAR_BIT */
  7445. #define TYPE_MINIMUM(t) \
  7446. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  7447. #define TYPE_MAXIMUM(t) \
  7448. ((t) ((t) 0 < (t) -1 \
  7449. ? (t) -1 \
  7450. : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  7451. struct s {
  7452. int check_PTRDIFF:
  7453. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  7454. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  7455. ? 1 : -1;
  7456. /* Detect bug in FreeBSD 6.0 / ia64. */
  7457. int check_SIG_ATOMIC:
  7458. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  7459. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  7460. ? 1 : -1;
  7461. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  7462. int check_WCHAR:
  7463. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  7464. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  7465. ? 1 : -1;
  7466. /* Detect bug in mingw. */
  7467. int check_WINT:
  7468. WINT_MIN == TYPE_MINIMUM (wint_t)
  7469. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  7470. ? 1 : -1;
  7471. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  7472. int check_UINT8_C:
  7473. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  7474. int check_UINT16_C:
  7475. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  7476. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  7477. #ifdef UINT8_MAX
  7478. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  7479. #endif
  7480. #ifdef UINT16_MAX
  7481. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  7482. #endif
  7483. #ifdef UINT32_MAX
  7484. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  7485. #endif
  7486. #ifdef UINT64_MAX
  7487. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  7488. #endif
  7489. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  7490. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  7491. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  7492. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  7493. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  7494. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  7495. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  7496. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  7497. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  7498. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  7499. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  7500. };
  7501. int
  7502. main ()
  7503. {
  7504. ;
  7505. return 0;
  7506. }
  7507. _ACEOF
  7508. if ac_fn_c_try_compile "$LINENO"; then :
  7509. if test "$cross_compiling" = yes; then :
  7510. gl_cv_header_working_stdint_h=yes
  7511. else
  7512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7513. /* end confdefs.h. */
  7514. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  7515. #include <stdint.h>
  7516. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7517. included before <wchar.h>. */
  7518. #include <stddef.h>
  7519. #include <signal.h>
  7520. #if HAVE_WCHAR_H
  7521. # include <stdio.h>
  7522. # include <time.h>
  7523. # include <wchar.h>
  7524. #endif
  7525. #include <stdio.h>
  7526. #include <string.h>
  7527. #define MVAL(macro) MVAL1(macro)
  7528. #define MVAL1(expression) #expression
  7529. static const char *macro_values[] =
  7530. {
  7531. #ifdef INT8_MAX
  7532. MVAL (INT8_MAX),
  7533. #endif
  7534. #ifdef INT16_MAX
  7535. MVAL (INT16_MAX),
  7536. #endif
  7537. #ifdef INT32_MAX
  7538. MVAL (INT32_MAX),
  7539. #endif
  7540. #ifdef INT64_MAX
  7541. MVAL (INT64_MAX),
  7542. #endif
  7543. #ifdef UINT8_MAX
  7544. MVAL (UINT8_MAX),
  7545. #endif
  7546. #ifdef UINT16_MAX
  7547. MVAL (UINT16_MAX),
  7548. #endif
  7549. #ifdef UINT32_MAX
  7550. MVAL (UINT32_MAX),
  7551. #endif
  7552. #ifdef UINT64_MAX
  7553. MVAL (UINT64_MAX),
  7554. #endif
  7555. NULL
  7556. };
  7557. int
  7558. main ()
  7559. {
  7560. const char **mv;
  7561. for (mv = macro_values; *mv != NULL; mv++)
  7562. {
  7563. const char *value = *mv;
  7564. /* Test whether it looks like a cast expression. */
  7565. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  7566. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  7567. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  7568. || strncmp (value, "((int)"/*)*/, 6) == 0
  7569. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  7570. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  7571. return mv - macro_values + 1;
  7572. }
  7573. return 0;
  7574. ;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_c_try_run "$LINENO"; then :
  7579. gl_cv_header_working_stdint_h=yes
  7580. fi
  7581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7583. fi
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  7588. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  7589. fi
  7590. if test "$gl_cv_header_working_stdint_h" = yes; then
  7591. STDINT_H=
  7592. else
  7593. for ac_header in sys/inttypes.h sys/bitypes.h
  7594. do :
  7595. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7596. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7597. eval as_val=\$$as_ac_Header
  7598. if test "x$as_val" = x""yes; then :
  7599. cat >>confdefs.h <<_ACEOF
  7600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7601. _ACEOF
  7602. fi
  7603. done
  7604. if test $ac_cv_header_sys_inttypes_h = yes; then
  7605. HAVE_SYS_INTTYPES_H=1
  7606. else
  7607. HAVE_SYS_INTTYPES_H=0
  7608. fi
  7609. if test $ac_cv_header_sys_bitypes_h = yes; then
  7610. HAVE_SYS_BITYPES_H=1
  7611. else
  7612. HAVE_SYS_BITYPES_H=0
  7613. fi
  7614. if test $APPLE_UNIVERSAL_BUILD = 0; then
  7615. for gltype in ptrdiff_t size_t ; do
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  7617. $as_echo_n "checking for bit size of $gltype... " >&6; }
  7618. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  7622. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7623. included before <wchar.h>. */
  7624. #include <stddef.h>
  7625. #include <signal.h>
  7626. #if HAVE_WCHAR_H
  7627. # include <stdio.h>
  7628. # include <time.h>
  7629. # include <wchar.h>
  7630. #endif
  7631. #include <limits.h>"; then :
  7632. else
  7633. result=unknown
  7634. fi
  7635. eval gl_cv_bitsizeof_${gltype}=\$result
  7636. fi
  7637. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7639. $as_echo "$ac_res" >&6; }
  7640. eval result=\$gl_cv_bitsizeof_${gltype}
  7641. if test $result = unknown; then
  7642. result=0
  7643. fi
  7644. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7645. cat >>confdefs.h <<_ACEOF
  7646. #define BITSIZEOF_${GLTYPE} $result
  7647. _ACEOF
  7648. eval BITSIZEOF_${GLTYPE}=\$result
  7649. done
  7650. fi
  7651. for gltype in sig_atomic_t wchar_t wint_t ; do
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  7653. $as_echo_n "checking for bit size of $gltype... " >&6; }
  7654. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
  7655. $as_echo_n "(cached) " >&6
  7656. else
  7657. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  7658. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7659. included before <wchar.h>. */
  7660. #include <stddef.h>
  7661. #include <signal.h>
  7662. #if HAVE_WCHAR_H
  7663. # include <stdio.h>
  7664. # include <time.h>
  7665. # include <wchar.h>
  7666. #endif
  7667. #include <limits.h>"; then :
  7668. else
  7669. result=unknown
  7670. fi
  7671. eval gl_cv_bitsizeof_${gltype}=\$result
  7672. fi
  7673. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7675. $as_echo "$ac_res" >&6; }
  7676. eval result=\$gl_cv_bitsizeof_${gltype}
  7677. if test $result = unknown; then
  7678. result=0
  7679. fi
  7680. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7681. cat >>confdefs.h <<_ACEOF
  7682. #define BITSIZEOF_${GLTYPE} $result
  7683. _ACEOF
  7684. eval BITSIZEOF_${GLTYPE}=\$result
  7685. done
  7686. for gltype in sig_atomic_t wchar_t wint_t ; do
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  7688. $as_echo_n "checking whether $gltype is signed... " >&6; }
  7689. if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7693. /* end confdefs.h. */
  7694. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7695. included before <wchar.h>. */
  7696. #include <stddef.h>
  7697. #include <signal.h>
  7698. #if HAVE_WCHAR_H
  7699. # include <stdio.h>
  7700. # include <time.h>
  7701. # include <wchar.h>
  7702. #endif
  7703. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  7704. int
  7705. main ()
  7706. {
  7707. ;
  7708. return 0;
  7709. }
  7710. _ACEOF
  7711. if ac_fn_c_try_compile "$LINENO"; then :
  7712. result=yes
  7713. else
  7714. result=no
  7715. fi
  7716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7717. eval gl_cv_type_${gltype}_signed=\$result
  7718. fi
  7719. eval ac_res=\$gl_cv_type_${gltype}_signed
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7721. $as_echo "$ac_res" >&6; }
  7722. eval result=\$gl_cv_type_${gltype}_signed
  7723. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7724. if test "$result" = yes; then
  7725. cat >>confdefs.h <<_ACEOF
  7726. #define HAVE_SIGNED_${GLTYPE} 1
  7727. _ACEOF
  7728. eval HAVE_SIGNED_${GLTYPE}=1
  7729. else
  7730. eval HAVE_SIGNED_${GLTYPE}=0
  7731. fi
  7732. done
  7733. gl_cv_type_ptrdiff_t_signed=yes
  7734. gl_cv_type_size_t_signed=no
  7735. if test $APPLE_UNIVERSAL_BUILD = 0; then
  7736. for gltype in ptrdiff_t size_t ; do
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  7738. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  7739. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
  7740. $as_echo_n "(cached) " >&6
  7741. else
  7742. eval gl_cv_type_${gltype}_suffix=no
  7743. eval result=\$gl_cv_type_${gltype}_signed
  7744. if test "$result" = yes; then
  7745. glsufu=
  7746. else
  7747. glsufu=u
  7748. fi
  7749. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  7750. case $glsuf in
  7751. '') gltype1='int';;
  7752. l) gltype1='long int';;
  7753. ll) gltype1='long long int';;
  7754. i64) gltype1='__int64';;
  7755. u) gltype1='unsigned int';;
  7756. ul) gltype1='unsigned long int';;
  7757. ull) gltype1='unsigned long long int';;
  7758. ui64)gltype1='unsigned __int64';;
  7759. esac
  7760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7761. /* end confdefs.h. */
  7762. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7763. included before <wchar.h>. */
  7764. #include <stddef.h>
  7765. #include <signal.h>
  7766. #if HAVE_WCHAR_H
  7767. # include <stdio.h>
  7768. # include <time.h>
  7769. # include <wchar.h>
  7770. #endif
  7771. extern $gltype foo;
  7772. extern $gltype1 foo;
  7773. int
  7774. main ()
  7775. {
  7776. ;
  7777. return 0;
  7778. }
  7779. _ACEOF
  7780. if ac_fn_c_try_compile "$LINENO"; then :
  7781. eval gl_cv_type_${gltype}_suffix=\$glsuf
  7782. fi
  7783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7784. eval result=\$gl_cv_type_${gltype}_suffix
  7785. test "$result" != no && break
  7786. done
  7787. fi
  7788. eval ac_res=\$gl_cv_type_${gltype}_suffix
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7790. $as_echo "$ac_res" >&6; }
  7791. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7792. eval result=\$gl_cv_type_${gltype}_suffix
  7793. test "$result" = no && result=
  7794. eval ${GLTYPE}_SUFFIX=\$result
  7795. cat >>confdefs.h <<_ACEOF
  7796. #define ${GLTYPE}_SUFFIX $result
  7797. _ACEOF
  7798. done
  7799. fi
  7800. for gltype in sig_atomic_t wchar_t wint_t ; do
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  7802. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  7803. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. eval gl_cv_type_${gltype}_suffix=no
  7807. eval result=\$gl_cv_type_${gltype}_signed
  7808. if test "$result" = yes; then
  7809. glsufu=
  7810. else
  7811. glsufu=u
  7812. fi
  7813. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  7814. case $glsuf in
  7815. '') gltype1='int';;
  7816. l) gltype1='long int';;
  7817. ll) gltype1='long long int';;
  7818. i64) gltype1='__int64';;
  7819. u) gltype1='unsigned int';;
  7820. ul) gltype1='unsigned long int';;
  7821. ull) gltype1='unsigned long long int';;
  7822. ui64)gltype1='unsigned __int64';;
  7823. esac
  7824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7825. /* end confdefs.h. */
  7826. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7827. included before <wchar.h>. */
  7828. #include <stddef.h>
  7829. #include <signal.h>
  7830. #if HAVE_WCHAR_H
  7831. # include <stdio.h>
  7832. # include <time.h>
  7833. # include <wchar.h>
  7834. #endif
  7835. extern $gltype foo;
  7836. extern $gltype1 foo;
  7837. int
  7838. main ()
  7839. {
  7840. ;
  7841. return 0;
  7842. }
  7843. _ACEOF
  7844. if ac_fn_c_try_compile "$LINENO"; then :
  7845. eval gl_cv_type_${gltype}_suffix=\$glsuf
  7846. fi
  7847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7848. eval result=\$gl_cv_type_${gltype}_suffix
  7849. test "$result" != no && break
  7850. done
  7851. fi
  7852. eval ac_res=\$gl_cv_type_${gltype}_suffix
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7854. $as_echo "$ac_res" >&6; }
  7855. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7856. eval result=\$gl_cv_type_${gltype}_suffix
  7857. test "$result" = no && result=
  7858. eval ${GLTYPE}_SUFFIX=\$result
  7859. cat >>confdefs.h <<_ACEOF
  7860. #define ${GLTYPE}_SUFFIX $result
  7861. _ACEOF
  7862. done
  7863. if test $BITSIZEOF_WINT_T -lt 32; then
  7864. BITSIZEOF_WINT_T=32
  7865. fi
  7866. STDINT_H=stdint.h
  7867. fi
  7868. if test -n "$STDINT_H"; then
  7869. GL_GENERATE_STDINT_H_TRUE=
  7870. GL_GENERATE_STDINT_H_FALSE='#'
  7871. else
  7872. GL_GENERATE_STDINT_H_TRUE='#'
  7873. GL_GENERATE_STDINT_H_FALSE=
  7874. fi
  7875. GNULIB_IMAXABS=0;
  7876. GNULIB_IMAXDIV=0;
  7877. GNULIB_STRTOIMAX=0;
  7878. GNULIB_STRTOUMAX=0;
  7879. HAVE_DECL_IMAXABS=1;
  7880. HAVE_DECL_IMAXDIV=1;
  7881. HAVE_DECL_STRTOIMAX=1;
  7882. HAVE_DECL_STRTOUMAX=1;
  7883. REPLACE_STRTOIMAX=0;
  7884. REPLACE_STRTOUMAX=0;
  7885. INT32_MAX_LT_INTMAX_MAX=1;
  7886. INT64_MAX_EQ_LONG_MAX='defined _LP64';
  7887. PRI_MACROS_BROKEN=0;
  7888. PRIPTR_PREFIX=__PRIPTR_PREFIX;
  7889. UINT32_MAX_LT_UINTMAX_MAX=1;
  7890. UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
  7891. if test $gl_cv_have_include_next = yes; then
  7892. gl_cv_next_inttypes_h='<'inttypes.h'>'
  7893. else
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
  7895. $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
  7896. if test "${gl_cv_next_inttypes_h+set}" = set; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. if test $ac_cv_header_inttypes_h = yes; then
  7900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7901. /* end confdefs.h. */
  7902. #include <inttypes.h>
  7903. _ACEOF
  7904. case "$host_os" in
  7905. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  7906. *) gl_absname_cpp="$ac_cpp" ;;
  7907. esac
  7908. case "$host_os" in
  7909. mingw*)
  7910. gl_dirsep_regex='[/\\]'
  7911. ;;
  7912. *)
  7913. gl_dirsep_regex='\/'
  7914. ;;
  7915. esac
  7916. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  7917. gl_header_literal_regex=`echo 'inttypes.h' \
  7918. | sed -e "$gl_make_literal_regex_sed"`
  7919. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  7920. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  7921. s|^/[^/]|//&|
  7922. p
  7923. q
  7924. }'
  7925. gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  7926. sed -n "$gl_absolute_header_sed"`
  7927. gl_header=$gl_cv_absolute_inttypes_h
  7928. gl_cv_next_inttypes_h='"'$gl_header'"'
  7929. else
  7930. gl_cv_next_inttypes_h='<'inttypes.h'>'
  7931. fi
  7932. fi
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
  7934. $as_echo "$gl_cv_next_inttypes_h" >&6; }
  7935. fi
  7936. NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
  7937. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  7938. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  7939. gl_next_as_first_directive='<'inttypes.h'>'
  7940. else
  7941. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  7942. gl_next_as_first_directive=$gl_cv_next_inttypes_h
  7943. fi
  7944. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
  7945. for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
  7946. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  7948. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  7949. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7953. /* end confdefs.h. */
  7954. #include <inttypes.h>
  7955. int
  7956. main ()
  7957. {
  7958. #undef $gl_func
  7959. (void) $gl_func;
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. if ac_fn_c_try_compile "$LINENO"; then :
  7965. eval "$as_gl_Symbol=yes"
  7966. else
  7967. eval "$as_gl_Symbol=no"
  7968. fi
  7969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7970. fi
  7971. eval ac_res=\$$as_gl_Symbol
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7973. $as_echo "$ac_res" >&6; }
  7974. eval as_val=\$$as_gl_Symbol
  7975. if test "x$as_val" = x""yes; then :
  7976. cat >>confdefs.h <<_ACEOF
  7977. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  7978. _ACEOF
  7979. eval ac_cv_have_decl_$gl_func=yes
  7980. fi
  7981. done
  7982. for ac_header in inttypes.h
  7983. do :
  7984. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  7985. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  7986. cat >>confdefs.h <<_ACEOF
  7987. #define HAVE_INTTYPES_H 1
  7988. _ACEOF
  7989. fi
  7990. done
  7991. if test $ac_cv_header_inttypes_h = yes; then
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7993. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  7994. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7998. /* end confdefs.h. */
  7999. #include <inttypes.h>
  8000. #ifdef PRId32
  8001. char *p = PRId32;
  8002. #endif
  8003. int
  8004. main ()
  8005. {
  8006. ;
  8007. return 0;
  8008. }
  8009. _ACEOF
  8010. if ac_fn_c_try_compile "$LINENO"; then :
  8011. gt_cv_inttypes_pri_broken=no
  8012. else
  8013. gt_cv_inttypes_pri_broken=yes
  8014. fi
  8015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8016. fi
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8018. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8019. fi
  8020. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8021. cat >>confdefs.h <<_ACEOF
  8022. #define PRI_MACROS_BROKEN 1
  8023. _ACEOF
  8024. PRI_MACROS_BROKEN=1
  8025. else
  8026. PRI_MACROS_BROKEN=0
  8027. fi
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
  8029. $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
  8030. if test "${gl_cv_cc_double_expbit0+set}" = set; then :
  8031. $as_echo_n "(cached) " >&6
  8032. else
  8033. if test "$cross_compiling" = yes; then :
  8034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8035. /* end confdefs.h. */
  8036. #if defined arm || defined __arm || defined __arm__
  8037. mixed_endianness
  8038. #endif
  8039. _ACEOF
  8040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8041. $EGREP "mixed_endianness" >/dev/null 2>&1; then :
  8042. gl_cv_cc_double_expbit0="unknown"
  8043. else
  8044. :
  8045. if test "${ac_cv_c_bigendian+set}" = set; then :
  8046. $as_echo_n "(cached) " >&6
  8047. else
  8048. ac_cv_c_bigendian=unknown
  8049. # See if we're dealing with a universal compiler.
  8050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8051. /* end confdefs.h. */
  8052. #ifndef __APPLE_CC__
  8053. not a universal capable compiler
  8054. #endif
  8055. typedef int dummy;
  8056. _ACEOF
  8057. if ac_fn_c_try_compile "$LINENO"; then :
  8058. # Check for potential -arch flags. It is not universal unless
  8059. # there are at least two -arch flags with different values.
  8060. ac_arch=
  8061. ac_prev=
  8062. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8063. if test -n "$ac_prev"; then
  8064. case $ac_word in
  8065. i?86 | x86_64 | ppc | ppc64)
  8066. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8067. ac_arch=$ac_word
  8068. else
  8069. ac_cv_c_bigendian=universal
  8070. break
  8071. fi
  8072. ;;
  8073. esac
  8074. ac_prev=
  8075. elif test "x$ac_word" = "x-arch"; then
  8076. ac_prev=arch
  8077. fi
  8078. done
  8079. fi
  8080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8081. if test $ac_cv_c_bigendian = unknown; then
  8082. # See if sys/param.h defines the BYTE_ORDER macro.
  8083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8084. /* end confdefs.h. */
  8085. #include <sys/types.h>
  8086. #include <sys/param.h>
  8087. int
  8088. main ()
  8089. {
  8090. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8091. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8092. && LITTLE_ENDIAN)
  8093. bogus endian macros
  8094. #endif
  8095. ;
  8096. return 0;
  8097. }
  8098. _ACEOF
  8099. if ac_fn_c_try_compile "$LINENO"; then :
  8100. # It does; now see whether it defined to BIG_ENDIAN or not.
  8101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8102. /* end confdefs.h. */
  8103. #include <sys/types.h>
  8104. #include <sys/param.h>
  8105. int
  8106. main ()
  8107. {
  8108. #if BYTE_ORDER != BIG_ENDIAN
  8109. not big endian
  8110. #endif
  8111. ;
  8112. return 0;
  8113. }
  8114. _ACEOF
  8115. if ac_fn_c_try_compile "$LINENO"; then :
  8116. ac_cv_c_bigendian=yes
  8117. else
  8118. ac_cv_c_bigendian=no
  8119. fi
  8120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8121. fi
  8122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8123. fi
  8124. if test $ac_cv_c_bigendian = unknown; then
  8125. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8127. /* end confdefs.h. */
  8128. #include <limits.h>
  8129. int
  8130. main ()
  8131. {
  8132. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8133. bogus endian macros
  8134. #endif
  8135. ;
  8136. return 0;
  8137. }
  8138. _ACEOF
  8139. if ac_fn_c_try_compile "$LINENO"; then :
  8140. # It does; now see whether it defined to _BIG_ENDIAN or not.
  8141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8142. /* end confdefs.h. */
  8143. #include <limits.h>
  8144. int
  8145. main ()
  8146. {
  8147. #ifndef _BIG_ENDIAN
  8148. not big endian
  8149. #endif
  8150. ;
  8151. return 0;
  8152. }
  8153. _ACEOF
  8154. if ac_fn_c_try_compile "$LINENO"; then :
  8155. ac_cv_c_bigendian=yes
  8156. else
  8157. ac_cv_c_bigendian=no
  8158. fi
  8159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8160. fi
  8161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8162. fi
  8163. if test $ac_cv_c_bigendian = unknown; then
  8164. # Compile a test program.
  8165. if test "$cross_compiling" = yes; then :
  8166. # Try to guess by grepping values from an object file.
  8167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8168. /* end confdefs.h. */
  8169. short int ascii_mm[] =
  8170. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8171. short int ascii_ii[] =
  8172. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8173. int use_ascii (int i) {
  8174. return ascii_mm[i] + ascii_ii[i];
  8175. }
  8176. short int ebcdic_ii[] =
  8177. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8178. short int ebcdic_mm[] =
  8179. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8180. int use_ebcdic (int i) {
  8181. return ebcdic_mm[i] + ebcdic_ii[i];
  8182. }
  8183. extern int foo;
  8184. int
  8185. main ()
  8186. {
  8187. return use_ascii (foo) == use_ebcdic (foo);
  8188. ;
  8189. return 0;
  8190. }
  8191. _ACEOF
  8192. if ac_fn_c_try_compile "$LINENO"; then :
  8193. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8194. ac_cv_c_bigendian=yes
  8195. fi
  8196. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8197. if test "$ac_cv_c_bigendian" = unknown; then
  8198. ac_cv_c_bigendian=no
  8199. else
  8200. # finding both strings is unlikely to happen, but who knows?
  8201. ac_cv_c_bigendian=unknown
  8202. fi
  8203. fi
  8204. fi
  8205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8206. else
  8207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8208. /* end confdefs.h. */
  8209. $ac_includes_default
  8210. int
  8211. main ()
  8212. {
  8213. /* Are we little or big endian? From Harbison&Steele. */
  8214. union
  8215. {
  8216. long int l;
  8217. char c[sizeof (long int)];
  8218. } u;
  8219. u.l = 1;
  8220. return u.c[sizeof (long int) - 1] == 1;
  8221. ;
  8222. return 0;
  8223. }
  8224. _ACEOF
  8225. if ac_fn_c_try_run "$LINENO"; then :
  8226. ac_cv_c_bigendian=no
  8227. else
  8228. ac_cv_c_bigendian=yes
  8229. fi
  8230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8231. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8232. fi
  8233. fi
  8234. fi
  8235. :
  8236. case $ac_cv_c_bigendian in #(
  8237. yes)
  8238. gl_cv_cc_double_expbit0="word 0 bit 20";; #(
  8239. no)
  8240. gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
  8241. universal)
  8242. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8243. ;; #(
  8244. *)
  8245. gl_cv_cc_double_expbit0="unknown" ;;
  8246. esac
  8247. fi
  8248. rm -f conftest*
  8249. else
  8250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8251. /* end confdefs.h. */
  8252. #include <float.h>
  8253. #include <stddef.h>
  8254. #include <stdio.h>
  8255. #include <string.h>
  8256. #define NWORDS \
  8257. ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
  8258. typedef union { double value; unsigned int word[NWORDS]; } memory_double;
  8259. static unsigned int ored_words[NWORDS];
  8260. static unsigned int anded_words[NWORDS];
  8261. static void add_to_ored_words (double x)
  8262. {
  8263. memory_double m;
  8264. size_t i;
  8265. /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
  8266. memset (&m, 0, sizeof (memory_double));
  8267. m.value = x;
  8268. for (i = 0; i < NWORDS; i++)
  8269. {
  8270. ored_words[i] |= m.word[i];
  8271. anded_words[i] &= m.word[i];
  8272. }
  8273. }
  8274. int main ()
  8275. {
  8276. size_t j;
  8277. FILE *fp = fopen ("conftest.out", "w");
  8278. if (fp == NULL)
  8279. return 1;
  8280. for (j = 0; j < NWORDS; j++)
  8281. anded_words[j] = ~ (unsigned int) 0;
  8282. add_to_ored_words (0.25);
  8283. add_to_ored_words (0.5);
  8284. add_to_ored_words (1.0);
  8285. add_to_ored_words (2.0);
  8286. add_to_ored_words (4.0);
  8287. /* Remove bits that are common (e.g. if representation of the first mantissa
  8288. bit is explicit). */
  8289. for (j = 0; j < NWORDS; j++)
  8290. ored_words[j] &= ~anded_words[j];
  8291. /* Now find the nonzero word. */
  8292. for (j = 0; j < NWORDS; j++)
  8293. if (ored_words[j] != 0)
  8294. break;
  8295. if (j < NWORDS)
  8296. {
  8297. size_t i;
  8298. for (i = j + 1; i < NWORDS; i++)
  8299. if (ored_words[i] != 0)
  8300. {
  8301. fprintf (fp, "unknown");
  8302. return (fclose (fp) != 0);
  8303. }
  8304. for (i = 0; ; i++)
  8305. if ((ored_words[j] >> i) & 1)
  8306. {
  8307. fprintf (fp, "word %d bit %d", (int) j, (int) i);
  8308. return (fclose (fp) != 0);
  8309. }
  8310. }
  8311. fprintf (fp, "unknown");
  8312. return (fclose (fp) != 0);
  8313. }
  8314. _ACEOF
  8315. if ac_fn_c_try_run "$LINENO"; then :
  8316. gl_cv_cc_double_expbit0=`cat conftest.out`
  8317. else
  8318. gl_cv_cc_double_expbit0="unknown"
  8319. fi
  8320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8321. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8322. fi
  8323. rm -f conftest.out
  8324. fi
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
  8326. $as_echo "$gl_cv_cc_double_expbit0" >&6; }
  8327. case "$gl_cv_cc_double_expbit0" in
  8328. word*bit*)
  8329. word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
  8330. bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
  8331. cat >>confdefs.h <<_ACEOF
  8332. #define DBL_EXPBIT0_WORD $word
  8333. _ACEOF
  8334. cat >>confdefs.h <<_ACEOF
  8335. #define DBL_EXPBIT0_BIT $bit
  8336. _ACEOF
  8337. ;;
  8338. esac
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  8340. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  8341. if test "${ac_cv_c_bigendian+set}" = set; then :
  8342. $as_echo_n "(cached) " >&6
  8343. else
  8344. ac_cv_c_bigendian=unknown
  8345. # See if we're dealing with a universal compiler.
  8346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8347. /* end confdefs.h. */
  8348. #ifndef __APPLE_CC__
  8349. not a universal capable compiler
  8350. #endif
  8351. typedef int dummy;
  8352. _ACEOF
  8353. if ac_fn_c_try_compile "$LINENO"; then :
  8354. # Check for potential -arch flags. It is not universal unless
  8355. # there are at least two -arch flags with different values.
  8356. ac_arch=
  8357. ac_prev=
  8358. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8359. if test -n "$ac_prev"; then
  8360. case $ac_word in
  8361. i?86 | x86_64 | ppc | ppc64)
  8362. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8363. ac_arch=$ac_word
  8364. else
  8365. ac_cv_c_bigendian=universal
  8366. break
  8367. fi
  8368. ;;
  8369. esac
  8370. ac_prev=
  8371. elif test "x$ac_word" = "x-arch"; then
  8372. ac_prev=arch
  8373. fi
  8374. done
  8375. fi
  8376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8377. if test $ac_cv_c_bigendian = unknown; then
  8378. # See if sys/param.h defines the BYTE_ORDER macro.
  8379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8380. /* end confdefs.h. */
  8381. #include <sys/types.h>
  8382. #include <sys/param.h>
  8383. int
  8384. main ()
  8385. {
  8386. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8387. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8388. && LITTLE_ENDIAN)
  8389. bogus endian macros
  8390. #endif
  8391. ;
  8392. return 0;
  8393. }
  8394. _ACEOF
  8395. if ac_fn_c_try_compile "$LINENO"; then :
  8396. # It does; now see whether it defined to BIG_ENDIAN or not.
  8397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8398. /* end confdefs.h. */
  8399. #include <sys/types.h>
  8400. #include <sys/param.h>
  8401. int
  8402. main ()
  8403. {
  8404. #if BYTE_ORDER != BIG_ENDIAN
  8405. not big endian
  8406. #endif
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. if ac_fn_c_try_compile "$LINENO"; then :
  8412. ac_cv_c_bigendian=yes
  8413. else
  8414. ac_cv_c_bigendian=no
  8415. fi
  8416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8417. fi
  8418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8419. fi
  8420. if test $ac_cv_c_bigendian = unknown; then
  8421. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8423. /* end confdefs.h. */
  8424. #include <limits.h>
  8425. int
  8426. main ()
  8427. {
  8428. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8429. bogus endian macros
  8430. #endif
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. if ac_fn_c_try_compile "$LINENO"; then :
  8436. # It does; now see whether it defined to _BIG_ENDIAN or not.
  8437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8438. /* end confdefs.h. */
  8439. #include <limits.h>
  8440. int
  8441. main ()
  8442. {
  8443. #ifndef _BIG_ENDIAN
  8444. not big endian
  8445. #endif
  8446. ;
  8447. return 0;
  8448. }
  8449. _ACEOF
  8450. if ac_fn_c_try_compile "$LINENO"; then :
  8451. ac_cv_c_bigendian=yes
  8452. else
  8453. ac_cv_c_bigendian=no
  8454. fi
  8455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8456. fi
  8457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8458. fi
  8459. if test $ac_cv_c_bigendian = unknown; then
  8460. # Compile a test program.
  8461. if test "$cross_compiling" = yes; then :
  8462. # Try to guess by grepping values from an object file.
  8463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8464. /* end confdefs.h. */
  8465. short int ascii_mm[] =
  8466. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8467. short int ascii_ii[] =
  8468. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8469. int use_ascii (int i) {
  8470. return ascii_mm[i] + ascii_ii[i];
  8471. }
  8472. short int ebcdic_ii[] =
  8473. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8474. short int ebcdic_mm[] =
  8475. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8476. int use_ebcdic (int i) {
  8477. return ebcdic_mm[i] + ebcdic_ii[i];
  8478. }
  8479. extern int foo;
  8480. int
  8481. main ()
  8482. {
  8483. return use_ascii (foo) == use_ebcdic (foo);
  8484. ;
  8485. return 0;
  8486. }
  8487. _ACEOF
  8488. if ac_fn_c_try_compile "$LINENO"; then :
  8489. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8490. ac_cv_c_bigendian=yes
  8491. fi
  8492. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8493. if test "$ac_cv_c_bigendian" = unknown; then
  8494. ac_cv_c_bigendian=no
  8495. else
  8496. # finding both strings is unlikely to happen, but who knows?
  8497. ac_cv_c_bigendian=unknown
  8498. fi
  8499. fi
  8500. fi
  8501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8502. else
  8503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8504. /* end confdefs.h. */
  8505. $ac_includes_default
  8506. int
  8507. main ()
  8508. {
  8509. /* Are we little or big endian? From Harbison&Steele. */
  8510. union
  8511. {
  8512. long int l;
  8513. char c[sizeof (long int)];
  8514. } u;
  8515. u.l = 1;
  8516. return u.c[sizeof (long int) - 1] == 1;
  8517. ;
  8518. return 0;
  8519. }
  8520. _ACEOF
  8521. if ac_fn_c_try_run "$LINENO"; then :
  8522. ac_cv_c_bigendian=no
  8523. else
  8524. ac_cv_c_bigendian=yes
  8525. fi
  8526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8527. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8528. fi
  8529. fi
  8530. fi
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8532. $as_echo "$ac_cv_c_bigendian" >&6; }
  8533. case $ac_cv_c_bigendian in #(
  8534. yes)
  8535. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8536. ;; #(
  8537. no)
  8538. ;; #(
  8539. universal)
  8540. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8541. ;; #(
  8542. *)
  8543. as_fn_error "unknown endianness
  8544. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8545. esac
  8546. case "$host_os" in
  8547. mingw*)
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
  8549. $as_echo_n "checking for 64-bit off_t... " >&6; }
  8550. if test "${gl_cv_type_off_t_64+set}" = set; then :
  8551. $as_echo_n "(cached) " >&6
  8552. else
  8553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8554. /* end confdefs.h. */
  8555. #include <sys/types.h>
  8556. int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
  8557. int
  8558. main ()
  8559. {
  8560. ;
  8561. return 0;
  8562. }
  8563. _ACEOF
  8564. if ac_fn_c_try_compile "$LINENO"; then :
  8565. gl_cv_type_off_t_64=yes
  8566. else
  8567. gl_cv_type_off_t_64=no
  8568. fi
  8569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8570. fi
  8571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
  8572. $as_echo "$gl_cv_type_off_t_64" >&6; }
  8573. if test $gl_cv_type_off_t_64 = no; then
  8574. WINDOWS_64_BIT_OFF_T=1
  8575. else
  8576. WINDOWS_64_BIT_OFF_T=0
  8577. fi
  8578. WINDOWS_64_BIT_ST_SIZE=1
  8579. ;;
  8580. *)
  8581. WINDOWS_64_BIT_OFF_T=0
  8582. WINDOWS_64_BIT_ST_SIZE=0
  8583. ;;
  8584. esac
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  8586. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  8587. if test "${am_cv_langinfo_codeset+set}" = set; then :
  8588. $as_echo_n "(cached) " >&6
  8589. else
  8590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8591. /* end confdefs.h. */
  8592. #include <langinfo.h>
  8593. int
  8594. main ()
  8595. {
  8596. char* cs = nl_langinfo(CODESET); return !cs;
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. if ac_fn_c_try_link "$LINENO"; then :
  8602. am_cv_langinfo_codeset=yes
  8603. else
  8604. am_cv_langinfo_codeset=no
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext \
  8607. conftest$ac_exeext conftest.$ac_ext
  8608. fi
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  8610. $as_echo "$am_cv_langinfo_codeset" >&6; }
  8611. if test $am_cv_langinfo_codeset = yes; then
  8612. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  8613. fi
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
  8615. $as_echo_n "checking for working fcntl.h... " >&6; }
  8616. if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
  8617. $as_echo_n "(cached) " >&6
  8618. else
  8619. if test "$cross_compiling" = yes; then :
  8620. gl_cv_header_working_fcntl_h=cross-compiling
  8621. else
  8622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8623. /* end confdefs.h. */
  8624. #include <sys/types.h>
  8625. #include <sys/stat.h>
  8626. #if HAVE_UNISTD_H
  8627. # include <unistd.h>
  8628. #else /* on Windows with MSVC */
  8629. # include <io.h>
  8630. # include <stdlib.h>
  8631. # defined sleep(n) _sleep ((n) * 1000)
  8632. #endif
  8633. #include <fcntl.h>
  8634. #ifndef O_NOATIME
  8635. #define O_NOATIME 0
  8636. #endif
  8637. #ifndef O_NOFOLLOW
  8638. #define O_NOFOLLOW 0
  8639. #endif
  8640. static int const constants[] =
  8641. {
  8642. O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
  8643. O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
  8644. };
  8645. int
  8646. main ()
  8647. {
  8648. int result = !constants;
  8649. #if HAVE_SYMLINK
  8650. {
  8651. static char const sym[] = "conftest.sym";
  8652. if (symlink ("/dev/null", sym) != 0)
  8653. result |= 2;
  8654. else
  8655. {
  8656. int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
  8657. if (fd >= 0)
  8658. {
  8659. close (fd);
  8660. result |= 4;
  8661. }
  8662. }
  8663. if (unlink (sym) != 0 || symlink (".", sym) != 0)
  8664. result |= 2;
  8665. else
  8666. {
  8667. int fd = open (sym, O_RDONLY | O_NOFOLLOW);
  8668. if (fd >= 0)
  8669. {
  8670. close (fd);
  8671. result |= 4;
  8672. }
  8673. }
  8674. unlink (sym);
  8675. }
  8676. #endif
  8677. {
  8678. static char const file[] = "confdefs.h";
  8679. int fd = open (file, O_RDONLY | O_NOATIME);
  8680. if (fd < 0)
  8681. result |= 8;
  8682. else
  8683. {
  8684. struct stat st0;
  8685. if (fstat (fd, &st0) != 0)
  8686. result |= 16;
  8687. else
  8688. {
  8689. char c;
  8690. sleep (1);
  8691. if (read (fd, &c, 1) != 1)
  8692. result |= 24;
  8693. else
  8694. {
  8695. if (close (fd) != 0)
  8696. result |= 32;
  8697. else
  8698. {
  8699. struct stat st1;
  8700. if (stat (file, &st1) != 0)
  8701. result |= 40;
  8702. else
  8703. if (st0.st_atime != st1.st_atime)
  8704. result |= 64;
  8705. }
  8706. }
  8707. }
  8708. }
  8709. }
  8710. return result;
  8711. ;
  8712. return 0;
  8713. }
  8714. _ACEOF
  8715. if ac_fn_c_try_run "$LINENO"; then :
  8716. gl_cv_header_working_fcntl_h=yes
  8717. else
  8718. case $? in #(
  8719. 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
  8720. 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
  8721. 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
  8722. *) gl_cv_header_working_fcntl_h='no';;
  8723. esac
  8724. fi
  8725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8726. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8727. fi
  8728. fi
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
  8730. $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
  8731. case $gl_cv_header_working_fcntl_h in #(
  8732. *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
  8733. *) ac_val=1;;
  8734. esac
  8735. cat >>confdefs.h <<_ACEOF
  8736. #define HAVE_WORKING_O_NOATIME $ac_val
  8737. _ACEOF
  8738. case $gl_cv_header_working_fcntl_h in #(
  8739. *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
  8740. *) ac_val=1;;
  8741. esac
  8742. cat >>confdefs.h <<_ACEOF
  8743. #define HAVE_WORKING_O_NOFOLLOW $ac_val
  8744. _ACEOF
  8745. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  8746. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
  8747. ac_have_decl=1
  8748. else
  8749. ac_have_decl=0
  8750. fi
  8751. cat >>confdefs.h <<_ACEOF
  8752. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  8753. _ACEOF
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
  8755. $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
  8756. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  8757. $as_echo_n "(cached) " >&6
  8758. else
  8759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8760. /* end confdefs.h. */
  8761. #include <features.h>
  8762. #ifdef __GNU_LIBRARY__
  8763. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  8764. Lucky GNU user
  8765. #endif
  8766. #endif
  8767. #ifdef __UCLIBC__
  8768. Lucky user
  8769. #endif
  8770. _ACEOF
  8771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8772. $EGREP "Lucky" >/dev/null 2>&1; then :
  8773. ac_cv_gnu_library_2_1=yes
  8774. else
  8775. ac_cv_gnu_library_2_1=no
  8776. fi
  8777. rm -f conftest*
  8778. fi
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  8780. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  8781. GLIBC21="$ac_cv_gnu_library_2_1"
  8782. GNULIB_FCHMODAT=0;
  8783. GNULIB_FSTAT=0;
  8784. GNULIB_FSTATAT=0;
  8785. GNULIB_FUTIMENS=0;
  8786. GNULIB_LCHMOD=0;
  8787. GNULIB_LSTAT=0;
  8788. GNULIB_MKDIRAT=0;
  8789. GNULIB_MKFIFO=0;
  8790. GNULIB_MKFIFOAT=0;
  8791. GNULIB_MKNOD=0;
  8792. GNULIB_MKNODAT=0;
  8793. GNULIB_STAT=0;
  8794. GNULIB_UTIMENSAT=0;
  8795. HAVE_FCHMODAT=1;
  8796. HAVE_FSTATAT=1;
  8797. HAVE_FUTIMENS=1;
  8798. HAVE_LCHMOD=1;
  8799. HAVE_LSTAT=1;
  8800. HAVE_MKDIRAT=1;
  8801. HAVE_MKFIFO=1;
  8802. HAVE_MKFIFOAT=1;
  8803. HAVE_MKNOD=1;
  8804. HAVE_MKNODAT=1;
  8805. HAVE_UTIMENSAT=1;
  8806. REPLACE_FSTAT=0;
  8807. REPLACE_FSTATAT=0;
  8808. REPLACE_FUTIMENS=0;
  8809. REPLACE_LSTAT=0;
  8810. REPLACE_MKDIR=0;
  8811. REPLACE_MKFIFO=0;
  8812. REPLACE_MKNOD=0;
  8813. REPLACE_STAT=0;
  8814. REPLACE_UTIMENSAT=0;
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  8816. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  8817. if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. rm -f conftest.sym conftest.file
  8821. echo >conftest.file
  8822. if test "$cross_compiling" = yes; then :
  8823. case "$host_os" in
  8824. *-gnu*)
  8825. # Guess yes on glibc systems.
  8826. gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
  8827. *)
  8828. # If we don't know, assume the worst.
  8829. gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
  8830. esac
  8831. else
  8832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8833. /* end confdefs.h. */
  8834. $ac_includes_default
  8835. int
  8836. main ()
  8837. {
  8838. struct stat sbuf;
  8839. if (symlink ("conftest.file", "conftest.sym") != 0)
  8840. return 1;
  8841. /* Linux will dereference the symlink and fail, as required by
  8842. POSIX. That is better in the sense that it means we will not
  8843. have to compile and use the lstat wrapper. */
  8844. return lstat ("conftest.sym/", &sbuf) == 0;
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. if ac_fn_c_try_run "$LINENO"; then :
  8850. gl_cv_func_lstat_dereferences_slashed_symlink=yes
  8851. else
  8852. gl_cv_func_lstat_dereferences_slashed_symlink=no
  8853. fi
  8854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8855. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8856. fi
  8857. rm -f conftest.sym conftest.file
  8858. fi
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
  8860. $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8861. case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
  8862. *yes)
  8863. cat >>confdefs.h <<_ACEOF
  8864. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8865. _ACEOF
  8866. ;;
  8867. esac
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
  8869. $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
  8870. if test "${gl_cv_func_malloc_posix+set}" = set; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8874. /* end confdefs.h. */
  8875. int
  8876. main ()
  8877. {
  8878. #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  8879. choke me
  8880. #endif
  8881. ;
  8882. return 0;
  8883. }
  8884. _ACEOF
  8885. if ac_fn_c_try_compile "$LINENO"; then :
  8886. gl_cv_func_malloc_posix=yes
  8887. else
  8888. gl_cv_func_malloc_posix=no
  8889. fi
  8890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8891. fi
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
  8893. $as_echo "$gl_cv_func_malloc_posix" >&6; }
  8894. for ac_header in stdlib.h
  8895. do :
  8896. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  8897. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define HAVE_STDLIB_H 1
  8900. _ACEOF
  8901. fi
  8902. done
  8903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  8904. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  8905. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  8906. $as_echo_n "(cached) " >&6
  8907. else
  8908. if test "$cross_compiling" = yes; then :
  8909. case "$host_os" in
  8910. # Guess yes on platforms where we know the result.
  8911. *-gnu* | freebsd* | netbsd* | openbsd* \
  8912. | hpux* | solaris* | cygwin* | mingw*)
  8913. ac_cv_func_malloc_0_nonnull=yes ;;
  8914. # If we don't know, assume the worst.
  8915. *) ac_cv_func_malloc_0_nonnull=no ;;
  8916. esac
  8917. else
  8918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8919. /* end confdefs.h. */
  8920. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  8921. # include <stdlib.h>
  8922. #else
  8923. char *malloc ();
  8924. #endif
  8925. int
  8926. main ()
  8927. {
  8928. return ! malloc (0);
  8929. ;
  8930. return 0;
  8931. }
  8932. _ACEOF
  8933. if ac_fn_c_try_run "$LINENO"; then :
  8934. ac_cv_func_malloc_0_nonnull=yes
  8935. else
  8936. ac_cv_func_malloc_0_nonnull=no
  8937. fi
  8938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8940. fi
  8941. fi
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  8943. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  8944. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  8945. gl_cv_func_malloc_0_nonnull=1
  8946. else
  8947. gl_cv_func_malloc_0_nonnull=0
  8948. fi
  8949. cat >>confdefs.h <<_ACEOF
  8950. #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
  8951. _ACEOF
  8952. GNULIB_BTOWC=0;
  8953. GNULIB_WCTOB=0;
  8954. GNULIB_MBSINIT=0;
  8955. GNULIB_MBRTOWC=0;
  8956. GNULIB_MBRLEN=0;
  8957. GNULIB_MBSRTOWCS=0;
  8958. GNULIB_MBSNRTOWCS=0;
  8959. GNULIB_WCRTOMB=0;
  8960. GNULIB_WCSRTOMBS=0;
  8961. GNULIB_WCSNRTOMBS=0;
  8962. GNULIB_WCWIDTH=0;
  8963. GNULIB_WMEMCHR=0;
  8964. GNULIB_WMEMCMP=0;
  8965. GNULIB_WMEMCPY=0;
  8966. GNULIB_WMEMMOVE=0;
  8967. GNULIB_WMEMSET=0;
  8968. GNULIB_WCSLEN=0;
  8969. GNULIB_WCSNLEN=0;
  8970. GNULIB_WCSCPY=0;
  8971. GNULIB_WCPCPY=0;
  8972. GNULIB_WCSNCPY=0;
  8973. GNULIB_WCPNCPY=0;
  8974. GNULIB_WCSCAT=0;
  8975. GNULIB_WCSNCAT=0;
  8976. GNULIB_WCSCMP=0;
  8977. GNULIB_WCSNCMP=0;
  8978. GNULIB_WCSCASECMP=0;
  8979. GNULIB_WCSNCASECMP=0;
  8980. GNULIB_WCSCOLL=0;
  8981. GNULIB_WCSXFRM=0;
  8982. GNULIB_WCSDUP=0;
  8983. GNULIB_WCSCHR=0;
  8984. GNULIB_WCSRCHR=0;
  8985. GNULIB_WCSCSPN=0;
  8986. GNULIB_WCSSPN=0;
  8987. GNULIB_WCSPBRK=0;
  8988. GNULIB_WCSSTR=0;
  8989. GNULIB_WCSTOK=0;
  8990. GNULIB_WCSWIDTH=0;
  8991. HAVE_BTOWC=1;
  8992. HAVE_MBSINIT=1;
  8993. HAVE_MBRTOWC=1;
  8994. HAVE_MBRLEN=1;
  8995. HAVE_MBSRTOWCS=1;
  8996. HAVE_MBSNRTOWCS=1;
  8997. HAVE_WCRTOMB=1;
  8998. HAVE_WCSRTOMBS=1;
  8999. HAVE_WCSNRTOMBS=1;
  9000. HAVE_WMEMCHR=1;
  9001. HAVE_WMEMCMP=1;
  9002. HAVE_WMEMCPY=1;
  9003. HAVE_WMEMMOVE=1;
  9004. HAVE_WMEMSET=1;
  9005. HAVE_WCSLEN=1;
  9006. HAVE_WCSNLEN=1;
  9007. HAVE_WCSCPY=1;
  9008. HAVE_WCPCPY=1;
  9009. HAVE_WCSNCPY=1;
  9010. HAVE_WCPNCPY=1;
  9011. HAVE_WCSCAT=1;
  9012. HAVE_WCSNCAT=1;
  9013. HAVE_WCSCMP=1;
  9014. HAVE_WCSNCMP=1;
  9015. HAVE_WCSCASECMP=1;
  9016. HAVE_WCSNCASECMP=1;
  9017. HAVE_WCSCOLL=1;
  9018. HAVE_WCSXFRM=1;
  9019. HAVE_WCSDUP=1;
  9020. HAVE_WCSCHR=1;
  9021. HAVE_WCSRCHR=1;
  9022. HAVE_WCSCSPN=1;
  9023. HAVE_WCSSPN=1;
  9024. HAVE_WCSPBRK=1;
  9025. HAVE_WCSSTR=1;
  9026. HAVE_WCSTOK=1;
  9027. HAVE_WCSWIDTH=1;
  9028. HAVE_DECL_WCTOB=1;
  9029. HAVE_DECL_WCWIDTH=1;
  9030. REPLACE_MBSTATE_T=0;
  9031. REPLACE_BTOWC=0;
  9032. REPLACE_WCTOB=0;
  9033. REPLACE_MBSINIT=0;
  9034. REPLACE_MBRTOWC=0;
  9035. REPLACE_MBRLEN=0;
  9036. REPLACE_MBSRTOWCS=0;
  9037. REPLACE_MBSNRTOWCS=0;
  9038. REPLACE_WCRTOMB=0;
  9039. REPLACE_WCSRTOMBS=0;
  9040. REPLACE_WCSNRTOMBS=0;
  9041. REPLACE_WCWIDTH=0;
  9042. REPLACE_WCSWIDTH=0;
  9043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
  9044. $as_echo_n "checking for a traditional japanese locale... " >&6; }
  9045. if test "${gt_cv_locale_ja+set}" = set; then :
  9046. $as_echo_n "(cached) " >&6
  9047. else
  9048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9049. /* end confdefs.h. */
  9050. #include <locale.h>
  9051. #include <time.h>
  9052. #if HAVE_LANGINFO_CODESET
  9053. # include <langinfo.h>
  9054. #endif
  9055. #include <stdlib.h>
  9056. #include <string.h>
  9057. struct tm t;
  9058. char buf[16];
  9059. int main ()
  9060. {
  9061. const char *p;
  9062. /* Check whether the given locale name is recognized by the system. */
  9063. #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
  9064. /* On native Windows, setlocale(category, "") looks at the system settings,
  9065. not at the environment variables. Also, when an encoding suffix such
  9066. as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
  9067. category of the locale to "C". */
  9068. if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
  9069. || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
  9070. return 1;
  9071. #else
  9072. if (setlocale (LC_ALL, "") == NULL) return 1;
  9073. #endif
  9074. /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
  9075. On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
  9076. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
  9077. On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
  9078. succeeds but then nl_langinfo(CODESET) is "646". In this situation,
  9079. some unit tests fail.
  9080. On MirBSD 10, when an unsupported locale is specified, setlocale()
  9081. succeeds but then nl_langinfo(CODESET) is "UTF-8". */
  9082. #if HAVE_LANGINFO_CODESET
  9083. {
  9084. const char *cs = nl_langinfo (CODESET);
  9085. if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
  9086. || strcmp (cs, "UTF-8") == 0)
  9087. return 1;
  9088. }
  9089. #endif
  9090. #ifdef __CYGWIN__
  9091. /* On Cygwin, avoid locale names without encoding suffix, because the
  9092. locale_charset() function relies on the encoding suffix. Note that
  9093. LC_ALL is set on the command line. */
  9094. if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
  9095. #endif
  9096. /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
  9097. on Cygwin 1.5.x. */
  9098. if (MB_CUR_MAX == 1)
  9099. return 1;
  9100. /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
  9101. This excludes the UTF-8 encoding (except on MirBSD). */
  9102. t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
  9103. if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
  9104. for (p = buf; *p != '\0'; p++)
  9105. if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
  9106. return 1;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9111. (eval $ac_link) 2>&5
  9112. ac_status=$?
  9113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9114. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9115. case "$host_os" in
  9116. # Handle native Windows specially, because there setlocale() interprets
  9117. # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
  9118. # "fr" or "fra" as "French" or "French_France.1252",
  9119. # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
  9120. # "ja" as "Japanese" or "Japanese_Japan.932",
  9121. # and similar.
  9122. mingw*)
  9123. # Note that on native Windows, the Japanese locale is
  9124. # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
  9125. # cannot use it here.
  9126. gt_cv_locale_ja=none
  9127. ;;
  9128. *)
  9129. # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
  9130. # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
  9131. # configure script would override the LC_ALL setting. Likewise for
  9132. # LC_CTYPE, which is also set at the beginning of the configure script.
  9133. # Test for the AIX locale name.
  9134. if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9135. gt_cv_locale_ja=ja_JP
  9136. else
  9137. # Test for the locale name with explicit encoding suffix.
  9138. if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9139. gt_cv_locale_ja=ja_JP.EUC-JP
  9140. else
  9141. # Test for the HP-UX, OSF/1, NetBSD locale name.
  9142. if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9143. gt_cv_locale_ja=ja_JP.eucJP
  9144. else
  9145. # Test for the IRIX, FreeBSD locale name.
  9146. if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9147. gt_cv_locale_ja=ja_JP.EUC
  9148. else
  9149. # Test for the Solaris 7 locale name.
  9150. if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9151. gt_cv_locale_ja=ja
  9152. else
  9153. # Special test for NetBSD 1.6.
  9154. if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
  9155. gt_cv_locale_ja=ja_JP.eucJP
  9156. else
  9157. # None found.
  9158. gt_cv_locale_ja=none
  9159. fi
  9160. fi
  9161. fi
  9162. fi
  9163. fi
  9164. fi
  9165. ;;
  9166. esac
  9167. fi
  9168. rm -fr conftest*
  9169. fi
  9170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
  9171. $as_echo "$gt_cv_locale_ja" >&6; }
  9172. LOCALE_JA=$gt_cv_locale_ja
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
  9174. $as_echo_n "checking for a transitional chinese locale... " >&6; }
  9175. if test "${gt_cv_locale_zh_CN+set}" = set; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9179. /* end confdefs.h. */
  9180. #include <locale.h>
  9181. #include <stdlib.h>
  9182. #include <time.h>
  9183. #if HAVE_LANGINFO_CODESET
  9184. # include <langinfo.h>
  9185. #endif
  9186. #include <stdlib.h>
  9187. #include <string.h>
  9188. struct tm t;
  9189. char buf[16];
  9190. int main ()
  9191. {
  9192. const char *p;
  9193. /* Check whether the given locale name is recognized by the system. */
  9194. #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
  9195. /* On native Windows, setlocale(category, "") looks at the system settings,
  9196. not at the environment variables. Also, when an encoding suffix such
  9197. as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
  9198. category of the locale to "C". */
  9199. if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
  9200. || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
  9201. return 1;
  9202. #else
  9203. if (setlocale (LC_ALL, "") == NULL) return 1;
  9204. #endif
  9205. /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
  9206. On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
  9207. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
  9208. On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
  9209. succeeds but then nl_langinfo(CODESET) is "646". In this situation,
  9210. some unit tests fail.
  9211. On MirBSD 10, when an unsupported locale is specified, setlocale()
  9212. succeeds but then nl_langinfo(CODESET) is "UTF-8". */
  9213. #if HAVE_LANGINFO_CODESET
  9214. {
  9215. const char *cs = nl_langinfo (CODESET);
  9216. if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
  9217. || strcmp (cs, "UTF-8") == 0)
  9218. return 1;
  9219. }
  9220. #endif
  9221. #ifdef __CYGWIN__
  9222. /* On Cygwin, avoid locale names without encoding suffix, because the
  9223. locale_charset() function relies on the encoding suffix. Note that
  9224. LC_ALL is set on the command line. */
  9225. if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
  9226. #endif
  9227. /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
  9228. This excludes the UTF-8 encoding (except on MirBSD). */
  9229. t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
  9230. if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
  9231. for (p = buf; *p != '\0'; p++)
  9232. if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
  9233. return 1;
  9234. /* Check whether a typical GB18030 multibyte sequence is recognized as a
  9235. single wide character. This excludes the GB2312 and GBK encodings. */
  9236. if (mblen ("\203\062\332\066", 5) != 4)
  9237. return 1;
  9238. return 0;
  9239. }
  9240. _ACEOF
  9241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9242. (eval $ac_link) 2>&5
  9243. ac_status=$?
  9244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9245. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9246. case "$host_os" in
  9247. # Handle native Windows specially, because there setlocale() interprets
  9248. # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
  9249. # "fr" or "fra" as "French" or "French_France.1252",
  9250. # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
  9251. # "ja" as "Japanese" or "Japanese_Japan.932",
  9252. # and similar.
  9253. mingw*)
  9254. # Test for the hypothetical native Windows locale name.
  9255. if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9256. gt_cv_locale_zh_CN=Chinese_China.54936
  9257. else
  9258. # None found.
  9259. gt_cv_locale_zh_CN=none
  9260. fi
  9261. ;;
  9262. solaris2.8)
  9263. # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
  9264. # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
  9265. # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
  9266. gt_cv_locale_zh_CN=none
  9267. ;;
  9268. *)
  9269. # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
  9270. # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
  9271. # configure script would override the LC_ALL setting. Likewise for
  9272. # LC_CTYPE, which is also set at the beginning of the configure script.
  9273. # Test for the locale name without encoding suffix.
  9274. if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9275. gt_cv_locale_zh_CN=zh_CN
  9276. else
  9277. # Test for the locale name with explicit encoding suffix.
  9278. if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9279. gt_cv_locale_zh_CN=zh_CN.GB18030
  9280. else
  9281. # None found.
  9282. gt_cv_locale_zh_CN=none
  9283. fi
  9284. fi
  9285. ;;
  9286. esac
  9287. else
  9288. # If there was a link error, due to mblen(), the system is so old that
  9289. # it certainly doesn't have a chinese locale.
  9290. gt_cv_locale_zh_CN=none
  9291. fi
  9292. rm -fr conftest*
  9293. fi
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
  9295. $as_echo "$gt_cv_locale_zh_CN" >&6; }
  9296. LOCALE_ZH_CN=$gt_cv_locale_zh_CN
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
  9298. $as_echo_n "checking for a french Unicode locale... " >&6; }
  9299. if test "${gt_cv_locale_fr_utf8+set}" = set; then :
  9300. $as_echo_n "(cached) " >&6
  9301. else
  9302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9303. /* end confdefs.h. */
  9304. #include <locale.h>
  9305. #include <time.h>
  9306. #if HAVE_LANGINFO_CODESET
  9307. # include <langinfo.h>
  9308. #endif
  9309. #include <stdlib.h>
  9310. #include <string.h>
  9311. struct tm t;
  9312. char buf[16];
  9313. int main () {
  9314. /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
  9315. imitates locale dependent behaviour by looking at the environment
  9316. variables, and all locales use the UTF-8 encoding. */
  9317. #if !(defined __BEOS__ || defined __HAIKU__)
  9318. /* Check whether the given locale name is recognized by the system. */
  9319. # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
  9320. /* On native Windows, setlocale(category, "") looks at the system settings,
  9321. not at the environment variables. Also, when an encoding suffix such
  9322. as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
  9323. category of the locale to "C". */
  9324. if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
  9325. || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
  9326. return 1;
  9327. # else
  9328. if (setlocale (LC_ALL, "") == NULL) return 1;
  9329. # endif
  9330. /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
  9331. On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
  9332. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
  9333. On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
  9334. succeeds but then nl_langinfo(CODESET) is "646". In this situation,
  9335. some unit tests fail. */
  9336. # if HAVE_LANGINFO_CODESET
  9337. {
  9338. const char *cs = nl_langinfo (CODESET);
  9339. if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
  9340. return 1;
  9341. }
  9342. # endif
  9343. # ifdef __CYGWIN__
  9344. /* On Cygwin, avoid locale names without encoding suffix, because the
  9345. locale_charset() function relies on the encoding suffix. Note that
  9346. LC_ALL is set on the command line. */
  9347. if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
  9348. # endif
  9349. /* Check whether in the abbreviation of the second month, the second
  9350. character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
  9351. two bytes long, with UTF-8 encoding. */
  9352. t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
  9353. if (strftime (buf, sizeof (buf), "%b", &t) < 4
  9354. || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
  9355. return 1;
  9356. #endif
  9357. #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
  9358. /* Check whether the decimal separator is a comma.
  9359. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
  9360. are nl_langinfo(RADIXCHAR) are both ".". */
  9361. if (localeconv () ->decimal_point[0] != ',') return 1;
  9362. #endif
  9363. return 0;
  9364. }
  9365. _ACEOF
  9366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9367. (eval $ac_link) 2>&5
  9368. ac_status=$?
  9369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9370. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9371. case "$host_os" in
  9372. # Handle native Windows specially, because there setlocale() interprets
  9373. # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
  9374. # "fr" or "fra" as "French" or "French_France.1252",
  9375. # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
  9376. # "ja" as "Japanese" or "Japanese_Japan.932",
  9377. # and similar.
  9378. mingw*)
  9379. # Test for the hypothetical native Windows locale name.
  9380. if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9381. gt_cv_locale_fr_utf8=French_France.65001
  9382. else
  9383. # None found.
  9384. gt_cv_locale_fr_utf8=none
  9385. fi
  9386. ;;
  9387. *)
  9388. # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
  9389. # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
  9390. # configure script would override the LC_ALL setting. Likewise for
  9391. # LC_CTYPE, which is also set at the beginning of the configure script.
  9392. # Test for the usual locale name.
  9393. if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9394. gt_cv_locale_fr_utf8=fr_FR
  9395. else
  9396. # Test for the locale name with explicit encoding suffix.
  9397. if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9398. gt_cv_locale_fr_utf8=fr_FR.UTF-8
  9399. else
  9400. # Test for the Solaris 7 locale name.
  9401. if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9402. gt_cv_locale_fr_utf8=fr.UTF-8
  9403. else
  9404. # None found.
  9405. gt_cv_locale_fr_utf8=none
  9406. fi
  9407. fi
  9408. fi
  9409. ;;
  9410. esac
  9411. fi
  9412. rm -fr conftest*
  9413. fi
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
  9415. $as_echo "$gt_cv_locale_fr_utf8" >&6; }
  9416. LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
  9418. $as_echo_n "checking for a traditional french locale... " >&6; }
  9419. if test "${gt_cv_locale_fr+set}" = set; then :
  9420. $as_echo_n "(cached) " >&6
  9421. else
  9422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9423. /* end confdefs.h. */
  9424. #include <locale.h>
  9425. #include <time.h>
  9426. #if HAVE_LANGINFO_CODESET
  9427. # include <langinfo.h>
  9428. #endif
  9429. #include <stdlib.h>
  9430. #include <string.h>
  9431. struct tm t;
  9432. char buf[16];
  9433. int main () {
  9434. /* Check whether the given locale name is recognized by the system. */
  9435. #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
  9436. /* On native Windows, setlocale(category, "") looks at the system settings,
  9437. not at the environment variables. Also, when an encoding suffix such
  9438. as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
  9439. category of the locale to "C". */
  9440. if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
  9441. || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
  9442. return 1;
  9443. #else
  9444. if (setlocale (LC_ALL, "") == NULL) return 1;
  9445. #endif
  9446. /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
  9447. On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
  9448. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
  9449. On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
  9450. succeeds but then nl_langinfo(CODESET) is "646". In this situation,
  9451. some unit tests fail.
  9452. On MirBSD 10, when an unsupported locale is specified, setlocale()
  9453. succeeds but then nl_langinfo(CODESET) is "UTF-8". */
  9454. #if HAVE_LANGINFO_CODESET
  9455. {
  9456. const char *cs = nl_langinfo (CODESET);
  9457. if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
  9458. || strcmp (cs, "UTF-8") == 0)
  9459. return 1;
  9460. }
  9461. #endif
  9462. #ifdef __CYGWIN__
  9463. /* On Cygwin, avoid locale names without encoding suffix, because the
  9464. locale_charset() function relies on the encoding suffix. Note that
  9465. LC_ALL is set on the command line. */
  9466. if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
  9467. #endif
  9468. /* Check whether in the abbreviation of the second month, the second
  9469. character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
  9470. one byte long. This excludes the UTF-8 encoding. */
  9471. t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
  9472. if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
  9473. #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
  9474. /* Check whether the decimal separator is a comma.
  9475. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
  9476. are nl_langinfo(RADIXCHAR) are both ".". */
  9477. if (localeconv () ->decimal_point[0] != ',') return 1;
  9478. #endif
  9479. return 0;
  9480. }
  9481. _ACEOF
  9482. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9483. (eval $ac_link) 2>&5
  9484. ac_status=$?
  9485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9486. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9487. case "$host_os" in
  9488. # Handle native Windows specially, because there setlocale() interprets
  9489. # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
  9490. # "fr" or "fra" as "French" or "French_France.1252",
  9491. # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
  9492. # "ja" as "Japanese" or "Japanese_Japan.932",
  9493. # and similar.
  9494. mingw*)
  9495. # Test for the native Windows locale name.
  9496. if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9497. gt_cv_locale_fr=French_France.1252
  9498. else
  9499. # None found.
  9500. gt_cv_locale_fr=none
  9501. fi
  9502. ;;
  9503. *)
  9504. # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
  9505. # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
  9506. # configure script would override the LC_ALL setting. Likewise for
  9507. # LC_CTYPE, which is also set at the beginning of the configure script.
  9508. # Test for the usual locale name.
  9509. if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9510. gt_cv_locale_fr=fr_FR
  9511. else
  9512. # Test for the locale name with explicit encoding suffix.
  9513. if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9514. gt_cv_locale_fr=fr_FR.ISO-8859-1
  9515. else
  9516. # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
  9517. if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9518. gt_cv_locale_fr=fr_FR.ISO8859-1
  9519. else
  9520. # Test for the HP-UX locale name.
  9521. if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9522. gt_cv_locale_fr=fr_FR.iso88591
  9523. else
  9524. # Test for the Solaris 7 locale name.
  9525. if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
  9526. gt_cv_locale_fr=fr
  9527. else
  9528. # None found.
  9529. gt_cv_locale_fr=none
  9530. fi
  9531. fi
  9532. fi
  9533. fi
  9534. fi
  9535. ;;
  9536. esac
  9537. fi
  9538. rm -fr conftest*
  9539. fi
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
  9541. $as_echo "$gt_cv_locale_fr" >&6; }
  9542. LOCALE_FR=$gt_cv_locale_fr
  9543. GNULIB_FFSL=0;
  9544. GNULIB_FFSLL=0;
  9545. GNULIB_MEMCHR=0;
  9546. GNULIB_MEMMEM=0;
  9547. GNULIB_MEMPCPY=0;
  9548. GNULIB_MEMRCHR=0;
  9549. GNULIB_RAWMEMCHR=0;
  9550. GNULIB_STPCPY=0;
  9551. GNULIB_STPNCPY=0;
  9552. GNULIB_STRCHRNUL=0;
  9553. GNULIB_STRDUP=0;
  9554. GNULIB_STRNCAT=0;
  9555. GNULIB_STRNDUP=0;
  9556. GNULIB_STRNLEN=0;
  9557. GNULIB_STRPBRK=0;
  9558. GNULIB_STRSEP=0;
  9559. GNULIB_STRSTR=0;
  9560. GNULIB_STRCASESTR=0;
  9561. GNULIB_STRTOK_R=0;
  9562. GNULIB_MBSLEN=0;
  9563. GNULIB_MBSNLEN=0;
  9564. GNULIB_MBSCHR=0;
  9565. GNULIB_MBSRCHR=0;
  9566. GNULIB_MBSSTR=0;
  9567. GNULIB_MBSCASECMP=0;
  9568. GNULIB_MBSNCASECMP=0;
  9569. GNULIB_MBSPCASECMP=0;
  9570. GNULIB_MBSCASESTR=0;
  9571. GNULIB_MBSCSPN=0;
  9572. GNULIB_MBSPBRK=0;
  9573. GNULIB_MBSSPN=0;
  9574. GNULIB_MBSSEP=0;
  9575. GNULIB_MBSTOK_R=0;
  9576. GNULIB_STRERROR=0;
  9577. GNULIB_STRERROR_R=0;
  9578. GNULIB_STRSIGNAL=0;
  9579. GNULIB_STRVERSCMP=0;
  9580. HAVE_MBSLEN=0;
  9581. HAVE_FFSL=1;
  9582. HAVE_FFSLL=1;
  9583. HAVE_MEMCHR=1;
  9584. HAVE_DECL_MEMMEM=1;
  9585. HAVE_MEMPCPY=1;
  9586. HAVE_DECL_MEMRCHR=1;
  9587. HAVE_RAWMEMCHR=1;
  9588. HAVE_STPCPY=1;
  9589. HAVE_STPNCPY=1;
  9590. HAVE_STRCHRNUL=1;
  9591. HAVE_DECL_STRDUP=1;
  9592. HAVE_DECL_STRNDUP=1;
  9593. HAVE_DECL_STRNLEN=1;
  9594. HAVE_STRPBRK=1;
  9595. HAVE_STRSEP=1;
  9596. HAVE_STRCASESTR=1;
  9597. HAVE_DECL_STRTOK_R=1;
  9598. HAVE_DECL_STRERROR_R=1;
  9599. HAVE_DECL_STRSIGNAL=1;
  9600. HAVE_STRVERSCMP=1;
  9601. REPLACE_MEMCHR=0;
  9602. REPLACE_MEMMEM=0;
  9603. REPLACE_STPNCPY=0;
  9604. REPLACE_STRDUP=0;
  9605. REPLACE_STRSTR=0;
  9606. REPLACE_STRCASESTR=0;
  9607. REPLACE_STRCHRNUL=0;
  9608. REPLACE_STRERROR=0;
  9609. REPLACE_STRERROR_R=0;
  9610. REPLACE_STRNCAT=0;
  9611. REPLACE_STRNDUP=0;
  9612. REPLACE_STRNLEN=0;
  9613. REPLACE_STRSIGNAL=0;
  9614. REPLACE_STRTOK_R=0;
  9615. UNDEFINE_STRTOK_R=0;
  9616. # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  9617. # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  9618. # irrelevant for anonymous mappings.
  9619. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  9620. if test "x$ac_cv_func_mmap" = x""yes; then :
  9621. gl_have_mmap=yes
  9622. else
  9623. gl_have_mmap=no
  9624. fi
  9625. # Try to allow MAP_ANONYMOUS.
  9626. gl_have_mmap_anonymous=no
  9627. if test $gl_have_mmap = yes; then
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  9629. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  9630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9631. /* end confdefs.h. */
  9632. #include <sys/mman.h>
  9633. #ifdef MAP_ANONYMOUS
  9634. I cannot identify this map
  9635. #endif
  9636. _ACEOF
  9637. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9638. $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  9639. gl_have_mmap_anonymous=yes
  9640. fi
  9641. rm -f conftest*
  9642. if test $gl_have_mmap_anonymous != yes; then
  9643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9644. /* end confdefs.h. */
  9645. #include <sys/mman.h>
  9646. #ifdef MAP_ANON
  9647. I cannot identify this map
  9648. #endif
  9649. _ACEOF
  9650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9651. $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  9652. $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  9653. gl_have_mmap_anonymous=yes
  9654. fi
  9655. rm -f conftest*
  9656. fi
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  9658. $as_echo "$gl_have_mmap_anonymous" >&6; }
  9659. if test $gl_have_mmap_anonymous = yes; then
  9660. $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  9661. fi
  9662. fi
  9663. if test $HAVE_MEMCHR = 1; then
  9664. # Detect platform-specific bugs in some versions of glibc:
  9665. # memchr should not dereference anything with length 0
  9666. # http://bugzilla.redhat.com/499689
  9667. # memchr should not dereference overestimated length after a match
  9668. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
  9669. # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
  9670. # Assume that memchr works on platforms that lack mprotect.
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
  9672. $as_echo_n "checking whether memchr works... " >&6; }
  9673. if test "${gl_cv_func_memchr_works+set}" = set; then :
  9674. $as_echo_n "(cached) " >&6
  9675. else
  9676. if test "$cross_compiling" = yes; then :
  9677. gl_cv_func_memchr_works="guessing no"
  9678. else
  9679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9680. /* end confdefs.h. */
  9681. #include <string.h>
  9682. #if HAVE_SYS_MMAN_H
  9683. # include <fcntl.h>
  9684. # include <unistd.h>
  9685. # include <sys/types.h>
  9686. # include <sys/mman.h>
  9687. # ifndef MAP_FILE
  9688. # define MAP_FILE 0
  9689. # endif
  9690. #endif
  9691. int
  9692. main ()
  9693. {
  9694. int result = 0;
  9695. char *fence = NULL;
  9696. #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
  9697. # if HAVE_MAP_ANONYMOUS
  9698. const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
  9699. const int fd = -1;
  9700. # else /* !HAVE_MAP_ANONYMOUS */
  9701. const int flags = MAP_FILE | MAP_PRIVATE;
  9702. int fd = open ("/dev/zero", O_RDONLY, 0666);
  9703. if (fd >= 0)
  9704. # endif
  9705. {
  9706. int pagesize = getpagesize ();
  9707. char *two_pages =
  9708. (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
  9709. flags, fd, 0);
  9710. if (two_pages != (char *)(-1)
  9711. && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
  9712. fence = two_pages + pagesize;
  9713. }
  9714. #endif
  9715. if (fence)
  9716. {
  9717. if (memchr (fence, 0, 0))
  9718. result |= 1;
  9719. strcpy (fence - 9, "12345678");
  9720. if (memchr (fence - 9, 0, 79) != fence - 1)
  9721. result |= 2;
  9722. if (memchr (fence - 1, 0, 3) != fence - 1)
  9723. result |= 4;
  9724. }
  9725. return result;
  9726. ;
  9727. return 0;
  9728. }
  9729. _ACEOF
  9730. if ac_fn_c_try_run "$LINENO"; then :
  9731. gl_cv_func_memchr_works=yes
  9732. else
  9733. gl_cv_func_memchr_works=no
  9734. fi
  9735. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9736. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9737. fi
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
  9740. $as_echo "$gl_cv_func_memchr_works" >&6; }
  9741. if test "$gl_cv_func_memchr_works" != yes; then
  9742. REPLACE_MEMCHR=1
  9743. fi
  9744. fi
  9745. ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  9746. if test "x$ac_cv_have_decl_memmem" = x""yes; then :
  9747. ac_have_decl=1
  9748. else
  9749. ac_have_decl=0
  9750. fi
  9751. cat >>confdefs.h <<_ACEOF
  9752. #define HAVE_DECL_MEMMEM $ac_have_decl
  9753. _ACEOF
  9754. for ac_func in memmem
  9755. do :
  9756. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  9757. if test "x$ac_cv_func_memmem" = x""yes; then :
  9758. cat >>confdefs.h <<_ACEOF
  9759. #define HAVE_MEMMEM 1
  9760. _ACEOF
  9761. fi
  9762. done
  9763. if test $ac_cv_func_memmem = yes; then
  9764. HAVE_MEMMEM=1
  9765. else
  9766. HAVE_MEMMEM=0
  9767. fi
  9768. if test $ac_cv_have_decl_memmem = no; then
  9769. HAVE_DECL_MEMMEM=0
  9770. else
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  9772. $as_echo_n "checking whether memmem works... " >&6; }
  9773. if test "${gl_cv_func_memmem_works_always+set}" = set; then :
  9774. $as_echo_n "(cached) " >&6
  9775. else
  9776. if test "$cross_compiling" = yes; then :
  9777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9778. /* end confdefs.h. */
  9779. #ifdef __GNU_LIBRARY__
  9780. #include <features.h>
  9781. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  9782. || __GLIBC_MINOR__ > 12)) \
  9783. || (__GLIBC__ > 2)) \
  9784. || defined __UCLIBC__
  9785. Lucky user
  9786. #endif
  9787. #elif defined __CYGWIN__
  9788. #include <cygwin/version.h>
  9789. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  9790. Lucky user
  9791. #endif
  9792. #else
  9793. Lucky user
  9794. #endif
  9795. _ACEOF
  9796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9797. $EGREP "Lucky user" >/dev/null 2>&1; then :
  9798. gl_cv_func_memmem_works_always="guessing yes"
  9799. else
  9800. gl_cv_func_memmem_works_always="guessing no"
  9801. fi
  9802. rm -f conftest*
  9803. else
  9804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9805. /* end confdefs.h. */
  9806. #include <string.h> /* for memmem */
  9807. #define P "_EF_BF_BD"
  9808. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  9809. #define NEEDLE P P P P P
  9810. int
  9811. main ()
  9812. {
  9813. int result = 0;
  9814. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  9815. result |= 1;
  9816. /* Check for empty needle behavior. */
  9817. {
  9818. const char *haystack = "AAA";
  9819. if (memmem (haystack, 3, NULL, 0) != haystack)
  9820. result |= 2;
  9821. }
  9822. return result;
  9823. ;
  9824. return 0;
  9825. }
  9826. _ACEOF
  9827. if ac_fn_c_try_run "$LINENO"; then :
  9828. gl_cv_func_memmem_works_always=yes
  9829. else
  9830. gl_cv_func_memmem_works_always=no
  9831. fi
  9832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9833. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9834. fi
  9835. fi
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  9837. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  9838. case "$gl_cv_func_memmem_works_always" in
  9839. *yes) ;;
  9840. *)
  9841. REPLACE_MEMMEM=1
  9842. ;;
  9843. esac
  9844. fi
  9845. :
  9846. GNULIB_DPRINTF=0;
  9847. GNULIB_FCLOSE=0;
  9848. GNULIB_FDOPEN=0;
  9849. GNULIB_FFLUSH=0;
  9850. GNULIB_FGETC=0;
  9851. GNULIB_FGETS=0;
  9852. GNULIB_FOPEN=0;
  9853. GNULIB_FPRINTF=0;
  9854. GNULIB_FPRINTF_POSIX=0;
  9855. GNULIB_FPURGE=0;
  9856. GNULIB_FPUTC=0;
  9857. GNULIB_FPUTS=0;
  9858. GNULIB_FREAD=0;
  9859. GNULIB_FREOPEN=0;
  9860. GNULIB_FSCANF=0;
  9861. GNULIB_FSEEK=0;
  9862. GNULIB_FSEEKO=0;
  9863. GNULIB_FTELL=0;
  9864. GNULIB_FTELLO=0;
  9865. GNULIB_FWRITE=0;
  9866. GNULIB_GETC=0;
  9867. GNULIB_GETCHAR=0;
  9868. GNULIB_GETDELIM=0;
  9869. GNULIB_GETLINE=0;
  9870. GNULIB_OBSTACK_PRINTF=0;
  9871. GNULIB_OBSTACK_PRINTF_POSIX=0;
  9872. GNULIB_PCLOSE=0;
  9873. GNULIB_PERROR=0;
  9874. GNULIB_POPEN=0;
  9875. GNULIB_PRINTF=0;
  9876. GNULIB_PRINTF_POSIX=0;
  9877. GNULIB_PUTC=0;
  9878. GNULIB_PUTCHAR=0;
  9879. GNULIB_PUTS=0;
  9880. GNULIB_REMOVE=0;
  9881. GNULIB_RENAME=0;
  9882. GNULIB_RENAMEAT=0;
  9883. GNULIB_SCANF=0;
  9884. GNULIB_SNPRINTF=0;
  9885. GNULIB_SPRINTF_POSIX=0;
  9886. GNULIB_STDIO_H_NONBLOCKING=0;
  9887. GNULIB_STDIO_H_SIGPIPE=0;
  9888. GNULIB_TMPFILE=0;
  9889. GNULIB_VASPRINTF=0;
  9890. GNULIB_VFSCANF=0;
  9891. GNULIB_VSCANF=0;
  9892. GNULIB_VDPRINTF=0;
  9893. GNULIB_VFPRINTF=0;
  9894. GNULIB_VFPRINTF_POSIX=0;
  9895. GNULIB_VPRINTF=0;
  9896. GNULIB_VPRINTF_POSIX=0;
  9897. GNULIB_VSNPRINTF=0;
  9898. GNULIB_VSPRINTF_POSIX=0;
  9899. HAVE_DECL_FPURGE=1;
  9900. HAVE_DECL_FSEEKO=1;
  9901. HAVE_DECL_FTELLO=1;
  9902. HAVE_DECL_GETDELIM=1;
  9903. HAVE_DECL_GETLINE=1;
  9904. HAVE_DECL_OBSTACK_PRINTF=1;
  9905. HAVE_DECL_SNPRINTF=1;
  9906. HAVE_DECL_VSNPRINTF=1;
  9907. HAVE_DPRINTF=1;
  9908. HAVE_FSEEKO=1;
  9909. HAVE_FTELLO=1;
  9910. HAVE_PCLOSE=1;
  9911. HAVE_POPEN=1;
  9912. HAVE_RENAMEAT=1;
  9913. HAVE_VASPRINTF=1;
  9914. HAVE_VDPRINTF=1;
  9915. REPLACE_DPRINTF=0;
  9916. REPLACE_FCLOSE=0;
  9917. REPLACE_FDOPEN=0;
  9918. REPLACE_FFLUSH=0;
  9919. REPLACE_FOPEN=0;
  9920. REPLACE_FPRINTF=0;
  9921. REPLACE_FPURGE=0;
  9922. REPLACE_FREOPEN=0;
  9923. REPLACE_FSEEK=0;
  9924. REPLACE_FSEEKO=0;
  9925. REPLACE_FTELL=0;
  9926. REPLACE_FTELLO=0;
  9927. REPLACE_GETDELIM=0;
  9928. REPLACE_GETLINE=0;
  9929. REPLACE_OBSTACK_PRINTF=0;
  9930. REPLACE_PERROR=0;
  9931. REPLACE_POPEN=0;
  9932. REPLACE_PRINTF=0;
  9933. REPLACE_REMOVE=0;
  9934. REPLACE_RENAME=0;
  9935. REPLACE_RENAMEAT=0;
  9936. REPLACE_SNPRINTF=0;
  9937. REPLACE_SPRINTF=0;
  9938. REPLACE_STDIO_READ_FUNCS=0;
  9939. REPLACE_STDIO_WRITE_FUNCS=0;
  9940. REPLACE_TMPFILE=0;
  9941. REPLACE_VASPRINTF=0;
  9942. REPLACE_VDPRINTF=0;
  9943. REPLACE_VFPRINTF=0;
  9944. REPLACE_VPRINTF=0;
  9945. REPLACE_VSNPRINTF=0;
  9946. REPLACE_VSPRINTF=0;
  9947. GNULIB_PTHREAD_SIGMASK=0;
  9948. GNULIB_RAISE=0;
  9949. GNULIB_SIGNAL_H_SIGPIPE=0;
  9950. GNULIB_SIGPROCMASK=0;
  9951. GNULIB_SIGACTION=0;
  9952. HAVE_POSIX_SIGNALBLOCKING=1;
  9953. HAVE_PTHREAD_SIGMASK=1;
  9954. HAVE_RAISE=1;
  9955. HAVE_SIGSET_T=1;
  9956. HAVE_SIGINFO_T=1;
  9957. HAVE_SIGACTION=1;
  9958. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  9959. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  9960. HAVE_SIGHANDLER_T=1;
  9961. REPLACE_PTHREAD_SIGMASK=0;
  9962. REPLACE_RAISE=0;
  9963. ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
  9964. #include <signal.h>
  9965. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  9966. #include <sys/types.h>
  9967. "
  9968. if test "x$ac_cv_type_sigset_t" = x""yes; then :
  9969. cat >>confdefs.h <<_ACEOF
  9970. #define HAVE_SIGSET_T 1
  9971. _ACEOF
  9972. gl_cv_type_sigset_t=yes
  9973. else
  9974. gl_cv_type_sigset_t=no
  9975. fi
  9976. if test $gl_cv_type_sigset_t != yes; then
  9977. HAVE_SIGSET_T=0
  9978. fi
  9979. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  9980. if test "x$ac_cv_type_pid_t" = x""yes; then :
  9981. else
  9982. cat >>confdefs.h <<_ACEOF
  9983. #define pid_t int
  9984. _ACEOF
  9985. fi
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  9987. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  9988. if test "${ac_cv_type_uid_t+set}" = set; then :
  9989. $as_echo_n "(cached) " >&6
  9990. else
  9991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9992. /* end confdefs.h. */
  9993. #include <sys/types.h>
  9994. _ACEOF
  9995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9996. $EGREP "uid_t" >/dev/null 2>&1; then :
  9997. ac_cv_type_uid_t=yes
  9998. else
  9999. ac_cv_type_uid_t=no
  10000. fi
  10001. rm -f conftest*
  10002. fi
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  10004. $as_echo "$ac_cv_type_uid_t" >&6; }
  10005. if test $ac_cv_type_uid_t = no; then
  10006. $as_echo "#define uid_t int" >>confdefs.h
  10007. $as_echo "#define gid_t int" >>confdefs.h
  10008. fi
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10010. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10011. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  10012. $as_echo_n "(cached) " >&6
  10013. else
  10014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10015. /* end confdefs.h. */
  10016. #include <stdbool.h>
  10017. #ifndef bool
  10018. "error: bool is not defined"
  10019. #endif
  10020. #ifndef false
  10021. "error: false is not defined"
  10022. #endif
  10023. #if false
  10024. "error: false is not 0"
  10025. #endif
  10026. #ifndef true
  10027. "error: true is not defined"
  10028. #endif
  10029. #if true != 1
  10030. "error: true is not 1"
  10031. #endif
  10032. #ifndef __bool_true_false_are_defined
  10033. "error: __bool_true_false_are_defined is not defined"
  10034. #endif
  10035. struct s { _Bool s: 1; _Bool t; } s;
  10036. char a[true == 1 ? 1 : -1];
  10037. char b[false == 0 ? 1 : -1];
  10038. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10039. char d[(bool) 0.5 == true ? 1 : -1];
  10040. /* See body of main program for 'e'. */
  10041. char f[(_Bool) 0.0 == false ? 1 : -1];
  10042. char g[true];
  10043. char h[sizeof (_Bool)];
  10044. char i[sizeof s.t];
  10045. enum { j = false, k = true, l = false * true, m = true * 256 };
  10046. /* The following fails for
  10047. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10048. _Bool n[m];
  10049. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10050. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10051. /* Catch a bug in an HP-UX C compiler. See
  10052. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10053. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10054. */
  10055. _Bool q = true;
  10056. _Bool *pq = &q;
  10057. int
  10058. main ()
  10059. {
  10060. bool e = &s;
  10061. *pq |= q;
  10062. *pq |= ! q;
  10063. /* Refer to every declared value, to avoid compiler optimizations. */
  10064. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10065. + !m + !n + !o + !p + !q + !pq);
  10066. ;
  10067. return 0;
  10068. }
  10069. _ACEOF
  10070. if ac_fn_c_try_compile "$LINENO"; then :
  10071. ac_cv_header_stdbool_h=yes
  10072. else
  10073. ac_cv_header_stdbool_h=no
  10074. fi
  10075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10076. fi
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10078. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10079. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10080. if test "x$ac_cv_type__Bool" = x""yes; then :
  10081. cat >>confdefs.h <<_ACEOF
  10082. #define HAVE__BOOL 1
  10083. _ACEOF
  10084. fi
  10085. REPLACE_NULL=0;
  10086. HAVE_MAX_ALIGN_T=1;
  10087. HAVE_WCHAR_T=1;
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10089. $as_echo_n "checking for wchar_t... " >&6; }
  10090. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10091. $as_echo_n "(cached) " >&6
  10092. else
  10093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10094. /* end confdefs.h. */
  10095. #include <stddef.h>
  10096. wchar_t foo = (wchar_t)'\0';
  10097. int
  10098. main ()
  10099. {
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. if ac_fn_c_try_compile "$LINENO"; then :
  10105. gt_cv_c_wchar_t=yes
  10106. else
  10107. gt_cv_c_wchar_t=no
  10108. fi
  10109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10110. fi
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10112. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10113. if test $gt_cv_c_wchar_t = yes; then
  10114. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10115. fi
  10116. if test $gl_cv_have_include_next = yes; then
  10117. gl_cv_next_string_h='<'string.h'>'
  10118. else
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
  10120. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  10121. if test "${gl_cv_next_string_h+set}" = set; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10125. /* end confdefs.h. */
  10126. #include <string.h>
  10127. _ACEOF
  10128. case "$host_os" in
  10129. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  10130. *) gl_absname_cpp="$ac_cpp" ;;
  10131. esac
  10132. case "$host_os" in
  10133. mingw*)
  10134. gl_dirsep_regex='[/\\]'
  10135. ;;
  10136. *)
  10137. gl_dirsep_regex='\/'
  10138. ;;
  10139. esac
  10140. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  10141. gl_header_literal_regex=`echo 'string.h' \
  10142. | sed -e "$gl_make_literal_regex_sed"`
  10143. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  10144. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  10145. s|^/[^/]|//&|
  10146. p
  10147. q
  10148. }'
  10149. gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  10150. sed -n "$gl_absolute_header_sed"`
  10151. gl_header=$gl_cv_absolute_string_h
  10152. gl_cv_next_string_h='"'$gl_header'"'
  10153. fi
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
  10155. $as_echo "$gl_cv_next_string_h" >&6; }
  10156. fi
  10157. NEXT_STRING_H=$gl_cv_next_string_h
  10158. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  10159. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  10160. gl_next_as_first_directive='<'string.h'>'
  10161. else
  10162. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  10163. gl_next_as_first_directive=$gl_cv_next_string_h
  10164. fi
  10165. NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  10166. for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
  10167. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  10169. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  10170. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10174. /* end confdefs.h. */
  10175. #include <string.h>
  10176. int
  10177. main ()
  10178. {
  10179. #undef $gl_func
  10180. (void) $gl_func;
  10181. ;
  10182. return 0;
  10183. }
  10184. _ACEOF
  10185. if ac_fn_c_try_compile "$LINENO"; then :
  10186. eval "$as_gl_Symbol=yes"
  10187. else
  10188. eval "$as_gl_Symbol=no"
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. fi
  10192. eval ac_res=\$$as_gl_Symbol
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10194. $as_echo "$ac_res" >&6; }
  10195. eval as_val=\$$as_gl_Symbol
  10196. if test "x$as_val" = x""yes; then :
  10197. cat >>confdefs.h <<_ACEOF
  10198. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  10199. _ACEOF
  10200. eval ac_cv_have_decl_$gl_func=yes
  10201. fi
  10202. done
  10203. if test "$gl_cv_func_memchr_works" != yes; then
  10204. REPLACE_STRSTR=1
  10205. else
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
  10207. $as_echo_n "checking whether strstr works... " >&6; }
  10208. if test "${gl_cv_func_strstr_works_always+set}" = set; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test "$cross_compiling" = yes; then :
  10212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10213. /* end confdefs.h. */
  10214. #ifdef __GNU_LIBRARY__
  10215. #include <features.h>
  10216. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
  10217. || defined __UCLIBC__
  10218. Lucky user
  10219. #endif
  10220. #elif defined __CYGWIN__
  10221. #include <cygwin/version.h>
  10222. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  10223. Lucky user
  10224. #endif
  10225. #else
  10226. Lucky user
  10227. #endif
  10228. _ACEOF
  10229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10230. $EGREP "Lucky user" >/dev/null 2>&1; then :
  10231. gl_cv_func_strstr_works_always="guessing yes"
  10232. else
  10233. gl_cv_func_strstr_works_always="guessing no"
  10234. fi
  10235. rm -f conftest*
  10236. else
  10237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10238. /* end confdefs.h. */
  10239. #include <string.h> /* for strstr */
  10240. #define P "_EF_BF_BD"
  10241. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  10242. #define NEEDLE P P P P P
  10243. int
  10244. main ()
  10245. {
  10246. return !!strstr (HAYSTACK, NEEDLE);
  10247. ;
  10248. return 0;
  10249. }
  10250. _ACEOF
  10251. if ac_fn_c_try_run "$LINENO"; then :
  10252. gl_cv_func_strstr_works_always=yes
  10253. else
  10254. gl_cv_func_strstr_works_always=no
  10255. fi
  10256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10257. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10258. fi
  10259. fi
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
  10261. $as_echo "$gl_cv_func_strstr_works_always" >&6; }
  10262. case "$gl_cv_func_strstr_works_always" in
  10263. *yes) ;;
  10264. *)
  10265. REPLACE_STRSTR=1
  10266. ;;
  10267. esac
  10268. fi
  10269. ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
  10270. if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
  10271. ac_have_decl=1
  10272. else
  10273. ac_have_decl=0
  10274. fi
  10275. cat >>confdefs.h <<_ACEOF
  10276. #define HAVE_DECL_STRTOK_R $ac_have_decl
  10277. _ACEOF
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  10279. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  10280. if test "${ac_cv_header_stat_broken+set}" = set; then :
  10281. $as_echo_n "(cached) " >&6
  10282. else
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. #include <sys/types.h>
  10286. #include <sys/stat.h>
  10287. #if defined S_ISBLK && defined S_IFDIR
  10288. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  10289. #endif
  10290. #if defined S_ISBLK && defined S_IFCHR
  10291. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  10292. #endif
  10293. #if defined S_ISLNK && defined S_IFREG
  10294. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  10295. #endif
  10296. #if defined S_ISSOCK && defined S_IFREG
  10297. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  10298. #endif
  10299. _ACEOF
  10300. if ac_fn_c_try_compile "$LINENO"; then :
  10301. ac_cv_header_stat_broken=no
  10302. else
  10303. ac_cv_header_stat_broken=yes
  10304. fi
  10305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10306. fi
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  10308. $as_echo "$ac_cv_header_stat_broken" >&6; }
  10309. if test $ac_cv_header_stat_broken = yes; then
  10310. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  10311. fi
  10312. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  10313. if test "x$ac_cv_type_mode_t" = x""yes; then :
  10314. else
  10315. cat >>confdefs.h <<_ACEOF
  10316. #define mode_t int
  10317. _ACEOF
  10318. fi
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10320. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10321. if test -z "$MKDIR_P"; then
  10322. if test "${ac_cv_path_mkdir+set}" = set; then :
  10323. $as_echo_n "(cached) " >&6
  10324. else
  10325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10326. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10327. do
  10328. IFS=$as_save_IFS
  10329. test -z "$as_dir" && as_dir=.
  10330. for ac_prog in mkdir gmkdir; do
  10331. for ac_exec_ext in '' $ac_executable_extensions; do
  10332. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  10333. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10334. 'mkdir (GNU coreutils) '* | \
  10335. 'mkdir (coreutils) '* | \
  10336. 'mkdir (fileutils) '4.1*)
  10337. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10338. break 3;;
  10339. esac
  10340. done
  10341. done
  10342. done
  10343. IFS=$as_save_IFS
  10344. fi
  10345. if test "${ac_cv_path_mkdir+set}" = set; then
  10346. MKDIR_P="$ac_cv_path_mkdir -p"
  10347. else
  10348. # As a last resort, use the slow shell script. Don't cache a
  10349. # value for MKDIR_P within a source directory, because that will
  10350. # break other packages using the cache if that directory is
  10351. # removed, or if the value is a relative name.
  10352. test -d ./--version && rmdir ./--version
  10353. MKDIR_P="$ac_install_sh -d"
  10354. fi
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10357. $as_echo "$MKDIR_P" >&6; }
  10358. if test $gl_cv_have_include_next = yes; then
  10359. gl_cv_next_sys_types_h='<'sys/types.h'>'
  10360. else
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
  10362. $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
  10363. if test "${gl_cv_next_sys_types_h+set}" = set; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10367. /* end confdefs.h. */
  10368. #include <sys/types.h>
  10369. _ACEOF
  10370. case "$host_os" in
  10371. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  10372. *) gl_absname_cpp="$ac_cpp" ;;
  10373. esac
  10374. case "$host_os" in
  10375. mingw*)
  10376. gl_dirsep_regex='[/\\]'
  10377. ;;
  10378. *)
  10379. gl_dirsep_regex='\/'
  10380. ;;
  10381. esac
  10382. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  10383. gl_header_literal_regex=`echo 'sys/types.h' \
  10384. | sed -e "$gl_make_literal_regex_sed"`
  10385. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  10386. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  10387. s|^/[^/]|//&|
  10388. p
  10389. q
  10390. }'
  10391. gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  10392. sed -n "$gl_absolute_header_sed"`
  10393. gl_header=$gl_cv_absolute_sys_types_h
  10394. gl_cv_next_sys_types_h='"'$gl_header'"'
  10395. fi
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
  10397. $as_echo "$gl_cv_next_sys_types_h" >&6; }
  10398. fi
  10399. NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
  10400. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  10401. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  10402. gl_next_as_first_directive='<'sys/types.h'>'
  10403. else
  10404. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  10405. gl_next_as_first_directive=$gl_cv_next_sys_types_h
  10406. fi
  10407. NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
  10408. GNULIB_MKTIME=0;
  10409. GNULIB_NANOSLEEP=0;
  10410. GNULIB_STRPTIME=0;
  10411. GNULIB_TIMEGM=0;
  10412. GNULIB_TIME_R=0;
  10413. GNULIB_TIME_RZ=0;
  10414. HAVE_DECL_LOCALTIME_R=1;
  10415. HAVE_NANOSLEEP=1;
  10416. HAVE_STRPTIME=1;
  10417. HAVE_TIMEGM=1;
  10418. REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
  10419. REPLACE_MKTIME=GNULIB_PORTCHECK;
  10420. REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
  10421. REPLACE_TIMEGM=GNULIB_PORTCHECK;
  10422. : ${GNULIB_GETTIMEOFDAY=0};
  10423. REPLACE_GMTIME=0;
  10424. REPLACE_LOCALTIME=0;
  10425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
  10426. $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
  10427. if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
  10428. $as_echo_n "(cached) " >&6
  10429. else
  10430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10431. /* end confdefs.h. */
  10432. #include <time.h>
  10433. int
  10434. main ()
  10435. {
  10436. static struct timespec x; x.tv_sec = x.tv_nsec;
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_c_try_compile "$LINENO"; then :
  10442. gl_cv_sys_struct_timespec_in_time_h=yes
  10443. else
  10444. gl_cv_sys_struct_timespec_in_time_h=no
  10445. fi
  10446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
  10449. $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
  10450. TIME_H_DEFINES_STRUCT_TIMESPEC=0
  10451. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
  10452. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
  10453. UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
  10454. if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
  10455. TIME_H_DEFINES_STRUCT_TIMESPEC=1
  10456. else
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
  10458. $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
  10459. if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. #include <sys/time.h>
  10465. int
  10466. main ()
  10467. {
  10468. static struct timespec x; x.tv_sec = x.tv_nsec;
  10469. ;
  10470. return 0;
  10471. }
  10472. _ACEOF
  10473. if ac_fn_c_try_compile "$LINENO"; then :
  10474. gl_cv_sys_struct_timespec_in_sys_time_h=yes
  10475. else
  10476. gl_cv_sys_struct_timespec_in_sys_time_h=no
  10477. fi
  10478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10479. fi
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
  10481. $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
  10482. if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
  10483. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
  10484. else
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
  10486. $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
  10487. if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. #include <pthread.h>
  10493. int
  10494. main ()
  10495. {
  10496. static struct timespec x; x.tv_sec = x.tv_nsec;
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_c_try_compile "$LINENO"; then :
  10502. gl_cv_sys_struct_timespec_in_pthread_h=yes
  10503. else
  10504. gl_cv_sys_struct_timespec_in_pthread_h=no
  10505. fi
  10506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10507. fi
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
  10509. $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
  10510. if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
  10511. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
  10512. else
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
  10514. $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
  10515. if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10519. /* end confdefs.h. */
  10520. #include <unistd.h>
  10521. int
  10522. main ()
  10523. {
  10524. static struct timespec x; x.tv_sec = x.tv_nsec;
  10525. ;
  10526. return 0;
  10527. }
  10528. _ACEOF
  10529. if ac_fn_c_try_compile "$LINENO"; then :
  10530. gl_cv_sys_struct_timespec_in_unistd_h=yes
  10531. else
  10532. gl_cv_sys_struct_timespec_in_unistd_h=no
  10533. fi
  10534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
  10537. $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
  10538. if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
  10539. UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
  10540. fi
  10541. fi
  10542. fi
  10543. fi
  10544. if test $gl_cv_have_include_next = yes; then
  10545. gl_cv_next_time_h='<'time.h'>'
  10546. else
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
  10548. $as_echo_n "checking absolute name of <time.h>... " >&6; }
  10549. if test "${gl_cv_next_time_h+set}" = set; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10553. /* end confdefs.h. */
  10554. #include <time.h>
  10555. _ACEOF
  10556. case "$host_os" in
  10557. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  10558. *) gl_absname_cpp="$ac_cpp" ;;
  10559. esac
  10560. case "$host_os" in
  10561. mingw*)
  10562. gl_dirsep_regex='[/\\]'
  10563. ;;
  10564. *)
  10565. gl_dirsep_regex='\/'
  10566. ;;
  10567. esac
  10568. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  10569. gl_header_literal_regex=`echo 'time.h' \
  10570. | sed -e "$gl_make_literal_regex_sed"`
  10571. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  10572. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  10573. s|^/[^/]|//&|
  10574. p
  10575. q
  10576. }'
  10577. gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  10578. sed -n "$gl_absolute_header_sed"`
  10579. gl_header=$gl_cv_absolute_time_h
  10580. gl_cv_next_time_h='"'$gl_header'"'
  10581. fi
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
  10583. $as_echo "$gl_cv_next_time_h" >&6; }
  10584. fi
  10585. NEXT_TIME_H=$gl_cv_next_time_h
  10586. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  10587. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  10588. gl_next_as_first_directive='<'time.h'>'
  10589. else
  10590. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  10591. gl_next_as_first_directive=$gl_cv_next_time_h
  10592. fi
  10593. NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
  10595. $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
  10596. if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
  10597. $as_echo_n "(cached) " >&6
  10598. else
  10599. gl_cv_header_wchar_h_correct_inline=yes
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #define wcstod renamed_wcstod
  10603. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10604. <wchar.h>.
  10605. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  10606. included before <wchar.h>. */
  10607. #include <stddef.h>
  10608. #include <stdio.h>
  10609. #include <time.h>
  10610. #include <wchar.h>
  10611. extern int zero (void);
  10612. int main () { return zero(); }
  10613. _ACEOF
  10614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10615. (eval $ac_compile) 2>&5
  10616. ac_status=$?
  10617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10618. test $ac_status = 0; }; then
  10619. mv conftest.$ac_objext conftest1.$ac_objext
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. #define wcstod renamed_wcstod
  10623. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10624. <wchar.h>.
  10625. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  10626. included before <wchar.h>. */
  10627. #include <stddef.h>
  10628. #include <stdio.h>
  10629. #include <time.h>
  10630. #include <wchar.h>
  10631. int zero (void) { return 0; }
  10632. _ACEOF
  10633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10634. (eval $ac_compile) 2>&5
  10635. ac_status=$?
  10636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10637. test $ac_status = 0; }; then
  10638. mv conftest.$ac_objext conftest2.$ac_objext
  10639. if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
  10640. :
  10641. else
  10642. gl_cv_header_wchar_h_correct_inline=no
  10643. fi
  10644. fi
  10645. fi
  10646. rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
  10649. $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
  10650. if test $gl_cv_header_wchar_h_correct_inline = no; then
  10651. as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
  10652. This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
  10653. C99 mode. You have four options:
  10654. - Add the flag -fgnu89-inline to CC and reconfigure, or
  10655. - Fix your include files, using parts of
  10656. <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
  10657. - Use a gcc version older than 4.3, or
  10658. - Don't use the flags -std=c99 or -std=gnu99.
  10659. Configuration aborted." "$LINENO" 5
  10660. fi
  10661. if test $ac_cv_header_features_h = yes; then
  10662. HAVE_FEATURES_H=1
  10663. else
  10664. HAVE_FEATURES_H=0
  10665. fi
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10667. $as_echo_n "checking for wint_t... " >&6; }
  10668. if test "${gt_cv_c_wint_t+set}" = set; then :
  10669. $as_echo_n "(cached) " >&6
  10670. else
  10671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10672. /* end confdefs.h. */
  10673. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10674. <wchar.h>.
  10675. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10676. before <wchar.h>. */
  10677. #include <stddef.h>
  10678. #include <stdio.h>
  10679. #include <time.h>
  10680. #include <wchar.h>
  10681. wint_t foo = (wchar_t)'\0';
  10682. int
  10683. main ()
  10684. {
  10685. ;
  10686. return 0;
  10687. }
  10688. _ACEOF
  10689. if ac_fn_c_try_compile "$LINENO"; then :
  10690. gt_cv_c_wint_t=yes
  10691. else
  10692. gt_cv_c_wint_t=no
  10693. fi
  10694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10695. fi
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10697. $as_echo "$gt_cv_c_wint_t" >&6; }
  10698. if test $gt_cv_c_wint_t = yes; then
  10699. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10700. fi
  10701. GNULIB_ISWBLANK=0;
  10702. GNULIB_WCTYPE=0;
  10703. GNULIB_ISWCTYPE=0;
  10704. GNULIB_WCTRANS=0;
  10705. GNULIB_TOWCTRANS=0;
  10706. HAVE_ISWBLANK=1;
  10707. HAVE_WCTYPE_T=1;
  10708. HAVE_WCTRANS_T=1;
  10709. REPLACE_ISWBLANK=0;
  10710. if false; then
  10711. GL_COND_LIBTOOL_TRUE=
  10712. GL_COND_LIBTOOL_FALSE='#'
  10713. else
  10714. GL_COND_LIBTOOL_TRUE='#'
  10715. GL_COND_LIBTOOL_FALSE=
  10716. fi
  10717. gl_cond_libtool=false
  10718. gl_libdeps=
  10719. gl_ltlibdeps=
  10720. gl_m4_base='import/m4'
  10721. gl_source_base='import'
  10722. if test $ac_cv_func_alloca_works = no; then
  10723. :
  10724. fi
  10725. # Define an additional variable used in the Makefile substitution.
  10726. if test $ac_cv_working_alloca_h = yes; then
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
  10728. $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
  10729. if test "${gl_cv_rpl_alloca+set}" = set; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10733. /* end confdefs.h. */
  10734. #if defined __GNUC__ || defined _AIX || defined _MSC_VER
  10735. Need own alloca
  10736. #endif
  10737. _ACEOF
  10738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10739. $EGREP "Need own alloca" >/dev/null 2>&1; then :
  10740. gl_cv_rpl_alloca=yes
  10741. else
  10742. gl_cv_rpl_alloca=no
  10743. fi
  10744. rm -f conftest*
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
  10747. $as_echo "$gl_cv_rpl_alloca" >&6; }
  10748. if test $gl_cv_rpl_alloca = yes; then
  10749. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  10750. ALLOCA_H=alloca.h
  10751. else
  10752. ALLOCA_H=
  10753. fi
  10754. else
  10755. ALLOCA_H=alloca.h
  10756. fi
  10757. if test -n "$ALLOCA_H"; then
  10758. GL_GENERATE_ALLOCA_H_TRUE=
  10759. GL_GENERATE_ALLOCA_H_FALSE='#'
  10760. else
  10761. GL_GENERATE_ALLOCA_H_TRUE='#'
  10762. GL_GENERATE_ALLOCA_H_FALSE=
  10763. fi
  10764. if test $ac_cv_func_canonicalize_file_name = no; then
  10765. HAVE_CANONICALIZE_FILE_NAME=0
  10766. if test $ac_cv_func_realpath = no; then
  10767. HAVE_REALPATH=0
  10768. else
  10769. case "$gl_cv_func_realpath_works" in
  10770. *yes) ;;
  10771. *) REPLACE_REALPATH=1 ;;
  10772. esac
  10773. fi
  10774. else
  10775. case "$gl_cv_func_realpath_works" in
  10776. *yes)
  10777. ;;
  10778. *)
  10779. REPLACE_CANONICALIZE_FILE_NAME=1
  10780. REPLACE_REALPATH=1
  10781. ;;
  10782. esac
  10783. fi
  10784. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  10785. gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
  10786. fi
  10787. cat >>confdefs.h <<_ACEOF
  10788. #define GNULIB_CANONICALIZE_LGPL 1
  10789. _ACEOF
  10790. GNULIB_CANONICALIZE_FILE_NAME=1
  10791. $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
  10792. GNULIB_REALPATH=1
  10793. $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
  10794. GNULIB_CHDIR=1
  10795. $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
  10796. if test "x$datarootdir" = x; then
  10797. datarootdir='${datadir}'
  10798. fi
  10799. if test "x$docdir" = x; then
  10800. docdir='${datarootdir}/doc/${PACKAGE}'
  10801. fi
  10802. if test "x$htmldir" = x; then
  10803. htmldir='${docdir}'
  10804. fi
  10805. if test "x$dvidir" = x; then
  10806. dvidir='${docdir}'
  10807. fi
  10808. if test "x$pdfdir" = x; then
  10809. pdfdir='${docdir}'
  10810. fi
  10811. if test "x$psdir" = x; then
  10812. psdir='${docdir}'
  10813. fi
  10814. if test "x$lispdir" = x; then
  10815. lispdir='${datarootdir}/emacs/site-lisp'
  10816. fi
  10817. if test "x$localedir" = x; then
  10818. localedir='${datarootdir}/locale'
  10819. fi
  10820. if test "x$runstatedir" = x; then
  10821. runstatedir='${localstatedir}/run'
  10822. fi
  10823. pkglibexecdir='${libexecdir}/${PACKAGE}'
  10824. if test $gl_cv_have_include_next = yes; then
  10825. gl_cv_next_dirent_h='<'dirent.h'>'
  10826. else
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
  10828. $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
  10829. if test "${gl_cv_next_dirent_h+set}" = set; then :
  10830. $as_echo_n "(cached) " >&6
  10831. else
  10832. if test $ac_cv_header_dirent_h = yes; then
  10833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10834. /* end confdefs.h. */
  10835. #include <dirent.h>
  10836. _ACEOF
  10837. case "$host_os" in
  10838. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  10839. *) gl_absname_cpp="$ac_cpp" ;;
  10840. esac
  10841. case "$host_os" in
  10842. mingw*)
  10843. gl_dirsep_regex='[/\\]'
  10844. ;;
  10845. *)
  10846. gl_dirsep_regex='\/'
  10847. ;;
  10848. esac
  10849. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  10850. gl_header_literal_regex=`echo 'dirent.h' \
  10851. | sed -e "$gl_make_literal_regex_sed"`
  10852. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  10853. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  10854. s|^/[^/]|//&|
  10855. p
  10856. q
  10857. }'
  10858. gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  10859. sed -n "$gl_absolute_header_sed"`
  10860. gl_header=$gl_cv_absolute_dirent_h
  10861. gl_cv_next_dirent_h='"'$gl_header'"'
  10862. else
  10863. gl_cv_next_dirent_h='<'dirent.h'>'
  10864. fi
  10865. fi
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
  10867. $as_echo "$gl_cv_next_dirent_h" >&6; }
  10868. fi
  10869. NEXT_DIRENT_H=$gl_cv_next_dirent_h
  10870. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  10871. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  10872. gl_next_as_first_directive='<'dirent.h'>'
  10873. else
  10874. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  10875. gl_next_as_first_directive=$gl_cv_next_dirent_h
  10876. fi
  10877. NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
  10878. if test $ac_cv_header_dirent_h = yes; then
  10879. HAVE_DIRENT_H=1
  10880. else
  10881. HAVE_DIRENT_H=0
  10882. fi
  10883. for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
  10884. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  10886. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  10887. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  10888. $as_echo_n "(cached) " >&6
  10889. else
  10890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10891. /* end confdefs.h. */
  10892. #include <dirent.h>
  10893. int
  10894. main ()
  10895. {
  10896. #undef $gl_func
  10897. (void) $gl_func;
  10898. ;
  10899. return 0;
  10900. }
  10901. _ACEOF
  10902. if ac_fn_c_try_compile "$LINENO"; then :
  10903. eval "$as_gl_Symbol=yes"
  10904. else
  10905. eval "$as_gl_Symbol=no"
  10906. fi
  10907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10908. fi
  10909. eval ac_res=\$$as_gl_Symbol
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10911. $as_echo "$ac_res" >&6; }
  10912. eval as_val=\$$as_gl_Symbol
  10913. if test "x$as_val" = x""yes; then :
  10914. cat >>confdefs.h <<_ACEOF
  10915. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  10916. _ACEOF
  10917. eval ac_cv_have_decl_$gl_func=yes
  10918. fi
  10919. done
  10920. for ac_func in dirfd
  10921. do :
  10922. ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
  10923. if test "x$ac_cv_func_dirfd" = x""yes; then :
  10924. cat >>confdefs.h <<_ACEOF
  10925. #define HAVE_DIRFD 1
  10926. _ACEOF
  10927. fi
  10928. done
  10929. ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
  10930. #include <dirent.h>
  10931. "
  10932. if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
  10933. ac_have_decl=1
  10934. else
  10935. ac_have_decl=0
  10936. fi
  10937. cat >>confdefs.h <<_ACEOF
  10938. #define HAVE_DECL_DIRFD $ac_have_decl
  10939. _ACEOF
  10940. if test $ac_cv_have_decl_dirfd = no; then
  10941. HAVE_DECL_DIRFD=0
  10942. fi
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
  10944. $as_echo_n "checking whether dirfd is a macro... " >&6; }
  10945. if test "${gl_cv_func_dirfd_macro+set}" = set; then :
  10946. $as_echo_n "(cached) " >&6
  10947. else
  10948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10949. /* end confdefs.h. */
  10950. #include <sys/types.h>
  10951. #include <dirent.h>
  10952. #ifdef dirfd
  10953. dirent_header_defines_dirfd
  10954. #endif
  10955. _ACEOF
  10956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10957. $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
  10958. gl_cv_func_dirfd_macro=yes
  10959. else
  10960. gl_cv_func_dirfd_macro=no
  10961. fi
  10962. rm -f conftest*
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
  10965. $as_echo "$gl_cv_func_dirfd_macro" >&6; }
  10966. # Use the replacement only if we have no function or macro with that name.
  10967. if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
  10968. if test $ac_cv_have_decl_dirfd = yes; then
  10969. # If the system declares dirfd already, let's declare rpl_dirfd instead.
  10970. REPLACE_DIRFD=1
  10971. fi
  10972. fi
  10973. if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
  10974. gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
  10975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
  10976. $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
  10977. if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
  10978. $as_echo_n "(cached) " >&6
  10979. else
  10980. dirfd_save_CFLAGS=$CFLAGS
  10981. for ac_expr in d_fd dd_fd; do
  10982. CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
  10983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10984. /* end confdefs.h. */
  10985. #include <sys/types.h>
  10986. #include <dirent.h>
  10987. int
  10988. main ()
  10989. {
  10990. DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
  10991. ;
  10992. return 0;
  10993. }
  10994. _ACEOF
  10995. if ac_fn_c_try_compile "$LINENO"; then :
  10996. dir_fd_found=yes
  10997. fi
  10998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10999. CFLAGS=$dirfd_save_CFLAGS
  11000. test "$dir_fd_found" = yes && break
  11001. done
  11002. test "$dir_fd_found" = yes || ac_expr=no_such_member
  11003. gl_cv_sys_dir_fd_member_name=$ac_expr
  11004. fi
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
  11006. $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
  11007. if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
  11008. cat >>confdefs.h <<_ACEOF
  11009. #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
  11010. _ACEOF
  11011. fi
  11012. fi
  11013. GNULIB_DIRFD=1
  11014. $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
  11016. $as_echo_n "checking whether // is distinct from /... " >&6; }
  11017. if test "${gl_cv_double_slash_root+set}" = set; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. if test x"$cross_compiling" = xyes ; then
  11021. # When cross-compiling, there is no way to tell whether // is special
  11022. # short of a list of hosts. However, the only known hosts to date
  11023. # that have a distinct // are Apollo DomainOS (too old to port to),
  11024. # Cygwin, and z/OS. If anyone knows of another system for which // has
  11025. # special semantics and is distinct from /, please report it to
  11026. # <bug-gnulib@gnu.org>.
  11027. case $host in
  11028. *-cygwin | i370-ibm-openedition)
  11029. gl_cv_double_slash_root=yes ;;
  11030. *)
  11031. # Be optimistic and assume that / and // are the same when we
  11032. # don't know.
  11033. gl_cv_double_slash_root='unknown, assuming no' ;;
  11034. esac
  11035. else
  11036. set x `ls -di / // 2>/dev/null`
  11037. if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
  11038. gl_cv_double_slash_root=no
  11039. else
  11040. gl_cv_double_slash_root=yes
  11041. fi
  11042. fi
  11043. fi
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
  11045. $as_echo "$gl_cv_double_slash_root" >&6; }
  11046. if test "$gl_cv_double_slash_root" = yes; then
  11047. $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
  11048. fi
  11049. FLOAT_H=
  11050. REPLACE_FLOAT_LDBL=0
  11051. case "$host_os" in
  11052. aix* | beos* | openbsd* | mirbsd* | irix*)
  11053. FLOAT_H=float.h
  11054. ;;
  11055. freebsd*)
  11056. case "$host_cpu" in
  11057. i[34567]86 )
  11058. FLOAT_H=float.h
  11059. ;;
  11060. x86_64 )
  11061. # On x86_64 systems, the C compiler may still be generating
  11062. # 32-bit code.
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. #if defined __LP64__ || defined __x86_64__ || defined __amd64__
  11066. yes
  11067. #endif
  11068. _ACEOF
  11069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11070. $EGREP "yes" >/dev/null 2>&1; then :
  11071. else
  11072. FLOAT_H=float.h
  11073. fi
  11074. rm -f conftest*
  11075. ;;
  11076. esac
  11077. ;;
  11078. linux*)
  11079. case "$host_cpu" in
  11080. powerpc*)
  11081. FLOAT_H=float.h
  11082. ;;
  11083. esac
  11084. ;;
  11085. esac
  11086. case "$host_os" in
  11087. aix* | freebsd* | linux*)
  11088. if test -n "$FLOAT_H"; then
  11089. REPLACE_FLOAT_LDBL=1
  11090. fi
  11091. ;;
  11092. esac
  11093. REPLACE_ITOLD=0
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
  11095. $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
  11096. if test "${gl_cv_func_itold_works+set}" = set; then :
  11097. $as_echo_n "(cached) " >&6
  11098. else
  11099. if test "$cross_compiling" = yes; then :
  11100. case "$host" in
  11101. sparc*-*-linux*)
  11102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11103. /* end confdefs.h. */
  11104. #if defined __LP64__ || defined __arch64__
  11105. yes
  11106. #endif
  11107. _ACEOF
  11108. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11109. $EGREP "yes" >/dev/null 2>&1; then :
  11110. gl_cv_func_itold_works="guessing no"
  11111. else
  11112. gl_cv_func_itold_works="guessing yes"
  11113. fi
  11114. rm -f conftest*
  11115. ;;
  11116. *) gl_cv_func_itold_works="guessing yes" ;;
  11117. esac
  11118. else
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. int i = -1;
  11122. volatile long double ld;
  11123. int main ()
  11124. {
  11125. ld += i * 1.0L;
  11126. if (ld > 0)
  11127. return 1;
  11128. return 0;
  11129. }
  11130. _ACEOF
  11131. if ac_fn_c_try_run "$LINENO"; then :
  11132. gl_cv_func_itold_works=yes
  11133. else
  11134. gl_cv_func_itold_works=no
  11135. fi
  11136. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11137. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11138. fi
  11139. fi
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
  11141. $as_echo "$gl_cv_func_itold_works" >&6; }
  11142. case "$gl_cv_func_itold_works" in
  11143. *no)
  11144. REPLACE_ITOLD=1
  11145. FLOAT_H=float.h
  11146. ;;
  11147. esac
  11148. if test -n "$FLOAT_H"; then
  11149. if test $gl_cv_have_include_next = yes; then
  11150. gl_cv_next_float_h='<'float.h'>'
  11151. else
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
  11153. $as_echo_n "checking absolute name of <float.h>... " >&6; }
  11154. if test "${gl_cv_next_float_h+set}" = set; then :
  11155. $as_echo_n "(cached) " >&6
  11156. else
  11157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11158. /* end confdefs.h. */
  11159. #include <float.h>
  11160. _ACEOF
  11161. case "$host_os" in
  11162. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  11163. *) gl_absname_cpp="$ac_cpp" ;;
  11164. esac
  11165. case "$host_os" in
  11166. mingw*)
  11167. gl_dirsep_regex='[/\\]'
  11168. ;;
  11169. *)
  11170. gl_dirsep_regex='\/'
  11171. ;;
  11172. esac
  11173. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  11174. gl_header_literal_regex=`echo 'float.h' \
  11175. | sed -e "$gl_make_literal_regex_sed"`
  11176. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  11177. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  11178. s|^/[^/]|//&|
  11179. p
  11180. q
  11181. }'
  11182. gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  11183. sed -n "$gl_absolute_header_sed"`
  11184. gl_header=$gl_cv_absolute_float_h
  11185. gl_cv_next_float_h='"'$gl_header'"'
  11186. fi
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
  11188. $as_echo "$gl_cv_next_float_h" >&6; }
  11189. fi
  11190. NEXT_FLOAT_H=$gl_cv_next_float_h
  11191. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  11192. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  11193. gl_next_as_first_directive='<'float.h'>'
  11194. else
  11195. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  11196. gl_next_as_first_directive=$gl_cv_next_float_h
  11197. fi
  11198. NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
  11199. fi
  11200. if test -n "$FLOAT_H"; then
  11201. GL_GENERATE_FLOAT_H_TRUE=
  11202. GL_GENERATE_FLOAT_H_FALSE='#'
  11203. else
  11204. GL_GENERATE_FLOAT_H_TRUE='#'
  11205. GL_GENERATE_FLOAT_H_FALSE=
  11206. fi
  11207. if test $REPLACE_FLOAT_LDBL = 1; then
  11208. gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
  11209. fi
  11210. if test $REPLACE_ITOLD = 1; then
  11211. gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
  11212. fi
  11213. FNMATCH_H=
  11214. gl_fnmatch_required_lowercase=`
  11215. echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
  11216. `
  11217. gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
  11219. $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
  11220. if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
  11221. $as_echo_n "(cached) " >&6
  11222. else
  11223. if test $gl_fnmatch_required = GNU; then
  11224. gl_fnmatch_gnu_start=
  11225. gl_fnmatch_gnu_end=
  11226. else
  11227. gl_fnmatch_gnu_start='#if 0'
  11228. gl_fnmatch_gnu_end='#endif'
  11229. fi
  11230. if test "$cross_compiling" = yes; then :
  11231. eval "$gl_fnmatch_cache_var=\"guessing no\""
  11232. else
  11233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11234. /* end confdefs.h. */
  11235. #include <fnmatch.h>
  11236. static int
  11237. y (char const *pattern, char const *string, int flags)
  11238. {
  11239. return fnmatch (pattern, string, flags) == 0;
  11240. }
  11241. static int
  11242. n (char const *pattern, char const *string, int flags)
  11243. {
  11244. return fnmatch (pattern, string, flags) == FNM_NOMATCH;
  11245. }
  11246. int
  11247. main ()
  11248. {
  11249. char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
  11250. char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
  11251. static char const A_1[] = { 'A' - 1, 0 };
  11252. static char const A01[] = { 'A' + 1, 0 };
  11253. static char const a_1[] = { 'a' - 1, 0 };
  11254. static char const a01[] = { 'a' + 1, 0 };
  11255. static char const bs_1[] = { '\\\\' - 1, 0 };
  11256. static char const bs01[] = { '\\\\' + 1, 0 };
  11257. int result = 0;
  11258. if (!n ("a*", "", 0))
  11259. return 1;
  11260. if (!y ("a*", "abc", 0))
  11261. return 1;
  11262. if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
  11263. return 1;
  11264. if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
  11265. return 2;
  11266. if (!y ("a\\\\bc", "abc", 0))
  11267. return 3;
  11268. if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
  11269. return 3;
  11270. if (!y ("*x", ".x", 0))
  11271. return 4;
  11272. if (!n ("*x", ".x", FNM_PERIOD))
  11273. return 4;
  11274. if (!y (Apat, "\\\\", 0))
  11275. return 5;
  11276. if (!y (Apat, "A", 0))
  11277. return 5;
  11278. if (!y (apat, "\\\\", 0))
  11279. return 5;
  11280. if (!y (apat, "a", 0))
  11281. return 5;
  11282. if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
  11283. return 5;
  11284. if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
  11285. return 5;
  11286. if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
  11287. return 5;
  11288. if (!(y (apat, a01, 0) == ('a' < '\\\\')))
  11289. return 5;
  11290. if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
  11291. return 5;
  11292. if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
  11293. return 5;
  11294. if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
  11295. return 5;
  11296. if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
  11297. return 5;
  11298. $gl_fnmatch_gnu_start
  11299. if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
  11300. result |= 8;
  11301. if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
  11302. result |= 16;
  11303. if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
  11304. result |= 32;
  11305. if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
  11306. result |= 64;
  11307. if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
  11308. result |= 64;
  11309. if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
  11310. result |= 64;
  11311. $gl_fnmatch_gnu_end
  11312. return result;
  11313. ;
  11314. return 0;
  11315. }
  11316. _ACEOF
  11317. if ac_fn_c_try_run "$LINENO"; then :
  11318. eval "$gl_fnmatch_cache_var=yes"
  11319. else
  11320. eval "$gl_fnmatch_cache_var=no"
  11321. fi
  11322. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11323. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11324. fi
  11325. fi
  11326. eval ac_res=\$$gl_fnmatch_cache_var
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11328. $as_echo "$ac_res" >&6; }
  11329. eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
  11330. if test "$gl_fnmatch_result" = yes; then
  11331. rm -f "$gl_source_base/fnmatch.h"
  11332. else
  11333. FNMATCH_H=fnmatch.h
  11334. fi
  11335. if test -n "$FNMATCH_H"; then
  11336. GL_GENERATE_FNMATCH_H_TRUE=
  11337. GL_GENERATE_FNMATCH_H_FALSE='#'
  11338. else
  11339. GL_GENERATE_FNMATCH_H_TRUE='#'
  11340. GL_GENERATE_FNMATCH_H_FALSE=
  11341. fi
  11342. if test -n "$FNMATCH_H"; then
  11343. gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
  11344. cat >>confdefs.h <<_ACEOF
  11345. #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
  11346. _ACEOF
  11347. ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
  11348. "
  11349. if test "x$ac_cv_have_decl_isblank" = x""yes; then :
  11350. ac_have_decl=1
  11351. else
  11352. ac_have_decl=0
  11353. fi
  11354. cat >>confdefs.h <<_ACEOF
  11355. #define HAVE_DECL_ISBLANK $ac_have_decl
  11356. _ACEOF
  11357. fi
  11358. if test -n "$FNMATCH_H"; then
  11359. gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
  11360. cat >>confdefs.h <<_ACEOF
  11361. #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
  11362. _ACEOF
  11363. ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
  11364. "
  11365. if test "x$ac_cv_have_decl_isblank" = x""yes; then :
  11366. ac_have_decl=1
  11367. else
  11368. ac_have_decl=0
  11369. fi
  11370. cat >>confdefs.h <<_ACEOF
  11371. #define HAVE_DECL_ISBLANK $ac_have_decl
  11372. _ACEOF
  11373. fi
  11374. FREXP_LIBM=
  11375. if test $gl_cv_func_frexp_no_libm = no; then
  11376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
  11377. $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
  11378. if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
  11379. $as_echo_n "(cached) " >&6
  11380. else
  11381. save_LIBS="$LIBS"
  11382. LIBS="$LIBS -lm"
  11383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11384. /* end confdefs.h. */
  11385. #include <math.h>
  11386. double x;
  11387. int
  11388. main ()
  11389. {
  11390. int e; return frexp (x, &e) > 0;
  11391. ;
  11392. return 0;
  11393. }
  11394. _ACEOF
  11395. if ac_fn_c_try_link "$LINENO"; then :
  11396. gl_cv_func_frexp_in_libm=yes
  11397. else
  11398. gl_cv_func_frexp_in_libm=no
  11399. fi
  11400. rm -f core conftest.err conftest.$ac_objext \
  11401. conftest$ac_exeext conftest.$ac_ext
  11402. LIBS="$save_LIBS"
  11403. fi
  11404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
  11405. $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
  11406. if test $gl_cv_func_frexp_in_libm = yes; then
  11407. FREXP_LIBM=-lm
  11408. fi
  11409. fi
  11410. if test $gl_cv_func_frexp_no_libm = yes \
  11411. || test $gl_cv_func_frexp_in_libm = yes; then
  11412. save_LIBS="$LIBS"
  11413. LIBS="$LIBS $FREXP_LIBM"
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
  11415. $as_echo_n "checking whether frexp works... " >&6; }
  11416. if test "${gl_cv_func_frexp_works+set}" = set; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. if test "$cross_compiling" = yes; then :
  11420. case "$host_os" in
  11421. netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
  11422. *) gl_cv_func_frexp_works="guessing yes";;
  11423. esac
  11424. else
  11425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11426. /* end confdefs.h. */
  11427. #include <float.h>
  11428. #include <math.h>
  11429. #include <string.h>
  11430. #if HAVE_DECL_ALARM
  11431. # include <signal.h>
  11432. # include <unistd.h>
  11433. #endif
  11434. /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
  11435. ICC 10.0 has a bug when optimizing the expression -zero.
  11436. The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
  11437. to PowerPC on Mac OS X 10.5. */
  11438. #if defined __hpux || defined __sgi || defined __ICC
  11439. static double
  11440. compute_minus_zero (void)
  11441. {
  11442. return -DBL_MIN * DBL_MIN;
  11443. }
  11444. # define minus_zero compute_minus_zero ()
  11445. #else
  11446. double minus_zero = -0.0;
  11447. #endif
  11448. int main()
  11449. {
  11450. int result = 0;
  11451. int i;
  11452. volatile double x;
  11453. double zero = 0.0;
  11454. #if HAVE_DECL_ALARM
  11455. /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
  11456. number. Let the test fail in this case. */
  11457. signal (SIGALRM, SIG_DFL);
  11458. alarm (5);
  11459. #endif
  11460. /* Test on denormalized numbers. */
  11461. for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
  11462. ;
  11463. if (x > 0.0)
  11464. {
  11465. int exp;
  11466. double y = frexp (x, &exp);
  11467. /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
  11468. On NetBSD: y = 0.75. Correct: y = 0.5. */
  11469. if (y != 0.5)
  11470. result |= 1;
  11471. }
  11472. /* Test on infinite numbers. */
  11473. x = 1.0 / zero;
  11474. {
  11475. int exp;
  11476. double y = frexp (x, &exp);
  11477. if (y != x)
  11478. result |= 2;
  11479. }
  11480. /* Test on negative zero. */
  11481. x = minus_zero;
  11482. {
  11483. int exp;
  11484. double y = frexp (x, &exp);
  11485. if (memcmp (&y, &x, sizeof x))
  11486. result |= 4;
  11487. }
  11488. return result;
  11489. }
  11490. _ACEOF
  11491. if ac_fn_c_try_run "$LINENO"; then :
  11492. gl_cv_func_frexp_works=yes
  11493. else
  11494. gl_cv_func_frexp_works=no
  11495. fi
  11496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11497. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11498. fi
  11499. fi
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
  11501. $as_echo "$gl_cv_func_frexp_works" >&6; }
  11502. LIBS="$save_LIBS"
  11503. case "$gl_cv_func_frexp_works" in
  11504. *yes) gl_func_frexp=yes ;;
  11505. *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
  11506. esac
  11507. else
  11508. gl_func_frexp=no
  11509. fi
  11510. if test $gl_func_frexp = yes; then
  11511. $as_echo "#define HAVE_FREXP 1" >>confdefs.h
  11512. fi
  11513. if test $gl_func_frexp != yes; then
  11514. gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
  11515. fi
  11516. GNULIB_FREXP=1
  11517. $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
  11518. ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
  11519. "
  11520. if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
  11521. else
  11522. HAVE_DECL_FREXPL=0
  11523. fi
  11524. FREXPL_LIBM=
  11525. if test $HAVE_DECL_FREXPL = 1; then
  11526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
  11527. $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
  11528. if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
  11529. $as_echo_n "(cached) " >&6
  11530. else
  11531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11532. /* end confdefs.h. */
  11533. #include <math.h>
  11534. long double x;
  11535. int
  11536. main ()
  11537. {
  11538. int e; return frexpl (x, &e) > 0;
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. if ac_fn_c_try_link "$LINENO"; then :
  11544. gl_cv_func_frexpl_no_libm=yes
  11545. else
  11546. gl_cv_func_frexpl_no_libm=no
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext \
  11549. conftest$ac_exeext conftest.$ac_ext
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
  11552. $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
  11553. if test $gl_cv_func_frexpl_no_libm = no; then
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
  11555. $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
  11556. if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
  11557. $as_echo_n "(cached) " >&6
  11558. else
  11559. save_LIBS="$LIBS"
  11560. LIBS="$LIBS -lm"
  11561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11562. /* end confdefs.h. */
  11563. #include <math.h>
  11564. long double x;
  11565. int
  11566. main ()
  11567. {
  11568. int e; return frexpl (x, &e) > 0;
  11569. ;
  11570. return 0;
  11571. }
  11572. _ACEOF
  11573. if ac_fn_c_try_link "$LINENO"; then :
  11574. gl_cv_func_frexpl_in_libm=yes
  11575. else
  11576. gl_cv_func_frexpl_in_libm=no
  11577. fi
  11578. rm -f core conftest.err conftest.$ac_objext \
  11579. conftest$ac_exeext conftest.$ac_ext
  11580. LIBS="$save_LIBS"
  11581. fi
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
  11583. $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
  11584. if test $gl_cv_func_frexpl_in_libm = yes; then
  11585. FREXPL_LIBM=-lm
  11586. fi
  11587. fi
  11588. if test $gl_cv_func_frexpl_no_libm = yes \
  11589. || test $gl_cv_func_frexpl_in_libm = yes; then
  11590. save_LIBS="$LIBS"
  11591. LIBS="$LIBS $FREXPL_LIBM"
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
  11593. $as_echo_n "checking whether frexpl works... " >&6; }
  11594. if test "${gl_cv_func_frexpl_works+set}" = set; then :
  11595. $as_echo_n "(cached) " >&6
  11596. else
  11597. if test "$cross_compiling" = yes; then :
  11598. case "$host_os" in
  11599. aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
  11600. gl_cv_func_frexpl_works="guessing no";;
  11601. *) gl_cv_func_frexpl_works="guessing yes";;
  11602. esac
  11603. else
  11604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11605. /* end confdefs.h. */
  11606. #include <float.h>
  11607. #include <math.h>
  11608. /* Override the values of <float.h>, like done in float.in.h. */
  11609. #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
  11610. # undef LDBL_MIN_EXP
  11611. # define LDBL_MIN_EXP (-16381)
  11612. #endif
  11613. #if defined __i386__ && defined __FreeBSD__
  11614. # undef LDBL_MIN_EXP
  11615. # define LDBL_MIN_EXP (-16381)
  11616. #endif
  11617. #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
  11618. # undef LDBL_MIN_EXP
  11619. # define LDBL_MIN_EXP DBL_MIN_EXP
  11620. #endif
  11621. #if defined __sgi && (LDBL_MANT_DIG >= 106)
  11622. # if defined __GNUC__
  11623. # undef LDBL_MIN_EXP
  11624. # define LDBL_MIN_EXP DBL_MIN_EXP
  11625. # endif
  11626. #endif
  11627. extern
  11628. #ifdef __cplusplus
  11629. "C"
  11630. #endif
  11631. long double frexpl (long double, int *);
  11632. int main()
  11633. {
  11634. int result = 0;
  11635. volatile long double x;
  11636. /* Test on finite numbers that fails on AIX 5.1. */
  11637. x = 16.0L;
  11638. {
  11639. int exp = -9999;
  11640. frexpl (x, &exp);
  11641. if (exp != 5)
  11642. result |= 1;
  11643. }
  11644. /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
  11645. function returns an invalid (incorrectly normalized) value: it returns
  11646. y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
  11647. but the correct result is
  11648. 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
  11649. x = 1.01L;
  11650. {
  11651. int exp = -9999;
  11652. long double y = frexpl (x, &exp);
  11653. if (!(exp == 1 && y == 0.505L))
  11654. result |= 2;
  11655. }
  11656. /* Test on large finite numbers. This fails on BeOS at i = 16322, while
  11657. LDBL_MAX_EXP = 16384.
  11658. In the loop end test, we test x against Infinity, rather than comparing
  11659. i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
  11660. {
  11661. int i;
  11662. for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
  11663. {
  11664. int exp = -9999;
  11665. frexpl (x, &exp);
  11666. if (exp != i)
  11667. {
  11668. result |= 4;
  11669. break;
  11670. }
  11671. }
  11672. }
  11673. /* Test on denormalized numbers. */
  11674. {
  11675. int i;
  11676. for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
  11677. ;
  11678. if (x > 0.0L)
  11679. {
  11680. int exp;
  11681. long double y = frexpl (x, &exp);
  11682. /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
  11683. exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
  11684. if (exp != LDBL_MIN_EXP - 1)
  11685. result |= 8;
  11686. }
  11687. }
  11688. /* Test on infinite numbers. */
  11689. x = 1.0L / 0.0L;
  11690. {
  11691. int exp;
  11692. long double y = frexpl (x, &exp);
  11693. if (y != x)
  11694. result |= 16;
  11695. }
  11696. return result;
  11697. }
  11698. _ACEOF
  11699. if ac_fn_c_try_run "$LINENO"; then :
  11700. gl_cv_func_frexpl_works=yes
  11701. else
  11702. gl_cv_func_frexpl_works=no
  11703. fi
  11704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11705. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11706. fi
  11707. fi
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
  11709. $as_echo "$gl_cv_func_frexpl_works" >&6; }
  11710. LIBS="$save_LIBS"
  11711. case "$gl_cv_func_frexpl_works" in
  11712. *yes) gl_func_frexpl=yes ;;
  11713. *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
  11714. esac
  11715. else
  11716. gl_func_frexpl=no
  11717. fi
  11718. if test $gl_func_frexpl = yes; then
  11719. $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
  11720. fi
  11721. fi
  11722. if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
  11723. if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
  11724. FREXPL_LIBM="$FREXP_LIBM"
  11725. else
  11726. FREXPL_LIBM=
  11727. fi
  11728. fi
  11729. if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
  11730. gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
  11731. fi
  11732. GNULIB_FREXPL=1
  11733. $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
  11734. gl_gettimeofday_timezone=void
  11735. if test $ac_cv_func_gettimeofday != yes; then
  11736. HAVE_GETTIMEOFDAY=0
  11737. else
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
  11739. $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
  11740. if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
  11741. $as_echo_n "(cached) " >&6
  11742. else
  11743. if test "$cross_compiling" = yes; then :
  11744. # When cross-compiling:
  11745. case "$host_os" in
  11746. # Guess all is fine on glibc systems.
  11747. *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
  11748. # If we don't know, assume the worst.
  11749. *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
  11750. esac
  11751. else
  11752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11753. /* end confdefs.h. */
  11754. #include <string.h>
  11755. #include <sys/time.h>
  11756. #include <time.h>
  11757. #include <stdlib.h>
  11758. int
  11759. main ()
  11760. {
  11761. time_t t = 0;
  11762. struct tm *lt;
  11763. struct tm saved_lt;
  11764. struct timeval tv;
  11765. lt = localtime (&t);
  11766. saved_lt = *lt;
  11767. gettimeofday (&tv, NULL);
  11768. return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
  11769. ;
  11770. return 0;
  11771. }
  11772. _ACEOF
  11773. if ac_fn_c_try_run "$LINENO"; then :
  11774. gl_cv_func_gettimeofday_clobber=no
  11775. else
  11776. gl_cv_func_gettimeofday_clobber=yes
  11777. fi
  11778. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11779. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11780. fi
  11781. fi
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
  11783. $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
  11784. case "$gl_cv_func_gettimeofday_clobber" in
  11785. *yes)
  11786. REPLACE_GETTIMEOFDAY=1
  11787. REPLACE_GMTIME=1
  11788. REPLACE_LOCALTIME=1
  11789. $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
  11790. ;;
  11791. esac
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
  11793. $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
  11794. if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
  11795. $as_echo_n "(cached) " >&6
  11796. else
  11797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11798. /* end confdefs.h. */
  11799. #include <sys/time.h>
  11800. struct timeval c;
  11801. int gettimeofday (struct timeval *restrict, void *restrict);
  11802. int
  11803. main ()
  11804. {
  11805. /* glibc uses struct timezone * rather than the POSIX void *
  11806. if _GNU_SOURCE is defined. However, since the only portable
  11807. use of gettimeofday uses NULL as the second parameter, and
  11808. since the glibc definition is actually more typesafe, it is
  11809. not worth wrapping this to get a compliant signature. */
  11810. int (*f) (struct timeval *restrict, void *restrict)
  11811. = gettimeofday;
  11812. int x = f (&c, 0);
  11813. return !(x | c.tv_sec | c.tv_usec);
  11814. ;
  11815. return 0;
  11816. }
  11817. _ACEOF
  11818. if ac_fn_c_try_compile "$LINENO"; then :
  11819. gl_cv_func_gettimeofday_posix_signature=yes
  11820. else
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. #include <sys/time.h>
  11824. int gettimeofday (struct timeval *restrict, struct timezone *restrict);
  11825. int
  11826. main ()
  11827. {
  11828. ;
  11829. return 0;
  11830. }
  11831. _ACEOF
  11832. if ac_fn_c_try_compile "$LINENO"; then :
  11833. gl_cv_func_gettimeofday_posix_signature=almost
  11834. else
  11835. gl_cv_func_gettimeofday_posix_signature=no
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11840. fi
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
  11842. $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
  11843. if test $gl_cv_func_gettimeofday_posix_signature = almost; then
  11844. gl_gettimeofday_timezone='struct timezone'
  11845. elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
  11846. REPLACE_GETTIMEOFDAY=1
  11847. fi
  11848. if test $REPLACE_STRUCT_TIMEVAL = 1; then
  11849. REPLACE_GETTIMEOFDAY=1
  11850. fi
  11851. fi
  11852. cat >>confdefs.h <<_ACEOF
  11853. #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
  11854. _ACEOF
  11855. if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
  11856. gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
  11857. for ac_header in sys/timeb.h
  11858. do :
  11859. ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
  11860. if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
  11861. cat >>confdefs.h <<_ACEOF
  11862. #define HAVE_SYS_TIMEB_H 1
  11863. _ACEOF
  11864. fi
  11865. done
  11866. for ac_func in _ftime
  11867. do :
  11868. ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
  11869. if test "x$ac_cv_func__ftime" = x""yes; then :
  11870. cat >>confdefs.h <<_ACEOF
  11871. #define HAVE__FTIME 1
  11872. _ACEOF
  11873. fi
  11874. done
  11875. fi
  11876. GNULIB_GETTIMEOFDAY=1
  11877. $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
  11878. PRIPTR_PREFIX=
  11879. if test -n "$STDINT_H"; then
  11880. PRIPTR_PREFIX='"l"'
  11881. else
  11882. for glpfx in '' l ll I64; do
  11883. case $glpfx in
  11884. '') gltype1='int';;
  11885. l) gltype1='long int';;
  11886. ll) gltype1='long long int';;
  11887. I64) gltype1='__int64';;
  11888. esac
  11889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11890. /* end confdefs.h. */
  11891. #include <stdint.h>
  11892. extern intptr_t foo;
  11893. extern $gltype1 foo;
  11894. int
  11895. main ()
  11896. {
  11897. ;
  11898. return 0;
  11899. }
  11900. _ACEOF
  11901. if ac_fn_c_try_compile "$LINENO"; then :
  11902. PRIPTR_PREFIX='"'$glpfx'"'
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11905. test -n "$PRIPTR_PREFIX" && break
  11906. done
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
  11909. $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
  11910. if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
  11911. $as_echo_n "(cached) " >&6
  11912. else
  11913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11914. /* end confdefs.h. */
  11915. /* Work also in C++ mode. */
  11916. #define __STDC_LIMIT_MACROS 1
  11917. /* Work if build is not clean. */
  11918. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  11919. #include <limits.h>
  11920. #if HAVE_STDINT_H
  11921. #include <stdint.h>
  11922. #endif
  11923. #if defined INT32_MAX && defined INTMAX_MAX
  11924. #define CONDITION (INT32_MAX < INTMAX_MAX)
  11925. #elif HAVE_LONG_LONG_INT
  11926. #define CONDITION (sizeof (int) < sizeof (long long int))
  11927. #else
  11928. #define CONDITION 0
  11929. #endif
  11930. int test[CONDITION ? 1 : -1];
  11931. int
  11932. main ()
  11933. {
  11934. ;
  11935. return 0;
  11936. }
  11937. _ACEOF
  11938. if ac_fn_c_try_compile "$LINENO"; then :
  11939. gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
  11940. else
  11941. gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
  11942. fi
  11943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11944. fi
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
  11946. $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
  11947. if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
  11948. INT32_MAX_LT_INTMAX_MAX=1;
  11949. else
  11950. INT32_MAX_LT_INTMAX_MAX=0;
  11951. fi
  11952. if test $APPLE_UNIVERSAL_BUILD = 0; then
  11953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
  11954. $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
  11955. if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
  11956. $as_echo_n "(cached) " >&6
  11957. else
  11958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11959. /* end confdefs.h. */
  11960. /* Work also in C++ mode. */
  11961. #define __STDC_LIMIT_MACROS 1
  11962. /* Work if build is not clean. */
  11963. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  11964. #include <limits.h>
  11965. #if HAVE_STDINT_H
  11966. #include <stdint.h>
  11967. #endif
  11968. #if defined INT64_MAX
  11969. #define CONDITION (INT64_MAX == LONG_MAX)
  11970. #elif HAVE_LONG_LONG_INT
  11971. #define CONDITION (sizeof (long long int) == sizeof (long int))
  11972. #else
  11973. #define CONDITION 0
  11974. #endif
  11975. int test[CONDITION ? 1 : -1];
  11976. int
  11977. main ()
  11978. {
  11979. ;
  11980. return 0;
  11981. }
  11982. _ACEOF
  11983. if ac_fn_c_try_compile "$LINENO"; then :
  11984. gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
  11985. else
  11986. gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
  11987. fi
  11988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11989. fi
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
  11991. $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
  11992. if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
  11993. INT64_MAX_EQ_LONG_MAX=1;
  11994. else
  11995. INT64_MAX_EQ_LONG_MAX=0;
  11996. fi
  11997. else
  11998. INT64_MAX_EQ_LONG_MAX=-1
  11999. fi
  12000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
  12001. $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
  12002. if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
  12003. $as_echo_n "(cached) " >&6
  12004. else
  12005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12006. /* end confdefs.h. */
  12007. /* Work also in C++ mode. */
  12008. #define __STDC_LIMIT_MACROS 1
  12009. /* Work if build is not clean. */
  12010. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  12011. #include <limits.h>
  12012. #if HAVE_STDINT_H
  12013. #include <stdint.h>
  12014. #endif
  12015. #if defined UINT32_MAX && defined UINTMAX_MAX
  12016. #define CONDITION (UINT32_MAX < UINTMAX_MAX)
  12017. #elif HAVE_LONG_LONG_INT
  12018. #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
  12019. #else
  12020. #define CONDITION 0
  12021. #endif
  12022. int test[CONDITION ? 1 : -1];
  12023. int
  12024. main ()
  12025. {
  12026. ;
  12027. return 0;
  12028. }
  12029. _ACEOF
  12030. if ac_fn_c_try_compile "$LINENO"; then :
  12031. gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
  12032. else
  12033. gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
  12034. fi
  12035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12036. fi
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
  12038. $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
  12039. if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
  12040. UINT32_MAX_LT_UINTMAX_MAX=1;
  12041. else
  12042. UINT32_MAX_LT_UINTMAX_MAX=0;
  12043. fi
  12044. if test $APPLE_UNIVERSAL_BUILD = 0; then
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
  12046. $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
  12047. if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
  12048. $as_echo_n "(cached) " >&6
  12049. else
  12050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12051. /* end confdefs.h. */
  12052. /* Work also in C++ mode. */
  12053. #define __STDC_LIMIT_MACROS 1
  12054. /* Work if build is not clean. */
  12055. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  12056. #include <limits.h>
  12057. #if HAVE_STDINT_H
  12058. #include <stdint.h>
  12059. #endif
  12060. #if defined UINT64_MAX
  12061. #define CONDITION (UINT64_MAX == ULONG_MAX)
  12062. #elif HAVE_LONG_LONG_INT
  12063. #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
  12064. #else
  12065. #define CONDITION 0
  12066. #endif
  12067. int test[CONDITION ? 1 : -1];
  12068. int
  12069. main ()
  12070. {
  12071. ;
  12072. return 0;
  12073. }
  12074. _ACEOF
  12075. if ac_fn_c_try_compile "$LINENO"; then :
  12076. gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
  12077. else
  12078. gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
  12079. fi
  12080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12081. fi
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
  12083. $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
  12084. if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
  12085. UINT64_MAX_EQ_ULONG_MAX=1;
  12086. else
  12087. UINT64_MAX_EQ_ULONG_MAX=0;
  12088. fi
  12089. else
  12090. UINT64_MAX_EQ_ULONG_MAX=-1
  12091. fi
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
  12093. $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
  12094. if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
  12095. $as_echo_n "(cached) " >&6
  12096. else
  12097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12098. /* end confdefs.h. */
  12099. #include <math.h>
  12100. #if __GNUC__ >= 4
  12101. # undef isnand
  12102. # define isnand(x) __builtin_isnan ((double)(x))
  12103. #else
  12104. # undef isnand
  12105. # define isnand(x) isnan ((double)(x))
  12106. #endif
  12107. double x;
  12108. int
  12109. main ()
  12110. {
  12111. return isnand (x);
  12112. ;
  12113. return 0;
  12114. }
  12115. _ACEOF
  12116. if ac_fn_c_try_link "$LINENO"; then :
  12117. gl_cv_func_isnand_no_libm=yes
  12118. else
  12119. gl_cv_func_isnand_no_libm=no
  12120. fi
  12121. rm -f core conftest.err conftest.$ac_objext \
  12122. conftest$ac_exeext conftest.$ac_ext
  12123. fi
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
  12125. $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
  12126. gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
  12127. if test $gl_cv_func_isnand_no_libm = yes; then
  12128. $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
  12129. fi
  12130. if test $gl_func_isnand_no_libm != yes; then
  12131. gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
  12132. fi
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
  12134. $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
  12135. if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
  12136. $as_echo_n "(cached) " >&6
  12137. else
  12138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12139. /* end confdefs.h. */
  12140. #include <math.h>
  12141. #if __GNUC__ >= 4
  12142. # undef isnanl
  12143. # define isnanl(x) __builtin_isnanl ((long double)(x))
  12144. #elif defined isnan
  12145. # undef isnanl
  12146. # define isnanl(x) isnan ((long double)(x))
  12147. #endif
  12148. long double x;
  12149. int
  12150. main ()
  12151. {
  12152. return isnanl (x);
  12153. ;
  12154. return 0;
  12155. }
  12156. _ACEOF
  12157. if ac_fn_c_try_link "$LINENO"; then :
  12158. gl_cv_func_isnanl_no_libm=yes
  12159. else
  12160. gl_cv_func_isnanl_no_libm=no
  12161. fi
  12162. rm -f core conftest.err conftest.$ac_objext \
  12163. conftest$ac_exeext conftest.$ac_ext
  12164. fi
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
  12166. $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
  12167. gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
  12168. if test $gl_func_isnanl_no_libm = yes; then
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
  12170. $as_echo_n "checking whether isnanl works... " >&6; }
  12171. if test "${gl_cv_func_isnanl_works+set}" = set; then :
  12172. $as_echo_n "(cached) " >&6
  12173. else
  12174. if test "$cross_compiling" = yes; then :
  12175. gl_cv_func_isnanl_works="guessing yes"
  12176. else
  12177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12178. /* end confdefs.h. */
  12179. #include <float.h>
  12180. #include <limits.h>
  12181. #include <math.h>
  12182. #if __GNUC__ >= 4
  12183. # undef isnanl
  12184. # define isnanl(x) __builtin_isnanl ((long double)(x))
  12185. #elif defined isnan
  12186. # undef isnanl
  12187. # define isnanl(x) isnan ((long double)(x))
  12188. #endif
  12189. #define NWORDS \
  12190. ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
  12191. typedef union { unsigned int word[NWORDS]; long double value; }
  12192. memory_long_double;
  12193. /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
  12194. runtime type conversion. */
  12195. #ifdef __sgi
  12196. static long double NaNl ()
  12197. {
  12198. double zero = 0.0;
  12199. return zero / zero;
  12200. }
  12201. #else
  12202. # define NaNl() (0.0L / 0.0L)
  12203. #endif
  12204. int main ()
  12205. {
  12206. int result = 0;
  12207. if (!isnanl (NaNl ()))
  12208. result |= 1;
  12209. {
  12210. memory_long_double m;
  12211. unsigned int i;
  12212. /* The isnanl function should be immune against changes in the sign bit and
  12213. in the mantissa bits. The xor operation twiddles a bit that can only be
  12214. a sign bit or a mantissa bit (since the exponent never extends to
  12215. bit 31). */
  12216. m.value = NaNl ();
  12217. m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
  12218. for (i = 0; i < NWORDS; i++)
  12219. m.word[i] |= 1;
  12220. if (!isnanl (m.value))
  12221. result |= 1;
  12222. }
  12223. #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
  12224. /* Representation of an 80-bit 'long double' as an initializer for a sequence
  12225. of 'unsigned int' words. */
  12226. # ifdef WORDS_BIGENDIAN
  12227. # define LDBL80_WORDS(exponent,manthi,mantlo) \
  12228. { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
  12229. ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
  12230. (unsigned int) (mantlo) << 16 \
  12231. }
  12232. # else
  12233. # define LDBL80_WORDS(exponent,manthi,mantlo) \
  12234. { mantlo, manthi, exponent }
  12235. # endif
  12236. { /* Quiet NaN. */
  12237. static memory_long_double x =
  12238. { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
  12239. if (!isnanl (x.value))
  12240. result |= 2;
  12241. }
  12242. {
  12243. /* Signalling NaN. */
  12244. static memory_long_double x =
  12245. { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
  12246. if (!isnanl (x.value))
  12247. result |= 2;
  12248. }
  12249. /* isnanl should return something even for noncanonical values. */
  12250. { /* Pseudo-NaN. */
  12251. static memory_long_double x =
  12252. { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
  12253. if (isnanl (x.value) && !isnanl (x.value))
  12254. result |= 4;
  12255. }
  12256. { /* Pseudo-Infinity. */
  12257. static memory_long_double x =
  12258. { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
  12259. if (isnanl (x.value) && !isnanl (x.value))
  12260. result |= 8;
  12261. }
  12262. { /* Pseudo-Zero. */
  12263. static memory_long_double x =
  12264. { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
  12265. if (isnanl (x.value) && !isnanl (x.value))
  12266. result |= 16;
  12267. }
  12268. { /* Unnormalized number. */
  12269. static memory_long_double x =
  12270. { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
  12271. if (isnanl (x.value) && !isnanl (x.value))
  12272. result |= 32;
  12273. }
  12274. { /* Pseudo-Denormal. */
  12275. static memory_long_double x =
  12276. { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
  12277. if (isnanl (x.value) && !isnanl (x.value))
  12278. result |= 64;
  12279. }
  12280. #endif
  12281. return result;
  12282. }
  12283. _ACEOF
  12284. if ac_fn_c_try_run "$LINENO"; then :
  12285. gl_cv_func_isnanl_works=yes
  12286. else
  12287. gl_cv_func_isnanl_works=no
  12288. fi
  12289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12290. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12291. fi
  12292. fi
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
  12294. $as_echo "$gl_cv_func_isnanl_works" >&6; }
  12295. case "$gl_cv_func_isnanl_works" in
  12296. *yes) ;;
  12297. *) gl_func_isnanl_no_libm=no ;;
  12298. esac
  12299. fi
  12300. if test $gl_func_isnanl_no_libm = yes; then
  12301. $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
  12302. fi
  12303. if test $gl_func_isnanl_no_libm != yes; then
  12304. gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
  12306. $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
  12307. if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
  12308. $as_echo_n "(cached) " >&6
  12309. else
  12310. if test "$cross_compiling" = yes; then :
  12311. gl_cv_cc_long_double_expbit0="unknown"
  12312. else
  12313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12314. /* end confdefs.h. */
  12315. #include <float.h>
  12316. #include <stddef.h>
  12317. #include <stdio.h>
  12318. #include <string.h>
  12319. #define NWORDS \
  12320. ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
  12321. typedef union { long double value; unsigned int word[NWORDS]; }
  12322. memory_long_double;
  12323. static unsigned int ored_words[NWORDS];
  12324. static unsigned int anded_words[NWORDS];
  12325. static void add_to_ored_words (long double x)
  12326. {
  12327. memory_long_double m;
  12328. size_t i;
  12329. /* Clear it first, in case
  12330. sizeof (long double) < sizeof (memory_long_double). */
  12331. memset (&m, 0, sizeof (memory_long_double));
  12332. m.value = x;
  12333. for (i = 0; i < NWORDS; i++)
  12334. {
  12335. ored_words[i] |= m.word[i];
  12336. anded_words[i] &= m.word[i];
  12337. }
  12338. }
  12339. int main ()
  12340. {
  12341. size_t j;
  12342. FILE *fp = fopen ("conftest.out", "w");
  12343. if (fp == NULL)
  12344. return 1;
  12345. for (j = 0; j < NWORDS; j++)
  12346. anded_words[j] = ~ (unsigned int) 0;
  12347. add_to_ored_words (0.25L);
  12348. add_to_ored_words (0.5L);
  12349. add_to_ored_words (1.0L);
  12350. add_to_ored_words (2.0L);
  12351. add_to_ored_words (4.0L);
  12352. /* Remove bits that are common (e.g. if representation of the first mantissa
  12353. bit is explicit). */
  12354. for (j = 0; j < NWORDS; j++)
  12355. ored_words[j] &= ~anded_words[j];
  12356. /* Now find the nonzero word. */
  12357. for (j = 0; j < NWORDS; j++)
  12358. if (ored_words[j] != 0)
  12359. break;
  12360. if (j < NWORDS)
  12361. {
  12362. size_t i;
  12363. for (i = j + 1; i < NWORDS; i++)
  12364. if (ored_words[i] != 0)
  12365. {
  12366. fprintf (fp, "unknown");
  12367. return (fclose (fp) != 0);
  12368. }
  12369. for (i = 0; ; i++)
  12370. if ((ored_words[j] >> i) & 1)
  12371. {
  12372. fprintf (fp, "word %d bit %d", (int) j, (int) i);
  12373. return (fclose (fp) != 0);
  12374. }
  12375. }
  12376. fprintf (fp, "unknown");
  12377. return (fclose (fp) != 0);
  12378. }
  12379. _ACEOF
  12380. if ac_fn_c_try_run "$LINENO"; then :
  12381. gl_cv_cc_long_double_expbit0=`cat conftest.out`
  12382. else
  12383. gl_cv_cc_long_double_expbit0="unknown"
  12384. fi
  12385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12387. fi
  12388. rm -f conftest.out
  12389. fi
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
  12391. $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
  12392. case "$gl_cv_cc_long_double_expbit0" in
  12393. word*bit*)
  12394. word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
  12395. bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
  12396. cat >>confdefs.h <<_ACEOF
  12397. #define LDBL_EXPBIT0_WORD $word
  12398. _ACEOF
  12399. cat >>confdefs.h <<_ACEOF
  12400. #define LDBL_EXPBIT0_BIT $bit
  12401. _ACEOF
  12402. ;;
  12403. esac
  12404. fi
  12405. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
  12406. if test $ac_cv_func_lstat = yes; then
  12407. case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
  12408. *no)
  12409. REPLACE_LSTAT=1
  12410. ;;
  12411. esac
  12412. else
  12413. HAVE_LSTAT=0
  12414. fi
  12415. if test $REPLACE_LSTAT = 1; then
  12416. gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
  12417. :
  12418. fi
  12419. GNULIB_LSTAT=1
  12420. $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
  12421. if test $gl_cv_func_malloc_posix = yes; then
  12422. $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
  12423. else
  12424. REPLACE_MALLOC=1
  12425. fi
  12426. if test $REPLACE_MALLOC = 1; then
  12427. gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
  12428. fi
  12429. GNULIB_MALLOC_POSIX=1
  12430. $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
  12431. if test $gl_cv_have_include_next = yes; then
  12432. gl_cv_next_math_h='<'math.h'>'
  12433. else
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
  12435. $as_echo_n "checking absolute name of <math.h>... " >&6; }
  12436. if test "${gl_cv_next_math_h+set}" = set; then :
  12437. $as_echo_n "(cached) " >&6
  12438. else
  12439. if test $ac_cv_header_math_h = yes; then
  12440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12441. /* end confdefs.h. */
  12442. #include <math.h>
  12443. _ACEOF
  12444. case "$host_os" in
  12445. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12446. *) gl_absname_cpp="$ac_cpp" ;;
  12447. esac
  12448. case "$host_os" in
  12449. mingw*)
  12450. gl_dirsep_regex='[/\\]'
  12451. ;;
  12452. *)
  12453. gl_dirsep_regex='\/'
  12454. ;;
  12455. esac
  12456. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  12457. gl_header_literal_regex=`echo 'math.h' \
  12458. | sed -e "$gl_make_literal_regex_sed"`
  12459. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  12460. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  12461. s|^/[^/]|//&|
  12462. p
  12463. q
  12464. }'
  12465. gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12466. sed -n "$gl_absolute_header_sed"`
  12467. gl_header=$gl_cv_absolute_math_h
  12468. gl_cv_next_math_h='"'$gl_header'"'
  12469. else
  12470. gl_cv_next_math_h='<'math.h'>'
  12471. fi
  12472. fi
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
  12474. $as_echo "$gl_cv_next_math_h" >&6; }
  12475. fi
  12476. NEXT_MATH_H=$gl_cv_next_math_h
  12477. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12478. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12479. gl_next_as_first_directive='<'math.h'>'
  12480. else
  12481. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12482. gl_next_as_first_directive=$gl_cv_next_math_h
  12483. fi
  12484. NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
  12486. $as_echo_n "checking whether NAN macro works... " >&6; }
  12487. if test "${gl_cv_header_math_nan_works+set}" = set; then :
  12488. $as_echo_n "(cached) " >&6
  12489. else
  12490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12491. /* end confdefs.h. */
  12492. #include <math.h>
  12493. int
  12494. main ()
  12495. {
  12496. /* Solaris 10 has a broken definition of NAN. Other platforms
  12497. fail to provide NAN, or provide it only in C99 mode; this
  12498. test only needs to fail when NAN is provided but wrong. */
  12499. float f = 1.0f;
  12500. #ifdef NAN
  12501. f = NAN;
  12502. #endif
  12503. return f == 0;
  12504. ;
  12505. return 0;
  12506. }
  12507. _ACEOF
  12508. if ac_fn_c_try_compile "$LINENO"; then :
  12509. gl_cv_header_math_nan_works=yes
  12510. else
  12511. gl_cv_header_math_nan_works=no
  12512. fi
  12513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12514. fi
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
  12516. $as_echo "$gl_cv_header_math_nan_works" >&6; }
  12517. if test $gl_cv_header_math_nan_works = no; then
  12518. REPLACE_NAN=1
  12519. fi
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
  12521. $as_echo_n "checking whether HUGE_VAL works... " >&6; }
  12522. if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
  12523. $as_echo_n "(cached) " >&6
  12524. else
  12525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12526. /* end confdefs.h. */
  12527. #include <math.h>
  12528. int
  12529. main ()
  12530. {
  12531. /* Solaris 10 has a broken definition of HUGE_VAL. */
  12532. double d = HUGE_VAL;
  12533. return d == 0;
  12534. ;
  12535. return 0;
  12536. }
  12537. _ACEOF
  12538. if ac_fn_c_try_compile "$LINENO"; then :
  12539. gl_cv_header_math_huge_val_works=yes
  12540. else
  12541. gl_cv_header_math_huge_val_works=no
  12542. fi
  12543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12544. fi
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
  12546. $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
  12547. if test $gl_cv_header_math_huge_val_works = no; then
  12548. REPLACE_HUGE_VAL=1
  12549. fi
  12550. for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
  12551. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  12553. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  12554. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  12555. $as_echo_n "(cached) " >&6
  12556. else
  12557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12558. /* end confdefs.h. */
  12559. #include <math.h>
  12560. int
  12561. main ()
  12562. {
  12563. #undef $gl_func
  12564. (void) $gl_func;
  12565. ;
  12566. return 0;
  12567. }
  12568. _ACEOF
  12569. if ac_fn_c_try_compile "$LINENO"; then :
  12570. eval "$as_gl_Symbol=yes"
  12571. else
  12572. eval "$as_gl_Symbol=no"
  12573. fi
  12574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12575. fi
  12576. eval ac_res=\$$as_gl_Symbol
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12578. $as_echo "$ac_res" >&6; }
  12579. eval as_val=\$$as_gl_Symbol
  12580. if test "x$as_val" = x""yes; then :
  12581. cat >>confdefs.h <<_ACEOF
  12582. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  12583. _ACEOF
  12584. eval ac_cv_have_decl_$gl_func=yes
  12585. fi
  12586. done
  12587. if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
  12589. $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
  12590. if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. case "$host_os" in
  12594. # Guess no on AIX and OSF/1.
  12595. aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
  12596. # Guess yes otherwise.
  12597. *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
  12598. esac
  12599. if test $LOCALE_JA != none; then
  12600. if test "$cross_compiling" = yes; then :
  12601. :
  12602. else
  12603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12604. /* end confdefs.h. */
  12605. #include <locale.h>
  12606. #include <string.h>
  12607. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12608. <wchar.h>.
  12609. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12610. included before <wchar.h>. */
  12611. #include <stddef.h>
  12612. #include <stdio.h>
  12613. #include <time.h>
  12614. #include <wchar.h>
  12615. int main ()
  12616. {
  12617. if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
  12618. {
  12619. const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
  12620. mbstate_t state;
  12621. wchar_t wc;
  12622. memset (&state, '\0', sizeof (mbstate_t));
  12623. if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
  12624. if (mbsinit (&state))
  12625. return 1;
  12626. }
  12627. return 0;
  12628. }
  12629. _ACEOF
  12630. if ac_fn_c_try_run "$LINENO"; then :
  12631. gl_cv_func_mbrtowc_incomplete_state=yes
  12632. else
  12633. gl_cv_func_mbrtowc_incomplete_state=no
  12634. fi
  12635. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12636. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12637. fi
  12638. fi
  12639. fi
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
  12641. $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
  12643. $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
  12644. if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
  12645. $as_echo_n "(cached) " >&6
  12646. else
  12647. case "$host_os" in
  12648. # Guess no on Solaris 8.
  12649. solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
  12650. # Guess yes otherwise.
  12651. *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
  12652. esac
  12653. if test $LOCALE_ZH_CN != none; then
  12654. if test "$cross_compiling" = yes; then :
  12655. :
  12656. else
  12657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12658. /* end confdefs.h. */
  12659. #include <locale.h>
  12660. #include <stdlib.h>
  12661. #include <string.h>
  12662. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12663. <wchar.h>.
  12664. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12665. included before <wchar.h>. */
  12666. #include <stddef.h>
  12667. #include <stdio.h>
  12668. #include <time.h>
  12669. #include <wchar.h>
  12670. int main ()
  12671. {
  12672. /* This fails on Solaris 8:
  12673. mbrtowc returns 2, and sets wc to 0x00F0.
  12674. mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
  12675. if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
  12676. {
  12677. char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
  12678. mbstate_t state;
  12679. wchar_t wc;
  12680. memset (&state, '\0', sizeof (mbstate_t));
  12681. if (mbrtowc (&wc, input + 3, 6, &state) != 4
  12682. && mbtowc (&wc, input + 3, 6) == 4)
  12683. return 1;
  12684. }
  12685. return 0;
  12686. }
  12687. _ACEOF
  12688. if ac_fn_c_try_run "$LINENO"; then :
  12689. gl_cv_func_mbrtowc_sanitycheck=yes
  12690. else
  12691. gl_cv_func_mbrtowc_sanitycheck=no
  12692. fi
  12693. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12694. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12695. fi
  12696. fi
  12697. fi
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
  12699. $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
  12700. REPLACE_MBSTATE_T=0
  12701. case "$gl_cv_func_mbrtowc_incomplete_state" in
  12702. *yes) ;;
  12703. *) REPLACE_MBSTATE_T=1 ;;
  12704. esac
  12705. case "$gl_cv_func_mbrtowc_sanitycheck" in
  12706. *yes) ;;
  12707. *) REPLACE_MBSTATE_T=1 ;;
  12708. esac
  12709. else
  12710. REPLACE_MBSTATE_T=1
  12711. fi
  12712. if test $ac_cv_func_mbrtowc = no; then
  12713. HAVE_MBRTOWC=0
  12714. ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
  12715. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12716. <wchar.h>.
  12717. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12718. included before <wchar.h>. */
  12719. #include <stddef.h>
  12720. #include <stdio.h>
  12721. #include <time.h>
  12722. #include <wchar.h>
  12723. "
  12724. if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
  12725. ac_have_decl=1
  12726. else
  12727. ac_have_decl=0
  12728. fi
  12729. cat >>confdefs.h <<_ACEOF
  12730. #define HAVE_DECL_MBRTOWC $ac_have_decl
  12731. _ACEOF
  12732. if test $ac_cv_have_decl_mbrtowc = yes; then
  12733. REPLACE_MBRTOWC=1
  12734. fi
  12735. else
  12736. if test $REPLACE_MBSTATE_T = 1; then
  12737. REPLACE_MBRTOWC=1
  12738. else
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
  12740. $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
  12741. if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
  12742. $as_echo_n "(cached) " >&6
  12743. else
  12744. case "$host_os" in
  12745. # Guess no on Solaris.
  12746. solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
  12747. # Guess yes otherwise.
  12748. *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
  12749. esac
  12750. if test $LOCALE_FR_UTF8 != none; then
  12751. if test "$cross_compiling" = yes; then :
  12752. :
  12753. else
  12754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12755. /* end confdefs.h. */
  12756. #include <locale.h>
  12757. #include <stdlib.h>
  12758. #include <string.h>
  12759. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12760. <wchar.h>.
  12761. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12762. included before <wchar.h>. */
  12763. #include <stddef.h>
  12764. #include <stdio.h>
  12765. #include <time.h>
  12766. #include <wchar.h>
  12767. int main ()
  12768. {
  12769. int result = 0;
  12770. if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
  12771. {
  12772. char input[] = "\303\237er";
  12773. mbstate_t state;
  12774. wchar_t wc;
  12775. size_t ret;
  12776. memset (&state, '\0', sizeof (mbstate_t));
  12777. wc = (wchar_t) 0xBADFACE;
  12778. ret = mbrtowc (&wc, input, 5, &state);
  12779. if (ret != 2)
  12780. result |= 1;
  12781. if (!mbsinit (&state))
  12782. result |= 2;
  12783. memset (&state, '\0', sizeof (mbstate_t));
  12784. ret = mbrtowc (NULL, input, 5, &state);
  12785. if (ret != 2) /* Solaris 7 fails here: ret is -1. */
  12786. result |= 4;
  12787. if (!mbsinit (&state))
  12788. result |= 8;
  12789. }
  12790. return result;
  12791. }
  12792. _ACEOF
  12793. if ac_fn_c_try_run "$LINENO"; then :
  12794. gl_cv_func_mbrtowc_null_arg1=yes
  12795. else
  12796. gl_cv_func_mbrtowc_null_arg1=no
  12797. fi
  12798. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12799. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12800. fi
  12801. fi
  12802. fi
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
  12804. $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
  12806. $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
  12807. if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
  12808. $as_echo_n "(cached) " >&6
  12809. else
  12810. case "$host_os" in
  12811. # Guess no on OSF/1.
  12812. osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
  12813. # Guess yes otherwise.
  12814. *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
  12815. esac
  12816. if test $LOCALE_FR_UTF8 != none; then
  12817. if test "$cross_compiling" = yes; then :
  12818. :
  12819. else
  12820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12821. /* end confdefs.h. */
  12822. #include <locale.h>
  12823. #include <string.h>
  12824. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12825. <wchar.h>.
  12826. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12827. included before <wchar.h>. */
  12828. #include <stddef.h>
  12829. #include <stdio.h>
  12830. #include <time.h>
  12831. #include <wchar.h>
  12832. int main ()
  12833. {
  12834. if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
  12835. {
  12836. mbstate_t state;
  12837. wchar_t wc;
  12838. int ret;
  12839. memset (&state, '\0', sizeof (mbstate_t));
  12840. wc = (wchar_t) 0xBADFACE;
  12841. mbrtowc (&wc, NULL, 5, &state);
  12842. /* Check that wc was not modified. */
  12843. if (wc != (wchar_t) 0xBADFACE)
  12844. return 1;
  12845. }
  12846. return 0;
  12847. }
  12848. _ACEOF
  12849. if ac_fn_c_try_run "$LINENO"; then :
  12850. gl_cv_func_mbrtowc_null_arg2=yes
  12851. else
  12852. gl_cv_func_mbrtowc_null_arg2=no
  12853. fi
  12854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12855. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12856. fi
  12857. fi
  12858. fi
  12859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
  12860. $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
  12862. $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
  12863. if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
  12864. $as_echo_n "(cached) " >&6
  12865. else
  12866. case "$host_os" in
  12867. # Guess no on HP-UX, Solaris, native Windows.
  12868. hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
  12869. # Guess yes otherwise.
  12870. *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
  12871. esac
  12872. if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
  12873. || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
  12874. if test "$cross_compiling" = yes; then :
  12875. :
  12876. else
  12877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12878. /* end confdefs.h. */
  12879. #include <locale.h>
  12880. #include <string.h>
  12881. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12882. <wchar.h>.
  12883. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12884. included before <wchar.h>. */
  12885. #include <stddef.h>
  12886. #include <stdio.h>
  12887. #include <time.h>
  12888. #include <wchar.h>
  12889. int main ()
  12890. {
  12891. int result = 0;
  12892. int found_some_locale = 0;
  12893. /* This fails on Solaris. */
  12894. if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
  12895. {
  12896. char input[] = "B\303\274\303\237er"; /* "Büßer" */
  12897. mbstate_t state;
  12898. wchar_t wc;
  12899. memset (&state, '\0', sizeof (mbstate_t));
  12900. if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
  12901. {
  12902. input[1] = '\0';
  12903. if (mbrtowc (&wc, input + 2, 5, &state) != 1)
  12904. result |= 1;
  12905. }
  12906. found_some_locale = 1;
  12907. }
  12908. /* This fails on HP-UX 11.11. */
  12909. if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
  12910. {
  12911. char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
  12912. mbstate_t state;
  12913. wchar_t wc;
  12914. memset (&state, '\0', sizeof (mbstate_t));
  12915. if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
  12916. {
  12917. input[1] = '\0';
  12918. if (mbrtowc (&wc, input + 2, 5, &state) != 2)
  12919. result |= 2;
  12920. }
  12921. found_some_locale = 1;
  12922. }
  12923. /* This fails on native Windows. */
  12924. if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
  12925. {
  12926. char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
  12927. mbstate_t state;
  12928. wchar_t wc;
  12929. memset (&state, '\0', sizeof (mbstate_t));
  12930. if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
  12931. {
  12932. input[3] = '\0';
  12933. if (mbrtowc (&wc, input + 4, 4, &state) != 1)
  12934. result |= 4;
  12935. }
  12936. found_some_locale = 1;
  12937. }
  12938. if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
  12939. {
  12940. char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
  12941. mbstate_t state;
  12942. wchar_t wc;
  12943. memset (&state, '\0', sizeof (mbstate_t));
  12944. if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
  12945. {
  12946. input[3] = '\0';
  12947. if (mbrtowc (&wc, input + 4, 4, &state) != 1)
  12948. result |= 8;
  12949. }
  12950. found_some_locale = 1;
  12951. }
  12952. if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
  12953. {
  12954. char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
  12955. mbstate_t state;
  12956. wchar_t wc;
  12957. memset (&state, '\0', sizeof (mbstate_t));
  12958. if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
  12959. {
  12960. input[3] = '\0';
  12961. if (mbrtowc (&wc, input + 4, 4, &state) != 1)
  12962. result |= 16;
  12963. }
  12964. found_some_locale = 1;
  12965. }
  12966. return (found_some_locale ? result : 77);
  12967. }
  12968. _ACEOF
  12969. if ac_fn_c_try_run "$LINENO"; then :
  12970. gl_cv_func_mbrtowc_retval=yes
  12971. else
  12972. if test $? != 77; then
  12973. gl_cv_func_mbrtowc_retval=no
  12974. fi
  12975. fi
  12976. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12977. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12978. fi
  12979. fi
  12980. fi
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
  12982. $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
  12984. $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
  12985. if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
  12986. $as_echo_n "(cached) " >&6
  12987. else
  12988. case "$host_os" in
  12989. # Guess no on Solaris 8 and 9.
  12990. solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
  12991. # Guess yes otherwise.
  12992. *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
  12993. esac
  12994. if test $LOCALE_ZH_CN != none; then
  12995. if test "$cross_compiling" = yes; then :
  12996. :
  12997. else
  12998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12999. /* end confdefs.h. */
  13000. #include <locale.h>
  13001. #include <string.h>
  13002. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13003. <wchar.h>.
  13004. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13005. included before <wchar.h>. */
  13006. #include <stddef.h>
  13007. #include <stdio.h>
  13008. #include <time.h>
  13009. #include <wchar.h>
  13010. int main ()
  13011. {
  13012. /* This fails on Solaris 8 and 9. */
  13013. if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
  13014. {
  13015. mbstate_t state;
  13016. wchar_t wc;
  13017. memset (&state, '\0', sizeof (mbstate_t));
  13018. if (mbrtowc (&wc, "", 1, &state) != 0)
  13019. return 1;
  13020. }
  13021. return 0;
  13022. }
  13023. _ACEOF
  13024. if ac_fn_c_try_run "$LINENO"; then :
  13025. gl_cv_func_mbrtowc_nul_retval=yes
  13026. else
  13027. gl_cv_func_mbrtowc_nul_retval=no
  13028. fi
  13029. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13030. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13031. fi
  13032. fi
  13033. fi
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
  13035. $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
  13037. $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
  13038. if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
  13039. $as_echo_n "(cached) " >&6
  13040. else
  13041. case "$host_os" in
  13042. # Guess no on AIX and glibc systems.
  13043. aix* | *-gnu*)
  13044. gl_cv_func_mbrtowc_empty_input="guessing no" ;;
  13045. *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
  13046. esac
  13047. if test "$cross_compiling" = yes; then :
  13048. :
  13049. else
  13050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13051. /* end confdefs.h. */
  13052. #include <wchar.h>
  13053. static wchar_t wc;
  13054. static mbstate_t mbs;
  13055. int
  13056. main (void)
  13057. {
  13058. return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
  13059. }
  13060. _ACEOF
  13061. if ac_fn_c_try_run "$LINENO"; then :
  13062. gl_cv_func_mbrtowc_empty_input=no
  13063. else
  13064. gl_cv_func_mbrtowc_empty_input=yes
  13065. fi
  13066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13068. fi
  13069. fi
  13070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
  13071. $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
  13072. case "$gl_cv_func_mbrtowc_null_arg1" in
  13073. *yes) ;;
  13074. *)
  13075. $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
  13076. REPLACE_MBRTOWC=1
  13077. ;;
  13078. esac
  13079. case "$gl_cv_func_mbrtowc_null_arg2" in
  13080. *yes) ;;
  13081. *)
  13082. $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
  13083. REPLACE_MBRTOWC=1
  13084. ;;
  13085. esac
  13086. case "$gl_cv_func_mbrtowc_retval" in
  13087. *yes) ;;
  13088. *)
  13089. $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
  13090. REPLACE_MBRTOWC=1
  13091. ;;
  13092. esac
  13093. case "$gl_cv_func_mbrtowc_nul_retval" in
  13094. *yes) ;;
  13095. *)
  13096. $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
  13097. REPLACE_MBRTOWC=1
  13098. ;;
  13099. esac
  13100. case "$gl_cv_func_mbrtowc_empty_input" in
  13101. *yes) ;;
  13102. *)
  13103. $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
  13104. REPLACE_MBRTOWC=1
  13105. ;;
  13106. esac
  13107. fi
  13108. fi
  13109. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  13110. gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
  13111. :
  13112. fi
  13113. GNULIB_MBRTOWC=1
  13114. $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
  13115. if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
  13116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
  13117. $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
  13118. if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
  13119. $as_echo_n "(cached) " >&6
  13120. else
  13121. case "$host_os" in
  13122. # Guess no on AIX and OSF/1.
  13123. aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
  13124. # Guess yes otherwise.
  13125. *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
  13126. esac
  13127. if test $LOCALE_JA != none; then
  13128. if test "$cross_compiling" = yes; then :
  13129. :
  13130. else
  13131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13132. /* end confdefs.h. */
  13133. #include <locale.h>
  13134. #include <string.h>
  13135. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13136. <wchar.h>.
  13137. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13138. included before <wchar.h>. */
  13139. #include <stddef.h>
  13140. #include <stdio.h>
  13141. #include <time.h>
  13142. #include <wchar.h>
  13143. int main ()
  13144. {
  13145. if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
  13146. {
  13147. const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
  13148. mbstate_t state;
  13149. wchar_t wc;
  13150. memset (&state, '\0', sizeof (mbstate_t));
  13151. if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
  13152. if (mbsinit (&state))
  13153. return 1;
  13154. }
  13155. return 0;
  13156. }
  13157. _ACEOF
  13158. if ac_fn_c_try_run "$LINENO"; then :
  13159. gl_cv_func_mbrtowc_incomplete_state=yes
  13160. else
  13161. gl_cv_func_mbrtowc_incomplete_state=no
  13162. fi
  13163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13164. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13165. fi
  13166. fi
  13167. fi
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
  13169. $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
  13171. $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
  13172. if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
  13173. $as_echo_n "(cached) " >&6
  13174. else
  13175. case "$host_os" in
  13176. # Guess no on Solaris 8.
  13177. solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
  13178. # Guess yes otherwise.
  13179. *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
  13180. esac
  13181. if test $LOCALE_ZH_CN != none; then
  13182. if test "$cross_compiling" = yes; then :
  13183. :
  13184. else
  13185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13186. /* end confdefs.h. */
  13187. #include <locale.h>
  13188. #include <stdlib.h>
  13189. #include <string.h>
  13190. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13191. <wchar.h>.
  13192. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13193. included before <wchar.h>. */
  13194. #include <stddef.h>
  13195. #include <stdio.h>
  13196. #include <time.h>
  13197. #include <wchar.h>
  13198. int main ()
  13199. {
  13200. /* This fails on Solaris 8:
  13201. mbrtowc returns 2, and sets wc to 0x00F0.
  13202. mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
  13203. if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
  13204. {
  13205. char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
  13206. mbstate_t state;
  13207. wchar_t wc;
  13208. memset (&state, '\0', sizeof (mbstate_t));
  13209. if (mbrtowc (&wc, input + 3, 6, &state) != 4
  13210. && mbtowc (&wc, input + 3, 6) == 4)
  13211. return 1;
  13212. }
  13213. return 0;
  13214. }
  13215. _ACEOF
  13216. if ac_fn_c_try_run "$LINENO"; then :
  13217. gl_cv_func_mbrtowc_sanitycheck=yes
  13218. else
  13219. gl_cv_func_mbrtowc_sanitycheck=no
  13220. fi
  13221. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13222. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13223. fi
  13224. fi
  13225. fi
  13226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
  13227. $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
  13228. REPLACE_MBSTATE_T=0
  13229. case "$gl_cv_func_mbrtowc_incomplete_state" in
  13230. *yes) ;;
  13231. *) REPLACE_MBSTATE_T=1 ;;
  13232. esac
  13233. case "$gl_cv_func_mbrtowc_sanitycheck" in
  13234. *yes) ;;
  13235. *) REPLACE_MBSTATE_T=1 ;;
  13236. esac
  13237. else
  13238. REPLACE_MBSTATE_T=1
  13239. fi
  13240. if test $ac_cv_func_mbsinit = no; then
  13241. HAVE_MBSINIT=0
  13242. ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
  13243. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13244. <wchar.h>.
  13245. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13246. included before <wchar.h>. */
  13247. #include <stddef.h>
  13248. #include <stdio.h>
  13249. #include <time.h>
  13250. #include <wchar.h>
  13251. "
  13252. if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
  13253. ac_have_decl=1
  13254. else
  13255. ac_have_decl=0
  13256. fi
  13257. cat >>confdefs.h <<_ACEOF
  13258. #define HAVE_DECL_MBSINIT $ac_have_decl
  13259. _ACEOF
  13260. if test $ac_cv_have_decl_mbsinit = yes; then
  13261. REPLACE_MBSINIT=1
  13262. fi
  13263. else
  13264. if test $REPLACE_MBSTATE_T = 1; then
  13265. REPLACE_MBSINIT=1
  13266. else
  13267. case "$host_os" in
  13268. mingw*) REPLACE_MBSINIT=1 ;;
  13269. esac
  13270. fi
  13271. fi
  13272. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  13273. gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
  13274. :
  13275. fi
  13276. GNULIB_MBSINIT=1
  13277. $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
  13278. if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
  13279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
  13280. $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
  13281. if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
  13282. $as_echo_n "(cached) " >&6
  13283. else
  13284. case "$host_os" in
  13285. # Guess no on AIX and OSF/1.
  13286. aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
  13287. # Guess yes otherwise.
  13288. *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
  13289. esac
  13290. if test $LOCALE_JA != none; then
  13291. if test "$cross_compiling" = yes; then :
  13292. :
  13293. else
  13294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13295. /* end confdefs.h. */
  13296. #include <locale.h>
  13297. #include <string.h>
  13298. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13299. <wchar.h>.
  13300. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13301. included before <wchar.h>. */
  13302. #include <stddef.h>
  13303. #include <stdio.h>
  13304. #include <time.h>
  13305. #include <wchar.h>
  13306. int main ()
  13307. {
  13308. if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
  13309. {
  13310. const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
  13311. mbstate_t state;
  13312. wchar_t wc;
  13313. memset (&state, '\0', sizeof (mbstate_t));
  13314. if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
  13315. if (mbsinit (&state))
  13316. return 1;
  13317. }
  13318. return 0;
  13319. }
  13320. _ACEOF
  13321. if ac_fn_c_try_run "$LINENO"; then :
  13322. gl_cv_func_mbrtowc_incomplete_state=yes
  13323. else
  13324. gl_cv_func_mbrtowc_incomplete_state=no
  13325. fi
  13326. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13327. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13328. fi
  13329. fi
  13330. fi
  13331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
  13332. $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
  13333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
  13334. $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
  13335. if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
  13336. $as_echo_n "(cached) " >&6
  13337. else
  13338. case "$host_os" in
  13339. # Guess no on Solaris 8.
  13340. solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
  13341. # Guess yes otherwise.
  13342. *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
  13343. esac
  13344. if test $LOCALE_ZH_CN != none; then
  13345. if test "$cross_compiling" = yes; then :
  13346. :
  13347. else
  13348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13349. /* end confdefs.h. */
  13350. #include <locale.h>
  13351. #include <stdlib.h>
  13352. #include <string.h>
  13353. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13354. <wchar.h>.
  13355. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13356. included before <wchar.h>. */
  13357. #include <stddef.h>
  13358. #include <stdio.h>
  13359. #include <time.h>
  13360. #include <wchar.h>
  13361. int main ()
  13362. {
  13363. /* This fails on Solaris 8:
  13364. mbrtowc returns 2, and sets wc to 0x00F0.
  13365. mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
  13366. if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
  13367. {
  13368. char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
  13369. mbstate_t state;
  13370. wchar_t wc;
  13371. memset (&state, '\0', sizeof (mbstate_t));
  13372. if (mbrtowc (&wc, input + 3, 6, &state) != 4
  13373. && mbtowc (&wc, input + 3, 6) == 4)
  13374. return 1;
  13375. }
  13376. return 0;
  13377. }
  13378. _ACEOF
  13379. if ac_fn_c_try_run "$LINENO"; then :
  13380. gl_cv_func_mbrtowc_sanitycheck=yes
  13381. else
  13382. gl_cv_func_mbrtowc_sanitycheck=no
  13383. fi
  13384. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13385. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13386. fi
  13387. fi
  13388. fi
  13389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
  13390. $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
  13391. REPLACE_MBSTATE_T=0
  13392. case "$gl_cv_func_mbrtowc_incomplete_state" in
  13393. *yes) ;;
  13394. *) REPLACE_MBSTATE_T=1 ;;
  13395. esac
  13396. case "$gl_cv_func_mbrtowc_sanitycheck" in
  13397. *yes) ;;
  13398. *) REPLACE_MBSTATE_T=1 ;;
  13399. esac
  13400. else
  13401. REPLACE_MBSTATE_T=1
  13402. fi
  13403. if test $ac_cv_func_mbsrtowcs = no; then
  13404. HAVE_MBSRTOWCS=0
  13405. ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
  13406. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13407. <wchar.h>.
  13408. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13409. included before <wchar.h>. */
  13410. #include <stddef.h>
  13411. #include <stdio.h>
  13412. #include <time.h>
  13413. #include <wchar.h>
  13414. "
  13415. if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
  13416. ac_have_decl=1
  13417. else
  13418. ac_have_decl=0
  13419. fi
  13420. cat >>confdefs.h <<_ACEOF
  13421. #define HAVE_DECL_MBSRTOWCS $ac_have_decl
  13422. _ACEOF
  13423. if test $ac_cv_have_decl_mbsrtowcs = yes; then
  13424. REPLACE_MBSRTOWCS=1
  13425. fi
  13426. else
  13427. if test $REPLACE_MBSTATE_T = 1; then
  13428. REPLACE_MBSRTOWCS=1
  13429. else
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
  13431. $as_echo_n "checking whether mbsrtowcs works... " >&6; }
  13432. if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
  13433. $as_echo_n "(cached) " >&6
  13434. else
  13435. case "$host_os" in
  13436. # Guess no on HP-UX, Solaris, mingw.
  13437. hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
  13438. # Guess yes otherwise.
  13439. *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
  13440. esac
  13441. if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
  13442. if test "$cross_compiling" = yes; then :
  13443. :
  13444. else
  13445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13446. /* end confdefs.h. */
  13447. #include <locale.h>
  13448. #include <string.h>
  13449. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13450. <wchar.h>.
  13451. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  13452. included before <wchar.h>. */
  13453. #include <stddef.h>
  13454. #include <stdio.h>
  13455. #include <time.h>
  13456. #include <wchar.h>
  13457. int main ()
  13458. {
  13459. int result = 0;
  13460. /* Test whether the function supports a NULL destination argument.
  13461. This fails on native Windows. */
  13462. if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
  13463. {
  13464. const char input[] = "\337er";
  13465. const char *src = input;
  13466. mbstate_t state;
  13467. memset (&state, '\0', sizeof (mbstate_t));
  13468. if (mbsrtowcs (NULL, &src, 1, &state) != 3
  13469. || src != input)
  13470. result |= 1;
  13471. }
  13472. /* Test whether the function works when started with a conversion state
  13473. in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
  13474. if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
  13475. {
  13476. const char input[] = "B\303\274\303\237er";
  13477. mbstate_t state;
  13478. memset (&state, '\0', sizeof (mbstate_t));
  13479. if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
  13480. if (!mbsinit (&state))
  13481. {
  13482. const char *src = input + 2;
  13483. if (mbsrtowcs (NULL, &src, 10, &state) != 4)
  13484. result |= 2;
  13485. }
  13486. }
  13487. if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
  13488. {
  13489. const char input[] = "<\306\374\313\334\270\354>";
  13490. mbstate_t state;
  13491. memset (&state, '\0', sizeof (mbstate_t));
  13492. if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
  13493. if (!mbsinit (&state))
  13494. {
  13495. const char *src = input + 4;
  13496. if (mbsrtowcs (NULL, &src, 10, &state) != 3)
  13497. result |= 4;
  13498. }
  13499. }
  13500. if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
  13501. {
  13502. const char input[] = "B\250\271\201\060\211\070er";
  13503. mbstate_t state;
  13504. memset (&state, '\0', sizeof (mbstate_t));
  13505. if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
  13506. if (!mbsinit (&state))
  13507. {
  13508. const char *src = input + 2;
  13509. if (mbsrtowcs (NULL, &src, 10, &state) != 4)
  13510. result |= 8;
  13511. }
  13512. }
  13513. return result;
  13514. }
  13515. _ACEOF
  13516. if ac_fn_c_try_run "$LINENO"; then :
  13517. gl_cv_func_mbsrtowcs_works=yes
  13518. else
  13519. gl_cv_func_mbsrtowcs_works=no
  13520. fi
  13521. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13522. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13523. fi
  13524. fi
  13525. fi
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
  13527. $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
  13528. case "$gl_cv_func_mbsrtowcs_works" in
  13529. *yes) ;;
  13530. *) REPLACE_MBSRTOWCS=1 ;;
  13531. esac
  13532. fi
  13533. fi
  13534. if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
  13535. gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
  13536. gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
  13537. :
  13538. fi
  13539. GNULIB_MBSRTOWCS=1
  13540. $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
  13541. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  13542. gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
  13543. for ac_header in bp-sym.h
  13544. do :
  13545. ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  13546. if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
  13547. cat >>confdefs.h <<_ACEOF
  13548. #define HAVE_BP_SYM_H 1
  13549. _ACEOF
  13550. fi
  13551. done
  13552. fi
  13553. GNULIB_MEMCHR=1
  13554. $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  13555. if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
  13557. $as_echo_n "checking whether memmem works in linear time... " >&6; }
  13558. if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
  13559. $as_echo_n "(cached) " >&6
  13560. else
  13561. if test "$cross_compiling" = yes; then :
  13562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13563. /* end confdefs.h. */
  13564. #include <features.h>
  13565. #ifdef __GNU_LIBRARY__
  13566. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
  13567. && !defined __UCLIBC__
  13568. Lucky user
  13569. #endif
  13570. #endif
  13571. #ifdef __CYGWIN__
  13572. #include <cygwin/version.h>
  13573. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
  13574. Lucky user
  13575. #endif
  13576. #endif
  13577. _ACEOF
  13578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13579. $EGREP "Lucky user" >/dev/null 2>&1; then :
  13580. gl_cv_func_memmem_works_fast="guessing yes"
  13581. else
  13582. gl_cv_func_memmem_works_fast="guessing no"
  13583. fi
  13584. rm -f conftest*
  13585. else
  13586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13587. /* end confdefs.h. */
  13588. #include <signal.h> /* for signal */
  13589. #include <string.h> /* for memmem */
  13590. #include <stdlib.h> /* for malloc */
  13591. #include <unistd.h> /* for alarm */
  13592. static void quit (int sig) { exit (sig + 128); }
  13593. int
  13594. main ()
  13595. {
  13596. int result = 0;
  13597. size_t m = 1000000;
  13598. char *haystack = (char *) malloc (2 * m + 1);
  13599. char *needle = (char *) malloc (m + 1);
  13600. /* Failure to compile this test due to missing alarm is okay,
  13601. since all such platforms (mingw) also lack memmem. */
  13602. signal (SIGALRM, quit);
  13603. alarm (5);
  13604. /* Check for quadratic performance. */
  13605. if (haystack && needle)
  13606. {
  13607. memset (haystack, 'A', 2 * m);
  13608. haystack[2 * m] = 'B';
  13609. memset (needle, 'A', m);
  13610. needle[m] = 'B';
  13611. if (!memmem (haystack, 2 * m + 1, needle, m + 1))
  13612. result |= 1;
  13613. }
  13614. return result;
  13615. ;
  13616. return 0;
  13617. }
  13618. _ACEOF
  13619. if ac_fn_c_try_run "$LINENO"; then :
  13620. gl_cv_func_memmem_works_fast=yes
  13621. else
  13622. gl_cv_func_memmem_works_fast=no
  13623. fi
  13624. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13625. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13626. fi
  13627. fi
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
  13629. $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
  13630. case "$gl_cv_func_memmem_works_fast" in
  13631. *yes) ;;
  13632. *)
  13633. REPLACE_MEMMEM=1
  13634. ;;
  13635. esac
  13636. fi
  13637. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  13638. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  13639. fi
  13640. for ac_func in memmem
  13641. do :
  13642. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  13643. if test "x$ac_cv_func_memmem" = x""yes; then :
  13644. cat >>confdefs.h <<_ACEOF
  13645. #define HAVE_MEMMEM 1
  13646. _ACEOF
  13647. fi
  13648. done
  13649. if test $ac_cv_func_memmem = yes; then
  13650. HAVE_MEMMEM=1
  13651. else
  13652. HAVE_MEMMEM=0
  13653. fi
  13654. if test $ac_cv_have_decl_memmem = no; then
  13655. HAVE_DECL_MEMMEM=0
  13656. else
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  13658. $as_echo_n "checking whether memmem works... " >&6; }
  13659. if test "${gl_cv_func_memmem_works_always+set}" = set; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. if test "$cross_compiling" = yes; then :
  13663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13664. /* end confdefs.h. */
  13665. #ifdef __GNU_LIBRARY__
  13666. #include <features.h>
  13667. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  13668. || __GLIBC_MINOR__ > 12)) \
  13669. || (__GLIBC__ > 2)) \
  13670. || defined __UCLIBC__
  13671. Lucky user
  13672. #endif
  13673. #elif defined __CYGWIN__
  13674. #include <cygwin/version.h>
  13675. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  13676. Lucky user
  13677. #endif
  13678. #else
  13679. Lucky user
  13680. #endif
  13681. _ACEOF
  13682. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13683. $EGREP "Lucky user" >/dev/null 2>&1; then :
  13684. gl_cv_func_memmem_works_always="guessing yes"
  13685. else
  13686. gl_cv_func_memmem_works_always="guessing no"
  13687. fi
  13688. rm -f conftest*
  13689. else
  13690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13691. /* end confdefs.h. */
  13692. #include <string.h> /* for memmem */
  13693. #define P "_EF_BF_BD"
  13694. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  13695. #define NEEDLE P P P P P
  13696. int
  13697. main ()
  13698. {
  13699. int result = 0;
  13700. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  13701. result |= 1;
  13702. /* Check for empty needle behavior. */
  13703. {
  13704. const char *haystack = "AAA";
  13705. if (memmem (haystack, 3, NULL, 0) != haystack)
  13706. result |= 2;
  13707. }
  13708. return result;
  13709. ;
  13710. return 0;
  13711. }
  13712. _ACEOF
  13713. if ac_fn_c_try_run "$LINENO"; then :
  13714. gl_cv_func_memmem_works_always=yes
  13715. else
  13716. gl_cv_func_memmem_works_always=no
  13717. fi
  13718. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13719. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13720. fi
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  13723. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  13724. case "$gl_cv_func_memmem_works_always" in
  13725. *yes) ;;
  13726. *)
  13727. REPLACE_MEMMEM=1
  13728. ;;
  13729. esac
  13730. fi
  13731. :
  13732. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  13733. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  13734. fi
  13735. GNULIB_MEMMEM=1
  13736. $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
  13737. if test $ac_cv_func_readlink = no; then
  13738. HAVE_READLINK=0
  13739. else
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
  13741. $as_echo_n "checking whether readlink signature is correct... " >&6; }
  13742. if test "${gl_cv_decl_readlink_works+set}" = set; then :
  13743. $as_echo_n "(cached) " >&6
  13744. else
  13745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13746. /* end confdefs.h. */
  13747. #include <unistd.h>
  13748. /* Cause compilation failure if original declaration has wrong type. */
  13749. ssize_t readlink (const char *, char *, size_t);
  13750. int
  13751. main ()
  13752. {
  13753. ;
  13754. return 0;
  13755. }
  13756. _ACEOF
  13757. if ac_fn_c_try_compile "$LINENO"; then :
  13758. gl_cv_decl_readlink_works=yes
  13759. else
  13760. gl_cv_decl_readlink_works=no
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13763. fi
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
  13765. $as_echo "$gl_cv_decl_readlink_works" >&6; }
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
  13767. $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
  13768. if test "${gl_cv_func_readlink_works+set}" = set; then :
  13769. $as_echo_n "(cached) " >&6
  13770. else
  13771. # We have readlink, so assume ln -s works.
  13772. ln -s conftest.no-such conftest.link
  13773. ln -s conftest.link conftest.lnk2
  13774. if test "$cross_compiling" = yes; then :
  13775. case "$host_os" in
  13776. # Guess yes on glibc systems.
  13777. *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
  13778. # If we don't know, assume the worst.
  13779. *) gl_cv_func_readlink_works="guessing no" ;;
  13780. esac
  13781. else
  13782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13783. /* end confdefs.h. */
  13784. #include <unistd.h>
  13785. int
  13786. main ()
  13787. {
  13788. char buf[20];
  13789. return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
  13790. ;
  13791. return 0;
  13792. }
  13793. _ACEOF
  13794. if ac_fn_c_try_run "$LINENO"; then :
  13795. gl_cv_func_readlink_works=yes
  13796. else
  13797. gl_cv_func_readlink_works=no
  13798. fi
  13799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13800. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13801. fi
  13802. rm -f conftest.link conftest.lnk2
  13803. fi
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
  13805. $as_echo "$gl_cv_func_readlink_works" >&6; }
  13806. case "$gl_cv_func_readlink_works" in
  13807. *yes)
  13808. if test "$gl_cv_decl_readlink_works" != yes; then
  13809. REPLACE_READLINK=1
  13810. fi
  13811. ;;
  13812. *)
  13813. $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
  13814. REPLACE_READLINK=1
  13815. ;;
  13816. esac
  13817. fi
  13818. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  13819. gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
  13820. :
  13821. fi
  13822. GNULIB_READLINK=1
  13823. $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
  13825. $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
  13826. if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
  13827. $as_echo_n "(cached) " >&6
  13828. else
  13829. rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
  13830. touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
  13831. as_fn_error "cannot create temporary files" "$LINENO" 5
  13832. # Assume that if we have lstat, we can also check symlinks.
  13833. if test $ac_cv_func_lstat = yes; then
  13834. ln -s conftest.f conftest.lnk
  13835. fi
  13836. if test "$cross_compiling" = yes; then :
  13837. case "$host_os" in
  13838. # Guess yes on glibc systems.
  13839. *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
  13840. # If we don't know, assume the worst.
  13841. *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
  13842. esac
  13843. else
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. # include <stdio.h>
  13847. # include <stdlib.h>
  13848. int
  13849. main ()
  13850. {
  13851. int result = 0;
  13852. if (rename ("conftest.f1", "conftest.f2/") == 0)
  13853. result |= 1;
  13854. if (rename ("conftest.d1", "conftest.d2/") != 0)
  13855. result |= 2;
  13856. #if HAVE_LSTAT
  13857. if (rename ("conftest.f", "conftest.lnk/") == 0)
  13858. result |= 4;
  13859. #endif
  13860. return result;
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_run "$LINENO"; then :
  13866. gl_cv_func_rename_slash_dst_works=yes
  13867. else
  13868. gl_cv_func_rename_slash_dst_works=no
  13869. fi
  13870. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13871. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13872. fi
  13873. rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
  13876. $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
  13877. case "$gl_cv_func_rename_slash_dst_works" in
  13878. *yes) ;;
  13879. *)
  13880. REPLACE_RENAME=1
  13881. $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
  13882. ;;
  13883. esac
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
  13885. $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
  13886. if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
  13887. $as_echo_n "(cached) " >&6
  13888. else
  13889. rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
  13890. touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
  13891. as_fn_error "cannot create temporary files" "$LINENO" 5
  13892. # Assume that if we have lstat, we can also check symlinks.
  13893. if test $ac_cv_func_lstat = yes; then
  13894. ln -s conftest.f conftest.lnk
  13895. fi
  13896. if test "$cross_compiling" = yes; then :
  13897. case "$host_os" in
  13898. # Guess yes on glibc systems.
  13899. *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
  13900. # If we don't know, assume the worst.
  13901. *) gl_cv_func_rename_slash_src_works="guessing no" ;;
  13902. esac
  13903. else
  13904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13905. /* end confdefs.h. */
  13906. # include <stdio.h>
  13907. # include <stdlib.h>
  13908. int
  13909. main ()
  13910. {
  13911. int result = 0;
  13912. if (rename ("conftest.f1/", "conftest.d3") == 0)
  13913. result |= 1;
  13914. if (rename ("conftest.d1/", "conftest.d2") != 0)
  13915. result |= 2;
  13916. #if HAVE_LSTAT
  13917. if (rename ("conftest.lnk/", "conftest.f") == 0)
  13918. result |= 4;
  13919. #endif
  13920. return result;
  13921. ;
  13922. return 0;
  13923. }
  13924. _ACEOF
  13925. if ac_fn_c_try_run "$LINENO"; then :
  13926. gl_cv_func_rename_slash_src_works=yes
  13927. else
  13928. gl_cv_func_rename_slash_src_works=no
  13929. fi
  13930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13931. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13932. fi
  13933. rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
  13936. $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
  13937. case "$gl_cv_func_rename_slash_src_works" in
  13938. *yes) ;;
  13939. *)
  13940. REPLACE_RENAME=1
  13941. $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
  13942. ;;
  13943. esac
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
  13945. $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
  13946. if test "${gl_cv_func_rename_link_works+set}" = set; then :
  13947. $as_echo_n "(cached) " >&6
  13948. else
  13949. if test $ac_cv_func_link = yes; then
  13950. rm -rf conftest.f conftest.f1
  13951. if touch conftest.f && ln conftest.f conftest.f1 &&
  13952. set x `ls -i conftest.f conftest.f1` && test "" = ""; then
  13953. if test "$cross_compiling" = yes; then :
  13954. case "$host_os" in
  13955. # Guess yes on glibc systems.
  13956. *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
  13957. # If we don't know, assume the worst.
  13958. *) gl_cv_func_rename_link_works="guessing no" ;;
  13959. esac
  13960. else
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. # include <stdio.h>
  13964. # include <stdlib.h>
  13965. # include <unistd.h>
  13966. int
  13967. main ()
  13968. {
  13969. int result = 0;
  13970. if (rename ("conftest.f", "conftest.f1"))
  13971. result |= 1;
  13972. if (unlink ("conftest.f1"))
  13973. result |= 2;
  13974. if (rename ("conftest.f", "conftest.f"))
  13975. result |= 4;
  13976. if (rename ("conftest.f1", "conftest.f1") == 0)
  13977. result |= 8;
  13978. return result;
  13979. ;
  13980. return 0;
  13981. }
  13982. _ACEOF
  13983. if ac_fn_c_try_run "$LINENO"; then :
  13984. gl_cv_func_rename_link_works=yes
  13985. else
  13986. gl_cv_func_rename_link_works=no
  13987. fi
  13988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13989. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13990. fi
  13991. else
  13992. gl_cv_func_rename_link_works="guessing no"
  13993. fi
  13994. rm -rf conftest.f conftest.f1
  13995. else
  13996. gl_cv_func_rename_link_works=yes
  13997. fi
  13998. fi
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
  14000. $as_echo "$gl_cv_func_rename_link_works" >&6; }
  14001. case "$gl_cv_func_rename_link_works" in
  14002. *yes) ;;
  14003. *)
  14004. REPLACE_RENAME=1
  14005. $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
  14006. ;;
  14007. esac
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
  14009. $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
  14010. if test "${gl_cv_func_rename_dest_works+set}" = set; then :
  14011. $as_echo_n "(cached) " >&6
  14012. else
  14013. rm -rf conftest.f conftest.d1 conftest.d2
  14014. touch conftest.f && mkdir conftest.d1 conftest.d2 ||
  14015. as_fn_error "cannot create temporary files" "$LINENO" 5
  14016. if test "$cross_compiling" = yes; then :
  14017. case "$host_os" in
  14018. # Guess yes on glibc systems.
  14019. *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
  14020. # If we don't know, assume the worst.
  14021. *) gl_cv_func_rename_dest_works="guessing no" ;;
  14022. esac
  14023. else
  14024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14025. /* end confdefs.h. */
  14026. # include <stdio.h>
  14027. # include <stdlib.h>
  14028. int
  14029. main ()
  14030. {
  14031. int result = 0;
  14032. if (rename ("conftest.d1", "conftest.d2") != 0)
  14033. result |= 1;
  14034. if (rename ("conftest.d2", "conftest.f") == 0)
  14035. result |= 2;
  14036. return result;
  14037. ;
  14038. return 0;
  14039. }
  14040. _ACEOF
  14041. if ac_fn_c_try_run "$LINENO"; then :
  14042. gl_cv_func_rename_dest_works=yes
  14043. else
  14044. gl_cv_func_rename_dest_works=no
  14045. fi
  14046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14048. fi
  14049. rm -rf conftest.f conftest.d1 conftest.d2
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
  14052. $as_echo "$gl_cv_func_rename_dest_works" >&6; }
  14053. case "$gl_cv_func_rename_dest_works" in
  14054. *yes) ;;
  14055. *)
  14056. REPLACE_RENAME=1
  14057. $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
  14058. ;;
  14059. esac
  14060. if test $REPLACE_RENAME = 1; then
  14061. gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
  14062. fi
  14063. GNULIB_RENAME=1
  14064. $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
  14066. $as_echo_n "checking whether rmdir works... " >&6; }
  14067. if test "${gl_cv_func_rmdir_works+set}" = set; then :
  14068. $as_echo_n "(cached) " >&6
  14069. else
  14070. mkdir conftest.dir
  14071. touch conftest.file
  14072. if test "$cross_compiling" = yes; then :
  14073. case "$host_os" in
  14074. # Guess yes on glibc systems.
  14075. *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
  14076. # If we don't know, assume the worst.
  14077. *) gl_cv_func_rmdir_works="guessing no" ;;
  14078. esac
  14079. else
  14080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14081. /* end confdefs.h. */
  14082. #include <stdio.h>
  14083. #include <errno.h>
  14084. #if HAVE_UNISTD_H
  14085. # include <unistd.h>
  14086. #else /* on Windows with MSVC */
  14087. # include <direct.h>
  14088. #endif
  14089. int
  14090. main ()
  14091. {
  14092. int result = 0;
  14093. if (!rmdir ("conftest.file/"))
  14094. result |= 1;
  14095. else if (errno != ENOTDIR)
  14096. result |= 2;
  14097. if (!rmdir ("conftest.dir/./"))
  14098. result |= 4;
  14099. return result;
  14100. ;
  14101. return 0;
  14102. }
  14103. _ACEOF
  14104. if ac_fn_c_try_run "$LINENO"; then :
  14105. gl_cv_func_rmdir_works=yes
  14106. else
  14107. gl_cv_func_rmdir_works=no
  14108. fi
  14109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14110. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14111. fi
  14112. rm -rf conftest.dir conftest.file
  14113. fi
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
  14115. $as_echo "$gl_cv_func_rmdir_works" >&6; }
  14116. case "$gl_cv_func_rmdir_works" in
  14117. *yes) ;;
  14118. *)
  14119. REPLACE_RMDIR=1
  14120. ;;
  14121. esac
  14122. if test $REPLACE_RMDIR = 1; then
  14123. gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
  14124. fi
  14125. GNULIB_RMDIR=1
  14126. $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
  14127. if test $gl_cv_have_include_next = yes; then
  14128. gl_cv_next_signal_h='<'signal.h'>'
  14129. else
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  14131. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  14132. if test "${gl_cv_next_signal_h+set}" = set; then :
  14133. $as_echo_n "(cached) " >&6
  14134. else
  14135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14136. /* end confdefs.h. */
  14137. #include <signal.h>
  14138. _ACEOF
  14139. case "$host_os" in
  14140. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14141. *) gl_absname_cpp="$ac_cpp" ;;
  14142. esac
  14143. case "$host_os" in
  14144. mingw*)
  14145. gl_dirsep_regex='[/\\]'
  14146. ;;
  14147. *)
  14148. gl_dirsep_regex='\/'
  14149. ;;
  14150. esac
  14151. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  14152. gl_header_literal_regex=`echo 'signal.h' \
  14153. | sed -e "$gl_make_literal_regex_sed"`
  14154. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  14155. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  14156. s|^/[^/]|//&|
  14157. p
  14158. q
  14159. }'
  14160. gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14161. sed -n "$gl_absolute_header_sed"`
  14162. gl_header=$gl_cv_absolute_signal_h
  14163. gl_cv_next_signal_h='"'$gl_header'"'
  14164. fi
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  14166. $as_echo "$gl_cv_next_signal_h" >&6; }
  14167. fi
  14168. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  14169. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14170. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14171. gl_next_as_first_directive='<'signal.h'>'
  14172. else
  14173. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14174. gl_next_as_first_directive=$gl_cv_next_signal_h
  14175. fi
  14176. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  14177. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  14178. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  14179. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  14180. #include <signal.h>
  14181. "
  14182. if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
  14183. else
  14184. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  14185. fi
  14186. ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  14187. #include <signal.h>
  14188. "
  14189. if test "x$ac_cv_type_sighandler_t" = x""yes; then :
  14190. else
  14191. HAVE_SIGHANDLER_T=0
  14192. fi
  14193. for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
  14194. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  14196. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  14197. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  14198. $as_echo_n "(cached) " >&6
  14199. else
  14200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14201. /* end confdefs.h. */
  14202. #include <signal.h>
  14203. int
  14204. main ()
  14205. {
  14206. #undef $gl_func
  14207. (void) $gl_func;
  14208. ;
  14209. return 0;
  14210. }
  14211. _ACEOF
  14212. if ac_fn_c_try_compile "$LINENO"; then :
  14213. eval "$as_gl_Symbol=yes"
  14214. else
  14215. eval "$as_gl_Symbol=no"
  14216. fi
  14217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14218. fi
  14219. eval ac_res=\$$as_gl_Symbol
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14221. $as_echo "$ac_res" >&6; }
  14222. eval as_val=\$$as_gl_Symbol
  14223. if test "x$as_val" = x""yes; then :
  14224. cat >>confdefs.h <<_ACEOF
  14225. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  14226. _ACEOF
  14227. eval ac_cv_have_decl_$gl_func=yes
  14228. fi
  14229. done
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  14231. $as_echo_n "checking for ssize_t... " >&6; }
  14232. if test "${gt_cv_ssize_t+set}" = set; then :
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14236. /* end confdefs.h. */
  14237. #include <sys/types.h>
  14238. int
  14239. main ()
  14240. {
  14241. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  14242. return !x;
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_c_try_compile "$LINENO"; then :
  14248. gt_cv_ssize_t=yes
  14249. else
  14250. gt_cv_ssize_t=no
  14251. fi
  14252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  14255. $as_echo "$gt_cv_ssize_t" >&6; }
  14256. if test $gt_cv_ssize_t = no; then
  14257. $as_echo "#define ssize_t int" >>confdefs.h
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
  14260. $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
  14261. if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
  14262. $as_echo_n "(cached) " >&6
  14263. else
  14264. if test "$cross_compiling" = yes; then :
  14265. case $host_os in
  14266. mingw*) gl_cv_func_stat_dir_slash="guessing no";;
  14267. *) gl_cv_func_stat_dir_slash="guessing yes";;
  14268. esac
  14269. else
  14270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14271. /* end confdefs.h. */
  14272. #include <sys/stat.h>
  14273. int
  14274. main ()
  14275. {
  14276. struct stat st; return stat (".", &st) != stat ("./", &st);
  14277. ;
  14278. return 0;
  14279. }
  14280. _ACEOF
  14281. if ac_fn_c_try_run "$LINENO"; then :
  14282. gl_cv_func_stat_dir_slash=yes
  14283. else
  14284. gl_cv_func_stat_dir_slash=no
  14285. fi
  14286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14287. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14288. fi
  14289. fi
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
  14291. $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
  14293. $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
  14294. if test "${gl_cv_func_stat_file_slash+set}" = set; then :
  14295. $as_echo_n "(cached) " >&6
  14296. else
  14297. touch conftest.tmp
  14298. # Assume that if we have lstat, we can also check symlinks.
  14299. if test $ac_cv_func_lstat = yes; then
  14300. ln -s conftest.tmp conftest.lnk
  14301. fi
  14302. if test "$cross_compiling" = yes; then :
  14303. case "$host_os" in
  14304. # Guess yes on glibc systems.
  14305. *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
  14306. # If we don't know, assume the worst.
  14307. *) gl_cv_func_stat_file_slash="guessing no" ;;
  14308. esac
  14309. else
  14310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14311. /* end confdefs.h. */
  14312. #include <sys/stat.h>
  14313. int
  14314. main ()
  14315. {
  14316. int result = 0;
  14317. struct stat st;
  14318. if (!stat ("conftest.tmp/", &st))
  14319. result |= 1;
  14320. #if HAVE_LSTAT
  14321. if (!stat ("conftest.lnk/", &st))
  14322. result |= 2;
  14323. #endif
  14324. return result;
  14325. ;
  14326. return 0;
  14327. }
  14328. _ACEOF
  14329. if ac_fn_c_try_run "$LINENO"; then :
  14330. gl_cv_func_stat_file_slash=yes
  14331. else
  14332. gl_cv_func_stat_file_slash=no
  14333. fi
  14334. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14335. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14336. fi
  14337. rm -f conftest.tmp conftest.lnk
  14338. fi
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
  14340. $as_echo "$gl_cv_func_stat_file_slash" >&6; }
  14341. case $gl_cv_func_stat_dir_slash in
  14342. *no) REPLACE_STAT=1
  14343. $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
  14344. ;;
  14345. esac
  14346. case $gl_cv_func_stat_file_slash in
  14347. *no) REPLACE_STAT=1
  14348. $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
  14349. ;;
  14350. esac
  14351. if test $REPLACE_STAT = 1; then
  14352. gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
  14353. :
  14354. fi
  14355. GNULIB_STAT=1
  14356. $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
  14357. # Define two additional variables used in the Makefile substitution.
  14358. if test "$ac_cv_header_stdbool_h" = yes; then
  14359. STDBOOL_H=''
  14360. else
  14361. STDBOOL_H='stdbool.h'
  14362. fi
  14363. if test -n "$STDBOOL_H"; then
  14364. GL_GENERATE_STDBOOL_H_TRUE=
  14365. GL_GENERATE_STDBOOL_H_FALSE='#'
  14366. else
  14367. GL_GENERATE_STDBOOL_H_TRUE='#'
  14368. GL_GENERATE_STDBOOL_H_FALSE=
  14369. fi
  14370. if test "$ac_cv_type__Bool" = yes; then
  14371. HAVE__BOOL=1
  14372. else
  14373. HAVE__BOOL=0
  14374. fi
  14375. STDDEF_H=
  14376. ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
  14377. "
  14378. if test "x$ac_cv_type_max_align_t" = x""yes; then :
  14379. else
  14380. HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
  14381. fi
  14382. if test $gt_cv_c_wchar_t = no; then
  14383. HAVE_WCHAR_T=0
  14384. STDDEF_H=stddef.h
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  14387. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  14388. if test "${gl_cv_decl_null_works+set}" = set; then :
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. #include <stddef.h>
  14394. int test[2 * (sizeof NULL == sizeof (void *)) -1];
  14395. int
  14396. main ()
  14397. {
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. if ac_fn_c_try_compile "$LINENO"; then :
  14403. gl_cv_decl_null_works=yes
  14404. else
  14405. gl_cv_decl_null_works=no
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14408. fi
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  14410. $as_echo "$gl_cv_decl_null_works" >&6; }
  14411. if test $gl_cv_decl_null_works = no; then
  14412. REPLACE_NULL=1
  14413. STDDEF_H=stddef.h
  14414. fi
  14415. if test -n "$STDDEF_H"; then
  14416. GL_GENERATE_STDDEF_H_TRUE=
  14417. GL_GENERATE_STDDEF_H_FALSE='#'
  14418. else
  14419. GL_GENERATE_STDDEF_H_TRUE='#'
  14420. GL_GENERATE_STDDEF_H_FALSE=
  14421. fi
  14422. if test -n "$STDDEF_H"; then
  14423. if test $gl_cv_have_include_next = yes; then
  14424. gl_cv_next_stddef_h='<'stddef.h'>'
  14425. else
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  14427. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  14428. if test "${gl_cv_next_stddef_h+set}" = set; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. #include <stddef.h>
  14434. _ACEOF
  14435. case "$host_os" in
  14436. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14437. *) gl_absname_cpp="$ac_cpp" ;;
  14438. esac
  14439. case "$host_os" in
  14440. mingw*)
  14441. gl_dirsep_regex='[/\\]'
  14442. ;;
  14443. *)
  14444. gl_dirsep_regex='\/'
  14445. ;;
  14446. esac
  14447. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  14448. gl_header_literal_regex=`echo 'stddef.h' \
  14449. | sed -e "$gl_make_literal_regex_sed"`
  14450. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  14451. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  14452. s|^/[^/]|//&|
  14453. p
  14454. q
  14455. }'
  14456. gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14457. sed -n "$gl_absolute_header_sed"`
  14458. gl_header=$gl_cv_absolute_stddef_h
  14459. gl_cv_next_stddef_h='"'$gl_header'"'
  14460. fi
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  14462. $as_echo "$gl_cv_next_stddef_h" >&6; }
  14463. fi
  14464. NEXT_STDDEF_H=$gl_cv_next_stddef_h
  14465. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14466. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14467. gl_next_as_first_directive='<'stddef.h'>'
  14468. else
  14469. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14470. gl_next_as_first_directive=$gl_cv_next_stddef_h
  14471. fi
  14472. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  14473. fi
  14474. if test $gl_cv_have_include_next = yes; then
  14475. gl_cv_next_stdio_h='<'stdio.h'>'
  14476. else
  14477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
  14478. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  14479. if test "${gl_cv_next_stdio_h+set}" = set; then :
  14480. $as_echo_n "(cached) " >&6
  14481. else
  14482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14483. /* end confdefs.h. */
  14484. #include <stdio.h>
  14485. _ACEOF
  14486. case "$host_os" in
  14487. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14488. *) gl_absname_cpp="$ac_cpp" ;;
  14489. esac
  14490. case "$host_os" in
  14491. mingw*)
  14492. gl_dirsep_regex='[/\\]'
  14493. ;;
  14494. *)
  14495. gl_dirsep_regex='\/'
  14496. ;;
  14497. esac
  14498. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  14499. gl_header_literal_regex=`echo 'stdio.h' \
  14500. | sed -e "$gl_make_literal_regex_sed"`
  14501. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  14502. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  14503. s|^/[^/]|//&|
  14504. p
  14505. q
  14506. }'
  14507. gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14508. sed -n "$gl_absolute_header_sed"`
  14509. gl_header=$gl_cv_absolute_stdio_h
  14510. gl_cv_next_stdio_h='"'$gl_header'"'
  14511. fi
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
  14513. $as_echo "$gl_cv_next_stdio_h" >&6; }
  14514. fi
  14515. NEXT_STDIO_H=$gl_cv_next_stdio_h
  14516. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14517. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14518. gl_next_as_first_directive='<'stdio.h'>'
  14519. else
  14520. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14521. gl_next_as_first_directive=$gl_cv_next_stdio_h
  14522. fi
  14523. NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  14524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
  14525. $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
  14526. if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
  14527. $as_echo_n "(cached) " >&6
  14528. else
  14529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14530. /* end confdefs.h. */
  14531. #define __STDC_FORMAT_MACROS 1
  14532. #include <stdio.h>
  14533. #include <inttypes.h>
  14534. /* For non-mingw systems, compilation will trivially succeed.
  14535. For mingw, compilation will succeed for older mingw (system
  14536. printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
  14537. #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
  14538. (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
  14539. extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
  14540. #endif
  14541. int
  14542. main ()
  14543. {
  14544. ;
  14545. return 0;
  14546. }
  14547. _ACEOF
  14548. if ac_fn_c_try_compile "$LINENO"; then :
  14549. gl_cv_func_printf_attribute_flavor=system
  14550. else
  14551. gl_cv_func_printf_attribute_flavor=gnu
  14552. fi
  14553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14554. fi
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
  14556. $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
  14557. if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
  14558. $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
  14559. fi
  14560. GNULIB_FSCANF=1
  14561. cat >>confdefs.h <<_ACEOF
  14562. #define GNULIB_FSCANF 1
  14563. _ACEOF
  14564. GNULIB_SCANF=1
  14565. cat >>confdefs.h <<_ACEOF
  14566. #define GNULIB_SCANF 1
  14567. _ACEOF
  14568. GNULIB_FGETC=1
  14569. GNULIB_GETC=1
  14570. GNULIB_GETCHAR=1
  14571. GNULIB_FGETS=1
  14572. GNULIB_FREAD=1
  14573. GNULIB_FPRINTF=1
  14574. GNULIB_PRINTF=1
  14575. GNULIB_VFPRINTF=1
  14576. GNULIB_VPRINTF=1
  14577. GNULIB_FPUTC=1
  14578. GNULIB_PUTC=1
  14579. GNULIB_PUTCHAR=1
  14580. GNULIB_FPUTS=1
  14581. GNULIB_PUTS=1
  14582. GNULIB_FWRITE=1
  14583. for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
  14584. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  14586. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  14587. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  14588. $as_echo_n "(cached) " >&6
  14589. else
  14590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14591. /* end confdefs.h. */
  14592. #include <stdio.h>
  14593. int
  14594. main ()
  14595. {
  14596. #undef $gl_func
  14597. (void) $gl_func;
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_compile "$LINENO"; then :
  14603. eval "$as_gl_Symbol=yes"
  14604. else
  14605. eval "$as_gl_Symbol=no"
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14608. fi
  14609. eval ac_res=\$$as_gl_Symbol
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14611. $as_echo "$ac_res" >&6; }
  14612. eval as_val=\$$as_gl_Symbol
  14613. if test "x$as_val" = x""yes; then :
  14614. cat >>confdefs.h <<_ACEOF
  14615. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  14616. _ACEOF
  14617. eval ac_cv_have_decl_$gl_func=yes
  14618. fi
  14619. done
  14620. if test $gl_cv_have_include_next = yes; then
  14621. gl_cv_next_stdlib_h='<'stdlib.h'>'
  14622. else
  14623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
  14624. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  14625. if test "${gl_cv_next_stdlib_h+set}" = set; then :
  14626. $as_echo_n "(cached) " >&6
  14627. else
  14628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14629. /* end confdefs.h. */
  14630. #include <stdlib.h>
  14631. _ACEOF
  14632. case "$host_os" in
  14633. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14634. *) gl_absname_cpp="$ac_cpp" ;;
  14635. esac
  14636. case "$host_os" in
  14637. mingw*)
  14638. gl_dirsep_regex='[/\\]'
  14639. ;;
  14640. *)
  14641. gl_dirsep_regex='\/'
  14642. ;;
  14643. esac
  14644. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  14645. gl_header_literal_regex=`echo 'stdlib.h' \
  14646. | sed -e "$gl_make_literal_regex_sed"`
  14647. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  14648. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  14649. s|^/[^/]|//&|
  14650. p
  14651. q
  14652. }'
  14653. gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14654. sed -n "$gl_absolute_header_sed"`
  14655. gl_header=$gl_cv_absolute_stdlib_h
  14656. gl_cv_next_stdlib_h='"'$gl_header'"'
  14657. fi
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
  14659. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  14660. fi
  14661. NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  14662. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14663. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14664. gl_next_as_first_directive='<'stdlib.h'>'
  14665. else
  14666. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14667. gl_next_as_first_directive=$gl_cv_next_stdlib_h
  14668. fi
  14669. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  14670. for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
  14671. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  14672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  14673. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  14674. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  14675. $as_echo_n "(cached) " >&6
  14676. else
  14677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14678. /* end confdefs.h. */
  14679. #include <stdlib.h>
  14680. #if HAVE_SYS_LOADAVG_H
  14681. # include <sys/loadavg.h>
  14682. #endif
  14683. #if HAVE_RANDOM_H
  14684. # include <random.h>
  14685. #endif
  14686. int
  14687. main ()
  14688. {
  14689. #undef $gl_func
  14690. (void) $gl_func;
  14691. ;
  14692. return 0;
  14693. }
  14694. _ACEOF
  14695. if ac_fn_c_try_compile "$LINENO"; then :
  14696. eval "$as_gl_Symbol=yes"
  14697. else
  14698. eval "$as_gl_Symbol=no"
  14699. fi
  14700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14701. fi
  14702. eval ac_res=\$$as_gl_Symbol
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14704. $as_echo "$ac_res" >&6; }
  14705. eval as_val=\$$as_gl_Symbol
  14706. if test "x$as_val" = x""yes; then :
  14707. cat >>confdefs.h <<_ACEOF
  14708. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  14709. _ACEOF
  14710. eval ac_cv_have_decl_$gl_func=yes
  14711. fi
  14712. done
  14713. if test $REPLACE_STRSTR = 0; then
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
  14715. $as_echo_n "checking whether strstr works in linear time... " >&6; }
  14716. if test "${gl_cv_func_strstr_linear+set}" = set; then :
  14717. $as_echo_n "(cached) " >&6
  14718. else
  14719. if test "$cross_compiling" = yes; then :
  14720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14721. /* end confdefs.h. */
  14722. #include <features.h>
  14723. #ifdef __GNU_LIBRARY__
  14724. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
  14725. && !(defined __i386__ || defined __x86_64__) \
  14726. && !defined __UCLIBC__
  14727. Lucky user
  14728. #endif
  14729. #endif
  14730. #ifdef __CYGWIN__
  14731. #include <cygwin/version.h>
  14732. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  14733. Lucky user
  14734. #endif
  14735. #endif
  14736. _ACEOF
  14737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14738. $EGREP "Lucky user" >/dev/null 2>&1; then :
  14739. gl_cv_func_strstr_linear="guessing yes"
  14740. else
  14741. gl_cv_func_strstr_linear="guessing no"
  14742. fi
  14743. rm -f conftest*
  14744. else
  14745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14746. /* end confdefs.h. */
  14747. #include <signal.h> /* for signal */
  14748. #include <string.h> /* for strstr */
  14749. #include <stdlib.h> /* for malloc */
  14750. #include <unistd.h> /* for alarm */
  14751. static void quit (int sig) { exit (sig + 128); }
  14752. int
  14753. main ()
  14754. {
  14755. int result = 0;
  14756. size_t m = 1000000;
  14757. char *haystack = (char *) malloc (2 * m + 2);
  14758. char *needle = (char *) malloc (m + 2);
  14759. /* Failure to compile this test due to missing alarm is okay,
  14760. since all such platforms (mingw) also have quadratic strstr. */
  14761. signal (SIGALRM, quit);
  14762. alarm (5);
  14763. /* Check for quadratic performance. */
  14764. if (haystack && needle)
  14765. {
  14766. memset (haystack, 'A', 2 * m);
  14767. haystack[2 * m] = 'B';
  14768. haystack[2 * m + 1] = 0;
  14769. memset (needle, 'A', m);
  14770. needle[m] = 'B';
  14771. needle[m + 1] = 0;
  14772. if (!strstr (haystack, needle))
  14773. result |= 1;
  14774. }
  14775. return result;
  14776. ;
  14777. return 0;
  14778. }
  14779. _ACEOF
  14780. if ac_fn_c_try_run "$LINENO"; then :
  14781. gl_cv_func_strstr_linear=yes
  14782. else
  14783. gl_cv_func_strstr_linear=no
  14784. fi
  14785. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14786. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14787. fi
  14788. fi
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
  14790. $as_echo "$gl_cv_func_strstr_linear" >&6; }
  14791. case "$gl_cv_func_strstr_linear" in
  14792. *yes) ;;
  14793. *)
  14794. REPLACE_STRSTR=1
  14795. ;;
  14796. esac
  14797. fi
  14798. if test $REPLACE_STRSTR = 1; then
  14799. gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
  14800. fi
  14801. if test "$gl_cv_func_memchr_works" != yes; then
  14802. REPLACE_STRSTR=1
  14803. else
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
  14805. $as_echo_n "checking whether strstr works... " >&6; }
  14806. if test "${gl_cv_func_strstr_works_always+set}" = set; then :
  14807. $as_echo_n "(cached) " >&6
  14808. else
  14809. if test "$cross_compiling" = yes; then :
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. #ifdef __GNU_LIBRARY__
  14813. #include <features.h>
  14814. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
  14815. || defined __UCLIBC__
  14816. Lucky user
  14817. #endif
  14818. #elif defined __CYGWIN__
  14819. #include <cygwin/version.h>
  14820. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  14821. Lucky user
  14822. #endif
  14823. #else
  14824. Lucky user
  14825. #endif
  14826. _ACEOF
  14827. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14828. $EGREP "Lucky user" >/dev/null 2>&1; then :
  14829. gl_cv_func_strstr_works_always="guessing yes"
  14830. else
  14831. gl_cv_func_strstr_works_always="guessing no"
  14832. fi
  14833. rm -f conftest*
  14834. else
  14835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14836. /* end confdefs.h. */
  14837. #include <string.h> /* for strstr */
  14838. #define P "_EF_BF_BD"
  14839. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  14840. #define NEEDLE P P P P P
  14841. int
  14842. main ()
  14843. {
  14844. return !!strstr (HAYSTACK, NEEDLE);
  14845. ;
  14846. return 0;
  14847. }
  14848. _ACEOF
  14849. if ac_fn_c_try_run "$LINENO"; then :
  14850. gl_cv_func_strstr_works_always=yes
  14851. else
  14852. gl_cv_func_strstr_works_always=no
  14853. fi
  14854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14855. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14856. fi
  14857. fi
  14858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
  14859. $as_echo "$gl_cv_func_strstr_works_always" >&6; }
  14860. case "$gl_cv_func_strstr_works_always" in
  14861. *yes) ;;
  14862. *)
  14863. REPLACE_STRSTR=1
  14864. ;;
  14865. esac
  14866. fi
  14867. if test $REPLACE_STRSTR = 1; then
  14868. gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
  14869. fi
  14870. GNULIB_STRSTR=1
  14871. $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
  14872. for ac_func in strtok_r
  14873. do :
  14874. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  14875. if test "x$ac_cv_func_strtok_r" = x""yes; then :
  14876. cat >>confdefs.h <<_ACEOF
  14877. #define HAVE_STRTOK_R 1
  14878. _ACEOF
  14879. fi
  14880. done
  14881. if test $ac_cv_func_strtok_r = yes; then
  14882. HAVE_STRTOK_R=1
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
  14884. $as_echo_n "checking whether strtok_r works... " >&6; }
  14885. if test "${gl_cv_func_strtok_r_works+set}" = set; then :
  14886. $as_echo_n "(cached) " >&6
  14887. else
  14888. if test "$cross_compiling" = yes; then :
  14889. case "$host_os" in
  14890. # Guess no on glibc systems.
  14891. *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
  14892. *) gl_cv_func_strtok_r_works="guessing yes";;
  14893. esac
  14894. else
  14895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14896. /* end confdefs.h. */
  14897. #ifndef __OPTIMIZE__
  14898. # define __OPTIMIZE__ 1
  14899. #endif
  14900. #undef __OPTIMIZE_SIZE__
  14901. #undef __NO_INLINE__
  14902. #include <stdlib.h>
  14903. #include <string.h>
  14904. int
  14905. main ()
  14906. {
  14907. static const char dummy[] = "\177\01a";
  14908. char delimiters[] = "xxxxxxxx";
  14909. char *save_ptr = (char *) dummy;
  14910. strtok_r (delimiters, "x", &save_ptr);
  14911. strtok_r (NULL, "x", &save_ptr);
  14912. return 0;
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. if ac_fn_c_try_run "$LINENO"; then :
  14918. gl_cv_func_strtok_r_works=yes
  14919. else
  14920. gl_cv_func_strtok_r_works=no
  14921. fi
  14922. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14923. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14924. fi
  14925. fi
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
  14927. $as_echo "$gl_cv_func_strtok_r_works" >&6; }
  14928. case "$gl_cv_func_strtok_r_works" in
  14929. *no)
  14930. UNDEFINE_STRTOK_R=1
  14931. ;;
  14932. esac
  14933. else
  14934. HAVE_STRTOK_R=0
  14935. fi
  14936. if test $ac_cv_have_decl_strtok_r = no; then
  14937. HAVE_DECL_STRTOK_R=0
  14938. fi
  14939. if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
  14940. gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
  14941. :
  14942. fi
  14943. GNULIB_STRTOK_R=1
  14944. $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
  14945. if test $gl_cv_have_include_next = yes; then
  14946. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  14947. else
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  14949. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  14950. if test "${gl_cv_next_sys_stat_h+set}" = set; then :
  14951. $as_echo_n "(cached) " >&6
  14952. else
  14953. if test $ac_cv_header_sys_stat_h = yes; then
  14954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14955. /* end confdefs.h. */
  14956. #include <sys/stat.h>
  14957. _ACEOF
  14958. case "$host_os" in
  14959. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14960. *) gl_absname_cpp="$ac_cpp" ;;
  14961. esac
  14962. case "$host_os" in
  14963. mingw*)
  14964. gl_dirsep_regex='[/\\]'
  14965. ;;
  14966. *)
  14967. gl_dirsep_regex='\/'
  14968. ;;
  14969. esac
  14970. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  14971. gl_header_literal_regex=`echo 'sys/stat.h' \
  14972. | sed -e "$gl_make_literal_regex_sed"`
  14973. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  14974. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  14975. s|^/[^/]|//&|
  14976. p
  14977. q
  14978. }'
  14979. gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14980. sed -n "$gl_absolute_header_sed"`
  14981. gl_header=$gl_cv_absolute_sys_stat_h
  14982. gl_cv_next_sys_stat_h='"'$gl_header'"'
  14983. else
  14984. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  14985. fi
  14986. fi
  14987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  14988. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  14989. fi
  14990. NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  14991. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14992. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14993. gl_next_as_first_directive='<'sys/stat.h'>'
  14994. else
  14995. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14996. gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  14997. fi
  14998. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  14999. if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  15000. $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
  15001. fi
  15002. ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  15003. #include <sys/stat.h>
  15004. "
  15005. if test "x$ac_cv_type_nlink_t" = x""yes; then :
  15006. else
  15007. $as_echo "#define nlink_t int" >>confdefs.h
  15008. fi
  15009. for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
  15010. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  15011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  15012. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  15013. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  15014. $as_echo_n "(cached) " >&6
  15015. else
  15016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15017. /* end confdefs.h. */
  15018. #include <sys/stat.h>
  15019. int
  15020. main ()
  15021. {
  15022. #undef $gl_func
  15023. (void) $gl_func;
  15024. ;
  15025. return 0;
  15026. }
  15027. _ACEOF
  15028. if ac_fn_c_try_compile "$LINENO"; then :
  15029. eval "$as_gl_Symbol=yes"
  15030. else
  15031. eval "$as_gl_Symbol=no"
  15032. fi
  15033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15034. fi
  15035. eval ac_res=\$$as_gl_Symbol
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15037. $as_echo "$ac_res" >&6; }
  15038. eval as_val=\$$as_gl_Symbol
  15039. if test "x$as_val" = x""yes; then :
  15040. cat >>confdefs.h <<_ACEOF
  15041. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  15042. _ACEOF
  15043. eval ac_cv_have_decl_$gl_func=yes
  15044. fi
  15045. done
  15046. if test $gl_cv_have_include_next = yes; then
  15047. gl_cv_next_unistd_h='<'unistd.h'>'
  15048. else
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
  15050. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  15051. if test "${gl_cv_next_unistd_h+set}" = set; then :
  15052. $as_echo_n "(cached) " >&6
  15053. else
  15054. if test $ac_cv_header_unistd_h = yes; then
  15055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15056. /* end confdefs.h. */
  15057. #include <unistd.h>
  15058. _ACEOF
  15059. case "$host_os" in
  15060. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15061. *) gl_absname_cpp="$ac_cpp" ;;
  15062. esac
  15063. case "$host_os" in
  15064. mingw*)
  15065. gl_dirsep_regex='[/\\]'
  15066. ;;
  15067. *)
  15068. gl_dirsep_regex='\/'
  15069. ;;
  15070. esac
  15071. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  15072. gl_header_literal_regex=`echo 'unistd.h' \
  15073. | sed -e "$gl_make_literal_regex_sed"`
  15074. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  15075. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  15076. s|^/[^/]|//&|
  15077. p
  15078. q
  15079. }'
  15080. gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15081. sed -n "$gl_absolute_header_sed"`
  15082. gl_header=$gl_cv_absolute_unistd_h
  15083. gl_cv_next_unistd_h='"'$gl_header'"'
  15084. else
  15085. gl_cv_next_unistd_h='<'unistd.h'>'
  15086. fi
  15087. fi
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
  15089. $as_echo "$gl_cv_next_unistd_h" >&6; }
  15090. fi
  15091. NEXT_UNISTD_H=$gl_cv_next_unistd_h
  15092. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15093. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15094. gl_next_as_first_directive='<'unistd.h'>'
  15095. else
  15096. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15097. gl_next_as_first_directive=$gl_cv_next_unistd_h
  15098. fi
  15099. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  15100. if test $ac_cv_header_unistd_h = yes; then
  15101. HAVE_UNISTD_H=1
  15102. else
  15103. HAVE_UNISTD_H=0
  15104. fi
  15105. for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
  15106. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  15107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  15108. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  15109. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  15110. $as_echo_n "(cached) " >&6
  15111. else
  15112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15113. /* end confdefs.h. */
  15114. #if HAVE_UNISTD_H
  15115. # include <unistd.h>
  15116. #endif
  15117. /* Some systems declare various items in the wrong headers. */
  15118. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  15119. # include <fcntl.h>
  15120. # include <stdio.h>
  15121. # include <stdlib.h>
  15122. # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  15123. # include <io.h>
  15124. # endif
  15125. #endif
  15126. int
  15127. main ()
  15128. {
  15129. #undef $gl_func
  15130. (void) $gl_func;
  15131. ;
  15132. return 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_compile "$LINENO"; then :
  15136. eval "$as_gl_Symbol=yes"
  15137. else
  15138. eval "$as_gl_Symbol=no"
  15139. fi
  15140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15141. fi
  15142. eval ac_res=\$$as_gl_Symbol
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15144. $as_echo "$ac_res" >&6; }
  15145. eval as_val=\$$as_gl_Symbol
  15146. if test "x$as_val" = x""yes; then :
  15147. cat >>confdefs.h <<_ACEOF
  15148. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  15149. _ACEOF
  15150. eval ac_cv_have_decl_$gl_func=yes
  15151. fi
  15152. done
  15153. if test $gl_cv_have_include_next = yes; then
  15154. gl_cv_next_wchar_h='<'wchar.h'>'
  15155. else
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
  15157. $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
  15158. if test "${gl_cv_next_wchar_h+set}" = set; then :
  15159. $as_echo_n "(cached) " >&6
  15160. else
  15161. if test $ac_cv_header_wchar_h = yes; then
  15162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15163. /* end confdefs.h. */
  15164. #include <wchar.h>
  15165. _ACEOF
  15166. case "$host_os" in
  15167. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15168. *) gl_absname_cpp="$ac_cpp" ;;
  15169. esac
  15170. case "$host_os" in
  15171. mingw*)
  15172. gl_dirsep_regex='[/\\]'
  15173. ;;
  15174. *)
  15175. gl_dirsep_regex='\/'
  15176. ;;
  15177. esac
  15178. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  15179. gl_header_literal_regex=`echo 'wchar.h' \
  15180. | sed -e "$gl_make_literal_regex_sed"`
  15181. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  15182. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  15183. s|^/[^/]|//&|
  15184. p
  15185. q
  15186. }'
  15187. gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15188. sed -n "$gl_absolute_header_sed"`
  15189. gl_header=$gl_cv_absolute_wchar_h
  15190. gl_cv_next_wchar_h='"'$gl_header'"'
  15191. else
  15192. gl_cv_next_wchar_h='<'wchar.h'>'
  15193. fi
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
  15196. $as_echo "$gl_cv_next_wchar_h" >&6; }
  15197. fi
  15198. NEXT_WCHAR_H=$gl_cv_next_wchar_h
  15199. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15200. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15201. gl_next_as_first_directive='<'wchar.h'>'
  15202. else
  15203. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15204. gl_next_as_first_directive=$gl_cv_next_wchar_h
  15205. fi
  15206. NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
  15207. if test $ac_cv_header_wchar_h = yes; then
  15208. HAVE_WCHAR_H=1
  15209. else
  15210. HAVE_WCHAR_H=0
  15211. fi
  15212. if test $gt_cv_c_wint_t = yes; then
  15213. HAVE_WINT_T=1
  15214. else
  15215. HAVE_WINT_T=0
  15216. fi
  15217. for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
  15218. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  15220. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  15221. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  15222. $as_echo_n "(cached) " >&6
  15223. else
  15224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15225. /* end confdefs.h. */
  15226. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  15227. <wchar.h>.
  15228. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15229. included before <wchar.h>. */
  15230. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  15231. # include <stddef.h>
  15232. # include <stdio.h>
  15233. # include <time.h>
  15234. #endif
  15235. #include <wchar.h>
  15236. int
  15237. main ()
  15238. {
  15239. #undef $gl_func
  15240. (void) $gl_func;
  15241. ;
  15242. return 0;
  15243. }
  15244. _ACEOF
  15245. if ac_fn_c_try_compile "$LINENO"; then :
  15246. eval "$as_gl_Symbol=yes"
  15247. else
  15248. eval "$as_gl_Symbol=no"
  15249. fi
  15250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15251. fi
  15252. eval ac_res=\$$as_gl_Symbol
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15254. $as_echo "$ac_res" >&6; }
  15255. eval as_val=\$$as_gl_Symbol
  15256. if test "x$as_val" = x""yes; then :
  15257. cat >>confdefs.h <<_ACEOF
  15258. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  15259. _ACEOF
  15260. eval ac_cv_have_decl_$gl_func=yes
  15261. fi
  15262. done
  15263. if test $ac_cv_func_iswcntrl = yes; then
  15264. HAVE_ISWCNTRL=1
  15265. else
  15266. HAVE_ISWCNTRL=0
  15267. fi
  15268. if test $gt_cv_c_wint_t = yes; then
  15269. HAVE_WINT_T=1
  15270. else
  15271. HAVE_WINT_T=0
  15272. fi
  15273. if test $gl_cv_have_include_next = yes; then
  15274. gl_cv_next_wctype_h='<'wctype.h'>'
  15275. else
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
  15277. $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
  15278. if test "${gl_cv_next_wctype_h+set}" = set; then :
  15279. $as_echo_n "(cached) " >&6
  15280. else
  15281. if test $ac_cv_header_wctype_h = yes; then
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. #include <wctype.h>
  15285. _ACEOF
  15286. case "$host_os" in
  15287. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15288. *) gl_absname_cpp="$ac_cpp" ;;
  15289. esac
  15290. case "$host_os" in
  15291. mingw*)
  15292. gl_dirsep_regex='[/\\]'
  15293. ;;
  15294. *)
  15295. gl_dirsep_regex='\/'
  15296. ;;
  15297. esac
  15298. gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  15299. gl_header_literal_regex=`echo 'wctype.h' \
  15300. | sed -e "$gl_make_literal_regex_sed"`
  15301. gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  15302. s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  15303. s|^/[^/]|//&|
  15304. p
  15305. q
  15306. }'
  15307. gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15308. sed -n "$gl_absolute_header_sed"`
  15309. gl_header=$gl_cv_absolute_wctype_h
  15310. gl_cv_next_wctype_h='"'$gl_header'"'
  15311. else
  15312. gl_cv_next_wctype_h='<'wctype.h'>'
  15313. fi
  15314. fi
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
  15316. $as_echo "$gl_cv_next_wctype_h" >&6; }
  15317. fi
  15318. NEXT_WCTYPE_H=$gl_cv_next_wctype_h
  15319. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15320. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15321. gl_next_as_first_directive='<'wctype.h'>'
  15322. else
  15323. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15324. gl_next_as_first_directive=$gl_cv_next_wctype_h
  15325. fi
  15326. NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
  15327. if test $ac_cv_header_wctype_h = yes; then
  15328. if test $ac_cv_func_iswcntrl = yes; then
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
  15330. $as_echo_n "checking whether iswcntrl works... " >&6; }
  15331. if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
  15332. $as_echo_n "(cached) " >&6
  15333. else
  15334. if test "$cross_compiling" = yes; then :
  15335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15336. /* end confdefs.h. */
  15337. #include <stdlib.h>
  15338. #if __GNU_LIBRARY__ == 1
  15339. Linux libc5 i18n is broken.
  15340. #endif
  15341. int
  15342. main ()
  15343. {
  15344. ;
  15345. return 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_compile "$LINENO"; then :
  15349. gl_cv_func_iswcntrl_works="guessing yes"
  15350. else
  15351. gl_cv_func_iswcntrl_works="guessing no"
  15352. fi
  15353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15354. else
  15355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15356. /* end confdefs.h. */
  15357. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
  15358. included before <wchar.h>.
  15359. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
  15360. must be included before <wchar.h>. */
  15361. #include <stddef.h>
  15362. #include <stdio.h>
  15363. #include <time.h>
  15364. #include <wchar.h>
  15365. #include <wctype.h>
  15366. int main () { return iswprint ('x') == 0; }
  15367. _ACEOF
  15368. if ac_fn_c_try_run "$LINENO"; then :
  15369. gl_cv_func_iswcntrl_works=yes
  15370. else
  15371. gl_cv_func_iswcntrl_works=no
  15372. fi
  15373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15374. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15375. fi
  15376. fi
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
  15378. $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
  15379. fi
  15380. HAVE_WCTYPE_H=1
  15381. else
  15382. HAVE_WCTYPE_H=0
  15383. fi
  15384. case "$gl_cv_func_iswcntrl_works" in
  15385. *yes) REPLACE_ISWCNTRL=0 ;;
  15386. *) REPLACE_ISWCNTRL=1 ;;
  15387. esac
  15388. if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
  15389. :
  15390. fi
  15391. if test $REPLACE_ISWCNTRL = 1; then
  15392. REPLACE_TOWLOWER=1
  15393. else
  15394. for ac_func in towlower
  15395. do :
  15396. ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
  15397. if test "x$ac_cv_func_towlower" = x""yes; then :
  15398. cat >>confdefs.h <<_ACEOF
  15399. #define HAVE_TOWLOWER 1
  15400. _ACEOF
  15401. fi
  15402. done
  15403. if test $ac_cv_func_towlower = yes; then
  15404. REPLACE_TOWLOWER=0
  15405. else
  15406. ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
  15407. included before <wchar.h>.
  15408. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
  15409. must be included before <wchar.h>. */
  15410. #include <stddef.h>
  15411. #include <stdio.h>
  15412. #include <time.h>
  15413. #include <wchar.h>
  15414. #if HAVE_WCTYPE_H
  15415. # include <wctype.h>
  15416. #endif
  15417. "
  15418. if test "x$ac_cv_have_decl_towlower" = x""yes; then :
  15419. ac_have_decl=1
  15420. else
  15421. ac_have_decl=0
  15422. fi
  15423. cat >>confdefs.h <<_ACEOF
  15424. #define HAVE_DECL_TOWLOWER $ac_have_decl
  15425. _ACEOF
  15426. if test $ac_cv_have_decl_towlower = yes; then
  15427. REPLACE_TOWLOWER=1
  15428. else
  15429. REPLACE_TOWLOWER=0
  15430. fi
  15431. fi
  15432. fi
  15433. if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
  15434. :
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
  15437. $as_echo_n "checking for wctype_t... " >&6; }
  15438. if test "${gl_cv_type_wctype_t+set}" = set; then :
  15439. $as_echo_n "(cached) " >&6
  15440. else
  15441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15442. /* end confdefs.h. */
  15443. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
  15444. included before <wchar.h>.
  15445. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
  15446. must be included before <wchar.h>. */
  15447. #include <stddef.h>
  15448. #include <stdio.h>
  15449. #include <time.h>
  15450. #include <wchar.h>
  15451. #if HAVE_WCTYPE_H
  15452. # include <wctype.h>
  15453. #endif
  15454. wctype_t a;
  15455. int
  15456. main ()
  15457. {
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_compile "$LINENO"; then :
  15463. gl_cv_type_wctype_t=yes
  15464. else
  15465. gl_cv_type_wctype_t=no
  15466. fi
  15467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15468. fi
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
  15470. $as_echo "$gl_cv_type_wctype_t" >&6; }
  15471. if test $gl_cv_type_wctype_t = no; then
  15472. HAVE_WCTYPE_T=0
  15473. fi
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
  15475. $as_echo_n "checking for wctrans_t... " >&6; }
  15476. if test "${gl_cv_type_wctrans_t+set}" = set; then :
  15477. $as_echo_n "(cached) " >&6
  15478. else
  15479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15480. /* end confdefs.h. */
  15481. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
  15482. included before <wchar.h>.
  15483. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
  15484. must be included before <wchar.h>. */
  15485. #include <stddef.h>
  15486. #include <stdio.h>
  15487. #include <time.h>
  15488. #include <wchar.h>
  15489. #include <wctype.h>
  15490. wctrans_t a;
  15491. int
  15492. main ()
  15493. {
  15494. ;
  15495. return 0;
  15496. }
  15497. _ACEOF
  15498. if ac_fn_c_try_compile "$LINENO"; then :
  15499. gl_cv_type_wctrans_t=yes
  15500. else
  15501. gl_cv_type_wctrans_t=no
  15502. fi
  15503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15504. fi
  15505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
  15506. $as_echo "$gl_cv_type_wctrans_t" >&6; }
  15507. if test $gl_cv_type_wctrans_t = no; then
  15508. HAVE_WCTRANS_T=0
  15509. fi
  15510. for gl_func in wctype iswctype wctrans towctrans ; do
  15511. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  15512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  15513. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  15514. if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
  15515. $as_echo_n "(cached) " >&6
  15516. else
  15517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15518. /* end confdefs.h. */
  15519. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  15520. <wchar.h>.
  15521. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15522. included before <wchar.h>. */
  15523. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  15524. # include <stddef.h>
  15525. # include <stdio.h>
  15526. # include <time.h>
  15527. # include <wchar.h>
  15528. #endif
  15529. #include <wctype.h>
  15530. int
  15531. main ()
  15532. {
  15533. #undef $gl_func
  15534. (void) $gl_func;
  15535. ;
  15536. return 0;
  15537. }
  15538. _ACEOF
  15539. if ac_fn_c_try_compile "$LINENO"; then :
  15540. eval "$as_gl_Symbol=yes"
  15541. else
  15542. eval "$as_gl_Symbol=no"
  15543. fi
  15544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15545. fi
  15546. eval ac_res=\$$as_gl_Symbol
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15548. $as_echo "$ac_res" >&6; }
  15549. eval as_val=\$$as_gl_Symbol
  15550. if test "x$as_val" = x""yes; then :
  15551. cat >>confdefs.h <<_ACEOF
  15552. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  15553. _ACEOF
  15554. eval ac_cv_have_decl_$gl_func=yes
  15555. fi
  15556. done
  15557. # End of code from modules
  15558. gltests_libdeps=
  15559. gltests_ltlibdeps=
  15560. gl_source_base='tests'
  15561. gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  15562. gl_module_indicator_condition=$gltests_WITNESS
  15563. LIBGNU_LIBDEPS="$gl_libdeps"
  15564. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  15565. # We don't use automake, but gnulib does. This line lets us generate
  15566. # its Makefile.in.
  15567. am__api_version='1.11'
  15568. # Find a good install program. We prefer a C program (faster),
  15569. # so one script is as good as another. But avoid the broken or
  15570. # incompatible versions:
  15571. # SysV /etc/install, /usr/sbin/install
  15572. # SunOS /usr/etc/install
  15573. # IRIX /sbin/install
  15574. # AIX /bin/install
  15575. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15576. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15577. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15578. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15579. # OS/2's system install, which has a completely different semantic
  15580. # ./install, which can be erroneously created by make from ./install.sh.
  15581. # Reject install programs that cannot install multiple files.
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15583. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  15584. if test -z "$INSTALL"; then
  15585. if test "${ac_cv_path_install+set}" = set; then :
  15586. $as_echo_n "(cached) " >&6
  15587. else
  15588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15589. for as_dir in $PATH
  15590. do
  15591. IFS=$as_save_IFS
  15592. test -z "$as_dir" && as_dir=.
  15593. # Account for people who put trailing slashes in PATH elements.
  15594. case $as_dir/ in #((
  15595. ./ | .// | /[cC]/* | \
  15596. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15597. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15598. /usr/ucb/* ) ;;
  15599. *)
  15600. # OSF1 and SCO ODT 3.0 have their own names for install.
  15601. # Don't use installbsd from OSF since it installs stuff as root
  15602. # by default.
  15603. for ac_prog in ginstall scoinst install; do
  15604. for ac_exec_ext in '' $ac_executable_extensions; do
  15605. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  15606. if test $ac_prog = install &&
  15607. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15608. # AIX install. It has an incompatible calling convention.
  15609. :
  15610. elif test $ac_prog = install &&
  15611. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15612. # program-specific install script used by HP pwplus--don't use.
  15613. :
  15614. else
  15615. rm -rf conftest.one conftest.two conftest.dir
  15616. echo one > conftest.one
  15617. echo two > conftest.two
  15618. mkdir conftest.dir
  15619. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  15620. test -s conftest.one && test -s conftest.two &&
  15621. test -s conftest.dir/conftest.one &&
  15622. test -s conftest.dir/conftest.two
  15623. then
  15624. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  15625. break 3
  15626. fi
  15627. fi
  15628. fi
  15629. done
  15630. done
  15631. ;;
  15632. esac
  15633. done
  15634. IFS=$as_save_IFS
  15635. rm -rf conftest.one conftest.two conftest.dir
  15636. fi
  15637. if test "${ac_cv_path_install+set}" = set; then
  15638. INSTALL=$ac_cv_path_install
  15639. else
  15640. # As a last resort, use the slow shell script. Don't cache a
  15641. # value for INSTALL within a source directory, because that will
  15642. # break other packages using the cache if that directory is
  15643. # removed, or if the value is a relative name.
  15644. INSTALL=$ac_install_sh
  15645. fi
  15646. fi
  15647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15648. $as_echo "$INSTALL" >&6; }
  15649. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15650. # It thinks the first close brace ends the variable substitution.
  15651. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15652. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15653. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  15655. $as_echo_n "checking whether build environment is sane... " >&6; }
  15656. # Just in case
  15657. sleep 1
  15658. echo timestamp > conftest.file
  15659. # Reject unsafe characters in $srcdir or the absolute working directory
  15660. # name. Accept space and tab only in the latter.
  15661. am_lf='
  15662. '
  15663. case `pwd` in
  15664. *[\\\"\#\$\&\'\`$am_lf]*)
  15665. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  15666. esac
  15667. case $srcdir in
  15668. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  15669. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  15670. esac
  15671. # Do `set' in a subshell so we don't clobber the current shell's
  15672. # arguments. Must try -L first in case configure is actually a
  15673. # symlink; some systems play weird games with the mod time of symlinks
  15674. # (eg FreeBSD returns the mod time of the symlink's containing
  15675. # directory).
  15676. if (
  15677. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  15678. if test "$*" = "X"; then
  15679. # -L didn't work.
  15680. set X `ls -t "$srcdir/configure" conftest.file`
  15681. fi
  15682. rm -f conftest.file
  15683. if test "$*" != "X $srcdir/configure conftest.file" \
  15684. && test "$*" != "X conftest.file $srcdir/configure"; then
  15685. # If neither matched, then we have a broken ls. This can happen
  15686. # if, for instance, CONFIG_SHELL is bash and it inherits a
  15687. # broken ls alias from the environment. This has actually
  15688. # happened. Such a system could not be considered "sane".
  15689. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  15690. alias in your environment" "$LINENO" 5
  15691. fi
  15692. test "$2" = conftest.file
  15693. )
  15694. then
  15695. # Ok.
  15696. :
  15697. else
  15698. as_fn_error "newly created file is older than distributed files!
  15699. Check your system clock" "$LINENO" 5
  15700. fi
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15702. $as_echo "yes" >&6; }
  15703. test "$program_prefix" != NONE &&
  15704. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  15705. # Use a double $ so make ignores it.
  15706. test "$program_suffix" != NONE &&
  15707. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  15708. # Double any \ or $.
  15709. # By default was `s,x,x', remove it if useless.
  15710. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  15711. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  15712. # expand $ac_aux_dir to an absolute path
  15713. am_aux_dir=`cd $ac_aux_dir && pwd`
  15714. if test x"${MISSING+set}" != xset; then
  15715. case $am_aux_dir in
  15716. *\ * | *\ *)
  15717. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  15718. *)
  15719. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  15720. esac
  15721. fi
  15722. # Use eval to expand $SHELL
  15723. if eval "$MISSING --run true"; then
  15724. am_missing_run="$MISSING --run "
  15725. else
  15726. am_missing_run=
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  15728. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  15729. fi
  15730. if test x"${install_sh}" != xset; then
  15731. case $am_aux_dir in
  15732. *\ * | *\ *)
  15733. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  15734. *)
  15735. install_sh="\${SHELL} $am_aux_dir/install-sh"
  15736. esac
  15737. fi
  15738. # Installed binaries are usually stripped using `strip' when the user
  15739. # run `make install-strip'. However `strip' might not be the right
  15740. # tool to use in cross-compilation environments, therefore Automake
  15741. # will honor the `STRIP' environment variable to overrule this program.
  15742. if test "$cross_compiling" != no; then
  15743. if test -n "$ac_tool_prefix"; then
  15744. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  15745. set dummy ${ac_tool_prefix}strip; ac_word=$2
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15747. $as_echo_n "checking for $ac_word... " >&6; }
  15748. if test "${ac_cv_prog_STRIP+set}" = set; then :
  15749. $as_echo_n "(cached) " >&6
  15750. else
  15751. if test -n "$STRIP"; then
  15752. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  15753. else
  15754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15755. for as_dir in $PATH
  15756. do
  15757. IFS=$as_save_IFS
  15758. test -z "$as_dir" && as_dir=.
  15759. for ac_exec_ext in '' $ac_executable_extensions; do
  15760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15761. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  15762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15763. break 2
  15764. fi
  15765. done
  15766. done
  15767. IFS=$as_save_IFS
  15768. fi
  15769. fi
  15770. STRIP=$ac_cv_prog_STRIP
  15771. if test -n "$STRIP"; then
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  15773. $as_echo "$STRIP" >&6; }
  15774. else
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15776. $as_echo "no" >&6; }
  15777. fi
  15778. fi
  15779. if test -z "$ac_cv_prog_STRIP"; then
  15780. ac_ct_STRIP=$STRIP
  15781. # Extract the first word of "strip", so it can be a program name with args.
  15782. set dummy strip; ac_word=$2
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15784. $as_echo_n "checking for $ac_word... " >&6; }
  15785. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  15786. $as_echo_n "(cached) " >&6
  15787. else
  15788. if test -n "$ac_ct_STRIP"; then
  15789. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  15790. else
  15791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15792. for as_dir in $PATH
  15793. do
  15794. IFS=$as_save_IFS
  15795. test -z "$as_dir" && as_dir=.
  15796. for ac_exec_ext in '' $ac_executable_extensions; do
  15797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15798. ac_cv_prog_ac_ct_STRIP="strip"
  15799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15800. break 2
  15801. fi
  15802. done
  15803. done
  15804. IFS=$as_save_IFS
  15805. fi
  15806. fi
  15807. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15808. if test -n "$ac_ct_STRIP"; then
  15809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  15810. $as_echo "$ac_ct_STRIP" >&6; }
  15811. else
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15813. $as_echo "no" >&6; }
  15814. fi
  15815. if test "x$ac_ct_STRIP" = x; then
  15816. STRIP=":"
  15817. else
  15818. case $cross_compiling:$ac_tool_warned in
  15819. yes:)
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15822. ac_tool_warned=yes ;;
  15823. esac
  15824. STRIP=$ac_ct_STRIP
  15825. fi
  15826. else
  15827. STRIP="$ac_cv_prog_STRIP"
  15828. fi
  15829. fi
  15830. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  15831. mkdir_p="$MKDIR_P"
  15832. case $mkdir_p in
  15833. [\\/$]* | ?:[\\/]*) ;;
  15834. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  15835. esac
  15836. for ac_prog in gawk mawk nawk awk
  15837. do
  15838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15839. set dummy $ac_prog; ac_word=$2
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15841. $as_echo_n "checking for $ac_word... " >&6; }
  15842. if test "${ac_cv_prog_AWK+set}" = set; then :
  15843. $as_echo_n "(cached) " >&6
  15844. else
  15845. if test -n "$AWK"; then
  15846. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15847. else
  15848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15849. for as_dir in $PATH
  15850. do
  15851. IFS=$as_save_IFS
  15852. test -z "$as_dir" && as_dir=.
  15853. for ac_exec_ext in '' $ac_executable_extensions; do
  15854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15855. ac_cv_prog_AWK="$ac_prog"
  15856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15857. break 2
  15858. fi
  15859. done
  15860. done
  15861. IFS=$as_save_IFS
  15862. fi
  15863. fi
  15864. AWK=$ac_cv_prog_AWK
  15865. if test -n "$AWK"; then
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15867. $as_echo "$AWK" >&6; }
  15868. else
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15870. $as_echo "no" >&6; }
  15871. fi
  15872. test -n "$AWK" && break
  15873. done
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15875. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15876. set x ${MAKE-make}
  15877. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15878. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  15879. $as_echo_n "(cached) " >&6
  15880. else
  15881. cat >conftest.make <<\_ACEOF
  15882. SHELL = /bin/sh
  15883. all:
  15884. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15885. _ACEOF
  15886. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  15887. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15888. *@@@%%%=?*=@@@%%%*)
  15889. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15890. *)
  15891. eval ac_cv_prog_make_${ac_make}_set=no;;
  15892. esac
  15893. rm -f conftest.make
  15894. fi
  15895. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15897. $as_echo "yes" >&6; }
  15898. SET_MAKE=
  15899. else
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15901. $as_echo "no" >&6; }
  15902. SET_MAKE="MAKE=${MAKE-make}"
  15903. fi
  15904. rm -rf .tst 2>/dev/null
  15905. mkdir .tst 2>/dev/null
  15906. if test -d .tst; then
  15907. am__leading_dot=.
  15908. else
  15909. am__leading_dot=_
  15910. fi
  15911. rmdir .tst 2>/dev/null
  15912. DEPDIR="${am__leading_dot}deps"
  15913. ac_config_commands="$ac_config_commands depfiles"
  15914. am_make=${MAKE-make}
  15915. cat > confinc << 'END'
  15916. am__doit:
  15917. @echo this is the am__doit target
  15918. .PHONY: am__doit
  15919. END
  15920. # If we don't find an include directive, just comment out the code.
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  15922. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  15923. am__include="#"
  15924. am__quote=
  15925. _am_result=none
  15926. # First try GNU make style include.
  15927. echo "include confinc" > confmf
  15928. # Ignore all kinds of additional output from `make'.
  15929. case `$am_make -s -f confmf 2> /dev/null` in #(
  15930. *the\ am__doit\ target*)
  15931. am__include=include
  15932. am__quote=
  15933. _am_result=GNU
  15934. ;;
  15935. esac
  15936. # Now try BSD make style include.
  15937. if test "$am__include" = "#"; then
  15938. echo '.include "confinc"' > confmf
  15939. case `$am_make -s -f confmf 2> /dev/null` in #(
  15940. *the\ am__doit\ target*)
  15941. am__include=.include
  15942. am__quote="\""
  15943. _am_result=BSD
  15944. ;;
  15945. esac
  15946. fi
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  15948. $as_echo "$_am_result" >&6; }
  15949. rm -f confinc confmf
  15950. # Check whether --enable-dependency-tracking was given.
  15951. if test "${enable_dependency_tracking+set}" = set; then :
  15952. enableval=$enable_dependency_tracking;
  15953. fi
  15954. if test "x$enable_dependency_tracking" != xno; then
  15955. am_depcomp="$ac_aux_dir/depcomp"
  15956. AMDEPBACKSLASH='\'
  15957. fi
  15958. if test "x$enable_dependency_tracking" != xno; then
  15959. AMDEP_TRUE=
  15960. AMDEP_FALSE='#'
  15961. else
  15962. AMDEP_TRUE='#'
  15963. AMDEP_FALSE=
  15964. fi
  15965. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  15966. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  15967. # is not polluted with repeated "-I."
  15968. am__isrc=' -I$(srcdir)'
  15969. # test to see if srcdir already configured
  15970. if test -f $srcdir/config.status; then
  15971. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  15972. fi
  15973. fi
  15974. # test whether we have cygpath
  15975. if test -z "$CYGPATH_W"; then
  15976. if (cygpath --version) >/dev/null 2>/dev/null; then
  15977. CYGPATH_W='cygpath -w'
  15978. else
  15979. CYGPATH_W=echo
  15980. fi
  15981. fi
  15982. # Define the identity of the package.
  15983. PACKAGE=libgnu
  15984. VERSION=UNUSED-VERSION
  15985. # Some tools Automake needs.
  15986. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  15987. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  15988. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  15989. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  15990. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  15991. # We need awk for the "check" target. The system "awk" is bad on
  15992. # some platforms.
  15993. # Always define AMTAR for backward compatibility.
  15994. AMTAR=${AMTAR-"${am_missing_run}tar"}
  15995. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  15996. depcc="$CC" am_compiler_list=
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  15998. $as_echo_n "checking dependency style of $depcc... " >&6; }
  15999. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  16000. $as_echo_n "(cached) " >&6
  16001. else
  16002. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16003. # We make a subdir and do the tests there. Otherwise we can end up
  16004. # making bogus files that we don't know about and never remove. For
  16005. # instance it was reported that on HP-UX the gcc test will end up
  16006. # making a dummy file named `D' -- because `-MD' means `put the output
  16007. # in D'.
  16008. mkdir conftest.dir
  16009. # Copy depcomp to subdir because otherwise we won't find it if we're
  16010. # using a relative directory.
  16011. cp "$am_depcomp" conftest.dir
  16012. cd conftest.dir
  16013. # We will build objects and dependencies in a subdirectory because
  16014. # it helps to detect inapplicable dependency modes. For instance
  16015. # both Tru64's cc and ICC support -MD to output dependencies as a
  16016. # side effect of compilation, but ICC will put the dependencies in
  16017. # the current directory while Tru64 will put them in the object
  16018. # directory.
  16019. mkdir sub
  16020. am_cv_CC_dependencies_compiler_type=none
  16021. if test "$am_compiler_list" = ""; then
  16022. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16023. fi
  16024. am__universal=false
  16025. case " $depcc " in #(
  16026. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  16027. esac
  16028. for depmode in $am_compiler_list; do
  16029. # Setup a source with many dependencies, because some compilers
  16030. # like to wrap large dependency lists on column 80 (with \), and
  16031. # we should not choose a depcomp mode which is confused by this.
  16032. #
  16033. # We need to recreate these files for each test, as the compiler may
  16034. # overwrite some of them when testing with obscure command lines.
  16035. # This happens at least with the AIX C compiler.
  16036. : > sub/conftest.c
  16037. for i in 1 2 3 4 5 6; do
  16038. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16039. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16040. # Solaris 8's {/usr,}/bin/sh.
  16041. touch sub/conftst$i.h
  16042. done
  16043. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16044. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16045. # mode. It turns out that the SunPro C++ compiler does not properly
  16046. # handle `-M -o', and we need to detect this. Also, some Intel
  16047. # versions had trouble with output in subdirs
  16048. am__obj=sub/conftest.${OBJEXT-o}
  16049. am__minus_obj="-o $am__obj"
  16050. case $depmode in
  16051. gcc)
  16052. # This depmode causes a compiler race in universal mode.
  16053. test "$am__universal" = false || continue
  16054. ;;
  16055. nosideeffect)
  16056. # after this tag, mechanisms are not by side-effect, so they'll
  16057. # only be used when explicitly requested
  16058. if test "x$enable_dependency_tracking" = xyes; then
  16059. continue
  16060. else
  16061. break
  16062. fi
  16063. ;;
  16064. msvisualcpp | msvcmsys)
  16065. # This compiler won't grok `-c -o', but also, the minuso test has
  16066. # not run yet. These depmodes are late enough in the game, and
  16067. # so weak that their functioning should not be impacted.
  16068. am__obj=conftest.${OBJEXT-o}
  16069. am__minus_obj=
  16070. ;;
  16071. none) break ;;
  16072. esac
  16073. if depmode=$depmode \
  16074. source=sub/conftest.c object=$am__obj \
  16075. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16076. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  16077. >/dev/null 2>conftest.err &&
  16078. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16079. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16080. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  16081. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16082. # icc doesn't choke on unknown options, it will just issue warnings
  16083. # or remarks (even with -Werror). So we grep stderr for any message
  16084. # that says an option was ignored or not supported.
  16085. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16086. # icc: Command line warning: ignoring option '-M'; no argument required
  16087. # The diagnosis changed in icc 8.0:
  16088. # icc: Command line remark: option '-MP' not supported
  16089. if (grep 'ignoring option' conftest.err ||
  16090. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16091. am_cv_CC_dependencies_compiler_type=$depmode
  16092. break
  16093. fi
  16094. fi
  16095. done
  16096. cd ..
  16097. rm -rf conftest.dir
  16098. else
  16099. am_cv_CC_dependencies_compiler_type=none
  16100. fi
  16101. fi
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  16103. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  16104. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16105. if
  16106. test "x$enable_dependency_tracking" != xno \
  16107. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  16108. am__fastdepCC_TRUE=
  16109. am__fastdepCC_FALSE='#'
  16110. else
  16111. am__fastdepCC_TRUE='#'
  16112. am__fastdepCC_FALSE=
  16113. fi
  16114. # --------------------- #
  16115. # Checks for programs. #
  16116. # --------------------- #
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  16118. $as_echo_n "checking whether ln -s works... " >&6; }
  16119. LN_S=$as_ln_s
  16120. if test "$LN_S" = "ln -s"; then
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16122. $as_echo "yes" >&6; }
  16123. else
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  16125. $as_echo "no, using $LN_S" >&6; }
  16126. fi
  16127. if test -n "$ac_tool_prefix"; then
  16128. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16129. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16131. $as_echo_n "checking for $ac_word... " >&6; }
  16132. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  16133. $as_echo_n "(cached) " >&6
  16134. else
  16135. if test -n "$RANLIB"; then
  16136. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16137. else
  16138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16139. for as_dir in $PATH
  16140. do
  16141. IFS=$as_save_IFS
  16142. test -z "$as_dir" && as_dir=.
  16143. for ac_exec_ext in '' $ac_executable_extensions; do
  16144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16145. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16147. break 2
  16148. fi
  16149. done
  16150. done
  16151. IFS=$as_save_IFS
  16152. fi
  16153. fi
  16154. RANLIB=$ac_cv_prog_RANLIB
  16155. if test -n "$RANLIB"; then
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  16157. $as_echo "$RANLIB" >&6; }
  16158. else
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16160. $as_echo "no" >&6; }
  16161. fi
  16162. fi
  16163. if test -z "$ac_cv_prog_RANLIB"; then
  16164. ac_ct_RANLIB=$RANLIB
  16165. # Extract the first word of "ranlib", so it can be a program name with args.
  16166. set dummy ranlib; ac_word=$2
  16167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16168. $as_echo_n "checking for $ac_word... " >&6; }
  16169. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  16170. $as_echo_n "(cached) " >&6
  16171. else
  16172. if test -n "$ac_ct_RANLIB"; then
  16173. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16174. else
  16175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16176. for as_dir in $PATH
  16177. do
  16178. IFS=$as_save_IFS
  16179. test -z "$as_dir" && as_dir=.
  16180. for ac_exec_ext in '' $ac_executable_extensions; do
  16181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16182. ac_cv_prog_ac_ct_RANLIB="ranlib"
  16183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16184. break 2
  16185. fi
  16186. done
  16187. done
  16188. IFS=$as_save_IFS
  16189. fi
  16190. fi
  16191. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16192. if test -n "$ac_ct_RANLIB"; then
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  16194. $as_echo "$ac_ct_RANLIB" >&6; }
  16195. else
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16197. $as_echo "no" >&6; }
  16198. fi
  16199. if test "x$ac_ct_RANLIB" = x; then
  16200. RANLIB=":"
  16201. else
  16202. case $cross_compiling:$ac_tool_warned in
  16203. yes:)
  16204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16206. ac_tool_warned=yes ;;
  16207. esac
  16208. RANLIB=$ac_ct_RANLIB
  16209. fi
  16210. else
  16211. RANLIB="$ac_cv_prog_RANLIB"
  16212. fi
  16213. if test -n "$ac_tool_prefix"; then
  16214. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16215. set dummy ${ac_tool_prefix}ar; ac_word=$2
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16217. $as_echo_n "checking for $ac_word... " >&6; }
  16218. if test "${ac_cv_prog_AR+set}" = set; then :
  16219. $as_echo_n "(cached) " >&6
  16220. else
  16221. if test -n "$AR"; then
  16222. ac_cv_prog_AR="$AR" # Let the user override the test.
  16223. else
  16224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16225. for as_dir in $PATH
  16226. do
  16227. IFS=$as_save_IFS
  16228. test -z "$as_dir" && as_dir=.
  16229. for ac_exec_ext in '' $ac_executable_extensions; do
  16230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16231. ac_cv_prog_AR="${ac_tool_prefix}ar"
  16232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16233. break 2
  16234. fi
  16235. done
  16236. done
  16237. IFS=$as_save_IFS
  16238. fi
  16239. fi
  16240. AR=$ac_cv_prog_AR
  16241. if test -n "$AR"; then
  16242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  16243. $as_echo "$AR" >&6; }
  16244. else
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16246. $as_echo "no" >&6; }
  16247. fi
  16248. fi
  16249. if test -z "$ac_cv_prog_AR"; then
  16250. ac_ct_AR=$AR
  16251. # Extract the first word of "ar", so it can be a program name with args.
  16252. set dummy ar; ac_word=$2
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16254. $as_echo_n "checking for $ac_word... " >&6; }
  16255. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  16256. $as_echo_n "(cached) " >&6
  16257. else
  16258. if test -n "$ac_ct_AR"; then
  16259. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16260. else
  16261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16262. for as_dir in $PATH
  16263. do
  16264. IFS=$as_save_IFS
  16265. test -z "$as_dir" && as_dir=.
  16266. for ac_exec_ext in '' $ac_executable_extensions; do
  16267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16268. ac_cv_prog_ac_ct_AR="ar"
  16269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16270. break 2
  16271. fi
  16272. done
  16273. done
  16274. IFS=$as_save_IFS
  16275. fi
  16276. fi
  16277. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16278. if test -n "$ac_ct_AR"; then
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  16280. $as_echo "$ac_ct_AR" >&6; }
  16281. else
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16283. $as_echo "no" >&6; }
  16284. fi
  16285. if test "x$ac_ct_AR" = x; then
  16286. AR=""
  16287. else
  16288. case $cross_compiling:$ac_tool_warned in
  16289. yes:)
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16292. ac_tool_warned=yes ;;
  16293. esac
  16294. AR=$ac_ct_AR
  16295. fi
  16296. else
  16297. AR="$ac_cv_prog_AR"
  16298. fi
  16299. # ---------------------- #
  16300. # Checks for libraries. #
  16301. # ---------------------- #
  16302. ac_config_files="$ac_config_files Makefile import/Makefile"
  16303. ac_config_commands="$ac_config_commands default"
  16304. cat >confcache <<\_ACEOF
  16305. # This file is a shell script that caches the results of configure
  16306. # tests run on this system so they can be shared between configure
  16307. # scripts and configure runs, see configure's option --config-cache.
  16308. # It is not useful on other systems. If it contains results you don't
  16309. # want to keep, you may remove or edit it.
  16310. #
  16311. # config.status only pays attention to the cache file if you give it
  16312. # the --recheck option to rerun configure.
  16313. #
  16314. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16315. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16316. # following values.
  16317. _ACEOF
  16318. # The following way of writing the cache mishandles newlines in values,
  16319. # but we know of no workaround that is simple, portable, and efficient.
  16320. # So, we kill variables containing newlines.
  16321. # Ultrix sh set writes to stderr and can't be redirected directly,
  16322. # and sets the high bit in the cache file unless we assign to the vars.
  16323. (
  16324. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16325. eval ac_val=\$$ac_var
  16326. case $ac_val in #(
  16327. *${as_nl}*)
  16328. case $ac_var in #(
  16329. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16330. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16331. esac
  16332. case $ac_var in #(
  16333. _ | IFS | as_nl) ;; #(
  16334. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16335. *) { eval $ac_var=; unset $ac_var;} ;;
  16336. esac ;;
  16337. esac
  16338. done
  16339. (set) 2>&1 |
  16340. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16341. *${as_nl}ac_space=\ *)
  16342. # `set' does not quote correctly, so add quotes: double-quote
  16343. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16344. sed -n \
  16345. "s/'/'\\\\''/g;
  16346. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16347. ;; #(
  16348. *)
  16349. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16350. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16351. ;;
  16352. esac |
  16353. sort
  16354. ) |
  16355. sed '
  16356. /^ac_cv_env_/b end
  16357. t clear
  16358. :clear
  16359. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16360. t end
  16361. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16362. :end' >>confcache
  16363. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16364. if test -w "$cache_file"; then
  16365. test "x$cache_file" != "x/dev/null" &&
  16366. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16367. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16368. cat confcache >$cache_file
  16369. else
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16371. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16372. fi
  16373. fi
  16374. rm -f confcache
  16375. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16376. # Let make expand exec_prefix.
  16377. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16378. DEFS=-DHAVE_CONFIG_H
  16379. ac_libobjs=
  16380. ac_ltlibobjs=
  16381. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16382. # 1. Remove the extension, and $U if already installed.
  16383. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16384. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16385. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16386. # will be set to the directory where LIBOBJS objects are built.
  16387. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16388. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16389. done
  16390. LIBOBJS=$ac_libobjs
  16391. LTLIBOBJS=$ac_ltlibobjs
  16392. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  16393. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  16394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16395. fi
  16396. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  16397. as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
  16398. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16399. fi
  16400. if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
  16401. as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
  16402. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16403. fi
  16404. if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
  16405. as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
  16406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16407. fi
  16408. if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
  16409. as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
  16410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16411. fi
  16412. if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
  16413. as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
  16414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16415. fi
  16416. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  16417. as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  16418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16419. fi
  16420. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  16421. as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  16422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16423. fi
  16424. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  16425. as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  16426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16427. fi
  16428. gl_libobjs=
  16429. gl_ltlibobjs=
  16430. if test -n "$gl_LIBOBJS"; then
  16431. # Remove the extension.
  16432. sed_drop_objext='s/\.o$//;s/\.obj$//'
  16433. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  16434. gl_libobjs="$gl_libobjs $i.$ac_objext"
  16435. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  16436. done
  16437. fi
  16438. gl_LIBOBJS=$gl_libobjs
  16439. gl_LTLIBOBJS=$gl_ltlibobjs
  16440. gltests_libobjs=
  16441. gltests_ltlibobjs=
  16442. if test -n "$gltests_LIBOBJS"; then
  16443. # Remove the extension.
  16444. sed_drop_objext='s/\.o$//;s/\.obj$//'
  16445. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  16446. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  16447. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  16448. done
  16449. fi
  16450. gltests_LIBOBJS=$gltests_libobjs
  16451. gltests_LTLIBOBJS=$gltests_ltlibobjs
  16452. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16453. as_fn_error "conditional \"AMDEP\" was never defined.
  16454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16455. fi
  16456. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16457. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  16458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16459. fi
  16460. if test -n "$EXEEXT"; then
  16461. am__EXEEXT_TRUE=
  16462. am__EXEEXT_FALSE='#'
  16463. else
  16464. am__EXEEXT_TRUE='#'
  16465. am__EXEEXT_FALSE=
  16466. fi
  16467. : ${CONFIG_STATUS=./config.status}
  16468. ac_write_fail=0
  16469. ac_clean_files_save=$ac_clean_files
  16470. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16472. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16473. as_write_fail=0
  16474. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16475. #! $SHELL
  16476. # Generated by $as_me.
  16477. # Run this file to recreate the current configuration.
  16478. # Compiler output produced by configure, useful for debugging
  16479. # configure, is in config.log if it exists.
  16480. debug=false
  16481. ac_cs_recheck=false
  16482. ac_cs_silent=false
  16483. SHELL=\${CONFIG_SHELL-$SHELL}
  16484. export SHELL
  16485. _ASEOF
  16486. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16487. ## -------------------- ##
  16488. ## M4sh Initialization. ##
  16489. ## -------------------- ##
  16490. # Be more Bourne compatible
  16491. DUALCASE=1; export DUALCASE # for MKS sh
  16492. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16493. emulate sh
  16494. NULLCMD=:
  16495. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16496. # is contrary to our usage. Disable this feature.
  16497. alias -g '${1+"$@"}'='"$@"'
  16498. setopt NO_GLOB_SUBST
  16499. else
  16500. case `(set -o) 2>/dev/null` in #(
  16501. *posix*) :
  16502. set -o posix ;; #(
  16503. *) :
  16504. ;;
  16505. esac
  16506. fi
  16507. as_nl='
  16508. '
  16509. export as_nl
  16510. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16511. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16512. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16513. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16514. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16515. # but without wasting forks for bash or zsh.
  16516. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16517. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16518. as_echo='print -r --'
  16519. as_echo_n='print -rn --'
  16520. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16521. as_echo='printf %s\n'
  16522. as_echo_n='printf %s'
  16523. else
  16524. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16525. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16526. as_echo_n='/usr/ucb/echo -n'
  16527. else
  16528. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16529. as_echo_n_body='eval
  16530. arg=$1;
  16531. case $arg in #(
  16532. *"$as_nl"*)
  16533. expr "X$arg" : "X\\(.*\\)$as_nl";
  16534. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16535. esac;
  16536. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16537. '
  16538. export as_echo_n_body
  16539. as_echo_n='sh -c $as_echo_n_body as_echo'
  16540. fi
  16541. export as_echo_body
  16542. as_echo='sh -c $as_echo_body as_echo'
  16543. fi
  16544. # The user is always right.
  16545. if test "${PATH_SEPARATOR+set}" != set; then
  16546. PATH_SEPARATOR=:
  16547. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16548. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16549. PATH_SEPARATOR=';'
  16550. }
  16551. fi
  16552. # IFS
  16553. # We need space, tab and new line, in precisely that order. Quoting is
  16554. # there to prevent editors from complaining about space-tab.
  16555. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16556. # splitting by setting IFS to empty value.)
  16557. IFS=" "" $as_nl"
  16558. # Find who we are. Look in the path if we contain no directory separator.
  16559. case $0 in #((
  16560. *[\\/]* ) as_myself=$0 ;;
  16561. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16562. for as_dir in $PATH
  16563. do
  16564. IFS=$as_save_IFS
  16565. test -z "$as_dir" && as_dir=.
  16566. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16567. done
  16568. IFS=$as_save_IFS
  16569. ;;
  16570. esac
  16571. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16572. # in which case we are not to be found in the path.
  16573. if test "x$as_myself" = x; then
  16574. as_myself=$0
  16575. fi
  16576. if test ! -f "$as_myself"; then
  16577. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16578. exit 1
  16579. fi
  16580. # Unset variables that we do not need and which cause bugs (e.g. in
  16581. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16582. # suppresses any "Segmentation fault" message there. '((' could
  16583. # trigger a bug in pdksh 5.2.14.
  16584. for as_var in BASH_ENV ENV MAIL MAILPATH
  16585. do eval test x\${$as_var+set} = xset \
  16586. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16587. done
  16588. PS1='$ '
  16589. PS2='> '
  16590. PS4='+ '
  16591. # NLS nuisances.
  16592. LC_ALL=C
  16593. export LC_ALL
  16594. LANGUAGE=C
  16595. export LANGUAGE
  16596. # CDPATH.
  16597. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16598. # as_fn_error ERROR [LINENO LOG_FD]
  16599. # ---------------------------------
  16600. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16601. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16602. # script with status $?, using 1 if that was 0.
  16603. as_fn_error ()
  16604. {
  16605. as_status=$?; test $as_status -eq 0 && as_status=1
  16606. if test "$3"; then
  16607. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16608. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16609. fi
  16610. $as_echo "$as_me: error: $1" >&2
  16611. as_fn_exit $as_status
  16612. } # as_fn_error
  16613. # as_fn_set_status STATUS
  16614. # -----------------------
  16615. # Set $? to STATUS, without forking.
  16616. as_fn_set_status ()
  16617. {
  16618. return $1
  16619. } # as_fn_set_status
  16620. # as_fn_exit STATUS
  16621. # -----------------
  16622. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16623. as_fn_exit ()
  16624. {
  16625. set +e
  16626. as_fn_set_status $1
  16627. exit $1
  16628. } # as_fn_exit
  16629. # as_fn_unset VAR
  16630. # ---------------
  16631. # Portably unset VAR.
  16632. as_fn_unset ()
  16633. {
  16634. { eval $1=; unset $1;}
  16635. }
  16636. as_unset=as_fn_unset
  16637. # as_fn_append VAR VALUE
  16638. # ----------------------
  16639. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16640. # advantage of any shell optimizations that allow amortized linear growth over
  16641. # repeated appends, instead of the typical quadratic growth present in naive
  16642. # implementations.
  16643. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16644. eval 'as_fn_append ()
  16645. {
  16646. eval $1+=\$2
  16647. }'
  16648. else
  16649. as_fn_append ()
  16650. {
  16651. eval $1=\$$1\$2
  16652. }
  16653. fi # as_fn_append
  16654. # as_fn_arith ARG...
  16655. # ------------------
  16656. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16657. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16658. # must be portable across $(()) and expr.
  16659. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16660. eval 'as_fn_arith ()
  16661. {
  16662. as_val=$(( $* ))
  16663. }'
  16664. else
  16665. as_fn_arith ()
  16666. {
  16667. as_val=`expr "$@" || test $? -eq 1`
  16668. }
  16669. fi # as_fn_arith
  16670. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16671. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16672. as_expr=expr
  16673. else
  16674. as_expr=false
  16675. fi
  16676. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16677. as_basename=basename
  16678. else
  16679. as_basename=false
  16680. fi
  16681. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16682. as_dirname=dirname
  16683. else
  16684. as_dirname=false
  16685. fi
  16686. as_me=`$as_basename -- "$0" ||
  16687. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16688. X"$0" : 'X\(//\)$' \| \
  16689. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16690. $as_echo X/"$0" |
  16691. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16692. s//\1/
  16693. q
  16694. }
  16695. /^X\/\(\/\/\)$/{
  16696. s//\1/
  16697. q
  16698. }
  16699. /^X\/\(\/\).*/{
  16700. s//\1/
  16701. q
  16702. }
  16703. s/.*/./; q'`
  16704. # Avoid depending upon Character Ranges.
  16705. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16706. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16707. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16708. as_cr_digits='0123456789'
  16709. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16710. ECHO_C= ECHO_N= ECHO_T=
  16711. case `echo -n x` in #(((((
  16712. -n*)
  16713. case `echo 'xy\c'` in
  16714. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16715. xy) ECHO_C='\c';;
  16716. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16717. ECHO_T=' ';;
  16718. esac;;
  16719. *)
  16720. ECHO_N='-n';;
  16721. esac
  16722. rm -f conf$$ conf$$.exe conf$$.file
  16723. if test -d conf$$.dir; then
  16724. rm -f conf$$.dir/conf$$.file
  16725. else
  16726. rm -f conf$$.dir
  16727. mkdir conf$$.dir 2>/dev/null
  16728. fi
  16729. if (echo >conf$$.file) 2>/dev/null; then
  16730. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16731. as_ln_s='ln -s'
  16732. # ... but there are two gotchas:
  16733. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16734. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16735. # In both cases, we have to default to `cp -p'.
  16736. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16737. as_ln_s='cp -p'
  16738. elif ln conf$$.file conf$$ 2>/dev/null; then
  16739. as_ln_s=ln
  16740. else
  16741. as_ln_s='cp -p'
  16742. fi
  16743. else
  16744. as_ln_s='cp -p'
  16745. fi
  16746. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16747. rmdir conf$$.dir 2>/dev/null
  16748. # as_fn_mkdir_p
  16749. # -------------
  16750. # Create "$as_dir" as a directory, including parents if necessary.
  16751. as_fn_mkdir_p ()
  16752. {
  16753. case $as_dir in #(
  16754. -*) as_dir=./$as_dir;;
  16755. esac
  16756. test -d "$as_dir" || eval $as_mkdir_p || {
  16757. as_dirs=
  16758. while :; do
  16759. case $as_dir in #(
  16760. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16761. *) as_qdir=$as_dir;;
  16762. esac
  16763. as_dirs="'$as_qdir' $as_dirs"
  16764. as_dir=`$as_dirname -- "$as_dir" ||
  16765. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16766. X"$as_dir" : 'X\(//\)[^/]' \| \
  16767. X"$as_dir" : 'X\(//\)$' \| \
  16768. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16769. $as_echo X"$as_dir" |
  16770. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16771. s//\1/
  16772. q
  16773. }
  16774. /^X\(\/\/\)[^/].*/{
  16775. s//\1/
  16776. q
  16777. }
  16778. /^X\(\/\/\)$/{
  16779. s//\1/
  16780. q
  16781. }
  16782. /^X\(\/\).*/{
  16783. s//\1/
  16784. q
  16785. }
  16786. s/.*/./; q'`
  16787. test -d "$as_dir" && break
  16788. done
  16789. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16790. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16791. } # as_fn_mkdir_p
  16792. if mkdir -p . 2>/dev/null; then
  16793. as_mkdir_p='mkdir -p "$as_dir"'
  16794. else
  16795. test -d ./-p && rmdir ./-p
  16796. as_mkdir_p=false
  16797. fi
  16798. if test -x / >/dev/null 2>&1; then
  16799. as_test_x='test -x'
  16800. else
  16801. if ls -dL / >/dev/null 2>&1; then
  16802. as_ls_L_option=L
  16803. else
  16804. as_ls_L_option=
  16805. fi
  16806. as_test_x='
  16807. eval sh -c '\''
  16808. if test -d "$1"; then
  16809. test -d "$1/.";
  16810. else
  16811. case $1 in #(
  16812. -*)set "./$1";;
  16813. esac;
  16814. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16815. ???[sx]*):;;*)false;;esac;fi
  16816. '\'' sh
  16817. '
  16818. fi
  16819. as_executable_p=$as_test_x
  16820. # Sed expression to map a string onto a valid CPP name.
  16821. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16822. # Sed expression to map a string onto a valid variable name.
  16823. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16824. exec 6>&1
  16825. ## ----------------------------------- ##
  16826. ## Main body of $CONFIG_STATUS script. ##
  16827. ## ----------------------------------- ##
  16828. _ASEOF
  16829. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16831. # Save the log message, to keep $0 and so on meaningful, and to
  16832. # report actual input values of CONFIG_FILES etc. instead of their
  16833. # values after options handling.
  16834. ac_log="
  16835. This file was extended by $as_me, which was
  16836. generated by GNU Autoconf 2.64. Invocation command line was
  16837. CONFIG_FILES = $CONFIG_FILES
  16838. CONFIG_HEADERS = $CONFIG_HEADERS
  16839. CONFIG_LINKS = $CONFIG_LINKS
  16840. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16841. $ $0 $@
  16842. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16843. "
  16844. _ACEOF
  16845. case $ac_config_files in *"
  16846. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16847. esac
  16848. case $ac_config_headers in *"
  16849. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16850. esac
  16851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16852. # Files that config.status was made for.
  16853. config_files="$ac_config_files"
  16854. config_headers="$ac_config_headers"
  16855. config_commands="$ac_config_commands"
  16856. _ACEOF
  16857. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16858. ac_cs_usage="\
  16859. \`$as_me' instantiates files and other configuration actions
  16860. from templates according to the current configuration. Unless the files
  16861. and actions are specified as TAGs, all are instantiated by default.
  16862. Usage: $0 [OPTION]... [TAG]...
  16863. -h, --help print this help, then exit
  16864. -V, --version print version number and configuration settings, then exit
  16865. -q, --quiet, --silent
  16866. do not print progress messages
  16867. -d, --debug don't remove temporary files
  16868. --recheck update $as_me by reconfiguring in the same conditions
  16869. --file=FILE[:TEMPLATE]
  16870. instantiate the configuration file FILE
  16871. --header=FILE[:TEMPLATE]
  16872. instantiate the configuration header FILE
  16873. Configuration files:
  16874. $config_files
  16875. Configuration headers:
  16876. $config_headers
  16877. Configuration commands:
  16878. $config_commands
  16879. Report bugs to the package provider."
  16880. _ACEOF
  16881. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16882. ac_cs_version="\\
  16883. config.status
  16884. configured by $0, generated by GNU Autoconf 2.64,
  16885. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16886. Copyright (C) 2009 Free Software Foundation, Inc.
  16887. This config.status script is free software; the Free Software Foundation
  16888. gives unlimited permission to copy, distribute and modify it."
  16889. ac_pwd='$ac_pwd'
  16890. srcdir='$srcdir'
  16891. INSTALL='$INSTALL'
  16892. MKDIR_P='$MKDIR_P'
  16893. AWK='$AWK'
  16894. test -n "\$AWK" || AWK=awk
  16895. _ACEOF
  16896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16897. # The default lists apply if the user does not specify any file.
  16898. ac_need_defaults=:
  16899. while test $# != 0
  16900. do
  16901. case $1 in
  16902. --*=*)
  16903. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16904. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16905. ac_shift=:
  16906. ;;
  16907. *)
  16908. ac_option=$1
  16909. ac_optarg=$2
  16910. ac_shift=shift
  16911. ;;
  16912. esac
  16913. case $ac_option in
  16914. # Handling of the options.
  16915. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16916. ac_cs_recheck=: ;;
  16917. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16918. $as_echo "$ac_cs_version"; exit ;;
  16919. --debug | --debu | --deb | --de | --d | -d )
  16920. debug=: ;;
  16921. --file | --fil | --fi | --f )
  16922. $ac_shift
  16923. case $ac_optarg in
  16924. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16925. esac
  16926. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16927. ac_need_defaults=false;;
  16928. --header | --heade | --head | --hea )
  16929. $ac_shift
  16930. case $ac_optarg in
  16931. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16932. esac
  16933. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16934. ac_need_defaults=false;;
  16935. --he | --h)
  16936. # Conflict between --help and --header
  16937. as_fn_error "ambiguous option: \`$1'
  16938. Try \`$0 --help' for more information.";;
  16939. --help | --hel | -h )
  16940. $as_echo "$ac_cs_usage"; exit ;;
  16941. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16942. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16943. ac_cs_silent=: ;;
  16944. # This is an error.
  16945. -*) as_fn_error "unrecognized option: \`$1'
  16946. Try \`$0 --help' for more information." ;;
  16947. *) as_fn_append ac_config_targets " $1"
  16948. ac_need_defaults=false ;;
  16949. esac
  16950. shift
  16951. done
  16952. ac_configure_extra_args=
  16953. if $ac_cs_silent; then
  16954. exec 6>/dev/null
  16955. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16956. fi
  16957. _ACEOF
  16958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16959. if \$ac_cs_recheck; then
  16960. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16961. shift
  16962. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16963. CONFIG_SHELL='$SHELL'
  16964. export CONFIG_SHELL
  16965. exec "\$@"
  16966. fi
  16967. _ACEOF
  16968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16969. exec 5>>config.log
  16970. {
  16971. echo
  16972. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16973. ## Running $as_me. ##
  16974. _ASBOX
  16975. $as_echo "$ac_log"
  16976. } >&5
  16977. _ACEOF
  16978. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16979. #
  16980. # INIT-COMMANDS
  16981. #
  16982. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16983. _ACEOF
  16984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16985. # Handling of arguments.
  16986. for ac_config_target in $ac_config_targets
  16987. do
  16988. case $ac_config_target in
  16989. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  16990. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16991. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16992. "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
  16993. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  16994. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16995. esac
  16996. done
  16997. # If the user did not use the arguments to specify the items to instantiate,
  16998. # then the envvar interface is used. Set only those that are not.
  16999. # We use the long form for the default assignment because of an extremely
  17000. # bizarre bug on SunOS 4.1.3.
  17001. if $ac_need_defaults; then
  17002. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17003. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17004. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17005. fi
  17006. # Have a temporary directory for convenience. Make it in the build tree
  17007. # simply because there is no reason against having it here, and in addition,
  17008. # creating and moving files from /tmp can sometimes cause problems.
  17009. # Hook for its removal unless debugging.
  17010. # Note that there is a small window in which the directory will not be cleaned:
  17011. # after its creation but before its name has been assigned to `$tmp'.
  17012. $debug ||
  17013. {
  17014. tmp=
  17015. trap 'exit_status=$?
  17016. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  17017. ' 0
  17018. trap 'as_fn_exit 1' 1 2 13 15
  17019. }
  17020. # Create a (secure) tmp directory for tmp files.
  17021. {
  17022. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17023. test -n "$tmp" && test -d "$tmp"
  17024. } ||
  17025. {
  17026. tmp=./conf$$-$RANDOM
  17027. (umask 077 && mkdir "$tmp")
  17028. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  17029. # Set up the scripts for CONFIG_FILES section.
  17030. # No need to generate them if there are no CONFIG_FILES.
  17031. # This happens for instance with `./config.status config.h'.
  17032. if test -n "$CONFIG_FILES"; then
  17033. ac_cr=`echo X | tr X '\015'`
  17034. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17035. # But we know of no other shell where ac_cr would be empty at this
  17036. # point, so we can use a bashism as a fallback.
  17037. if test "x$ac_cr" = x; then
  17038. eval ac_cr=\$\'\\r\'
  17039. fi
  17040. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17041. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17042. ac_cs_awk_cr='\r'
  17043. else
  17044. ac_cs_awk_cr=$ac_cr
  17045. fi
  17046. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  17047. _ACEOF
  17048. {
  17049. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17050. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17051. echo "_ACEOF"
  17052. } >conf$$subs.sh ||
  17053. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  17054. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  17055. ac_delim='%!_!# '
  17056. for ac_last_try in false false false false false :; do
  17057. . ./conf$$subs.sh ||
  17058. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  17059. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17060. if test $ac_delim_n = $ac_delim_num; then
  17061. break
  17062. elif $ac_last_try; then
  17063. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  17064. else
  17065. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17066. fi
  17067. done
  17068. rm -f conf$$subs.sh
  17069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17070. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  17071. _ACEOF
  17072. sed -n '
  17073. h
  17074. s/^/S["/; s/!.*/"]=/
  17075. p
  17076. g
  17077. s/^[^!]*!//
  17078. :repl
  17079. t repl
  17080. s/'"$ac_delim"'$//
  17081. t delim
  17082. :nl
  17083. h
  17084. s/\(.\{148\}\).*/\1/
  17085. t more1
  17086. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17087. p
  17088. n
  17089. b repl
  17090. :more1
  17091. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17092. p
  17093. g
  17094. s/.\{148\}//
  17095. t nl
  17096. :delim
  17097. h
  17098. s/\(.\{148\}\).*/\1/
  17099. t more2
  17100. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17101. p
  17102. b
  17103. :more2
  17104. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17105. p
  17106. g
  17107. s/.\{148\}//
  17108. t delim
  17109. ' <conf$$subs.awk | sed '
  17110. /^[^""]/{
  17111. N
  17112. s/\n//
  17113. }
  17114. ' >>$CONFIG_STATUS || ac_write_fail=1
  17115. rm -f conf$$subs.awk
  17116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17117. _ACAWK
  17118. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  17119. for (key in S) S_is_set[key] = 1
  17120. FS = ""
  17121. }
  17122. {
  17123. line = $ 0
  17124. nfields = split(line, field, "@")
  17125. substed = 0
  17126. len = length(field[1])
  17127. for (i = 2; i < nfields; i++) {
  17128. key = field[i]
  17129. keylen = length(key)
  17130. if (S_is_set[key]) {
  17131. value = S[key]
  17132. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17133. len += length(value) + length(field[++i])
  17134. substed = 1
  17135. } else
  17136. len += 1 + keylen
  17137. }
  17138. print line
  17139. }
  17140. _ACAWK
  17141. _ACEOF
  17142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17143. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17144. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17145. else
  17146. cat
  17147. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  17148. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  17149. _ACEOF
  17150. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17151. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17152. # trailing colons and then remove the whole line if VPATH becomes empty
  17153. # (actually we leave an empty line to preserve line numbers).
  17154. if test "x$srcdir" = x.; then
  17155. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17156. s/:*\$(srcdir):*/:/
  17157. s/:*\${srcdir}:*/:/
  17158. s/:*@srcdir@:*/:/
  17159. s/^\([^=]*=[ ]*\):*/\1/
  17160. s/:*$//
  17161. s/^[^=]*=[ ]*$//
  17162. }'
  17163. fi
  17164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17165. fi # test -n "$CONFIG_FILES"
  17166. # Set up the scripts for CONFIG_HEADERS section.
  17167. # No need to generate them if there are no CONFIG_HEADERS.
  17168. # This happens for instance with `./config.status Makefile'.
  17169. if test -n "$CONFIG_HEADERS"; then
  17170. cat >"$tmp/defines.awk" <<\_ACAWK ||
  17171. BEGIN {
  17172. _ACEOF
  17173. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17174. # here-document in config.status, that substitutes the proper values into
  17175. # config.h.in to produce config.h.
  17176. # Create a delimiter string that does not exist in confdefs.h, to ease
  17177. # handling of long lines.
  17178. ac_delim='%!_!# '
  17179. for ac_last_try in false false :; do
  17180. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  17181. if test -z "$ac_t"; then
  17182. break
  17183. elif $ac_last_try; then
  17184. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  17185. else
  17186. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17187. fi
  17188. done
  17189. # For the awk script, D is an array of macro values keyed by name,
  17190. # likewise P contains macro parameters if any. Preserve backslash
  17191. # newline sequences.
  17192. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17193. sed -n '
  17194. s/.\{148\}/&'"$ac_delim"'/g
  17195. t rset
  17196. :rset
  17197. s/^[ ]*#[ ]*define[ ][ ]*/ /
  17198. t def
  17199. d
  17200. :def
  17201. s/\\$//
  17202. t bsnl
  17203. s/["\\]/\\&/g
  17204. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17205. D["\1"]=" \3"/p
  17206. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  17207. d
  17208. :bsnl
  17209. s/["\\]/\\&/g
  17210. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17211. D["\1"]=" \3\\\\\\n"\\/p
  17212. t cont
  17213. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17214. t cont
  17215. d
  17216. :cont
  17217. n
  17218. s/.\{148\}/&'"$ac_delim"'/g
  17219. t clear
  17220. :clear
  17221. s/\\$//
  17222. t bsnlc
  17223. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17224. d
  17225. :bsnlc
  17226. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17227. b cont
  17228. ' <confdefs.h | sed '
  17229. s/'"$ac_delim"'/"\\\
  17230. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17232. for (key in D) D_is_set[key] = 1
  17233. FS = ""
  17234. }
  17235. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17236. line = \$ 0
  17237. split(line, arg, " ")
  17238. if (arg[1] == "#") {
  17239. defundef = arg[2]
  17240. mac1 = arg[3]
  17241. } else {
  17242. defundef = substr(arg[1], 2)
  17243. mac1 = arg[2]
  17244. }
  17245. split(mac1, mac2, "(") #)
  17246. macro = mac2[1]
  17247. prefix = substr(line, 1, index(line, defundef) - 1)
  17248. if (D_is_set[macro]) {
  17249. # Preserve the white space surrounding the "#".
  17250. print prefix "define", macro P[macro] D[macro]
  17251. next
  17252. } else {
  17253. # Replace #undef with comments. This is necessary, for example,
  17254. # in the case of _POSIX_SOURCE, which is predefined and required
  17255. # on some systems where configure will not decide to define it.
  17256. if (defundef == "undef") {
  17257. print "/*", prefix defundef, macro, "*/"
  17258. next
  17259. }
  17260. }
  17261. }
  17262. { print }
  17263. _ACAWK
  17264. _ACEOF
  17265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17266. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  17267. fi # test -n "$CONFIG_HEADERS"
  17268. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  17269. shift
  17270. for ac_tag
  17271. do
  17272. case $ac_tag in
  17273. :[FHLC]) ac_mode=$ac_tag; continue;;
  17274. esac
  17275. case $ac_mode$ac_tag in
  17276. :[FHL]*:*);;
  17277. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17278. :[FH]-) ac_tag=-:-;;
  17279. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17280. esac
  17281. ac_save_IFS=$IFS
  17282. IFS=:
  17283. set x $ac_tag
  17284. IFS=$ac_save_IFS
  17285. shift
  17286. ac_file=$1
  17287. shift
  17288. case $ac_mode in
  17289. :L) ac_source=$1;;
  17290. :[FH])
  17291. ac_file_inputs=
  17292. for ac_f
  17293. do
  17294. case $ac_f in
  17295. -) ac_f="$tmp/stdin";;
  17296. *) # Look for the file first in the build tree, then in the source tree
  17297. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17298. # because $ac_f cannot contain `:'.
  17299. test -f "$ac_f" ||
  17300. case $ac_f in
  17301. [\\/$]*) false;;
  17302. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17303. esac ||
  17304. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17305. esac
  17306. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17307. as_fn_append ac_file_inputs " '$ac_f'"
  17308. done
  17309. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17310. # use $as_me), people would be surprised to read:
  17311. # /* config.h. Generated by config.status. */
  17312. configure_input='Generated from '`
  17313. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17314. `' by configure.'
  17315. if test x"$ac_file" != x-; then
  17316. configure_input="$ac_file. $configure_input"
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17318. $as_echo "$as_me: creating $ac_file" >&6;}
  17319. fi
  17320. # Neutralize special characters interpreted by sed in replacement strings.
  17321. case $configure_input in #(
  17322. *\&* | *\|* | *\\* )
  17323. ac_sed_conf_input=`$as_echo "$configure_input" |
  17324. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17325. *) ac_sed_conf_input=$configure_input;;
  17326. esac
  17327. case $ac_tag in
  17328. *:-:* | *:-) cat >"$tmp/stdin" \
  17329. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  17330. esac
  17331. ;;
  17332. esac
  17333. ac_dir=`$as_dirname -- "$ac_file" ||
  17334. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17335. X"$ac_file" : 'X\(//\)[^/]' \| \
  17336. X"$ac_file" : 'X\(//\)$' \| \
  17337. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17338. $as_echo X"$ac_file" |
  17339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17340. s//\1/
  17341. q
  17342. }
  17343. /^X\(\/\/\)[^/].*/{
  17344. s//\1/
  17345. q
  17346. }
  17347. /^X\(\/\/\)$/{
  17348. s//\1/
  17349. q
  17350. }
  17351. /^X\(\/\).*/{
  17352. s//\1/
  17353. q
  17354. }
  17355. s/.*/./; q'`
  17356. as_dir="$ac_dir"; as_fn_mkdir_p
  17357. ac_builddir=.
  17358. case "$ac_dir" in
  17359. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17360. *)
  17361. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17362. # A ".." for each directory in $ac_dir_suffix.
  17363. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17364. case $ac_top_builddir_sub in
  17365. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17366. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17367. esac ;;
  17368. esac
  17369. ac_abs_top_builddir=$ac_pwd
  17370. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17371. # for backward compatibility:
  17372. ac_top_builddir=$ac_top_build_prefix
  17373. case $srcdir in
  17374. .) # We are building in place.
  17375. ac_srcdir=.
  17376. ac_top_srcdir=$ac_top_builddir_sub
  17377. ac_abs_top_srcdir=$ac_pwd ;;
  17378. [\\/]* | ?:[\\/]* ) # Absolute name.
  17379. ac_srcdir=$srcdir$ac_dir_suffix;
  17380. ac_top_srcdir=$srcdir
  17381. ac_abs_top_srcdir=$srcdir ;;
  17382. *) # Relative name.
  17383. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17384. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17385. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17386. esac
  17387. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17388. case $ac_mode in
  17389. :F)
  17390. #
  17391. # CONFIG_FILE
  17392. #
  17393. case $INSTALL in
  17394. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17395. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17396. esac
  17397. ac_MKDIR_P=$MKDIR_P
  17398. case $MKDIR_P in
  17399. [\\/$]* | ?:[\\/]* ) ;;
  17400. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17401. esac
  17402. _ACEOF
  17403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17404. # If the template does not know about datarootdir, expand it.
  17405. # FIXME: This hack should be removed a few years after 2.60.
  17406. ac_datarootdir_hack=; ac_datarootdir_seen=
  17407. ac_sed_dataroot='
  17408. /datarootdir/ {
  17409. p
  17410. q
  17411. }
  17412. /@datadir@/p
  17413. /@docdir@/p
  17414. /@infodir@/p
  17415. /@localedir@/p
  17416. /@mandir@/p'
  17417. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17418. *datarootdir*) ac_datarootdir_seen=yes;;
  17419. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17421. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17422. _ACEOF
  17423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17424. ac_datarootdir_hack='
  17425. s&@datadir@&$datadir&g
  17426. s&@docdir@&$docdir&g
  17427. s&@infodir@&$infodir&g
  17428. s&@localedir@&$localedir&g
  17429. s&@mandir@&$mandir&g
  17430. s&\\\${datarootdir}&$datarootdir&g' ;;
  17431. esac
  17432. _ACEOF
  17433. # Neutralize VPATH when `$srcdir' = `.'.
  17434. # Shell code in configure.ac might set extrasub.
  17435. # FIXME: do we really want to maintain this feature?
  17436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17437. ac_sed_extra="$ac_vpsub
  17438. $extrasub
  17439. _ACEOF
  17440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17441. :t
  17442. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17443. s|@configure_input@|$ac_sed_conf_input|;t t
  17444. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17445. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17446. s&@srcdir@&$ac_srcdir&;t t
  17447. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17448. s&@top_srcdir@&$ac_top_srcdir&;t t
  17449. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17450. s&@builddir@&$ac_builddir&;t t
  17451. s&@abs_builddir@&$ac_abs_builddir&;t t
  17452. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17453. s&@INSTALL@&$ac_INSTALL&;t t
  17454. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17455. $ac_datarootdir_hack
  17456. "
  17457. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  17458. || as_fn_error "could not create $ac_file" "$LINENO" 5
  17459. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17460. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  17461. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  17462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17463. which seems to be undefined. Please make sure it is defined." >&5
  17464. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17465. which seems to be undefined. Please make sure it is defined." >&2;}
  17466. rm -f "$tmp/stdin"
  17467. case $ac_file in
  17468. -) cat "$tmp/out" && rm -f "$tmp/out";;
  17469. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  17470. esac \
  17471. || as_fn_error "could not create $ac_file" "$LINENO" 5
  17472. ;;
  17473. :H)
  17474. #
  17475. # CONFIG_HEADER
  17476. #
  17477. if test x"$ac_file" != x-; then
  17478. {
  17479. $as_echo "/* $configure_input */" \
  17480. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  17481. } >"$tmp/config.h" \
  17482. || as_fn_error "could not create $ac_file" "$LINENO" 5
  17483. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17485. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17486. else
  17487. rm -f "$ac_file"
  17488. mv "$tmp/config.h" "$ac_file" \
  17489. || as_fn_error "could not create $ac_file" "$LINENO" 5
  17490. fi
  17491. else
  17492. $as_echo "/* $configure_input */" \
  17493. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  17494. || as_fn_error "could not create -" "$LINENO" 5
  17495. fi
  17496. # Compute "$ac_file"'s index in $config_headers.
  17497. _am_arg="$ac_file"
  17498. _am_stamp_count=1
  17499. for _am_header in $config_headers :; do
  17500. case $_am_header in
  17501. $_am_arg | $_am_arg:* )
  17502. break ;;
  17503. * )
  17504. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17505. esac
  17506. done
  17507. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17508. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17509. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17510. X"$_am_arg" : 'X\(//\)$' \| \
  17511. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17512. $as_echo X"$_am_arg" |
  17513. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17514. s//\1/
  17515. q
  17516. }
  17517. /^X\(\/\/\)[^/].*/{
  17518. s//\1/
  17519. q
  17520. }
  17521. /^X\(\/\/\)$/{
  17522. s//\1/
  17523. q
  17524. }
  17525. /^X\(\/\).*/{
  17526. s//\1/
  17527. q
  17528. }
  17529. s/.*/./; q'`/stamp-h$_am_stamp_count
  17530. ;;
  17531. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17532. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17533. ;;
  17534. esac
  17535. case $ac_file$ac_mode in
  17536. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17537. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  17538. # are listed without --file. Let's play safe and only enable the eval
  17539. # if we detect the quoting.
  17540. case $CONFIG_FILES in
  17541. *\'*) eval set x "$CONFIG_FILES" ;;
  17542. *) set x $CONFIG_FILES ;;
  17543. esac
  17544. shift
  17545. for mf
  17546. do
  17547. # Strip MF so we end up with the name of the file.
  17548. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17549. # Check whether this is an Automake generated Makefile or not.
  17550. # We used to match only the files named `Makefile.in', but
  17551. # some people rename them; so instead we look at the file content.
  17552. # Grep'ing the first line is not enough: some people post-process
  17553. # each Makefile.in and add a new line on top of each file to say so.
  17554. # Grep'ing the whole file is not good either: AIX grep has a line
  17555. # limit of 2048, but all sed's we know have understand at least 4000.
  17556. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17557. dirpart=`$as_dirname -- "$mf" ||
  17558. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17559. X"$mf" : 'X\(//\)[^/]' \| \
  17560. X"$mf" : 'X\(//\)$' \| \
  17561. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17562. $as_echo X"$mf" |
  17563. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17564. s//\1/
  17565. q
  17566. }
  17567. /^X\(\/\/\)[^/].*/{
  17568. s//\1/
  17569. q
  17570. }
  17571. /^X\(\/\/\)$/{
  17572. s//\1/
  17573. q
  17574. }
  17575. /^X\(\/\).*/{
  17576. s//\1/
  17577. q
  17578. }
  17579. s/.*/./; q'`
  17580. else
  17581. continue
  17582. fi
  17583. # Extract the definition of DEPDIR, am__include, and am__quote
  17584. # from the Makefile without running `make'.
  17585. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17586. test -z "$DEPDIR" && continue
  17587. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17588. test -z "am__include" && continue
  17589. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17590. # When using ansi2knr, U may be empty or an underscore; expand it
  17591. U=`sed -n 's/^U = //p' < "$mf"`
  17592. # Find all dependency output files, they are included files with
  17593. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17594. # simplest approach to changing $(DEPDIR) to its actual value in the
  17595. # expansion.
  17596. for file in `sed -n "
  17597. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17598. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17599. # Make sure the directory exists.
  17600. test -f "$dirpart/$file" && continue
  17601. fdir=`$as_dirname -- "$file" ||
  17602. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17603. X"$file" : 'X\(//\)[^/]' \| \
  17604. X"$file" : 'X\(//\)$' \| \
  17605. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17606. $as_echo X"$file" |
  17607. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17608. s//\1/
  17609. q
  17610. }
  17611. /^X\(\/\/\)[^/].*/{
  17612. s//\1/
  17613. q
  17614. }
  17615. /^X\(\/\/\)$/{
  17616. s//\1/
  17617. q
  17618. }
  17619. /^X\(\/\).*/{
  17620. s//\1/
  17621. q
  17622. }
  17623. s/.*/./; q'`
  17624. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17625. # echo "creating $dirpart/$file"
  17626. echo '# dummy' > "$dirpart/$file"
  17627. done
  17628. done
  17629. }
  17630. ;;
  17631. "default":C)
  17632. case x$CONFIG_HEADERS in
  17633. xconfig.h:config.in)
  17634. echo > stamp-h ;;
  17635. esac
  17636. ;;
  17637. esac
  17638. done # for ac_tag
  17639. as_fn_exit 0
  17640. _ACEOF
  17641. ac_clean_files=$ac_clean_files_save
  17642. test $ac_write_fail = 0 ||
  17643. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17644. # configure is writing to config.log, and then calls config.status.
  17645. # config.status does its own redirection, appending to config.log.
  17646. # Unfortunately, on DOS this fails, as config.log is still kept open
  17647. # by configure, so config.status won't be able to write to it; its
  17648. # output is simply discarded. So we exec the FD to /dev/null,
  17649. # effectively closing config.log, so it can be properly (re)opened and
  17650. # appended to by config.status. When coming back to configure, we
  17651. # need to make the FD available again.
  17652. if test "$no_create" != yes; then
  17653. ac_cs_success=:
  17654. ac_config_status_args=
  17655. test "$silent" = yes &&
  17656. ac_config_status_args="$ac_config_status_args --quiet"
  17657. exec 5>/dev/null
  17658. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17659. exec 5>>config.log
  17660. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17661. # would make configure fail if this is the last instruction.
  17662. $ac_cs_success || as_fn_exit $?
  17663. fi
  17664. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17666. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17667. fi
  17668. exit 0