configure 632 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for emacs 24.2.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1"
  162. if (eval "$as_required") 2>/dev/null; then :
  163. as_have_required=yes
  164. else
  165. as_have_required=no
  166. fi
  167. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  168. else
  169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  170. as_found=false
  171. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  172. do
  173. IFS=$as_save_IFS
  174. test -z "$as_dir" && as_dir=.
  175. as_found=:
  176. case $as_dir in #(
  177. /*)
  178. for as_base in sh bash ksh sh5; do
  179. # Try only shells that exist, to save several forks.
  180. as_shell=$as_dir/$as_base
  181. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  182. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  183. CONFIG_SHELL=$as_shell as_have_required=yes
  184. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. break 2
  186. fi
  187. fi
  188. done;;
  189. esac
  190. as_found=false
  191. done
  192. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  193. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  194. CONFIG_SHELL=$SHELL as_have_required=yes
  195. fi; }
  196. IFS=$as_save_IFS
  197. if test "x$CONFIG_SHELL" != x; then :
  198. # We cannot yet assume a decent shell, so we have to provide a
  199. # neutralization value for shells without unset; and this also
  200. # works around shells that cannot unset nonexistent variables.
  201. # Preserve -v and -x to the replacement shell.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. case $- in # ((((
  207. *v*x* | *x*v* ) as_opts=-vx ;;
  208. *v* ) as_opts=-v ;;
  209. *x* ) as_opts=-x ;;
  210. * ) as_opts= ;;
  211. esac
  212. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  213. fi
  214. if test x$as_have_required = xno; then :
  215. $as_echo "$0: This script requires a shell more modern than all"
  216. $as_echo "$0: the shells that I found on your system."
  217. if test x${ZSH_VERSION+set} = xset ; then
  218. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  219. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  220. else
  221. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  222. $0: including any error possibly output before this
  223. $0: message. Then install a modern shell, or manually run
  224. $0: the script under such a shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  340. # ----------------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with STATUS, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$1; test $as_status -eq 0 && as_status=1
  347. if test "$4"; then
  348. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  350. fi
  351. $as_echo "$as_me: error: $2" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='emacs'
  512. PACKAGE_TARNAME='emacs'
  513. PACKAGE_VERSION='24.2'
  514. PACKAGE_STRING='emacs 24.2'
  515. PACKAGE_BUGREPORT=''
  516. PACKAGE_URL=''
  517. ac_unique_file="src/lisp.h"
  518. # Factoring default headers for most tests.
  519. ac_includes_default="\
  520. #include <stdio.h>
  521. #ifdef HAVE_SYS_TYPES_H
  522. # include <sys/types.h>
  523. #endif
  524. #ifdef HAVE_SYS_STAT_H
  525. # include <sys/stat.h>
  526. #endif
  527. #ifdef STDC_HEADERS
  528. # include <stdlib.h>
  529. # include <stddef.h>
  530. #else
  531. # ifdef HAVE_STDLIB_H
  532. # include <stdlib.h>
  533. # endif
  534. #endif
  535. #ifdef HAVE_STRING_H
  536. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  537. # include <memory.h>
  538. # endif
  539. # include <string.h>
  540. #endif
  541. #ifdef HAVE_STRINGS_H
  542. # include <strings.h>
  543. #endif
  544. #ifdef HAVE_INTTYPES_H
  545. # include <inttypes.h>
  546. #endif
  547. #ifdef HAVE_STDINT_H
  548. # include <stdint.h>
  549. #endif
  550. #ifdef HAVE_UNISTD_H
  551. # include <unistd.h>
  552. #endif"
  553. ac_header_list=
  554. ac_func_list=
  555. gl_getopt_required=POSIX
  556. gl_getopt_required=POSIX
  557. ac_subst_vars='gltests_LTLIBOBJS
  558. gltests_LIBOBJS
  559. gl_LTLIBOBJS
  560. gl_LIBOBJS
  561. am__EXEEXT_FALSE
  562. am__EXEEXT_TRUE
  563. LTLIBOBJS
  564. LIBOBJS
  565. SUBDIR_MAKEFILES_IN
  566. LIB_GCC
  567. LD_FIRSTFLAG
  568. LD_SWITCH_SYSTEM_TEMACS
  569. LIBGNU_LTLIBDEPS
  570. LIBGNU_LIBDEPS
  571. gltests_WITNESS
  572. gl_GNULIB_ENABLED_verify_FALSE
  573. gl_GNULIB_ENABLED_verify_TRUE
  574. gl_GNULIB_ENABLED_strtoull_FALSE
  575. gl_GNULIB_ENABLED_strtoull_TRUE
  576. gl_GNULIB_ENABLED_strtoll_FALSE
  577. gl_GNULIB_ENABLED_strtoll_TRUE
  578. gl_GNULIB_ENABLED_stat_FALSE
  579. gl_GNULIB_ENABLED_stat_TRUE
  580. gl_GNULIB_ENABLED_sigprocmask_FALSE
  581. gl_GNULIB_ENABLED_sigprocmask_TRUE
  582. gl_GNULIB_ENABLED_pathmax_FALSE
  583. gl_GNULIB_ENABLED_pathmax_TRUE
  584. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
  585. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
  586. gl_GNULIB_ENABLED_dosname_FALSE
  587. gl_GNULIB_ENABLED_dosname_TRUE
  588. LTLIBINTL
  589. LIBINTL
  590. HAVE_UNISTD_H
  591. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
  592. NEXT_UNISTD_H
  593. PTHREAD_H_DEFINES_STRUCT_TIMESPEC
  594. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
  595. TIME_H_DEFINES_STRUCT_TIMESPEC
  596. NEXT_AS_FIRST_DIRECTIVE_TIME_H
  597. NEXT_TIME_H
  598. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
  599. NEXT_SYS_STAT_H
  600. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
  601. NEXT_STDLIB_H
  602. NEXT_AS_FIRST_DIRECTIVE_STDIO_H
  603. NEXT_STDIO_H
  604. REPLACE_VSPRINTF
  605. REPLACE_VSNPRINTF
  606. REPLACE_VPRINTF
  607. REPLACE_VFPRINTF
  608. REPLACE_VDPRINTF
  609. REPLACE_VASPRINTF
  610. REPLACE_TMPFILE
  611. REPLACE_STDIO_WRITE_FUNCS
  612. REPLACE_STDIO_READ_FUNCS
  613. REPLACE_SPRINTF
  614. REPLACE_SNPRINTF
  615. REPLACE_RENAMEAT
  616. REPLACE_RENAME
  617. REPLACE_REMOVE
  618. REPLACE_PRINTF
  619. REPLACE_POPEN
  620. REPLACE_PERROR
  621. REPLACE_OBSTACK_PRINTF
  622. REPLACE_GETLINE
  623. REPLACE_GETDELIM
  624. REPLACE_FTELLO
  625. REPLACE_FTELL
  626. REPLACE_FSEEKO
  627. REPLACE_FSEEK
  628. REPLACE_FREOPEN
  629. REPLACE_FPURGE
  630. REPLACE_FPRINTF
  631. REPLACE_FOPEN
  632. REPLACE_FFLUSH
  633. REPLACE_FDOPEN
  634. REPLACE_FCLOSE
  635. REPLACE_DPRINTF
  636. HAVE_VDPRINTF
  637. HAVE_VASPRINTF
  638. HAVE_RENAMEAT
  639. HAVE_POPEN
  640. HAVE_PCLOSE
  641. HAVE_FTELLO
  642. HAVE_FSEEKO
  643. HAVE_DPRINTF
  644. HAVE_DECL_VSNPRINTF
  645. HAVE_DECL_SNPRINTF
  646. HAVE_DECL_OBSTACK_PRINTF
  647. HAVE_DECL_GETLINE
  648. HAVE_DECL_GETDELIM
  649. HAVE_DECL_FTELLO
  650. HAVE_DECL_FSEEKO
  651. HAVE_DECL_FPURGE
  652. GNULIB_VSPRINTF_POSIX
  653. GNULIB_VSNPRINTF
  654. GNULIB_VPRINTF_POSIX
  655. GNULIB_VPRINTF
  656. GNULIB_VFPRINTF_POSIX
  657. GNULIB_VFPRINTF
  658. GNULIB_VDPRINTF
  659. GNULIB_VSCANF
  660. GNULIB_VFSCANF
  661. GNULIB_VASPRINTF
  662. GNULIB_TMPFILE
  663. GNULIB_STDIO_H_SIGPIPE
  664. GNULIB_STDIO_H_NONBLOCKING
  665. GNULIB_SPRINTF_POSIX
  666. GNULIB_SNPRINTF
  667. GNULIB_SCANF
  668. GNULIB_RENAMEAT
  669. GNULIB_RENAME
  670. GNULIB_REMOVE
  671. GNULIB_PUTS
  672. GNULIB_PUTCHAR
  673. GNULIB_PUTC
  674. GNULIB_PRINTF_POSIX
  675. GNULIB_PRINTF
  676. GNULIB_POPEN
  677. GNULIB_PERROR
  678. GNULIB_PCLOSE
  679. GNULIB_OBSTACK_PRINTF_POSIX
  680. GNULIB_OBSTACK_PRINTF
  681. GNULIB_GETLINE
  682. GNULIB_GETDELIM
  683. GNULIB_GETCHAR
  684. GNULIB_GETC
  685. GNULIB_FWRITE
  686. GNULIB_FTELLO
  687. GNULIB_FTELL
  688. GNULIB_FSEEKO
  689. GNULIB_FSEEK
  690. GNULIB_FSCANF
  691. GNULIB_FREOPEN
  692. GNULIB_FREAD
  693. GNULIB_FPUTS
  694. GNULIB_FPUTC
  695. GNULIB_FPURGE
  696. GNULIB_FPRINTF_POSIX
  697. GNULIB_FPRINTF
  698. GNULIB_FOPEN
  699. GNULIB_FGETS
  700. GNULIB_FGETC
  701. GNULIB_FFLUSH
  702. GNULIB_FDOPEN
  703. GNULIB_FCLOSE
  704. GNULIB_DPRINTF
  705. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  706. NEXT_STDDEF_H
  707. GL_GENERATE_STDDEF_H_FALSE
  708. GL_GENERATE_STDDEF_H_TRUE
  709. STDDEF_H
  710. HAVE_WCHAR_T
  711. REPLACE_NULL
  712. HAVE__BOOL
  713. GL_GENERATE_STDBOOL_H_FALSE
  714. GL_GENERATE_STDBOOL_H_TRUE
  715. STDBOOL_H
  716. GL_GENERATE_STDARG_H_FALSE
  717. GL_GENERATE_STDARG_H_TRUE
  718. STDARG_H
  719. NEXT_AS_FIRST_DIRECTIVE_STDARG_H
  720. NEXT_STDARG_H
  721. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  722. NEXT_SIGNAL_H
  723. REPLACE_RAISE
  724. REPLACE_PTHREAD_SIGMASK
  725. HAVE_SIGHANDLER_T
  726. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  727. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  728. HAVE_SIGACTION
  729. HAVE_SIGINFO_T
  730. HAVE_SIGSET_T
  731. HAVE_RAISE
  732. HAVE_PTHREAD_SIGMASK
  733. HAVE_POSIX_SIGNALBLOCKING
  734. GNULIB_SIGACTION
  735. GNULIB_SIGPROCMASK
  736. GNULIB_SIGNAL_H_SIGPIPE
  737. GNULIB_RAISE
  738. GNULIB_PTHREAD_SIGMASK
  739. LIB_PTHREAD_SIGMASK
  740. REPLACE_TIMEGM
  741. REPLACE_NANOSLEEP
  742. REPLACE_MKTIME
  743. REPLACE_LOCALTIME_R
  744. HAVE_TIMEGM
  745. HAVE_STRPTIME
  746. HAVE_NANOSLEEP
  747. HAVE_DECL_LOCALTIME_R
  748. GNULIB_TIME_R
  749. GNULIB_TIMEGM
  750. GNULIB_STRPTIME
  751. GNULIB_NANOSLEEP
  752. GNULIB_MKTIME
  753. REPLACE_UTIMENSAT
  754. REPLACE_STAT
  755. REPLACE_MKNOD
  756. REPLACE_MKFIFO
  757. REPLACE_MKDIR
  758. REPLACE_LSTAT
  759. REPLACE_FUTIMENS
  760. REPLACE_FSTATAT
  761. REPLACE_FSTAT
  762. HAVE_UTIMENSAT
  763. HAVE_MKNODAT
  764. HAVE_MKNOD
  765. HAVE_MKFIFOAT
  766. HAVE_MKFIFO
  767. HAVE_MKDIRAT
  768. HAVE_LSTAT
  769. HAVE_LCHMOD
  770. HAVE_FUTIMENS
  771. HAVE_FSTATAT
  772. HAVE_FCHMODAT
  773. GNULIB_UTIMENSAT
  774. GNULIB_STAT
  775. GNULIB_MKNODAT
  776. GNULIB_MKNOD
  777. GNULIB_MKFIFOAT
  778. GNULIB_MKFIFO
  779. GNULIB_MKDIRAT
  780. GNULIB_LSTAT
  781. GNULIB_LCHMOD
  782. GNULIB_FUTIMENS
  783. GNULIB_FSTATAT
  784. GNULIB_FSTAT
  785. GNULIB_FCHMODAT
  786. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
  787. NEXT_INTTYPES_H
  788. UINT64_MAX_EQ_ULONG_MAX
  789. UINT32_MAX_LT_UINTMAX_MAX
  790. PRIPTR_PREFIX
  791. PRI_MACROS_BROKEN
  792. INT64_MAX_EQ_LONG_MAX
  793. INT32_MAX_LT_INTMAX_MAX
  794. HAVE_DECL_STRTOUMAX
  795. HAVE_DECL_STRTOIMAX
  796. HAVE_DECL_IMAXDIV
  797. HAVE_DECL_IMAXABS
  798. GNULIB_STRTOUMAX
  799. GNULIB_STRTOIMAX
  800. GNULIB_IMAXDIV
  801. GNULIB_IMAXABS
  802. GL_GENERATE_STDINT_H_FALSE
  803. GL_GENERATE_STDINT_H_TRUE
  804. STDINT_H
  805. WINT_T_SUFFIX
  806. WCHAR_T_SUFFIX
  807. SIG_ATOMIC_T_SUFFIX
  808. SIZE_T_SUFFIX
  809. PTRDIFF_T_SUFFIX
  810. HAVE_SIGNED_WINT_T
  811. HAVE_SIGNED_WCHAR_T
  812. HAVE_SIGNED_SIG_ATOMIC_T
  813. BITSIZEOF_WINT_T
  814. BITSIZEOF_WCHAR_T
  815. BITSIZEOF_SIG_ATOMIC_T
  816. BITSIZEOF_SIZE_T
  817. BITSIZEOF_PTRDIFF_T
  818. APPLE_UNIVERSAL_BUILD
  819. HAVE_SYS_BITYPES_H
  820. HAVE_SYS_INTTYPES_H
  821. HAVE_STDINT_H
  822. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  823. NEXT_STDINT_H
  824. HAVE_SYS_TYPES_H
  825. HAVE_INTTYPES_H
  826. HAVE_WCHAR_H
  827. HAVE_UNSIGNED_LONG_LONG_INT
  828. HAVE_LONG_LONG_INT
  829. GETOPT_H
  830. HAVE_GETOPT_H
  831. NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
  832. NEXT_GETOPT_H
  833. PRAGMA_COLUMNS
  834. PRAGMA_SYSTEM_HEADER
  835. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  836. INCLUDE_NEXT
  837. GETLOADAVG_LIBS
  838. REPLACE_WCTOMB
  839. REPLACE_UNSETENV
  840. REPLACE_STRTOD
  841. REPLACE_SETENV
  842. REPLACE_REALPATH
  843. REPLACE_REALLOC
  844. REPLACE_PUTENV
  845. REPLACE_MKSTEMP
  846. REPLACE_MBTOWC
  847. REPLACE_MALLOC
  848. REPLACE_CANONICALIZE_FILE_NAME
  849. REPLACE_CALLOC
  850. HAVE_DECL_UNSETENV
  851. HAVE_UNLOCKPT
  852. HAVE_SYS_LOADAVG_H
  853. HAVE_STRUCT_RANDOM_DATA
  854. HAVE_STRTOULL
  855. HAVE_STRTOLL
  856. HAVE_STRTOD
  857. HAVE_DECL_SETENV
  858. HAVE_SETENV
  859. HAVE_RPMATCH
  860. HAVE_REALPATH
  861. HAVE_RANDOM_R
  862. HAVE_RANDOM_H
  863. HAVE_PTSNAME
  864. HAVE_MKSTEMPS
  865. HAVE_MKSTEMP
  866. HAVE_MKOSTEMPS
  867. HAVE_MKOSTEMP
  868. HAVE_MKDTEMP
  869. HAVE_GRANTPT
  870. HAVE_GETSUBOPT
  871. HAVE_DECL_GETLOADAVG
  872. HAVE_CANONICALIZE_FILE_NAME
  873. HAVE_ATOLL
  874. HAVE__EXIT
  875. GNULIB_WCTOMB
  876. GNULIB_UNSETENV
  877. GNULIB_UNLOCKPT
  878. GNULIB_SYSTEM_POSIX
  879. GNULIB_STRTOULL
  880. GNULIB_STRTOLL
  881. GNULIB_STRTOD
  882. GNULIB_SETENV
  883. GNULIB_RPMATCH
  884. GNULIB_REALPATH
  885. GNULIB_REALLOC_POSIX
  886. GNULIB_RANDOM_R
  887. GNULIB_PUTENV
  888. GNULIB_PTSNAME
  889. GNULIB_MKSTEMPS
  890. GNULIB_MKSTEMP
  891. GNULIB_MKOSTEMPS
  892. GNULIB_MKOSTEMP
  893. GNULIB_MKDTEMP
  894. GNULIB_MBTOWC
  895. GNULIB_MALLOC_POSIX
  896. GNULIB_GRANTPT
  897. GNULIB_GETSUBOPT
  898. GNULIB_GETLOADAVG
  899. GNULIB_CANONICALIZE_FILE_NAME
  900. GNULIB_CALLOC_POSIX
  901. GNULIB_ATOLL
  902. GNULIB__EXIT
  903. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
  904. UNISTD_H_HAVE_WINSOCK2_H
  905. REPLACE_WRITE
  906. REPLACE_USLEEP
  907. REPLACE_UNLINKAT
  908. REPLACE_UNLINK
  909. REPLACE_TTYNAME_R
  910. REPLACE_SYMLINK
  911. REPLACE_SLEEP
  912. REPLACE_RMDIR
  913. REPLACE_READLINK
  914. REPLACE_READ
  915. REPLACE_PWRITE
  916. REPLACE_PREAD
  917. REPLACE_LSEEK
  918. REPLACE_LINKAT
  919. REPLACE_LINK
  920. REPLACE_LCHOWN
  921. REPLACE_GETPAGESIZE
  922. REPLACE_GETGROUPS
  923. REPLACE_GETLOGIN_R
  924. REPLACE_GETDOMAINNAME
  925. REPLACE_GETCWD
  926. REPLACE_FCHOWNAT
  927. REPLACE_DUP2
  928. REPLACE_DUP
  929. REPLACE_CLOSE
  930. REPLACE_CHOWN
  931. HAVE_SYS_PARAM_H
  932. HAVE_OS_H
  933. HAVE_DECL_TTYNAME_R
  934. HAVE_DECL_GETUSERSHELL
  935. HAVE_DECL_GETPAGESIZE
  936. HAVE_DECL_GETLOGIN_R
  937. HAVE_DECL_GETDOMAINNAME
  938. HAVE_DECL_FDATASYNC
  939. HAVE_DECL_FCHDIR
  940. HAVE_DECL_ENVIRON
  941. HAVE_USLEEP
  942. HAVE_UNLINKAT
  943. HAVE_SYMLINKAT
  944. HAVE_SYMLINK
  945. HAVE_SLEEP
  946. HAVE_READLINKAT
  947. HAVE_READLINK
  948. HAVE_PWRITE
  949. HAVE_PREAD
  950. HAVE_PIPE2
  951. HAVE_PIPE
  952. HAVE_LINKAT
  953. HAVE_LINK
  954. HAVE_LCHOWN
  955. HAVE_GROUP_MEMBER
  956. HAVE_GETPAGESIZE
  957. HAVE_GETLOGIN
  958. HAVE_GETHOSTNAME
  959. HAVE_GETGROUPS
  960. HAVE_GETDTABLESIZE
  961. HAVE_FTRUNCATE
  962. HAVE_FSYNC
  963. HAVE_FDATASYNC
  964. HAVE_FCHOWNAT
  965. HAVE_FCHDIR
  966. HAVE_FACCESSAT
  967. HAVE_EUIDACCESS
  968. HAVE_DUP3
  969. HAVE_DUP2
  970. HAVE_CHOWN
  971. GNULIB_WRITE
  972. GNULIB_USLEEP
  973. GNULIB_UNLINKAT
  974. GNULIB_UNLINK
  975. GNULIB_UNISTD_H_SIGPIPE
  976. GNULIB_UNISTD_H_NONBLOCKING
  977. GNULIB_UNISTD_H_GETOPT
  978. GNULIB_TTYNAME_R
  979. GNULIB_SYMLINKAT
  980. GNULIB_SYMLINK
  981. GNULIB_SLEEP
  982. GNULIB_RMDIR
  983. GNULIB_READLINKAT
  984. GNULIB_READLINK
  985. GNULIB_READ
  986. GNULIB_PWRITE
  987. GNULIB_PREAD
  988. GNULIB_PIPE2
  989. GNULIB_PIPE
  990. GNULIB_LSEEK
  991. GNULIB_LINKAT
  992. GNULIB_LINK
  993. GNULIB_LCHOWN
  994. GNULIB_GROUP_MEMBER
  995. GNULIB_GETUSERSHELL
  996. GNULIB_GETPAGESIZE
  997. GNULIB_GETLOGIN_R
  998. GNULIB_GETLOGIN
  999. GNULIB_GETHOSTNAME
  1000. GNULIB_GETGROUPS
  1001. GNULIB_GETDTABLESIZE
  1002. GNULIB_GETDOMAINNAME
  1003. GNULIB_GETCWD
  1004. GNULIB_FTRUNCATE
  1005. GNULIB_FSYNC
  1006. GNULIB_FDATASYNC
  1007. GNULIB_FCHOWNAT
  1008. GNULIB_FCHDIR
  1009. GNULIB_FACCESSAT
  1010. GNULIB_EUIDACCESS
  1011. GNULIB_ENVIRON
  1012. GNULIB_DUP3
  1013. GNULIB_DUP2
  1014. GNULIB_DUP
  1015. GNULIB_CLOSE
  1016. GNULIB_CHOWN
  1017. GNULIB_CHDIR
  1018. GL_GENERATE_ALLOCA_H_FALSE
  1019. GL_GENERATE_ALLOCA_H_TRUE
  1020. ALLOCA_H
  1021. ALLOCA
  1022. GL_COND_LIBTOOL_FALSE
  1023. GL_COND_LIBTOOL_TRUE
  1024. POST_ALLOC_OBJ
  1025. PRE_ALLOC_OBJ
  1026. CYGWIN_OBJ
  1027. RALLOC_OBJ
  1028. OLDXMENU_DEPS
  1029. LIBX_OTHER
  1030. LIBXMENU
  1031. OLDXMENU
  1032. OLDXMENU_TARGET
  1033. LIBXT_OTHER
  1034. TOOLKIT_LIBW
  1035. WIDGET_OBJ
  1036. XOBJ
  1037. XMENU_OBJ
  1038. FONT_OBJ
  1039. OTHER_FILES
  1040. GNU_OBJC_CFLAGS
  1041. ns_appsrc
  1042. ns_appresdir
  1043. ns_appbindir
  1044. ns_appdir
  1045. S_FILE
  1046. M_FILE
  1047. X_TOOLKIT_TYPE
  1048. C_SWITCH_X_SYSTEM
  1049. C_SWITCH_X_SITE
  1050. LD_SWITCH_X_SITE
  1051. gameuser
  1052. gamedir
  1053. bitmapdir
  1054. archlibdir
  1055. etcdir
  1056. x_default_search_path
  1057. lisppath
  1058. locallisppath
  1059. lispdir
  1060. srcdir
  1061. canonical
  1062. configuration
  1063. version
  1064. KRB4LIB
  1065. DESLIB
  1066. KRB5LIB
  1067. CRYPTOLIB
  1068. COM_ERRLIB
  1069. LIBRESOLV
  1070. LIBHESIOD
  1071. TERMCAP_OBJ
  1072. LIBS_TERMCAP
  1073. BLESSMAIL_TARGET
  1074. LIBS_MAIL
  1075. liblockfile
  1076. LIBXML2_LIBS
  1077. LIBXML2_CFLAGS
  1078. LIBXSM
  1079. LIBGPM
  1080. LIBGIF
  1081. LIBTIFF
  1082. LIBPNG
  1083. LIBJPEG
  1084. LIBXPM
  1085. M17N_FLT_LIBS
  1086. M17N_FLT_CFLAGS
  1087. LIBOTF_LIBS
  1088. LIBOTF_CFLAGS
  1089. FREETYPE_LIBS
  1090. FREETYPE_CFLAGS
  1091. XFT_LIBS
  1092. XFT_CFLAGS
  1093. FONTCONFIG_LIBS
  1094. FONTCONFIG_CFLAGS
  1095. LIBXMU
  1096. LIBXTR6
  1097. LIBGNUTLS_LIBS
  1098. LIBGNUTLS_CFLAGS
  1099. LIBSELINUX_LIBS
  1100. SETTINGS_LIBS
  1101. SETTINGS_CFLAGS
  1102. GCONF_LIBS
  1103. GCONF_CFLAGS
  1104. GSETTINGS_LIBS
  1105. GSETTINGS_CFLAGS
  1106. DBUS_OBJ
  1107. DBUS_LIBS
  1108. DBUS_CFLAGS
  1109. GTK_OBJ
  1110. GTK_LIBS
  1111. GTK_CFLAGS
  1112. IMAGEMAGICK_LIBS
  1113. IMAGEMAGICK_CFLAGS
  1114. RSVG_LIBS
  1115. RSVG_CFLAGS
  1116. LIB_PTHREAD
  1117. VMLIMIT_OBJ
  1118. GMALLOC_OBJ
  1119. HAVE_XSERVER
  1120. LIB_STANDARD
  1121. NS_OBJC_OBJ
  1122. NS_OBJ
  1123. TEMACS_LDFLAGS2
  1124. LD_SWITCH_X_SITE_AUX_RPATH
  1125. LD_SWITCH_X_SITE_AUX
  1126. XMKMF
  1127. DEPFLAGS
  1128. MKDEPDIR
  1129. CFLAGS_SOUND
  1130. ALSA_LIBS
  1131. ALSA_CFLAGS
  1132. PKG_CONFIG
  1133. LIBSOUND
  1134. CRT_DIR
  1135. START_FILES
  1136. LIB_MATH
  1137. LIBS_SYSTEM
  1138. C_SWITCH_SYSTEM
  1139. UNEXEC_OBJ
  1140. C_SWITCH_MACHINE
  1141. LD_SWITCH_SYSTEM
  1142. CANNOT_DUMP
  1143. HAVE_MAKEINFO
  1144. GZIP_PROG
  1145. INSTALL_INFO
  1146. C_WARNINGS_SWITCH
  1147. RANLIB
  1148. ARFLAGS
  1149. AR
  1150. EGREP
  1151. GREP
  1152. CPP
  1153. am__fastdepCC_FALSE
  1154. am__fastdepCC_TRUE
  1155. CCDEPMODE
  1156. am__nodep
  1157. AMDEPBACKSLASH
  1158. AMDEP_FALSE
  1159. AMDEP_TRUE
  1160. am__quote
  1161. am__include
  1162. DEPDIR
  1163. OBJEXT
  1164. EXEEXT
  1165. ac_ct_CC
  1166. CPPFLAGS
  1167. LDFLAGS
  1168. CFLAGS
  1169. CC
  1170. host_os
  1171. host_vendor
  1172. host_cpu
  1173. host
  1174. build_os
  1175. build_vendor
  1176. build_cpu
  1177. build
  1178. PROFILING_CFLAGS
  1179. MAINT
  1180. GZIP_INFO
  1181. cache_file
  1182. am__untar
  1183. am__tar
  1184. AMTAR
  1185. am__leading_dot
  1186. SET_MAKE
  1187. AWK
  1188. mkdir_p
  1189. MKDIR_P
  1190. INSTALL_STRIP_PROGRAM
  1191. STRIP
  1192. install_sh
  1193. MAKEINFO
  1194. AUTOHEADER
  1195. AUTOMAKE
  1196. AUTOCONF
  1197. ACLOCAL
  1198. VERSION
  1199. PACKAGE
  1200. CYGPATH_W
  1201. am__isrc
  1202. INSTALL_DATA
  1203. INSTALL_SCRIPT
  1204. INSTALL_PROGRAM
  1205. target_alias
  1206. host_alias
  1207. build_alias
  1208. LIBS
  1209. ECHO_T
  1210. ECHO_N
  1211. ECHO_C
  1212. DEFS
  1213. mandir
  1214. localedir
  1215. libdir
  1216. psdir
  1217. pdfdir
  1218. dvidir
  1219. htmldir
  1220. infodir
  1221. docdir
  1222. oldincludedir
  1223. includedir
  1224. localstatedir
  1225. sharedstatedir
  1226. sysconfdir
  1227. datadir
  1228. datarootdir
  1229. libexecdir
  1230. sbindir
  1231. bindir
  1232. program_transform_name
  1233. prefix
  1234. exec_prefix
  1235. PACKAGE_URL
  1236. PACKAGE_BUGREPORT
  1237. PACKAGE_STRING
  1238. PACKAGE_VERSION
  1239. PACKAGE_TARNAME
  1240. PACKAGE_NAME
  1241. PATH_SEPARATOR
  1242. SHELL'
  1243. ac_subst_files='deps_frag
  1244. lisp_frag
  1245. ns_frag'
  1246. ac_user_opts='
  1247. enable_option_checking
  1248. with_pop
  1249. with_kerberos
  1250. with_kerberos5
  1251. with_hesiod
  1252. with_mmdf
  1253. with_mail_unlink
  1254. with_mailhost
  1255. with_sound
  1256. with_sync_input
  1257. with_x_toolkit
  1258. with_wide_int
  1259. with_xpm
  1260. with_jpeg
  1261. with_tiff
  1262. with_gif
  1263. with_png
  1264. with_rsvg
  1265. with_xml2
  1266. with_imagemagick
  1267. with_xft
  1268. with_libotf
  1269. with_m17n_flt
  1270. with_toolkit_scroll_bars
  1271. with_xaw3d
  1272. with_xim
  1273. with_ns
  1274. with_gpm
  1275. with_dbus
  1276. with_gconf
  1277. with_gsettings
  1278. with_selinux
  1279. with_gnutls
  1280. with_makeinfo
  1281. with_compress_info
  1282. with_pkg_config_prog
  1283. with_crt_dir
  1284. with_gameuser
  1285. with_gnustep_conf
  1286. enable_ns_self_contained
  1287. enable_asserts
  1288. enable_maintainer_mode
  1289. enable_locallisppath
  1290. enable_checking
  1291. enable_use_lisp_union_type
  1292. enable_profiling
  1293. enable_autodepend
  1294. enable_dependency_tracking
  1295. enable_largefile
  1296. with_x
  1297. '
  1298. ac_precious_vars='build_alias
  1299. host_alias
  1300. target_alias
  1301. CC
  1302. CFLAGS
  1303. LDFLAGS
  1304. LIBS
  1305. CPPFLAGS
  1306. CPP
  1307. XMKMF'
  1308. # Initialize some variables set by options.
  1309. ac_init_help=
  1310. ac_init_version=false
  1311. ac_unrecognized_opts=
  1312. ac_unrecognized_sep=
  1313. # The variables have the same names as the options, with
  1314. # dashes changed to underlines.
  1315. cache_file=/dev/null
  1316. exec_prefix=NONE
  1317. no_create=
  1318. no_recursion=
  1319. prefix=NONE
  1320. program_prefix=NONE
  1321. program_suffix=NONE
  1322. program_transform_name=s,x,x,
  1323. silent=
  1324. site=
  1325. srcdir=
  1326. verbose=
  1327. x_includes=NONE
  1328. x_libraries=NONE
  1329. # Installation directory options.
  1330. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1331. # and all the variables that are supposed to be based on exec_prefix
  1332. # by default will actually change.
  1333. # Use braces instead of parens because sh, perl, etc. also accept them.
  1334. # (The list follows the same order as the GNU Coding Standards.)
  1335. bindir='${exec_prefix}/bin'
  1336. sbindir='${exec_prefix}/sbin'
  1337. libexecdir='${exec_prefix}/libexec'
  1338. datarootdir='${prefix}/share'
  1339. datadir='${datarootdir}'
  1340. sysconfdir='${prefix}/etc'
  1341. sharedstatedir='${prefix}/com'
  1342. localstatedir='${prefix}/var'
  1343. includedir='${prefix}/include'
  1344. oldincludedir='/usr/include'
  1345. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1346. infodir='${datarootdir}/info'
  1347. htmldir='${docdir}'
  1348. dvidir='${docdir}'
  1349. pdfdir='${docdir}'
  1350. psdir='${docdir}'
  1351. libdir='${exec_prefix}/lib'
  1352. localedir='${datarootdir}/locale'
  1353. mandir='${datarootdir}/man'
  1354. ac_prev=
  1355. ac_dashdash=
  1356. for ac_option
  1357. do
  1358. # If the previous option needs an argument, assign it.
  1359. if test -n "$ac_prev"; then
  1360. eval $ac_prev=\$ac_option
  1361. ac_prev=
  1362. continue
  1363. fi
  1364. case $ac_option in
  1365. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1366. *=) ac_optarg= ;;
  1367. *) ac_optarg=yes ;;
  1368. esac
  1369. # Accept the important Cygnus configure options, so we can diagnose typos.
  1370. case $ac_dashdash$ac_option in
  1371. --)
  1372. ac_dashdash=yes ;;
  1373. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1374. ac_prev=bindir ;;
  1375. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1376. bindir=$ac_optarg ;;
  1377. -build | --build | --buil | --bui | --bu)
  1378. ac_prev=build_alias ;;
  1379. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1380. build_alias=$ac_optarg ;;
  1381. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1382. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1383. ac_prev=cache_file ;;
  1384. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1385. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1386. cache_file=$ac_optarg ;;
  1387. --config-cache | -C)
  1388. cache_file=config.cache ;;
  1389. -datadir | --datadir | --datadi | --datad)
  1390. ac_prev=datadir ;;
  1391. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1392. datadir=$ac_optarg ;;
  1393. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1394. | --dataroo | --dataro | --datar)
  1395. ac_prev=datarootdir ;;
  1396. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1397. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1398. datarootdir=$ac_optarg ;;
  1399. -disable-* | --disable-*)
  1400. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1401. # Reject names that are not valid shell variable names.
  1402. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1403. as_fn_error $? "invalid feature name: $ac_useropt"
  1404. ac_useropt_orig=$ac_useropt
  1405. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1406. case $ac_user_opts in
  1407. *"
  1408. "enable_$ac_useropt"
  1409. "*) ;;
  1410. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1411. ac_unrecognized_sep=', ';;
  1412. esac
  1413. eval enable_$ac_useropt=no ;;
  1414. -docdir | --docdir | --docdi | --doc | --do)
  1415. ac_prev=docdir ;;
  1416. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1417. docdir=$ac_optarg ;;
  1418. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1419. ac_prev=dvidir ;;
  1420. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1421. dvidir=$ac_optarg ;;
  1422. -enable-* | --enable-*)
  1423. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1424. # Reject names that are not valid shell variable names.
  1425. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1426. as_fn_error $? "invalid feature name: $ac_useropt"
  1427. ac_useropt_orig=$ac_useropt
  1428. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1429. case $ac_user_opts in
  1430. *"
  1431. "enable_$ac_useropt"
  1432. "*) ;;
  1433. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1434. ac_unrecognized_sep=', ';;
  1435. esac
  1436. eval enable_$ac_useropt=\$ac_optarg ;;
  1437. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1438. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1439. | --exec | --exe | --ex)
  1440. ac_prev=exec_prefix ;;
  1441. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1442. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1443. | --exec=* | --exe=* | --ex=*)
  1444. exec_prefix=$ac_optarg ;;
  1445. -gas | --gas | --ga | --g)
  1446. # Obsolete; use --with-gas.
  1447. with_gas=yes ;;
  1448. -help | --help | --hel | --he | -h)
  1449. ac_init_help=long ;;
  1450. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1451. ac_init_help=recursive ;;
  1452. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1453. ac_init_help=short ;;
  1454. -host | --host | --hos | --ho)
  1455. ac_prev=host_alias ;;
  1456. -host=* | --host=* | --hos=* | --ho=*)
  1457. host_alias=$ac_optarg ;;
  1458. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1459. ac_prev=htmldir ;;
  1460. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1461. | --ht=*)
  1462. htmldir=$ac_optarg ;;
  1463. -includedir | --includedir | --includedi | --included | --include \
  1464. | --includ | --inclu | --incl | --inc)
  1465. ac_prev=includedir ;;
  1466. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1467. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1468. includedir=$ac_optarg ;;
  1469. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1470. ac_prev=infodir ;;
  1471. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1472. infodir=$ac_optarg ;;
  1473. -libdir | --libdir | --libdi | --libd)
  1474. ac_prev=libdir ;;
  1475. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1476. libdir=$ac_optarg ;;
  1477. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1478. | --libexe | --libex | --libe)
  1479. ac_prev=libexecdir ;;
  1480. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1481. | --libexe=* | --libex=* | --libe=*)
  1482. libexecdir=$ac_optarg ;;
  1483. -localedir | --localedir | --localedi | --localed | --locale)
  1484. ac_prev=localedir ;;
  1485. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1486. localedir=$ac_optarg ;;
  1487. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1488. | --localstate | --localstat | --localsta | --localst | --locals)
  1489. ac_prev=localstatedir ;;
  1490. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1491. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1492. localstatedir=$ac_optarg ;;
  1493. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1494. ac_prev=mandir ;;
  1495. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1496. mandir=$ac_optarg ;;
  1497. -nfp | --nfp | --nf)
  1498. # Obsolete; use --without-fp.
  1499. with_fp=no ;;
  1500. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1501. | --no-cr | --no-c | -n)
  1502. no_create=yes ;;
  1503. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1504. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1505. no_recursion=yes ;;
  1506. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1507. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1508. | --oldin | --oldi | --old | --ol | --o)
  1509. ac_prev=oldincludedir ;;
  1510. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1511. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1512. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1513. oldincludedir=$ac_optarg ;;
  1514. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1515. ac_prev=prefix ;;
  1516. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1517. prefix=$ac_optarg ;;
  1518. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1519. | --program-pre | --program-pr | --program-p)
  1520. ac_prev=program_prefix ;;
  1521. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1522. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1523. program_prefix=$ac_optarg ;;
  1524. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1525. | --program-suf | --program-su | --program-s)
  1526. ac_prev=program_suffix ;;
  1527. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1528. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1529. program_suffix=$ac_optarg ;;
  1530. -program-transform-name | --program-transform-name \
  1531. | --program-transform-nam | --program-transform-na \
  1532. | --program-transform-n | --program-transform- \
  1533. | --program-transform | --program-transfor \
  1534. | --program-transfo | --program-transf \
  1535. | --program-trans | --program-tran \
  1536. | --progr-tra | --program-tr | --program-t)
  1537. ac_prev=program_transform_name ;;
  1538. -program-transform-name=* | --program-transform-name=* \
  1539. | --program-transform-nam=* | --program-transform-na=* \
  1540. | --program-transform-n=* | --program-transform-=* \
  1541. | --program-transform=* | --program-transfor=* \
  1542. | --program-transfo=* | --program-transf=* \
  1543. | --program-trans=* | --program-tran=* \
  1544. | --progr-tra=* | --program-tr=* | --program-t=*)
  1545. program_transform_name=$ac_optarg ;;
  1546. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1547. ac_prev=pdfdir ;;
  1548. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1549. pdfdir=$ac_optarg ;;
  1550. -psdir | --psdir | --psdi | --psd | --ps)
  1551. ac_prev=psdir ;;
  1552. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1553. psdir=$ac_optarg ;;
  1554. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1555. | -silent | --silent | --silen | --sile | --sil)
  1556. silent=yes ;;
  1557. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1558. ac_prev=sbindir ;;
  1559. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1560. | --sbi=* | --sb=*)
  1561. sbindir=$ac_optarg ;;
  1562. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1563. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1564. | --sharedst | --shareds | --shared | --share | --shar \
  1565. | --sha | --sh)
  1566. ac_prev=sharedstatedir ;;
  1567. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1568. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1569. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1570. | --sha=* | --sh=*)
  1571. sharedstatedir=$ac_optarg ;;
  1572. -site | --site | --sit)
  1573. ac_prev=site ;;
  1574. -site=* | --site=* | --sit=*)
  1575. site=$ac_optarg ;;
  1576. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1577. ac_prev=srcdir ;;
  1578. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1579. srcdir=$ac_optarg ;;
  1580. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1581. | --syscon | --sysco | --sysc | --sys | --sy)
  1582. ac_prev=sysconfdir ;;
  1583. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1584. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1585. sysconfdir=$ac_optarg ;;
  1586. -target | --target | --targe | --targ | --tar | --ta | --t)
  1587. ac_prev=target_alias ;;
  1588. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1589. target_alias=$ac_optarg ;;
  1590. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1591. verbose=yes ;;
  1592. -version | --version | --versio | --versi | --vers | -V)
  1593. ac_init_version=: ;;
  1594. -with-* | --with-*)
  1595. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1596. # Reject names that are not valid shell variable names.
  1597. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1598. as_fn_error $? "invalid package name: $ac_useropt"
  1599. ac_useropt_orig=$ac_useropt
  1600. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1601. case $ac_user_opts in
  1602. *"
  1603. "with_$ac_useropt"
  1604. "*) ;;
  1605. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1606. ac_unrecognized_sep=', ';;
  1607. esac
  1608. eval with_$ac_useropt=\$ac_optarg ;;
  1609. -without-* | --without-*)
  1610. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1611. # Reject names that are not valid shell variable names.
  1612. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1613. as_fn_error $? "invalid package name: $ac_useropt"
  1614. ac_useropt_orig=$ac_useropt
  1615. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1616. case $ac_user_opts in
  1617. *"
  1618. "with_$ac_useropt"
  1619. "*) ;;
  1620. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1621. ac_unrecognized_sep=', ';;
  1622. esac
  1623. eval with_$ac_useropt=no ;;
  1624. --x)
  1625. # Obsolete; use --with-x.
  1626. with_x=yes ;;
  1627. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1628. | --x-incl | --x-inc | --x-in | --x-i)
  1629. ac_prev=x_includes ;;
  1630. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1631. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1632. x_includes=$ac_optarg ;;
  1633. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1634. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1635. ac_prev=x_libraries ;;
  1636. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1637. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1638. x_libraries=$ac_optarg ;;
  1639. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1640. Try \`$0 --help' for more information"
  1641. ;;
  1642. *=*)
  1643. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1644. # Reject names that are not valid shell variable names.
  1645. case $ac_envvar in #(
  1646. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1647. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1648. esac
  1649. eval $ac_envvar=\$ac_optarg
  1650. export $ac_envvar ;;
  1651. *)
  1652. # FIXME: should be removed in autoconf 3.0.
  1653. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1654. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1655. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1656. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1657. ;;
  1658. esac
  1659. done
  1660. if test -n "$ac_prev"; then
  1661. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1662. as_fn_error $? "missing argument to $ac_option"
  1663. fi
  1664. if test -n "$ac_unrecognized_opts"; then
  1665. case $enable_option_checking in
  1666. no) ;;
  1667. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1668. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1669. esac
  1670. fi
  1671. # Check all directory arguments for consistency.
  1672. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1673. datadir sysconfdir sharedstatedir localstatedir includedir \
  1674. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1675. libdir localedir mandir
  1676. do
  1677. eval ac_val=\$$ac_var
  1678. # Remove trailing slashes.
  1679. case $ac_val in
  1680. */ )
  1681. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1682. eval $ac_var=\$ac_val;;
  1683. esac
  1684. # Be sure to have absolute directory names.
  1685. case $ac_val in
  1686. [\\/$]* | ?:[\\/]* ) continue;;
  1687. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1688. esac
  1689. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1690. done
  1691. # There might be people who depend on the old broken behavior: `$host'
  1692. # used to hold the argument of --host etc.
  1693. # FIXME: To remove some day.
  1694. build=$build_alias
  1695. host=$host_alias
  1696. target=$target_alias
  1697. # FIXME: To remove some day.
  1698. if test "x$host_alias" != x; then
  1699. if test "x$build_alias" = x; then
  1700. cross_compiling=maybe
  1701. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1702. If a cross compiler is detected then cross compile mode will be used" >&2
  1703. elif test "x$build_alias" != "x$host_alias"; then
  1704. cross_compiling=yes
  1705. fi
  1706. fi
  1707. ac_tool_prefix=
  1708. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1709. test "$silent" = yes && exec 6>/dev/null
  1710. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1711. ac_ls_di=`ls -di .` &&
  1712. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1713. as_fn_error $? "working directory cannot be determined"
  1714. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1715. as_fn_error $? "pwd does not report name of working directory"
  1716. # Find the source files, if location was not specified.
  1717. if test -z "$srcdir"; then
  1718. ac_srcdir_defaulted=yes
  1719. # Try the directory containing this script, then the parent directory.
  1720. ac_confdir=`$as_dirname -- "$as_myself" ||
  1721. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1722. X"$as_myself" : 'X\(//\)[^/]' \| \
  1723. X"$as_myself" : 'X\(//\)$' \| \
  1724. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1725. $as_echo X"$as_myself" |
  1726. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1727. s//\1/
  1728. q
  1729. }
  1730. /^X\(\/\/\)[^/].*/{
  1731. s//\1/
  1732. q
  1733. }
  1734. /^X\(\/\/\)$/{
  1735. s//\1/
  1736. q
  1737. }
  1738. /^X\(\/\).*/{
  1739. s//\1/
  1740. q
  1741. }
  1742. s/.*/./; q'`
  1743. srcdir=$ac_confdir
  1744. if test ! -r "$srcdir/$ac_unique_file"; then
  1745. srcdir=..
  1746. fi
  1747. else
  1748. ac_srcdir_defaulted=no
  1749. fi
  1750. if test ! -r "$srcdir/$ac_unique_file"; then
  1751. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1752. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1753. fi
  1754. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1755. ac_abs_confdir=`(
  1756. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1757. pwd)`
  1758. # When building in place, set srcdir=.
  1759. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1760. srcdir=.
  1761. fi
  1762. # Remove unnecessary trailing slashes from srcdir.
  1763. # Double slashes in file names in object file debugging info
  1764. # mess up M-x gdb in Emacs.
  1765. case $srcdir in
  1766. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1767. esac
  1768. for ac_var in $ac_precious_vars; do
  1769. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1770. eval ac_env_${ac_var}_value=\$${ac_var}
  1771. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1772. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1773. done
  1774. #
  1775. # Report the --help message.
  1776. #
  1777. if test "$ac_init_help" = "long"; then
  1778. # Omit some internal or obsolete options to make the list less imposing.
  1779. # This message is too long to be a string in the A/UX 3.1 sh.
  1780. cat <<_ACEOF
  1781. \`configure' configures emacs 24.2 to adapt to many kinds of systems.
  1782. Usage: $0 [OPTION]... [VAR=VALUE]...
  1783. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1784. VAR=VALUE. See below for descriptions of some of the useful variables.
  1785. Defaults for the options are specified in brackets.
  1786. Configuration:
  1787. -h, --help display this help and exit
  1788. --help=short display options specific to this package
  1789. --help=recursive display the short help of all the included packages
  1790. -V, --version display version information and exit
  1791. -q, --quiet, --silent do not print \`checking ...' messages
  1792. --cache-file=FILE cache test results in FILE [disabled]
  1793. -C, --config-cache alias for \`--cache-file=config.cache'
  1794. -n, --no-create do not create output files
  1795. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1796. Installation directories:
  1797. --prefix=PREFIX install architecture-independent files in PREFIX
  1798. [$ac_default_prefix]
  1799. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1800. [PREFIX]
  1801. By default, \`make install' will install all the files in
  1802. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1803. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1804. for instance \`--prefix=\$HOME'.
  1805. For better control, use the options below.
  1806. Fine tuning of the installation directories:
  1807. --bindir=DIR user executables [EPREFIX/bin]
  1808. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1809. --libexecdir=DIR program executables [EPREFIX/libexec]
  1810. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1811. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1812. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1813. --libdir=DIR object code libraries [EPREFIX/lib]
  1814. --includedir=DIR C header files [PREFIX/include]
  1815. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1816. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1817. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1818. --infodir=DIR info documentation [DATAROOTDIR/info]
  1819. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1820. --mandir=DIR man documentation [DATAROOTDIR/man]
  1821. --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
  1822. --htmldir=DIR html documentation [DOCDIR]
  1823. --dvidir=DIR dvi documentation [DOCDIR]
  1824. --pdfdir=DIR pdf documentation [DOCDIR]
  1825. --psdir=DIR ps documentation [DOCDIR]
  1826. _ACEOF
  1827. cat <<\_ACEOF
  1828. Program names:
  1829. --program-prefix=PREFIX prepend PREFIX to installed program names
  1830. --program-suffix=SUFFIX append SUFFIX to installed program names
  1831. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1832. X features:
  1833. --x-includes=DIR X include files are in DIR
  1834. --x-libraries=DIR X library files are in DIR
  1835. System types:
  1836. --build=BUILD configure for building on BUILD [guessed]
  1837. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1838. _ACEOF
  1839. fi
  1840. if test -n "$ac_init_help"; then
  1841. case $ac_init_help in
  1842. short | recursive ) echo "Configuration of emacs 24.2:";;
  1843. esac
  1844. cat <<\_ACEOF
  1845. Optional Features:
  1846. --disable-option-checking ignore unrecognized --enable/--with options
  1847. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1848. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1849. --disable-ns-self-contained
  1850. disable self contained build under NeXTstep
  1851. --enable-asserts compile code with asserts enabled
  1852. --disable-maintainer-mode
  1853. disable make rules and dependencies not useful (and
  1854. sometimes confusing) to the casual installer
  1855. --enable-locallisppath=PATH
  1856. directories Emacs should search for lisp files
  1857. specific to this site
  1858. --enable-checking[=LIST]
  1859. enable expensive run-time checks. With LIST, enable
  1860. only specific categories of checks. Categories are:
  1861. all,yes,no. Flags are: stringbytes, stringoverrun,
  1862. stringfreelist, xmallocoverrun, conslist
  1863. --enable-use-lisp-union-type
  1864. use a union for the Lisp_Object data type. This is
  1865. only useful for development for catching certain
  1866. types of bugs.
  1867. --enable-profiling build emacs with profiling support. This might not
  1868. work on all platforms
  1869. --enable-autodepend automatically generate dependencies to .h-files.
  1870. Requires GNU Make and Gcc. Enabled if GNU Make and
  1871. Gcc is found
  1872. --disable-dependency-tracking speeds up one-time build
  1873. --enable-dependency-tracking do not reject slow dependency extractors
  1874. --disable-largefile omit support for large files
  1875. Optional Packages:
  1876. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1877. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1878. --without-pop don't support POP mail retrieval with movemail
  1879. --with-kerberos support Kerberos-authenticated POP
  1880. --with-kerberos5 support Kerberos version 5 authenticated POP
  1881. --with-hesiod support Hesiod to get the POP server host
  1882. --with-mmdf support MMDF mailboxes
  1883. --with-mail-unlink unlink, rather than empty, mail spool after reading
  1884. --with-mailhost=HOSTNAME
  1885. string giving default POP mail host
  1886. --without-sound don't compile with sound support
  1887. --without-sync-input process async input synchronously
  1888. --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
  1889. lucid or athena, motif, no)
  1890. --with-wide-int prefer wide Emacs integers (typically 62-bit)
  1891. --without-xpm don't compile with XPM image support
  1892. --without-jpeg don't compile with JPEG image support
  1893. --without-tiff don't compile with TIFF image support
  1894. --without-gif don't compile with GIF image support
  1895. --without-png don't compile with PNG image support
  1896. --without-rsvg don't compile with SVG image support
  1897. --without-xml2 don't compile with XML parsing support
  1898. --without-imagemagick don't compile with ImageMagick image support
  1899. --without-xft don't use XFT for anti aliased fonts
  1900. --without-libotf don't use libotf for OpenType font support
  1901. --without-m17n-flt don't use m17n-flt for text shaping
  1902. --without-toolkit-scroll-bars
  1903. don't use Motif or Xaw3d scroll bars
  1904. --without-xaw3d don't use Xaw3d
  1905. --without-xim don't use X11 XIM
  1906. --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
  1907. --without-gpm don't use -lgpm for mouse support on a GNU/Linux
  1908. console
  1909. --without-dbus don't compile with D-Bus support
  1910. --without-gconf don't compile with GConf support
  1911. --without-gsettings don't compile with GSettings support
  1912. --without-selinux don't compile with SELinux support
  1913. --without-gnutls don't use -lgnutls for SSL/TLS support
  1914. --without-makeinfo don't require makeinfo for building manuals
  1915. --without-compress-info don't compress the installed Info pages
  1916. --with-pkg-config-prog=PATH
  1917. path to pkg-config for finding GTK and librsvg
  1918. --with-crt-dir=DIR directory containing crtn.o etc. The default is
  1919. /usr/lib, or /usr/lib64 on some platforms.
  1920. --with-gameuser=USER user for shared game score files
  1921. --with-gnustep-conf=PATH
  1922. path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
  1923. or /etc/GNUstep/GNUstep.conf
  1924. --with-x use the X Window System
  1925. Some influential environment variables:
  1926. CC C compiler command
  1927. CFLAGS C compiler flags
  1928. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1929. nonstandard directory <lib dir>
  1930. LIBS libraries to pass to the linker, e.g. -l<library>
  1931. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1932. you have headers in a nonstandard directory <include dir>
  1933. CPP C preprocessor
  1934. XMKMF Path to xmkmf, Makefile generator for X Window System
  1935. Use these variables to override the choices made by `configure' or to help
  1936. it to find libraries and programs with nonstandard names/locations.
  1937. Report bugs to the package provider.
  1938. _ACEOF
  1939. ac_status=$?
  1940. fi
  1941. if test "$ac_init_help" = "recursive"; then
  1942. # If there are subdirs, report their specific --help.
  1943. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1944. test -d "$ac_dir" ||
  1945. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1946. continue
  1947. ac_builddir=.
  1948. case "$ac_dir" in
  1949. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1950. *)
  1951. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1952. # A ".." for each directory in $ac_dir_suffix.
  1953. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1954. case $ac_top_builddir_sub in
  1955. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1956. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1957. esac ;;
  1958. esac
  1959. ac_abs_top_builddir=$ac_pwd
  1960. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1961. # for backward compatibility:
  1962. ac_top_builddir=$ac_top_build_prefix
  1963. case $srcdir in
  1964. .) # We are building in place.
  1965. ac_srcdir=.
  1966. ac_top_srcdir=$ac_top_builddir_sub
  1967. ac_abs_top_srcdir=$ac_pwd ;;
  1968. [\\/]* | ?:[\\/]* ) # Absolute name.
  1969. ac_srcdir=$srcdir$ac_dir_suffix;
  1970. ac_top_srcdir=$srcdir
  1971. ac_abs_top_srcdir=$srcdir ;;
  1972. *) # Relative name.
  1973. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1974. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1975. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1976. esac
  1977. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1978. cd "$ac_dir" || { ac_status=$?; continue; }
  1979. # Check for guested configure.
  1980. if test -f "$ac_srcdir/configure.gnu"; then
  1981. echo &&
  1982. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1983. elif test -f "$ac_srcdir/configure"; then
  1984. echo &&
  1985. $SHELL "$ac_srcdir/configure" --help=recursive
  1986. else
  1987. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1988. fi || ac_status=$?
  1989. cd "$ac_pwd" || { ac_status=$?; break; }
  1990. done
  1991. fi
  1992. test -n "$ac_init_help" && exit $ac_status
  1993. if $ac_init_version; then
  1994. cat <<\_ACEOF
  1995. emacs configure 24.2
  1996. generated by GNU Autoconf 2.68
  1997. Copyright (C) 2010 Free Software Foundation, Inc.
  1998. This configure script is free software; the Free Software Foundation
  1999. gives unlimited permission to copy, distribute and modify it.
  2000. _ACEOF
  2001. exit
  2002. fi
  2003. ## ------------------------ ##
  2004. ## Autoconf initialization. ##
  2005. ## ------------------------ ##
  2006. # ac_fn_c_try_compile LINENO
  2007. # --------------------------
  2008. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2009. ac_fn_c_try_compile ()
  2010. {
  2011. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2012. rm -f conftest.$ac_objext
  2013. if { { ac_try="$ac_compile"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. $as_echo "$ac_try_echo"; } >&5
  2020. (eval "$ac_compile") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } && {
  2029. test -z "$ac_c_werror_flag" ||
  2030. test ! -s conftest.err
  2031. } && test -s conftest.$ac_objext; then :
  2032. ac_retval=0
  2033. else
  2034. $as_echo "$as_me: failed program was:" >&5
  2035. sed 's/^/| /' conftest.$ac_ext >&5
  2036. ac_retval=1
  2037. fi
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. as_fn_set_status $ac_retval
  2040. } # ac_fn_c_try_compile
  2041. # ac_fn_c_try_cpp LINENO
  2042. # ----------------------
  2043. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2044. ac_fn_c_try_cpp ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2048. case "(($ac_try" in
  2049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2050. *) ac_try_echo=$ac_try;;
  2051. esac
  2052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2053. $as_echo "$ac_try_echo"; } >&5
  2054. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2055. ac_status=$?
  2056. if test -s conftest.err; then
  2057. grep -v '^ *+' conftest.err >conftest.er1
  2058. cat conftest.er1 >&5
  2059. mv -f conftest.er1 conftest.err
  2060. fi
  2061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2062. test $ac_status = 0; } > conftest.i && {
  2063. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2064. test ! -s conftest.err
  2065. }; then :
  2066. ac_retval=0
  2067. else
  2068. $as_echo "$as_me: failed program was:" >&5
  2069. sed 's/^/| /' conftest.$ac_ext >&5
  2070. ac_retval=1
  2071. fi
  2072. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2073. as_fn_set_status $ac_retval
  2074. } # ac_fn_c_try_cpp
  2075. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2076. # -------------------------------------------------------
  2077. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2078. # the include files in INCLUDES and setting the cache variable VAR
  2079. # accordingly.
  2080. ac_fn_c_check_header_mongrel ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. if eval \${$3+:} false; then :
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2085. $as_echo_n "checking for $2... " >&6; }
  2086. if eval \${$3+:} false; then :
  2087. $as_echo_n "(cached) " >&6
  2088. fi
  2089. eval ac_res=\$$3
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2091. $as_echo "$ac_res" >&6; }
  2092. else
  2093. # Is the header compilable?
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2095. $as_echo_n "checking $2 usability... " >&6; }
  2096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2097. /* end confdefs.h. */
  2098. $4
  2099. #include <$2>
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. ac_header_compiler=yes
  2103. else
  2104. ac_header_compiler=no
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2108. $as_echo "$ac_header_compiler" >&6; }
  2109. # Is the header present?
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2111. $as_echo_n "checking $2 presence... " >&6; }
  2112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h. */
  2114. #include <$2>
  2115. _ACEOF
  2116. if ac_fn_c_try_cpp "$LINENO"; then :
  2117. ac_header_preproc=yes
  2118. else
  2119. ac_header_preproc=no
  2120. fi
  2121. rm -f conftest.err conftest.i conftest.$ac_ext
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2123. $as_echo "$ac_header_preproc" >&6; }
  2124. # So? What about this header?
  2125. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2126. yes:no: )
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2128. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2130. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2131. ;;
  2132. no:yes:* )
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2134. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2136. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2138. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2140. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2142. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2143. ;;
  2144. esac
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2146. $as_echo_n "checking for $2... " >&6; }
  2147. if eval \${$3+:} false; then :
  2148. $as_echo_n "(cached) " >&6
  2149. else
  2150. eval "$3=\$ac_header_compiler"
  2151. fi
  2152. eval ac_res=\$$3
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2154. $as_echo "$ac_res" >&6; }
  2155. fi
  2156. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2157. } # ac_fn_c_check_header_mongrel
  2158. # ac_fn_c_try_run LINENO
  2159. # ----------------------
  2160. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2161. # that executables *can* be run.
  2162. ac_fn_c_try_run ()
  2163. {
  2164. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2165. if { { ac_try="$ac_link"
  2166. case "(($ac_try" in
  2167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2168. *) ac_try_echo=$ac_try;;
  2169. esac
  2170. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2171. $as_echo "$ac_try_echo"; } >&5
  2172. (eval "$ac_link") 2>&5
  2173. ac_status=$?
  2174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2175. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2176. { { case "(($ac_try" in
  2177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2178. *) ac_try_echo=$ac_try;;
  2179. esac
  2180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2181. $as_echo "$ac_try_echo"; } >&5
  2182. (eval "$ac_try") 2>&5
  2183. ac_status=$?
  2184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2185. test $ac_status = 0; }; }; then :
  2186. ac_retval=0
  2187. else
  2188. $as_echo "$as_me: program exited with status $ac_status" >&5
  2189. $as_echo "$as_me: failed program was:" >&5
  2190. sed 's/^/| /' conftest.$ac_ext >&5
  2191. ac_retval=$ac_status
  2192. fi
  2193. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2194. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2195. as_fn_set_status $ac_retval
  2196. } # ac_fn_c_try_run
  2197. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2198. # -------------------------------------------------------
  2199. # Tests whether HEADER exists and can be compiled using the include files in
  2200. # INCLUDES, setting the cache variable VAR accordingly.
  2201. ac_fn_c_check_header_compile ()
  2202. {
  2203. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2205. $as_echo_n "checking for $2... " >&6; }
  2206. if eval \${$3+:} false; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2210. /* end confdefs.h. */
  2211. $4
  2212. #include <$2>
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. eval "$3=yes"
  2216. else
  2217. eval "$3=no"
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. eval ac_res=\$$3
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2223. $as_echo "$ac_res" >&6; }
  2224. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2225. } # ac_fn_c_check_header_compile
  2226. # ac_fn_c_try_link LINENO
  2227. # -----------------------
  2228. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2229. ac_fn_c_try_link ()
  2230. {
  2231. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2232. rm -f conftest.$ac_objext conftest$ac_exeext
  2233. if { { ac_try="$ac_link"
  2234. case "(($ac_try" in
  2235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2236. *) ac_try_echo=$ac_try;;
  2237. esac
  2238. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2239. $as_echo "$ac_try_echo"; } >&5
  2240. (eval "$ac_link") 2>conftest.err
  2241. ac_status=$?
  2242. if test -s conftest.err; then
  2243. grep -v '^ *+' conftest.err >conftest.er1
  2244. cat conftest.er1 >&5
  2245. mv -f conftest.er1 conftest.err
  2246. fi
  2247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2248. test $ac_status = 0; } && {
  2249. test -z "$ac_c_werror_flag" ||
  2250. test ! -s conftest.err
  2251. } && test -s conftest$ac_exeext && {
  2252. test "$cross_compiling" = yes ||
  2253. $as_test_x conftest$ac_exeext
  2254. }; then :
  2255. ac_retval=0
  2256. else
  2257. $as_echo "$as_me: failed program was:" >&5
  2258. sed 's/^/| /' conftest.$ac_ext >&5
  2259. ac_retval=1
  2260. fi
  2261. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2262. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2263. # interfere with the next link command; also delete a directory that is
  2264. # left behind by Apple's compiler. We do this before executing the actions.
  2265. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2266. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2267. as_fn_set_status $ac_retval
  2268. } # ac_fn_c_try_link
  2269. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2270. # ---------------------------------------------
  2271. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2272. # accordingly.
  2273. ac_fn_c_check_decl ()
  2274. {
  2275. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2276. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2277. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2279. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2280. if eval \${$3+:} false; then :
  2281. $as_echo_n "(cached) " >&6
  2282. else
  2283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2284. /* end confdefs.h. */
  2285. $4
  2286. int
  2287. main ()
  2288. {
  2289. #ifndef $as_decl_name
  2290. #ifdef __cplusplus
  2291. (void) $as_decl_use;
  2292. #else
  2293. (void) $as_decl_name;
  2294. #endif
  2295. #endif
  2296. ;
  2297. return 0;
  2298. }
  2299. _ACEOF
  2300. if ac_fn_c_try_compile "$LINENO"; then :
  2301. eval "$3=yes"
  2302. else
  2303. eval "$3=no"
  2304. fi
  2305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2306. fi
  2307. eval ac_res=\$$3
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2309. $as_echo "$ac_res" >&6; }
  2310. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2311. } # ac_fn_c_check_decl
  2312. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  2313. # ----------------------------------------------
  2314. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  2315. ac_fn_c_check_header_preproc ()
  2316. {
  2317. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2319. $as_echo_n "checking for $2... " >&6; }
  2320. if eval \${$3+:} false; then :
  2321. $as_echo_n "(cached) " >&6
  2322. else
  2323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2324. /* end confdefs.h. */
  2325. #include <$2>
  2326. _ACEOF
  2327. if ac_fn_c_try_cpp "$LINENO"; then :
  2328. eval "$3=yes"
  2329. else
  2330. eval "$3=no"
  2331. fi
  2332. rm -f conftest.err conftest.i conftest.$ac_ext
  2333. fi
  2334. eval ac_res=\$$3
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2336. $as_echo "$ac_res" >&6; }
  2337. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2338. } # ac_fn_c_check_header_preproc
  2339. # ac_fn_c_check_func LINENO FUNC VAR
  2340. # ----------------------------------
  2341. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2342. ac_fn_c_check_func ()
  2343. {
  2344. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2346. $as_echo_n "checking for $2... " >&6; }
  2347. if eval \${$3+:} false; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2351. /* end confdefs.h. */
  2352. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2353. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2354. #define $2 innocuous_$2
  2355. /* System header to define __stub macros and hopefully few prototypes,
  2356. which can conflict with char $2 (); below.
  2357. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2358. <limits.h> exists even on freestanding compilers. */
  2359. #ifdef __STDC__
  2360. # include <limits.h>
  2361. #else
  2362. # include <assert.h>
  2363. #endif
  2364. #undef $2
  2365. /* Override any GCC internal prototype to avoid an error.
  2366. Use char because int might match the return type of a GCC
  2367. builtin and then its argument prototype would still apply. */
  2368. #ifdef __cplusplus
  2369. extern "C"
  2370. #endif
  2371. char $2 ();
  2372. /* The GNU C library defines this for functions which it implements
  2373. to always fail with ENOSYS. Some functions are actually named
  2374. something starting with __ and the normal name is an alias. */
  2375. #if defined __stub_$2 || defined __stub___$2
  2376. choke me
  2377. #endif
  2378. int
  2379. main ()
  2380. {
  2381. return $2 ();
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. if ac_fn_c_try_link "$LINENO"; then :
  2387. eval "$3=yes"
  2388. else
  2389. eval "$3=no"
  2390. fi
  2391. rm -f core conftest.err conftest.$ac_objext \
  2392. conftest$ac_exeext conftest.$ac_ext
  2393. fi
  2394. eval ac_res=\$$3
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2396. $as_echo "$ac_res" >&6; }
  2397. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2398. } # ac_fn_c_check_func
  2399. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2400. # ----------------------------------------------------
  2401. # Tries to find if the field MEMBER exists in type AGGR, after including
  2402. # INCLUDES, setting cache variable VAR accordingly.
  2403. ac_fn_c_check_member ()
  2404. {
  2405. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2407. $as_echo_n "checking for $2.$3... " >&6; }
  2408. if eval \${$4+:} false; then :
  2409. $as_echo_n "(cached) " >&6
  2410. else
  2411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2412. /* end confdefs.h. */
  2413. $5
  2414. int
  2415. main ()
  2416. {
  2417. static $2 ac_aggr;
  2418. if (ac_aggr.$3)
  2419. return 0;
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. if ac_fn_c_try_compile "$LINENO"; then :
  2425. eval "$4=yes"
  2426. else
  2427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2428. /* end confdefs.h. */
  2429. $5
  2430. int
  2431. main ()
  2432. {
  2433. static $2 ac_aggr;
  2434. if (sizeof ac_aggr.$3)
  2435. return 0;
  2436. ;
  2437. return 0;
  2438. }
  2439. _ACEOF
  2440. if ac_fn_c_try_compile "$LINENO"; then :
  2441. eval "$4=yes"
  2442. else
  2443. eval "$4=no"
  2444. fi
  2445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2446. fi
  2447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2448. fi
  2449. eval ac_res=\$$4
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2451. $as_echo "$ac_res" >&6; }
  2452. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2453. } # ac_fn_c_check_member
  2454. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2455. # -------------------------------------------
  2456. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2457. # variable VAR accordingly.
  2458. ac_fn_c_check_type ()
  2459. {
  2460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2462. $as_echo_n "checking for $2... " >&6; }
  2463. if eval \${$3+:} false; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. eval "$3=no"
  2467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2468. /* end confdefs.h. */
  2469. $4
  2470. int
  2471. main ()
  2472. {
  2473. if (sizeof ($2))
  2474. return 0;
  2475. ;
  2476. return 0;
  2477. }
  2478. _ACEOF
  2479. if ac_fn_c_try_compile "$LINENO"; then :
  2480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2481. /* end confdefs.h. */
  2482. $4
  2483. int
  2484. main ()
  2485. {
  2486. if (sizeof (($2)))
  2487. return 0;
  2488. ;
  2489. return 0;
  2490. }
  2491. _ACEOF
  2492. if ac_fn_c_try_compile "$LINENO"; then :
  2493. else
  2494. eval "$3=yes"
  2495. fi
  2496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2497. fi
  2498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. eval ac_res=\$$3
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2502. $as_echo "$ac_res" >&6; }
  2503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2504. } # ac_fn_c_check_type
  2505. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2506. # --------------------------------------------
  2507. # Tries to find the compile-time value of EXPR in a program that includes
  2508. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2509. # computed
  2510. ac_fn_c_compute_int ()
  2511. {
  2512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2513. if test "$cross_compiling" = yes; then
  2514. # Depending upon the size, compute the lo and hi bounds.
  2515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2516. /* end confdefs.h. */
  2517. $4
  2518. int
  2519. main ()
  2520. {
  2521. static int test_array [1 - 2 * !(($2) >= 0)];
  2522. test_array [0] = 0
  2523. ;
  2524. return 0;
  2525. }
  2526. _ACEOF
  2527. if ac_fn_c_try_compile "$LINENO"; then :
  2528. ac_lo=0 ac_mid=0
  2529. while :; do
  2530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2531. /* end confdefs.h. */
  2532. $4
  2533. int
  2534. main ()
  2535. {
  2536. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2537. test_array [0] = 0
  2538. ;
  2539. return 0;
  2540. }
  2541. _ACEOF
  2542. if ac_fn_c_try_compile "$LINENO"; then :
  2543. ac_hi=$ac_mid; break
  2544. else
  2545. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2546. if test $ac_lo -le $ac_mid; then
  2547. ac_lo= ac_hi=
  2548. break
  2549. fi
  2550. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2551. fi
  2552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2553. done
  2554. else
  2555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2556. /* end confdefs.h. */
  2557. $4
  2558. int
  2559. main ()
  2560. {
  2561. static int test_array [1 - 2 * !(($2) < 0)];
  2562. test_array [0] = 0
  2563. ;
  2564. return 0;
  2565. }
  2566. _ACEOF
  2567. if ac_fn_c_try_compile "$LINENO"; then :
  2568. ac_hi=-1 ac_mid=-1
  2569. while :; do
  2570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2571. /* end confdefs.h. */
  2572. $4
  2573. int
  2574. main ()
  2575. {
  2576. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2577. test_array [0] = 0
  2578. ;
  2579. return 0;
  2580. }
  2581. _ACEOF
  2582. if ac_fn_c_try_compile "$LINENO"; then :
  2583. ac_lo=$ac_mid; break
  2584. else
  2585. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2586. if test $ac_mid -le $ac_hi; then
  2587. ac_lo= ac_hi=
  2588. break
  2589. fi
  2590. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2591. fi
  2592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2593. done
  2594. else
  2595. ac_lo= ac_hi=
  2596. fi
  2597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2598. fi
  2599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2600. # Binary search between lo and hi bounds.
  2601. while test "x$ac_lo" != "x$ac_hi"; do
  2602. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2604. /* end confdefs.h. */
  2605. $4
  2606. int
  2607. main ()
  2608. {
  2609. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2610. test_array [0] = 0
  2611. ;
  2612. return 0;
  2613. }
  2614. _ACEOF
  2615. if ac_fn_c_try_compile "$LINENO"; then :
  2616. ac_hi=$ac_mid
  2617. else
  2618. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2619. fi
  2620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2621. done
  2622. case $ac_lo in #((
  2623. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2624. '') ac_retval=1 ;;
  2625. esac
  2626. else
  2627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2628. /* end confdefs.h. */
  2629. $4
  2630. static long int longval () { return $2; }
  2631. static unsigned long int ulongval () { return $2; }
  2632. #include <stdio.h>
  2633. #include <stdlib.h>
  2634. int
  2635. main ()
  2636. {
  2637. FILE *f = fopen ("conftest.val", "w");
  2638. if (! f)
  2639. return 1;
  2640. if (($2) < 0)
  2641. {
  2642. long int i = longval ();
  2643. if (i != ($2))
  2644. return 1;
  2645. fprintf (f, "%ld", i);
  2646. }
  2647. else
  2648. {
  2649. unsigned long int i = ulongval ();
  2650. if (i != ($2))
  2651. return 1;
  2652. fprintf (f, "%lu", i);
  2653. }
  2654. /* Do not output a trailing newline, as this causes \r\n confusion
  2655. on some platforms. */
  2656. return ferror (f) || fclose (f) != 0;
  2657. ;
  2658. return 0;
  2659. }
  2660. _ACEOF
  2661. if ac_fn_c_try_run "$LINENO"; then :
  2662. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2663. else
  2664. ac_retval=1
  2665. fi
  2666. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2667. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2668. rm -f conftest.val
  2669. fi
  2670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2671. as_fn_set_status $ac_retval
  2672. } # ac_fn_c_compute_int
  2673. cat >config.log <<_ACEOF
  2674. This file contains any messages produced by compilers while
  2675. running configure, to aid debugging if configure makes a mistake.
  2676. It was created by emacs $as_me 24.2, which was
  2677. generated by GNU Autoconf 2.68. Invocation command line was
  2678. $ $0 $@
  2679. _ACEOF
  2680. exec 5>>config.log
  2681. {
  2682. cat <<_ASUNAME
  2683. ## --------- ##
  2684. ## Platform. ##
  2685. ## --------- ##
  2686. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2687. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2688. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2689. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2690. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2691. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2692. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2693. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2694. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2695. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2696. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2697. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2698. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2699. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2700. _ASUNAME
  2701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2702. for as_dir in $PATH
  2703. do
  2704. IFS=$as_save_IFS
  2705. test -z "$as_dir" && as_dir=.
  2706. $as_echo "PATH: $as_dir"
  2707. done
  2708. IFS=$as_save_IFS
  2709. } >&5
  2710. cat >&5 <<_ACEOF
  2711. ## ----------- ##
  2712. ## Core tests. ##
  2713. ## ----------- ##
  2714. _ACEOF
  2715. # Keep a trace of the command line.
  2716. # Strip out --no-create and --no-recursion so they do not pile up.
  2717. # Strip out --silent because we don't want to record it for future runs.
  2718. # Also quote any args containing shell meta-characters.
  2719. # Make two passes to allow for proper duplicate-argument suppression.
  2720. ac_configure_args=
  2721. ac_configure_args0=
  2722. ac_configure_args1=
  2723. ac_must_keep_next=false
  2724. for ac_pass in 1 2
  2725. do
  2726. for ac_arg
  2727. do
  2728. case $ac_arg in
  2729. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2730. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2731. | -silent | --silent | --silen | --sile | --sil)
  2732. continue ;;
  2733. *\'*)
  2734. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2735. esac
  2736. case $ac_pass in
  2737. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2738. 2)
  2739. as_fn_append ac_configure_args1 " '$ac_arg'"
  2740. if test $ac_must_keep_next = true; then
  2741. ac_must_keep_next=false # Got value, back to normal.
  2742. else
  2743. case $ac_arg in
  2744. *=* | --config-cache | -C | -disable-* | --disable-* \
  2745. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2746. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2747. | -with-* | --with-* | -without-* | --without-* | --x)
  2748. case "$ac_configure_args0 " in
  2749. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2750. esac
  2751. ;;
  2752. -* ) ac_must_keep_next=true ;;
  2753. esac
  2754. fi
  2755. as_fn_append ac_configure_args " '$ac_arg'"
  2756. ;;
  2757. esac
  2758. done
  2759. done
  2760. { ac_configure_args0=; unset ac_configure_args0;}
  2761. { ac_configure_args1=; unset ac_configure_args1;}
  2762. # When interrupted or exit'd, cleanup temporary files, and complete
  2763. # config.log. We remove comments because anyway the quotes in there
  2764. # would cause problems or look ugly.
  2765. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2766. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2767. trap 'exit_status=$?
  2768. # Save into config.log some information that might help in debugging.
  2769. {
  2770. echo
  2771. $as_echo "## ---------------- ##
  2772. ## Cache variables. ##
  2773. ## ---------------- ##"
  2774. echo
  2775. # The following way of writing the cache mishandles newlines in values,
  2776. (
  2777. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2778. eval ac_val=\$$ac_var
  2779. case $ac_val in #(
  2780. *${as_nl}*)
  2781. case $ac_var in #(
  2782. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2783. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2784. esac
  2785. case $ac_var in #(
  2786. _ | IFS | as_nl) ;; #(
  2787. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2788. *) { eval $ac_var=; unset $ac_var;} ;;
  2789. esac ;;
  2790. esac
  2791. done
  2792. (set) 2>&1 |
  2793. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2794. *${as_nl}ac_space=\ *)
  2795. sed -n \
  2796. "s/'\''/'\''\\\\'\'''\''/g;
  2797. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2798. ;; #(
  2799. *)
  2800. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2801. ;;
  2802. esac |
  2803. sort
  2804. )
  2805. echo
  2806. $as_echo "## ----------------- ##
  2807. ## Output variables. ##
  2808. ## ----------------- ##"
  2809. echo
  2810. for ac_var in $ac_subst_vars
  2811. do
  2812. eval ac_val=\$$ac_var
  2813. case $ac_val in
  2814. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2815. esac
  2816. $as_echo "$ac_var='\''$ac_val'\''"
  2817. done | sort
  2818. echo
  2819. if test -n "$ac_subst_files"; then
  2820. $as_echo "## ------------------- ##
  2821. ## File substitutions. ##
  2822. ## ------------------- ##"
  2823. echo
  2824. for ac_var in $ac_subst_files
  2825. do
  2826. eval ac_val=\$$ac_var
  2827. case $ac_val in
  2828. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2829. esac
  2830. $as_echo "$ac_var='\''$ac_val'\''"
  2831. done | sort
  2832. echo
  2833. fi
  2834. if test -s confdefs.h; then
  2835. $as_echo "## ----------- ##
  2836. ## confdefs.h. ##
  2837. ## ----------- ##"
  2838. echo
  2839. cat confdefs.h
  2840. echo
  2841. fi
  2842. test "$ac_signal" != 0 &&
  2843. $as_echo "$as_me: caught signal $ac_signal"
  2844. $as_echo "$as_me: exit $exit_status"
  2845. } >&5
  2846. rm -f core *.core core.conftest.* &&
  2847. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2848. exit $exit_status
  2849. ' 0
  2850. for ac_signal in 1 2 13 15; do
  2851. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2852. done
  2853. ac_signal=0
  2854. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2855. rm -f -r conftest* confdefs.h
  2856. $as_echo "/* confdefs.h */" > confdefs.h
  2857. # Predefined preprocessor variables.
  2858. cat >>confdefs.h <<_ACEOF
  2859. #define PACKAGE_NAME "$PACKAGE_NAME"
  2860. _ACEOF
  2861. cat >>confdefs.h <<_ACEOF
  2862. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2863. _ACEOF
  2864. cat >>confdefs.h <<_ACEOF
  2865. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2866. _ACEOF
  2867. cat >>confdefs.h <<_ACEOF
  2868. #define PACKAGE_STRING "$PACKAGE_STRING"
  2869. _ACEOF
  2870. cat >>confdefs.h <<_ACEOF
  2871. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2872. _ACEOF
  2873. cat >>confdefs.h <<_ACEOF
  2874. #define PACKAGE_URL "$PACKAGE_URL"
  2875. _ACEOF
  2876. # Let the site file select an alternate cache file if it wants to.
  2877. # Prefer an explicitly selected file to automatically selected ones.
  2878. ac_site_file1=NONE
  2879. ac_site_file2=NONE
  2880. if test -n "$CONFIG_SITE"; then
  2881. # We do not want a PATH search for config.site.
  2882. case $CONFIG_SITE in #((
  2883. -*) ac_site_file1=./$CONFIG_SITE;;
  2884. */*) ac_site_file1=$CONFIG_SITE;;
  2885. *) ac_site_file1=./$CONFIG_SITE;;
  2886. esac
  2887. elif test "x$prefix" != xNONE; then
  2888. ac_site_file1=$prefix/share/config.site
  2889. ac_site_file2=$prefix/etc/config.site
  2890. else
  2891. ac_site_file1=$ac_default_prefix/share/config.site
  2892. ac_site_file2=$ac_default_prefix/etc/config.site
  2893. fi
  2894. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2895. do
  2896. test "x$ac_site_file" = xNONE && continue
  2897. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2899. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2900. sed 's/^/| /' "$ac_site_file" >&5
  2901. . "$ac_site_file" \
  2902. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2904. as_fn_error $? "failed to load site script $ac_site_file
  2905. See \`config.log' for more details" "$LINENO" 5; }
  2906. fi
  2907. done
  2908. if test -r "$cache_file"; then
  2909. # Some versions of bash will fail to source /dev/null (special files
  2910. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2911. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2913. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2914. case $cache_file in
  2915. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2916. *) . "./$cache_file";;
  2917. esac
  2918. fi
  2919. else
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2921. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2922. >$cache_file
  2923. fi
  2924. as_fn_append ac_header_list " stdlib.h"
  2925. as_fn_append ac_header_list " unistd.h"
  2926. as_fn_append ac_header_list " sys/param.h"
  2927. as_fn_append ac_func_list " readlinkat"
  2928. gl_getopt_required=GNU
  2929. as_fn_append ac_header_list " getopt.h"
  2930. as_fn_append ac_header_list " wchar.h"
  2931. as_fn_append ac_header_list " stdint.h"
  2932. as_fn_append ac_header_list " inttypes.h"
  2933. as_fn_append ac_func_list " lstat"
  2934. as_fn_append ac_func_list " alarm"
  2935. as_fn_append ac_func_list " pthread_sigmask"
  2936. as_fn_append ac_func_list " readlink"
  2937. as_fn_append ac_header_list " sys/socket.h"
  2938. as_fn_append ac_func_list " tzset"
  2939. as_fn_append ac_func_list " strtoimax"
  2940. as_fn_append ac_func_list " strtoumax"
  2941. as_fn_append ac_func_list " symlink"
  2942. as_fn_append ac_header_list " sys/stat.h"
  2943. as_fn_append ac_header_list " sys/time.h"
  2944. as_fn_append ac_func_list " localtime_r"
  2945. # Check that the precious variables saved in the cache have kept the same
  2946. # value.
  2947. ac_cache_corrupted=false
  2948. for ac_var in $ac_precious_vars; do
  2949. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2950. eval ac_new_set=\$ac_env_${ac_var}_set
  2951. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2952. eval ac_new_val=\$ac_env_${ac_var}_value
  2953. case $ac_old_set,$ac_new_set in
  2954. set,)
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2956. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2957. ac_cache_corrupted=: ;;
  2958. ,set)
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2960. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2961. ac_cache_corrupted=: ;;
  2962. ,);;
  2963. *)
  2964. if test "x$ac_old_val" != "x$ac_new_val"; then
  2965. # differences in whitespace do not lead to failure.
  2966. ac_old_val_w=`echo x $ac_old_val`
  2967. ac_new_val_w=`echo x $ac_new_val`
  2968. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2970. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2971. ac_cache_corrupted=:
  2972. else
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2974. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2975. eval $ac_var=\$ac_old_val
  2976. fi
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2978. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2980. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2981. fi;;
  2982. esac
  2983. # Pass precious variables to config.status.
  2984. if test "$ac_new_set" = set; then
  2985. case $ac_new_val in
  2986. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2987. *) ac_arg=$ac_var=$ac_new_val ;;
  2988. esac
  2989. case " $ac_configure_args " in
  2990. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2991. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2992. esac
  2993. fi
  2994. done
  2995. if $ac_cache_corrupted; then
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2999. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3000. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3001. fi
  3002. ## -------------------- ##
  3003. ## Main body of script. ##
  3004. ## -------------------- ##
  3005. ac_ext=c
  3006. ac_cpp='$CPP $CPPFLAGS'
  3007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3010. ac_config_headers="$ac_config_headers src/config.h:src/config.in"
  3011. ac_aux_dir=
  3012. for ac_dir in build-aux "$srcdir"/build-aux; do
  3013. if test -f "$ac_dir/install-sh"; then
  3014. ac_aux_dir=$ac_dir
  3015. ac_install_sh="$ac_aux_dir/install-sh -c"
  3016. break
  3017. elif test -f "$ac_dir/install.sh"; then
  3018. ac_aux_dir=$ac_dir
  3019. ac_install_sh="$ac_aux_dir/install.sh -c"
  3020. break
  3021. elif test -f "$ac_dir/shtool"; then
  3022. ac_aux_dir=$ac_dir
  3023. ac_install_sh="$ac_aux_dir/shtool install -c"
  3024. break
  3025. fi
  3026. done
  3027. if test -z "$ac_aux_dir"; then
  3028. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  3029. fi
  3030. # These three variables are undocumented and unsupported,
  3031. # and are intended to be withdrawn in a future Autoconf release.
  3032. # They can cause serious problems if a builder's source tree is in a directory
  3033. # whose full name contains unusual characters.
  3034. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3035. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3036. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3037. am__api_version='1.11'
  3038. # Find a good install program. We prefer a C program (faster),
  3039. # so one script is as good as another. But avoid the broken or
  3040. # incompatible versions:
  3041. # SysV /etc/install, /usr/sbin/install
  3042. # SunOS /usr/etc/install
  3043. # IRIX /sbin/install
  3044. # AIX /bin/install
  3045. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3046. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3047. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3048. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3049. # OS/2's system install, which has a completely different semantic
  3050. # ./install, which can be erroneously created by make from ./install.sh.
  3051. # Reject install programs that cannot install multiple files.
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3053. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3054. if test -z "$INSTALL"; then
  3055. if ${ac_cv_path_install+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3059. for as_dir in $PATH
  3060. do
  3061. IFS=$as_save_IFS
  3062. test -z "$as_dir" && as_dir=.
  3063. # Account for people who put trailing slashes in PATH elements.
  3064. case $as_dir/ in #((
  3065. ./ | .// | /[cC]/* | \
  3066. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3067. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3068. /usr/ucb/* ) ;;
  3069. *)
  3070. # OSF1 and SCO ODT 3.0 have their own names for install.
  3071. # Don't use installbsd from OSF since it installs stuff as root
  3072. # by default.
  3073. for ac_prog in ginstall scoinst install; do
  3074. for ac_exec_ext in '' $ac_executable_extensions; do
  3075. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3076. if test $ac_prog = install &&
  3077. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3078. # AIX install. It has an incompatible calling convention.
  3079. :
  3080. elif test $ac_prog = install &&
  3081. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3082. # program-specific install script used by HP pwplus--don't use.
  3083. :
  3084. else
  3085. rm -rf conftest.one conftest.two conftest.dir
  3086. echo one > conftest.one
  3087. echo two > conftest.two
  3088. mkdir conftest.dir
  3089. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3090. test -s conftest.one && test -s conftest.two &&
  3091. test -s conftest.dir/conftest.one &&
  3092. test -s conftest.dir/conftest.two
  3093. then
  3094. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3095. break 3
  3096. fi
  3097. fi
  3098. fi
  3099. done
  3100. done
  3101. ;;
  3102. esac
  3103. done
  3104. IFS=$as_save_IFS
  3105. rm -rf conftest.one conftest.two conftest.dir
  3106. fi
  3107. if test "${ac_cv_path_install+set}" = set; then
  3108. INSTALL=$ac_cv_path_install
  3109. else
  3110. # As a last resort, use the slow shell script. Don't cache a
  3111. # value for INSTALL within a source directory, because that will
  3112. # break other packages using the cache if that directory is
  3113. # removed, or if the value is a relative name.
  3114. INSTALL=$ac_install_sh
  3115. fi
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3118. $as_echo "$INSTALL" >&6; }
  3119. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3120. # It thinks the first close brace ends the variable substitution.
  3121. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3122. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3123. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3125. $as_echo_n "checking whether build environment is sane... " >&6; }
  3126. # Just in case
  3127. sleep 1
  3128. echo timestamp > conftest.file
  3129. # Reject unsafe characters in $srcdir or the absolute working directory
  3130. # name. Accept space and tab only in the latter.
  3131. am_lf='
  3132. '
  3133. case `pwd` in
  3134. *[\\\"\#\$\&\'\`$am_lf]*)
  3135. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3136. esac
  3137. case $srcdir in
  3138. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3139. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3140. esac
  3141. # Do `set' in a subshell so we don't clobber the current shell's
  3142. # arguments. Must try -L first in case configure is actually a
  3143. # symlink; some systems play weird games with the mod time of symlinks
  3144. # (eg FreeBSD returns the mod time of the symlink's containing
  3145. # directory).
  3146. if (
  3147. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3148. if test "$*" = "X"; then
  3149. # -L didn't work.
  3150. set X `ls -t "$srcdir/configure" conftest.file`
  3151. fi
  3152. rm -f conftest.file
  3153. if test "$*" != "X $srcdir/configure conftest.file" \
  3154. && test "$*" != "X conftest.file $srcdir/configure"; then
  3155. # If neither matched, then we have a broken ls. This can happen
  3156. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3157. # broken ls alias from the environment. This has actually
  3158. # happened. Such a system could not be considered "sane".
  3159. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3160. alias in your environment" "$LINENO" 5
  3161. fi
  3162. test "$2" = conftest.file
  3163. )
  3164. then
  3165. # Ok.
  3166. :
  3167. else
  3168. as_fn_error $? "newly created file is older than distributed files!
  3169. Check your system clock" "$LINENO" 5
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3172. $as_echo "yes" >&6; }
  3173. test "$program_prefix" != NONE &&
  3174. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3175. # Use a double $ so make ignores it.
  3176. test "$program_suffix" != NONE &&
  3177. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3178. # Double any \ or $.
  3179. # By default was `s,x,x', remove it if useless.
  3180. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3181. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3182. # expand $ac_aux_dir to an absolute path
  3183. am_aux_dir=`cd $ac_aux_dir && pwd`
  3184. if test x"${MISSING+set}" != xset; then
  3185. case $am_aux_dir in
  3186. *\ * | *\ *)
  3187. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3188. *)
  3189. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3190. esac
  3191. fi
  3192. # Use eval to expand $SHELL
  3193. if eval "$MISSING --run true"; then
  3194. am_missing_run="$MISSING --run "
  3195. else
  3196. am_missing_run=
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3198. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3199. fi
  3200. if test x"${install_sh}" != xset; then
  3201. case $am_aux_dir in
  3202. *\ * | *\ *)
  3203. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3204. *)
  3205. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3206. esac
  3207. fi
  3208. # Installed binaries are usually stripped using `strip' when the user
  3209. # run `make install-strip'. However `strip' might not be the right
  3210. # tool to use in cross-compilation environments, therefore Automake
  3211. # will honor the `STRIP' environment variable to overrule this program.
  3212. if test "$cross_compiling" != no; then
  3213. if test -n "$ac_tool_prefix"; then
  3214. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3215. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3217. $as_echo_n "checking for $ac_word... " >&6; }
  3218. if ${ac_cv_prog_STRIP+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. if test -n "$STRIP"; then
  3222. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3223. else
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_exec_ext in '' $ac_executable_extensions; do
  3230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3231. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3233. break 2
  3234. fi
  3235. done
  3236. done
  3237. IFS=$as_save_IFS
  3238. fi
  3239. fi
  3240. STRIP=$ac_cv_prog_STRIP
  3241. if test -n "$STRIP"; then
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3243. $as_echo "$STRIP" >&6; }
  3244. else
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3246. $as_echo "no" >&6; }
  3247. fi
  3248. fi
  3249. if test -z "$ac_cv_prog_STRIP"; then
  3250. ac_ct_STRIP=$STRIP
  3251. # Extract the first word of "strip", so it can be a program name with args.
  3252. set dummy strip; ac_word=$2
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3254. $as_echo_n "checking for $ac_word... " >&6; }
  3255. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. if test -n "$ac_ct_STRIP"; then
  3259. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3260. else
  3261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3262. for as_dir in $PATH
  3263. do
  3264. IFS=$as_save_IFS
  3265. test -z "$as_dir" && as_dir=.
  3266. for ac_exec_ext in '' $ac_executable_extensions; do
  3267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3268. ac_cv_prog_ac_ct_STRIP="strip"
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3270. break 2
  3271. fi
  3272. done
  3273. done
  3274. IFS=$as_save_IFS
  3275. fi
  3276. fi
  3277. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3278. if test -n "$ac_ct_STRIP"; then
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3280. $as_echo "$ac_ct_STRIP" >&6; }
  3281. else
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3283. $as_echo "no" >&6; }
  3284. fi
  3285. if test "x$ac_ct_STRIP" = x; then
  3286. STRIP=":"
  3287. else
  3288. case $cross_compiling:$ac_tool_warned in
  3289. yes:)
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3292. ac_tool_warned=yes ;;
  3293. esac
  3294. STRIP=$ac_ct_STRIP
  3295. fi
  3296. else
  3297. STRIP="$ac_cv_prog_STRIP"
  3298. fi
  3299. fi
  3300. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3302. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3303. if test -z "$MKDIR_P"; then
  3304. if ${ac_cv_path_mkdir+:} false; then :
  3305. $as_echo_n "(cached) " >&6
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_prog in mkdir gmkdir; do
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3315. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3316. 'mkdir (GNU coreutils) '* | \
  3317. 'mkdir (coreutils) '* | \
  3318. 'mkdir (fileutils) '4.1*)
  3319. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3320. break 3;;
  3321. esac
  3322. done
  3323. done
  3324. done
  3325. IFS=$as_save_IFS
  3326. fi
  3327. test -d ./--version && rmdir ./--version
  3328. if test "${ac_cv_path_mkdir+set}" = set; then
  3329. MKDIR_P="$ac_cv_path_mkdir -p"
  3330. else
  3331. # As a last resort, use the slow shell script. Don't cache a
  3332. # value for MKDIR_P within a source directory, because that will
  3333. # break other packages using the cache if that directory is
  3334. # removed, or if the value is a relative name.
  3335. MKDIR_P="$ac_install_sh -d"
  3336. fi
  3337. fi
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3339. $as_echo "$MKDIR_P" >&6; }
  3340. mkdir_p="$MKDIR_P"
  3341. case $mkdir_p in
  3342. [\\/$]* | ?:[\\/]*) ;;
  3343. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3344. esac
  3345. for ac_prog in gawk mawk nawk awk
  3346. do
  3347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3348. set dummy $ac_prog; ac_word=$2
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. $as_echo_n "checking for $ac_word... " >&6; }
  3351. if ${ac_cv_prog_AWK+:} false; then :
  3352. $as_echo_n "(cached) " >&6
  3353. else
  3354. if test -n "$AWK"; then
  3355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3356. else
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3364. ac_cv_prog_AWK="$ac_prog"
  3365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3366. break 2
  3367. fi
  3368. done
  3369. done
  3370. IFS=$as_save_IFS
  3371. fi
  3372. fi
  3373. AWK=$ac_cv_prog_AWK
  3374. if test -n "$AWK"; then
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3376. $as_echo "$AWK" >&6; }
  3377. else
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3379. $as_echo "no" >&6; }
  3380. fi
  3381. test -n "$AWK" && break
  3382. done
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3384. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3385. set x ${MAKE-make}
  3386. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3387. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3388. $as_echo_n "(cached) " >&6
  3389. else
  3390. cat >conftest.make <<\_ACEOF
  3391. SHELL = /bin/sh
  3392. all:
  3393. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3394. _ACEOF
  3395. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3396. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3397. *@@@%%%=?*=@@@%%%*)
  3398. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3399. *)
  3400. eval ac_cv_prog_make_${ac_make}_set=no;;
  3401. esac
  3402. rm -f conftest.make
  3403. fi
  3404. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3406. $as_echo "yes" >&6; }
  3407. SET_MAKE=
  3408. else
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3410. $as_echo "no" >&6; }
  3411. SET_MAKE="MAKE=${MAKE-make}"
  3412. fi
  3413. rm -rf .tst 2>/dev/null
  3414. mkdir .tst 2>/dev/null
  3415. if test -d .tst; then
  3416. am__leading_dot=.
  3417. else
  3418. am__leading_dot=_
  3419. fi
  3420. rmdir .tst 2>/dev/null
  3421. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3422. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3423. # is not polluted with repeated "-I."
  3424. am__isrc=' -I$(srcdir)'
  3425. # test to see if srcdir already configured
  3426. if test -f $srcdir/config.status; then
  3427. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3428. fi
  3429. fi
  3430. # test whether we have cygpath
  3431. if test -z "$CYGPATH_W"; then
  3432. if (cygpath --version) >/dev/null 2>/dev/null; then
  3433. CYGPATH_W='cygpath -w'
  3434. else
  3435. CYGPATH_W=echo
  3436. fi
  3437. fi
  3438. # Define the identity of the package.
  3439. PACKAGE='emacs'
  3440. VERSION='24.2'
  3441. cat >>confdefs.h <<_ACEOF
  3442. #define PACKAGE "$PACKAGE"
  3443. _ACEOF
  3444. cat >>confdefs.h <<_ACEOF
  3445. #define VERSION "$VERSION"
  3446. _ACEOF
  3447. # Some tools Automake needs.
  3448. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3449. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3450. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3451. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3452. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3453. # We need awk for the "check" target. The system "awk" is bad on
  3454. # some platforms.
  3455. # Always define AMTAR for backward compatibility. Yes, it's still used
  3456. # in the wild :-( We should find a proper way to deprecate it ...
  3457. AMTAR='$${TAR-tar}'
  3458. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3459. lispdir='${datadir}/emacs/${version}/lisp'
  3460. locallisppath='${datadir}/emacs/${version}/site-lisp:'\
  3461. '${datadir}/emacs/site-lisp'
  3462. lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
  3463. etcdir='${datadir}/emacs/${version}/etc'
  3464. archlibdir='${libexecdir}/emacs/${version}/${configuration}'
  3465. docdir='${datadir}/emacs/${version}/etc'
  3466. gamedir='${localstatedir}/games/emacs'
  3467. # Check whether --with-pop was given.
  3468. if test "${with_pop+set}" = set; then :
  3469. withval=$with_pop;
  3470. else
  3471. with_pop=yes
  3472. fi
  3473. if test "$with_pop" = yes; then
  3474. $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
  3475. fi
  3476. # Check whether --with-kerberos was given.
  3477. if test "${with_kerberos+set}" = set; then :
  3478. withval=$with_kerberos;
  3479. else
  3480. with_kerberos=no
  3481. fi
  3482. if test "$with_kerberos" != no; then
  3483. $as_echo "#define KERBEROS 1" >>confdefs.h
  3484. fi
  3485. # Check whether --with-kerberos5 was given.
  3486. if test "${with_kerberos5+set}" = set; then :
  3487. withval=$with_kerberos5;
  3488. else
  3489. with_kerberos5=no
  3490. fi
  3491. if test "${with_kerberos5}" != no; then
  3492. if test "${with_kerberos}" = no; then
  3493. with_kerberos=yes
  3494. $as_echo "#define KERBEROS 1" >>confdefs.h
  3495. fi
  3496. $as_echo "#define KERBEROS5 1" >>confdefs.h
  3497. fi
  3498. # Check whether --with-hesiod was given.
  3499. if test "${with_hesiod+set}" = set; then :
  3500. withval=$with_hesiod;
  3501. else
  3502. with_hesiod=no
  3503. fi
  3504. if test "$with_hesiod" != no; then
  3505. $as_echo "#define HESIOD 1" >>confdefs.h
  3506. fi
  3507. # Check whether --with-mmdf was given.
  3508. if test "${with_mmdf+set}" = set; then :
  3509. withval=$with_mmdf;
  3510. else
  3511. with_mmdf=no
  3512. fi
  3513. if test "$with_mmdf" != no; then
  3514. $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
  3515. fi
  3516. # Check whether --with-mail-unlink was given.
  3517. if test "${with_mail_unlink+set}" = set; then :
  3518. withval=$with_mail_unlink;
  3519. else
  3520. with_mail_unlink=no
  3521. fi
  3522. if test "$with_mail_unlink" != no; then
  3523. $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
  3524. fi
  3525. # Check whether --with-mailhost was given.
  3526. if test "${with_mailhost+set}" = set; then :
  3527. withval=$with_mailhost;
  3528. cat >>confdefs.h <<_ACEOF
  3529. #define MAILHOST "$withval"
  3530. _ACEOF
  3531. fi
  3532. # Check whether --with-sound was given.
  3533. if test "${with_sound+set}" = set; then :
  3534. withval=$with_sound;
  3535. else
  3536. with_sound=yes
  3537. fi
  3538. # Check whether --with-sync-input was given.
  3539. if test "${with_sync_input+set}" = set; then :
  3540. withval=$with_sync_input;
  3541. else
  3542. with_sync_input=yes
  3543. fi
  3544. if test "$with_sync_input" = yes; then
  3545. $as_echo "#define SYNC_INPUT 1" >>confdefs.h
  3546. fi
  3547. # Check whether --with-x-toolkit was given.
  3548. if test "${with_x_toolkit+set}" = set; then :
  3549. withval=$with_x_toolkit; case "${withval}" in
  3550. y | ye | yes ) val=gtk ;;
  3551. n | no ) val=no ;;
  3552. l | lu | luc | luci | lucid ) val=lucid ;;
  3553. a | at | ath | athe | athen | athena ) val=athena ;;
  3554. m | mo | mot | moti | motif ) val=motif ;;
  3555. g | gt | gtk ) val=gtk ;;
  3556. gtk3 ) val=gtk3 ;;
  3557. * )
  3558. as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
  3559. this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
  3560. \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
  3561. ;;
  3562. esac
  3563. with_x_toolkit=$val
  3564. fi
  3565. # Check whether --with-wide-int was given.
  3566. if test "${with_wide_int+set}" = set; then :
  3567. withval=$with_wide_int;
  3568. else
  3569. with_wide_int=no
  3570. fi
  3571. if test "$with_wide_int" = yes; then
  3572. $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
  3573. fi
  3574. # Check whether --with-xpm was given.
  3575. if test "${with_xpm+set}" = set; then :
  3576. withval=$with_xpm;
  3577. else
  3578. with_xpm=yes
  3579. fi
  3580. # Check whether --with-jpeg was given.
  3581. if test "${with_jpeg+set}" = set; then :
  3582. withval=$with_jpeg;
  3583. else
  3584. with_jpeg=yes
  3585. fi
  3586. # Check whether --with-tiff was given.
  3587. if test "${with_tiff+set}" = set; then :
  3588. withval=$with_tiff;
  3589. else
  3590. with_tiff=yes
  3591. fi
  3592. # Check whether --with-gif was given.
  3593. if test "${with_gif+set}" = set; then :
  3594. withval=$with_gif;
  3595. else
  3596. with_gif=yes
  3597. fi
  3598. # Check whether --with-png was given.
  3599. if test "${with_png+set}" = set; then :
  3600. withval=$with_png;
  3601. else
  3602. with_png=yes
  3603. fi
  3604. # Check whether --with-rsvg was given.
  3605. if test "${with_rsvg+set}" = set; then :
  3606. withval=$with_rsvg;
  3607. else
  3608. with_rsvg=yes
  3609. fi
  3610. # Check whether --with-xml2 was given.
  3611. if test "${with_xml2+set}" = set; then :
  3612. withval=$with_xml2;
  3613. else
  3614. with_xml2=yes
  3615. fi
  3616. # Check whether --with-imagemagick was given.
  3617. if test "${with_imagemagick+set}" = set; then :
  3618. withval=$with_imagemagick;
  3619. else
  3620. with_imagemagick=yes
  3621. fi
  3622. # Check whether --with-xft was given.
  3623. if test "${with_xft+set}" = set; then :
  3624. withval=$with_xft;
  3625. else
  3626. with_xft=yes
  3627. fi
  3628. # Check whether --with-libotf was given.
  3629. if test "${with_libotf+set}" = set; then :
  3630. withval=$with_libotf;
  3631. else
  3632. with_libotf=yes
  3633. fi
  3634. # Check whether --with-m17n-flt was given.
  3635. if test "${with_m17n_flt+set}" = set; then :
  3636. withval=$with_m17n_flt;
  3637. else
  3638. with_m17n_flt=yes
  3639. fi
  3640. # Check whether --with-toolkit-scroll-bars was given.
  3641. if test "${with_toolkit_scroll_bars+set}" = set; then :
  3642. withval=$with_toolkit_scroll_bars;
  3643. else
  3644. with_toolkit_scroll_bars=yes
  3645. fi
  3646. # Check whether --with-xaw3d was given.
  3647. if test "${with_xaw3d+set}" = set; then :
  3648. withval=$with_xaw3d;
  3649. else
  3650. with_xaw3d=yes
  3651. fi
  3652. # Check whether --with-xim was given.
  3653. if test "${with_xim+set}" = set; then :
  3654. withval=$with_xim;
  3655. else
  3656. with_xim=yes
  3657. fi
  3658. # Check whether --with-ns was given.
  3659. if test "${with_ns+set}" = set; then :
  3660. withval=$with_ns;
  3661. else
  3662. with_ns=no
  3663. fi
  3664. # Check whether --with-gpm was given.
  3665. if test "${with_gpm+set}" = set; then :
  3666. withval=$with_gpm;
  3667. else
  3668. with_gpm=yes
  3669. fi
  3670. # Check whether --with-dbus was given.
  3671. if test "${with_dbus+set}" = set; then :
  3672. withval=$with_dbus;
  3673. else
  3674. with_dbus=yes
  3675. fi
  3676. # Check whether --with-gconf was given.
  3677. if test "${with_gconf+set}" = set; then :
  3678. withval=$with_gconf;
  3679. else
  3680. with_gconf=yes
  3681. fi
  3682. # Check whether --with-gsettings was given.
  3683. if test "${with_gsettings+set}" = set; then :
  3684. withval=$with_gsettings;
  3685. else
  3686. with_gsettings=yes
  3687. fi
  3688. # Check whether --with-selinux was given.
  3689. if test "${with_selinux+set}" = set; then :
  3690. withval=$with_selinux;
  3691. else
  3692. with_selinux=yes
  3693. fi
  3694. # Check whether --with-gnutls was given.
  3695. if test "${with_gnutls+set}" = set; then :
  3696. withval=$with_gnutls;
  3697. else
  3698. with_gnutls=yes
  3699. fi
  3700. ## For the times when you want to build Emacs but don't have
  3701. ## a suitable makeinfo, and can live without the manuals.
  3702. # Check whether --with-makeinfo was given.
  3703. if test "${with_makeinfo+set}" = set; then :
  3704. withval=$with_makeinfo;
  3705. else
  3706. with_makeinfo=yes
  3707. fi
  3708. ## Makefile.in needs the cache file name.
  3709. ## This is an option because I do not know if all info/man support
  3710. ## compressed files, nor how to test if they do so.
  3711. # Check whether --with-compress-info was given.
  3712. if test "${with_compress_info+set}" = set; then :
  3713. withval=$with_compress_info;
  3714. else
  3715. with_compress_info=yes
  3716. fi
  3717. if test $with_compress_info = yes; then
  3718. GZIP_INFO=yes
  3719. else
  3720. GZIP_INFO=
  3721. fi
  3722. # Check whether --with-pkg-config-prog was given.
  3723. if test "${with_pkg_config_prog+set}" = set; then :
  3724. withval=$with_pkg_config_prog;
  3725. fi
  3726. if test "X${with_pkg_config_prog}" != X; then
  3727. if test "${with_pkg_config_prog}" != yes; then
  3728. PKG_CONFIG="${with_pkg_config_prog}"
  3729. fi
  3730. fi
  3731. CRT_DIR=
  3732. # Check whether --with-crt-dir was given.
  3733. if test "${with_crt_dir+set}" = set; then :
  3734. withval=$with_crt_dir;
  3735. fi
  3736. CRT_DIR="${with_crt_dir}"
  3737. # Check whether --with-gameuser was given.
  3738. if test "${with_gameuser+set}" = set; then :
  3739. withval=$with_gameuser;
  3740. fi
  3741. test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
  3742. && gameuser="${with_gameuser}"
  3743. test "X$gameuser" = X && gameuser=games
  3744. # Check whether --with-gnustep-conf was given.
  3745. if test "${with_gnustep_conf+set}" = set; then :
  3746. withval=$with_gnustep_conf;
  3747. fi
  3748. test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
  3749. GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
  3750. test "X$GNUSTEP_CONFIG_FILE" = "X" && \
  3751. GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
  3752. # Check whether --enable-ns-self-contained was given.
  3753. if test "${enable_ns_self_contained+set}" = set; then :
  3754. enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
  3755. else
  3756. EN_NS_SELF_CONTAINED=yes
  3757. fi
  3758. # Check whether --enable-asserts was given.
  3759. if test "${enable_asserts+set}" = set; then :
  3760. enableval=$enable_asserts; USE_XASSERTS=$enableval
  3761. else
  3762. USE_XASSERTS=no
  3763. fi
  3764. # Check whether --enable-maintainer-mode was given.
  3765. if test "${enable_maintainer_mode+set}" = set; then :
  3766. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3767. else
  3768. USE_MAINTAINER_MODE=yes
  3769. fi
  3770. if test $USE_MAINTAINER_MODE = yes; then
  3771. MAINT=
  3772. else
  3773. MAINT=#
  3774. fi
  3775. # Check whether --enable-locallisppath was given.
  3776. if test "${enable_locallisppath+set}" = set; then :
  3777. enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
  3778. locallisppath=
  3779. elif test "${enableval}" != "yes"; then
  3780. locallisppath=${enableval}
  3781. fi
  3782. fi
  3783. # Check whether --enable-checking was given.
  3784. if test "${enable_checking+set}" = set; then :
  3785. enableval=$enable_checking; ac_checking_flags="${enableval}"
  3786. fi
  3787. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  3788. for check in $ac_checking_flags
  3789. do
  3790. case $check in
  3791. # these set all the flags to specific states
  3792. yes) ac_enable_checking=1 ;;
  3793. no) ac_enable_checking= ;
  3794. ac_gc_check_stringbytes= ;
  3795. ac_gc_check_string_overrun= ;
  3796. ac_gc_check_string_free_list= ;
  3797. ac_xmalloc_overrun= ;
  3798. ac_gc_check_cons_list= ;;
  3799. all) ac_enable_checking=1 ;
  3800. ac_gc_check_stringbytes=1 ;
  3801. ac_gc_check_string_overrun=1 ;
  3802. ac_gc_check_string_free_list=1 ;
  3803. ac_xmalloc_overrun=1 ;
  3804. ac_gc_check_cons_list=1 ;;
  3805. # these enable particular checks
  3806. stringbytes) ac_gc_check_stringbytes=1 ;;
  3807. stringoverrun) ac_gc_check_string_overrun=1 ;;
  3808. stringfreelist) ac_gc_check_string_free_list=1 ;;
  3809. xmallocoverrun) ac_xmalloc_overrun=1 ;;
  3810. conslist) ac_gc_check_cons_list=1 ;;
  3811. *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
  3812. esac
  3813. done
  3814. IFS="$ac_save_IFS"
  3815. if test x$ac_enable_checking != x ; then
  3816. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  3817. fi
  3818. if test x$ac_gc_check_stringbytes != x ; then
  3819. $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
  3820. fi
  3821. if test x$ac_gc_check_string_overrun != x ; then
  3822. $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
  3823. fi
  3824. if test x$ac_gc_check_string_free_list != x ; then
  3825. $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
  3826. fi
  3827. if test x$ac_xmalloc_overrun != x ; then
  3828. $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
  3829. fi
  3830. if test x$ac_gc_check_cons_list != x ; then
  3831. $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
  3832. fi
  3833. # Check whether --enable-use-lisp-union-type was given.
  3834. if test "${enable_use_lisp_union_type+set}" = set; then :
  3835. enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
  3836. $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
  3837. fi
  3838. fi
  3839. # Check whether --enable-profiling was given.
  3840. if test "${enable_profiling+set}" = set; then :
  3841. enableval=$enable_profiling; ac_enable_profiling="${enableval}"
  3842. fi
  3843. if test x$ac_enable_profiling != x ; then
  3844. PROFILING_CFLAGS="-DPROFILING=1 -pg"
  3845. else
  3846. PROFILING_CFLAGS=
  3847. fi
  3848. # Check whether --enable-autodepend was given.
  3849. if test "${enable_autodepend+set}" = set; then :
  3850. enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
  3851. else
  3852. ac_enable_autodepend=yes
  3853. fi
  3854. #### Make srcdir absolute, if it isn't already. It's important to
  3855. #### avoid running the path through pwd unnecessarily, since pwd can
  3856. #### give you automounter prefixes, which can go away. We do all this
  3857. #### so Emacs can find its files when run uninstalled.
  3858. ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
  3859. unset CDPATH
  3860. case "${srcdir}" in
  3861. /* ) ;;
  3862. . )
  3863. ## We may be able to use the $PWD environment variable to make this
  3864. ## absolute. But sometimes PWD is inaccurate.
  3865. ## Note: we used to use ${PWD} at the end instead of `pwd`,
  3866. ## but that tested only for a well-formed and valid PWD,
  3867. ## it did not object when PWD was well-formed and valid but just wrong.
  3868. if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
  3869. then
  3870. srcdir="$PWD"
  3871. else
  3872. srcdir="`(cd ${srcdir}; pwd)`"
  3873. fi
  3874. ;;
  3875. * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
  3876. esac
  3877. #### Given the configuration name, set machfile and opsysfile to the
  3878. #### names of the m/*.h and s/*.h files we should use.
  3879. ### Canonicalize the configuration name.
  3880. # Make sure we can run config.sub.
  3881. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3882. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3884. $as_echo_n "checking build system type... " >&6; }
  3885. if ${ac_cv_build+:} false; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. ac_build_alias=$build_alias
  3889. test "x$ac_build_alias" = x &&
  3890. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3891. test "x$ac_build_alias" = x &&
  3892. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3893. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3894. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3895. fi
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3897. $as_echo "$ac_cv_build" >&6; }
  3898. case $ac_cv_build in
  3899. *-*-*) ;;
  3900. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3901. esac
  3902. build=$ac_cv_build
  3903. ac_save_IFS=$IFS; IFS='-'
  3904. set x $ac_cv_build
  3905. shift
  3906. build_cpu=$1
  3907. build_vendor=$2
  3908. shift; shift
  3909. # Remember, the first character of IFS is used to create $*,
  3910. # except with old shells:
  3911. build_os=$*
  3912. IFS=$ac_save_IFS
  3913. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3915. $as_echo_n "checking host system type... " >&6; }
  3916. if ${ac_cv_host+:} false; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test "x$host_alias" = x; then
  3920. ac_cv_host=$ac_cv_build
  3921. else
  3922. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3923. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3924. fi
  3925. fi
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3927. $as_echo "$ac_cv_host" >&6; }
  3928. case $ac_cv_host in
  3929. *-*-*) ;;
  3930. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3931. esac
  3932. host=$ac_cv_host
  3933. ac_save_IFS=$IFS; IFS='-'
  3934. set x $ac_cv_host
  3935. shift
  3936. host_cpu=$1
  3937. host_vendor=$2
  3938. shift; shift
  3939. # Remember, the first character of IFS is used to create $*,
  3940. # except with old shells:
  3941. host_os=$*
  3942. IFS=$ac_save_IFS
  3943. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3944. canonical=$host
  3945. configuration=${host_alias-${build_alias-$host}}
  3946. ### If you add support for a new configuration, add code to this
  3947. ### switch statement to recognize your configuration name and select
  3948. ### the appropriate operating system and machine description files.
  3949. ### You would hope that you could choose an m/*.h file pretty much
  3950. ### based on the machine portion of the configuration name, and an s/*.h
  3951. ### file based on the operating system portion. However, it turns out
  3952. ### that each m/*.h file is pretty manufacturer-specific - for
  3953. ### example mips.h is MIPS
  3954. ### So we basically have to have a special case for each
  3955. ### configuration name.
  3956. ###
  3957. ### As far as handling version numbers on operating systems is
  3958. ### concerned, make sure things will fail in a fixable way. If
  3959. ### /etc/MACHINES doesn't say anything about version numbers, be
  3960. ### prepared to handle anything reasonably. If version numbers
  3961. ### matter, be sure /etc/MACHINES says something about it.
  3962. machine='' opsys='' unported=no
  3963. case "${canonical}" in
  3964. ## GNU/Linux and similar ports
  3965. *-*-linux* )
  3966. opsys=gnu-linux
  3967. case ${canonical} in
  3968. alpha*) machine=alpha ;;
  3969. s390x-*) machine=ibms390x ;;
  3970. powerpc*) machine=macppc ;;
  3971. sparc*) machine=sparc ;;
  3972. ia64*) machine=ia64 ;;
  3973. m68k*) machine=m68k ;;
  3974. x86_64*) machine=amdx86-64 ;;
  3975. esac
  3976. ;;
  3977. ## FreeBSD ports
  3978. *-*-freebsd* )
  3979. opsys=freebsd
  3980. case "${canonical}" in
  3981. alpha*) machine=alpha ;;
  3982. amd64-*|x86_64-*) machine=amdx86-64 ;;
  3983. ia64-*) machine=ia64 ;;
  3984. i[3456]86-*) machine=intel386 ;;
  3985. powerpc-*) machine=macppc ;;
  3986. sparc-*) machine=sparc ;;
  3987. sparc64-*) machine=sparc ;;
  3988. esac
  3989. ;;
  3990. ## FreeBSD kernel + glibc based userland
  3991. *-*-kfreebsd*gnu* )
  3992. opsys=gnu-kfreebsd
  3993. case "${canonical}" in
  3994. alpha*) machine=alpha ;;
  3995. amd64-*|x86_64-*) machine=amdx86-64 ;;
  3996. ia64-*) machine=ia64 ;;
  3997. i[3456]86-*) machine=intel386 ;;
  3998. powerpc-*) machine=macppc ;;
  3999. sparc-*) machine=sparc ;;
  4000. sparc64-*) machine=sparc ;;
  4001. esac
  4002. ;;
  4003. ## NetBSD ports
  4004. *-*-netbsd* )
  4005. opsys=netbsd
  4006. case "${canonical}" in
  4007. alpha*) machine=alpha ;;
  4008. x86_64-*) machine=amdx86-64 ;;
  4009. i[3456]86-*) machine=intel386 ;;
  4010. m68k-*) machine=m68k ;;
  4011. powerpc-*) machine=macppc ;;
  4012. sparc*-) machine=sparc ;;
  4013. vax-*) machine=vax ;;
  4014. esac
  4015. ;;
  4016. ## OpenBSD ports
  4017. *-*-openbsd* )
  4018. opsys=openbsd
  4019. case "${canonical}" in
  4020. alpha*) machine=alpha ;;
  4021. x86_64-*) machine=amdx86-64 ;;
  4022. i386-*) machine=intel386 ;;
  4023. powerpc-*) machine=macppc ;;
  4024. sparc*) machine=sparc ;;
  4025. vax-*) machine=vax ;;
  4026. esac
  4027. ;;
  4028. ## Apple Darwin / Mac OS X
  4029. *-apple-darwin* )
  4030. case "${canonical}" in
  4031. i[3456]86-* ) machine=intel386 ;;
  4032. powerpc-* ) machine=macppc ;;
  4033. x86_64-* ) machine=amdx86-64 ;;
  4034. * ) unported=yes ;;
  4035. esac
  4036. opsys=darwin
  4037. # Define CPP as follows to make autoconf work correctly.
  4038. CPP="${CC-cc} -E -no-cpp-precomp"
  4039. # Use fink packages if available.
  4040. if test -d /sw/include && test -d /sw/lib; then
  4041. GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
  4042. CPP="${CPP} ${GCC_TEST_OPTIONS}"
  4043. NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
  4044. fi
  4045. ;;
  4046. ## HP 9000 series 700 and 800, running HP/UX
  4047. hppa*-hp-hpux10.2* )
  4048. opsys=hpux10-20
  4049. ;;
  4050. hppa*-hp-hpux1[1-9]* )
  4051. opsys=hpux11
  4052. CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
  4053. ;;
  4054. ## IBM machines
  4055. rs6000-ibm-aix4.[23]* )
  4056. machine=ibmrs6000 opsys=aix4-2
  4057. ;;
  4058. powerpc-ibm-aix4.[23]* )
  4059. machine=ibmrs6000 opsys=aix4-2
  4060. ;;
  4061. rs6000-ibm-aix[56]* )
  4062. machine=ibmrs6000 opsys=aix4-2
  4063. ;;
  4064. powerpc-ibm-aix[56]* )
  4065. machine=ibmrs6000 opsys=aix4-2
  4066. ;;
  4067. ## Silicon Graphics machines
  4068. ## Iris 4D
  4069. mips-sgi-irix6.5 )
  4070. opsys=irix6-5
  4071. # Without defining _LANGUAGE_C, things get masked out in the headers
  4072. # so that, for instance, grepping for `free' in stdlib.h fails and
  4073. # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
  4074. NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
  4075. NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
  4076. ;;
  4077. ## Suns
  4078. *-sun-solaris* \
  4079. | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
  4080. | x86_64-*-solaris2* | x86_64-*-sunos5*)
  4081. case "${canonical}" in
  4082. i[3456]86-*-* ) machine=intel386 ;;
  4083. amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
  4084. sparc* ) machine=sparc ;;
  4085. * ) unported=yes ;;
  4086. esac
  4087. case "${canonical}" in
  4088. *-sunos5.6* | *-solaris2.6* )
  4089. opsys=sol2-6
  4090. NON_GNU_CPP=/usr/ccs/lib/cpp
  4091. RANLIB="ar -ts"
  4092. ;;
  4093. *-sunos5.[7-9]* | *-solaris2.[7-9]* )
  4094. opsys=sol2-6
  4095. emacs_check_sunpro_c=yes
  4096. NON_GNU_CPP=/usr/ccs/lib/cpp
  4097. ;;
  4098. *-sunos5* | *-solaris* )
  4099. opsys=sol2-10
  4100. emacs_check_sunpro_c=yes
  4101. NON_GNU_CPP=/usr/ccs/lib/cpp
  4102. ;;
  4103. esac
  4104. ## Watch out for a compiler that we know will not work.
  4105. case "${canonical}" in
  4106. *-solaris* | *-sunos5* )
  4107. if [ "x$CC" = x/usr/ucb/cc ]; then
  4108. ## /usr/ucb/cc doesn't work;
  4109. ## we should find some other compiler that does work.
  4110. unset CC
  4111. fi
  4112. ;;
  4113. *) ;;
  4114. esac
  4115. ;;
  4116. ## Intel 386 machines where we don't care about the manufacturer.
  4117. i[3456]86-*-* )
  4118. machine=intel386
  4119. case "${canonical}" in
  4120. *-cygwin ) opsys=cygwin ;;
  4121. *-darwin* ) opsys=darwin
  4122. CPP="${CC-cc} -E -no-cpp-precomp"
  4123. ;;
  4124. *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4125. *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4126. *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4127. ## Otherwise, we'll fall through to the generic opsys code at the bottom.
  4128. esac
  4129. ;;
  4130. * )
  4131. unported=yes
  4132. ;;
  4133. esac
  4134. ### If the code above didn't choose an operating system, just choose
  4135. ### an operating system based on the configuration name. You really
  4136. ### only want to use this when you have no idea what the right
  4137. ### operating system is; if you know what operating systems a machine
  4138. ### runs, it's cleaner to make it explicit in the case statement
  4139. ### above.
  4140. if test x"${opsys}" = x; then
  4141. case "${canonical}" in
  4142. *-gnu* ) opsys=gnu ;;
  4143. * )
  4144. unported=yes
  4145. ;;
  4146. esac
  4147. fi
  4148. if test $unported = yes; then
  4149. as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
  4150. Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
  4151. fi
  4152. if test -n "$machine"; then
  4153. machfile="m/${machine}.h"
  4154. else
  4155. machfile=
  4156. fi
  4157. opsysfile="s/${opsys}.h"
  4158. #### Choose a compiler.
  4159. test -n "$CC" && cc_specified=yes
  4160. # Save the value of CFLAGS that the user specified.
  4161. SPECIFIED_CFLAGS="$CFLAGS"
  4162. ac_ext=c
  4163. ac_cpp='$CPP $CPPFLAGS'
  4164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4167. if test -n "$ac_tool_prefix"; then
  4168. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4169. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4171. $as_echo_n "checking for $ac_word... " >&6; }
  4172. if ${ac_cv_prog_CC+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -n "$CC"; then
  4176. ac_cv_prog_CC="$CC" # Let the user override the test.
  4177. else
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_exec_ext in '' $ac_executable_extensions; do
  4184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4185. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4187. break 2
  4188. fi
  4189. done
  4190. done
  4191. IFS=$as_save_IFS
  4192. fi
  4193. fi
  4194. CC=$ac_cv_prog_CC
  4195. if test -n "$CC"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4197. $as_echo "$CC" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. fi
  4203. if test -z "$ac_cv_prog_CC"; then
  4204. ac_ct_CC=$CC
  4205. # Extract the first word of "gcc", so it can be a program name with args.
  4206. set dummy gcc; ac_word=$2
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4208. $as_echo_n "checking for $ac_word... " >&6; }
  4209. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if test -n "$ac_ct_CC"; then
  4213. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4214. else
  4215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4216. for as_dir in $PATH
  4217. do
  4218. IFS=$as_save_IFS
  4219. test -z "$as_dir" && as_dir=.
  4220. for ac_exec_ext in '' $ac_executable_extensions; do
  4221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4222. ac_cv_prog_ac_ct_CC="gcc"
  4223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4224. break 2
  4225. fi
  4226. done
  4227. done
  4228. IFS=$as_save_IFS
  4229. fi
  4230. fi
  4231. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4232. if test -n "$ac_ct_CC"; then
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4234. $as_echo "$ac_ct_CC" >&6; }
  4235. else
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4237. $as_echo "no" >&6; }
  4238. fi
  4239. if test "x$ac_ct_CC" = x; then
  4240. CC=""
  4241. else
  4242. case $cross_compiling:$ac_tool_warned in
  4243. yes:)
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4246. ac_tool_warned=yes ;;
  4247. esac
  4248. CC=$ac_ct_CC
  4249. fi
  4250. else
  4251. CC="$ac_cv_prog_CC"
  4252. fi
  4253. if test -z "$CC"; then
  4254. if test -n "$ac_tool_prefix"; then
  4255. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4256. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4258. $as_echo_n "checking for $ac_word... " >&6; }
  4259. if ${ac_cv_prog_CC+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -n "$CC"; then
  4263. ac_cv_prog_CC="$CC" # Let the user override the test.
  4264. else
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4272. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4274. break 2
  4275. fi
  4276. done
  4277. done
  4278. IFS=$as_save_IFS
  4279. fi
  4280. fi
  4281. CC=$ac_cv_prog_CC
  4282. if test -n "$CC"; then
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4284. $as_echo "$CC" >&6; }
  4285. else
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4287. $as_echo "no" >&6; }
  4288. fi
  4289. fi
  4290. fi
  4291. if test -z "$CC"; then
  4292. # Extract the first word of "cc", so it can be a program name with args.
  4293. set dummy cc; ac_word=$2
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4295. $as_echo_n "checking for $ac_word... " >&6; }
  4296. if ${ac_cv_prog_CC+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. if test -n "$CC"; then
  4300. ac_cv_prog_CC="$CC" # Let the user override the test.
  4301. else
  4302. ac_prog_rejected=no
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4310. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4311. ac_prog_rejected=yes
  4312. continue
  4313. fi
  4314. ac_cv_prog_CC="cc"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. if test $ac_prog_rejected = yes; then
  4322. # We found a bogon in the path, so make sure we never use it.
  4323. set dummy $ac_cv_prog_CC
  4324. shift
  4325. if test $# != 0; then
  4326. # We chose a different compiler from the bogus one.
  4327. # However, it has the same basename, so the bogon will be chosen
  4328. # first if we set CC to just the basename; use the full file name.
  4329. shift
  4330. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4331. fi
  4332. fi
  4333. fi
  4334. fi
  4335. CC=$ac_cv_prog_CC
  4336. if test -n "$CC"; then
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4338. $as_echo "$CC" >&6; }
  4339. else
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4341. $as_echo "no" >&6; }
  4342. fi
  4343. fi
  4344. if test -z "$CC"; then
  4345. if test -n "$ac_tool_prefix"; then
  4346. for ac_prog in cl.exe
  4347. do
  4348. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4349. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4351. $as_echo_n "checking for $ac_word... " >&6; }
  4352. if ${ac_cv_prog_CC+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. if test -n "$CC"; then
  4356. ac_cv_prog_CC="$CC" # Let the user override the test.
  4357. else
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4365. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4367. break 2
  4368. fi
  4369. done
  4370. done
  4371. IFS=$as_save_IFS
  4372. fi
  4373. fi
  4374. CC=$ac_cv_prog_CC
  4375. if test -n "$CC"; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4377. $as_echo "$CC" >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. fi
  4382. test -n "$CC" && break
  4383. done
  4384. fi
  4385. if test -z "$CC"; then
  4386. ac_ct_CC=$CC
  4387. for ac_prog in cl.exe
  4388. do
  4389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4390. set dummy $ac_prog; ac_word=$2
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4392. $as_echo_n "checking for $ac_word... " >&6; }
  4393. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. if test -n "$ac_ct_CC"; then
  4397. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4398. else
  4399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4400. for as_dir in $PATH
  4401. do
  4402. IFS=$as_save_IFS
  4403. test -z "$as_dir" && as_dir=.
  4404. for ac_exec_ext in '' $ac_executable_extensions; do
  4405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4406. ac_cv_prog_ac_ct_CC="$ac_prog"
  4407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4408. break 2
  4409. fi
  4410. done
  4411. done
  4412. IFS=$as_save_IFS
  4413. fi
  4414. fi
  4415. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4416. if test -n "$ac_ct_CC"; then
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4418. $as_echo "$ac_ct_CC" >&6; }
  4419. else
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4421. $as_echo "no" >&6; }
  4422. fi
  4423. test -n "$ac_ct_CC" && break
  4424. done
  4425. if test "x$ac_ct_CC" = x; then
  4426. CC=""
  4427. else
  4428. case $cross_compiling:$ac_tool_warned in
  4429. yes:)
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4432. ac_tool_warned=yes ;;
  4433. esac
  4434. CC=$ac_ct_CC
  4435. fi
  4436. fi
  4437. fi
  4438. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4440. as_fn_error $? "no acceptable C compiler found in \$PATH
  4441. See \`config.log' for more details" "$LINENO" 5; }
  4442. # Provide some information about the compiler.
  4443. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4444. set X $ac_compile
  4445. ac_compiler=$2
  4446. for ac_option in --version -v -V -qversion; do
  4447. { { ac_try="$ac_compiler $ac_option >&5"
  4448. case "(($ac_try" in
  4449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4450. *) ac_try_echo=$ac_try;;
  4451. esac
  4452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4453. $as_echo "$ac_try_echo"; } >&5
  4454. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4455. ac_status=$?
  4456. if test -s conftest.err; then
  4457. sed '10a\
  4458. ... rest of stderr output deleted ...
  4459. 10q' conftest.err >conftest.er1
  4460. cat conftest.er1 >&5
  4461. fi
  4462. rm -f conftest.er1 conftest.err
  4463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4464. test $ac_status = 0; }
  4465. done
  4466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4467. /* end confdefs.h. */
  4468. int
  4469. main ()
  4470. {
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. ac_clean_files_save=$ac_clean_files
  4476. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4477. # Try to create an executable without -o first, disregard a.out.
  4478. # It will help us diagnose broken compilers, and finding out an intuition
  4479. # of exeext.
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4481. $as_echo_n "checking whether the C compiler works... " >&6; }
  4482. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4483. # The possible output files:
  4484. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4485. ac_rmfiles=
  4486. for ac_file in $ac_files
  4487. do
  4488. case $ac_file in
  4489. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4490. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4491. esac
  4492. done
  4493. rm -f $ac_rmfiles
  4494. if { { ac_try="$ac_link_default"
  4495. case "(($ac_try" in
  4496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4497. *) ac_try_echo=$ac_try;;
  4498. esac
  4499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4500. $as_echo "$ac_try_echo"; } >&5
  4501. (eval "$ac_link_default") 2>&5
  4502. ac_status=$?
  4503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4504. test $ac_status = 0; }; then :
  4505. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4506. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4507. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4508. # so that the user can short-circuit this test for compilers unknown to
  4509. # Autoconf.
  4510. for ac_file in $ac_files ''
  4511. do
  4512. test -f "$ac_file" || continue
  4513. case $ac_file in
  4514. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4515. ;;
  4516. [ab].out )
  4517. # We found the default executable, but exeext='' is most
  4518. # certainly right.
  4519. break;;
  4520. *.* )
  4521. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4522. then :; else
  4523. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4524. fi
  4525. # We set ac_cv_exeext here because the later test for it is not
  4526. # safe: cross compilers may not add the suffix if given an `-o'
  4527. # argument, so we may need to know it at that point already.
  4528. # Even if this section looks crufty: it has the advantage of
  4529. # actually working.
  4530. break;;
  4531. * )
  4532. break;;
  4533. esac
  4534. done
  4535. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4536. else
  4537. ac_file=''
  4538. fi
  4539. if test -z "$ac_file"; then :
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4541. $as_echo "no" >&6; }
  4542. $as_echo "$as_me: failed program was:" >&5
  4543. sed 's/^/| /' conftest.$ac_ext >&5
  4544. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4545. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4546. as_fn_error 77 "C compiler cannot create executables
  4547. See \`config.log' for more details" "$LINENO" 5; }
  4548. else
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4550. $as_echo "yes" >&6; }
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4553. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4555. $as_echo "$ac_file" >&6; }
  4556. ac_exeext=$ac_cv_exeext
  4557. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4558. ac_clean_files=$ac_clean_files_save
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4560. $as_echo_n "checking for suffix of executables... " >&6; }
  4561. if { { ac_try="$ac_link"
  4562. case "(($ac_try" in
  4563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4564. *) ac_try_echo=$ac_try;;
  4565. esac
  4566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4567. $as_echo "$ac_try_echo"; } >&5
  4568. (eval "$ac_link") 2>&5
  4569. ac_status=$?
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4571. test $ac_status = 0; }; then :
  4572. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4573. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4574. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4575. # `rm'.
  4576. for ac_file in conftest.exe conftest conftest.*; do
  4577. test -f "$ac_file" || continue
  4578. case $ac_file in
  4579. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4580. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4581. break;;
  4582. * ) break;;
  4583. esac
  4584. done
  4585. else
  4586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4588. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4589. See \`config.log' for more details" "$LINENO" 5; }
  4590. fi
  4591. rm -f conftest conftest$ac_cv_exeext
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4593. $as_echo "$ac_cv_exeext" >&6; }
  4594. rm -f conftest.$ac_ext
  4595. EXEEXT=$ac_cv_exeext
  4596. ac_exeext=$EXEEXT
  4597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4598. /* end confdefs.h. */
  4599. #include <stdio.h>
  4600. int
  4601. main ()
  4602. {
  4603. FILE *f = fopen ("conftest.out", "w");
  4604. return ferror (f) || fclose (f) != 0;
  4605. ;
  4606. return 0;
  4607. }
  4608. _ACEOF
  4609. ac_clean_files="$ac_clean_files conftest.out"
  4610. # Check that the compiler produces executables we can run. If not, either
  4611. # the compiler is broken, or we cross compile.
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4613. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4614. if test "$cross_compiling" != yes; then
  4615. { { ac_try="$ac_link"
  4616. case "(($ac_try" in
  4617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4618. *) ac_try_echo=$ac_try;;
  4619. esac
  4620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4621. $as_echo "$ac_try_echo"; } >&5
  4622. (eval "$ac_link") 2>&5
  4623. ac_status=$?
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4625. test $ac_status = 0; }
  4626. if { ac_try='./conftest$ac_cv_exeext'
  4627. { { case "(($ac_try" in
  4628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4629. *) ac_try_echo=$ac_try;;
  4630. esac
  4631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4632. $as_echo "$ac_try_echo"; } >&5
  4633. (eval "$ac_try") 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }; }; then
  4637. cross_compiling=no
  4638. else
  4639. if test "$cross_compiling" = maybe; then
  4640. cross_compiling=yes
  4641. else
  4642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4644. as_fn_error $? "cannot run C compiled programs.
  4645. If you meant to cross compile, use \`--host'.
  4646. See \`config.log' for more details" "$LINENO" 5; }
  4647. fi
  4648. fi
  4649. fi
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4651. $as_echo "$cross_compiling" >&6; }
  4652. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4653. ac_clean_files=$ac_clean_files_save
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4655. $as_echo_n "checking for suffix of object files... " >&6; }
  4656. if ${ac_cv_objext+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4660. /* end confdefs.h. */
  4661. int
  4662. main ()
  4663. {
  4664. ;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. rm -f conftest.o conftest.obj
  4669. if { { ac_try="$ac_compile"
  4670. case "(($ac_try" in
  4671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4672. *) ac_try_echo=$ac_try;;
  4673. esac
  4674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4675. $as_echo "$ac_try_echo"; } >&5
  4676. (eval "$ac_compile") 2>&5
  4677. ac_status=$?
  4678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4679. test $ac_status = 0; }; then :
  4680. for ac_file in conftest.o conftest.obj conftest.*; do
  4681. test -f "$ac_file" || continue;
  4682. case $ac_file in
  4683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4684. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4685. break;;
  4686. esac
  4687. done
  4688. else
  4689. $as_echo "$as_me: failed program was:" >&5
  4690. sed 's/^/| /' conftest.$ac_ext >&5
  4691. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4693. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4694. See \`config.log' for more details" "$LINENO" 5; }
  4695. fi
  4696. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4697. fi
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4699. $as_echo "$ac_cv_objext" >&6; }
  4700. OBJEXT=$ac_cv_objext
  4701. ac_objext=$OBJEXT
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4703. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4704. if ${ac_cv_c_compiler_gnu+:} false; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4708. /* end confdefs.h. */
  4709. int
  4710. main ()
  4711. {
  4712. #ifndef __GNUC__
  4713. choke me
  4714. #endif
  4715. ;
  4716. return 0;
  4717. }
  4718. _ACEOF
  4719. if ac_fn_c_try_compile "$LINENO"; then :
  4720. ac_compiler_gnu=yes
  4721. else
  4722. ac_compiler_gnu=no
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4725. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4728. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4729. if test $ac_compiler_gnu = yes; then
  4730. GCC=yes
  4731. else
  4732. GCC=
  4733. fi
  4734. ac_test_CFLAGS=${CFLAGS+set}
  4735. ac_save_CFLAGS=$CFLAGS
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4737. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4738. if ${ac_cv_prog_cc_g+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. ac_save_c_werror_flag=$ac_c_werror_flag
  4742. ac_c_werror_flag=yes
  4743. ac_cv_prog_cc_g=no
  4744. CFLAGS="-g"
  4745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4746. /* end confdefs.h. */
  4747. int
  4748. main ()
  4749. {
  4750. ;
  4751. return 0;
  4752. }
  4753. _ACEOF
  4754. if ac_fn_c_try_compile "$LINENO"; then :
  4755. ac_cv_prog_cc_g=yes
  4756. else
  4757. CFLAGS=""
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. int
  4761. main ()
  4762. {
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. if ac_fn_c_try_compile "$LINENO"; then :
  4768. else
  4769. ac_c_werror_flag=$ac_save_c_werror_flag
  4770. CFLAGS="-g"
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. int
  4774. main ()
  4775. {
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. if ac_fn_c_try_compile "$LINENO"; then :
  4781. ac_cv_prog_cc_g=yes
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4784. fi
  4785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4786. fi
  4787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4788. ac_c_werror_flag=$ac_save_c_werror_flag
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4791. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4792. if test "$ac_test_CFLAGS" = set; then
  4793. CFLAGS=$ac_save_CFLAGS
  4794. elif test $ac_cv_prog_cc_g = yes; then
  4795. if test "$GCC" = yes; then
  4796. CFLAGS="-g -O2"
  4797. else
  4798. CFLAGS="-g"
  4799. fi
  4800. else
  4801. if test "$GCC" = yes; then
  4802. CFLAGS="-O2"
  4803. else
  4804. CFLAGS=
  4805. fi
  4806. fi
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4808. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4809. if ${ac_cv_prog_cc_c89+:} false; then :
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. ac_cv_prog_cc_c89=no
  4813. ac_save_CC=$CC
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h. */
  4816. #include <stdarg.h>
  4817. #include <stdio.h>
  4818. #include <sys/types.h>
  4819. #include <sys/stat.h>
  4820. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4821. struct buf { int x; };
  4822. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4823. static char *e (p, i)
  4824. char **p;
  4825. int i;
  4826. {
  4827. return p[i];
  4828. }
  4829. static char *f (char * (*g) (char **, int), char **p, ...)
  4830. {
  4831. char *s;
  4832. va_list v;
  4833. va_start (v,p);
  4834. s = g (p, va_arg (v,int));
  4835. va_end (v);
  4836. return s;
  4837. }
  4838. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4839. function prototypes and stuff, but not '\xHH' hex character constants.
  4840. These don't provoke an error unfortunately, instead are silently treated
  4841. as 'x'. The following induces an error, until -std is added to get
  4842. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4843. array size at least. It's necessary to write '\x00'==0 to get something
  4844. that's true only with -std. */
  4845. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4846. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4847. inside strings and character constants. */
  4848. #define FOO(x) 'x'
  4849. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4850. int test (int i, double x);
  4851. struct s1 {int (*f) (int a);};
  4852. struct s2 {int (*f) (double a);};
  4853. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4854. int argc;
  4855. char **argv;
  4856. int
  4857. main ()
  4858. {
  4859. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4860. ;
  4861. return 0;
  4862. }
  4863. _ACEOF
  4864. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4865. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4866. do
  4867. CC="$ac_save_CC $ac_arg"
  4868. if ac_fn_c_try_compile "$LINENO"; then :
  4869. ac_cv_prog_cc_c89=$ac_arg
  4870. fi
  4871. rm -f core conftest.err conftest.$ac_objext
  4872. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4873. done
  4874. rm -f conftest.$ac_ext
  4875. CC=$ac_save_CC
  4876. fi
  4877. # AC_CACHE_VAL
  4878. case "x$ac_cv_prog_cc_c89" in
  4879. x)
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4881. $as_echo "none needed" >&6; } ;;
  4882. xno)
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4884. $as_echo "unsupported" >&6; } ;;
  4885. *)
  4886. CC="$CC $ac_cv_prog_cc_c89"
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4888. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4889. esac
  4890. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4891. fi
  4892. ac_ext=c
  4893. ac_cpp='$CPP $CPPFLAGS'
  4894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4897. DEPDIR="${am__leading_dot}deps"
  4898. ac_config_commands="$ac_config_commands depfiles"
  4899. am_make=${MAKE-make}
  4900. cat > confinc << 'END'
  4901. am__doit:
  4902. @echo this is the am__doit target
  4903. .PHONY: am__doit
  4904. END
  4905. # If we don't find an include directive, just comment out the code.
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4907. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4908. am__include="#"
  4909. am__quote=
  4910. _am_result=none
  4911. # First try GNU make style include.
  4912. echo "include confinc" > confmf
  4913. # Ignore all kinds of additional output from `make'.
  4914. case `$am_make -s -f confmf 2> /dev/null` in #(
  4915. *the\ am__doit\ target*)
  4916. am__include=include
  4917. am__quote=
  4918. _am_result=GNU
  4919. ;;
  4920. esac
  4921. # Now try BSD make style include.
  4922. if test "$am__include" = "#"; then
  4923. echo '.include "confinc"' > confmf
  4924. case `$am_make -s -f confmf 2> /dev/null` in #(
  4925. *the\ am__doit\ target*)
  4926. am__include=.include
  4927. am__quote="\""
  4928. _am_result=BSD
  4929. ;;
  4930. esac
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4933. $as_echo "$_am_result" >&6; }
  4934. rm -f confinc confmf
  4935. # Check whether --enable-dependency-tracking was given.
  4936. if test "${enable_dependency_tracking+set}" = set; then :
  4937. enableval=$enable_dependency_tracking;
  4938. fi
  4939. if test "x$enable_dependency_tracking" != xno; then
  4940. am_depcomp="$ac_aux_dir/depcomp"
  4941. AMDEPBACKSLASH='\'
  4942. am__nodep='_no'
  4943. fi
  4944. if test "x$enable_dependency_tracking" != xno; then
  4945. AMDEP_TRUE=
  4946. AMDEP_FALSE='#'
  4947. else
  4948. AMDEP_TRUE='#'
  4949. AMDEP_FALSE=
  4950. fi
  4951. depcc="$CC" am_compiler_list=
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4953. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4954. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4958. # We make a subdir and do the tests there. Otherwise we can end up
  4959. # making bogus files that we don't know about and never remove. For
  4960. # instance it was reported that on HP-UX the gcc test will end up
  4961. # making a dummy file named `D' -- because `-MD' means `put the output
  4962. # in D'.
  4963. rm -rf conftest.dir
  4964. mkdir conftest.dir
  4965. # Copy depcomp to subdir because otherwise we won't find it if we're
  4966. # using a relative directory.
  4967. cp "$am_depcomp" conftest.dir
  4968. cd conftest.dir
  4969. # We will build objects and dependencies in a subdirectory because
  4970. # it helps to detect inapplicable dependency modes. For instance
  4971. # both Tru64's cc and ICC support -MD to output dependencies as a
  4972. # side effect of compilation, but ICC will put the dependencies in
  4973. # the current directory while Tru64 will put them in the object
  4974. # directory.
  4975. mkdir sub
  4976. am_cv_CC_dependencies_compiler_type=none
  4977. if test "$am_compiler_list" = ""; then
  4978. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4979. fi
  4980. am__universal=false
  4981. case " $depcc " in #(
  4982. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4983. esac
  4984. for depmode in $am_compiler_list; do
  4985. # Setup a source with many dependencies, because some compilers
  4986. # like to wrap large dependency lists on column 80 (with \), and
  4987. # we should not choose a depcomp mode which is confused by this.
  4988. #
  4989. # We need to recreate these files for each test, as the compiler may
  4990. # overwrite some of them when testing with obscure command lines.
  4991. # This happens at least with the AIX C compiler.
  4992. : > sub/conftest.c
  4993. for i in 1 2 3 4 5 6; do
  4994. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4995. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4996. # Solaris 8's {/usr,}/bin/sh.
  4997. touch sub/conftst$i.h
  4998. done
  4999. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5000. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5001. # mode. It turns out that the SunPro C++ compiler does not properly
  5002. # handle `-M -o', and we need to detect this. Also, some Intel
  5003. # versions had trouble with output in subdirs
  5004. am__obj=sub/conftest.${OBJEXT-o}
  5005. am__minus_obj="-o $am__obj"
  5006. case $depmode in
  5007. gcc)
  5008. # This depmode causes a compiler race in universal mode.
  5009. test "$am__universal" = false || continue
  5010. ;;
  5011. nosideeffect)
  5012. # after this tag, mechanisms are not by side-effect, so they'll
  5013. # only be used when explicitly requested
  5014. if test "x$enable_dependency_tracking" = xyes; then
  5015. continue
  5016. else
  5017. break
  5018. fi
  5019. ;;
  5020. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5021. # This compiler won't grok `-c -o', but also, the minuso test has
  5022. # not run yet. These depmodes are late enough in the game, and
  5023. # so weak that their functioning should not be impacted.
  5024. am__obj=conftest.${OBJEXT-o}
  5025. am__minus_obj=
  5026. ;;
  5027. none) break ;;
  5028. esac
  5029. if depmode=$depmode \
  5030. source=sub/conftest.c object=$am__obj \
  5031. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5032. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5033. >/dev/null 2>conftest.err &&
  5034. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5035. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5036. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5037. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5038. # icc doesn't choke on unknown options, it will just issue warnings
  5039. # or remarks (even with -Werror). So we grep stderr for any message
  5040. # that says an option was ignored or not supported.
  5041. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5042. # icc: Command line warning: ignoring option '-M'; no argument required
  5043. # The diagnosis changed in icc 8.0:
  5044. # icc: Command line remark: option '-MP' not supported
  5045. if (grep 'ignoring option' conftest.err ||
  5046. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5047. am_cv_CC_dependencies_compiler_type=$depmode
  5048. break
  5049. fi
  5050. fi
  5051. done
  5052. cd ..
  5053. rm -rf conftest.dir
  5054. else
  5055. am_cv_CC_dependencies_compiler_type=none
  5056. fi
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5059. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5060. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5061. if
  5062. test "x$enable_dependency_tracking" != xno \
  5063. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5064. am__fastdepCC_TRUE=
  5065. am__fastdepCC_FALSE='#'
  5066. else
  5067. am__fastdepCC_TRUE='#'
  5068. am__fastdepCC_FALSE=
  5069. fi
  5070. if test "x$CC" != xcc; then
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5072. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5073. else
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5075. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5076. fi
  5077. set dummy $CC; ac_cc=`$as_echo "$2" |
  5078. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5079. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. int
  5085. main ()
  5086. {
  5087. ;
  5088. return 0;
  5089. }
  5090. _ACEOF
  5091. # Make sure it works both with $CC and with simple cc.
  5092. # We do the test twice because some compilers refuse to overwrite an
  5093. # existing .o file with -o, though they will create one.
  5094. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5095. rm -f conftest2.*
  5096. if { { case "(($ac_try" in
  5097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5098. *) ac_try_echo=$ac_try;;
  5099. esac
  5100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5101. $as_echo "$ac_try_echo"; } >&5
  5102. (eval "$ac_try") 2>&5
  5103. ac_status=$?
  5104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5105. test $ac_status = 0; } &&
  5106. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5108. *) ac_try_echo=$ac_try;;
  5109. esac
  5110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5111. $as_echo "$ac_try_echo"; } >&5
  5112. (eval "$ac_try") 2>&5
  5113. ac_status=$?
  5114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5115. test $ac_status = 0; };
  5116. then
  5117. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5118. if test "x$CC" != xcc; then
  5119. # Test first that cc exists at all.
  5120. if { ac_try='cc -c conftest.$ac_ext >&5'
  5121. { { case "(($ac_try" in
  5122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5123. *) ac_try_echo=$ac_try;;
  5124. esac
  5125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5126. $as_echo "$ac_try_echo"; } >&5
  5127. (eval "$ac_try") 2>&5
  5128. ac_status=$?
  5129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5130. test $ac_status = 0; }; }; then
  5131. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5132. rm -f conftest2.*
  5133. if { { case "(($ac_try" in
  5134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5135. *) ac_try_echo=$ac_try;;
  5136. esac
  5137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5138. $as_echo "$ac_try_echo"; } >&5
  5139. (eval "$ac_try") 2>&5
  5140. ac_status=$?
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5142. test $ac_status = 0; } &&
  5143. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5145. *) ac_try_echo=$ac_try;;
  5146. esac
  5147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5148. $as_echo "$ac_try_echo"; } >&5
  5149. (eval "$ac_try") 2>&5
  5150. ac_status=$?
  5151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5152. test $ac_status = 0; };
  5153. then
  5154. # cc works too.
  5155. :
  5156. else
  5157. # cc exists but doesn't like -o.
  5158. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5159. fi
  5160. fi
  5161. fi
  5162. else
  5163. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5164. fi
  5165. rm -f core conftest*
  5166. fi
  5167. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5169. $as_echo "yes" >&6; }
  5170. else
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5172. $as_echo "no" >&6; }
  5173. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5174. fi
  5175. # FIXME: we rely on the cache variable name because
  5176. # there is no other way.
  5177. set dummy $CC
  5178. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5179. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5180. if test "$am_t" != yes; then
  5181. # Losing compiler, so override with the script.
  5182. # FIXME: It is wrong to rewrite CC.
  5183. # But if we don't then we get into trouble of one sort or another.
  5184. # A longer-term fix would be to have automake use am__CC in this case,
  5185. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5186. CC="$am_aux_dir/compile $CC"
  5187. fi
  5188. # Initialize gnulib right after verifying that the C compiler works.
  5189. ac_ext=c
  5190. ac_cpp='$CPP $CPPFLAGS'
  5191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5195. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5196. # On Suns, sometimes $CPP names a directory.
  5197. if test -n "$CPP" && test -d "$CPP"; then
  5198. CPP=
  5199. fi
  5200. if test -z "$CPP"; then
  5201. if ${ac_cv_prog_CPP+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. # Double quotes because CPP needs to be expanded
  5205. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5206. do
  5207. ac_preproc_ok=false
  5208. for ac_c_preproc_warn_flag in '' yes
  5209. do
  5210. # Use a header file that comes with gcc, so configuring glibc
  5211. # with a fresh cross-compiler works.
  5212. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5213. # <limits.h> exists even on freestanding compilers.
  5214. # On the NeXT, cc -E runs the code through the compiler's parser,
  5215. # not just through cpp. "Syntax error" is here to catch this case.
  5216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5217. /* end confdefs.h. */
  5218. #ifdef __STDC__
  5219. # include <limits.h>
  5220. #else
  5221. # include <assert.h>
  5222. #endif
  5223. Syntax error
  5224. _ACEOF
  5225. if ac_fn_c_try_cpp "$LINENO"; then :
  5226. else
  5227. # Broken: fails on valid input.
  5228. continue
  5229. fi
  5230. rm -f conftest.err conftest.i conftest.$ac_ext
  5231. # OK, works on sane cases. Now check whether nonexistent headers
  5232. # can be detected and how.
  5233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5234. /* end confdefs.h. */
  5235. #include <ac_nonexistent.h>
  5236. _ACEOF
  5237. if ac_fn_c_try_cpp "$LINENO"; then :
  5238. # Broken: success on invalid input.
  5239. continue
  5240. else
  5241. # Passes both tests.
  5242. ac_preproc_ok=:
  5243. break
  5244. fi
  5245. rm -f conftest.err conftest.i conftest.$ac_ext
  5246. done
  5247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5248. rm -f conftest.i conftest.err conftest.$ac_ext
  5249. if $ac_preproc_ok; then :
  5250. break
  5251. fi
  5252. done
  5253. ac_cv_prog_CPP=$CPP
  5254. fi
  5255. CPP=$ac_cv_prog_CPP
  5256. else
  5257. ac_cv_prog_CPP=$CPP
  5258. fi
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5260. $as_echo "$CPP" >&6; }
  5261. ac_preproc_ok=false
  5262. for ac_c_preproc_warn_flag in '' yes
  5263. do
  5264. # Use a header file that comes with gcc, so configuring glibc
  5265. # with a fresh cross-compiler works.
  5266. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5267. # <limits.h> exists even on freestanding compilers.
  5268. # On the NeXT, cc -E runs the code through the compiler's parser,
  5269. # not just through cpp. "Syntax error" is here to catch this case.
  5270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5271. /* end confdefs.h. */
  5272. #ifdef __STDC__
  5273. # include <limits.h>
  5274. #else
  5275. # include <assert.h>
  5276. #endif
  5277. Syntax error
  5278. _ACEOF
  5279. if ac_fn_c_try_cpp "$LINENO"; then :
  5280. else
  5281. # Broken: fails on valid input.
  5282. continue
  5283. fi
  5284. rm -f conftest.err conftest.i conftest.$ac_ext
  5285. # OK, works on sane cases. Now check whether nonexistent headers
  5286. # can be detected and how.
  5287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5288. /* end confdefs.h. */
  5289. #include <ac_nonexistent.h>
  5290. _ACEOF
  5291. if ac_fn_c_try_cpp "$LINENO"; then :
  5292. # Broken: success on invalid input.
  5293. continue
  5294. else
  5295. # Passes both tests.
  5296. ac_preproc_ok=:
  5297. break
  5298. fi
  5299. rm -f conftest.err conftest.i conftest.$ac_ext
  5300. done
  5301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5302. rm -f conftest.i conftest.err conftest.$ac_ext
  5303. if $ac_preproc_ok; then :
  5304. else
  5305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5307. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5308. See \`config.log' for more details" "$LINENO" 5; }
  5309. fi
  5310. ac_ext=c
  5311. ac_cpp='$CPP $CPPFLAGS'
  5312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5316. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5317. if ${ac_cv_path_GREP+:} false; then :
  5318. $as_echo_n "(cached) " >&6
  5319. else
  5320. if test -z "$GREP"; then
  5321. ac_path_GREP_found=false
  5322. # Loop through the user's path and test for each of PROGNAME-LIST
  5323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5324. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5325. do
  5326. IFS=$as_save_IFS
  5327. test -z "$as_dir" && as_dir=.
  5328. for ac_prog in grep ggrep; do
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5331. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5332. # Check for GNU ac_path_GREP and select it if it is found.
  5333. # Check for GNU $ac_path_GREP
  5334. case `"$ac_path_GREP" --version 2>&1` in
  5335. *GNU*)
  5336. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5337. *)
  5338. ac_count=0
  5339. $as_echo_n 0123456789 >"conftest.in"
  5340. while :
  5341. do
  5342. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5343. mv "conftest.tmp" "conftest.in"
  5344. cp "conftest.in" "conftest.nl"
  5345. $as_echo 'GREP' >> "conftest.nl"
  5346. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5347. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5348. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5349. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5350. # Best one so far, save it but keep looking for a better one
  5351. ac_cv_path_GREP="$ac_path_GREP"
  5352. ac_path_GREP_max=$ac_count
  5353. fi
  5354. # 10*(2^10) chars as input seems more than enough
  5355. test $ac_count -gt 10 && break
  5356. done
  5357. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5358. esac
  5359. $ac_path_GREP_found && break 3
  5360. done
  5361. done
  5362. done
  5363. IFS=$as_save_IFS
  5364. if test -z "$ac_cv_path_GREP"; then
  5365. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5366. fi
  5367. else
  5368. ac_cv_path_GREP=$GREP
  5369. fi
  5370. fi
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5372. $as_echo "$ac_cv_path_GREP" >&6; }
  5373. GREP="$ac_cv_path_GREP"
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5375. $as_echo_n "checking for egrep... " >&6; }
  5376. if ${ac_cv_path_EGREP+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5380. then ac_cv_path_EGREP="$GREP -E"
  5381. else
  5382. if test -z "$EGREP"; then
  5383. ac_path_EGREP_found=false
  5384. # Loop through the user's path and test for each of PROGNAME-LIST
  5385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5387. do
  5388. IFS=$as_save_IFS
  5389. test -z "$as_dir" && as_dir=.
  5390. for ac_prog in egrep; do
  5391. for ac_exec_ext in '' $ac_executable_extensions; do
  5392. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5393. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5394. # Check for GNU ac_path_EGREP and select it if it is found.
  5395. # Check for GNU $ac_path_EGREP
  5396. case `"$ac_path_EGREP" --version 2>&1` in
  5397. *GNU*)
  5398. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5399. *)
  5400. ac_count=0
  5401. $as_echo_n 0123456789 >"conftest.in"
  5402. while :
  5403. do
  5404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5405. mv "conftest.tmp" "conftest.in"
  5406. cp "conftest.in" "conftest.nl"
  5407. $as_echo 'EGREP' >> "conftest.nl"
  5408. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5410. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5411. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5412. # Best one so far, save it but keep looking for a better one
  5413. ac_cv_path_EGREP="$ac_path_EGREP"
  5414. ac_path_EGREP_max=$ac_count
  5415. fi
  5416. # 10*(2^10) chars as input seems more than enough
  5417. test $ac_count -gt 10 && break
  5418. done
  5419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5420. esac
  5421. $ac_path_EGREP_found && break 3
  5422. done
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. if test -z "$ac_cv_path_EGREP"; then
  5427. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5428. fi
  5429. else
  5430. ac_cv_path_EGREP=$EGREP
  5431. fi
  5432. fi
  5433. fi
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5435. $as_echo "$ac_cv_path_EGREP" >&6; }
  5436. EGREP="$ac_cv_path_EGREP"
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
  5438. $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
  5439. if ${gl_cv_c_amsterdam_compiler+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. #ifdef __ACK__
  5445. Amsterdam
  5446. #endif
  5447. _ACEOF
  5448. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5449. $EGREP "Amsterdam" >/dev/null 2>&1; then :
  5450. gl_cv_c_amsterdam_compiler=yes
  5451. else
  5452. gl_cv_c_amsterdam_compiler=no
  5453. fi
  5454. rm -f conftest*
  5455. fi
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
  5457. $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
  5458. if test -z "$AR"; then
  5459. if test $gl_cv_c_amsterdam_compiler = yes; then
  5460. AR='cc -c.a'
  5461. if test -z "$ARFLAGS"; then
  5462. ARFLAGS='-o'
  5463. fi
  5464. else
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if ${ac_cv_prog_AR+:} false; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$AR"; then
  5474. ac_cv_prog_AR="$AR" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5483. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. AR=$ac_cv_prog_AR
  5493. if test -n "$AR"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5495. $as_echo "$AR" >&6; }
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. fi
  5501. if test -z "$ac_cv_prog_AR"; then
  5502. ac_ct_AR=$AR
  5503. # Extract the first word of "ar", so it can be a program name with args.
  5504. set dummy ar; ac_word=$2
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5506. $as_echo_n "checking for $ac_word... " >&6; }
  5507. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if test -n "$ac_ct_AR"; then
  5511. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5512. else
  5513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514. for as_dir in $PATH
  5515. do
  5516. IFS=$as_save_IFS
  5517. test -z "$as_dir" && as_dir=.
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520. ac_cv_prog_ac_ct_AR="ar"
  5521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5530. if test -n "$ac_ct_AR"; then
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5532. $as_echo "$ac_ct_AR" >&6; }
  5533. else
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5535. $as_echo "no" >&6; }
  5536. fi
  5537. if test "x$ac_ct_AR" = x; then
  5538. AR="ar"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. AR=$ac_ct_AR
  5547. fi
  5548. else
  5549. AR="$ac_cv_prog_AR"
  5550. fi
  5551. if test -z "$ARFLAGS"; then
  5552. ARFLAGS='cru'
  5553. fi
  5554. fi
  5555. else
  5556. if test -z "$ARFLAGS"; then
  5557. ARFLAGS='cru'
  5558. fi
  5559. fi
  5560. if test -z "$RANLIB"; then
  5561. if test $gl_cv_c_amsterdam_compiler = yes; then
  5562. RANLIB=':'
  5563. else
  5564. if test -n "$ac_tool_prefix"; then
  5565. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5566. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_RANLIB+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$RANLIB"; then
  5573. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5582. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. RANLIB=$ac_cv_prog_RANLIB
  5592. if test -n "$RANLIB"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5594. $as_echo "$RANLIB" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. fi
  5600. if test -z "$ac_cv_prog_RANLIB"; then
  5601. ac_ct_RANLIB=$RANLIB
  5602. # Extract the first word of "ranlib", so it can be a program name with args.
  5603. set dummy ranlib; ac_word=$2
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5605. $as_echo_n "checking for $ac_word... " >&6; }
  5606. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. if test -n "$ac_ct_RANLIB"; then
  5610. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5611. else
  5612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5613. for as_dir in $PATH
  5614. do
  5615. IFS=$as_save_IFS
  5616. test -z "$as_dir" && as_dir=.
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5619. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5621. break 2
  5622. fi
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. fi
  5627. fi
  5628. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5629. if test -n "$ac_ct_RANLIB"; then
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5631. $as_echo "$ac_ct_RANLIB" >&6; }
  5632. else
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5634. $as_echo "no" >&6; }
  5635. fi
  5636. if test "x$ac_ct_RANLIB" = x; then
  5637. RANLIB=":"
  5638. else
  5639. case $cross_compiling:$ac_tool_warned in
  5640. yes:)
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5643. ac_tool_warned=yes ;;
  5644. esac
  5645. RANLIB=$ac_ct_RANLIB
  5646. fi
  5647. else
  5648. RANLIB="$ac_cv_prog_RANLIB"
  5649. fi
  5650. fi
  5651. fi
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5653. $as_echo_n "checking for ANSI C header files... " >&6; }
  5654. if ${ac_cv_header_stdc+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5658. /* end confdefs.h. */
  5659. #include <stdlib.h>
  5660. #include <stdarg.h>
  5661. #include <string.h>
  5662. #include <float.h>
  5663. int
  5664. main ()
  5665. {
  5666. ;
  5667. return 0;
  5668. }
  5669. _ACEOF
  5670. if ac_fn_c_try_compile "$LINENO"; then :
  5671. ac_cv_header_stdc=yes
  5672. else
  5673. ac_cv_header_stdc=no
  5674. fi
  5675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5676. if test $ac_cv_header_stdc = yes; then
  5677. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5679. /* end confdefs.h. */
  5680. #include <string.h>
  5681. _ACEOF
  5682. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5683. $EGREP "memchr" >/dev/null 2>&1; then :
  5684. else
  5685. ac_cv_header_stdc=no
  5686. fi
  5687. rm -f conftest*
  5688. fi
  5689. if test $ac_cv_header_stdc = yes; then
  5690. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5692. /* end confdefs.h. */
  5693. #include <stdlib.h>
  5694. _ACEOF
  5695. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5696. $EGREP "free" >/dev/null 2>&1; then :
  5697. else
  5698. ac_cv_header_stdc=no
  5699. fi
  5700. rm -f conftest*
  5701. fi
  5702. if test $ac_cv_header_stdc = yes; then
  5703. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5704. if test "$cross_compiling" = yes; then :
  5705. :
  5706. else
  5707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5708. /* end confdefs.h. */
  5709. #include <ctype.h>
  5710. #include <stdlib.h>
  5711. #if ((' ' & 0x0FF) == 0x020)
  5712. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5713. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5714. #else
  5715. # define ISLOWER(c) \
  5716. (('a' <= (c) && (c) <= 'i') \
  5717. || ('j' <= (c) && (c) <= 'r') \
  5718. || ('s' <= (c) && (c) <= 'z'))
  5719. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5720. #endif
  5721. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5722. int
  5723. main ()
  5724. {
  5725. int i;
  5726. for (i = 0; i < 256; i++)
  5727. if (XOR (islower (i), ISLOWER (i))
  5728. || toupper (i) != TOUPPER (i))
  5729. return 2;
  5730. return 0;
  5731. }
  5732. _ACEOF
  5733. if ac_fn_c_try_run "$LINENO"; then :
  5734. else
  5735. ac_cv_header_stdc=no
  5736. fi
  5737. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5738. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5739. fi
  5740. fi
  5741. fi
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5743. $as_echo "$ac_cv_header_stdc" >&6; }
  5744. if test $ac_cv_header_stdc = yes; then
  5745. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5746. fi
  5747. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5748. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5749. inttypes.h stdint.h unistd.h
  5750. do :
  5751. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5752. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5753. "
  5754. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5755. cat >>confdefs.h <<_ACEOF
  5756. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5757. _ACEOF
  5758. fi
  5759. done
  5760. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5761. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  5762. MINIX=yes
  5763. else
  5764. MINIX=
  5765. fi
  5766. if test "$MINIX" = yes; then
  5767. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5768. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5769. $as_echo "#define _MINIX 1" >>confdefs.h
  5770. fi
  5771. case "$host_os" in
  5772. hpux*)
  5773. $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
  5774. ;;
  5775. esac
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5777. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5778. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5782. /* end confdefs.h. */
  5783. # define __EXTENSIONS__ 1
  5784. $ac_includes_default
  5785. int
  5786. main ()
  5787. {
  5788. ;
  5789. return 0;
  5790. }
  5791. _ACEOF
  5792. if ac_fn_c_try_compile "$LINENO"; then :
  5793. ac_cv_safe_to_define___extensions__=yes
  5794. else
  5795. ac_cv_safe_to_define___extensions__=no
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5800. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5801. test $ac_cv_safe_to_define___extensions__ = yes &&
  5802. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5803. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5804. $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  5805. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5806. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5807. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5808. # Check whether --enable-largefile was given.
  5809. if test "${enable_largefile+set}" = set; then :
  5810. enableval=$enable_largefile;
  5811. fi
  5812. if test "$enable_largefile" != no; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5814. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5815. if ${ac_cv_sys_largefile_CC+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. ac_cv_sys_largefile_CC=no
  5819. if test "$GCC" != yes; then
  5820. ac_save_CC=$CC
  5821. while :; do
  5822. # IRIX 6.2 and later do not support large files by default,
  5823. # so use the C compiler's -n32 option if that helps.
  5824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5825. /* end confdefs.h. */
  5826. #include <sys/types.h>
  5827. /* Check that off_t can represent 2**63 - 1 correctly.
  5828. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5829. since some C++ compilers masquerading as C compilers
  5830. incorrectly reject 9223372036854775807. */
  5831. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5832. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5833. && LARGE_OFF_T % 2147483647 == 1)
  5834. ? 1 : -1];
  5835. int
  5836. main ()
  5837. {
  5838. ;
  5839. return 0;
  5840. }
  5841. _ACEOF
  5842. if ac_fn_c_try_compile "$LINENO"; then :
  5843. break
  5844. fi
  5845. rm -f core conftest.err conftest.$ac_objext
  5846. CC="$CC -n32"
  5847. if ac_fn_c_try_compile "$LINENO"; then :
  5848. ac_cv_sys_largefile_CC=' -n32'; break
  5849. fi
  5850. rm -f core conftest.err conftest.$ac_objext
  5851. break
  5852. done
  5853. CC=$ac_save_CC
  5854. rm -f conftest.$ac_ext
  5855. fi
  5856. fi
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5858. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5859. if test "$ac_cv_sys_largefile_CC" != no; then
  5860. CC=$CC$ac_cv_sys_largefile_CC
  5861. fi
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5863. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5864. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. while :; do
  5868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5869. /* end confdefs.h. */
  5870. #include <sys/types.h>
  5871. /* Check that off_t can represent 2**63 - 1 correctly.
  5872. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5873. since some C++ compilers masquerading as C compilers
  5874. incorrectly reject 9223372036854775807. */
  5875. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5876. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5877. && LARGE_OFF_T % 2147483647 == 1)
  5878. ? 1 : -1];
  5879. int
  5880. main ()
  5881. {
  5882. ;
  5883. return 0;
  5884. }
  5885. _ACEOF
  5886. if ac_fn_c_try_compile "$LINENO"; then :
  5887. ac_cv_sys_file_offset_bits=no; break
  5888. fi
  5889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5891. /* end confdefs.h. */
  5892. #define _FILE_OFFSET_BITS 64
  5893. #include <sys/types.h>
  5894. /* Check that off_t can represent 2**63 - 1 correctly.
  5895. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5896. since some C++ compilers masquerading as C compilers
  5897. incorrectly reject 9223372036854775807. */
  5898. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5899. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5900. && LARGE_OFF_T % 2147483647 == 1)
  5901. ? 1 : -1];
  5902. int
  5903. main ()
  5904. {
  5905. ;
  5906. return 0;
  5907. }
  5908. _ACEOF
  5909. if ac_fn_c_try_compile "$LINENO"; then :
  5910. ac_cv_sys_file_offset_bits=64; break
  5911. fi
  5912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5913. ac_cv_sys_file_offset_bits=unknown
  5914. break
  5915. done
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5918. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5919. case $ac_cv_sys_file_offset_bits in #(
  5920. no | unknown) ;;
  5921. *)
  5922. cat >>confdefs.h <<_ACEOF
  5923. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5924. _ACEOF
  5925. ;;
  5926. esac
  5927. rm -rf conftest*
  5928. if test $ac_cv_sys_file_offset_bits = unknown; then
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5930. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5931. if ${ac_cv_sys_large_files+:} false; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. while :; do
  5935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5936. /* end confdefs.h. */
  5937. #include <sys/types.h>
  5938. /* Check that off_t can represent 2**63 - 1 correctly.
  5939. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5940. since some C++ compilers masquerading as C compilers
  5941. incorrectly reject 9223372036854775807. */
  5942. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5943. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5944. && LARGE_OFF_T % 2147483647 == 1)
  5945. ? 1 : -1];
  5946. int
  5947. main ()
  5948. {
  5949. ;
  5950. return 0;
  5951. }
  5952. _ACEOF
  5953. if ac_fn_c_try_compile "$LINENO"; then :
  5954. ac_cv_sys_large_files=no; break
  5955. fi
  5956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5958. /* end confdefs.h. */
  5959. #define _LARGE_FILES 1
  5960. #include <sys/types.h>
  5961. /* Check that off_t can represent 2**63 - 1 correctly.
  5962. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5963. since some C++ compilers masquerading as C compilers
  5964. incorrectly reject 9223372036854775807. */
  5965. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5966. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5967. && LARGE_OFF_T % 2147483647 == 1)
  5968. ? 1 : -1];
  5969. int
  5970. main ()
  5971. {
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. if ac_fn_c_try_compile "$LINENO"; then :
  5977. ac_cv_sys_large_files=1; break
  5978. fi
  5979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5980. ac_cv_sys_large_files=unknown
  5981. break
  5982. done
  5983. fi
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5985. $as_echo "$ac_cv_sys_large_files" >&6; }
  5986. case $ac_cv_sys_large_files in #(
  5987. no | unknown) ;;
  5988. *)
  5989. cat >>confdefs.h <<_ACEOF
  5990. #define _LARGE_FILES $ac_cv_sys_large_files
  5991. _ACEOF
  5992. ;;
  5993. esac
  5994. rm -rf conftest*
  5995. fi
  5996. fi
  5997. case $ac_cv_prog_cc_stdc in #(
  5998. no) :
  5999. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  6000. *) :
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  6002. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  6003. if ${ac_cv_prog_cc_c99+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. ac_cv_prog_cc_c99=no
  6007. ac_save_CC=$CC
  6008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6009. /* end confdefs.h. */
  6010. #include <stdarg.h>
  6011. #include <stdbool.h>
  6012. #include <stdlib.h>
  6013. #include <wchar.h>
  6014. #include <stdio.h>
  6015. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  6016. #define debug(...) fprintf (stderr, __VA_ARGS__)
  6017. #define showlist(...) puts (#__VA_ARGS__)
  6018. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6019. static void
  6020. test_varargs_macros (void)
  6021. {
  6022. int x = 1234;
  6023. int y = 5678;
  6024. debug ("Flag");
  6025. debug ("X = %d\n", x);
  6026. showlist (The first, second, and third items.);
  6027. report (x>y, "x is %d but y is %d", x, y);
  6028. }
  6029. // Check long long types.
  6030. #define BIG64 18446744073709551615ull
  6031. #define BIG32 4294967295ul
  6032. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6033. #if !BIG_OK
  6034. your preprocessor is broken;
  6035. #endif
  6036. #if BIG_OK
  6037. #else
  6038. your preprocessor is broken;
  6039. #endif
  6040. static long long int bignum = -9223372036854775807LL;
  6041. static unsigned long long int ubignum = BIG64;
  6042. struct incomplete_array
  6043. {
  6044. int datasize;
  6045. double data[];
  6046. };
  6047. struct named_init {
  6048. int number;
  6049. const wchar_t *name;
  6050. double average;
  6051. };
  6052. typedef const char *ccp;
  6053. static inline int
  6054. test_restrict (ccp restrict text)
  6055. {
  6056. // See if C++-style comments work.
  6057. // Iterate through items via the restricted pointer.
  6058. // Also check for declarations in for loops.
  6059. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6060. continue;
  6061. return 0;
  6062. }
  6063. // Check varargs and va_copy.
  6064. static void
  6065. test_varargs (const char *format, ...)
  6066. {
  6067. va_list args;
  6068. va_start (args, format);
  6069. va_list args_copy;
  6070. va_copy (args_copy, args);
  6071. const char *str;
  6072. int number;
  6073. float fnumber;
  6074. while (*format)
  6075. {
  6076. switch (*format++)
  6077. {
  6078. case 's': // string
  6079. str = va_arg (args_copy, const char *);
  6080. break;
  6081. case 'd': // int
  6082. number = va_arg (args_copy, int);
  6083. break;
  6084. case 'f': // float
  6085. fnumber = va_arg (args_copy, double);
  6086. break;
  6087. default:
  6088. break;
  6089. }
  6090. }
  6091. va_end (args_copy);
  6092. va_end (args);
  6093. }
  6094. int
  6095. main ()
  6096. {
  6097. // Check bool.
  6098. _Bool success = false;
  6099. // Check restrict.
  6100. if (test_restrict ("String literal") == 0)
  6101. success = true;
  6102. char *restrict newvar = "Another string";
  6103. // Check varargs.
  6104. test_varargs ("s, d' f .", "string", 65, 34.234);
  6105. test_varargs_macros ();
  6106. // Check flexible array members.
  6107. struct incomplete_array *ia =
  6108. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6109. ia->datasize = 10;
  6110. for (int i = 0; i < ia->datasize; ++i)
  6111. ia->data[i] = i * 1.234;
  6112. // Check named initializers.
  6113. struct named_init ni = {
  6114. .number = 34,
  6115. .name = L"Test wide string",
  6116. .average = 543.34343,
  6117. };
  6118. ni.number = 58;
  6119. int dynamic_array[ni.number];
  6120. dynamic_array[ni.number - 1] = 543;
  6121. // work around unused variable warnings
  6122. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6123. || dynamic_array[ni.number - 1] != 543);
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  6129. do
  6130. CC="$ac_save_CC $ac_arg"
  6131. if ac_fn_c_try_compile "$LINENO"; then :
  6132. ac_cv_prog_cc_c99=$ac_arg
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext
  6135. test "x$ac_cv_prog_cc_c99" != "xno" && break
  6136. done
  6137. rm -f conftest.$ac_ext
  6138. CC=$ac_save_CC
  6139. fi
  6140. # AC_CACHE_VAL
  6141. case "x$ac_cv_prog_cc_c99" in
  6142. x)
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6144. $as_echo "none needed" >&6; } ;;
  6145. xno)
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6147. $as_echo "unsupported" >&6; } ;;
  6148. *)
  6149. CC="$CC $ac_cv_prog_cc_c99"
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  6151. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  6152. esac
  6153. if test "x$ac_cv_prog_cc_c99" != xno; then :
  6154. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  6157. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  6158. if ${ac_cv_prog_cc_c89+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. ac_cv_prog_cc_c89=no
  6162. ac_save_CC=$CC
  6163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6164. /* end confdefs.h. */
  6165. #include <stdarg.h>
  6166. #include <stdio.h>
  6167. #include <sys/types.h>
  6168. #include <sys/stat.h>
  6169. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  6170. struct buf { int x; };
  6171. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6172. static char *e (p, i)
  6173. char **p;
  6174. int i;
  6175. {
  6176. return p[i];
  6177. }
  6178. static char *f (char * (*g) (char **, int), char **p, ...)
  6179. {
  6180. char *s;
  6181. va_list v;
  6182. va_start (v,p);
  6183. s = g (p, va_arg (v,int));
  6184. va_end (v);
  6185. return s;
  6186. }
  6187. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6188. function prototypes and stuff, but not '\xHH' hex character constants.
  6189. These don't provoke an error unfortunately, instead are silently treated
  6190. as 'x'. The following induces an error, until -std is added to get
  6191. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6192. array size at least. It's necessary to write '\x00'==0 to get something
  6193. that's true only with -std. */
  6194. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6195. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6196. inside strings and character constants. */
  6197. #define FOO(x) 'x'
  6198. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6199. int test (int i, double x);
  6200. struct s1 {int (*f) (int a);};
  6201. struct s2 {int (*f) (double a);};
  6202. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6203. int argc;
  6204. char **argv;
  6205. int
  6206. main ()
  6207. {
  6208. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6209. ;
  6210. return 0;
  6211. }
  6212. _ACEOF
  6213. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6214. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6215. do
  6216. CC="$ac_save_CC $ac_arg"
  6217. if ac_fn_c_try_compile "$LINENO"; then :
  6218. ac_cv_prog_cc_c89=$ac_arg
  6219. fi
  6220. rm -f core conftest.err conftest.$ac_objext
  6221. test "x$ac_cv_prog_cc_c89" != "xno" && break
  6222. done
  6223. rm -f conftest.$ac_ext
  6224. CC=$ac_save_CC
  6225. fi
  6226. # AC_CACHE_VAL
  6227. case "x$ac_cv_prog_cc_c89" in
  6228. x)
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6230. $as_echo "none needed" >&6; } ;;
  6231. xno)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6233. $as_echo "unsupported" >&6; } ;;
  6234. *)
  6235. CC="$CC $ac_cv_prog_cc_c89"
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  6237. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  6238. esac
  6239. if test "x$ac_cv_prog_cc_c89" != xno; then :
  6240. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  6241. else
  6242. ac_cv_prog_cc_stdc=no
  6243. fi
  6244. fi
  6245. ;;
  6246. esac
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  6248. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  6249. if ${ac_cv_prog_cc_stdc+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. fi
  6252. case $ac_cv_prog_cc_stdc in #(
  6253. no) :
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6255. $as_echo "unsupported" >&6; } ;; #(
  6256. '') :
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6258. $as_echo "none needed" >&6; } ;; #(
  6259. *) :
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  6261. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  6262. esac
  6263. # Code from module alloca-opt:
  6264. # Code from module allocator:
  6265. # Code from module careadlinkat:
  6266. # Code from module crypto/md5:
  6267. # Code from module crypto/sha1:
  6268. # Code from module crypto/sha256:
  6269. # Code from module crypto/sha512:
  6270. # Code from module dosname:
  6271. # Code from module dtoastr:
  6272. # Code from module dup2:
  6273. # Code from module extensions:
  6274. # Code from module filemode:
  6275. # Code from module getloadavg:
  6276. # Code from module getopt-gnu:
  6277. # Code from module getopt-posix:
  6278. # Code from module gettext-h:
  6279. # Code from module ignore-value:
  6280. # Code from module include_next:
  6281. # Code from module intprops:
  6282. # Code from module inttypes-incomplete:
  6283. # Code from module largefile:
  6284. # Code from module lstat:
  6285. # Code from module mktime:
  6286. # Code from module multiarch:
  6287. # Code from module nocrash:
  6288. # Code from module pathmax:
  6289. # Code from module pthread_sigmask:
  6290. # Code from module readlink:
  6291. # Code from module signal-h:
  6292. # Code from module sigprocmask:
  6293. # Code from module snippet/_Noreturn:
  6294. # Code from module snippet/arg-nonnull:
  6295. # Code from module snippet/c++defs:
  6296. # Code from module snippet/warn-on-use:
  6297. # Code from module socklen:
  6298. # Code from module ssize_t:
  6299. # Code from module stat:
  6300. # Code from module stdarg:
  6301. # Code from module stdbool:
  6302. # Code from module stddef:
  6303. # Code from module stdint:
  6304. # Code from module stdio:
  6305. # Code from module stdlib:
  6306. # Code from module strftime:
  6307. # Code from module strtoimax:
  6308. # Code from module strtoll:
  6309. # Code from module strtoull:
  6310. # Code from module strtoumax:
  6311. # Code from module symlink:
  6312. # Code from module sys_stat:
  6313. # Code from module time:
  6314. # Code from module time_r:
  6315. # Code from module u64:
  6316. # Code from module unistd:
  6317. # Code from module verify:
  6318. # On Suns, sometimes $CPP names a directory.
  6319. if test -n "$CPP" && test -d "$CPP"; then
  6320. CPP=
  6321. fi
  6322. ## If not using gcc, and on Solaris, and no CPP specified, see if
  6323. ## using a Sun compiler, which needs -Xs to prevent whitespace.
  6324. if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
  6325. test x"$CPP" = x; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
  6327. $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
  6328. if ${emacs_cv_sunpro_c+:} false; then :
  6329. $as_echo_n "(cached) " >&6
  6330. else
  6331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6332. /* end confdefs.h. */
  6333. int
  6334. main ()
  6335. {
  6336. #ifndef __SUNPRO_C
  6337. fail;
  6338. #endif
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. if ac_fn_c_try_link "$LINENO"; then :
  6344. emacs_cv_sunpro_c=yes
  6345. else
  6346. emacs_cv_sunpro_c=no
  6347. fi
  6348. rm -f core conftest.err conftest.$ac_objext \
  6349. conftest$ac_exeext conftest.$ac_ext
  6350. fi
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
  6352. $as_echo "$emacs_cv_sunpro_c" >&6; }
  6353. if test x"$emacs_cv_sunpro_c" = xyes; then
  6354. NON_GNU_CPP="$CC -E -Xs"
  6355. fi
  6356. fi
  6357. #### Some systems specify a CPP to use unless we are using GCC.
  6358. #### Now that we know whether we are using GCC, we can decide whether
  6359. #### to use that one.
  6360. if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
  6361. then
  6362. CPP="$NON_GNU_CPP"
  6363. fi
  6364. #### Some systems specify a CC to use unless we are using GCC.
  6365. #### Now that we know whether we are using GCC, we can decide whether
  6366. #### to use that one.
  6367. if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
  6368. test x$cc_specified != xyes
  6369. then
  6370. CC="$NON_GNU_CC"
  6371. fi
  6372. if test x$GCC = xyes; then
  6373. test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
  6374. else
  6375. test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
  6376. fi
  6377. ### Use -Wdeclaration-after-statement if the compiler supports it
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
  6379. $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
  6380. SAVE_CFLAGS="$CFLAGS"
  6381. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  6382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6383. /* end confdefs.h. */
  6384. int
  6385. main ()
  6386. {
  6387. ;
  6388. return 0;
  6389. }
  6390. _ACEOF
  6391. if ac_fn_c_try_compile "$LINENO"; then :
  6392. has_option=yes
  6393. else
  6394. has_option=no
  6395. fi
  6396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6397. if test $has_option = yes; then
  6398. C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
  6399. fi
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6401. $as_echo "$has_option" >&6; }
  6402. CFLAGS="$SAVE_CFLAGS"
  6403. unset has_option
  6404. unset SAVE_CFLAGS
  6405. ### Use -Wold-style-definition if the compiler supports it
  6406. # This can be removed when conversion to standard C is finished.
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
  6408. $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
  6409. SAVE_CFLAGS="$CFLAGS"
  6410. CFLAGS="$CFLAGS -Wold-style-definition"
  6411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6412. /* end confdefs.h. */
  6413. int
  6414. main ()
  6415. {
  6416. ;
  6417. return 0;
  6418. }
  6419. _ACEOF
  6420. if ac_fn_c_try_compile "$LINENO"; then :
  6421. has_option=yes
  6422. else
  6423. has_option=no
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6426. if test $has_option = yes; then
  6427. C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
  6428. fi
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6430. $as_echo "$has_option" >&6; }
  6431. CFLAGS="$SAVE_CFLAGS"
  6432. unset has_option
  6433. unset SAVE_CFLAGS
  6434. ### Use -Wimplicit-function-declaration if the compiler supports it
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
  6436. $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
  6437. SAVE_CFLAGS="$CFLAGS"
  6438. CFLAGS="$CFLAGS -Wimplicit-function-declaration"
  6439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6440. /* end confdefs.h. */
  6441. int
  6442. main ()
  6443. {
  6444. ;
  6445. return 0;
  6446. }
  6447. _ACEOF
  6448. if ac_fn_c_try_compile "$LINENO"; then :
  6449. has_option=yes
  6450. else
  6451. has_option=no
  6452. fi
  6453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. if test $has_option = yes; then
  6455. C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
  6456. fi
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6458. $as_echo "$has_option" >&6; }
  6459. CFLAGS="$SAVE_CFLAGS"
  6460. unset has_option
  6461. unset SAVE_CFLAGS
  6462. #### Some other nice autoconf tests.
  6463. ac_ext=c
  6464. ac_cpp='$CPP $CPPFLAGS'
  6465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6469. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6470. # On Suns, sometimes $CPP names a directory.
  6471. if test -n "$CPP" && test -d "$CPP"; then
  6472. CPP=
  6473. fi
  6474. if test -z "$CPP"; then
  6475. if ${ac_cv_prog_CPP+:} false; then :
  6476. $as_echo_n "(cached) " >&6
  6477. else
  6478. # Double quotes because CPP needs to be expanded
  6479. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6480. do
  6481. ac_preproc_ok=false
  6482. for ac_c_preproc_warn_flag in '' yes
  6483. do
  6484. # Use a header file that comes with gcc, so configuring glibc
  6485. # with a fresh cross-compiler works.
  6486. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6487. # <limits.h> exists even on freestanding compilers.
  6488. # On the NeXT, cc -E runs the code through the compiler's parser,
  6489. # not just through cpp. "Syntax error" is here to catch this case.
  6490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6491. /* end confdefs.h. */
  6492. #ifdef __STDC__
  6493. # include <limits.h>
  6494. #else
  6495. # include <assert.h>
  6496. #endif
  6497. Syntax error
  6498. _ACEOF
  6499. if ac_fn_c_try_cpp "$LINENO"; then :
  6500. else
  6501. # Broken: fails on valid input.
  6502. continue
  6503. fi
  6504. rm -f conftest.err conftest.i conftest.$ac_ext
  6505. # OK, works on sane cases. Now check whether nonexistent headers
  6506. # can be detected and how.
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. #include <ac_nonexistent.h>
  6510. _ACEOF
  6511. if ac_fn_c_try_cpp "$LINENO"; then :
  6512. # Broken: success on invalid input.
  6513. continue
  6514. else
  6515. # Passes both tests.
  6516. ac_preproc_ok=:
  6517. break
  6518. fi
  6519. rm -f conftest.err conftest.i conftest.$ac_ext
  6520. done
  6521. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6522. rm -f conftest.i conftest.err conftest.$ac_ext
  6523. if $ac_preproc_ok; then :
  6524. break
  6525. fi
  6526. done
  6527. ac_cv_prog_CPP=$CPP
  6528. fi
  6529. CPP=$ac_cv_prog_CPP
  6530. else
  6531. ac_cv_prog_CPP=$CPP
  6532. fi
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6534. $as_echo "$CPP" >&6; }
  6535. ac_preproc_ok=false
  6536. for ac_c_preproc_warn_flag in '' yes
  6537. do
  6538. # Use a header file that comes with gcc, so configuring glibc
  6539. # with a fresh cross-compiler works.
  6540. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6541. # <limits.h> exists even on freestanding compilers.
  6542. # On the NeXT, cc -E runs the code through the compiler's parser,
  6543. # not just through cpp. "Syntax error" is here to catch this case.
  6544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6545. /* end confdefs.h. */
  6546. #ifdef __STDC__
  6547. # include <limits.h>
  6548. #else
  6549. # include <assert.h>
  6550. #endif
  6551. Syntax error
  6552. _ACEOF
  6553. if ac_fn_c_try_cpp "$LINENO"; then :
  6554. else
  6555. # Broken: fails on valid input.
  6556. continue
  6557. fi
  6558. rm -f conftest.err conftest.i conftest.$ac_ext
  6559. # OK, works on sane cases. Now check whether nonexistent headers
  6560. # can be detected and how.
  6561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6562. /* end confdefs.h. */
  6563. #include <ac_nonexistent.h>
  6564. _ACEOF
  6565. if ac_fn_c_try_cpp "$LINENO"; then :
  6566. # Broken: success on invalid input.
  6567. continue
  6568. else
  6569. # Passes both tests.
  6570. ac_preproc_ok=:
  6571. break
  6572. fi
  6573. rm -f conftest.err conftest.i conftest.$ac_ext
  6574. done
  6575. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6576. rm -f conftest.i conftest.err conftest.$ac_ext
  6577. if $ac_preproc_ok; then :
  6578. else
  6579. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6581. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6582. See \`config.log' for more details" "$LINENO" 5; }
  6583. fi
  6584. ac_ext=c
  6585. ac_cpp='$CPP $CPPFLAGS'
  6586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6589. if test "x$RANLIB" = x; then
  6590. if test -n "$ac_tool_prefix"; then
  6591. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6592. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_RANLIB+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$RANLIB"; then
  6599. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6608. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. RANLIB=$ac_cv_prog_RANLIB
  6618. if test -n "$RANLIB"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6620. $as_echo "$RANLIB" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. fi
  6626. if test -z "$ac_cv_prog_RANLIB"; then
  6627. ac_ct_RANLIB=$RANLIB
  6628. # Extract the first word of "ranlib", so it can be a program name with args.
  6629. set dummy ranlib; ac_word=$2
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6631. $as_echo_n "checking for $ac_word... " >&6; }
  6632. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6633. $as_echo_n "(cached) " >&6
  6634. else
  6635. if test -n "$ac_ct_RANLIB"; then
  6636. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6637. else
  6638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6639. for as_dir in $PATH
  6640. do
  6641. IFS=$as_save_IFS
  6642. test -z "$as_dir" && as_dir=.
  6643. for ac_exec_ext in '' $ac_executable_extensions; do
  6644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6645. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6647. break 2
  6648. fi
  6649. done
  6650. done
  6651. IFS=$as_save_IFS
  6652. fi
  6653. fi
  6654. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6655. if test -n "$ac_ct_RANLIB"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6657. $as_echo "$ac_ct_RANLIB" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. if test "x$ac_ct_RANLIB" = x; then
  6663. RANLIB=":"
  6664. else
  6665. case $cross_compiling:$ac_tool_warned in
  6666. yes:)
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6669. ac_tool_warned=yes ;;
  6670. esac
  6671. RANLIB=$ac_ct_RANLIB
  6672. fi
  6673. else
  6674. RANLIB="$ac_cv_prog_RANLIB"
  6675. fi
  6676. fi
  6677. ## Although we're running on an amd64 kernel, we're actually compiling for
  6678. ## the x86 architecture. The user should probably have provided an
  6679. ## explicit --build to `configure', but if everything else than the kernel
  6680. ## is running in i386 mode, we can help them out.
  6681. if test "$machine" = "amdx86-64"; then
  6682. ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
  6683. if test "x$ac_cv_have_decl_i386" = xyes; then :
  6684. fi
  6685. if test "$ac_cv_have_decl_i386" = "yes"; then
  6686. canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
  6687. machine=intel386
  6688. machfile="m/${machine}.h"
  6689. fi
  6690. ac_fn_c_check_decl "$LINENO" "__ILP32__" "ac_cv_have_decl___ILP32__" "$ac_includes_default"
  6691. if test "x$ac_cv_have_decl___ILP32__" = xyes; then :
  6692. machfile="m/intel386.h"
  6693. fi
  6694. fi
  6695. # Extract the first word of "install-info", so it can be a program name with args.
  6696. set dummy install-info; ac_word=$2
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6698. $as_echo_n "checking for $ac_word... " >&6; }
  6699. if ${ac_cv_path_INSTALL_INFO+:} false; then :
  6700. $as_echo_n "(cached) " >&6
  6701. else
  6702. case $INSTALL_INFO in
  6703. [\\/]* | ?:[\\/]*)
  6704. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6705. ;;
  6706. *)
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6714. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. ;;
  6722. esac
  6723. fi
  6724. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6725. if test -n "$INSTALL_INFO"; then
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6727. $as_echo "$INSTALL_INFO" >&6; }
  6728. else
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6730. $as_echo "no" >&6; }
  6731. fi
  6732. # Extract the first word of "install-info", so it can be a program name with args.
  6733. set dummy install-info; ac_word=$2
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6735. $as_echo_n "checking for $ac_word... " >&6; }
  6736. if ${ac_cv_path_INSTALL_INFO+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. case $INSTALL_INFO in
  6740. [\\/]* | ?:[\\/]*)
  6741. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6742. ;;
  6743. *)
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in /usr/sbin
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6751. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. ;;
  6759. esac
  6760. fi
  6761. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6762. if test -n "$INSTALL_INFO"; then
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6764. $as_echo "$INSTALL_INFO" >&6; }
  6765. else
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6767. $as_echo "no" >&6; }
  6768. fi
  6769. # Extract the first word of "install-info", so it can be a program name with args.
  6770. set dummy install-info; ac_word=$2
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6772. $as_echo_n "checking for $ac_word... " >&6; }
  6773. if ${ac_cv_path_INSTALL_INFO+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. case $INSTALL_INFO in
  6777. [\\/]* | ?:[\\/]*)
  6778. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6779. ;;
  6780. *)
  6781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6782. for as_dir in /sbin
  6783. do
  6784. IFS=$as_save_IFS
  6785. test -z "$as_dir" && as_dir=.
  6786. for ac_exec_ext in '' $ac_executable_extensions; do
  6787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6788. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6790. break 2
  6791. fi
  6792. done
  6793. done
  6794. IFS=$as_save_IFS
  6795. test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
  6796. ;;
  6797. esac
  6798. fi
  6799. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6800. if test -n "$INSTALL_INFO"; then
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6802. $as_echo "$INSTALL_INFO" >&6; }
  6803. else
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6805. $as_echo "no" >&6; }
  6806. fi
  6807. # Extract the first word of "gzip", so it can be a program name with args.
  6808. set dummy gzip; ac_word=$2
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6810. $as_echo_n "checking for $ac_word... " >&6; }
  6811. if ${ac_cv_path_GZIP_PROG+:} false; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. case $GZIP_PROG in
  6815. [\\/]* | ?:[\\/]*)
  6816. ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
  6817. ;;
  6818. *)
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. test -z "$as_dir" && as_dir=.
  6824. for ac_exec_ext in '' $ac_executable_extensions; do
  6825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6826. ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
  6827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6828. break 2
  6829. fi
  6830. done
  6831. done
  6832. IFS=$as_save_IFS
  6833. ;;
  6834. esac
  6835. fi
  6836. GZIP_PROG=$ac_cv_path_GZIP_PROG
  6837. if test -n "$GZIP_PROG"; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
  6839. $as_echo "$GZIP_PROG" >&6; }
  6840. else
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. $as_echo "no" >&6; }
  6843. fi
  6844. ## Need makeinfo >= 4.6 (?) to build the manuals.
  6845. # Extract the first word of "makeinfo", so it can be a program name with args.
  6846. set dummy makeinfo; ac_word=$2
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6848. $as_echo_n "checking for $ac_word... " >&6; }
  6849. if ${ac_cv_path_MAKEINFO+:} false; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. case $MAKEINFO in
  6853. [\\/]* | ?:[\\/]*)
  6854. ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
  6855. ;;
  6856. *)
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. test -z "$as_dir" && as_dir=.
  6862. for ac_exec_ext in '' $ac_executable_extensions; do
  6863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6864. ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
  6865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6866. break 2
  6867. fi
  6868. done
  6869. done
  6870. IFS=$as_save_IFS
  6871. test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
  6872. ;;
  6873. esac
  6874. fi
  6875. MAKEINFO=$ac_cv_path_MAKEINFO
  6876. if test -n "$MAKEINFO"; then
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  6878. $as_echo "$MAKEINFO" >&6; }
  6879. else
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. $as_echo "no" >&6; }
  6882. fi
  6883. if test "$MAKEINFO" != "no" && \
  6884. test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
  6885. MAKEINFO=no
  6886. fi
  6887. ## Makeinfo is unusual. For a released Emacs, the manuals are
  6888. ## pre-built, and not deleted by the normal clean rules. makeinfo is
  6889. ## therefore in the category of "special tools" not normally required, which
  6890. ## configure does not have to check for (eg autoconf itself).
  6891. ## In a Bazaar checkout on the other hand, the manuals are not included.
  6892. ## So makeinfo is a requirement to build from Bazaar, and configure
  6893. ## should test for it as it does for any other build requirement.
  6894. ## We use the presence of $srcdir/info/emacs to distinguish a release,
  6895. ## with pre-built manuals, from a Bazaar checkout.
  6896. HAVE_MAKEINFO=yes
  6897. if test "$MAKEINFO" = "no"; then
  6898. MAKEINFO=makeinfo
  6899. if test "x${with_makeinfo}" = "xno"; then
  6900. HAVE_MAKEINFO=no
  6901. elif test ! -e $srcdir/info/emacs; then
  6902. as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
  6903. source tree does not seem to have pre-built manuals in the \`info' directory.
  6904. Either install a suitable version of makeinfo, or re-run configure
  6905. with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
  6906. fi
  6907. fi
  6908. if test x$GCC = xyes; then
  6909. test "x$GCC_LINK_TEST_OPTIONS" != x && \
  6910. ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
  6911. else
  6912. test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
  6913. ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
  6914. fi
  6915. late_LDFLAGS=$LDFLAGS
  6916. if test x$GCC = xyes; then
  6917. LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
  6918. else
  6919. LDFLAGS="$LDFLAGS -znocombreloc"
  6920. fi
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
  6922. $as_echo_n "checking for -znocombreloc... " >&6; }
  6923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6924. /* end confdefs.h. */
  6925. int
  6926. main ()
  6927. {
  6928. ;
  6929. return 0;
  6930. }
  6931. _ACEOF
  6932. if ac_fn_c_try_link "$LINENO"; then :
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6934. $as_echo "yes" >&6; }
  6935. else
  6936. LDFLAGS=$late_LDFLAGS
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. rm -f core conftest.err conftest.$ac_objext \
  6941. conftest$ac_exeext conftest.$ac_ext
  6942. # The value of CPP is a quoted variable reference, so we need to do this
  6943. # to get its actual value...
  6944. CPP=`eval "echo $CPP"`
  6945. test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
  6946. case "$opsys" in
  6947. your-opsys-here) CANNOT_DUMP=yes ;;
  6948. esac
  6949. test "$CANNOT_DUMP" = "yes" && \
  6950. $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
  6951. UNEXEC_OBJ=unexelf.o
  6952. case "$opsys" in
  6953. # MSDOS uses unexcoff.o
  6954. # MSWindows uses unexw32.o
  6955. aix4-2)
  6956. UNEXEC_OBJ=unexaix.o
  6957. ;;
  6958. cygwin)
  6959. UNEXEC_OBJ=unexcw.o
  6960. ;;
  6961. darwin)
  6962. UNEXEC_OBJ=unexmacosx.o
  6963. ;;
  6964. hpux10-20 | hpux11)
  6965. UNEXEC_OBJ=unexhp9k800.o
  6966. ;;
  6967. sol2-10)
  6968. # Use the Solaris dldump() function, called from unexsol.c, to dump
  6969. # emacs, instead of the generic ELF dump code found in unexelf.c.
  6970. # The resulting binary has a complete symbol table, and is better
  6971. # for debugging and other observability tools (debuggers, pstack, etc).
  6972. #
  6973. # If you encounter a problem using dldump(), please consider sending
  6974. # a message to the OpenSolaris tools-linking mailing list:
  6975. # http://mail.opensolaris.org/mailman/listinfo/tools-linking
  6976. #
  6977. # It is likely that dldump() works with older Solaris too, but this has
  6978. # not been tested, so for now this change is for Solaris 10 or newer.
  6979. UNEXEC_OBJ=unexsol.o
  6980. ;;
  6981. esac
  6982. LD_SWITCH_SYSTEM=
  6983. case "$opsys" in
  6984. freebsd)
  6985. ## Let `ld' find image libs and similar things in /usr/local/lib.
  6986. ## The system compiler, GCC, has apparently been modified to not
  6987. ## look there, contrary to what a stock GCC would do.
  6988. LD_SWITCH_SYSTEM=-L/usr/local/lib
  6989. ;;
  6990. gnu-linux)
  6991. ## cpp test was "ifdef __mips__", but presumably this is equivalent...
  6992. case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
  6993. ;;
  6994. netbsd)
  6995. LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
  6996. ;;
  6997. openbsd)
  6998. ## Han Boetes <han@mijncomputer.nl> says this is necessary,
  6999. ## otherwise Emacs dumps core on elf systems.
  7000. LD_SWITCH_SYSTEM="-Z"
  7001. ;;
  7002. esac
  7003. ac_link="$ac_link $LD_SWITCH_SYSTEM"
  7004. ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
  7005. ## which has not been defined yet. When this was handled with cpp,
  7006. ## it was expanded to null when configure sourced the s/*.h file.
  7007. ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
  7008. ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
  7009. ## (or somesuch), but because it is supposed to go at the _front_
  7010. ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
  7011. ## Compare with the gnu-linux case below, which added to the end
  7012. ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
  7013. ## LD_SWITCH_SYSTEM_TEMACS.
  7014. case "$opsys" in
  7015. netbsd|openbsd)
  7016. ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
  7017. LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
  7018. esac
  7019. C_SWITCH_MACHINE=
  7020. if test "$machine" = "alpha"; then
  7021. ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
  7022. if test "x$ac_cv_have_decl___ELF__" = xyes; then :
  7023. fi
  7024. if test "$ac_cv_have_decl___ELF__" = "yes"; then
  7025. ## With ELF, make sure that all common symbols get allocated to in the
  7026. ## data section. Otherwise, the dump of temacs may miss variables in
  7027. ## the shared library that have been initialized. For example, with
  7028. ## GNU libc, __malloc_initialized would normally be resolved to the
  7029. ## shared library's .bss section, which is fatal.
  7030. if test "x$GCC" = "xyes"; then
  7031. C_SWITCH_MACHINE="-fno-common"
  7032. else
  7033. as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
  7034. fi
  7035. else
  7036. UNEXEC_OBJ=unexalpha.o
  7037. fi
  7038. fi
  7039. C_SWITCH_SYSTEM=
  7040. ## Some programs in src produce warnings saying certain subprograms
  7041. ## are too complex and need a MAXMEM value greater than 2000 for
  7042. ## additional optimization. --nils@exp-math.uni-essen.de
  7043. test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
  7044. C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
  7045. ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
  7046. ## It is redundant in glibc2, since we define _GNU_SOURCE.
  7047. LIBS_SYSTEM=
  7048. case "$opsys" in
  7049. ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
  7050. aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
  7051. freebsd) LIBS_SYSTEM="-lutil" ;;
  7052. hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
  7053. sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
  7054. ## Motif needs -lgen.
  7055. unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
  7056. esac
  7057. ### Make sure subsequent tests use flags consistent with the build flags.
  7058. if test x"${OVERRIDE_CPPFLAGS}" != x; then
  7059. CPPFLAGS="${OVERRIDE_CPPFLAGS}"
  7060. else
  7061. CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
  7062. fi
  7063. # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
  7064. # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
  7065. # Check whether --enable-largefile was given.
  7066. if test "${enable_largefile+set}" = set; then :
  7067. enableval=$enable_largefile;
  7068. fi
  7069. if test "$enable_largefile" != no; then
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7071. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7072. if ${ac_cv_sys_largefile_CC+:} false; then :
  7073. $as_echo_n "(cached) " >&6
  7074. else
  7075. ac_cv_sys_largefile_CC=no
  7076. if test "$GCC" != yes; then
  7077. ac_save_CC=$CC
  7078. while :; do
  7079. # IRIX 6.2 and later do not support large files by default,
  7080. # so use the C compiler's -n32 option if that helps.
  7081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7082. /* end confdefs.h. */
  7083. #include <sys/types.h>
  7084. /* Check that off_t can represent 2**63 - 1 correctly.
  7085. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7086. since some C++ compilers masquerading as C compilers
  7087. incorrectly reject 9223372036854775807. */
  7088. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7089. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7090. && LARGE_OFF_T % 2147483647 == 1)
  7091. ? 1 : -1];
  7092. int
  7093. main ()
  7094. {
  7095. ;
  7096. return 0;
  7097. }
  7098. _ACEOF
  7099. if ac_fn_c_try_compile "$LINENO"; then :
  7100. break
  7101. fi
  7102. rm -f core conftest.err conftest.$ac_objext
  7103. CC="$CC -n32"
  7104. if ac_fn_c_try_compile "$LINENO"; then :
  7105. ac_cv_sys_largefile_CC=' -n32'; break
  7106. fi
  7107. rm -f core conftest.err conftest.$ac_objext
  7108. break
  7109. done
  7110. CC=$ac_save_CC
  7111. rm -f conftest.$ac_ext
  7112. fi
  7113. fi
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7115. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7116. if test "$ac_cv_sys_largefile_CC" != no; then
  7117. CC=$CC$ac_cv_sys_largefile_CC
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7120. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7121. if ${ac_cv_sys_file_offset_bits+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. while :; do
  7125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7126. /* end confdefs.h. */
  7127. #include <sys/types.h>
  7128. /* Check that off_t can represent 2**63 - 1 correctly.
  7129. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7130. since some C++ compilers masquerading as C compilers
  7131. incorrectly reject 9223372036854775807. */
  7132. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7133. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7134. && LARGE_OFF_T % 2147483647 == 1)
  7135. ? 1 : -1];
  7136. int
  7137. main ()
  7138. {
  7139. ;
  7140. return 0;
  7141. }
  7142. _ACEOF
  7143. if ac_fn_c_try_compile "$LINENO"; then :
  7144. ac_cv_sys_file_offset_bits=no; break
  7145. fi
  7146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7148. /* end confdefs.h. */
  7149. #define _FILE_OFFSET_BITS 64
  7150. #include <sys/types.h>
  7151. /* Check that off_t can represent 2**63 - 1 correctly.
  7152. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7153. since some C++ compilers masquerading as C compilers
  7154. incorrectly reject 9223372036854775807. */
  7155. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7156. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7157. && LARGE_OFF_T % 2147483647 == 1)
  7158. ? 1 : -1];
  7159. int
  7160. main ()
  7161. {
  7162. ;
  7163. return 0;
  7164. }
  7165. _ACEOF
  7166. if ac_fn_c_try_compile "$LINENO"; then :
  7167. ac_cv_sys_file_offset_bits=64; break
  7168. fi
  7169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7170. ac_cv_sys_file_offset_bits=unknown
  7171. break
  7172. done
  7173. fi
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7175. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7176. case $ac_cv_sys_file_offset_bits in #(
  7177. no | unknown) ;;
  7178. *)
  7179. cat >>confdefs.h <<_ACEOF
  7180. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7181. _ACEOF
  7182. ;;
  7183. esac
  7184. rm -rf conftest*
  7185. if test $ac_cv_sys_file_offset_bits = unknown; then
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7187. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7188. if ${ac_cv_sys_large_files+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. while :; do
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. #include <sys/types.h>
  7195. /* Check that off_t can represent 2**63 - 1 correctly.
  7196. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7197. since some C++ compilers masquerading as C compilers
  7198. incorrectly reject 9223372036854775807. */
  7199. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7200. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7201. && LARGE_OFF_T % 2147483647 == 1)
  7202. ? 1 : -1];
  7203. int
  7204. main ()
  7205. {
  7206. ;
  7207. return 0;
  7208. }
  7209. _ACEOF
  7210. if ac_fn_c_try_compile "$LINENO"; then :
  7211. ac_cv_sys_large_files=no; break
  7212. fi
  7213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7215. /* end confdefs.h. */
  7216. #define _LARGE_FILES 1
  7217. #include <sys/types.h>
  7218. /* Check that off_t can represent 2**63 - 1 correctly.
  7219. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7220. since some C++ compilers masquerading as C compilers
  7221. incorrectly reject 9223372036854775807. */
  7222. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7223. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7224. && LARGE_OFF_T % 2147483647 == 1)
  7225. ? 1 : -1];
  7226. int
  7227. main ()
  7228. {
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. if ac_fn_c_try_compile "$LINENO"; then :
  7234. ac_cv_sys_large_files=1; break
  7235. fi
  7236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7237. ac_cv_sys_large_files=unknown
  7238. break
  7239. done
  7240. fi
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7242. $as_echo "$ac_cv_sys_large_files" >&6; }
  7243. case $ac_cv_sys_large_files in #(
  7244. no | unknown) ;;
  7245. *)
  7246. cat >>confdefs.h <<_ACEOF
  7247. #define _LARGE_FILES $ac_cv_sys_large_files
  7248. _ACEOF
  7249. ;;
  7250. esac
  7251. rm -rf conftest*
  7252. fi
  7253. fi
  7254. LIB_MATH=-lm
  7255. LIB_STANDARD=
  7256. START_FILES=
  7257. case $opsys in
  7258. cygwin )
  7259. LIB_MATH=
  7260. START_FILES='pre-crt0.o'
  7261. ;;
  7262. darwin )
  7263. ## Adding -lm confuses the dynamic linker, so omit it.
  7264. LIB_MATH=
  7265. START_FILES='pre-crt0.o'
  7266. ;;
  7267. freebsd )
  7268. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
  7269. START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
  7270. ;;
  7271. gnu-linux | gnu-kfreebsd )
  7272. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
  7273. START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
  7274. ;;
  7275. hpux10-20 | hpux11 )
  7276. LIB_STANDARD=-lc
  7277. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
  7278. ;;
  7279. netbsd | openbsd )
  7280. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
  7281. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
  7282. ;;
  7283. esac
  7284. crt_files=
  7285. for file in x $LIB_STANDARD $START_FILES; do
  7286. case "$file" in
  7287. *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
  7288. esac
  7289. done
  7290. if test "x$crt_files" != x; then
  7291. ## If user specified a crt-dir, use that unconditionally.
  7292. crt_gcc=no
  7293. if test "X$CRT_DIR" = "X"; then
  7294. CRT_DIR=/usr/lib # default
  7295. case "$canonical" in
  7296. x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
  7297. ## On x86-64 and s390x GNU/Linux distributions, the standard library
  7298. ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
  7299. ## For anything else (eg /usr/lib32), it is up the user to specify
  7300. ## the location (bug#5655).
  7301. ## Test for crtn.o, not just the directory, because sometimes the
  7302. ## directory exists but does not have the relevant files (bug#1287).
  7303. ## FIXME better to test for binary compatibility somehow.
  7304. test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
  7305. ;;
  7306. powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
  7307. esac
  7308. case "$opsys" in
  7309. hpux10-20) CRT_DIR=/lib ;;
  7310. esac
  7311. test "x${GCC}" = xyes && crt_gcc=yes
  7312. fi # CRT_DIR = ""
  7313. crt_missing=
  7314. for file in $crt_files; do
  7315. ## If we're using gcc, try to determine it automatically by asking
  7316. ## gcc. [If this doesn't work, CRT_DIR will remain at the
  7317. ## system-dependent default from above.]
  7318. if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
  7319. crt_file=`$CC --print-file-name=$file 2>/dev/null`
  7320. case "$crt_file" in
  7321. */*)
  7322. CRT_DIR=`$as_dirname -- "$crt_file" ||
  7323. $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7324. X"$crt_file" : 'X\(//\)[^/]' \| \
  7325. X"$crt_file" : 'X\(//\)$' \| \
  7326. X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
  7327. $as_echo X"$crt_file" |
  7328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7329. s//\1/
  7330. q
  7331. }
  7332. /^X\(\/\/\)[^/].*/{
  7333. s//\1/
  7334. q
  7335. }
  7336. /^X\(\/\/\)$/{
  7337. s//\1/
  7338. q
  7339. }
  7340. /^X\(\/\).*/{
  7341. s//\1/
  7342. q
  7343. }
  7344. s/.*/./; q'`
  7345. ;;
  7346. esac
  7347. fi
  7348. crt_gcc=no
  7349. test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
  7350. done # $crt_files
  7351. test "x$crt_missing" = x || \
  7352. as_fn_error $? "Required file(s) not found:$crt_missing
  7353. Try using the --with-crt-dir option." "$LINENO" 5
  7354. fi # crt_files != ""
  7355. case $opsys in
  7356. netbsd | openbsd )
  7357. if test -f $CRT_DIR/crti.o; then
  7358. test -f $CRT_DIR/crtn.o || \
  7359. as_fn_error $? "Required file not found: crtn.o" "$LINENO" 5
  7360. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
  7361. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
  7362. fi
  7363. ;;
  7364. esac
  7365. if test "${with_sound}" != "no"; then
  7366. # Sound support for GNU/Linux and the free BSDs.
  7367. for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
  7368. do :
  7369. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7370. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7371. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7372. cat >>confdefs.h <<_ACEOF
  7373. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7374. _ACEOF
  7375. have_sound_header=yes
  7376. fi
  7377. done
  7378. # Emulation library used on NetBSD.
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
  7380. $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
  7381. if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
  7382. $as_echo_n "(cached) " >&6
  7383. else
  7384. ac_check_lib_save_LIBS=$LIBS
  7385. LIBS="-lossaudio $LIBS"
  7386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7387. /* end confdefs.h. */
  7388. /* Override any GCC internal prototype to avoid an error.
  7389. Use char because int might match the return type of a GCC
  7390. builtin and then its argument prototype would still apply. */
  7391. #ifdef __cplusplus
  7392. extern "C"
  7393. #endif
  7394. char _oss_ioctl ();
  7395. int
  7396. main ()
  7397. {
  7398. return _oss_ioctl ();
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. if ac_fn_c_try_link "$LINENO"; then :
  7404. ac_cv_lib_ossaudio__oss_ioctl=yes
  7405. else
  7406. ac_cv_lib_ossaudio__oss_ioctl=no
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext \
  7409. conftest$ac_exeext conftest.$ac_ext
  7410. LIBS=$ac_check_lib_save_LIBS
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
  7413. $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
  7414. if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
  7415. LIBSOUND=-lossaudio
  7416. else
  7417. LIBSOUND=
  7418. fi
  7419. ALSA_REQUIRED=1.0.0
  7420. ALSA_MODULES="alsa >= $ALSA_REQUIRED"
  7421. succeeded=no
  7422. # Extract the first word of "pkg-config", so it can be a program name with args.
  7423. set dummy pkg-config; ac_word=$2
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7425. $as_echo_n "checking for $ac_word... " >&6; }
  7426. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  7427. $as_echo_n "(cached) " >&6
  7428. else
  7429. case $PKG_CONFIG in
  7430. [\\/]* | ?:[\\/]*)
  7431. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7432. ;;
  7433. *)
  7434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7435. for as_dir in $PATH
  7436. do
  7437. IFS=$as_save_IFS
  7438. test -z "$as_dir" && as_dir=.
  7439. for ac_exec_ext in '' $ac_executable_extensions; do
  7440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7441. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7443. break 2
  7444. fi
  7445. done
  7446. done
  7447. IFS=$as_save_IFS
  7448. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  7449. ;;
  7450. esac
  7451. fi
  7452. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7453. if test -n "$PKG_CONFIG"; then
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7455. $as_echo "$PKG_CONFIG" >&6; }
  7456. else
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7458. $as_echo "no" >&6; }
  7459. fi
  7460. if test "$PKG_CONFIG" = "no" ; then
  7461. HAVE_ALSA=no
  7462. else
  7463. PKG_CONFIG_MIN_VERSION=0.9.0
  7464. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
  7466. $as_echo_n "checking for $ALSA_MODULES... " >&6; }
  7467. if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7469. $as_echo "yes" >&6; }
  7470. succeeded=yes
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
  7472. $as_echo_n "checking ALSA_CFLAGS... " >&6; }
  7473. ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  7475. $as_echo "$ALSA_CFLAGS" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
  7477. $as_echo_n "checking ALSA_LIBS... " >&6; }
  7478. ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  7480. $as_echo "$ALSA_LIBS" >&6; }
  7481. else
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7483. $as_echo "no" >&6; }
  7484. ALSA_CFLAGS=""
  7485. ALSA_LIBS=""
  7486. ## If we have a custom action on failure, don't print errors, but
  7487. ## do set a variable so people can do so.
  7488. ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
  7489. fi
  7490. else
  7491. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  7492. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  7493. fi
  7494. fi
  7495. if test $succeeded = yes; then
  7496. HAVE_ALSA=yes
  7497. else
  7498. HAVE_ALSA=no
  7499. fi
  7500. if test $HAVE_ALSA = yes; then
  7501. SAVE_CFLAGS="$CFLAGS"
  7502. SAVE_LIBS="$LIBS"
  7503. CFLAGS="$ALSA_CFLAGS $CFLAGS"
  7504. LIBS="$ALSA_LIBS $LIBS"
  7505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end confdefs.h. */
  7507. #include <asoundlib.h>
  7508. int
  7509. main ()
  7510. {
  7511. snd_lib_error_set_handler (0);
  7512. ;
  7513. return 0;
  7514. }
  7515. _ACEOF
  7516. if ac_fn_c_try_compile "$LINENO"; then :
  7517. emacs_alsa_normal=yes
  7518. else
  7519. emacs_alsa_normal=no
  7520. fi
  7521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7522. if test "$emacs_alsa_normal" != yes; then
  7523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7524. /* end confdefs.h. */
  7525. #include <alsa/asoundlib.h>
  7526. int
  7527. main ()
  7528. {
  7529. snd_lib_error_set_handler (0);
  7530. ;
  7531. return 0;
  7532. }
  7533. _ACEOF
  7534. if ac_fn_c_try_compile "$LINENO"; then :
  7535. emacs_alsa_subdir=yes
  7536. else
  7537. emacs_alsa_subdir=no
  7538. fi
  7539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7540. if test "$emacs_alsa_subdir" != yes; then
  7541. as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
  7542. fi
  7543. ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
  7544. fi
  7545. CFLAGS="$SAVE_CFLAGS"
  7546. LIBS="$SAVE_LIBS"
  7547. LIBSOUND="$LIBSOUND $ALSA_LIBS"
  7548. CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
  7549. $as_echo "#define HAVE_ALSA 1" >>confdefs.h
  7550. fi
  7551. if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
  7552. case "$opsys" in
  7553. gnu-linux|freebsd|netbsd)
  7554. $as_echo "#define HAVE_SOUND 1" >>confdefs.h
  7555. ;;
  7556. esac
  7557. fi
  7558. fi
  7559. for ac_header in sys/select.h sys/time.h unistd.h utime.h \
  7560. linux/version.h sys/systeminfo.h \
  7561. stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
  7562. sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
  7563. sys/utsname.h pwd.h utmp.h dirent.h util.h
  7564. do :
  7565. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7566. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7567. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7568. cat >>confdefs.h <<_ACEOF
  7569. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7570. _ACEOF
  7571. fi
  7572. done
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
  7574. $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
  7575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7576. /* end confdefs.h. */
  7577. #include <sys/personality.h>
  7578. int
  7579. main ()
  7580. {
  7581. personality (PER_LINUX32)
  7582. ;
  7583. return 0;
  7584. }
  7585. _ACEOF
  7586. if ac_fn_c_try_compile "$LINENO"; then :
  7587. emacs_cv_personality_linux32=yes
  7588. else
  7589. emacs_cv_personality_linux32=no
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
  7593. $as_echo "$emacs_cv_personality_linux32" >&6; }
  7594. if test $emacs_cv_personality_linux32 = yes; then
  7595. $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
  7596. fi
  7597. for ac_header in term.h
  7598. do :
  7599. ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
  7600. if test "x$ac_cv_header_term_h" = xyes; then :
  7601. cat >>confdefs.h <<_ACEOF
  7602. #define HAVE_TERM_H 1
  7603. _ACEOF
  7604. fi
  7605. done
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7607. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7608. if ${ac_cv_header_time+:} false; then :
  7609. $as_echo_n "(cached) " >&6
  7610. else
  7611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7612. /* end confdefs.h. */
  7613. #include <sys/types.h>
  7614. #include <sys/time.h>
  7615. #include <time.h>
  7616. int
  7617. main ()
  7618. {
  7619. if ((struct tm *) 0)
  7620. return 0;
  7621. ;
  7622. return 0;
  7623. }
  7624. _ACEOF
  7625. if ac_fn_c_try_compile "$LINENO"; then :
  7626. ac_cv_header_time=yes
  7627. else
  7628. ac_cv_header_time=no
  7629. fi
  7630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7631. fi
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7633. $as_echo "$ac_cv_header_time" >&6; }
  7634. if test $ac_cv_header_time = yes; then
  7635. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7636. fi
  7637. ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
  7638. if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
  7639. ac_have_decl=1
  7640. else
  7641. ac_have_decl=0
  7642. fi
  7643. cat >>confdefs.h <<_ACEOF
  7644. #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
  7645. _ACEOF
  7646. if test $ac_cv_have_decl_sys_siglist != yes; then
  7647. # For Tru64, at least:
  7648. ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
  7649. if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
  7650. ac_have_decl=1
  7651. else
  7652. ac_have_decl=0
  7653. fi
  7654. cat >>confdefs.h <<_ACEOF
  7655. #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
  7656. _ACEOF
  7657. if test $ac_cv_have_decl___sys_siglist = yes; then
  7658. $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
  7659. fi
  7660. fi
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  7662. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  7663. if ${ac_cv_header_sys_wait_h+:} false; then :
  7664. $as_echo_n "(cached) " >&6
  7665. else
  7666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7667. /* end confdefs.h. */
  7668. #include <sys/types.h>
  7669. #include <sys/wait.h>
  7670. #ifndef WEXITSTATUS
  7671. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  7672. #endif
  7673. #ifndef WIFEXITED
  7674. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  7675. #endif
  7676. int
  7677. main ()
  7678. {
  7679. int s;
  7680. wait (&s);
  7681. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  7682. ;
  7683. return 0;
  7684. }
  7685. _ACEOF
  7686. if ac_fn_c_try_compile "$LINENO"; then :
  7687. ac_cv_header_sys_wait_h=yes
  7688. else
  7689. ac_cv_header_sys_wait_h=no
  7690. fi
  7691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7692. fi
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  7694. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  7695. if test $ac_cv_header_sys_wait_h = yes; then
  7696. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  7697. fi
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
  7699. $as_echo_n "checking for struct utimbuf... " >&6; }
  7700. if ${emacs_cv_struct_utimbuf+:} false; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7704. /* end confdefs.h. */
  7705. #ifdef TIME_WITH_SYS_TIME
  7706. #include <sys/time.h>
  7707. #include <time.h>
  7708. #else
  7709. #ifdef HAVE_SYS_TIME_H
  7710. #include <sys/time.h>
  7711. #else
  7712. #include <time.h>
  7713. #endif
  7714. #endif
  7715. #ifdef HAVE_UTIME_H
  7716. #include <utime.h>
  7717. #endif
  7718. int
  7719. main ()
  7720. {
  7721. static struct utimbuf x; x.actime = x.modtime;
  7722. ;
  7723. return 0;
  7724. }
  7725. _ACEOF
  7726. if ac_fn_c_try_compile "$LINENO"; then :
  7727. emacs_cv_struct_utimbuf=yes
  7728. else
  7729. emacs_cv_struct_utimbuf=no
  7730. fi
  7731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7732. fi
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
  7734. $as_echo "$emacs_cv_struct_utimbuf" >&6; }
  7735. if test $emacs_cv_struct_utimbuf = yes; then
  7736. $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
  7737. fi
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
  7739. $as_echo_n "checking for speed_t... " >&6; }
  7740. if ${emacs_cv_speed_t+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7744. /* end confdefs.h. */
  7745. #include <termios.h>
  7746. int
  7747. main ()
  7748. {
  7749. speed_t x = 1;
  7750. ;
  7751. return 0;
  7752. }
  7753. _ACEOF
  7754. if ac_fn_c_try_compile "$LINENO"; then :
  7755. emacs_cv_speed_t=yes
  7756. else
  7757. emacs_cv_speed_t=no
  7758. fi
  7759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7760. fi
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
  7762. $as_echo "$emacs_cv_speed_t" >&6; }
  7763. if test $emacs_cv_speed_t = yes; then
  7764. $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
  7765. fi
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  7767. $as_echo_n "checking for struct timeval... " >&6; }
  7768. if ${emacs_cv_struct_timeval+:} false; then :
  7769. $as_echo_n "(cached) " >&6
  7770. else
  7771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7772. /* end confdefs.h. */
  7773. #ifdef TIME_WITH_SYS_TIME
  7774. #include <sys/time.h>
  7775. #include <time.h>
  7776. #else
  7777. #ifdef HAVE_SYS_TIME_H
  7778. #include <sys/time.h>
  7779. #else
  7780. #include <time.h>
  7781. #endif
  7782. #endif
  7783. int
  7784. main ()
  7785. {
  7786. static struct timeval x; x.tv_sec = x.tv_usec;
  7787. ;
  7788. return 0;
  7789. }
  7790. _ACEOF
  7791. if ac_fn_c_try_compile "$LINENO"; then :
  7792. emacs_cv_struct_timeval=yes
  7793. else
  7794. emacs_cv_struct_timeval=no
  7795. fi
  7796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
  7799. $as_echo "$emacs_cv_struct_timeval" >&6; }
  7800. HAVE_TIMEVAL=$emacs_cv_struct_timeval
  7801. if test $emacs_cv_struct_timeval = yes; then
  7802. $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
  7805. $as_echo_n "checking for struct exception... " >&6; }
  7806. if ${emacs_cv_struct_exception+:} false; then :
  7807. $as_echo_n "(cached) " >&6
  7808. else
  7809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7810. /* end confdefs.h. */
  7811. #include <math.h>
  7812. int
  7813. main ()
  7814. {
  7815. static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
  7816. ;
  7817. return 0;
  7818. }
  7819. _ACEOF
  7820. if ac_fn_c_try_compile "$LINENO"; then :
  7821. emacs_cv_struct_exception=yes
  7822. else
  7823. emacs_cv_struct_exception=no
  7824. fi
  7825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
  7828. $as_echo "$emacs_cv_struct_exception" >&6; }
  7829. HAVE_EXCEPTION=$emacs_cv_struct_exception
  7830. if test $emacs_cv_struct_exception != yes; then
  7831. $as_echo "#define NO_MATHERR 1" >>confdefs.h
  7832. fi
  7833. for ac_header in sys/socket.h
  7834. do :
  7835. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  7836. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  7837. cat >>confdefs.h <<_ACEOF
  7838. #define HAVE_SYS_SOCKET_H 1
  7839. _ACEOF
  7840. fi
  7841. done
  7842. for ac_header in net/if.h
  7843. do :
  7844. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
  7845. #if HAVE_SYS_SOCKET_H
  7846. #include <sys/socket.h>
  7847. #endif
  7848. "
  7849. if test "x$ac_cv_header_net_if_h" = xyes; then :
  7850. cat >>confdefs.h <<_ACEOF
  7851. #define HAVE_NET_IF_H 1
  7852. _ACEOF
  7853. fi
  7854. done
  7855. for ac_header in ifaddrs.h
  7856. do :
  7857. ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
  7858. #if HAVE_SYS_SOCKET_H
  7859. #include <sys/socket.h>
  7860. #endif
  7861. "
  7862. if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
  7863. cat >>confdefs.h <<_ACEOF
  7864. #define HAVE_IFADDRS_H 1
  7865. _ACEOF
  7866. fi
  7867. done
  7868. for ac_header in net/if_dl.h
  7869. do :
  7870. ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
  7871. #if HAVE_SYS_SOCKET_H
  7872. #include <sys/socket.h>
  7873. #endif
  7874. "
  7875. if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
  7876. cat >>confdefs.h <<_ACEOF
  7877. #define HAVE_NET_IF_DL_H 1
  7878. _ACEOF
  7879. fi
  7880. done
  7881. for ac_func in getifaddrs freeifaddrs
  7882. do :
  7883. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7884. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7885. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7886. cat >>confdefs.h <<_ACEOF
  7887. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7888. _ACEOF
  7889. fi
  7890. done
  7891. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
  7892. #if HAVE_SYS_SOCKET_H
  7893. #include <sys/socket.h>
  7894. #endif
  7895. #if HAVE_NET_IF_H
  7896. #include <net/if.h>
  7897. #endif
  7898. "
  7899. if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
  7900. cat >>confdefs.h <<_ACEOF
  7901. #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
  7902. _ACEOF
  7903. fi
  7904. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
  7905. #if HAVE_SYS_SOCKET_H
  7906. #include <sys/socket.h>
  7907. #endif
  7908. #if HAVE_NET_IF_H
  7909. #include <net/if.h>
  7910. #endif
  7911. "
  7912. if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
  7913. cat >>confdefs.h <<_ACEOF
  7914. #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
  7915. _ACEOF
  7916. fi
  7917. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
  7918. #if HAVE_SYS_SOCKET_H
  7919. #include <sys/socket.h>
  7920. #endif
  7921. #if HAVE_NET_IF_H
  7922. #include <net/if.h>
  7923. #endif
  7924. "
  7925. if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
  7926. cat >>confdefs.h <<_ACEOF
  7927. #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
  7928. _ACEOF
  7929. fi
  7930. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
  7931. #if HAVE_SYS_SOCKET_H
  7932. #include <sys/socket.h>
  7933. #endif
  7934. #if HAVE_NET_IF_H
  7935. #include <net/if.h>
  7936. #endif
  7937. "
  7938. if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
  7939. cat >>confdefs.h <<_ACEOF
  7940. #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
  7941. _ACEOF
  7942. fi
  7943. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
  7944. #if HAVE_SYS_SOCKET_H
  7945. #include <sys/socket.h>
  7946. #endif
  7947. #if HAVE_NET_IF_H
  7948. #include <net/if.h>
  7949. #endif
  7950. "
  7951. if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
  7952. cat >>confdefs.h <<_ACEOF
  7953. #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
  7954. _ACEOF
  7955. fi
  7956. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
  7957. #if HAVE_SYS_SOCKET_H
  7958. #include <sys/socket.h>
  7959. #endif
  7960. #if HAVE_NET_IF_H
  7961. #include <net/if.h>
  7962. #endif
  7963. "
  7964. if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = xyes; then :
  7965. cat >>confdefs.h <<_ACEOF
  7966. #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
  7967. _ACEOF
  7968. fi
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  7970. $as_echo_n "checking for function prototypes... " >&6; }
  7971. if test "$ac_cv_prog_cc_c89" != no; then
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7973. $as_echo "yes" >&6; }
  7974. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  7975. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  7976. else
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7978. $as_echo "no" >&6; }
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7981. $as_echo_n "checking for working volatile... " >&6; }
  7982. if ${ac_cv_c_volatile+:} false; then :
  7983. $as_echo_n "(cached) " >&6
  7984. else
  7985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7986. /* end confdefs.h. */
  7987. int
  7988. main ()
  7989. {
  7990. volatile int x;
  7991. int * volatile y = (int *) 0;
  7992. return !x && !y;
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. if ac_fn_c_try_compile "$LINENO"; then :
  7998. ac_cv_c_volatile=yes
  7999. else
  8000. ac_cv_c_volatile=no
  8001. fi
  8002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8003. fi
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  8005. $as_echo "$ac_cv_c_volatile" >&6; }
  8006. if test $ac_cv_c_volatile = no; then
  8007. $as_echo "#define volatile /**/" >>confdefs.h
  8008. fi
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  8010. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8011. if ${ac_cv_c_const+:} false; then :
  8012. $as_echo_n "(cached) " >&6
  8013. else
  8014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8015. /* end confdefs.h. */
  8016. int
  8017. main ()
  8018. {
  8019. /* FIXME: Include the comments suggested by Paul. */
  8020. #ifndef __cplusplus
  8021. /* Ultrix mips cc rejects this. */
  8022. typedef int charset[2];
  8023. const charset cs;
  8024. /* SunOS 4.1.1 cc rejects this. */
  8025. char const *const *pcpcc;
  8026. char **ppc;
  8027. /* NEC SVR4.0.2 mips cc rejects this. */
  8028. struct point {int x, y;};
  8029. static struct point const zero = {0,0};
  8030. /* AIX XL C 1.02.0.0 rejects this.
  8031. It does not let you subtract one const X* pointer from another in
  8032. an arm of an if-expression whose if-part is not a constant
  8033. expression */
  8034. const char *g = "string";
  8035. pcpcc = &g + (g ? g-g : 0);
  8036. /* HPUX 7.0 cc rejects these. */
  8037. ++pcpcc;
  8038. ppc = (char**) pcpcc;
  8039. pcpcc = (char const *const *) ppc;
  8040. { /* SCO 3.2v4 cc rejects this. */
  8041. char *t;
  8042. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8043. *t++ = 0;
  8044. if (s) return 0;
  8045. }
  8046. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8047. int x[] = {25, 17};
  8048. const int *foo = &x[0];
  8049. ++foo;
  8050. }
  8051. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8052. typedef const int *iptr;
  8053. iptr p = 0;
  8054. ++p;
  8055. }
  8056. { /* AIX XL C 1.02.0.0 rejects this saying
  8057. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8058. struct s { int j; const int *ap[3]; };
  8059. struct s *b; b->j = 5;
  8060. }
  8061. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8062. const int foo = 10;
  8063. if (!foo) return 0;
  8064. }
  8065. return !cs[0] && !zero.x;
  8066. #endif
  8067. ;
  8068. return 0;
  8069. }
  8070. _ACEOF
  8071. if ac_fn_c_try_compile "$LINENO"; then :
  8072. ac_cv_c_const=yes
  8073. else
  8074. ac_cv_c_const=no
  8075. fi
  8076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8077. fi
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  8079. $as_echo "$ac_cv_c_const" >&6; }
  8080. if test $ac_cv_c_const = no; then
  8081. $as_echo "#define const /**/" >>confdefs.h
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
  8084. $as_echo_n "checking for void * support... " >&6; }
  8085. if ${emacs_cv_void_star+:} false; then :
  8086. $as_echo_n "(cached) " >&6
  8087. else
  8088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8089. /* end confdefs.h. */
  8090. int
  8091. main ()
  8092. {
  8093. void * foo;
  8094. ;
  8095. return 0;
  8096. }
  8097. _ACEOF
  8098. if ac_fn_c_try_compile "$LINENO"; then :
  8099. emacs_cv_void_star=yes
  8100. else
  8101. emacs_cv_void_star=no
  8102. fi
  8103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8104. fi
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
  8106. $as_echo "$emacs_cv_void_star" >&6; }
  8107. if test $emacs_cv_void_star = yes; then
  8108. $as_echo "#define POINTER_TYPE void" >>confdefs.h
  8109. else
  8110. $as_echo "#define POINTER_TYPE char" >>confdefs.h
  8111. fi
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  8113. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  8114. if ${ac_cv_c_bigendian+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. ac_cv_c_bigendian=unknown
  8118. # See if we're dealing with a universal compiler.
  8119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8120. /* end confdefs.h. */
  8121. #ifndef __APPLE_CC__
  8122. not a universal capable compiler
  8123. #endif
  8124. typedef int dummy;
  8125. _ACEOF
  8126. if ac_fn_c_try_compile "$LINENO"; then :
  8127. # Check for potential -arch flags. It is not universal unless
  8128. # there are at least two -arch flags with different values.
  8129. ac_arch=
  8130. ac_prev=
  8131. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8132. if test -n "$ac_prev"; then
  8133. case $ac_word in
  8134. i?86 | x86_64 | ppc | ppc64)
  8135. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8136. ac_arch=$ac_word
  8137. else
  8138. ac_cv_c_bigendian=universal
  8139. break
  8140. fi
  8141. ;;
  8142. esac
  8143. ac_prev=
  8144. elif test "x$ac_word" = "x-arch"; then
  8145. ac_prev=arch
  8146. fi
  8147. done
  8148. fi
  8149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8150. if test $ac_cv_c_bigendian = unknown; then
  8151. # See if sys/param.h defines the BYTE_ORDER macro.
  8152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8153. /* end confdefs.h. */
  8154. #include <sys/types.h>
  8155. #include <sys/param.h>
  8156. int
  8157. main ()
  8158. {
  8159. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8160. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8161. && LITTLE_ENDIAN)
  8162. bogus endian macros
  8163. #endif
  8164. ;
  8165. return 0;
  8166. }
  8167. _ACEOF
  8168. if ac_fn_c_try_compile "$LINENO"; then :
  8169. # It does; now see whether it defined to BIG_ENDIAN or not.
  8170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8171. /* end confdefs.h. */
  8172. #include <sys/types.h>
  8173. #include <sys/param.h>
  8174. int
  8175. main ()
  8176. {
  8177. #if BYTE_ORDER != BIG_ENDIAN
  8178. not big endian
  8179. #endif
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. if ac_fn_c_try_compile "$LINENO"; then :
  8185. ac_cv_c_bigendian=yes
  8186. else
  8187. ac_cv_c_bigendian=no
  8188. fi
  8189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8190. fi
  8191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8192. fi
  8193. if test $ac_cv_c_bigendian = unknown; then
  8194. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8196. /* end confdefs.h. */
  8197. #include <limits.h>
  8198. int
  8199. main ()
  8200. {
  8201. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8202. bogus endian macros
  8203. #endif
  8204. ;
  8205. return 0;
  8206. }
  8207. _ACEOF
  8208. if ac_fn_c_try_compile "$LINENO"; then :
  8209. # It does; now see whether it defined to _BIG_ENDIAN or not.
  8210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8211. /* end confdefs.h. */
  8212. #include <limits.h>
  8213. int
  8214. main ()
  8215. {
  8216. #ifndef _BIG_ENDIAN
  8217. not big endian
  8218. #endif
  8219. ;
  8220. return 0;
  8221. }
  8222. _ACEOF
  8223. if ac_fn_c_try_compile "$LINENO"; then :
  8224. ac_cv_c_bigendian=yes
  8225. else
  8226. ac_cv_c_bigendian=no
  8227. fi
  8228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8229. fi
  8230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8231. fi
  8232. if test $ac_cv_c_bigendian = unknown; then
  8233. # Compile a test program.
  8234. if test "$cross_compiling" = yes; then :
  8235. # Try to guess by grepping values from an object file.
  8236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8237. /* end confdefs.h. */
  8238. short int ascii_mm[] =
  8239. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8240. short int ascii_ii[] =
  8241. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8242. int use_ascii (int i) {
  8243. return ascii_mm[i] + ascii_ii[i];
  8244. }
  8245. short int ebcdic_ii[] =
  8246. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8247. short int ebcdic_mm[] =
  8248. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8249. int use_ebcdic (int i) {
  8250. return ebcdic_mm[i] + ebcdic_ii[i];
  8251. }
  8252. extern int foo;
  8253. int
  8254. main ()
  8255. {
  8256. return use_ascii (foo) == use_ebcdic (foo);
  8257. ;
  8258. return 0;
  8259. }
  8260. _ACEOF
  8261. if ac_fn_c_try_compile "$LINENO"; then :
  8262. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8263. ac_cv_c_bigendian=yes
  8264. fi
  8265. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8266. if test "$ac_cv_c_bigendian" = unknown; then
  8267. ac_cv_c_bigendian=no
  8268. else
  8269. # finding both strings is unlikely to happen, but who knows?
  8270. ac_cv_c_bigendian=unknown
  8271. fi
  8272. fi
  8273. fi
  8274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8275. else
  8276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8277. /* end confdefs.h. */
  8278. $ac_includes_default
  8279. int
  8280. main ()
  8281. {
  8282. /* Are we little or big endian? From Harbison&Steele. */
  8283. union
  8284. {
  8285. long int l;
  8286. char c[sizeof (long int)];
  8287. } u;
  8288. u.l = 1;
  8289. return u.c[sizeof (long int) - 1] == 1;
  8290. ;
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. if ac_fn_c_try_run "$LINENO"; then :
  8295. ac_cv_c_bigendian=no
  8296. else
  8297. ac_cv_c_bigendian=yes
  8298. fi
  8299. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8300. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8301. fi
  8302. fi
  8303. fi
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8305. $as_echo "$ac_cv_c_bigendian" >&6; }
  8306. case $ac_cv_c_bigendian in #(
  8307. yes)
  8308. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8309. ;; #(
  8310. no)
  8311. ;; #(
  8312. universal)
  8313. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8314. ;; #(
  8315. *)
  8316. as_fn_error $? "unknown endianness
  8317. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8318. esac
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
  8320. $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
  8321. if ${emacs_cv_attribute_aligned+:} false; then :
  8322. $as_echo_n "(cached) " >&6
  8323. else
  8324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8325. /* end confdefs.h. */
  8326. char __attribute__ ((__aligned__ (1 << 3))) c;
  8327. int
  8328. main ()
  8329. {
  8330. ;
  8331. return 0;
  8332. }
  8333. _ACEOF
  8334. if ac_fn_c_try_compile "$LINENO"; then :
  8335. emacs_cv_attribute_aligned=yes
  8336. else
  8337. emacs_cv_attribute_aligned=no
  8338. fi
  8339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8340. fi
  8341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
  8342. $as_echo "$emacs_cv_attribute_aligned" >&6; }
  8343. if test $emacs_cv_attribute_aligned = yes; then
  8344. $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8347. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  8348. set x ${MAKE-make}
  8349. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  8350. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  8351. $as_echo_n "(cached) " >&6
  8352. else
  8353. cat >conftest.make <<\_ACEOF
  8354. SHELL = /bin/sh
  8355. all:
  8356. @echo '@@@%%%=$(MAKE)=@@@%%%'
  8357. _ACEOF
  8358. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  8359. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  8360. *@@@%%%=?*=@@@%%%*)
  8361. eval ac_cv_prog_make_${ac_make}_set=yes;;
  8362. *)
  8363. eval ac_cv_prog_make_${ac_make}_set=no;;
  8364. esac
  8365. rm -f conftest.make
  8366. fi
  8367. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  8368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8369. $as_echo "yes" >&6; }
  8370. SET_MAKE=
  8371. else
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8373. $as_echo "no" >&6; }
  8374. SET_MAKE="MAKE=${MAKE-make}"
  8375. fi
  8376. DEPFLAGS=
  8377. MKDEPDIR=":"
  8378. deps_frag=deps.mk
  8379. if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
  8381. $as_echo_n "checking whether we are using GNU Make... " >&6; }
  8382. HAVE_GNU_MAKE=no
  8383. testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
  8384. if test "x$testval" != x; then
  8385. HAVE_GNU_MAKE=yes
  8386. else
  8387. ac_enable_autodepend=no
  8388. fi
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
  8390. $as_echo "$HAVE_GNU_MAKE" >&6; }
  8391. if test $HAVE_GNU_MAKE = yes; then
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
  8393. $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
  8394. SAVE_CFLAGS="$CFLAGS"
  8395. CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
  8396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8397. /* end confdefs.h. */
  8398. int
  8399. main ()
  8400. {
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. if ac_fn_c_try_compile "$LINENO"; then :
  8406. else
  8407. ac_enable_autodepend=no
  8408. fi
  8409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8410. CFLAGS="$SAVE_CFLAGS"
  8411. test -f deps.d || ac_enable_autodepend=no
  8412. rm -rf deps.d
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
  8414. $as_echo "$ac_enable_autodepend" >&6; }
  8415. fi
  8416. if test $ac_enable_autodepend = yes; then
  8417. DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
  8418. ## In parallel builds, another make might create depdir between
  8419. ## the first test and mkdir, so stick another test on the end.
  8420. ## Or use install-sh -d? mkdir -p is not portable.
  8421. MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
  8422. deps_frag=autodeps.mk
  8423. fi
  8424. fi
  8425. deps_frag=$srcdir/src/$deps_frag
  8426. lisp_frag=$srcdir/src/lisp.mk
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
  8428. $as_echo_n "checking for long file names... " >&6; }
  8429. if ${ac_cv_sys_long_file_names+:} false; then :
  8430. $as_echo_n "(cached) " >&6
  8431. else
  8432. ac_cv_sys_long_file_names=yes
  8433. # Test for long file names in all the places we know might matter:
  8434. # . the current directory, where building will happen
  8435. # $prefix/lib where we will be installing things
  8436. # $exec_prefix/lib likewise
  8437. # $TMPDIR if set, where it might want to write temporary files
  8438. # /tmp where it might want to write temporary files
  8439. # /var/tmp likewise
  8440. # /usr/tmp likewise
  8441. for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
  8442. # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
  8443. # in the usual case where exec_prefix is '${prefix}'.
  8444. case $ac_dir in #(
  8445. . | /* | ?:[\\/]*) ;; #(
  8446. *) continue;;
  8447. esac
  8448. test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
  8449. ac_xdir=$ac_dir/cf$$
  8450. (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
  8451. ac_tf1=$ac_xdir/conftest9012345
  8452. ac_tf2=$ac_xdir/conftest9012346
  8453. touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
  8454. ac_cv_sys_long_file_names=no
  8455. rm -f -r "$ac_xdir" 2>/dev/null
  8456. test $ac_cv_sys_long_file_names = no && break
  8457. done
  8458. fi
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
  8460. $as_echo "$ac_cv_sys_long_file_names" >&6; }
  8461. if test $ac_cv_sys_long_file_names = yes; then
  8462. $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
  8463. fi
  8464. #### Choose a window system.
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  8466. $as_echo_n "checking for X... " >&6; }
  8467. # Check whether --with-x was given.
  8468. if test "${with_x+set}" = set; then :
  8469. withval=$with_x;
  8470. fi
  8471. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  8472. if test "x$with_x" = xno; then
  8473. # The user explicitly disabled X.
  8474. have_x=disabled
  8475. else
  8476. case $x_includes,$x_libraries in #(
  8477. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  8478. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  8479. $as_echo_n "(cached) " >&6
  8480. else
  8481. # One or both of the vars are not set, and there is no cached value.
  8482. ac_x_includes=no ac_x_libraries=no
  8483. rm -f -r conftest.dir
  8484. if mkdir conftest.dir; then
  8485. cd conftest.dir
  8486. cat >Imakefile <<'_ACEOF'
  8487. incroot:
  8488. @echo incroot='${INCROOT}'
  8489. usrlibdir:
  8490. @echo usrlibdir='${USRLIBDIR}'
  8491. libdir:
  8492. @echo libdir='${LIBDIR}'
  8493. _ACEOF
  8494. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  8495. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  8496. for ac_var in incroot usrlibdir libdir; do
  8497. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  8498. done
  8499. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  8500. for ac_extension in a so sl dylib la dll; do
  8501. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  8502. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  8503. ac_im_usrlibdir=$ac_im_libdir; break
  8504. fi
  8505. done
  8506. # Screen out bogus values from the imake configuration. They are
  8507. # bogus both because they are the default anyway, and because
  8508. # using them would break gcc on systems where it needs fixed includes.
  8509. case $ac_im_incroot in
  8510. /usr/include) ac_x_includes= ;;
  8511. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  8512. esac
  8513. case $ac_im_usrlibdir in
  8514. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  8515. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  8516. esac
  8517. fi
  8518. cd ..
  8519. rm -f -r conftest.dir
  8520. fi
  8521. # Standard set of common directories for X headers.
  8522. # Check X11 before X11Rn because it is often a symlink to the current release.
  8523. ac_x_header_dirs='
  8524. /usr/X11/include
  8525. /usr/X11R7/include
  8526. /usr/X11R6/include
  8527. /usr/X11R5/include
  8528. /usr/X11R4/include
  8529. /usr/include/X11
  8530. /usr/include/X11R7
  8531. /usr/include/X11R6
  8532. /usr/include/X11R5
  8533. /usr/include/X11R4
  8534. /usr/local/X11/include
  8535. /usr/local/X11R7/include
  8536. /usr/local/X11R6/include
  8537. /usr/local/X11R5/include
  8538. /usr/local/X11R4/include
  8539. /usr/local/include/X11
  8540. /usr/local/include/X11R7
  8541. /usr/local/include/X11R6
  8542. /usr/local/include/X11R5
  8543. /usr/local/include/X11R4
  8544. /usr/X386/include
  8545. /usr/x386/include
  8546. /usr/XFree86/include/X11
  8547. /usr/include
  8548. /usr/local/include
  8549. /usr/unsupported/include
  8550. /usr/athena/include
  8551. /usr/local/x11r5/include
  8552. /usr/lpp/Xamples/include
  8553. /usr/openwin/include
  8554. /usr/openwin/share/include'
  8555. if test "$ac_x_includes" = no; then
  8556. # Guess where to find include files, by looking for Xlib.h.
  8557. # First, try using that file with no special directory specified.
  8558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8559. /* end confdefs.h. */
  8560. #include <X11/Xlib.h>
  8561. _ACEOF
  8562. if ac_fn_c_try_cpp "$LINENO"; then :
  8563. # We can compile using X headers with no special include directory.
  8564. ac_x_includes=
  8565. else
  8566. for ac_dir in $ac_x_header_dirs; do
  8567. if test -r "$ac_dir/X11/Xlib.h"; then
  8568. ac_x_includes=$ac_dir
  8569. break
  8570. fi
  8571. done
  8572. fi
  8573. rm -f conftest.err conftest.i conftest.$ac_ext
  8574. fi # $ac_x_includes = no
  8575. if test "$ac_x_libraries" = no; then
  8576. # Check for the libraries.
  8577. # See if we find them without any special options.
  8578. # Don't add to $LIBS permanently.
  8579. ac_save_LIBS=$LIBS
  8580. LIBS="-lX11 $LIBS"
  8581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8582. /* end confdefs.h. */
  8583. #include <X11/Xlib.h>
  8584. int
  8585. main ()
  8586. {
  8587. XrmInitialize ()
  8588. ;
  8589. return 0;
  8590. }
  8591. _ACEOF
  8592. if ac_fn_c_try_link "$LINENO"; then :
  8593. LIBS=$ac_save_LIBS
  8594. # We can link X programs with no special library path.
  8595. ac_x_libraries=
  8596. else
  8597. LIBS=$ac_save_LIBS
  8598. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  8599. do
  8600. # Don't even attempt the hair of trying to link an X program!
  8601. for ac_extension in a so sl dylib la dll; do
  8602. if test -r "$ac_dir/libX11.$ac_extension"; then
  8603. ac_x_libraries=$ac_dir
  8604. break 2
  8605. fi
  8606. done
  8607. done
  8608. fi
  8609. rm -f core conftest.err conftest.$ac_objext \
  8610. conftest$ac_exeext conftest.$ac_ext
  8611. fi # $ac_x_libraries = no
  8612. case $ac_x_includes,$ac_x_libraries in #(
  8613. no,* | *,no | *\'*)
  8614. # Didn't find X, or a directory has "'" in its name.
  8615. ac_cv_have_x="have_x=no";; #(
  8616. *)
  8617. # Record where we found X for the cache.
  8618. ac_cv_have_x="have_x=yes\
  8619. ac_x_includes='$ac_x_includes'\
  8620. ac_x_libraries='$ac_x_libraries'"
  8621. esac
  8622. fi
  8623. ;; #(
  8624. *) have_x=yes;;
  8625. esac
  8626. eval "$ac_cv_have_x"
  8627. fi # $with_x != no
  8628. if test "$have_x" != yes; then
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  8630. $as_echo "$have_x" >&6; }
  8631. no_x=yes
  8632. else
  8633. # If each of the values was on the command line, it overrides each guess.
  8634. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  8635. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  8636. # Update the cache value to reflect the command line values.
  8637. ac_cv_have_x="have_x=yes\
  8638. ac_x_includes='$x_includes'\
  8639. ac_x_libraries='$x_libraries'"
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  8641. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  8642. fi
  8643. if test "$no_x" = yes; then
  8644. window_system=none
  8645. else
  8646. window_system=x11
  8647. fi
  8648. ## Workaround for bug in autoconf <= 2.62.
  8649. ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
  8650. ## No need to do anything special for these standard directories.
  8651. if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
  8652. x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
  8653. fi
  8654. LD_SWITCH_X_SITE_AUX=
  8655. LD_SWITCH_X_SITE_AUX_RPATH=
  8656. if test "${x_libraries}" != NONE; then
  8657. if test -n "${x_libraries}"; then
  8658. LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
  8659. LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
  8660. LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
  8661. fi
  8662. x_default_search_path=""
  8663. x_search_path=${x_libraries}
  8664. if test -z "${x_search_path}"; then
  8665. x_search_path=/usr/lib
  8666. fi
  8667. for x_library in `echo ${x_search_path}: | \
  8668. sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
  8669. x_search_path="\
  8670. ${x_library}/X11/%L/%T/%N%C%S:\
  8671. ${x_library}/X11/%l/%T/%N%C%S:\
  8672. ${x_library}/X11/%T/%N%C%S:\
  8673. ${x_library}/X11/%L/%T/%N%S:\
  8674. ${x_library}/X11/%l/%T/%N%S:\
  8675. ${x_library}/X11/%T/%N%S"
  8676. if test x"${x_default_search_path}" = x; then
  8677. x_default_search_path=${x_search_path}
  8678. else
  8679. x_default_search_path="${x_search_path}:${x_default_search_path}"
  8680. fi
  8681. done
  8682. fi
  8683. if test "${x_includes}" != NONE && test -n "${x_includes}"; then
  8684. C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
  8685. fi
  8686. if test x"${x_includes}" = x; then
  8687. bitmapdir=/usr/include/X11/bitmaps
  8688. else
  8689. # accumulate include directories that have X11 bitmap subdirectories
  8690. bmd_acc="dummyval"
  8691. for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
  8692. if test -d "${bmd}/X11/bitmaps"; then
  8693. bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
  8694. fi
  8695. if test -d "${bmd}/bitmaps"; then
  8696. bmd_acc="${bmd_acc}:${bmd}/bitmaps"
  8697. fi
  8698. done
  8699. if test ${bmd_acc} != "dummyval"; then
  8700. bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
  8701. fi
  8702. fi
  8703. HAVE_NS=no
  8704. NS_IMPL_COCOA=no
  8705. NS_IMPL_GNUSTEP=no
  8706. tmp_CPPFLAGS="$CPPFLAGS"
  8707. tmp_CFLAGS="$CFLAGS"
  8708. CPPFLAGS="$CPPFLAGS -x objective-c"
  8709. CFLAGS="$CFLAGS -x objective-c"
  8710. TEMACS_LDFLAGS2="\${LDFLAGS}"
  8711. GNU_OBJC_CFLAGS=
  8712. if test "${with_ns}" != no; then
  8713. if test "${opsys}" = darwin; then
  8714. NS_IMPL_COCOA=yes
  8715. ns_appdir=`pwd`/nextstep/Emacs.app
  8716. ns_appbindir=${ns_appdir}/Contents/MacOS/
  8717. ns_appresdir=${ns_appdir}/Contents/Resources
  8718. ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
  8719. elif test -f $GNUSTEP_CONFIG_FILE; then
  8720. NS_IMPL_GNUSTEP=yes
  8721. ns_appdir=`pwd`/nextstep/Emacs.app
  8722. ns_appbindir=${ns_appdir}/
  8723. ns_appresdir=${ns_appdir}/Resources
  8724. ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
  8725. GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
  8726. GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
  8727. GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
  8728. GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
  8729. test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
  8730. GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
  8731. test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
  8732. GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
  8733. CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  8734. CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  8735. LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
  8736. LIB_STANDARD=
  8737. START_FILES=
  8738. TEMACS_LDFLAGS2=
  8739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
  8740. $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
  8741. if ${emacs_cv_objc_exceptions+:} false; then :
  8742. $as_echo_n "(cached) " >&6
  8743. else
  8744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8745. /* end confdefs.h. */
  8746. #include <GNUstepBase/GSConfig.h>
  8747. int
  8748. main ()
  8749. {
  8750. #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
  8751. 1;
  8752. #else
  8753. fail;
  8754. #endif
  8755. ;
  8756. return 0;
  8757. }
  8758. _ACEOF
  8759. if ac_fn_c_try_compile "$LINENO"; then :
  8760. emacs_cv_objc_exceptions=yes
  8761. else
  8762. emacs_cv_objc_exceptions=no
  8763. fi
  8764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8765. fi
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
  8767. $as_echo "$emacs_cv_objc_exceptions" >&6; }
  8768. if test $emacs_cv_objc_exceptions = yes; then
  8769. $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
  8770. GNU_OBJC_CFLAGS="-fobjc-exceptions"
  8771. fi
  8772. fi
  8773. CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
  8774. ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
  8775. if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
  8776. HAVE_NS=yes
  8777. else
  8778. as_fn_error $? "\`--with-ns' was specified, but the include
  8779. files are missing or cannot be compiled." "$LINENO" 5
  8780. fi
  8781. NS_HAVE_NSINTEGER=yes
  8782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8783. /* end confdefs.h. */
  8784. #include <Foundation/NSObjCRuntime.h>
  8785. int
  8786. main ()
  8787. {
  8788. NSInteger i;
  8789. ;
  8790. return 0;
  8791. }
  8792. _ACEOF
  8793. if ac_fn_c_try_compile "$LINENO"; then :
  8794. ns_have_nsinteger=yes
  8795. else
  8796. ns_have_nsinteger=no
  8797. fi
  8798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8799. if test $ns_have_nsinteger = no; then
  8800. NS_HAVE_NSINTEGER=no
  8801. fi
  8802. fi
  8803. ns_frag=/dev/null
  8804. NS_OBJ=
  8805. NS_OBJC_OBJ=
  8806. if test "${HAVE_NS}" = yes; then
  8807. if test "$with_toolkit_scroll_bars" = "no"; then
  8808. as_fn_error $? "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
  8809. fi
  8810. window_system=nextstep
  8811. with_xft=no
  8812. # set up packaging dirs
  8813. if test "${EN_NS_SELF_CONTAINED}" = yes; then
  8814. prefix=${ns_appresdir}
  8815. exec_prefix=${ns_appbindir}
  8816. libexecdir=${ns_appbindir}/libexec
  8817. fi
  8818. ns_frag=$srcdir/src/ns.mk
  8819. NS_OBJ="fontset.o fringe.o image.o"
  8820. NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
  8821. fi
  8822. CFLAGS="$tmp_CFLAGS"
  8823. CPPFLAGS="$tmp_CPPFLAGS"
  8824. case "${window_system}" in
  8825. x11 )
  8826. HAVE_X_WINDOWS=yes
  8827. HAVE_X11=yes
  8828. case "${with_x_toolkit}" in
  8829. athena | lucid ) USE_X_TOOLKIT=LUCID ;;
  8830. motif ) USE_X_TOOLKIT=MOTIF ;;
  8831. gtk ) with_gtk=yes
  8832. USE_X_TOOLKIT=none ;;
  8833. gtk3 ) with_gtk3=yes
  8834. USE_X_TOOLKIT=none ;;
  8835. no ) USE_X_TOOLKIT=none ;;
  8836. * ) USE_X_TOOLKIT=maybe ;;
  8837. esac
  8838. ;;
  8839. nextstep | none )
  8840. HAVE_X_WINDOWS=no
  8841. HAVE_X11=no
  8842. USE_X_TOOLKIT=none
  8843. ;;
  8844. esac
  8845. if test "$window_system" = none && test "X$with_x" != "Xno"; then
  8846. # Extract the first word of "X", so it can be a program name with args.
  8847. set dummy X; ac_word=$2
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8849. $as_echo_n "checking for $ac_word... " >&6; }
  8850. if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
  8851. $as_echo_n "(cached) " >&6
  8852. else
  8853. if test -n "$HAVE_XSERVER"; then
  8854. ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
  8855. else
  8856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8857. for as_dir in $PATH
  8858. do
  8859. IFS=$as_save_IFS
  8860. test -z "$as_dir" && as_dir=.
  8861. for ac_exec_ext in '' $ac_executable_extensions; do
  8862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8863. ac_cv_prog_HAVE_XSERVER="true"
  8864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8865. break 2
  8866. fi
  8867. done
  8868. done
  8869. IFS=$as_save_IFS
  8870. test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
  8871. fi
  8872. fi
  8873. HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
  8874. if test -n "$HAVE_XSERVER"; then
  8875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
  8876. $as_echo "$HAVE_XSERVER" >&6; }
  8877. else
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8879. $as_echo "no" >&6; }
  8880. fi
  8881. if test "$HAVE_XSERVER" = true ||
  8882. test -n "$DISPLAY" ||
  8883. test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
  8884. as_fn_error $? "You seem to be running X, but no X development libraries
  8885. were found. You should install the relevant development files for X
  8886. and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
  8887. sure you have development files for image handling, i.e.
  8888. tiff, gif, jpeg, png and xpm.
  8889. If you are sure you want Emacs compiled without X window support, pass
  8890. --without-x
  8891. to configure." "$LINENO" 5
  8892. fi
  8893. fi
  8894. ### If we're using X11, we should use the X menu package.
  8895. HAVE_MENUS=no
  8896. case ${HAVE_X11} in
  8897. yes ) HAVE_MENUS=yes ;;
  8898. esac
  8899. # Do the opsystem or machine files prohibit the use of the GNU malloc?
  8900. # Assume not, until told otherwise.
  8901. GNU_MALLOC=yes
  8902. doug_lea_malloc=yes
  8903. ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
  8904. if test "x$ac_cv_func_malloc_get_state" = xyes; then :
  8905. else
  8906. doug_lea_malloc=no
  8907. fi
  8908. ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
  8909. if test "x$ac_cv_func_malloc_set_state" = xyes; then :
  8910. else
  8911. doug_lea_malloc=no
  8912. fi
  8913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
  8914. $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
  8915. if ${emacs_cv_var___after_morecore_hook+:} false; then :
  8916. $as_echo_n "(cached) " >&6
  8917. else
  8918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8919. /* end confdefs.h. */
  8920. extern void (* __after_morecore_hook)();
  8921. int
  8922. main ()
  8923. {
  8924. __after_morecore_hook = 0
  8925. ;
  8926. return 0;
  8927. }
  8928. _ACEOF
  8929. if ac_fn_c_try_link "$LINENO"; then :
  8930. emacs_cv_var___after_morecore_hook=yes
  8931. else
  8932. emacs_cv_var___after_morecore_hook=no
  8933. fi
  8934. rm -f core conftest.err conftest.$ac_objext \
  8935. conftest$ac_exeext conftest.$ac_ext
  8936. fi
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
  8938. $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
  8939. if test $emacs_cv_var___after_morecore_hook = no; then
  8940. doug_lea_malloc=no
  8941. fi
  8942. system_malloc=no
  8943. case "$opsys" in
  8944. ## darwin ld insists on the use of malloc routines in the System framework.
  8945. darwin|sol2-10) system_malloc=yes ;;
  8946. esac
  8947. if test "${system_malloc}" = "yes"; then
  8948. $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
  8949. GNU_MALLOC=no
  8950. GNU_MALLOC_reason="
  8951. (The GNU allocators don't work with this system configuration.)"
  8952. GMALLOC_OBJ=
  8953. VMLIMIT_OBJ=
  8954. else
  8955. test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
  8956. VMLIMIT_OBJ=vm-limit.o
  8957. fi
  8958. if test "$doug_lea_malloc" = "yes" ; then
  8959. if test "$GNU_MALLOC" = yes ; then
  8960. GNU_MALLOC_reason="
  8961. (Using Doug Lea's new malloc from the GNU C Library.)"
  8962. fi
  8963. $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
  8964. ## Use mmap directly for allocating larger buffers.
  8965. ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
  8966. ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
  8967. ## Does the AC_FUNC_MMAP test below make this check unnecessary?
  8968. case "$opsys" in
  8969. gnu*) REL_ALLOC=no ;;
  8970. esac
  8971. fi
  8972. if test x"${REL_ALLOC}" = x; then
  8973. REL_ALLOC=${GNU_MALLOC}
  8974. fi
  8975. use_mmap_for_buffers=no
  8976. case "$opsys" in
  8977. cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
  8978. esac
  8979. for ac_header in $ac_header_list
  8980. do :
  8981. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8982. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8983. "
  8984. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8985. cat >>confdefs.h <<_ACEOF
  8986. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8987. _ACEOF
  8988. fi
  8989. done
  8990. for ac_func in getpagesize
  8991. do :
  8992. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8993. if test "x$ac_cv_func_getpagesize" = xyes; then :
  8994. cat >>confdefs.h <<_ACEOF
  8995. #define HAVE_GETPAGESIZE 1
  8996. _ACEOF
  8997. fi
  8998. done
  8999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9000. $as_echo_n "checking for working mmap... " >&6; }
  9001. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  9002. $as_echo_n "(cached) " >&6
  9003. else
  9004. if test "$cross_compiling" = yes; then :
  9005. ac_cv_func_mmap_fixed_mapped=no
  9006. else
  9007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9008. /* end confdefs.h. */
  9009. $ac_includes_default
  9010. /* malloc might have been renamed as rpl_malloc. */
  9011. #undef malloc
  9012. /* Thanks to Mike Haertel and Jim Avera for this test.
  9013. Here is a matrix of mmap possibilities:
  9014. mmap private not fixed
  9015. mmap private fixed at somewhere currently unmapped
  9016. mmap private fixed at somewhere already mapped
  9017. mmap shared not fixed
  9018. mmap shared fixed at somewhere currently unmapped
  9019. mmap shared fixed at somewhere already mapped
  9020. For private mappings, we should verify that changes cannot be read()
  9021. back from the file, nor mmap's back from the file at a different
  9022. address. (There have been systems where private was not correctly
  9023. implemented like the infamous i386 svr4.0, and systems where the
  9024. VM page cache was not coherent with the file system buffer cache
  9025. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9026. For shared mappings, we should conversely verify that changes get
  9027. propagated back to all the places they're supposed to be.
  9028. Grep wants private fixed already mapped.
  9029. The main things grep needs to know about mmap are:
  9030. * does it exist and is it safe to write into the mmap'd area
  9031. * how to use it (BSD variants) */
  9032. #include <fcntl.h>
  9033. #include <sys/mman.h>
  9034. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9035. char *malloc ();
  9036. #endif
  9037. /* This mess was copied from the GNU getpagesize.h. */
  9038. #ifndef HAVE_GETPAGESIZE
  9039. # ifdef _SC_PAGESIZE
  9040. # define getpagesize() sysconf(_SC_PAGESIZE)
  9041. # else /* no _SC_PAGESIZE */
  9042. # ifdef HAVE_SYS_PARAM_H
  9043. # include <sys/param.h>
  9044. # ifdef EXEC_PAGESIZE
  9045. # define getpagesize() EXEC_PAGESIZE
  9046. # else /* no EXEC_PAGESIZE */
  9047. # ifdef NBPG
  9048. # define getpagesize() NBPG * CLSIZE
  9049. # ifndef CLSIZE
  9050. # define CLSIZE 1
  9051. # endif /* no CLSIZE */
  9052. # else /* no NBPG */
  9053. # ifdef NBPC
  9054. # define getpagesize() NBPC
  9055. # else /* no NBPC */
  9056. # ifdef PAGESIZE
  9057. # define getpagesize() PAGESIZE
  9058. # endif /* PAGESIZE */
  9059. # endif /* no NBPC */
  9060. # endif /* no NBPG */
  9061. # endif /* no EXEC_PAGESIZE */
  9062. # else /* no HAVE_SYS_PARAM_H */
  9063. # define getpagesize() 8192 /* punt totally */
  9064. # endif /* no HAVE_SYS_PARAM_H */
  9065. # endif /* no _SC_PAGESIZE */
  9066. #endif /* no HAVE_GETPAGESIZE */
  9067. int
  9068. main ()
  9069. {
  9070. char *data, *data2, *data3;
  9071. const char *cdata2;
  9072. int i, pagesize;
  9073. int fd, fd2;
  9074. pagesize = getpagesize ();
  9075. /* First, make a file with some known garbage in it. */
  9076. data = (char *) malloc (pagesize);
  9077. if (!data)
  9078. return 1;
  9079. for (i = 0; i < pagesize; ++i)
  9080. *(data + i) = rand ();
  9081. umask (0);
  9082. fd = creat ("conftest.mmap", 0600);
  9083. if (fd < 0)
  9084. return 2;
  9085. if (write (fd, data, pagesize) != pagesize)
  9086. return 3;
  9087. close (fd);
  9088. /* Next, check that the tail of a page is zero-filled. File must have
  9089. non-zero length, otherwise we risk SIGBUS for entire page. */
  9090. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  9091. if (fd2 < 0)
  9092. return 4;
  9093. cdata2 = "";
  9094. if (write (fd2, cdata2, 1) != 1)
  9095. return 5;
  9096. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  9097. if (data2 == MAP_FAILED)
  9098. return 6;
  9099. for (i = 0; i < pagesize; ++i)
  9100. if (*(data2 + i))
  9101. return 7;
  9102. close (fd2);
  9103. if (munmap (data2, pagesize))
  9104. return 8;
  9105. /* Next, try to mmap the file at a fixed address which already has
  9106. something else allocated at it. If we can, also make sure that
  9107. we see the same garbage. */
  9108. fd = open ("conftest.mmap", O_RDWR);
  9109. if (fd < 0)
  9110. return 9;
  9111. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9112. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9113. return 10;
  9114. for (i = 0; i < pagesize; ++i)
  9115. if (*(data + i) != *(data2 + i))
  9116. return 11;
  9117. /* Finally, make sure that changes to the mapped area do not
  9118. percolate back to the file as seen by read(). (This is a bug on
  9119. some variants of i386 svr4.0.) */
  9120. for (i = 0; i < pagesize; ++i)
  9121. *(data2 + i) = *(data2 + i) + 1;
  9122. data3 = (char *) malloc (pagesize);
  9123. if (!data3)
  9124. return 12;
  9125. if (read (fd, data3, pagesize) != pagesize)
  9126. return 13;
  9127. for (i = 0; i < pagesize; ++i)
  9128. if (*(data + i) != *(data3 + i))
  9129. return 14;
  9130. close (fd);
  9131. return 0;
  9132. }
  9133. _ACEOF
  9134. if ac_fn_c_try_run "$LINENO"; then :
  9135. ac_cv_func_mmap_fixed_mapped=yes
  9136. else
  9137. ac_cv_func_mmap_fixed_mapped=no
  9138. fi
  9139. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9140. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9141. fi
  9142. fi
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9144. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9145. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9146. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9147. fi
  9148. rm -f conftest.mmap conftest.txt
  9149. if test $use_mmap_for_buffers = yes; then
  9150. $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
  9151. REL_ALLOC=no
  9152. fi
  9153. LIBS="$LIBS_SYSTEM $LIBS"
  9154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  9155. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  9156. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  9157. $as_echo_n "(cached) " >&6
  9158. else
  9159. ac_check_lib_save_LIBS=$LIBS
  9160. LIBS="-ldnet $LIBS"
  9161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9162. /* end confdefs.h. */
  9163. /* Override any GCC internal prototype to avoid an error.
  9164. Use char because int might match the return type of a GCC
  9165. builtin and then its argument prototype would still apply. */
  9166. #ifdef __cplusplus
  9167. extern "C"
  9168. #endif
  9169. char dnet_ntoa ();
  9170. int
  9171. main ()
  9172. {
  9173. return dnet_ntoa ();
  9174. ;
  9175. return 0;
  9176. }
  9177. _ACEOF
  9178. if ac_fn_c_try_link "$LINENO"; then :
  9179. ac_cv_lib_dnet_dnet_ntoa=yes
  9180. else
  9181. ac_cv_lib_dnet_dnet_ntoa=no
  9182. fi
  9183. rm -f core conftest.err conftest.$ac_objext \
  9184. conftest$ac_exeext conftest.$ac_ext
  9185. LIBS=$ac_check_lib_save_LIBS
  9186. fi
  9187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  9188. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  9189. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  9190. cat >>confdefs.h <<_ACEOF
  9191. #define HAVE_LIBDNET 1
  9192. _ACEOF
  9193. LIBS="-ldnet $LIBS"
  9194. fi
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
  9196. $as_echo_n "checking for main in -lXbsd... " >&6; }
  9197. if ${ac_cv_lib_Xbsd_main+:} false; then :
  9198. $as_echo_n "(cached) " >&6
  9199. else
  9200. ac_check_lib_save_LIBS=$LIBS
  9201. LIBS="-lXbsd $LIBS"
  9202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9203. /* end confdefs.h. */
  9204. int
  9205. main ()
  9206. {
  9207. return main ();
  9208. ;
  9209. return 0;
  9210. }
  9211. _ACEOF
  9212. if ac_fn_c_try_link "$LINENO"; then :
  9213. ac_cv_lib_Xbsd_main=yes
  9214. else
  9215. ac_cv_lib_Xbsd_main=no
  9216. fi
  9217. rm -f core conftest.err conftest.$ac_objext \
  9218. conftest$ac_exeext conftest.$ac_ext
  9219. LIBS=$ac_check_lib_save_LIBS
  9220. fi
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
  9222. $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
  9223. if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
  9224. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
  9225. fi
  9226. LIB_PTHREAD=
  9227. for ac_header in pthread.h
  9228. do :
  9229. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  9230. if test "x$ac_cv_header_pthread_h" = xyes; then :
  9231. cat >>confdefs.h <<_ACEOF
  9232. #define HAVE_PTHREAD_H 1
  9233. _ACEOF
  9234. fi
  9235. done
  9236. if test "$ac_cv_header_pthread_h"; then
  9237. if test "$GMALLOC_OBJ" = gmalloc.o; then
  9238. emacs_pthread_function=pthread_atfork
  9239. else
  9240. emacs_pthread_function=pthread_self
  9241. fi
  9242. as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
  9244. $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
  9245. if eval \${$as_ac_Lib+:} false; then :
  9246. $as_echo_n "(cached) " >&6
  9247. else
  9248. ac_check_lib_save_LIBS=$LIBS
  9249. LIBS="-lpthread $LIBS"
  9250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9251. /* end confdefs.h. */
  9252. /* Override any GCC internal prototype to avoid an error.
  9253. Use char because int might match the return type of a GCC
  9254. builtin and then its argument prototype would still apply. */
  9255. #ifdef __cplusplus
  9256. extern "C"
  9257. #endif
  9258. char $emacs_pthread_function ();
  9259. int
  9260. main ()
  9261. {
  9262. return $emacs_pthread_function ();
  9263. ;
  9264. return 0;
  9265. }
  9266. _ACEOF
  9267. if ac_fn_c_try_link "$LINENO"; then :
  9268. eval "$as_ac_Lib=yes"
  9269. else
  9270. eval "$as_ac_Lib=no"
  9271. fi
  9272. rm -f core conftest.err conftest.$ac_objext \
  9273. conftest$ac_exeext conftest.$ac_ext
  9274. LIBS=$ac_check_lib_save_LIBS
  9275. fi
  9276. eval ac_res=\$$as_ac_Lib
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9278. $as_echo "$ac_res" >&6; }
  9279. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9280. HAVE_PTHREAD=yes
  9281. fi
  9282. fi
  9283. if test "$HAVE_PTHREAD" = yes; then
  9284. case "${canonical}" in
  9285. *-hpux*) ;;
  9286. *) LIB_PTHREAD="-lpthread"
  9287. LIBS="$LIB_PTHREAD $LIBS" ;;
  9288. esac
  9289. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  9290. fi
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
  9292. $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
  9293. if ${ac_cv_lib_pthreads_cma_open+:} false; then :
  9294. $as_echo_n "(cached) " >&6
  9295. else
  9296. ac_check_lib_save_LIBS=$LIBS
  9297. LIBS="-lpthreads $LIBS"
  9298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9299. /* end confdefs.h. */
  9300. /* Override any GCC internal prototype to avoid an error.
  9301. Use char because int might match the return type of a GCC
  9302. builtin and then its argument prototype would still apply. */
  9303. #ifdef __cplusplus
  9304. extern "C"
  9305. #endif
  9306. char cma_open ();
  9307. int
  9308. main ()
  9309. {
  9310. return cma_open ();
  9311. ;
  9312. return 0;
  9313. }
  9314. _ACEOF
  9315. if ac_fn_c_try_link "$LINENO"; then :
  9316. ac_cv_lib_pthreads_cma_open=yes
  9317. else
  9318. ac_cv_lib_pthreads_cma_open=no
  9319. fi
  9320. rm -f core conftest.err conftest.$ac_objext \
  9321. conftest$ac_exeext conftest.$ac_ext
  9322. LIBS=$ac_check_lib_save_LIBS
  9323. fi
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
  9325. $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
  9326. if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
  9327. cat >>confdefs.h <<_ACEOF
  9328. #define HAVE_LIBPTHREADS 1
  9329. _ACEOF
  9330. LIBS="-lpthreads $LIBS"
  9331. fi
  9332. ## Note: when using cpp in s/aix4.2.h, this definition depended on
  9333. ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
  9334. ## the system file was sourced. Hence the value of LIBS_SYSTEM
  9335. ## added to LIBS in configure would never contain the pthreads part,
  9336. ## but the value used in Makefiles might. FIXME?
  9337. ##
  9338. ## -lpthreads seems to be necessary for Xlib in X11R6, and should
  9339. ## be harmless on older versions of X where it happens to exist.
  9340. test "$opsys" = "aix4-2" && \
  9341. test $ac_cv_lib_pthreads_cma_open = yes && \
  9342. LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
  9343. case ${host_os} in
  9344. aix*)
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
  9346. $as_echo_n "checking for -bbigtoc option... " >&6; }
  9347. if ${gdb_cv_bigtoc+:} false; then :
  9348. $as_echo_n "(cached) " >&6
  9349. else
  9350. case $GCC in
  9351. yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
  9352. *) gdb_cv_bigtoc=-bbigtoc ;;
  9353. esac
  9354. LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
  9355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9356. /* end confdefs.h. */
  9357. int
  9358. main ()
  9359. {
  9360. int i;
  9361. ;
  9362. return 0;
  9363. }
  9364. _ACEOF
  9365. if ac_fn_c_try_link "$LINENO"; then :
  9366. else
  9367. gdb_cv_bigtoc=
  9368. fi
  9369. rm -f core conftest.err conftest.$ac_objext \
  9370. conftest$ac_exeext conftest.$ac_ext
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
  9373. $as_echo "$gdb_cv_bigtoc" >&6; }
  9374. ;;
  9375. esac
  9376. # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
  9377. # used for the tests that follow. We set them back to REAL_CFLAGS and
  9378. # REAL_CPPFLAGS later on.
  9379. REAL_CFLAGS="$CFLAGS"
  9380. REAL_CPPFLAGS="$CPPFLAGS"
  9381. if test "${HAVE_X11}" = "yes"; then
  9382. DEFS="$C_SWITCH_X_SITE $DEFS"
  9383. LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
  9384. LIBS="-lX11 $LIBS"
  9385. CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
  9386. CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
  9387. # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
  9388. # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
  9389. # but it's more convenient here to set LD_RUN_PATH
  9390. # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
  9391. if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  9392. LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
  9393. export LD_RUN_PATH
  9394. fi
  9395. if test "${opsys}" = "gnu-linux"; then
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
  9397. $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
  9398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9399. /* end confdefs.h. */
  9400. int
  9401. main ()
  9402. {
  9403. XOpenDisplay ("foo");
  9404. ;
  9405. return 0;
  9406. }
  9407. _ACEOF
  9408. if ac_fn_c_try_link "$LINENO"; then :
  9409. xgnu_linux_first_failure=no
  9410. else
  9411. xgnu_linux_first_failure=yes
  9412. fi
  9413. rm -f core conftest.err conftest.$ac_objext \
  9414. conftest$ac_exeext conftest.$ac_ext
  9415. if test "${xgnu_linux_first_failure}" = "yes"; then
  9416. OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
  9417. OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
  9418. OLD_CPPFLAGS="$CPPFLAGS"
  9419. OLD_LIBS="$LIBS"
  9420. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
  9421. C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
  9422. CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
  9423. LIBS="$LIBS -b i486-linuxaout"
  9424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9425. /* end confdefs.h. */
  9426. int
  9427. main ()
  9428. {
  9429. XOpenDisplay ("foo");
  9430. ;
  9431. return 0;
  9432. }
  9433. _ACEOF
  9434. if ac_fn_c_try_link "$LINENO"; then :
  9435. xgnu_linux_second_failure=no
  9436. else
  9437. xgnu_linux_second_failure=yes
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext \
  9440. conftest$ac_exeext conftest.$ac_ext
  9441. if test "${xgnu_linux_second_failure}" = "yes"; then
  9442. # If we get the same failure with -b, there is no use adding -b.
  9443. # So take it out. This plays safe.
  9444. LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
  9445. C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
  9446. CPPFLAGS="$OLD_CPPFLAGS"
  9447. LIBS="$OLD_LIBS"
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9449. $as_echo "no" >&6; }
  9450. else
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9452. $as_echo "yes" >&6; }
  9453. fi
  9454. else
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9456. $as_echo "no" >&6; }
  9457. fi
  9458. fi
  9459. # Reportedly, some broken Solaris systems have XKBlib.h but are missing
  9460. # header files included from there.
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
  9462. $as_echo_n "checking for Xkb... " >&6; }
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. #include <X11/Xlib.h>
  9466. #include <X11/XKBlib.h>
  9467. int
  9468. main ()
  9469. {
  9470. XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
  9471. ;
  9472. return 0;
  9473. }
  9474. _ACEOF
  9475. if ac_fn_c_try_link "$LINENO"; then :
  9476. emacs_xkb=yes
  9477. else
  9478. emacs_xkb=no
  9479. fi
  9480. rm -f core conftest.err conftest.$ac_objext \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
  9483. $as_echo "$emacs_xkb" >&6; }
  9484. if test $emacs_xkb = yes; then
  9485. $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
  9486. fi
  9487. for ac_func in XrmSetDatabase XScreenResourceString \
  9488. XScreenNumberOfScreen XSetWMProtocols
  9489. do :
  9490. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9491. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9492. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9493. cat >>confdefs.h <<_ACEOF
  9494. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9495. _ACEOF
  9496. fi
  9497. done
  9498. fi
  9499. if test "${window_system}" = "x11"; then
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
  9501. $as_echo_n "checking X11 version 6... " >&6; }
  9502. if ${emacs_cv_x11_version_6+:} false; then :
  9503. $as_echo_n "(cached) " >&6
  9504. else
  9505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9506. /* end confdefs.h. */
  9507. #include <X11/Xlib.h>
  9508. int
  9509. main ()
  9510. {
  9511. #if XlibSpecificationRelease < 6
  9512. fail;
  9513. #endif
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. emacs_cv_x11_version_6=yes
  9520. else
  9521. emacs_cv_x11_version_6=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. fi
  9526. if test $emacs_cv_x11_version_6 = yes; then
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
  9528. $as_echo "6 or newer" >&6; }
  9529. $as_echo "#define HAVE_X11R6 1" >>confdefs.h
  9530. $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
  9531. ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
  9532. ## XIM support.
  9533. case "$opsys" in
  9534. sol2-*) : ;;
  9535. *)
  9536. $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
  9537. ;;
  9538. esac
  9539. else
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
  9541. $as_echo "before 6" >&6; }
  9542. fi
  9543. fi
  9544. ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
  9545. HAVE_RSVG=no
  9546. if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
  9547. if test "${with_rsvg}" != "no"; then
  9548. RSVG_REQUIRED=2.11.0
  9549. RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
  9550. succeeded=no
  9551. # Extract the first word of "pkg-config", so it can be a program name with args.
  9552. set dummy pkg-config; ac_word=$2
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9554. $as_echo_n "checking for $ac_word... " >&6; }
  9555. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9556. $as_echo_n "(cached) " >&6
  9557. else
  9558. case $PKG_CONFIG in
  9559. [\\/]* | ?:[\\/]*)
  9560. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9561. ;;
  9562. *)
  9563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9564. for as_dir in $PATH
  9565. do
  9566. IFS=$as_save_IFS
  9567. test -z "$as_dir" && as_dir=.
  9568. for ac_exec_ext in '' $ac_executable_extensions; do
  9569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9570. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9572. break 2
  9573. fi
  9574. done
  9575. done
  9576. IFS=$as_save_IFS
  9577. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9578. ;;
  9579. esac
  9580. fi
  9581. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9582. if test -n "$PKG_CONFIG"; then
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9584. $as_echo "$PKG_CONFIG" >&6; }
  9585. else
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9587. $as_echo "no" >&6; }
  9588. fi
  9589. if test "$PKG_CONFIG" = "no" ; then
  9590. :
  9591. else
  9592. PKG_CONFIG_MIN_VERSION=0.9.0
  9593. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
  9595. $as_echo_n "checking for $RSVG_MODULE... " >&6; }
  9596. if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9598. $as_echo "yes" >&6; }
  9599. succeeded=yes
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
  9601. $as_echo_n "checking RSVG_CFLAGS... " >&6; }
  9602. RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
  9604. $as_echo "$RSVG_CFLAGS" >&6; }
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
  9606. $as_echo_n "checking RSVG_LIBS... " >&6; }
  9607. RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
  9609. $as_echo "$RSVG_LIBS" >&6; }
  9610. else
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9612. $as_echo "no" >&6; }
  9613. RSVG_CFLAGS=""
  9614. RSVG_LIBS=""
  9615. ## If we have a custom action on failure, don't print errors, but
  9616. ## do set a variable so people can do so.
  9617. RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
  9618. fi
  9619. else
  9620. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9621. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9622. fi
  9623. fi
  9624. if test $succeeded = yes; then
  9625. HAVE_RSVG=yes
  9626. else
  9627. :
  9628. fi
  9629. if test $HAVE_RSVG = yes; then
  9630. $as_echo "#define HAVE_RSVG 1" >>confdefs.h
  9631. CFLAGS="$CFLAGS $RSVG_CFLAGS"
  9632. LIBS="$RSVG_LIBS $LIBS"
  9633. fi
  9634. fi
  9635. fi
  9636. HAVE_IMAGEMAGICK=no
  9637. if test "${HAVE_X11}" = "yes"; then
  9638. if test "${with_imagemagick}" != "no"; then
  9639. ## 6.2.8 is the earliest version known to work, but earlier versions
  9640. ## might work - let us know if you find one.
  9641. ## 6.0.7 does not work. See bug#7955.
  9642. IMAGEMAGICK_MODULE="Wand >= 6.2.8"
  9643. succeeded=no
  9644. # Extract the first word of "pkg-config", so it can be a program name with args.
  9645. set dummy pkg-config; ac_word=$2
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9647. $as_echo_n "checking for $ac_word... " >&6; }
  9648. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. case $PKG_CONFIG in
  9652. [\\/]* | ?:[\\/]*)
  9653. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9654. ;;
  9655. *)
  9656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9657. for as_dir in $PATH
  9658. do
  9659. IFS=$as_save_IFS
  9660. test -z "$as_dir" && as_dir=.
  9661. for ac_exec_ext in '' $ac_executable_extensions; do
  9662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9663. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9665. break 2
  9666. fi
  9667. done
  9668. done
  9669. IFS=$as_save_IFS
  9670. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9671. ;;
  9672. esac
  9673. fi
  9674. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9675. if test -n "$PKG_CONFIG"; then
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9677. $as_echo "$PKG_CONFIG" >&6; }
  9678. else
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9680. $as_echo "no" >&6; }
  9681. fi
  9682. if test "$PKG_CONFIG" = "no" ; then
  9683. :
  9684. else
  9685. PKG_CONFIG_MIN_VERSION=0.9.0
  9686. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
  9688. $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
  9689. if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9691. $as_echo "yes" >&6; }
  9692. succeeded=yes
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
  9694. $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
  9695. IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
  9697. $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
  9699. $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
  9700. IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
  9702. $as_echo "$IMAGEMAGICK_LIBS" >&6; }
  9703. else
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9705. $as_echo "no" >&6; }
  9706. IMAGEMAGICK_CFLAGS=""
  9707. IMAGEMAGICK_LIBS=""
  9708. ## If we have a custom action on failure, don't print errors, but
  9709. ## do set a variable so people can do so.
  9710. IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
  9711. fi
  9712. else
  9713. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9714. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9715. fi
  9716. fi
  9717. if test $succeeded = yes; then
  9718. HAVE_IMAGEMAGICK=yes
  9719. else
  9720. :
  9721. fi
  9722. if test $HAVE_IMAGEMAGICK = yes; then
  9723. $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
  9724. CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
  9725. LIBS="$IMAGEMAGICK_LIBS $LIBS"
  9726. for ac_func in MagickExportImagePixels
  9727. do :
  9728. ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
  9729. if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
  9730. cat >>confdefs.h <<_ACEOF
  9731. #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
  9732. _ACEOF
  9733. fi
  9734. done
  9735. fi
  9736. fi
  9737. fi
  9738. HAVE_GTK=no
  9739. GTK_OBJ=
  9740. if test "${with_gtk3}" = "yes"; then
  9741. GLIB_REQUIRED=2.28
  9742. GTK_REQUIRED=3.0
  9743. GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
  9744. succeeded=no
  9745. # Extract the first word of "pkg-config", so it can be a program name with args.
  9746. set dummy pkg-config; ac_word=$2
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9748. $as_echo_n "checking for $ac_word... " >&6; }
  9749. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9750. $as_echo_n "(cached) " >&6
  9751. else
  9752. case $PKG_CONFIG in
  9753. [\\/]* | ?:[\\/]*)
  9754. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9755. ;;
  9756. *)
  9757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9758. for as_dir in $PATH
  9759. do
  9760. IFS=$as_save_IFS
  9761. test -z "$as_dir" && as_dir=.
  9762. for ac_exec_ext in '' $ac_executable_extensions; do
  9763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9764. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9766. break 2
  9767. fi
  9768. done
  9769. done
  9770. IFS=$as_save_IFS
  9771. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9772. ;;
  9773. esac
  9774. fi
  9775. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9776. if test -n "$PKG_CONFIG"; then
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9778. $as_echo "$PKG_CONFIG" >&6; }
  9779. else
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9781. $as_echo "no" >&6; }
  9782. fi
  9783. if test "$PKG_CONFIG" = "no" ; then
  9784. pkg_check_gtk=no
  9785. else
  9786. PKG_CONFIG_MIN_VERSION=0.9.0
  9787. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
  9789. $as_echo_n "checking for $GTK_MODULES... " >&6; }
  9790. if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9792. $as_echo "yes" >&6; }
  9793. succeeded=yes
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  9795. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  9796. GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  9798. $as_echo "$GTK_CFLAGS" >&6; }
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  9800. $as_echo_n "checking GTK_LIBS... " >&6; }
  9801. GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  9803. $as_echo "$GTK_LIBS" >&6; }
  9804. else
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9806. $as_echo "no" >&6; }
  9807. GTK_CFLAGS=""
  9808. GTK_LIBS=""
  9809. ## If we have a custom action on failure, don't print errors, but
  9810. ## do set a variable so people can do so.
  9811. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
  9812. fi
  9813. else
  9814. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9815. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9816. fi
  9817. fi
  9818. if test $succeeded = yes; then
  9819. pkg_check_gtk=yes
  9820. else
  9821. pkg_check_gtk=no
  9822. fi
  9823. if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
  9824. as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
  9825. fi
  9826. $as_echo "#define HAVE_GTK3 1" >>confdefs.h
  9827. GTK_OBJ=emacsgtkfixed.o
  9828. fi
  9829. if test "$pkg_check_gtk" != "yes"; then
  9830. HAVE_GTK=no
  9831. if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
  9832. GLIB_REQUIRED=2.10
  9833. GTK_REQUIRED=2.10
  9834. GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
  9835. succeeded=no
  9836. # Extract the first word of "pkg-config", so it can be a program name with args.
  9837. set dummy pkg-config; ac_word=$2
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9839. $as_echo_n "checking for $ac_word... " >&6; }
  9840. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9841. $as_echo_n "(cached) " >&6
  9842. else
  9843. case $PKG_CONFIG in
  9844. [\\/]* | ?:[\\/]*)
  9845. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9846. ;;
  9847. *)
  9848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9849. for as_dir in $PATH
  9850. do
  9851. IFS=$as_save_IFS
  9852. test -z "$as_dir" && as_dir=.
  9853. for ac_exec_ext in '' $ac_executable_extensions; do
  9854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9855. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9857. break 2
  9858. fi
  9859. done
  9860. done
  9861. IFS=$as_save_IFS
  9862. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9863. ;;
  9864. esac
  9865. fi
  9866. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9867. if test -n "$PKG_CONFIG"; then
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9869. $as_echo "$PKG_CONFIG" >&6; }
  9870. else
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9872. $as_echo "no" >&6; }
  9873. fi
  9874. if test "$PKG_CONFIG" = "no" ; then
  9875. pkg_check_gtk=no
  9876. else
  9877. PKG_CONFIG_MIN_VERSION=0.9.0
  9878. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
  9880. $as_echo_n "checking for $GTK_MODULES... " >&6; }
  9881. if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9883. $as_echo "yes" >&6; }
  9884. succeeded=yes
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  9886. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  9887. GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  9889. $as_echo "$GTK_CFLAGS" >&6; }
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  9891. $as_echo_n "checking GTK_LIBS... " >&6; }
  9892. GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  9894. $as_echo "$GTK_LIBS" >&6; }
  9895. else
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9897. $as_echo "no" >&6; }
  9898. GTK_CFLAGS=""
  9899. GTK_LIBS=""
  9900. ## If we have a custom action on failure, don't print errors, but
  9901. ## do set a variable so people can do so.
  9902. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
  9903. fi
  9904. else
  9905. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9906. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9907. fi
  9908. fi
  9909. if test $succeeded = yes; then
  9910. pkg_check_gtk=yes
  9911. else
  9912. pkg_check_gtk=no
  9913. fi
  9914. if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
  9915. as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
  9916. fi
  9917. fi
  9918. fi
  9919. if test x"$pkg_check_gtk" = xyes; then
  9920. C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
  9921. CFLAGS="$CFLAGS $GTK_CFLAGS"
  9922. LIBS="$GTK_LIBS $LIBS"
  9923. GTK_COMPILES=no
  9924. for ac_func in gtk_main
  9925. do :
  9926. ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
  9927. if test "x$ac_cv_func_gtk_main" = xyes; then :
  9928. cat >>confdefs.h <<_ACEOF
  9929. #define HAVE_GTK_MAIN 1
  9930. _ACEOF
  9931. GTK_COMPILES=yes
  9932. fi
  9933. done
  9934. if test "${GTK_COMPILES}" != "yes"; then
  9935. if test "$USE_X_TOOLKIT" != "maybe"; then
  9936. as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
  9937. fi
  9938. else
  9939. HAVE_GTK=yes
  9940. $as_echo "#define USE_GTK 1" >>confdefs.h
  9941. GTK_OBJ="gtkutil.o $GTK_OBJ"
  9942. USE_X_TOOLKIT=none
  9943. if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
  9944. :
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
  9947. closing open displays. This is no problem if you just use
  9948. one display, but if you use more than one and close one of them
  9949. Emacs may crash." >&5
  9950. $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
  9951. closing open displays. This is no problem if you just use
  9952. one display, but if you use more than one and close one of them
  9953. Emacs may crash." >&2;}
  9954. sleep 3
  9955. fi
  9956. fi
  9957. fi
  9958. if test "${HAVE_GTK}" = "yes"; then
  9959. if test "$with_toolkit_scroll_bars" != no; then
  9960. with_toolkit_scroll_bars=yes
  9961. fi
  9962. HAVE_GTK_FILE_SELECTION=no
  9963. ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
  9964. #include <gtk/gtk.h>
  9965. "
  9966. if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
  9967. HAVE_GTK_FILE_SELECTION=yes
  9968. else
  9969. HAVE_GTK_FILE_SELECTION=no
  9970. fi
  9971. if test "$HAVE_GTK_FILE_SELECTION" = yes; then
  9972. for ac_func in gtk_file_selection_new
  9973. do :
  9974. ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
  9975. if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
  9976. cat >>confdefs.h <<_ACEOF
  9977. #define HAVE_GTK_FILE_SELECTION_NEW 1
  9978. _ACEOF
  9979. fi
  9980. done
  9981. fi
  9982. for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
  9983. gtk_dialog_get_action_area gtk_widget_get_sensitive \
  9984. gtk_widget_get_mapped gtk_adjustment_get_page_size \
  9985. gtk_orientable_set_orientation \
  9986. gtk_window_set_has_resize_grip
  9987. do :
  9988. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9989. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9990. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9991. cat >>confdefs.h <<_ACEOF
  9992. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9993. _ACEOF
  9994. fi
  9995. done
  9996. fi
  9997. HAVE_DBUS=no
  9998. DBUS_OBJ=
  9999. if test "${with_dbus}" = "yes"; then
  10000. succeeded=no
  10001. # Extract the first word of "pkg-config", so it can be a program name with args.
  10002. set dummy pkg-config; ac_word=$2
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10004. $as_echo_n "checking for $ac_word... " >&6; }
  10005. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. case $PKG_CONFIG in
  10009. [\\/]* | ?:[\\/]*)
  10010. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10011. ;;
  10012. *)
  10013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10014. for as_dir in $PATH
  10015. do
  10016. IFS=$as_save_IFS
  10017. test -z "$as_dir" && as_dir=.
  10018. for ac_exec_ext in '' $ac_executable_extensions; do
  10019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10020. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10022. break 2
  10023. fi
  10024. done
  10025. done
  10026. IFS=$as_save_IFS
  10027. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10028. ;;
  10029. esac
  10030. fi
  10031. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10032. if test -n "$PKG_CONFIG"; then
  10033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10034. $as_echo "$PKG_CONFIG" >&6; }
  10035. else
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10037. $as_echo "no" >&6; }
  10038. fi
  10039. if test "$PKG_CONFIG" = "no" ; then
  10040. HAVE_DBUS=no
  10041. else
  10042. PKG_CONFIG_MIN_VERSION=0.9.0
  10043. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
  10045. $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
  10046. if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10048. $as_echo "yes" >&6; }
  10049. succeeded=yes
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
  10051. $as_echo_n "checking DBUS_CFLAGS... " >&6; }
  10052. DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
  10054. $as_echo "$DBUS_CFLAGS" >&6; }
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
  10056. $as_echo_n "checking DBUS_LIBS... " >&6; }
  10057. DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
  10059. $as_echo "$DBUS_LIBS" >&6; }
  10060. else
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10062. $as_echo "no" >&6; }
  10063. DBUS_CFLAGS=""
  10064. DBUS_LIBS=""
  10065. ## If we have a custom action on failure, don't print errors, but
  10066. ## do set a variable so people can do so.
  10067. DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
  10068. fi
  10069. else
  10070. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10071. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10072. fi
  10073. fi
  10074. if test $succeeded = yes; then
  10075. HAVE_DBUS=yes
  10076. else
  10077. HAVE_DBUS=no
  10078. fi
  10079. if test "$HAVE_DBUS" = yes; then
  10080. LIBS="$LIBS $DBUS_LIBS"
  10081. $as_echo "#define HAVE_DBUS 1" >>confdefs.h
  10082. for ac_func in dbus_watch_get_unix_fd
  10083. do :
  10084. ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
  10085. if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
  10086. cat >>confdefs.h <<_ACEOF
  10087. #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
  10088. _ACEOF
  10089. fi
  10090. done
  10091. DBUS_OBJ=dbusbind.o
  10092. fi
  10093. fi
  10094. HAVE_GSETTINGS=no
  10095. if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
  10096. succeeded=no
  10097. # Extract the first word of "pkg-config", so it can be a program name with args.
  10098. set dummy pkg-config; ac_word=$2
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10100. $as_echo_n "checking for $ac_word... " >&6; }
  10101. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. case $PKG_CONFIG in
  10105. [\\/]* | ?:[\\/]*)
  10106. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10107. ;;
  10108. *)
  10109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10110. for as_dir in $PATH
  10111. do
  10112. IFS=$as_save_IFS
  10113. test -z "$as_dir" && as_dir=.
  10114. for ac_exec_ext in '' $ac_executable_extensions; do
  10115. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10116. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10118. break 2
  10119. fi
  10120. done
  10121. done
  10122. IFS=$as_save_IFS
  10123. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10124. ;;
  10125. esac
  10126. fi
  10127. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10128. if test -n "$PKG_CONFIG"; then
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10130. $as_echo "$PKG_CONFIG" >&6; }
  10131. else
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10133. $as_echo "no" >&6; }
  10134. fi
  10135. if test "$PKG_CONFIG" = "no" ; then
  10136. HAVE_GSETTINGS=no
  10137. else
  10138. PKG_CONFIG_MIN_VERSION=0.9.0
  10139. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
  10141. $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
  10142. if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10144. $as_echo "yes" >&6; }
  10145. succeeded=yes
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
  10147. $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
  10148. GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
  10150. $as_echo "$GSETTINGS_CFLAGS" >&6; }
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
  10152. $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
  10153. GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
  10155. $as_echo "$GSETTINGS_LIBS" >&6; }
  10156. else
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10158. $as_echo "no" >&6; }
  10159. GSETTINGS_CFLAGS=""
  10160. GSETTINGS_LIBS=""
  10161. ## If we have a custom action on failure, don't print errors, but
  10162. ## do set a variable so people can do so.
  10163. GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
  10164. fi
  10165. else
  10166. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10167. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10168. fi
  10169. fi
  10170. if test $succeeded = yes; then
  10171. HAVE_GSETTINGS=yes
  10172. else
  10173. HAVE_GSETTINGS=no
  10174. fi
  10175. if test "$HAVE_GSETTINGS" = "yes"; then
  10176. $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
  10177. SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
  10178. SETTINGS_LIBS="$GSETTINGS_LIBS"
  10179. fi
  10180. fi
  10181. HAVE_GCONF=no
  10182. if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
  10183. succeeded=no
  10184. # Extract the first word of "pkg-config", so it can be a program name with args.
  10185. set dummy pkg-config; ac_word=$2
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10187. $as_echo_n "checking for $ac_word... " >&6; }
  10188. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10189. $as_echo_n "(cached) " >&6
  10190. else
  10191. case $PKG_CONFIG in
  10192. [\\/]* | ?:[\\/]*)
  10193. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10194. ;;
  10195. *)
  10196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10197. for as_dir in $PATH
  10198. do
  10199. IFS=$as_save_IFS
  10200. test -z "$as_dir" && as_dir=.
  10201. for ac_exec_ext in '' $ac_executable_extensions; do
  10202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10203. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10205. break 2
  10206. fi
  10207. done
  10208. done
  10209. IFS=$as_save_IFS
  10210. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10211. ;;
  10212. esac
  10213. fi
  10214. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10215. if test -n "$PKG_CONFIG"; then
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10217. $as_echo "$PKG_CONFIG" >&6; }
  10218. else
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10220. $as_echo "no" >&6; }
  10221. fi
  10222. if test "$PKG_CONFIG" = "no" ; then
  10223. HAVE_GCONF=no
  10224. else
  10225. PKG_CONFIG_MIN_VERSION=0.9.0
  10226. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
  10228. $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
  10229. if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10231. $as_echo "yes" >&6; }
  10232. succeeded=yes
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
  10234. $as_echo_n "checking GCONF_CFLAGS... " >&6; }
  10235. GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
  10237. $as_echo "$GCONF_CFLAGS" >&6; }
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
  10239. $as_echo_n "checking GCONF_LIBS... " >&6; }
  10240. GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
  10242. $as_echo "$GCONF_LIBS" >&6; }
  10243. else
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10245. $as_echo "no" >&6; }
  10246. GCONF_CFLAGS=""
  10247. GCONF_LIBS=""
  10248. ## If we have a custom action on failure, don't print errors, but
  10249. ## do set a variable so people can do so.
  10250. GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
  10251. fi
  10252. else
  10253. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10254. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10255. fi
  10256. fi
  10257. if test $succeeded = yes; then
  10258. HAVE_GCONF=yes
  10259. else
  10260. HAVE_GCONF=no
  10261. fi
  10262. if test "$HAVE_GCONF" = yes; then
  10263. $as_echo "#define HAVE_GCONF 1" >>confdefs.h
  10264. SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
  10265. SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
  10266. fi
  10267. fi
  10268. if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
  10269. SAVE_CFLAGS="$CFLAGS"
  10270. SAVE_LIBS="$LIBS"
  10271. CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
  10272. LIBS="$SETTINGS_LIBS $LIBS"
  10273. for ac_func in g_type_init
  10274. do :
  10275. ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
  10276. if test "x$ac_cv_func_g_type_init" = xyes; then :
  10277. cat >>confdefs.h <<_ACEOF
  10278. #define HAVE_G_TYPE_INIT 1
  10279. _ACEOF
  10280. fi
  10281. done
  10282. CFLAGS="$SAVE_CFLAGS"
  10283. LIBS="$SAVE_LIBS"
  10284. fi
  10285. HAVE_LIBSELINUX=no
  10286. LIBSELINUX_LIBS=
  10287. if test "${with_selinux}" = "yes"; then
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
  10289. $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
  10290. if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
  10291. $as_echo_n "(cached) " >&6
  10292. else
  10293. ac_check_lib_save_LIBS=$LIBS
  10294. LIBS="-lselinux $LIBS"
  10295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10296. /* end confdefs.h. */
  10297. /* Override any GCC internal prototype to avoid an error.
  10298. Use char because int might match the return type of a GCC
  10299. builtin and then its argument prototype would still apply. */
  10300. #ifdef __cplusplus
  10301. extern "C"
  10302. #endif
  10303. char lgetfilecon ();
  10304. int
  10305. main ()
  10306. {
  10307. return lgetfilecon ();
  10308. ;
  10309. return 0;
  10310. }
  10311. _ACEOF
  10312. if ac_fn_c_try_link "$LINENO"; then :
  10313. ac_cv_lib_selinux_lgetfilecon=yes
  10314. else
  10315. ac_cv_lib_selinux_lgetfilecon=no
  10316. fi
  10317. rm -f core conftest.err conftest.$ac_objext \
  10318. conftest$ac_exeext conftest.$ac_ext
  10319. LIBS=$ac_check_lib_save_LIBS
  10320. fi
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
  10322. $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
  10323. if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
  10324. HAVE_LIBSELINUX=yes
  10325. else
  10326. HAVE_LIBSELINUX=no
  10327. fi
  10328. if test "$HAVE_LIBSELINUX" = yes; then
  10329. $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
  10330. LIBSELINUX_LIBS=-lselinux
  10331. fi
  10332. fi
  10333. HAVE_GNUTLS=no
  10334. HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
  10335. if test "${with_gnutls}" = "yes" ; then
  10336. succeeded=no
  10337. # Extract the first word of "pkg-config", so it can be a program name with args.
  10338. set dummy pkg-config; ac_word=$2
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10340. $as_echo_n "checking for $ac_word... " >&6; }
  10341. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. case $PKG_CONFIG in
  10345. [\\/]* | ?:[\\/]*)
  10346. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10347. ;;
  10348. *)
  10349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10350. for as_dir in $PATH
  10351. do
  10352. IFS=$as_save_IFS
  10353. test -z "$as_dir" && as_dir=.
  10354. for ac_exec_ext in '' $ac_executable_extensions; do
  10355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10356. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10358. break 2
  10359. fi
  10360. done
  10361. done
  10362. IFS=$as_save_IFS
  10363. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10364. ;;
  10365. esac
  10366. fi
  10367. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10368. if test -n "$PKG_CONFIG"; then
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10370. $as_echo "$PKG_CONFIG" >&6; }
  10371. else
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10373. $as_echo "no" >&6; }
  10374. fi
  10375. if test "$PKG_CONFIG" = "no" ; then
  10376. HAVE_GNUTLS=no
  10377. else
  10378. PKG_CONFIG_MIN_VERSION=0.9.0
  10379. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
  10381. $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
  10382. if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10384. $as_echo "yes" >&6; }
  10385. succeeded=yes
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
  10387. $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
  10388. LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
  10390. $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
  10392. $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
  10393. LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
  10395. $as_echo "$LIBGNUTLS_LIBS" >&6; }
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. LIBGNUTLS_CFLAGS=""
  10400. LIBGNUTLS_LIBS=""
  10401. ## If we have a custom action on failure, don't print errors, but
  10402. ## do set a variable so people can do so.
  10403. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
  10404. fi
  10405. else
  10406. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10407. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10408. fi
  10409. fi
  10410. if test $succeeded = yes; then
  10411. HAVE_GNUTLS=yes
  10412. else
  10413. HAVE_GNUTLS=no
  10414. fi
  10415. if test "${HAVE_GNUTLS}" = "yes"; then
  10416. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  10417. fi
  10418. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  10419. LIBS="$LIBGNUTLS_LIBS $LIBS"
  10420. for ac_func in gnutls_certificate_set_verify_function
  10421. do :
  10422. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
  10423. if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = xyes; then :
  10424. cat >>confdefs.h <<_ACEOF
  10425. #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
  10426. _ACEOF
  10427. HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
  10428. fi
  10429. done
  10430. if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
  10431. $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
  10432. fi
  10433. fi
  10434. HAVE_XAW3D=no
  10435. LUCID_LIBW=
  10436. if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
  10437. if test "$with_xaw3d" != no; then
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
  10439. $as_echo_n "checking for xaw3d... " >&6; }
  10440. if ${emacs_cv_xaw3d+:} false; then :
  10441. $as_echo_n "(cached) " >&6
  10442. else
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. #include <X11/Intrinsic.h>
  10446. #include <X11/Xaw3d/Simple.h>
  10447. int
  10448. main ()
  10449. {
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_c_try_link "$LINENO"; then :
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
  10456. $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
  10457. if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
  10458. $as_echo_n "(cached) " >&6
  10459. else
  10460. ac_check_lib_save_LIBS=$LIBS
  10461. LIBS="-lXaw3d $LIBS"
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. /* Override any GCC internal prototype to avoid an error.
  10465. Use char because int might match the return type of a GCC
  10466. builtin and then its argument prototype would still apply. */
  10467. #ifdef __cplusplus
  10468. extern "C"
  10469. #endif
  10470. char XawScrollbarSetThumb ();
  10471. int
  10472. main ()
  10473. {
  10474. return XawScrollbarSetThumb ();
  10475. ;
  10476. return 0;
  10477. }
  10478. _ACEOF
  10479. if ac_fn_c_try_link "$LINENO"; then :
  10480. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
  10481. else
  10482. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext \
  10485. conftest$ac_exeext conftest.$ac_ext
  10486. LIBS=$ac_check_lib_save_LIBS
  10487. fi
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
  10489. $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
  10490. if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
  10491. emacs_cv_xaw3d=yes
  10492. else
  10493. emacs_cv_xaw3d=no
  10494. fi
  10495. else
  10496. emacs_cv_xaw3d=no
  10497. fi
  10498. rm -f core conftest.err conftest.$ac_objext \
  10499. conftest$ac_exeext conftest.$ac_ext
  10500. fi
  10501. else
  10502. emacs_cv_xaw3d=no
  10503. fi
  10504. if test $emacs_cv_xaw3d = yes; then
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
  10506. $as_echo "yes; using Lucid toolkit" >&6; }
  10507. USE_X_TOOLKIT=LUCID
  10508. HAVE_XAW3D=yes
  10509. LUCID_LIBW=-lXaw3d
  10510. $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
  10511. else
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10513. $as_echo "no" >&6; }
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
  10515. $as_echo_n "checking for libXaw... " >&6; }
  10516. if ${emacs_cv_xaw+:} false; then :
  10517. $as_echo_n "(cached) " >&6
  10518. else
  10519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10520. /* end confdefs.h. */
  10521. #include <X11/Intrinsic.h>
  10522. #include <X11/Xaw/Simple.h>
  10523. int
  10524. main ()
  10525. {
  10526. ;
  10527. return 0;
  10528. }
  10529. _ACEOF
  10530. if ac_fn_c_try_link "$LINENO"; then :
  10531. emacs_cv_xaw=yes
  10532. else
  10533. emacs_cv_xaw=no
  10534. fi
  10535. rm -f core conftest.err conftest.$ac_objext \
  10536. conftest$ac_exeext conftest.$ac_ext
  10537. fi
  10538. if test $emacs_cv_xaw = yes; then
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
  10540. $as_echo "yes; using Lucid toolkit" >&6; }
  10541. USE_X_TOOLKIT=LUCID
  10542. LUCID_LIBW=-lXaw
  10543. elif test x"${USE_X_TOOLKIT}" = xLUCID; then
  10544. as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
  10545. else
  10546. as_fn_error $? "No X toolkit could be found.
  10547. If you are sure you want Emacs compiled without an X toolkit, pass
  10548. --with-x-toolkit=no
  10549. to configure. Otherwise, install the development libraries for the toolkit
  10550. that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
  10551. fi
  10552. fi
  10553. fi
  10554. X_TOOLKIT_TYPE=$USE_X_TOOLKIT
  10555. LIBXTR6=
  10556. if test "${USE_X_TOOLKIT}" != "none"; then
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
  10558. $as_echo_n "checking X11 toolkit version... " >&6; }
  10559. if ${emacs_cv_x11_toolkit_version_6+:} false; then :
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10563. /* end confdefs.h. */
  10564. #include <X11/Intrinsic.h>
  10565. int
  10566. main ()
  10567. {
  10568. #if XtSpecificationRelease < 6
  10569. fail;
  10570. #endif
  10571. ;
  10572. return 0;
  10573. }
  10574. _ACEOF
  10575. if ac_fn_c_try_link "$LINENO"; then :
  10576. emacs_cv_x11_toolkit_version_6=yes
  10577. else
  10578. emacs_cv_x11_toolkit_version_6=no
  10579. fi
  10580. rm -f core conftest.err conftest.$ac_objext \
  10581. conftest$ac_exeext conftest.$ac_ext
  10582. fi
  10583. HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
  10584. if test $emacs_cv_x11_toolkit_version_6 = yes; then
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
  10586. $as_echo "6 or newer" >&6; }
  10587. $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
  10588. LIBXTR6="-lSM -lICE"
  10589. case "$opsys" in
  10590. ## Use libw.a along with X11R6 Xt.
  10591. unixware) LIBXTR6="$LIBXTR6 -lw" ;;
  10592. esac
  10593. else
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
  10595. $as_echo "before 6" >&6; }
  10596. fi
  10597. OLDLIBS="$LIBS"
  10598. if test x$HAVE_X11XTR6 = xyes; then
  10599. LIBS="-lXt -lSM -lICE $LIBS"
  10600. else
  10601. LIBS="-lXt $LIBS"
  10602. fi
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
  10604. $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
  10605. if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. ac_check_lib_save_LIBS=$LIBS
  10609. LIBS="-lXmu $LIBS"
  10610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10611. /* end confdefs.h. */
  10612. /* Override any GCC internal prototype to avoid an error.
  10613. Use char because int might match the return type of a GCC
  10614. builtin and then its argument prototype would still apply. */
  10615. #ifdef __cplusplus
  10616. extern "C"
  10617. #endif
  10618. char XmuConvertStandardSelection ();
  10619. int
  10620. main ()
  10621. {
  10622. return XmuConvertStandardSelection ();
  10623. ;
  10624. return 0;
  10625. }
  10626. _ACEOF
  10627. if ac_fn_c_try_link "$LINENO"; then :
  10628. ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
  10629. else
  10630. ac_cv_lib_Xmu_XmuConvertStandardSelection=no
  10631. fi
  10632. rm -f core conftest.err conftest.$ac_objext \
  10633. conftest$ac_exeext conftest.$ac_ext
  10634. LIBS=$ac_check_lib_save_LIBS
  10635. fi
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
  10637. $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
  10638. if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
  10639. cat >>confdefs.h <<_ACEOF
  10640. #define HAVE_LIBXMU 1
  10641. _ACEOF
  10642. LIBS="-lXmu $LIBS"
  10643. fi
  10644. test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
  10645. fi
  10646. LIBXMU=-lXmu
  10647. case $opsys in
  10648. ## These systems don't supply Xmu.
  10649. hpux* | aix4-2 )
  10650. test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
  10651. ;;
  10652. esac
  10653. # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
  10654. if test "${HAVE_X11}" = "yes"; then
  10655. if test "${USE_X_TOOLKIT}" != "none"; then
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
  10657. $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
  10658. if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
  10659. $as_echo_n "(cached) " >&6
  10660. else
  10661. ac_check_lib_save_LIBS=$LIBS
  10662. LIBS="-lXext $LIBS"
  10663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10664. /* end confdefs.h. */
  10665. /* Override any GCC internal prototype to avoid an error.
  10666. Use char because int might match the return type of a GCC
  10667. builtin and then its argument prototype would still apply. */
  10668. #ifdef __cplusplus
  10669. extern "C"
  10670. #endif
  10671. char XShapeQueryExtension ();
  10672. int
  10673. main ()
  10674. {
  10675. return XShapeQueryExtension ();
  10676. ;
  10677. return 0;
  10678. }
  10679. _ACEOF
  10680. if ac_fn_c_try_link "$LINENO"; then :
  10681. ac_cv_lib_Xext_XShapeQueryExtension=yes
  10682. else
  10683. ac_cv_lib_Xext_XShapeQueryExtension=no
  10684. fi
  10685. rm -f core conftest.err conftest.$ac_objext \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. LIBS=$ac_check_lib_save_LIBS
  10688. fi
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
  10690. $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
  10691. if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
  10692. cat >>confdefs.h <<_ACEOF
  10693. #define HAVE_LIBXEXT 1
  10694. _ACEOF
  10695. LIBS="-lXext $LIBS"
  10696. fi
  10697. fi
  10698. fi
  10699. LIBXP=
  10700. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
  10702. $as_echo_n "checking for Motif version 2.1... " >&6; }
  10703. if ${emacs_cv_motif_version_2_1+:} false; then :
  10704. $as_echo_n "(cached) " >&6
  10705. else
  10706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10707. /* end confdefs.h. */
  10708. #include <Xm/Xm.h>
  10709. int
  10710. main ()
  10711. {
  10712. #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
  10713. int x = 5;
  10714. #else
  10715. Motif version prior to 2.1.
  10716. #endif
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_compile "$LINENO"; then :
  10722. emacs_cv_motif_version_2_1=yes
  10723. else
  10724. emacs_cv_motif_version_2_1=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10727. fi
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
  10729. $as_echo "$emacs_cv_motif_version_2_1" >&6; }
  10730. if test $emacs_cv_motif_version_2_1 = yes; then
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
  10732. $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
  10733. if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
  10734. $as_echo_n "(cached) " >&6
  10735. else
  10736. ac_check_lib_save_LIBS=$LIBS
  10737. LIBS="-lXp $LIBS"
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. /* Override any GCC internal prototype to avoid an error.
  10741. Use char because int might match the return type of a GCC
  10742. builtin and then its argument prototype would still apply. */
  10743. #ifdef __cplusplus
  10744. extern "C"
  10745. #endif
  10746. char XpCreateContext ();
  10747. int
  10748. main ()
  10749. {
  10750. return XpCreateContext ();
  10751. ;
  10752. return 0;
  10753. }
  10754. _ACEOF
  10755. if ac_fn_c_try_link "$LINENO"; then :
  10756. ac_cv_lib_Xp_XpCreateContext=yes
  10757. else
  10758. ac_cv_lib_Xp_XpCreateContext=no
  10759. fi
  10760. rm -f core conftest.err conftest.$ac_objext \
  10761. conftest$ac_exeext conftest.$ac_ext
  10762. LIBS=$ac_check_lib_save_LIBS
  10763. fi
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
  10765. $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
  10766. if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
  10767. LIBXP=-lXp
  10768. fi
  10769. else
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
  10771. $as_echo_n "checking for LessTif where some systems put it... " >&6; }
  10772. if ${emacs_cv_lesstif+:} false; then :
  10773. $as_echo_n "(cached) " >&6
  10774. else
  10775. # We put this in CFLAGS temporarily to precede other -I options
  10776. # that might be in CFLAGS temporarily.
  10777. # We put this in CPPFLAGS where it precedes the other -I options.
  10778. OLD_CPPFLAGS=$CPPFLAGS
  10779. OLD_CFLAGS=$CFLAGS
  10780. CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
  10781. CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
  10782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10783. /* end confdefs.h. */
  10784. #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
  10785. int
  10786. main ()
  10787. {
  10788. int x = 5;
  10789. ;
  10790. return 0;
  10791. }
  10792. _ACEOF
  10793. if ac_fn_c_try_compile "$LINENO"; then :
  10794. emacs_cv_lesstif=yes
  10795. else
  10796. emacs_cv_lesstif=no
  10797. fi
  10798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10799. fi
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
  10801. $as_echo "$emacs_cv_lesstif" >&6; }
  10802. if test $emacs_cv_lesstif = yes; then
  10803. # Make sure this -I option remains in CPPFLAGS after it is set
  10804. # back to REAL_CPPFLAGS.
  10805. # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
  10806. # have those other -I options anyway. Ultimately, having this
  10807. # directory ultimately in CPPFLAGS will be enough.
  10808. REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
  10809. LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
  10810. else
  10811. CFLAGS=$OLD_CFLAGS
  10812. CPPFLAGS=$OLD_CPPFLAGS
  10813. fi
  10814. fi
  10815. ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
  10816. if test "x$ac_cv_header_Xm_BulletinB_h" = xyes; then :
  10817. else
  10818. as_fn_error $? "Motif toolkit requested but requirements not found." "$LINENO" 5
  10819. fi
  10820. fi
  10821. USE_TOOLKIT_SCROLL_BARS=no
  10822. if test "${with_toolkit_scroll_bars}" != "no"; then
  10823. if test "${USE_X_TOOLKIT}" != "none"; then
  10824. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  10825. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10826. HAVE_XAW3D=no
  10827. USE_TOOLKIT_SCROLL_BARS=yes
  10828. elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
  10829. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10830. USE_TOOLKIT_SCROLL_BARS=yes
  10831. fi
  10832. elif test "${HAVE_GTK}" = "yes"; then
  10833. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10834. USE_TOOLKIT_SCROLL_BARS=yes
  10835. elif test "${HAVE_NS}" = "yes"; then
  10836. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10837. USE_TOOLKIT_SCROLL_BARS=yes
  10838. fi
  10839. fi
  10840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10841. /* end confdefs.h. */
  10842. #include <X11/Xlib.h>
  10843. #include <X11/Xresource.h>
  10844. int
  10845. main ()
  10846. {
  10847. XIMProc callback;
  10848. ;
  10849. return 0;
  10850. }
  10851. _ACEOF
  10852. if ac_fn_c_try_compile "$LINENO"; then :
  10853. HAVE_XIM=yes
  10854. $as_echo "#define HAVE_XIM 1" >>confdefs.h
  10855. else
  10856. HAVE_XIM=no
  10857. fi
  10858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10859. if test "${with_xim}" != "no"; then
  10860. $as_echo "#define USE_XIM 1" >>confdefs.h
  10861. fi
  10862. if test "${HAVE_XIM}" != "no"; then
  10863. late_CFLAGS=$CFLAGS
  10864. if test "$GCC" = yes; then
  10865. CFLAGS="$CFLAGS --pedantic-errors"
  10866. fi
  10867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10868. /* end confdefs.h. */
  10869. #include <X11/Xlib.h>
  10870. #include <X11/Xresource.h>
  10871. int
  10872. main ()
  10873. {
  10874. Display *display;
  10875. XrmDatabase db;
  10876. char *res_name;
  10877. char *res_class;
  10878. XIMProc callback;
  10879. XPointer *client_data;
  10880. #ifndef __GNUC__
  10881. /* If we're not using GCC, it's probably not XFree86, and this is
  10882. probably right, but we can't use something like --pedantic-errors. */
  10883. extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
  10884. char*, XIMProc, XPointer*);
  10885. #endif
  10886. (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
  10887. client_data);
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_c_try_compile "$LINENO"; then :
  10893. emacs_cv_arg6_star=yes
  10894. fi
  10895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10896. if test "$emacs_cv_arg6_star" = yes; then
  10897. $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
  10898. else
  10899. $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
  10900. fi
  10901. CFLAGS=$late_CFLAGS
  10902. fi
  10903. ### Start of font-backend (under any platform) section.
  10904. # (nothing here yet -- this is a placeholder)
  10905. ### End of font-backend (under any platform) section.
  10906. ### Start of font-backend (under X11) section.
  10907. if test "${HAVE_X11}" = "yes"; then
  10908. succeeded=no
  10909. # Extract the first word of "pkg-config", so it can be a program name with args.
  10910. set dummy pkg-config; ac_word=$2
  10911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10912. $as_echo_n "checking for $ac_word... " >&6; }
  10913. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10914. $as_echo_n "(cached) " >&6
  10915. else
  10916. case $PKG_CONFIG in
  10917. [\\/]* | ?:[\\/]*)
  10918. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10919. ;;
  10920. *)
  10921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10922. for as_dir in $PATH
  10923. do
  10924. IFS=$as_save_IFS
  10925. test -z "$as_dir" && as_dir=.
  10926. for ac_exec_ext in '' $ac_executable_extensions; do
  10927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10928. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10930. break 2
  10931. fi
  10932. done
  10933. done
  10934. IFS=$as_save_IFS
  10935. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10936. ;;
  10937. esac
  10938. fi
  10939. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10940. if test -n "$PKG_CONFIG"; then
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10942. $as_echo "$PKG_CONFIG" >&6; }
  10943. else
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10945. $as_echo "no" >&6; }
  10946. fi
  10947. if test "$PKG_CONFIG" = "no" ; then
  10948. HAVE_FC=no
  10949. else
  10950. PKG_CONFIG_MIN_VERSION=0.9.0
  10951. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
  10953. $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
  10954. if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10956. $as_echo "yes" >&6; }
  10957. succeeded=yes
  10958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
  10959. $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
  10960. FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
  10962. $as_echo "$FONTCONFIG_CFLAGS" >&6; }
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
  10964. $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
  10965. FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
  10967. $as_echo "$FONTCONFIG_LIBS" >&6; }
  10968. else
  10969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10970. $as_echo "no" >&6; }
  10971. FONTCONFIG_CFLAGS=""
  10972. FONTCONFIG_LIBS=""
  10973. ## If we have a custom action on failure, don't print errors, but
  10974. ## do set a variable so people can do so.
  10975. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
  10976. fi
  10977. else
  10978. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10979. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10980. fi
  10981. fi
  10982. if test $succeeded = yes; then
  10983. HAVE_FC=yes
  10984. else
  10985. HAVE_FC=no
  10986. fi
  10987. ## Use -lXft if available, unless `--with-xft=no'.
  10988. HAVE_XFT=maybe
  10989. if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
  10990. with_xft="no";
  10991. fi
  10992. if test "x${with_xft}" != "xno"; then
  10993. succeeded=no
  10994. # Extract the first word of "pkg-config", so it can be a program name with args.
  10995. set dummy pkg-config; ac_word=$2
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10997. $as_echo_n "checking for $ac_word... " >&6; }
  10998. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10999. $as_echo_n "(cached) " >&6
  11000. else
  11001. case $PKG_CONFIG in
  11002. [\\/]* | ?:[\\/]*)
  11003. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11004. ;;
  11005. *)
  11006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11007. for as_dir in $PATH
  11008. do
  11009. IFS=$as_save_IFS
  11010. test -z "$as_dir" && as_dir=.
  11011. for ac_exec_ext in '' $ac_executable_extensions; do
  11012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11013. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11015. break 2
  11016. fi
  11017. done
  11018. done
  11019. IFS=$as_save_IFS
  11020. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11021. ;;
  11022. esac
  11023. fi
  11024. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11025. if test -n "$PKG_CONFIG"; then
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11027. $as_echo "$PKG_CONFIG" >&6; }
  11028. else
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11030. $as_echo "no" >&6; }
  11031. fi
  11032. if test "$PKG_CONFIG" = "no" ; then
  11033. HAVE_XFT=no
  11034. else
  11035. PKG_CONFIG_MIN_VERSION=0.9.0
  11036. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
  11038. $as_echo_n "checking for xft >= 0.13.0... " >&6; }
  11039. if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11041. $as_echo "yes" >&6; }
  11042. succeeded=yes
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
  11044. $as_echo_n "checking XFT_CFLAGS... " >&6; }
  11045. XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
  11046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
  11047. $as_echo "$XFT_CFLAGS" >&6; }
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
  11049. $as_echo_n "checking XFT_LIBS... " >&6; }
  11050. XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
  11052. $as_echo "$XFT_LIBS" >&6; }
  11053. else
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11055. $as_echo "no" >&6; }
  11056. XFT_CFLAGS=""
  11057. XFT_LIBS=""
  11058. ## If we have a custom action on failure, don't print errors, but
  11059. ## do set a variable so people can do so.
  11060. XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
  11061. fi
  11062. else
  11063. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11064. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11065. fi
  11066. fi
  11067. if test $succeeded = yes; then
  11068. :
  11069. else
  11070. HAVE_XFT=no
  11071. fi
  11072. ## Because xftfont.c uses XRenderQueryExtension, we also
  11073. ## need to link to -lXrender.
  11074. HAVE_XRENDER=no
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
  11076. $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
  11077. if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. ac_check_lib_save_LIBS=$LIBS
  11081. LIBS="-lXrender $LIBS"
  11082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11083. /* end confdefs.h. */
  11084. /* Override any GCC internal prototype to avoid an error.
  11085. Use char because int might match the return type of a GCC
  11086. builtin and then its argument prototype would still apply. */
  11087. #ifdef __cplusplus
  11088. extern "C"
  11089. #endif
  11090. char XRenderQueryExtension ();
  11091. int
  11092. main ()
  11093. {
  11094. return XRenderQueryExtension ();
  11095. ;
  11096. return 0;
  11097. }
  11098. _ACEOF
  11099. if ac_fn_c_try_link "$LINENO"; then :
  11100. ac_cv_lib_Xrender_XRenderQueryExtension=yes
  11101. else
  11102. ac_cv_lib_Xrender_XRenderQueryExtension=no
  11103. fi
  11104. rm -f core conftest.err conftest.$ac_objext \
  11105. conftest$ac_exeext conftest.$ac_ext
  11106. LIBS=$ac_check_lib_save_LIBS
  11107. fi
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
  11109. $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
  11110. if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
  11111. HAVE_XRENDER=yes
  11112. fi
  11113. if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
  11114. OLD_CPPFLAGS="$CPPFLAGS"
  11115. OLD_CFLAGS="$CFLAGS"
  11116. OLD_LIBS="$LIBS"
  11117. CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
  11118. CFLAGS="$CFLAGS $XFT_CFLAGS"
  11119. XFT_LIBS="-lXrender $XFT_LIBS"
  11120. LIBS="$XFT_LIBS $LIBS"
  11121. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
  11122. if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
  11124. $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
  11125. if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
  11126. $as_echo_n "(cached) " >&6
  11127. else
  11128. ac_check_lib_save_LIBS=$LIBS
  11129. LIBS="-lXft $XFT_LIBS $LIBS"
  11130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11131. /* end confdefs.h. */
  11132. /* Override any GCC internal prototype to avoid an error.
  11133. Use char because int might match the return type of a GCC
  11134. builtin and then its argument prototype would still apply. */
  11135. #ifdef __cplusplus
  11136. extern "C"
  11137. #endif
  11138. char XftFontOpen ();
  11139. int
  11140. main ()
  11141. {
  11142. return XftFontOpen ();
  11143. ;
  11144. return 0;
  11145. }
  11146. _ACEOF
  11147. if ac_fn_c_try_link "$LINENO"; then :
  11148. ac_cv_lib_Xft_XftFontOpen=yes
  11149. else
  11150. ac_cv_lib_Xft_XftFontOpen=no
  11151. fi
  11152. rm -f core conftest.err conftest.$ac_objext \
  11153. conftest$ac_exeext conftest.$ac_ext
  11154. LIBS=$ac_check_lib_save_LIBS
  11155. fi
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
  11157. $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
  11158. if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
  11159. HAVE_XFT=yes
  11160. fi
  11161. fi
  11162. if test "${HAVE_XFT}" = "yes"; then
  11163. $as_echo "#define HAVE_XFT 1" >>confdefs.h
  11164. C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
  11165. else
  11166. CPPFLAGS="$OLD_CPPFLAGS"
  11167. CFLAGS="$OLD_CFLAGS"
  11168. LIBS="$OLD_LIBS"
  11169. fi # "${HAVE_XFT}" = "yes"
  11170. fi # "$HAVE_XFT" != no
  11171. fi # "x${with_xft}" != "xno"
  11172. ## We used to allow building with FreeType and without Xft.
  11173. ## However, the ftx font backend driver is not in good shape.
  11174. if test "$HAVE_XFT" != "yes"; then
  11175. HAVE_XFT=no
  11176. HAVE_FREETYPE=no
  11177. else
  11178. succeeded=no
  11179. # Extract the first word of "pkg-config", so it can be a program name with args.
  11180. set dummy pkg-config; ac_word=$2
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11182. $as_echo_n "checking for $ac_word... " >&6; }
  11183. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11184. $as_echo_n "(cached) " >&6
  11185. else
  11186. case $PKG_CONFIG in
  11187. [\\/]* | ?:[\\/]*)
  11188. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11189. ;;
  11190. *)
  11191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11192. for as_dir in $PATH
  11193. do
  11194. IFS=$as_save_IFS
  11195. test -z "$as_dir" && as_dir=.
  11196. for ac_exec_ext in '' $ac_executable_extensions; do
  11197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11198. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11200. break 2
  11201. fi
  11202. done
  11203. done
  11204. IFS=$as_save_IFS
  11205. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11206. ;;
  11207. esac
  11208. fi
  11209. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11210. if test -n "$PKG_CONFIG"; then
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11212. $as_echo "$PKG_CONFIG" >&6; }
  11213. else
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. $as_echo "no" >&6; }
  11216. fi
  11217. if test "$PKG_CONFIG" = "no" ; then
  11218. HAVE_FREETYPE=no
  11219. else
  11220. PKG_CONFIG_MIN_VERSION=0.9.0
  11221. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
  11223. $as_echo_n "checking for freetype2... " >&6; }
  11224. if $PKG_CONFIG --exists "freetype2" 2>&5; then
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11226. $as_echo "yes" >&6; }
  11227. succeeded=yes
  11228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
  11229. $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
  11230. FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
  11232. $as_echo "$FREETYPE_CFLAGS" >&6; }
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
  11234. $as_echo_n "checking FREETYPE_LIBS... " >&6; }
  11235. FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
  11237. $as_echo "$FREETYPE_LIBS" >&6; }
  11238. else
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11240. $as_echo "no" >&6; }
  11241. FREETYPE_CFLAGS=""
  11242. FREETYPE_LIBS=""
  11243. ## If we have a custom action on failure, don't print errors, but
  11244. ## do set a variable so people can do so.
  11245. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  11246. fi
  11247. else
  11248. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11249. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11250. fi
  11251. fi
  11252. if test $succeeded = yes; then
  11253. HAVE_FREETYPE=yes
  11254. else
  11255. HAVE_FREETYPE=no
  11256. fi
  11257. test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
  11258. fi
  11259. HAVE_LIBOTF=no
  11260. if test "${HAVE_FREETYPE}" = "yes"; then
  11261. $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
  11262. if test "${with_libotf}" != "no"; then
  11263. succeeded=no
  11264. # Extract the first word of "pkg-config", so it can be a program name with args.
  11265. set dummy pkg-config; ac_word=$2
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11267. $as_echo_n "checking for $ac_word... " >&6; }
  11268. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11269. $as_echo_n "(cached) " >&6
  11270. else
  11271. case $PKG_CONFIG in
  11272. [\\/]* | ?:[\\/]*)
  11273. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11274. ;;
  11275. *)
  11276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11277. for as_dir in $PATH
  11278. do
  11279. IFS=$as_save_IFS
  11280. test -z "$as_dir" && as_dir=.
  11281. for ac_exec_ext in '' $ac_executable_extensions; do
  11282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11283. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11285. break 2
  11286. fi
  11287. done
  11288. done
  11289. IFS=$as_save_IFS
  11290. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11291. ;;
  11292. esac
  11293. fi
  11294. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11295. if test -n "$PKG_CONFIG"; then
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11297. $as_echo "$PKG_CONFIG" >&6; }
  11298. else
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11300. $as_echo "no" >&6; }
  11301. fi
  11302. if test "$PKG_CONFIG" = "no" ; then
  11303. HAVE_LIBOTF=no
  11304. else
  11305. PKG_CONFIG_MIN_VERSION=0.9.0
  11306. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
  11308. $as_echo_n "checking for libotf... " >&6; }
  11309. if $PKG_CONFIG --exists "libotf" 2>&5; then
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11311. $as_echo "yes" >&6; }
  11312. succeeded=yes
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
  11314. $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
  11315. LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
  11317. $as_echo "$LIBOTF_CFLAGS" >&6; }
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
  11319. $as_echo_n "checking LIBOTF_LIBS... " >&6; }
  11320. LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
  11322. $as_echo "$LIBOTF_LIBS" >&6; }
  11323. else
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11325. $as_echo "no" >&6; }
  11326. LIBOTF_CFLAGS=""
  11327. LIBOTF_LIBS=""
  11328. ## If we have a custom action on failure, don't print errors, but
  11329. ## do set a variable so people can do so.
  11330. LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
  11331. fi
  11332. else
  11333. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11334. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11335. fi
  11336. fi
  11337. if test $succeeded = yes; then
  11338. HAVE_LIBOTF=yes
  11339. else
  11340. HAVE_LIBOTF=no
  11341. fi
  11342. if test "$HAVE_LIBOTF" = "yes"; then
  11343. $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
  11344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
  11345. $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
  11346. if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
  11347. $as_echo_n "(cached) " >&6
  11348. else
  11349. ac_check_lib_save_LIBS=$LIBS
  11350. LIBS="-lotf $LIBS"
  11351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11352. /* end confdefs.h. */
  11353. /* Override any GCC internal prototype to avoid an error.
  11354. Use char because int might match the return type of a GCC
  11355. builtin and then its argument prototype would still apply. */
  11356. #ifdef __cplusplus
  11357. extern "C"
  11358. #endif
  11359. char OTF_get_variation_glyphs ();
  11360. int
  11361. main ()
  11362. {
  11363. return OTF_get_variation_glyphs ();
  11364. ;
  11365. return 0;
  11366. }
  11367. _ACEOF
  11368. if ac_fn_c_try_link "$LINENO"; then :
  11369. ac_cv_lib_otf_OTF_get_variation_glyphs=yes
  11370. else
  11371. ac_cv_lib_otf_OTF_get_variation_glyphs=no
  11372. fi
  11373. rm -f core conftest.err conftest.$ac_objext \
  11374. conftest$ac_exeext conftest.$ac_ext
  11375. LIBS=$ac_check_lib_save_LIBS
  11376. fi
  11377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
  11378. $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
  11379. if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
  11380. HAVE_OTF_GET_VARIATION_GLYPHS=yes
  11381. else
  11382. HAVE_OTF_GET_VARIATION_GLYPHS=no
  11383. fi
  11384. if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
  11385. $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
  11386. fi
  11387. fi
  11388. fi
  11389. fi
  11390. HAVE_M17N_FLT=no
  11391. if test "${HAVE_LIBOTF}" = yes; then
  11392. if test "${with_m17n_flt}" != "no"; then
  11393. succeeded=no
  11394. # Extract the first word of "pkg-config", so it can be a program name with args.
  11395. set dummy pkg-config; ac_word=$2
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11397. $as_echo_n "checking for $ac_word... " >&6; }
  11398. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. case $PKG_CONFIG in
  11402. [\\/]* | ?:[\\/]*)
  11403. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11404. ;;
  11405. *)
  11406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11407. for as_dir in $PATH
  11408. do
  11409. IFS=$as_save_IFS
  11410. test -z "$as_dir" && as_dir=.
  11411. for ac_exec_ext in '' $ac_executable_extensions; do
  11412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11413. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11415. break 2
  11416. fi
  11417. done
  11418. done
  11419. IFS=$as_save_IFS
  11420. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11421. ;;
  11422. esac
  11423. fi
  11424. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11425. if test -n "$PKG_CONFIG"; then
  11426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11427. $as_echo "$PKG_CONFIG" >&6; }
  11428. else
  11429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11430. $as_echo "no" >&6; }
  11431. fi
  11432. if test "$PKG_CONFIG" = "no" ; then
  11433. HAVE_M17N_FLT=no
  11434. else
  11435. PKG_CONFIG_MIN_VERSION=0.9.0
  11436. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
  11438. $as_echo_n "checking for m17n-flt... " >&6; }
  11439. if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11441. $as_echo "yes" >&6; }
  11442. succeeded=yes
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
  11444. $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
  11445. M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
  11447. $as_echo "$M17N_FLT_CFLAGS" >&6; }
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
  11449. $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
  11450. M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
  11452. $as_echo "$M17N_FLT_LIBS" >&6; }
  11453. else
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. $as_echo "no" >&6; }
  11456. M17N_FLT_CFLAGS=""
  11457. M17N_FLT_LIBS=""
  11458. ## If we have a custom action on failure, don't print errors, but
  11459. ## do set a variable so people can do so.
  11460. M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
  11461. fi
  11462. else
  11463. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11464. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11465. fi
  11466. fi
  11467. if test $succeeded = yes; then
  11468. HAVE_M17N_FLT=yes
  11469. else
  11470. HAVE_M17N_FLT=no
  11471. fi
  11472. if test "$HAVE_M17N_FLT" = "yes"; then
  11473. $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
  11474. fi
  11475. fi
  11476. fi
  11477. else
  11478. HAVE_XFT=no
  11479. HAVE_FREETYPE=no
  11480. HAVE_LIBOTF=no
  11481. HAVE_M17N_FLT=no
  11482. fi
  11483. ### End of font-backend (under X11) section.
  11484. ### Use -lXpm if available, unless `--with-xpm=no'.
  11485. HAVE_XPM=no
  11486. LIBXPM=
  11487. if test "${HAVE_X11}" = "yes"; then
  11488. if test "${with_xpm}" != "no"; then
  11489. ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
  11490. if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
  11492. $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
  11493. if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
  11494. $as_echo_n "(cached) " >&6
  11495. else
  11496. ac_check_lib_save_LIBS=$LIBS
  11497. LIBS="-lXpm -lX11 $LIBS"
  11498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11499. /* end confdefs.h. */
  11500. /* Override any GCC internal prototype to avoid an error.
  11501. Use char because int might match the return type of a GCC
  11502. builtin and then its argument prototype would still apply. */
  11503. #ifdef __cplusplus
  11504. extern "C"
  11505. #endif
  11506. char XpmReadFileToPixmap ();
  11507. int
  11508. main ()
  11509. {
  11510. return XpmReadFileToPixmap ();
  11511. ;
  11512. return 0;
  11513. }
  11514. _ACEOF
  11515. if ac_fn_c_try_link "$LINENO"; then :
  11516. ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
  11517. else
  11518. ac_cv_lib_Xpm_XpmReadFileToPixmap=no
  11519. fi
  11520. rm -f core conftest.err conftest.$ac_objext \
  11521. conftest$ac_exeext conftest.$ac_ext
  11522. LIBS=$ac_check_lib_save_LIBS
  11523. fi
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
  11525. $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
  11526. if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
  11527. HAVE_XPM=yes
  11528. fi
  11529. fi
  11530. if test "${HAVE_XPM}" = "yes"; then
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
  11532. $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
  11533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11534. /* end confdefs.h. */
  11535. #include "X11/xpm.h"
  11536. #ifndef XpmReturnAllocPixels
  11537. no_return_alloc_pixels
  11538. #endif
  11539. _ACEOF
  11540. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11541. $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
  11542. HAVE_XPM=no
  11543. else
  11544. HAVE_XPM=yes
  11545. fi
  11546. rm -f conftest*
  11547. if test "${HAVE_XPM}" = "yes"; then
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11549. $as_echo "yes" >&6; }
  11550. else
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11552. $as_echo "no" >&6; }
  11553. fi
  11554. fi
  11555. fi
  11556. if test "${HAVE_XPM}" = "yes"; then
  11557. $as_echo "#define HAVE_XPM 1" >>confdefs.h
  11558. LIBXPM=-lXpm
  11559. fi
  11560. fi
  11561. ### Use -ljpeg if available, unless `--with-jpeg=no'.
  11562. HAVE_JPEG=no
  11563. LIBJPEG=
  11564. if test "${HAVE_X11}" = "yes"; then
  11565. if test "${with_jpeg}" != "no"; then
  11566. ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
  11567. if test "x$ac_cv_header_jerror_h" = xyes; then :
  11568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
  11569. $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
  11570. if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
  11571. $as_echo_n "(cached) " >&6
  11572. else
  11573. ac_check_lib_save_LIBS=$LIBS
  11574. LIBS="-ljpeg $LIBS"
  11575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11576. /* end confdefs.h. */
  11577. /* Override any GCC internal prototype to avoid an error.
  11578. Use char because int might match the return type of a GCC
  11579. builtin and then its argument prototype would still apply. */
  11580. #ifdef __cplusplus
  11581. extern "C"
  11582. #endif
  11583. char jpeg_destroy_compress ();
  11584. int
  11585. main ()
  11586. {
  11587. return jpeg_destroy_compress ();
  11588. ;
  11589. return 0;
  11590. }
  11591. _ACEOF
  11592. if ac_fn_c_try_link "$LINENO"; then :
  11593. ac_cv_lib_jpeg_jpeg_destroy_compress=yes
  11594. else
  11595. ac_cv_lib_jpeg_jpeg_destroy_compress=no
  11596. fi
  11597. rm -f core conftest.err conftest.$ac_objext \
  11598. conftest$ac_exeext conftest.$ac_ext
  11599. LIBS=$ac_check_lib_save_LIBS
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
  11602. $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
  11603. if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
  11604. HAVE_JPEG=yes
  11605. fi
  11606. fi
  11607. fi
  11608. if test "${HAVE_JPEG}" = "yes"; then
  11609. $as_echo "#define HAVE_JPEG 1" >>confdefs.h
  11610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11611. /* end confdefs.h. */
  11612. #include <jpeglib.h>
  11613. version=JPEG_LIB_VERSION
  11614. _ACEOF
  11615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11616. $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
  11617. $as_echo "#define HAVE_JPEG 1" >>confdefs.h
  11618. else
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
  11620. $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
  11621. HAVE_JPEG=no
  11622. fi
  11623. rm -f conftest*
  11624. fi
  11625. if test "${HAVE_JPEG}" = "yes"; then
  11626. LIBJPEG=-ljpeg
  11627. fi
  11628. fi
  11629. ### Use -lpng if available, unless `--with-png=no'.
  11630. HAVE_PNG=no
  11631. LIBPNG=
  11632. if test "${HAVE_X11}" = "yes"; then
  11633. if test "${with_png}" != "no"; then
  11634. # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
  11635. # in /usr/include/libpng.
  11636. for ac_header in png.h libpng/png.h
  11637. do :
  11638. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11639. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11640. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11641. cat >>confdefs.h <<_ACEOF
  11642. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11643. _ACEOF
  11644. fi
  11645. done
  11646. if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
  11648. $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
  11649. if ${ac_cv_lib_png_png_get_channels+:} false; then :
  11650. $as_echo_n "(cached) " >&6
  11651. else
  11652. ac_check_lib_save_LIBS=$LIBS
  11653. LIBS="-lpng -lz -lm $LIBS"
  11654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11655. /* end confdefs.h. */
  11656. /* Override any GCC internal prototype to avoid an error.
  11657. Use char because int might match the return type of a GCC
  11658. builtin and then its argument prototype would still apply. */
  11659. #ifdef __cplusplus
  11660. extern "C"
  11661. #endif
  11662. char png_get_channels ();
  11663. int
  11664. main ()
  11665. {
  11666. return png_get_channels ();
  11667. ;
  11668. return 0;
  11669. }
  11670. _ACEOF
  11671. if ac_fn_c_try_link "$LINENO"; then :
  11672. ac_cv_lib_png_png_get_channels=yes
  11673. else
  11674. ac_cv_lib_png_png_get_channels=no
  11675. fi
  11676. rm -f core conftest.err conftest.$ac_objext \
  11677. conftest$ac_exeext conftest.$ac_ext
  11678. LIBS=$ac_check_lib_save_LIBS
  11679. fi
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
  11681. $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
  11682. if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
  11683. HAVE_PNG=yes
  11684. fi
  11685. fi
  11686. fi
  11687. if test "${HAVE_PNG}" = "yes"; then
  11688. $as_echo "#define HAVE_PNG 1" >>confdefs.h
  11689. LIBPNG="-lpng -lz -lm"
  11690. fi
  11691. fi
  11692. ### Use -ltiff if available, unless `--with-tiff=no'.
  11693. HAVE_TIFF=no
  11694. LIBTIFF=
  11695. if test "${HAVE_X11}" = "yes"; then
  11696. if test "${with_tiff}" != "no"; then
  11697. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  11698. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  11699. tifflibs="-lz -lm"
  11700. # At least one tiff package requires the jpeg library.
  11701. if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
  11703. $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
  11704. if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
  11705. $as_echo_n "(cached) " >&6
  11706. else
  11707. ac_check_lib_save_LIBS=$LIBS
  11708. LIBS="-ltiff $tifflibs $LIBS"
  11709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11710. /* end confdefs.h. */
  11711. /* Override any GCC internal prototype to avoid an error.
  11712. Use char because int might match the return type of a GCC
  11713. builtin and then its argument prototype would still apply. */
  11714. #ifdef __cplusplus
  11715. extern "C"
  11716. #endif
  11717. char TIFFGetVersion ();
  11718. int
  11719. main ()
  11720. {
  11721. return TIFFGetVersion ();
  11722. ;
  11723. return 0;
  11724. }
  11725. _ACEOF
  11726. if ac_fn_c_try_link "$LINENO"; then :
  11727. ac_cv_lib_tiff_TIFFGetVersion=yes
  11728. else
  11729. ac_cv_lib_tiff_TIFFGetVersion=no
  11730. fi
  11731. rm -f core conftest.err conftest.$ac_objext \
  11732. conftest$ac_exeext conftest.$ac_ext
  11733. LIBS=$ac_check_lib_save_LIBS
  11734. fi
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
  11736. $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
  11737. if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
  11738. HAVE_TIFF=yes
  11739. fi
  11740. fi
  11741. fi
  11742. if test "${HAVE_TIFF}" = "yes"; then
  11743. $as_echo "#define HAVE_TIFF 1" >>confdefs.h
  11744. LIBTIFF=-ltiff
  11745. fi
  11746. fi
  11747. ### Use -lgif or -lungif if available, unless `--with-gif=no'.
  11748. HAVE_GIF=no
  11749. LIBGIF=
  11750. if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
  11751. ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
  11752. if test "x$ac_cv_header_gif_lib_h" = xyes; then :
  11753. # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
  11754. # Earlier versions can crash Emacs.
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
  11756. $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
  11757. if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
  11758. $as_echo_n "(cached) " >&6
  11759. else
  11760. ac_check_lib_save_LIBS=$LIBS
  11761. LIBS="-lgif $LIBS"
  11762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11763. /* end confdefs.h. */
  11764. /* Override any GCC internal prototype to avoid an error.
  11765. Use char because int might match the return type of a GCC
  11766. builtin and then its argument prototype would still apply. */
  11767. #ifdef __cplusplus
  11768. extern "C"
  11769. #endif
  11770. char EGifPutExtensionLast ();
  11771. int
  11772. main ()
  11773. {
  11774. return EGifPutExtensionLast ();
  11775. ;
  11776. return 0;
  11777. }
  11778. _ACEOF
  11779. if ac_fn_c_try_link "$LINENO"; then :
  11780. ac_cv_lib_gif_EGifPutExtensionLast=yes
  11781. else
  11782. ac_cv_lib_gif_EGifPutExtensionLast=no
  11783. fi
  11784. rm -f core conftest.err conftest.$ac_objext \
  11785. conftest$ac_exeext conftest.$ac_ext
  11786. LIBS=$ac_check_lib_save_LIBS
  11787. fi
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
  11789. $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
  11790. if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
  11791. HAVE_GIF=yes
  11792. else
  11793. HAVE_GIF=maybe
  11794. fi
  11795. fi
  11796. if test "$HAVE_GIF" = yes; then
  11797. LIBGIF=-lgif
  11798. elif test "$HAVE_GIF" = maybe; then
  11799. # If gif_lib.h but no libgif, try libungif.
  11800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
  11801. $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
  11802. if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
  11803. $as_echo_n "(cached) " >&6
  11804. else
  11805. ac_check_lib_save_LIBS=$LIBS
  11806. LIBS="-lungif $LIBS"
  11807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11808. /* end confdefs.h. */
  11809. /* Override any GCC internal prototype to avoid an error.
  11810. Use char because int might match the return type of a GCC
  11811. builtin and then its argument prototype would still apply. */
  11812. #ifdef __cplusplus
  11813. extern "C"
  11814. #endif
  11815. char EGifPutExtensionLast ();
  11816. int
  11817. main ()
  11818. {
  11819. return EGifPutExtensionLast ();
  11820. ;
  11821. return 0;
  11822. }
  11823. _ACEOF
  11824. if ac_fn_c_try_link "$LINENO"; then :
  11825. ac_cv_lib_ungif_EGifPutExtensionLast=yes
  11826. else
  11827. ac_cv_lib_ungif_EGifPutExtensionLast=no
  11828. fi
  11829. rm -f core conftest.err conftest.$ac_objext \
  11830. conftest$ac_exeext conftest.$ac_ext
  11831. LIBS=$ac_check_lib_save_LIBS
  11832. fi
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
  11834. $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
  11835. if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
  11836. HAVE_GIF=yes
  11837. else
  11838. HAVE_GIF=no
  11839. fi
  11840. test "$HAVE_GIF" = yes && LIBGIF=-lungif
  11841. fi
  11842. if test "${HAVE_GIF}" = "yes"; then
  11843. $as_echo "#define HAVE_GIF 1" >>confdefs.h
  11844. fi
  11845. fi
  11846. if test "${HAVE_X11}" = "yes"; then
  11847. MISSING=""
  11848. WITH_NO=""
  11849. test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
  11850. MISSING="libXpm" && WITH_NO="--with-xpm=no"
  11851. test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
  11852. MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
  11853. test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
  11854. MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
  11855. test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
  11856. MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
  11857. test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
  11858. MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
  11859. if test "X${MISSING}" != X; then
  11860. as_fn_error $? "The following required libraries were not found:
  11861. $MISSING
  11862. Maybe some development libraries/packages are missing?
  11863. If you don't want to link with them give
  11864. $WITH_NO
  11865. as options to configure" "$LINENO" 5
  11866. fi
  11867. fi
  11868. ### Use -lgpm if available, unless `--with-gpm=no'.
  11869. HAVE_GPM=no
  11870. LIBGPM=
  11871. if test "${with_gpm}" != "no"; then
  11872. ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
  11873. if test "x$ac_cv_header_gpm_h" = xyes; then :
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
  11875. $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
  11876. if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
  11877. $as_echo_n "(cached) " >&6
  11878. else
  11879. ac_check_lib_save_LIBS=$LIBS
  11880. LIBS="-lgpm $LIBS"
  11881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11882. /* end confdefs.h. */
  11883. /* Override any GCC internal prototype to avoid an error.
  11884. Use char because int might match the return type of a GCC
  11885. builtin and then its argument prototype would still apply. */
  11886. #ifdef __cplusplus
  11887. extern "C"
  11888. #endif
  11889. char Gpm_Open ();
  11890. int
  11891. main ()
  11892. {
  11893. return Gpm_Open ();
  11894. ;
  11895. return 0;
  11896. }
  11897. _ACEOF
  11898. if ac_fn_c_try_link "$LINENO"; then :
  11899. ac_cv_lib_gpm_Gpm_Open=yes
  11900. else
  11901. ac_cv_lib_gpm_Gpm_Open=no
  11902. fi
  11903. rm -f core conftest.err conftest.$ac_objext \
  11904. conftest$ac_exeext conftest.$ac_ext
  11905. LIBS=$ac_check_lib_save_LIBS
  11906. fi
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
  11908. $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
  11909. if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
  11910. HAVE_GPM=yes
  11911. fi
  11912. fi
  11913. if test "${HAVE_GPM}" = "yes"; then
  11914. $as_echo "#define HAVE_GPM 1" >>confdefs.h
  11915. LIBGPM=-lgpm
  11916. fi
  11917. fi
  11918. ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
  11919. if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
  11920. $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
  11921. fi
  11922. C_SWITCH_X_SYSTEM=
  11923. ### Use NeXTstep API to implement GUI.
  11924. if test "${HAVE_NS}" = "yes"; then
  11925. $as_echo "#define HAVE_NS 1" >>confdefs.h
  11926. if test "${NS_IMPL_COCOA}" = "yes"; then
  11927. $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
  11928. fi
  11929. if test "${NS_IMPL_GNUSTEP}" = "yes"; then
  11930. $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
  11931. # See also .m.o rule in Makefile.in */
  11932. # FIXME: are all these flags really needed? Document here why. */
  11933. C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  11934. ## Extra CFLAGS applied to src/*.m files.
  11935. GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
  11936. fi
  11937. if test "${NS_HAVE_NSINTEGER}" = "yes"; then
  11938. $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
  11939. fi
  11940. # We also have mouse menus.
  11941. HAVE_MENUS=yes
  11942. OTHER_FILES=ns-app
  11943. fi
  11944. ### Use session management (-lSM -lICE) if available
  11945. HAVE_X_SM=no
  11946. LIBXSM=
  11947. if test "${HAVE_X11}" = "yes"; then
  11948. ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
  11949. if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
  11950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
  11951. $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
  11952. if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
  11953. $as_echo_n "(cached) " >&6
  11954. else
  11955. ac_check_lib_save_LIBS=$LIBS
  11956. LIBS="-lSM -lICE $LIBS"
  11957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11958. /* end confdefs.h. */
  11959. /* Override any GCC internal prototype to avoid an error.
  11960. Use char because int might match the return type of a GCC
  11961. builtin and then its argument prototype would still apply. */
  11962. #ifdef __cplusplus
  11963. extern "C"
  11964. #endif
  11965. char SmcOpenConnection ();
  11966. int
  11967. main ()
  11968. {
  11969. return SmcOpenConnection ();
  11970. ;
  11971. return 0;
  11972. }
  11973. _ACEOF
  11974. if ac_fn_c_try_link "$LINENO"; then :
  11975. ac_cv_lib_SM_SmcOpenConnection=yes
  11976. else
  11977. ac_cv_lib_SM_SmcOpenConnection=no
  11978. fi
  11979. rm -f core conftest.err conftest.$ac_objext \
  11980. conftest$ac_exeext conftest.$ac_ext
  11981. LIBS=$ac_check_lib_save_LIBS
  11982. fi
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
  11984. $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
  11985. if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
  11986. HAVE_X_SM=yes
  11987. fi
  11988. fi
  11989. if test "${HAVE_X_SM}" = "yes"; then
  11990. $as_echo "#define HAVE_X_SM 1" >>confdefs.h
  11991. LIBXSM="-lSM -lICE"
  11992. case "$LIBS" in
  11993. *-lSM*) ;;
  11994. *) LIBS="$LIBXSM $LIBS" ;;
  11995. esac
  11996. fi
  11997. fi
  11998. ### Use libxml (-lxml2) if available
  11999. HAVE_LIBXML2=no
  12000. if test "${with_xml2}" != "no"; then
  12001. ### I'm not sure what the version number should be, so I just guessed.
  12002. succeeded=no
  12003. # Extract the first word of "pkg-config", so it can be a program name with args.
  12004. set dummy pkg-config; ac_word=$2
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12006. $as_echo_n "checking for $ac_word... " >&6; }
  12007. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12008. $as_echo_n "(cached) " >&6
  12009. else
  12010. case $PKG_CONFIG in
  12011. [\\/]* | ?:[\\/]*)
  12012. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12013. ;;
  12014. *)
  12015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12016. for as_dir in $PATH
  12017. do
  12018. IFS=$as_save_IFS
  12019. test -z "$as_dir" && as_dir=.
  12020. for ac_exec_ext in '' $ac_executable_extensions; do
  12021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12022. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12024. break 2
  12025. fi
  12026. done
  12027. done
  12028. IFS=$as_save_IFS
  12029. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12030. ;;
  12031. esac
  12032. fi
  12033. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12034. if test -n "$PKG_CONFIG"; then
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12036. $as_echo "$PKG_CONFIG" >&6; }
  12037. else
  12038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12039. $as_echo "no" >&6; }
  12040. fi
  12041. if test "$PKG_CONFIG" = "no" ; then
  12042. HAVE_LIBXML2=no
  12043. else
  12044. PKG_CONFIG_MIN_VERSION=0.9.0
  12045. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
  12047. $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
  12048. if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
  12049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12050. $as_echo "yes" >&6; }
  12051. succeeded=yes
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
  12053. $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
  12054. LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
  12056. $as_echo "$LIBXML2_CFLAGS" >&6; }
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
  12058. $as_echo_n "checking LIBXML2_LIBS... " >&6; }
  12059. LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
  12061. $as_echo "$LIBXML2_LIBS" >&6; }
  12062. else
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12064. $as_echo "no" >&6; }
  12065. LIBXML2_CFLAGS=""
  12066. LIBXML2_LIBS=""
  12067. ## If we have a custom action on failure, don't print errors, but
  12068. ## do set a variable so people can do so.
  12069. LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
  12070. fi
  12071. else
  12072. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12073. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12074. fi
  12075. fi
  12076. if test $succeeded = yes; then
  12077. HAVE_LIBXML2=yes
  12078. else
  12079. HAVE_LIBXML2=no
  12080. fi
  12081. if test "${HAVE_LIBXML2}" = "yes"; then
  12082. LIBS="$LIBXML2_LIBS $LIBS"
  12083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
  12084. $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
  12085. if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
  12086. $as_echo_n "(cached) " >&6
  12087. else
  12088. ac_check_lib_save_LIBS=$LIBS
  12089. LIBS="-lxml2 $LIBS"
  12090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12091. /* end confdefs.h. */
  12092. /* Override any GCC internal prototype to avoid an error.
  12093. Use char because int might match the return type of a GCC
  12094. builtin and then its argument prototype would still apply. */
  12095. #ifdef __cplusplus
  12096. extern "C"
  12097. #endif
  12098. char htmlReadMemory ();
  12099. int
  12100. main ()
  12101. {
  12102. return htmlReadMemory ();
  12103. ;
  12104. return 0;
  12105. }
  12106. _ACEOF
  12107. if ac_fn_c_try_link "$LINENO"; then :
  12108. ac_cv_lib_xml2_htmlReadMemory=yes
  12109. else
  12110. ac_cv_lib_xml2_htmlReadMemory=no
  12111. fi
  12112. rm -f core conftest.err conftest.$ac_objext \
  12113. conftest$ac_exeext conftest.$ac_ext
  12114. LIBS=$ac_check_lib_save_LIBS
  12115. fi
  12116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
  12117. $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
  12118. if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
  12119. HAVE_LIBXML2=yes
  12120. else
  12121. HAVE_LIBXML2=no
  12122. fi
  12123. if test "${HAVE_LIBXML2}" = "yes"; then
  12124. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  12125. else
  12126. LIBXML2_LIBS=""
  12127. LIBXML2_CFLAGS=""
  12128. fi
  12129. fi
  12130. fi
  12131. # If netdb.h doesn't declare h_errno, we must declare it by hand.
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
  12133. $as_echo_n "checking whether netdb declares h_errno... " >&6; }
  12134. if ${emacs_cv_netdb_declares_h_errno+:} false; then :
  12135. $as_echo_n "(cached) " >&6
  12136. else
  12137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. /* end confdefs.h. */
  12139. #include <netdb.h>
  12140. int
  12141. main ()
  12142. {
  12143. return h_errno;
  12144. ;
  12145. return 0;
  12146. }
  12147. _ACEOF
  12148. if ac_fn_c_try_link "$LINENO"; then :
  12149. emacs_cv_netdb_declares_h_errno=yes
  12150. else
  12151. emacs_cv_netdb_declares_h_errno=no
  12152. fi
  12153. rm -f core conftest.err conftest.$ac_objext \
  12154. conftest$ac_exeext conftest.$ac_ext
  12155. fi
  12156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
  12157. $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
  12158. if test $emacs_cv_netdb_declares_h_errno = yes; then
  12159. $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
  12160. fi
  12161. # fmod, logb, and frexp are found in -lm on most systems.
  12162. # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12164. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12165. if ${ac_cv_lib_m_sqrt+:} false; then :
  12166. $as_echo_n "(cached) " >&6
  12167. else
  12168. ac_check_lib_save_LIBS=$LIBS
  12169. LIBS="-lm $LIBS"
  12170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12171. /* end confdefs.h. */
  12172. /* Override any GCC internal prototype to avoid an error.
  12173. Use char because int might match the return type of a GCC
  12174. builtin and then its argument prototype would still apply. */
  12175. #ifdef __cplusplus
  12176. extern "C"
  12177. #endif
  12178. char sqrt ();
  12179. int
  12180. main ()
  12181. {
  12182. return sqrt ();
  12183. ;
  12184. return 0;
  12185. }
  12186. _ACEOF
  12187. if ac_fn_c_try_link "$LINENO"; then :
  12188. ac_cv_lib_m_sqrt=yes
  12189. else
  12190. ac_cv_lib_m_sqrt=no
  12191. fi
  12192. rm -f core conftest.err conftest.$ac_objext \
  12193. conftest$ac_exeext conftest.$ac_ext
  12194. LIBS=$ac_check_lib_save_LIBS
  12195. fi
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12197. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12198. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  12199. cat >>confdefs.h <<_ACEOF
  12200. #define HAVE_LIBM 1
  12201. _ACEOF
  12202. LIBS="-lm $LIBS"
  12203. fi
  12204. # Check for mail-locking functions in a "mail" library. Probably this should
  12205. # have the same check as for liblockfile below.
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
  12207. $as_echo_n "checking for maillock in -lmail... " >&6; }
  12208. if ${ac_cv_lib_mail_maillock+:} false; then :
  12209. $as_echo_n "(cached) " >&6
  12210. else
  12211. ac_check_lib_save_LIBS=$LIBS
  12212. LIBS="-lmail $LIBS"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. /* Override any GCC internal prototype to avoid an error.
  12216. Use char because int might match the return type of a GCC
  12217. builtin and then its argument prototype would still apply. */
  12218. #ifdef __cplusplus
  12219. extern "C"
  12220. #endif
  12221. char maillock ();
  12222. int
  12223. main ()
  12224. {
  12225. return maillock ();
  12226. ;
  12227. return 0;
  12228. }
  12229. _ACEOF
  12230. if ac_fn_c_try_link "$LINENO"; then :
  12231. ac_cv_lib_mail_maillock=yes
  12232. else
  12233. ac_cv_lib_mail_maillock=no
  12234. fi
  12235. rm -f core conftest.err conftest.$ac_objext \
  12236. conftest$ac_exeext conftest.$ac_ext
  12237. LIBS=$ac_check_lib_save_LIBS
  12238. fi
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
  12240. $as_echo "$ac_cv_lib_mail_maillock" >&6; }
  12241. if test "x$ac_cv_lib_mail_maillock" = xyes; then :
  12242. have_mail=yes
  12243. else
  12244. have_mail=no
  12245. fi
  12246. if test $have_mail = yes; then
  12247. LIBS_MAIL=-lmail
  12248. LIBS="$LIBS_MAIL $LIBS"
  12249. $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
  12250. else
  12251. LIBS_MAIL=
  12252. fi
  12253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
  12254. $as_echo_n "checking for maillock in -llockfile... " >&6; }
  12255. if ${ac_cv_lib_lockfile_maillock+:} false; then :
  12256. $as_echo_n "(cached) " >&6
  12257. else
  12258. ac_check_lib_save_LIBS=$LIBS
  12259. LIBS="-llockfile $LIBS"
  12260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12261. /* end confdefs.h. */
  12262. /* Override any GCC internal prototype to avoid an error.
  12263. Use char because int might match the return type of a GCC
  12264. builtin and then its argument prototype would still apply. */
  12265. #ifdef __cplusplus
  12266. extern "C"
  12267. #endif
  12268. char maillock ();
  12269. int
  12270. main ()
  12271. {
  12272. return maillock ();
  12273. ;
  12274. return 0;
  12275. }
  12276. _ACEOF
  12277. if ac_fn_c_try_link "$LINENO"; then :
  12278. ac_cv_lib_lockfile_maillock=yes
  12279. else
  12280. ac_cv_lib_lockfile_maillock=no
  12281. fi
  12282. rm -f core conftest.err conftest.$ac_objext \
  12283. conftest$ac_exeext conftest.$ac_ext
  12284. LIBS=$ac_check_lib_save_LIBS
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
  12287. $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
  12288. if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
  12289. have_lockfile=yes
  12290. else
  12291. have_lockfile=no
  12292. fi
  12293. if test $have_lockfile = yes; then
  12294. LIBS_MAIL=-llockfile
  12295. LIBS="$LIBS_MAIL $LIBS"
  12296. $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
  12297. else
  12298. # If we have the shared liblockfile, assume we must use it for mail
  12299. # locking (e.g. Debian). If we couldn't link against liblockfile
  12300. # (no liblockfile.a installed), ensure that we don't need to.
  12301. # Extract the first word of "liblockfile.so", so it can be a program name with args.
  12302. set dummy liblockfile.so; ac_word=$2
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12304. $as_echo_n "checking for $ac_word... " >&6; }
  12305. if ${ac_cv_prog_liblockfile+:} false; then :
  12306. $as_echo_n "(cached) " >&6
  12307. else
  12308. if test -n "$liblockfile"; then
  12309. ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
  12310. else
  12311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12312. as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
  12313. for as_dir in $as_dummy
  12314. do
  12315. IFS=$as_save_IFS
  12316. test -z "$as_dir" && as_dir=.
  12317. for ac_exec_ext in '' $ac_executable_extensions; do
  12318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12319. ac_cv_prog_liblockfile="yes"
  12320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12321. break 2
  12322. fi
  12323. done
  12324. done
  12325. IFS=$as_save_IFS
  12326. test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
  12327. fi
  12328. fi
  12329. liblockfile=$ac_cv_prog_liblockfile
  12330. if test -n "$liblockfile"; then
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
  12332. $as_echo "$liblockfile" >&6; }
  12333. else
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12335. $as_echo "no" >&6; }
  12336. fi
  12337. if test $ac_cv_prog_liblockfile = yes; then
  12338. as_fn_error $? "Shared liblockfile found but can't link against it.
  12339. This probably means that movemail could lose mail.
  12340. There may be a \`development' package to install containing liblockfile." "$LINENO" 5
  12341. fi
  12342. fi
  12343. for ac_func in touchlock
  12344. do :
  12345. ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
  12346. if test "x$ac_cv_func_touchlock" = xyes; then :
  12347. cat >>confdefs.h <<_ACEOF
  12348. #define HAVE_TOUCHLOCK 1
  12349. _ACEOF
  12350. fi
  12351. done
  12352. for ac_header in maillock.h
  12353. do :
  12354. ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
  12355. if test "x$ac_cv_header_maillock_h" = xyes; then :
  12356. cat >>confdefs.h <<_ACEOF
  12357. #define HAVE_MAILLOCK_H 1
  12358. _ACEOF
  12359. fi
  12360. done
  12361. ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
  12362. ## interlock access to the mail spool. The alternative is a lock file named
  12363. ## /usr/spool/mail/$USER.lock.
  12364. mail_lock=no
  12365. case "$opsys" in
  12366. aix4-2) mail_lock="lockf" ;;
  12367. gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
  12368. ## On GNU/Linux systems, both methods are used by various mail programs.
  12369. ## I assume most people are using newer mailers that have heard of flock.
  12370. ## Change this if you need to.
  12371. ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
  12372. ## configure gets the right answers, and that means *NOT* using flock.
  12373. ## Using flock is guaranteed to be the wrong thing. See Debian Policy
  12374. ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
  12375. ## Debian maintainer hasn't provided a clean fix for Emacs.
  12376. ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
  12377. ## HAVE_MAILLOCK_H are defined, so the following appears to be the
  12378. ## correct logic. -- fx
  12379. ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
  12380. ## liblockfile is a Free Software replacement for libmail, used on
  12381. ## Debian systems and elsewhere. -rfr.
  12382. gnu-*)
  12383. mail_lock="flock"
  12384. if test $have_mail = yes || test $have_lockfile = yes; then
  12385. test $ac_cv_header_maillock_h = yes && mail_lock=no
  12386. fi
  12387. ;;
  12388. esac
  12389. BLESSMAIL_TARGET=
  12390. case "$mail_lock" in
  12391. flock)
  12392. $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
  12393. ;;
  12394. lockf)
  12395. $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
  12396. ;;
  12397. *) BLESSMAIL_TARGET="need-blessmail" ;;
  12398. esac
  12399. for ac_func in gethostname getdomainname \
  12400. rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
  12401. random lrand48 logb frexp fmod rint cbrt ftime setsid \
  12402. strerror fpathconf select euidaccess getpagesize tzset setlocale \
  12403. utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
  12404. __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
  12405. sendto recvfrom getsockopt setsockopt getsockname getpeername \
  12406. gai_strerror mkstemp getline getdelim mremap fsync sync \
  12407. difftime mempcpy mblen mbrlen posix_memalign \
  12408. cfmakeraw cfsetspeed copysign __executable_start
  12409. do :
  12410. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12411. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12412. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12413. cat >>confdefs.h <<_ACEOF
  12414. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12415. _ACEOF
  12416. fi
  12417. done
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
  12419. $as_echo_n "checking for __builtin_unwind_init... " >&6; }
  12420. if ${emacs_cv_func___builtin_unwind_init+:} false; then :
  12421. $as_echo_n "(cached) " >&6
  12422. else
  12423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12424. /* end confdefs.h. */
  12425. int
  12426. main ()
  12427. {
  12428. __builtin_unwind_init ();
  12429. ;
  12430. return 0;
  12431. }
  12432. _ACEOF
  12433. if ac_fn_c_try_link "$LINENO"; then :
  12434. emacs_cv_func___builtin_unwind_init=yes
  12435. else
  12436. emacs_cv_func___builtin_unwind_init=no
  12437. fi
  12438. rm -f core conftest.err conftest.$ac_objext \
  12439. conftest$ac_exeext conftest.$ac_ext
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
  12442. $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
  12443. if test $emacs_cv_func___builtin_unwind_init = yes; then
  12444. $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
  12445. fi
  12446. for ac_header in sys/un.h
  12447. do :
  12448. ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  12449. if test "x$ac_cv_header_sys_un_h" = xyes; then :
  12450. cat >>confdefs.h <<_ACEOF
  12451. #define HAVE_SYS_UN_H 1
  12452. _ACEOF
  12453. fi
  12454. done
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12456. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12457. if ${ac_cv_sys_largefile_source+:} false; then :
  12458. $as_echo_n "(cached) " >&6
  12459. else
  12460. while :; do
  12461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12462. /* end confdefs.h. */
  12463. #include <sys/types.h> /* for off_t */
  12464. #include <stdio.h>
  12465. int
  12466. main ()
  12467. {
  12468. int (*fp) (FILE *, off_t, int) = fseeko;
  12469. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12470. ;
  12471. return 0;
  12472. }
  12473. _ACEOF
  12474. if ac_fn_c_try_link "$LINENO"; then :
  12475. ac_cv_sys_largefile_source=no; break
  12476. fi
  12477. rm -f core conftest.err conftest.$ac_objext \
  12478. conftest$ac_exeext conftest.$ac_ext
  12479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12480. /* end confdefs.h. */
  12481. #define _LARGEFILE_SOURCE 1
  12482. #include <sys/types.h> /* for off_t */
  12483. #include <stdio.h>
  12484. int
  12485. main ()
  12486. {
  12487. int (*fp) (FILE *, off_t, int) = fseeko;
  12488. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12489. ;
  12490. return 0;
  12491. }
  12492. _ACEOF
  12493. if ac_fn_c_try_link "$LINENO"; then :
  12494. ac_cv_sys_largefile_source=1; break
  12495. fi
  12496. rm -f core conftest.err conftest.$ac_objext \
  12497. conftest$ac_exeext conftest.$ac_ext
  12498. ac_cv_sys_largefile_source=unknown
  12499. break
  12500. done
  12501. fi
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12503. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12504. case $ac_cv_sys_largefile_source in #(
  12505. no | unknown) ;;
  12506. *)
  12507. cat >>confdefs.h <<_ACEOF
  12508. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12509. _ACEOF
  12510. ;;
  12511. esac
  12512. rm -rf conftest*
  12513. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12514. # in glibc 2.1.3, but that breaks too many other things.
  12515. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12516. if test $ac_cv_sys_largefile_source != unknown; then
  12517. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12518. fi
  12519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
  12520. $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
  12521. if ${ac_cv_func_getpgrp_void+:} false; then :
  12522. $as_echo_n "(cached) " >&6
  12523. else
  12524. # Use it with a single arg.
  12525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12526. /* end confdefs.h. */
  12527. $ac_includes_default
  12528. int
  12529. main ()
  12530. {
  12531. getpgrp (0);
  12532. ;
  12533. return 0;
  12534. }
  12535. _ACEOF
  12536. if ac_fn_c_try_compile "$LINENO"; then :
  12537. ac_cv_func_getpgrp_void=no
  12538. else
  12539. ac_cv_func_getpgrp_void=yes
  12540. fi
  12541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12542. fi
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
  12544. $as_echo "$ac_cv_func_getpgrp_void" >&6; }
  12545. if test $ac_cv_func_getpgrp_void = yes; then
  12546. $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
  12547. fi
  12548. # UNIX98 PTYs.
  12549. for ac_func in grantpt
  12550. do :
  12551. ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
  12552. if test "x$ac_cv_func_grantpt" = xyes; then :
  12553. cat >>confdefs.h <<_ACEOF
  12554. #define HAVE_GRANTPT 1
  12555. _ACEOF
  12556. fi
  12557. done
  12558. # PTY-related GNU extensions.
  12559. for ac_func in getpt
  12560. do :
  12561. ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
  12562. if test "x$ac_cv_func_getpt" = xyes; then :
  12563. cat >>confdefs.h <<_ACEOF
  12564. #define HAVE_GETPT 1
  12565. _ACEOF
  12566. fi
  12567. done
  12568. # Check this now, so that we will NOT find the above functions in ncurses.
  12569. # That is because we have not set up to link ncurses in lib-src.
  12570. # It's better to believe a function is not available
  12571. # than to expect to find it in ncurses.
  12572. # Also we need tputs and friends to be able to build at all.
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
  12574. $as_echo_n "checking for library containing tputs... " >&6; }
  12575. # Run a test program that contains a call to tputs, a call that is
  12576. # never executed. This tests whether a pre-'main' dynamic linker
  12577. # works with the library. It's too much trouble to actually call
  12578. # tputs in the test program, due to portability hassles. When
  12579. # cross-compiling, assume the test program will run if it links.
  12580. # Maybe curses should be tried earlier?
  12581. # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
  12582. for tputs_library in '' ncurses terminfo termcap curses; do
  12583. OLIBS=$LIBS
  12584. if test -z "$tputs_library"; then
  12585. LIBS_TERMCAP=
  12586. msg='none required'
  12587. else
  12588. LIBS_TERMCAP=-l$tputs_library
  12589. msg=$LIBS_TERMCAP
  12590. LIBS="$LIBS_TERMCAP $LIBS"
  12591. fi
  12592. if test "$cross_compiling" = yes; then :
  12593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12594. /* end confdefs.h. */
  12595. extern void tputs (const char *, int, int (*)(int));
  12596. int main (int argc, char **argv)
  12597. {
  12598. if (argc == 10000)
  12599. tputs (argv[0], 0, 0);
  12600. return 0;
  12601. }
  12602. _ACEOF
  12603. if ac_fn_c_try_link "$LINENO"; then :
  12604. else
  12605. msg=no
  12606. fi
  12607. rm -f core conftest.err conftest.$ac_objext \
  12608. conftest$ac_exeext conftest.$ac_ext
  12609. else
  12610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12611. /* end confdefs.h. */
  12612. extern void tputs (const char *, int, int (*)(int));
  12613. int main (int argc, char **argv)
  12614. {
  12615. if (argc == 10000)
  12616. tputs (argv[0], 0, 0);
  12617. return 0;
  12618. }
  12619. _ACEOF
  12620. if ac_fn_c_try_run "$LINENO"; then :
  12621. else
  12622. msg=no
  12623. fi
  12624. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12625. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12626. fi
  12627. LIBS=$OLIBS
  12628. if test "X$msg" != Xno; then
  12629. break
  12630. fi
  12631. done
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
  12633. $as_echo "$msg" >&6; }
  12634. if test "X$msg" = Xno; then
  12635. as_fn_error $? "The required function \`tputs' was not found in any library.
  12636. These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
  12637. Please try installing whichever of these libraries is most appropriate
  12638. for your system, together with its header files.
  12639. For example, a libncurses-dev(el) or similar package." "$LINENO" 5
  12640. fi
  12641. # Must define this when any termcap library is found.
  12642. $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
  12643. ## FIXME This was the cpp logic, but I am not sure it is right.
  12644. ## The above test has not necessarily found libncurses.
  12645. HAVE_LIBNCURSES=yes
  12646. ## Use terminfo instead of termcap?
  12647. ## Note only system files NOT using terminfo are:
  12648. ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
  12649. ## darwin|gnu without ncurses.
  12650. TERMINFO=no
  12651. case "$opsys" in
  12652. ## cygwin: Fewer environment variables to go wrong, more terminal types.
  12653. ## hpux10-20: Use the system provided termcap(3) library.
  12654. ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
  12655. ## is necessary. Otherwise Emacs dumps core when run -nw.
  12656. aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
  12657. ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
  12658. ## The ncurses library has been moved out of the System framework in
  12659. ## Mac OS X 10.2. So if configure detects it, set the command-line
  12660. ## option to use it.
  12661. darwin|gnu*)
  12662. ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
  12663. if test "x$HAVE_LIBNCURSES" = "xyes"; then
  12664. TERMINFO=yes
  12665. LIBS_TERMCAP="-lncurses"
  12666. fi
  12667. ;;
  12668. freebsd)
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
  12670. $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
  12671. if ${emacs_cv_freebsd_terminfo+:} false; then :
  12672. $as_echo_n "(cached) " >&6
  12673. else
  12674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12675. /* end confdefs.h. */
  12676. #include <osreldate.h>
  12677. int
  12678. main ()
  12679. {
  12680. #if __FreeBSD_version < 400000
  12681. fail;
  12682. #endif
  12683. ;
  12684. return 0;
  12685. }
  12686. _ACEOF
  12687. if ac_fn_c_try_link "$LINENO"; then :
  12688. emacs_cv_freebsd_terminfo=yes
  12689. else
  12690. emacs_cv_freebsd_terminfo=no
  12691. fi
  12692. rm -f core conftest.err conftest.$ac_objext \
  12693. conftest$ac_exeext conftest.$ac_ext
  12694. fi
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
  12696. $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
  12697. if test $emacs_cv_freebsd_terminfo = yes; then
  12698. TERMINFO=yes
  12699. LIBS_TERMCAP="-lncurses"
  12700. else
  12701. LIBS_TERMCAP="-ltermcap"
  12702. fi
  12703. ;;
  12704. netbsd)
  12705. if test "x$LIBS_TERMCAP" = "x-lterminfo"; then
  12706. TERMINFO=yes
  12707. else
  12708. LIBS_TERMCAP="-ltermcap"
  12709. fi
  12710. ;;
  12711. esac
  12712. case "$opsys" in
  12713. ## hpux: Make sure we get select from libc rather than from libcurses
  12714. ## because libcurses on HPUX 10.10 has a broken version of select.
  12715. ## We used to use -lc -lcurses, but this may be cleaner.
  12716. hpux*) LIBS_TERMCAP="-ltermcap" ;;
  12717. openbsd) LIBS_TERMCAP="-lncurses" ;;
  12718. ## Must use system termcap, if we use any termcap. It does special things.
  12719. sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
  12720. esac
  12721. TERMCAP_OBJ=tparam.o
  12722. if test $TERMINFO = yes; then
  12723. $as_echo "#define TERMINFO 1" >>confdefs.h
  12724. TERMCAP_OBJ=terminfo.o
  12725. fi
  12726. # Do we have res_init, for detecting changes in /etc/resolv.conf?
  12727. resolv=no
  12728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12729. /* end confdefs.h. */
  12730. #include <netinet/in.h>
  12731. #include <arpa/nameser.h>
  12732. #include <resolv.h>
  12733. int
  12734. main ()
  12735. {
  12736. return res_init();
  12737. ;
  12738. return 0;
  12739. }
  12740. _ACEOF
  12741. if ac_fn_c_try_link "$LINENO"; then :
  12742. have_res_init=yes
  12743. else
  12744. have_res_init=no
  12745. fi
  12746. rm -f core conftest.err conftest.$ac_objext \
  12747. conftest$ac_exeext conftest.$ac_ext
  12748. if test "$have_res_init" = no; then
  12749. OLIBS="$LIBS"
  12750. LIBS="$LIBS -lresolv"
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
  12752. $as_echo_n "checking for res_init with -lresolv... " >&6; }
  12753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12754. /* end confdefs.h. */
  12755. #include <netinet/in.h>
  12756. #include <arpa/nameser.h>
  12757. #include <resolv.h>
  12758. int
  12759. main ()
  12760. {
  12761. return res_init();
  12762. ;
  12763. return 0;
  12764. }
  12765. _ACEOF
  12766. if ac_fn_c_try_link "$LINENO"; then :
  12767. have_res_init=yes
  12768. else
  12769. have_res_init=no
  12770. fi
  12771. rm -f core conftest.err conftest.$ac_objext \
  12772. conftest$ac_exeext conftest.$ac_ext
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
  12774. $as_echo "$have_res_init" >&6; }
  12775. if test "$have_res_init" = yes ; then
  12776. resolv=yes
  12777. fi
  12778. LIBS="$OLIBS"
  12779. fi
  12780. if test "$have_res_init" = yes; then
  12781. $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
  12782. fi
  12783. # Do we need the Hesiod library to provide the support routines?
  12784. LIBHESIOD=
  12785. if test "$with_hesiod" != no ; then
  12786. # Don't set $LIBS here -- see comments above. FIXME which comments?
  12787. ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
  12788. if test "x$ac_cv_func_res_send" = xyes; then :
  12789. else
  12790. ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
  12791. if test "x$ac_cv_func___res_send" = xyes; then :
  12792. else
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
  12794. $as_echo_n "checking for res_send in -lresolv... " >&6; }
  12795. if ${ac_cv_lib_resolv_res_send+:} false; then :
  12796. $as_echo_n "(cached) " >&6
  12797. else
  12798. ac_check_lib_save_LIBS=$LIBS
  12799. LIBS="-lresolv $LIBS"
  12800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12801. /* end confdefs.h. */
  12802. /* Override any GCC internal prototype to avoid an error.
  12803. Use char because int might match the return type of a GCC
  12804. builtin and then its argument prototype would still apply. */
  12805. #ifdef __cplusplus
  12806. extern "C"
  12807. #endif
  12808. char res_send ();
  12809. int
  12810. main ()
  12811. {
  12812. return res_send ();
  12813. ;
  12814. return 0;
  12815. }
  12816. _ACEOF
  12817. if ac_fn_c_try_link "$LINENO"; then :
  12818. ac_cv_lib_resolv_res_send=yes
  12819. else
  12820. ac_cv_lib_resolv_res_send=no
  12821. fi
  12822. rm -f core conftest.err conftest.$ac_objext \
  12823. conftest$ac_exeext conftest.$ac_ext
  12824. LIBS=$ac_check_lib_save_LIBS
  12825. fi
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
  12827. $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
  12828. if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
  12829. resolv=yes
  12830. else
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
  12832. $as_echo_n "checking for __res_send in -lresolv... " >&6; }
  12833. if ${ac_cv_lib_resolv___res_send+:} false; then :
  12834. $as_echo_n "(cached) " >&6
  12835. else
  12836. ac_check_lib_save_LIBS=$LIBS
  12837. LIBS="-lresolv $LIBS"
  12838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12839. /* end confdefs.h. */
  12840. /* Override any GCC internal prototype to avoid an error.
  12841. Use char because int might match the return type of a GCC
  12842. builtin and then its argument prototype would still apply. */
  12843. #ifdef __cplusplus
  12844. extern "C"
  12845. #endif
  12846. char __res_send ();
  12847. int
  12848. main ()
  12849. {
  12850. return __res_send ();
  12851. ;
  12852. return 0;
  12853. }
  12854. _ACEOF
  12855. if ac_fn_c_try_link "$LINENO"; then :
  12856. ac_cv_lib_resolv___res_send=yes
  12857. else
  12858. ac_cv_lib_resolv___res_send=no
  12859. fi
  12860. rm -f core conftest.err conftest.$ac_objext \
  12861. conftest$ac_exeext conftest.$ac_ext
  12862. LIBS=$ac_check_lib_save_LIBS
  12863. fi
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
  12865. $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
  12866. if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
  12867. resolv=yes
  12868. fi
  12869. fi
  12870. fi
  12871. fi
  12872. if test "$resolv" = yes ; then
  12873. RESOLVLIB=-lresolv
  12874. else
  12875. RESOLVLIB=
  12876. fi
  12877. ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
  12878. if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
  12879. else
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
  12881. $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
  12882. if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
  12883. $as_echo_n "(cached) " >&6
  12884. else
  12885. ac_check_lib_save_LIBS=$LIBS
  12886. LIBS="-lhesiod $RESOLVLIB $LIBS"
  12887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12888. /* end confdefs.h. */
  12889. /* Override any GCC internal prototype to avoid an error.
  12890. Use char because int might match the return type of a GCC
  12891. builtin and then its argument prototype would still apply. */
  12892. #ifdef __cplusplus
  12893. extern "C"
  12894. #endif
  12895. char hes_getmailhost ();
  12896. int
  12897. main ()
  12898. {
  12899. return hes_getmailhost ();
  12900. ;
  12901. return 0;
  12902. }
  12903. _ACEOF
  12904. if ac_fn_c_try_link "$LINENO"; then :
  12905. ac_cv_lib_hesiod_hes_getmailhost=yes
  12906. else
  12907. ac_cv_lib_hesiod_hes_getmailhost=no
  12908. fi
  12909. rm -f core conftest.err conftest.$ac_objext \
  12910. conftest$ac_exeext conftest.$ac_ext
  12911. LIBS=$ac_check_lib_save_LIBS
  12912. fi
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
  12914. $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
  12915. if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
  12916. hesiod=yes
  12917. else
  12918. :
  12919. fi
  12920. fi
  12921. if test x"$hesiod" = xyes; then
  12922. $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
  12923. LIBHESIOD=-lhesiod
  12924. fi
  12925. fi
  12926. # Do we need libresolv (due to res_init or Hesiod)?
  12927. if test "$resolv" = yes ; then
  12928. $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
  12929. LIBRESOLV=-lresolv
  12930. else
  12931. LIBRESOLV=
  12932. fi
  12933. # These tell us which Kerberos-related libraries to use.
  12934. COM_ERRLIB=
  12935. CRYPTOLIB=
  12936. KRB5LIB=
  12937. DESLIB=
  12938. KRB4LIB=
  12939. if test "${with_kerberos}" != no; then
  12940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
  12941. $as_echo_n "checking for com_err in -lcom_err... " >&6; }
  12942. if ${ac_cv_lib_com_err_com_err+:} false; then :
  12943. $as_echo_n "(cached) " >&6
  12944. else
  12945. ac_check_lib_save_LIBS=$LIBS
  12946. LIBS="-lcom_err $LIBS"
  12947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12948. /* end confdefs.h. */
  12949. /* Override any GCC internal prototype to avoid an error.
  12950. Use char because int might match the return type of a GCC
  12951. builtin and then its argument prototype would still apply. */
  12952. #ifdef __cplusplus
  12953. extern "C"
  12954. #endif
  12955. char com_err ();
  12956. int
  12957. main ()
  12958. {
  12959. return com_err ();
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_c_try_link "$LINENO"; then :
  12965. ac_cv_lib_com_err_com_err=yes
  12966. else
  12967. ac_cv_lib_com_err_com_err=no
  12968. fi
  12969. rm -f core conftest.err conftest.$ac_objext \
  12970. conftest$ac_exeext conftest.$ac_ext
  12971. LIBS=$ac_check_lib_save_LIBS
  12972. fi
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
  12974. $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
  12975. if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
  12976. have_com_err=yes
  12977. else
  12978. have_com_err=no
  12979. fi
  12980. if test $have_com_err = yes; then
  12981. COM_ERRLIB=-lcom_err
  12982. LIBS="$COM_ERRLIB $LIBS"
  12983. $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
  12984. fi
  12985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
  12986. $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
  12987. if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
  12988. $as_echo_n "(cached) " >&6
  12989. else
  12990. ac_check_lib_save_LIBS=$LIBS
  12991. LIBS="-lcrypto $LIBS"
  12992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12993. /* end confdefs.h. */
  12994. /* Override any GCC internal prototype to avoid an error.
  12995. Use char because int might match the return type of a GCC
  12996. builtin and then its argument prototype would still apply. */
  12997. #ifdef __cplusplus
  12998. extern "C"
  12999. #endif
  13000. char mit_des_cbc_encrypt ();
  13001. int
  13002. main ()
  13003. {
  13004. return mit_des_cbc_encrypt ();
  13005. ;
  13006. return 0;
  13007. }
  13008. _ACEOF
  13009. if ac_fn_c_try_link "$LINENO"; then :
  13010. ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
  13011. else
  13012. ac_cv_lib_crypto_mit_des_cbc_encrypt=no
  13013. fi
  13014. rm -f core conftest.err conftest.$ac_objext \
  13015. conftest$ac_exeext conftest.$ac_ext
  13016. LIBS=$ac_check_lib_save_LIBS
  13017. fi
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
  13019. $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
  13020. if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
  13021. have_crypto=yes
  13022. else
  13023. have_crypto=no
  13024. fi
  13025. if test $have_crypto = yes; then
  13026. CRYPTOLIB=-lcrypto
  13027. LIBS="$CRYPTOLIB $LIBS"
  13028. $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
  13029. fi
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
  13031. $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
  13032. if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
  13033. $as_echo_n "(cached) " >&6
  13034. else
  13035. ac_check_lib_save_LIBS=$LIBS
  13036. LIBS="-lk5crypto $LIBS"
  13037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13038. /* end confdefs.h. */
  13039. /* Override any GCC internal prototype to avoid an error.
  13040. Use char because int might match the return type of a GCC
  13041. builtin and then its argument prototype would still apply. */
  13042. #ifdef __cplusplus
  13043. extern "C"
  13044. #endif
  13045. char mit_des_cbc_encrypt ();
  13046. int
  13047. main ()
  13048. {
  13049. return mit_des_cbc_encrypt ();
  13050. ;
  13051. return 0;
  13052. }
  13053. _ACEOF
  13054. if ac_fn_c_try_link "$LINENO"; then :
  13055. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
  13056. else
  13057. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
  13058. fi
  13059. rm -f core conftest.err conftest.$ac_objext \
  13060. conftest$ac_exeext conftest.$ac_ext
  13061. LIBS=$ac_check_lib_save_LIBS
  13062. fi
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
  13064. $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
  13065. if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
  13066. have_k5crypto=yes
  13067. else
  13068. have_k5crypto=no
  13069. fi
  13070. if test $have_k5crypto = yes; then
  13071. CRYPTOLIB=-lk5crypto
  13072. LIBS="$CRYPTOLIB $LIBS"
  13073. $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
  13074. fi
  13075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
  13076. $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
  13077. if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
  13078. $as_echo_n "(cached) " >&6
  13079. else
  13080. ac_check_lib_save_LIBS=$LIBS
  13081. LIBS="-lkrb5 $LIBS"
  13082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13083. /* end confdefs.h. */
  13084. /* Override any GCC internal prototype to avoid an error.
  13085. Use char because int might match the return type of a GCC
  13086. builtin and then its argument prototype would still apply. */
  13087. #ifdef __cplusplus
  13088. extern "C"
  13089. #endif
  13090. char krb5_init_context ();
  13091. int
  13092. main ()
  13093. {
  13094. return krb5_init_context ();
  13095. ;
  13096. return 0;
  13097. }
  13098. _ACEOF
  13099. if ac_fn_c_try_link "$LINENO"; then :
  13100. ac_cv_lib_krb5_krb5_init_context=yes
  13101. else
  13102. ac_cv_lib_krb5_krb5_init_context=no
  13103. fi
  13104. rm -f core conftest.err conftest.$ac_objext \
  13105. conftest$ac_exeext conftest.$ac_ext
  13106. LIBS=$ac_check_lib_save_LIBS
  13107. fi
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
  13109. $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
  13110. if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
  13111. have_krb5=yes
  13112. else
  13113. have_krb5=no
  13114. fi
  13115. if test $have_krb5=yes; then
  13116. KRB5LIB=-lkrb5
  13117. LIBS="$KRB5LIB $LIBS"
  13118. $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
  13119. fi
  13120. if test "${with_kerberos5}" = no; then
  13121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
  13122. $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
  13123. if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
  13124. $as_echo_n "(cached) " >&6
  13125. else
  13126. ac_check_lib_save_LIBS=$LIBS
  13127. LIBS="-ldes425 $LIBS"
  13128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13129. /* end confdefs.h. */
  13130. /* Override any GCC internal prototype to avoid an error.
  13131. Use char because int might match the return type of a GCC
  13132. builtin and then its argument prototype would still apply. */
  13133. #ifdef __cplusplus
  13134. extern "C"
  13135. #endif
  13136. char des_cbc_encrypt ();
  13137. int
  13138. main ()
  13139. {
  13140. return des_cbc_encrypt ();
  13141. ;
  13142. return 0;
  13143. }
  13144. _ACEOF
  13145. if ac_fn_c_try_link "$LINENO"; then :
  13146. ac_cv_lib_des425_des_cbc_encrypt=yes
  13147. else
  13148. ac_cv_lib_des425_des_cbc_encrypt=no
  13149. fi
  13150. rm -f core conftest.err conftest.$ac_objext \
  13151. conftest$ac_exeext conftest.$ac_ext
  13152. LIBS=$ac_check_lib_save_LIBS
  13153. fi
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
  13155. $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
  13156. if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
  13157. have_des425=yes
  13158. else
  13159. have_des425=no
  13160. fi
  13161. if test $have_des425 = yes; then
  13162. DESLIB=-ldes425
  13163. LIBS="$DESLIB $LIBS"
  13164. $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
  13165. else
  13166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
  13167. $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
  13168. if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
  13169. $as_echo_n "(cached) " >&6
  13170. else
  13171. ac_check_lib_save_LIBS=$LIBS
  13172. LIBS="-ldes $LIBS"
  13173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13174. /* end confdefs.h. */
  13175. /* Override any GCC internal prototype to avoid an error.
  13176. Use char because int might match the return type of a GCC
  13177. builtin and then its argument prototype would still apply. */
  13178. #ifdef __cplusplus
  13179. extern "C"
  13180. #endif
  13181. char des_cbc_encrypt ();
  13182. int
  13183. main ()
  13184. {
  13185. return des_cbc_encrypt ();
  13186. ;
  13187. return 0;
  13188. }
  13189. _ACEOF
  13190. if ac_fn_c_try_link "$LINENO"; then :
  13191. ac_cv_lib_des_des_cbc_encrypt=yes
  13192. else
  13193. ac_cv_lib_des_des_cbc_encrypt=no
  13194. fi
  13195. rm -f core conftest.err conftest.$ac_objext \
  13196. conftest$ac_exeext conftest.$ac_ext
  13197. LIBS=$ac_check_lib_save_LIBS
  13198. fi
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
  13200. $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
  13201. if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
  13202. have_des=yes
  13203. else
  13204. have_des=no
  13205. fi
  13206. if test $have_des = yes; then
  13207. DESLIB=-ldes
  13208. LIBS="$DESLIB $LIBS"
  13209. $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
  13210. fi
  13211. fi
  13212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
  13213. $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
  13214. if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
  13215. $as_echo_n "(cached) " >&6
  13216. else
  13217. ac_check_lib_save_LIBS=$LIBS
  13218. LIBS="-lkrb4 $LIBS"
  13219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13220. /* end confdefs.h. */
  13221. /* Override any GCC internal prototype to avoid an error.
  13222. Use char because int might match the return type of a GCC
  13223. builtin and then its argument prototype would still apply. */
  13224. #ifdef __cplusplus
  13225. extern "C"
  13226. #endif
  13227. char krb_get_cred ();
  13228. int
  13229. main ()
  13230. {
  13231. return krb_get_cred ();
  13232. ;
  13233. return 0;
  13234. }
  13235. _ACEOF
  13236. if ac_fn_c_try_link "$LINENO"; then :
  13237. ac_cv_lib_krb4_krb_get_cred=yes
  13238. else
  13239. ac_cv_lib_krb4_krb_get_cred=no
  13240. fi
  13241. rm -f core conftest.err conftest.$ac_objext \
  13242. conftest$ac_exeext conftest.$ac_ext
  13243. LIBS=$ac_check_lib_save_LIBS
  13244. fi
  13245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
  13246. $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
  13247. if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
  13248. have_krb4=yes
  13249. else
  13250. have_krb4=no
  13251. fi
  13252. if test $have_krb4 = yes; then
  13253. KRB4LIB=-lkrb4
  13254. LIBS="$KRB4LIB $LIBS"
  13255. $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
  13256. else
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
  13258. $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
  13259. if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
  13260. $as_echo_n "(cached) " >&6
  13261. else
  13262. ac_check_lib_save_LIBS=$LIBS
  13263. LIBS="-lkrb $LIBS"
  13264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13265. /* end confdefs.h. */
  13266. /* Override any GCC internal prototype to avoid an error.
  13267. Use char because int might match the return type of a GCC
  13268. builtin and then its argument prototype would still apply. */
  13269. #ifdef __cplusplus
  13270. extern "C"
  13271. #endif
  13272. char krb_get_cred ();
  13273. int
  13274. main ()
  13275. {
  13276. return krb_get_cred ();
  13277. ;
  13278. return 0;
  13279. }
  13280. _ACEOF
  13281. if ac_fn_c_try_link "$LINENO"; then :
  13282. ac_cv_lib_krb_krb_get_cred=yes
  13283. else
  13284. ac_cv_lib_krb_krb_get_cred=no
  13285. fi
  13286. rm -f core conftest.err conftest.$ac_objext \
  13287. conftest$ac_exeext conftest.$ac_ext
  13288. LIBS=$ac_check_lib_save_LIBS
  13289. fi
  13290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
  13291. $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
  13292. if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
  13293. have_krb=yes
  13294. else
  13295. have_krb=no
  13296. fi
  13297. if test $have_krb = yes; then
  13298. KRB4LIB=-lkrb
  13299. LIBS="$KRB4LIB $LIBS"
  13300. $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
  13301. fi
  13302. fi
  13303. fi
  13304. if test "${with_kerberos5}" != no; then
  13305. for ac_header in krb5.h
  13306. do :
  13307. ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
  13308. if test "x$ac_cv_header_krb5_h" = xyes; then :
  13309. cat >>confdefs.h <<_ACEOF
  13310. #define HAVE_KRB5_H 1
  13311. _ACEOF
  13312. ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
  13313. "
  13314. if test "x$ac_cv_member_krb5_error_text" = xyes; then :
  13315. cat >>confdefs.h <<_ACEOF
  13316. #define HAVE_KRB5_ERROR_TEXT 1
  13317. _ACEOF
  13318. fi
  13319. ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
  13320. "
  13321. if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
  13322. cat >>confdefs.h <<_ACEOF
  13323. #define HAVE_KRB5_ERROR_E_TEXT 1
  13324. _ACEOF
  13325. fi
  13326. fi
  13327. done
  13328. else
  13329. for ac_header in des.h
  13330. do :
  13331. ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
  13332. if test "x$ac_cv_header_des_h" = xyes; then :
  13333. cat >>confdefs.h <<_ACEOF
  13334. #define HAVE_DES_H 1
  13335. _ACEOF
  13336. else
  13337. for ac_header in kerberosIV/des.h
  13338. do :
  13339. ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
  13340. if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
  13341. cat >>confdefs.h <<_ACEOF
  13342. #define HAVE_KERBEROSIV_DES_H 1
  13343. _ACEOF
  13344. else
  13345. for ac_header in kerberos/des.h
  13346. do :
  13347. ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
  13348. if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
  13349. cat >>confdefs.h <<_ACEOF
  13350. #define HAVE_KERBEROS_DES_H 1
  13351. _ACEOF
  13352. fi
  13353. done
  13354. fi
  13355. done
  13356. fi
  13357. done
  13358. for ac_header in krb.h
  13359. do :
  13360. ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
  13361. if test "x$ac_cv_header_krb_h" = xyes; then :
  13362. cat >>confdefs.h <<_ACEOF
  13363. #define HAVE_KRB_H 1
  13364. _ACEOF
  13365. else
  13366. for ac_header in kerberosIV/krb.h
  13367. do :
  13368. ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
  13369. if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
  13370. cat >>confdefs.h <<_ACEOF
  13371. #define HAVE_KERBEROSIV_KRB_H 1
  13372. _ACEOF
  13373. else
  13374. for ac_header in kerberos/krb.h
  13375. do :
  13376. ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
  13377. if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
  13378. cat >>confdefs.h <<_ACEOF
  13379. #define HAVE_KERBEROS_KRB_H 1
  13380. _ACEOF
  13381. fi
  13382. done
  13383. fi
  13384. done
  13385. fi
  13386. done
  13387. fi
  13388. for ac_header in com_err.h
  13389. do :
  13390. ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
  13391. if test "x$ac_cv_header_com_err_h" = xyes; then :
  13392. cat >>confdefs.h <<_ACEOF
  13393. #define HAVE_COM_ERR_H 1
  13394. _ACEOF
  13395. fi
  13396. done
  13397. fi
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
  13399. $as_echo_n "checking whether localtime caches TZ... " >&6; }
  13400. if ${emacs_cv_localtime_cache+:} false; then :
  13401. $as_echo_n "(cached) " >&6
  13402. else
  13403. if test x$ac_cv_func_tzset = xyes; then
  13404. if test "$cross_compiling" = yes; then :
  13405. # If we have tzset, assume the worst when cross-compiling.
  13406. emacs_cv_localtime_cache=yes
  13407. else
  13408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13409. /* end confdefs.h. */
  13410. #include <time.h>
  13411. char TZ_GMT0[] = "TZ=GMT0";
  13412. char TZ_PST8[] = "TZ=PST8";
  13413. main()
  13414. {
  13415. time_t now = time ((time_t *) 0);
  13416. int hour_GMT0, hour_unset;
  13417. if (putenv (TZ_GMT0) != 0)
  13418. exit (1);
  13419. hour_GMT0 = localtime (&now)->tm_hour;
  13420. unsetenv("TZ");
  13421. hour_unset = localtime (&now)->tm_hour;
  13422. if (putenv (TZ_PST8) != 0)
  13423. exit (1);
  13424. if (localtime (&now)->tm_hour == hour_GMT0)
  13425. exit (1);
  13426. unsetenv("TZ");
  13427. if (localtime (&now)->tm_hour != hour_unset)
  13428. exit (1);
  13429. exit (0);
  13430. }
  13431. _ACEOF
  13432. if ac_fn_c_try_run "$LINENO"; then :
  13433. emacs_cv_localtime_cache=no
  13434. else
  13435. emacs_cv_localtime_cache=yes
  13436. fi
  13437. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13438. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13439. fi
  13440. else
  13441. # If we lack tzset, report that localtime does not cache TZ,
  13442. # since we can't invalidate the cache if we don't have tzset.
  13443. emacs_cv_localtime_cache=no
  13444. fi
  13445. fi
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
  13447. $as_echo "$emacs_cv_localtime_cache" >&6; }
  13448. if test $emacs_cv_localtime_cache = yes; then
  13449. $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
  13450. fi
  13451. if test "x$HAVE_TIMEVAL" = xyes; then
  13452. for ac_func in gettimeofday
  13453. do :
  13454. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13455. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  13456. cat >>confdefs.h <<_ACEOF
  13457. #define HAVE_GETTIMEOFDAY 1
  13458. _ACEOF
  13459. fi
  13460. done
  13461. if test $ac_cv_func_gettimeofday = yes; then
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
  13463. $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
  13464. if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
  13465. $as_echo_n "(cached) " >&6
  13466. else
  13467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13468. /* end confdefs.h. */
  13469. #ifdef TIME_WITH_SYS_TIME
  13470. #include <sys/time.h>
  13471. #include <time.h>
  13472. #else
  13473. #ifdef HAVE_SYS_TIME_H
  13474. #include <sys/time.h>
  13475. #else
  13476. #include <time.h>
  13477. #endif
  13478. #endif
  13479. int
  13480. main ()
  13481. {
  13482. struct timeval time;
  13483. gettimeofday (&time, 0);
  13484. ;
  13485. return 0;
  13486. }
  13487. _ACEOF
  13488. if ac_fn_c_try_compile "$LINENO"; then :
  13489. emacs_cv_gettimeofday_two_arguments=yes
  13490. else
  13491. emacs_cv_gettimeofday_two_arguments=no
  13492. fi
  13493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13494. fi
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
  13496. $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
  13497. if test $emacs_cv_gettimeofday_two_arguments = no; then
  13498. $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
  13499. fi
  13500. fi
  13501. fi
  13502. ok_so_far=yes
  13503. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  13504. if test "x$ac_cv_func_socket" = xyes; then :
  13505. else
  13506. ok_so_far=no
  13507. fi
  13508. if test $ok_so_far = yes; then
  13509. ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  13510. if test "x$ac_cv_header_netinet_in_h" = xyes; then :
  13511. else
  13512. ok_so_far=no
  13513. fi
  13514. fi
  13515. if test $ok_so_far = yes; then
  13516. ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  13517. if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
  13518. else
  13519. ok_so_far=no
  13520. fi
  13521. fi
  13522. if test $ok_so_far = yes; then
  13523. $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
  13524. fi
  13525. if test -f /usr/lpp/X11/bin/smt.exp; then
  13526. $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
  13527. fi
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
  13529. $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
  13530. if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13532. $as_echo "yes" >&6; }
  13533. $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
  13534. else
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13536. $as_echo "no" >&6; }
  13537. fi
  13538. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13539. if test "x$ac_cv_type_pid_t" = xyes; then :
  13540. else
  13541. cat >>confdefs.h <<_ACEOF
  13542. #define pid_t int
  13543. _ACEOF
  13544. fi
  13545. for ac_header in vfork.h
  13546. do :
  13547. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  13548. if test "x$ac_cv_header_vfork_h" = xyes; then :
  13549. cat >>confdefs.h <<_ACEOF
  13550. #define HAVE_VFORK_H 1
  13551. _ACEOF
  13552. fi
  13553. done
  13554. for ac_func in fork vfork
  13555. do :
  13556. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13557. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13558. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13559. cat >>confdefs.h <<_ACEOF
  13560. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13561. _ACEOF
  13562. fi
  13563. done
  13564. if test "x$ac_cv_func_fork" = xyes; then
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  13566. $as_echo_n "checking for working fork... " >&6; }
  13567. if ${ac_cv_func_fork_works+:} false; then :
  13568. $as_echo_n "(cached) " >&6
  13569. else
  13570. if test "$cross_compiling" = yes; then :
  13571. ac_cv_func_fork_works=cross
  13572. else
  13573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13574. /* end confdefs.h. */
  13575. $ac_includes_default
  13576. int
  13577. main ()
  13578. {
  13579. /* By Ruediger Kuhlmann. */
  13580. return fork () < 0;
  13581. ;
  13582. return 0;
  13583. }
  13584. _ACEOF
  13585. if ac_fn_c_try_run "$LINENO"; then :
  13586. ac_cv_func_fork_works=yes
  13587. else
  13588. ac_cv_func_fork_works=no
  13589. fi
  13590. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13591. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13592. fi
  13593. fi
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  13595. $as_echo "$ac_cv_func_fork_works" >&6; }
  13596. else
  13597. ac_cv_func_fork_works=$ac_cv_func_fork
  13598. fi
  13599. if test "x$ac_cv_func_fork_works" = xcross; then
  13600. case $host in
  13601. *-*-amigaos* | *-*-msdosdjgpp*)
  13602. # Override, as these systems have only a dummy fork() stub
  13603. ac_cv_func_fork_works=no
  13604. ;;
  13605. *)
  13606. ac_cv_func_fork_works=yes
  13607. ;;
  13608. esac
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  13610. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  13611. fi
  13612. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13613. if test "x$ac_cv_func_vfork" = xyes; then
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  13615. $as_echo_n "checking for working vfork... " >&6; }
  13616. if ${ac_cv_func_vfork_works+:} false; then :
  13617. $as_echo_n "(cached) " >&6
  13618. else
  13619. if test "$cross_compiling" = yes; then :
  13620. ac_cv_func_vfork_works=cross
  13621. else
  13622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13623. /* end confdefs.h. */
  13624. /* Thanks to Paul Eggert for this test. */
  13625. $ac_includes_default
  13626. #include <sys/wait.h>
  13627. #ifdef HAVE_VFORK_H
  13628. # include <vfork.h>
  13629. #endif
  13630. /* On some sparc systems, changes by the child to local and incoming
  13631. argument registers are propagated back to the parent. The compiler
  13632. is told about this with #include <vfork.h>, but some compilers
  13633. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  13634. static variable whose address is put into a register that is
  13635. clobbered by the vfork. */
  13636. static void
  13637. #ifdef __cplusplus
  13638. sparc_address_test (int arg)
  13639. # else
  13640. sparc_address_test (arg) int arg;
  13641. #endif
  13642. {
  13643. static pid_t child;
  13644. if (!child) {
  13645. child = vfork ();
  13646. if (child < 0) {
  13647. perror ("vfork");
  13648. _exit(2);
  13649. }
  13650. if (!child) {
  13651. arg = getpid();
  13652. write(-1, "", 0);
  13653. _exit (arg);
  13654. }
  13655. }
  13656. }
  13657. int
  13658. main ()
  13659. {
  13660. pid_t parent = getpid ();
  13661. pid_t child;
  13662. sparc_address_test (0);
  13663. child = vfork ();
  13664. if (child == 0) {
  13665. /* Here is another test for sparc vfork register problems. This
  13666. test uses lots of local variables, at least as many local
  13667. variables as main has allocated so far including compiler
  13668. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  13669. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  13670. reuse the register of parent for one of the local variables,
  13671. since it will think that parent can't possibly be used any more
  13672. in this routine. Assigning to the local variable will thus
  13673. munge parent in the parent process. */
  13674. pid_t
  13675. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  13676. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  13677. /* Convince the compiler that p..p7 are live; otherwise, it might
  13678. use the same hardware register for all 8 local variables. */
  13679. if (p != p1 || p != p2 || p != p3 || p != p4
  13680. || p != p5 || p != p6 || p != p7)
  13681. _exit(1);
  13682. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  13683. from child file descriptors. If the child closes a descriptor
  13684. before it execs or exits, this munges the parent's descriptor
  13685. as well. Test for this by closing stdout in the child. */
  13686. _exit(close(fileno(stdout)) != 0);
  13687. } else {
  13688. int status;
  13689. struct stat st;
  13690. while (wait(&status) != child)
  13691. ;
  13692. return (
  13693. /* Was there some problem with vforking? */
  13694. child < 0
  13695. /* Did the child fail? (This shouldn't happen.) */
  13696. || status
  13697. /* Did the vfork/compiler bug occur? */
  13698. || parent != getpid()
  13699. /* Did the file descriptor bug occur? */
  13700. || fstat(fileno(stdout), &st) != 0
  13701. );
  13702. }
  13703. }
  13704. _ACEOF
  13705. if ac_fn_c_try_run "$LINENO"; then :
  13706. ac_cv_func_vfork_works=yes
  13707. else
  13708. ac_cv_func_vfork_works=no
  13709. fi
  13710. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13711. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13712. fi
  13713. fi
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  13715. $as_echo "$ac_cv_func_vfork_works" >&6; }
  13716. fi;
  13717. if test "x$ac_cv_func_fork_works" = xcross; then
  13718. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  13720. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  13721. fi
  13722. if test "x$ac_cv_func_vfork_works" = xyes; then
  13723. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  13724. else
  13725. $as_echo "#define vfork fork" >>confdefs.h
  13726. fi
  13727. if test "x$ac_cv_func_fork_works" = xyes; then
  13728. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  13729. fi
  13730. for ac_func in snprintf
  13731. do :
  13732. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  13733. if test "x$ac_cv_func_snprintf" = xyes; then :
  13734. cat >>confdefs.h <<_ACEOF
  13735. #define HAVE_SNPRINTF 1
  13736. _ACEOF
  13737. fi
  13738. done
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13740. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13741. if ${emacs_cv_langinfo_codeset+:} false; then :
  13742. $as_echo_n "(cached) " >&6
  13743. else
  13744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13745. /* end confdefs.h. */
  13746. #include <langinfo.h>
  13747. int
  13748. main ()
  13749. {
  13750. char* cs = nl_langinfo(CODESET);
  13751. ;
  13752. return 0;
  13753. }
  13754. _ACEOF
  13755. if ac_fn_c_try_link "$LINENO"; then :
  13756. emacs_cv_langinfo_codeset=yes
  13757. else
  13758. emacs_cv_langinfo_codeset=no
  13759. fi
  13760. rm -f core conftest.err conftest.$ac_objext \
  13761. conftest$ac_exeext conftest.$ac_ext
  13762. fi
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
  13764. $as_echo "$emacs_cv_langinfo_codeset" >&6; }
  13765. if test $emacs_cv_langinfo_codeset = yes; then
  13766. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13767. fi
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  13769. $as_echo_n "checking for mbstate_t... " >&6; }
  13770. if ${ac_cv_type_mbstate_t+:} false; then :
  13771. $as_echo_n "(cached) " >&6
  13772. else
  13773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13774. /* end confdefs.h. */
  13775. $ac_includes_default
  13776. # include <wchar.h>
  13777. int
  13778. main ()
  13779. {
  13780. mbstate_t x; return sizeof x;
  13781. ;
  13782. return 0;
  13783. }
  13784. _ACEOF
  13785. if ac_fn_c_try_compile "$LINENO"; then :
  13786. ac_cv_type_mbstate_t=yes
  13787. else
  13788. ac_cv_type_mbstate_t=no
  13789. fi
  13790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13791. fi
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  13793. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  13794. if test $ac_cv_type_mbstate_t = yes; then
  13795. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  13796. else
  13797. $as_echo "#define mbstate_t int" >>confdefs.h
  13798. fi
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
  13800. $as_echo_n "checking for C restricted array declarations... " >&6; }
  13801. if ${emacs_cv_c_restrict_arr+:} false; then :
  13802. $as_echo_n "(cached) " >&6
  13803. else
  13804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13805. /* end confdefs.h. */
  13806. void fred (int x[__restrict]);
  13807. int
  13808. main ()
  13809. {
  13810. ;
  13811. return 0;
  13812. }
  13813. _ACEOF
  13814. if ac_fn_c_try_compile "$LINENO"; then :
  13815. emacs_cv_c_restrict_arr=yes
  13816. else
  13817. emacs_cv_c_restrict_arr=no
  13818. fi
  13819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13820. fi
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
  13822. $as_echo "$emacs_cv_c_restrict_arr" >&6; }
  13823. if test "$emacs_cv_c_restrict_arr" = yes; then
  13824. $as_echo "#define __restrict_arr __restrict" >>confdefs.h
  13825. fi
  13826. # Set up the CFLAGS for real compilation, so we can substitute it.
  13827. CFLAGS="$REAL_CFLAGS"
  13828. CPPFLAGS="$REAL_CPPFLAGS"
  13829. ## Hack to detect a buggy GCC version.
  13830. if test "x$GCC" = xyes \
  13831. && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
  13832. && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
  13833. && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
  13834. as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
  13835. fi
  13836. version=$PACKAGE_VERSION
  13837. ### Specify what sort of things we'll be editing into Makefile and config.h.
  13838. ### Use configuration here uncanonicalized to avoid exceeding size limits.
  13839. ## Unused?
  13840. ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
  13841. ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
  13842. ## end of LIBX_BASE, but nothing ever set it.
  13843. ## Used in lwlib/Makefile.in.
  13844. if test -n "${machfile}"; then
  13845. M_FILE="\$(srcdir)/${machfile}"
  13846. else
  13847. M_FILE=
  13848. fi
  13849. S_FILE="\$(srcdir)/${opsysfile}"
  13850. cat >>confdefs.h <<_ACEOF
  13851. #define EMACS_CONFIGURATION "${canonical}"
  13852. _ACEOF
  13853. cat >>confdefs.h <<_ACEOF
  13854. #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
  13855. _ACEOF
  13856. if test -n "$machfile"; then
  13857. cat >>confdefs.h <<_ACEOF
  13858. #define config_machfile "${machfile}"
  13859. _ACEOF
  13860. fi
  13861. cat >>confdefs.h <<_ACEOF
  13862. #define config_opsysfile "${opsysfile}"
  13863. _ACEOF
  13864. XMENU_OBJ=
  13865. XOBJ=
  13866. FONT_OBJ=
  13867. if test "${HAVE_X_WINDOWS}" = "yes" ; then
  13868. $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
  13869. XMENU_OBJ=xmenu.o
  13870. XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
  13871. FONT_OBJ=xfont.o
  13872. if test "$HAVE_XFT" = "yes"; then
  13873. FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
  13874. elif test "$HAVE_FREETYPE" = "yes"; then
  13875. FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
  13876. fi
  13877. fi
  13878. WIDGET_OBJ=
  13879. MOTIF_LIBW=
  13880. if test "${USE_X_TOOLKIT}" != "none" ; then
  13881. WIDGET_OBJ=widget.o
  13882. $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
  13883. if test "${USE_X_TOOLKIT}" = "LUCID"; then
  13884. $as_echo "#define USE_LUCID 1" >>confdefs.h
  13885. elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
  13886. $as_echo "#define USE_MOTIF 1" >>confdefs.h
  13887. MOTIF_LIBW=-lXm
  13888. case "$opsys" in
  13889. gnu-linux)
  13890. ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
  13891. MOTIF_LIBW="$MOTIF_LIBW -lXpm"
  13892. ;;
  13893. unixware)
  13894. ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
  13895. ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
  13896. MOTIF_LIBW="MOTIF_LIBW -lXimp"
  13897. ;;
  13898. aix4-2)
  13899. ## olson@mcs.anl.gov says -li18n is needed by -lXm.
  13900. MOTIF_LIBW="$MOTIF_LIBW -li18n"
  13901. ;;
  13902. esac
  13903. MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
  13904. fi
  13905. fi
  13906. TOOLKIT_LIBW=
  13907. case "$USE_X_TOOLKIT" in
  13908. MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
  13909. LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
  13910. none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
  13911. esac
  13912. if test "$USE_X_TOOLKIT" = "none"; then
  13913. LIBXT_OTHER="\$(LIBXSM)"
  13914. OLDXMENU_TARGET="really-oldXMenu"
  13915. else
  13916. LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
  13917. OLDXMENU_TARGET="really-lwlib"
  13918. fi
  13919. ## The X Menu stuff is present in the X10 distribution, but missing
  13920. ## from X11. If we have X10, just use the installed library;
  13921. ## otherwise, use our own copy.
  13922. if test "${HAVE_X11}" = "yes" ; then
  13923. $as_echo "#define HAVE_X11 1" >>confdefs.h
  13924. if test "$USE_X_TOOLKIT" = "none"; then
  13925. OLDXMENU="\${oldXMenudir}/libXMenu11.a"
  13926. else
  13927. OLDXMENU="\${lwlibdir}/liblw.a"
  13928. fi
  13929. LIBXMENU="\$(OLDXMENU)"
  13930. LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
  13931. OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
  13932. else
  13933. ## For a syntactically valid Makefile; not actually used for anything.
  13934. ## See comments in src/Makefile.in.
  13935. OLDXMENU=nothing
  13936. ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
  13937. if test "${HAVE_X_WINDOWS}" = "yes"; then
  13938. LIBXMENU="-lXMenu"
  13939. else
  13940. LIBXMENU=
  13941. fi
  13942. LIBX_OTHER=
  13943. OLDXMENU_DEPS=
  13944. fi
  13945. if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
  13946. OLDXMENU_TARGET=
  13947. OLDXMENU=nothing
  13948. LIBXMENU=
  13949. OLDXMENU_DEPS=
  13950. fi
  13951. if test "${HAVE_MENUS}" = "yes" ; then
  13952. $as_echo "#define HAVE_MENUS 1" >>confdefs.h
  13953. fi
  13954. if test "${GNU_MALLOC}" = "yes" ; then
  13955. $as_echo "#define GNU_MALLOC 1" >>confdefs.h
  13956. fi
  13957. RALLOC_OBJ=
  13958. if test "${REL_ALLOC}" = "yes" ; then
  13959. $as_echo "#define REL_ALLOC 1" >>confdefs.h
  13960. test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
  13961. fi
  13962. if test "$opsys" = "cygwin"; then
  13963. CYGWIN_OBJ="sheap.o"
  13964. ## Cygwin differs because of its unexec().
  13965. PRE_ALLOC_OBJ=
  13966. POST_ALLOC_OBJ=lastfile.o
  13967. else
  13968. CYGWIN_OBJ=
  13969. PRE_ALLOC_OBJ=lastfile.o
  13970. POST_ALLOC_OBJ=
  13971. fi
  13972. # Configure gnulib here, now that we know LIBS.
  13973. LIBC_FATAL_STDERR_=1
  13974. export LIBC_FATAL_STDERR_
  13975. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13976. # for constant arguments. Useless!
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13978. $as_echo_n "checking for working alloca.h... " >&6; }
  13979. if ${ac_cv_working_alloca_h+:} false; then :
  13980. $as_echo_n "(cached) " >&6
  13981. else
  13982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13983. /* end confdefs.h. */
  13984. #include <alloca.h>
  13985. int
  13986. main ()
  13987. {
  13988. char *p = (char *) alloca (2 * sizeof (int));
  13989. if (p) return 0;
  13990. ;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. if ac_fn_c_try_link "$LINENO"; then :
  13995. ac_cv_working_alloca_h=yes
  13996. else
  13997. ac_cv_working_alloca_h=no
  13998. fi
  13999. rm -f core conftest.err conftest.$ac_objext \
  14000. conftest$ac_exeext conftest.$ac_ext
  14001. fi
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14003. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14004. if test $ac_cv_working_alloca_h = yes; then
  14005. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14006. fi
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14008. $as_echo_n "checking for alloca... " >&6; }
  14009. if ${ac_cv_func_alloca_works+:} false; then :
  14010. $as_echo_n "(cached) " >&6
  14011. else
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. #ifdef __GNUC__
  14015. # define alloca __builtin_alloca
  14016. #else
  14017. # ifdef _MSC_VER
  14018. # include <malloc.h>
  14019. # define alloca _alloca
  14020. # else
  14021. # ifdef HAVE_ALLOCA_H
  14022. # include <alloca.h>
  14023. # else
  14024. # ifdef _AIX
  14025. #pragma alloca
  14026. # else
  14027. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14028. void *alloca (size_t);
  14029. # endif
  14030. # endif
  14031. # endif
  14032. # endif
  14033. #endif
  14034. int
  14035. main ()
  14036. {
  14037. char *p = (char *) alloca (1);
  14038. if (p) return 0;
  14039. ;
  14040. return 0;
  14041. }
  14042. _ACEOF
  14043. if ac_fn_c_try_link "$LINENO"; then :
  14044. ac_cv_func_alloca_works=yes
  14045. else
  14046. ac_cv_func_alloca_works=no
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext \
  14049. conftest$ac_exeext conftest.$ac_ext
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14052. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14053. if test $ac_cv_func_alloca_works = yes; then
  14054. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14055. else
  14056. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14057. # that cause trouble. Some versions do not even contain alloca or
  14058. # contain a buggy version. If you still want to use their alloca,
  14059. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14060. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14061. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14063. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14064. if ${ac_cv_os_cray+:} false; then :
  14065. $as_echo_n "(cached) " >&6
  14066. else
  14067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14068. /* end confdefs.h. */
  14069. #if defined CRAY && ! defined CRAY2
  14070. webecray
  14071. #else
  14072. wenotbecray
  14073. #endif
  14074. _ACEOF
  14075. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14076. $EGREP "webecray" >/dev/null 2>&1; then :
  14077. ac_cv_os_cray=yes
  14078. else
  14079. ac_cv_os_cray=no
  14080. fi
  14081. rm -f conftest*
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14084. $as_echo "$ac_cv_os_cray" >&6; }
  14085. if test $ac_cv_os_cray = yes; then
  14086. for ac_func in _getb67 GETB67 getb67; do
  14087. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14088. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14089. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14090. cat >>confdefs.h <<_ACEOF
  14091. #define CRAY_STACKSEG_END $ac_func
  14092. _ACEOF
  14093. break
  14094. fi
  14095. done
  14096. fi
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14098. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14099. if ${ac_cv_c_stack_direction+:} false; then :
  14100. $as_echo_n "(cached) " >&6
  14101. else
  14102. if test "$cross_compiling" = yes; then :
  14103. ac_cv_c_stack_direction=0
  14104. else
  14105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14106. /* end confdefs.h. */
  14107. $ac_includes_default
  14108. int
  14109. find_stack_direction (int *addr, int depth)
  14110. {
  14111. int dir, dummy = 0;
  14112. if (! addr)
  14113. addr = &dummy;
  14114. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14115. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14116. return dir + dummy;
  14117. }
  14118. int
  14119. main (int argc, char **argv)
  14120. {
  14121. return find_stack_direction (0, argc + !argv + 20) < 0;
  14122. }
  14123. _ACEOF
  14124. if ac_fn_c_try_run "$LINENO"; then :
  14125. ac_cv_c_stack_direction=1
  14126. else
  14127. ac_cv_c_stack_direction=-1
  14128. fi
  14129. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14130. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14131. fi
  14132. fi
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14134. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14135. cat >>confdefs.h <<_ACEOF
  14136. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14137. _ACEOF
  14138. fi
  14139. for ac_func in $ac_func_list
  14140. do :
  14141. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14142. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14143. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14144. cat >>confdefs.h <<_ACEOF
  14145. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14146. _ACEOF
  14147. fi
  14148. done
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14150. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14151. if ${ac_cv_c_bigendian+:} false; then :
  14152. $as_echo_n "(cached) " >&6
  14153. else
  14154. ac_cv_c_bigendian=unknown
  14155. # See if we're dealing with a universal compiler.
  14156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14157. /* end confdefs.h. */
  14158. #ifndef __APPLE_CC__
  14159. not a universal capable compiler
  14160. #endif
  14161. typedef int dummy;
  14162. _ACEOF
  14163. if ac_fn_c_try_compile "$LINENO"; then :
  14164. # Check for potential -arch flags. It is not universal unless
  14165. # there are at least two -arch flags with different values.
  14166. ac_arch=
  14167. ac_prev=
  14168. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14169. if test -n "$ac_prev"; then
  14170. case $ac_word in
  14171. i?86 | x86_64 | ppc | ppc64)
  14172. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14173. ac_arch=$ac_word
  14174. else
  14175. ac_cv_c_bigendian=universal
  14176. break
  14177. fi
  14178. ;;
  14179. esac
  14180. ac_prev=
  14181. elif test "x$ac_word" = "x-arch"; then
  14182. ac_prev=arch
  14183. fi
  14184. done
  14185. fi
  14186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14187. if test $ac_cv_c_bigendian = unknown; then
  14188. # See if sys/param.h defines the BYTE_ORDER macro.
  14189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14190. /* end confdefs.h. */
  14191. #include <sys/types.h>
  14192. #include <sys/param.h>
  14193. int
  14194. main ()
  14195. {
  14196. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14197. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14198. && LITTLE_ENDIAN)
  14199. bogus endian macros
  14200. #endif
  14201. ;
  14202. return 0;
  14203. }
  14204. _ACEOF
  14205. if ac_fn_c_try_compile "$LINENO"; then :
  14206. # It does; now see whether it defined to BIG_ENDIAN or not.
  14207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14208. /* end confdefs.h. */
  14209. #include <sys/types.h>
  14210. #include <sys/param.h>
  14211. int
  14212. main ()
  14213. {
  14214. #if BYTE_ORDER != BIG_ENDIAN
  14215. not big endian
  14216. #endif
  14217. ;
  14218. return 0;
  14219. }
  14220. _ACEOF
  14221. if ac_fn_c_try_compile "$LINENO"; then :
  14222. ac_cv_c_bigendian=yes
  14223. else
  14224. ac_cv_c_bigendian=no
  14225. fi
  14226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14227. fi
  14228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14229. fi
  14230. if test $ac_cv_c_bigendian = unknown; then
  14231. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. #include <limits.h>
  14235. int
  14236. main ()
  14237. {
  14238. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14239. bogus endian macros
  14240. #endif
  14241. ;
  14242. return 0;
  14243. }
  14244. _ACEOF
  14245. if ac_fn_c_try_compile "$LINENO"; then :
  14246. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. #include <limits.h>
  14250. int
  14251. main ()
  14252. {
  14253. #ifndef _BIG_ENDIAN
  14254. not big endian
  14255. #endif
  14256. ;
  14257. return 0;
  14258. }
  14259. _ACEOF
  14260. if ac_fn_c_try_compile "$LINENO"; then :
  14261. ac_cv_c_bigendian=yes
  14262. else
  14263. ac_cv_c_bigendian=no
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. fi
  14267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14268. fi
  14269. if test $ac_cv_c_bigendian = unknown; then
  14270. # Compile a test program.
  14271. if test "$cross_compiling" = yes; then :
  14272. # Try to guess by grepping values from an object file.
  14273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14274. /* end confdefs.h. */
  14275. short int ascii_mm[] =
  14276. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14277. short int ascii_ii[] =
  14278. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14279. int use_ascii (int i) {
  14280. return ascii_mm[i] + ascii_ii[i];
  14281. }
  14282. short int ebcdic_ii[] =
  14283. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14284. short int ebcdic_mm[] =
  14285. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14286. int use_ebcdic (int i) {
  14287. return ebcdic_mm[i] + ebcdic_ii[i];
  14288. }
  14289. extern int foo;
  14290. int
  14291. main ()
  14292. {
  14293. return use_ascii (foo) == use_ebcdic (foo);
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_compile "$LINENO"; then :
  14299. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14300. ac_cv_c_bigendian=yes
  14301. fi
  14302. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14303. if test "$ac_cv_c_bigendian" = unknown; then
  14304. ac_cv_c_bigendian=no
  14305. else
  14306. # finding both strings is unlikely to happen, but who knows?
  14307. ac_cv_c_bigendian=unknown
  14308. fi
  14309. fi
  14310. fi
  14311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14312. else
  14313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. /* end confdefs.h. */
  14315. $ac_includes_default
  14316. int
  14317. main ()
  14318. {
  14319. /* Are we little or big endian? From Harbison&Steele. */
  14320. union
  14321. {
  14322. long int l;
  14323. char c[sizeof (long int)];
  14324. } u;
  14325. u.l = 1;
  14326. return u.c[sizeof (long int) - 1] == 1;
  14327. ;
  14328. return 0;
  14329. }
  14330. _ACEOF
  14331. if ac_fn_c_try_run "$LINENO"; then :
  14332. ac_cv_c_bigendian=no
  14333. else
  14334. ac_cv_c_bigendian=yes
  14335. fi
  14336. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14337. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14338. fi
  14339. fi
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14342. $as_echo "$ac_cv_c_bigendian" >&6; }
  14343. case $ac_cv_c_bigendian in #(
  14344. yes)
  14345. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14346. ;; #(
  14347. no)
  14348. ;; #(
  14349. universal)
  14350. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14351. ;; #(
  14352. *)
  14353. as_fn_error $? "unknown endianness
  14354. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14355. esac
  14356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14357. $as_echo_n "checking for inline... " >&6; }
  14358. if ${ac_cv_c_inline+:} false; then :
  14359. $as_echo_n "(cached) " >&6
  14360. else
  14361. ac_cv_c_inline=no
  14362. for ac_kw in inline __inline__ __inline; do
  14363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14364. /* end confdefs.h. */
  14365. #ifndef __cplusplus
  14366. typedef int foo_t;
  14367. static $ac_kw foo_t static_foo () {return 0; }
  14368. $ac_kw foo_t foo () {return 0; }
  14369. #endif
  14370. _ACEOF
  14371. if ac_fn_c_try_compile "$LINENO"; then :
  14372. ac_cv_c_inline=$ac_kw
  14373. fi
  14374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14375. test "$ac_cv_c_inline" != no && break
  14376. done
  14377. fi
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14379. $as_echo "$ac_cv_c_inline" >&6; }
  14380. case $ac_cv_c_inline in
  14381. inline | yes) ;;
  14382. *)
  14383. case $ac_cv_c_inline in
  14384. no) ac_val=;;
  14385. *) ac_val=$ac_cv_c_inline;;
  14386. esac
  14387. cat >>confdefs.h <<_ACEOF
  14388. #ifndef __cplusplus
  14389. #define inline $ac_val
  14390. #endif
  14391. _ACEOF
  14392. ;;
  14393. esac
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
  14395. $as_echo_n "checking whether strtold conforms to C99... " >&6; }
  14396. if ${gl_cv_func_c99_strtold+:} false; then :
  14397. $as_echo_n "(cached) " >&6
  14398. else
  14399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14400. /* end confdefs.h. */
  14401. /* On HP-UX before 11.23, strtold returns a struct instead of
  14402. long double. Reject implementations like that, by requiring
  14403. compatibility with the C99 prototype. */
  14404. #include <stdlib.h>
  14405. static long double (*p) (char const *, char **) = strtold;
  14406. static long double
  14407. test (char const *nptr, char **endptr)
  14408. {
  14409. long double r;
  14410. r = strtold (nptr, endptr);
  14411. return r;
  14412. }
  14413. int
  14414. main ()
  14415. {
  14416. return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
  14417. ;
  14418. return 0;
  14419. }
  14420. _ACEOF
  14421. if ac_fn_c_try_link "$LINENO"; then :
  14422. gl_cv_func_c99_strtold=yes
  14423. else
  14424. gl_cv_func_c99_strtold=no
  14425. fi
  14426. rm -f core conftest.err conftest.$ac_objext \
  14427. conftest$ac_exeext conftest.$ac_ext
  14428. fi
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
  14430. $as_echo "$gl_cv_func_c99_strtold" >&6; }
  14431. if test $gl_cv_func_c99_strtold = yes; then
  14432. $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
  14433. fi
  14434. GNULIB_CHDIR=0;
  14435. GNULIB_CHOWN=0;
  14436. GNULIB_CLOSE=0;
  14437. GNULIB_DUP=0;
  14438. GNULIB_DUP2=0;
  14439. GNULIB_DUP3=0;
  14440. GNULIB_ENVIRON=0;
  14441. GNULIB_EUIDACCESS=0;
  14442. GNULIB_FACCESSAT=0;
  14443. GNULIB_FCHDIR=0;
  14444. GNULIB_FCHOWNAT=0;
  14445. GNULIB_FDATASYNC=0;
  14446. GNULIB_FSYNC=0;
  14447. GNULIB_FTRUNCATE=0;
  14448. GNULIB_GETCWD=0;
  14449. GNULIB_GETDOMAINNAME=0;
  14450. GNULIB_GETDTABLESIZE=0;
  14451. GNULIB_GETGROUPS=0;
  14452. GNULIB_GETHOSTNAME=0;
  14453. GNULIB_GETLOGIN=0;
  14454. GNULIB_GETLOGIN_R=0;
  14455. GNULIB_GETPAGESIZE=0;
  14456. GNULIB_GETUSERSHELL=0;
  14457. GNULIB_GROUP_MEMBER=0;
  14458. GNULIB_LCHOWN=0;
  14459. GNULIB_LINK=0;
  14460. GNULIB_LINKAT=0;
  14461. GNULIB_LSEEK=0;
  14462. GNULIB_PIPE=0;
  14463. GNULIB_PIPE2=0;
  14464. GNULIB_PREAD=0;
  14465. GNULIB_PWRITE=0;
  14466. GNULIB_READ=0;
  14467. GNULIB_READLINK=0;
  14468. GNULIB_READLINKAT=0;
  14469. GNULIB_RMDIR=0;
  14470. GNULIB_SLEEP=0;
  14471. GNULIB_SYMLINK=0;
  14472. GNULIB_SYMLINKAT=0;
  14473. GNULIB_TTYNAME_R=0;
  14474. GNULIB_UNISTD_H_GETOPT=0;
  14475. GNULIB_UNISTD_H_NONBLOCKING=0;
  14476. GNULIB_UNISTD_H_SIGPIPE=0;
  14477. GNULIB_UNLINK=0;
  14478. GNULIB_UNLINKAT=0;
  14479. GNULIB_USLEEP=0;
  14480. GNULIB_WRITE=0;
  14481. HAVE_CHOWN=1;
  14482. HAVE_DUP2=1;
  14483. HAVE_DUP3=1;
  14484. HAVE_EUIDACCESS=1;
  14485. HAVE_FACCESSAT=1;
  14486. HAVE_FCHDIR=1;
  14487. HAVE_FCHOWNAT=1;
  14488. HAVE_FDATASYNC=1;
  14489. HAVE_FSYNC=1;
  14490. HAVE_FTRUNCATE=1;
  14491. HAVE_GETDTABLESIZE=1;
  14492. HAVE_GETGROUPS=1;
  14493. HAVE_GETHOSTNAME=1;
  14494. HAVE_GETLOGIN=1;
  14495. HAVE_GETPAGESIZE=1;
  14496. HAVE_GROUP_MEMBER=1;
  14497. HAVE_LCHOWN=1;
  14498. HAVE_LINK=1;
  14499. HAVE_LINKAT=1;
  14500. HAVE_PIPE=1;
  14501. HAVE_PIPE2=1;
  14502. HAVE_PREAD=1;
  14503. HAVE_PWRITE=1;
  14504. HAVE_READLINK=1;
  14505. HAVE_READLINKAT=1;
  14506. HAVE_SLEEP=1;
  14507. HAVE_SYMLINK=1;
  14508. HAVE_SYMLINKAT=1;
  14509. HAVE_UNLINKAT=1;
  14510. HAVE_USLEEP=1;
  14511. HAVE_DECL_ENVIRON=1;
  14512. HAVE_DECL_FCHDIR=1;
  14513. HAVE_DECL_FDATASYNC=1;
  14514. HAVE_DECL_GETDOMAINNAME=1;
  14515. HAVE_DECL_GETLOGIN_R=1;
  14516. HAVE_DECL_GETPAGESIZE=1;
  14517. HAVE_DECL_GETUSERSHELL=1;
  14518. HAVE_DECL_TTYNAME_R=1;
  14519. HAVE_OS_H=0;
  14520. HAVE_SYS_PARAM_H=0;
  14521. REPLACE_CHOWN=0;
  14522. REPLACE_CLOSE=0;
  14523. REPLACE_DUP=0;
  14524. REPLACE_DUP2=0;
  14525. REPLACE_FCHOWNAT=0;
  14526. REPLACE_GETCWD=0;
  14527. REPLACE_GETDOMAINNAME=0;
  14528. REPLACE_GETLOGIN_R=0;
  14529. REPLACE_GETGROUPS=0;
  14530. REPLACE_GETPAGESIZE=0;
  14531. REPLACE_LCHOWN=0;
  14532. REPLACE_LINK=0;
  14533. REPLACE_LINKAT=0;
  14534. REPLACE_LSEEK=0;
  14535. REPLACE_PREAD=0;
  14536. REPLACE_PWRITE=0;
  14537. REPLACE_READ=0;
  14538. REPLACE_READLINK=0;
  14539. REPLACE_RMDIR=0;
  14540. REPLACE_SLEEP=0;
  14541. REPLACE_SYMLINK=0;
  14542. REPLACE_TTYNAME_R=0;
  14543. REPLACE_UNLINK=0;
  14544. REPLACE_UNLINKAT=0;
  14545. REPLACE_USLEEP=0;
  14546. REPLACE_WRITE=0;
  14547. UNISTD_H_HAVE_WINSOCK2_H=0;
  14548. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
  14550. $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
  14551. if ${ac_cv_struct_st_dm_mode+:} false; then :
  14552. $as_echo_n "(cached) " >&6
  14553. else
  14554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14555. /* end confdefs.h. */
  14556. #include <sys/types.h>
  14557. #include <sys/stat.h>
  14558. int
  14559. main ()
  14560. {
  14561. struct stat s; s.st_dm_mode;
  14562. ;
  14563. return 0;
  14564. }
  14565. _ACEOF
  14566. if ac_fn_c_try_compile "$LINENO"; then :
  14567. ac_cv_struct_st_dm_mode=yes
  14568. else
  14569. ac_cv_struct_st_dm_mode=no
  14570. fi
  14571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14572. fi
  14573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
  14574. $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
  14575. if test $ac_cv_struct_st_dm_mode = yes; then
  14576. $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
  14577. fi
  14578. ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
  14579. if test "x$ac_cv_have_decl_strmode" = xyes; then :
  14580. ac_have_decl=1
  14581. else
  14582. ac_have_decl=0
  14583. fi
  14584. cat >>confdefs.h <<_ACEOF
  14585. #define HAVE_DECL_STRMODE $ac_have_decl
  14586. _ACEOF
  14587. GNULIB__EXIT=0;
  14588. GNULIB_ATOLL=0;
  14589. GNULIB_CALLOC_POSIX=0;
  14590. GNULIB_CANONICALIZE_FILE_NAME=0;
  14591. GNULIB_GETLOADAVG=0;
  14592. GNULIB_GETSUBOPT=0;
  14593. GNULIB_GRANTPT=0;
  14594. GNULIB_MALLOC_POSIX=0;
  14595. GNULIB_MBTOWC=0;
  14596. GNULIB_MKDTEMP=0;
  14597. GNULIB_MKOSTEMP=0;
  14598. GNULIB_MKOSTEMPS=0;
  14599. GNULIB_MKSTEMP=0;
  14600. GNULIB_MKSTEMPS=0;
  14601. GNULIB_PTSNAME=0;
  14602. GNULIB_PUTENV=0;
  14603. GNULIB_RANDOM_R=0;
  14604. GNULIB_REALLOC_POSIX=0;
  14605. GNULIB_REALPATH=0;
  14606. GNULIB_RPMATCH=0;
  14607. GNULIB_SETENV=0;
  14608. GNULIB_STRTOD=0;
  14609. GNULIB_STRTOLL=0;
  14610. GNULIB_STRTOULL=0;
  14611. GNULIB_SYSTEM_POSIX=0;
  14612. GNULIB_UNLOCKPT=0;
  14613. GNULIB_UNSETENV=0;
  14614. GNULIB_WCTOMB=0;
  14615. HAVE__EXIT=1;
  14616. HAVE_ATOLL=1;
  14617. HAVE_CANONICALIZE_FILE_NAME=1;
  14618. HAVE_DECL_GETLOADAVG=1;
  14619. HAVE_GETSUBOPT=1;
  14620. HAVE_GRANTPT=1;
  14621. HAVE_MKDTEMP=1;
  14622. HAVE_MKOSTEMP=1;
  14623. HAVE_MKOSTEMPS=1;
  14624. HAVE_MKSTEMP=1;
  14625. HAVE_MKSTEMPS=1;
  14626. HAVE_PTSNAME=1;
  14627. HAVE_RANDOM_H=1;
  14628. HAVE_RANDOM_R=1;
  14629. HAVE_REALPATH=1;
  14630. HAVE_RPMATCH=1;
  14631. HAVE_SETENV=1;
  14632. HAVE_DECL_SETENV=1;
  14633. HAVE_STRTOD=1;
  14634. HAVE_STRTOLL=1;
  14635. HAVE_STRTOULL=1;
  14636. HAVE_STRUCT_RANDOM_DATA=1;
  14637. HAVE_SYS_LOADAVG_H=0;
  14638. HAVE_UNLOCKPT=1;
  14639. HAVE_DECL_UNSETENV=1;
  14640. REPLACE_CALLOC=0;
  14641. REPLACE_CANONICALIZE_FILE_NAME=0;
  14642. REPLACE_MALLOC=0;
  14643. REPLACE_MBTOWC=0;
  14644. REPLACE_MKSTEMP=0;
  14645. REPLACE_PUTENV=0;
  14646. REPLACE_REALLOC=0;
  14647. REPLACE_REALPATH=0;
  14648. REPLACE_SETENV=0;
  14649. REPLACE_STRTOD=0;
  14650. REPLACE_UNSETENV=0;
  14651. REPLACE_WCTOMB=0;
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  14653. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  14654. if ${gl_cv_have_include_next+:} false; then :
  14655. $as_echo_n "(cached) " >&6
  14656. else
  14657. rm -rf conftestd1a conftestd1b conftestd2
  14658. mkdir conftestd1a conftestd1b conftestd2
  14659. cat <<EOF > conftestd1a/conftest.h
  14660. #define DEFINED_IN_CONFTESTD1
  14661. #include_next <conftest.h>
  14662. #ifdef DEFINED_IN_CONFTESTD2
  14663. int foo;
  14664. #else
  14665. #error "include_next doesn't work"
  14666. #endif
  14667. EOF
  14668. cat <<EOF > conftestd1b/conftest.h
  14669. #define DEFINED_IN_CONFTESTD1
  14670. #include <stdio.h>
  14671. #include_next <conftest.h>
  14672. #ifdef DEFINED_IN_CONFTESTD2
  14673. int foo;
  14674. #else
  14675. #error "include_next doesn't work"
  14676. #endif
  14677. EOF
  14678. cat <<EOF > conftestd2/conftest.h
  14679. #ifndef DEFINED_IN_CONFTESTD1
  14680. #error "include_next test doesn't work"
  14681. #endif
  14682. #define DEFINED_IN_CONFTESTD2
  14683. EOF
  14684. gl_save_CPPFLAGS="$CPPFLAGS"
  14685. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  14686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14687. /* end confdefs.h. */
  14688. #include <conftest.h>
  14689. _ACEOF
  14690. if ac_fn_c_try_compile "$LINENO"; then :
  14691. gl_cv_have_include_next=yes
  14692. else
  14693. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  14694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14695. /* end confdefs.h. */
  14696. #include <conftest.h>
  14697. _ACEOF
  14698. if ac_fn_c_try_compile "$LINENO"; then :
  14699. gl_cv_have_include_next=buggy
  14700. else
  14701. gl_cv_have_include_next=no
  14702. fi
  14703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14704. fi
  14705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14706. CPPFLAGS="$gl_save_CPPFLAGS"
  14707. rm -rf conftestd1a conftestd1b conftestd2
  14708. fi
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  14710. $as_echo "$gl_cv_have_include_next" >&6; }
  14711. PRAGMA_SYSTEM_HEADER=
  14712. if test $gl_cv_have_include_next = yes; then
  14713. INCLUDE_NEXT=include_next
  14714. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  14715. if test -n "$GCC"; then
  14716. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  14717. fi
  14718. else
  14719. if test $gl_cv_have_include_next = buggy; then
  14720. INCLUDE_NEXT=include
  14721. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  14722. else
  14723. INCLUDE_NEXT=include
  14724. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  14725. fi
  14726. fi
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  14728. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  14729. if ${gl_cv_pragma_columns+:} false; then :
  14730. $as_echo_n "(cached) " >&6
  14731. else
  14732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14733. /* end confdefs.h. */
  14734. #ifdef __TANDEM
  14735. choke me
  14736. #endif
  14737. _ACEOF
  14738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14739. $EGREP "choke me" >/dev/null 2>&1; then :
  14740. gl_cv_pragma_columns=yes
  14741. else
  14742. gl_cv_pragma_columns=no
  14743. fi
  14744. rm -f conftest*
  14745. fi
  14746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  14747. $as_echo "$gl_cv_pragma_columns" >&6; }
  14748. if test $gl_cv_pragma_columns = yes; then
  14749. PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  14750. else
  14751. PRAGMA_COLUMNS=
  14752. fi
  14753. if test $gl_cv_have_include_next = yes; then
  14754. gl_cv_next_getopt_h='<'getopt.h'>'
  14755. else
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
  14757. $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
  14758. if ${gl_cv_next_getopt_h+:} false; then :
  14759. $as_echo_n "(cached) " >&6
  14760. else
  14761. if test $ac_cv_header_getopt_h = yes; then
  14762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14763. /* end confdefs.h. */
  14764. #include <getopt.h>
  14765. _ACEOF
  14766. case "$host_os" in
  14767. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14768. *) gl_absname_cpp="$ac_cpp" ;;
  14769. esac
  14770. case "$host_os" in
  14771. mingw*)
  14772. gl_dirsep_regex='[/\\]'
  14773. ;;
  14774. *)
  14775. gl_dirsep_regex='/'
  14776. ;;
  14777. esac
  14778. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
  14779. s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
  14780. s|^/[^/]|//&|
  14781. p
  14782. q
  14783. }'
  14784. gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14785. sed -n "$gl_absolute_header_sed"`'"'
  14786. else
  14787. gl_cv_next_getopt_h='<'getopt.h'>'
  14788. fi
  14789. fi
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
  14791. $as_echo "$gl_cv_next_getopt_h" >&6; }
  14792. fi
  14793. NEXT_GETOPT_H=$gl_cv_next_getopt_h
  14794. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14795. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14796. gl_next_as_first_directive='<'getopt.h'>'
  14797. else
  14798. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14799. gl_next_as_first_directive=$gl_cv_next_getopt_h
  14800. fi
  14801. NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
  14802. if test $ac_cv_header_getopt_h = yes; then
  14803. HAVE_GETOPT_H=1
  14804. else
  14805. HAVE_GETOPT_H=0
  14806. fi
  14807. gl_replace_getopt=
  14808. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14809. for ac_header in getopt.h
  14810. do :
  14811. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14812. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14813. cat >>confdefs.h <<_ACEOF
  14814. #define HAVE_GETOPT_H 1
  14815. _ACEOF
  14816. else
  14817. gl_replace_getopt=yes
  14818. fi
  14819. done
  14820. fi
  14821. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14822. for ac_func in getopt_long_only
  14823. do :
  14824. ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
  14825. if test "x$ac_cv_func_getopt_long_only" = xyes; then :
  14826. cat >>confdefs.h <<_ACEOF
  14827. #define HAVE_GETOPT_LONG_ONLY 1
  14828. _ACEOF
  14829. else
  14830. gl_replace_getopt=yes
  14831. fi
  14832. done
  14833. fi
  14834. if test -z "$gl_replace_getopt"; then
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
  14836. $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
  14837. if ${gl_cv_func_getopt_posix+:} false; then :
  14838. $as_echo_n "(cached) " >&6
  14839. else
  14840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14841. /* end confdefs.h. */
  14842. #include <unistd.h>
  14843. int
  14844. main ()
  14845. {
  14846. int *p = &optreset; return optreset;
  14847. ;
  14848. return 0;
  14849. }
  14850. _ACEOF
  14851. if ac_fn_c_try_link "$LINENO"; then :
  14852. gl_optind_min=1
  14853. else
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. #include <getopt.h>
  14857. int
  14858. main ()
  14859. {
  14860. return !getopt_clip;
  14861. ;
  14862. return 0;
  14863. }
  14864. _ACEOF
  14865. if ac_fn_c_try_compile "$LINENO"; then :
  14866. gl_optind_min=1
  14867. else
  14868. gl_optind_min=0
  14869. fi
  14870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14871. fi
  14872. rm -f core conftest.err conftest.$ac_objext \
  14873. conftest$ac_exeext conftest.$ac_ext
  14874. gl_save_CPPFLAGS=$CPPFLAGS
  14875. CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
  14876. if test "$cross_compiling" = yes; then :
  14877. case "$host_os" in
  14878. mingw*) gl_cv_func_getopt_posix="guessing no";;
  14879. darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
  14880. *) gl_cv_func_getopt_posix="guessing yes";;
  14881. esac
  14882. else
  14883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14884. /* end confdefs.h. */
  14885. #include <unistd.h>
  14886. #include <stdlib.h>
  14887. #include <string.h>
  14888. int
  14889. main ()
  14890. {
  14891. {
  14892. static char program[] = "program";
  14893. static char a[] = "-a";
  14894. static char foo[] = "foo";
  14895. static char bar[] = "bar";
  14896. char *argv[] = { program, a, foo, bar, NULL };
  14897. int c;
  14898. optind = OPTIND_MIN;
  14899. opterr = 0;
  14900. c = getopt (4, argv, "ab");
  14901. if (!(c == 'a'))
  14902. return 1;
  14903. c = getopt (4, argv, "ab");
  14904. if (!(c == -1))
  14905. return 2;
  14906. if (!(optind == 2))
  14907. return 3;
  14908. }
  14909. /* Some internal state exists at this point. */
  14910. {
  14911. static char program[] = "program";
  14912. static char donald[] = "donald";
  14913. static char p[] = "-p";
  14914. static char billy[] = "billy";
  14915. static char duck[] = "duck";
  14916. static char a[] = "-a";
  14917. static char bar[] = "bar";
  14918. char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
  14919. int c;
  14920. optind = OPTIND_MIN;
  14921. opterr = 0;
  14922. c = getopt (7, argv, "+abp:q:");
  14923. if (!(c == -1))
  14924. return 4;
  14925. if (!(strcmp (argv[0], "program") == 0))
  14926. return 5;
  14927. if (!(strcmp (argv[1], "donald") == 0))
  14928. return 6;
  14929. if (!(strcmp (argv[2], "-p") == 0))
  14930. return 7;
  14931. if (!(strcmp (argv[3], "billy") == 0))
  14932. return 8;
  14933. if (!(strcmp (argv[4], "duck") == 0))
  14934. return 9;
  14935. if (!(strcmp (argv[5], "-a") == 0))
  14936. return 10;
  14937. if (!(strcmp (argv[6], "bar") == 0))
  14938. return 11;
  14939. if (!(optind == 1))
  14940. return 12;
  14941. }
  14942. /* Detect MacOS 10.5, AIX 7.1 bug. */
  14943. {
  14944. static char program[] = "program";
  14945. static char ab[] = "-ab";
  14946. char *argv[3] = { program, ab, NULL };
  14947. optind = OPTIND_MIN;
  14948. opterr = 0;
  14949. if (getopt (2, argv, "ab:") != 'a')
  14950. return 13;
  14951. if (getopt (2, argv, "ab:") != '?')
  14952. return 14;
  14953. if (optopt != 'b')
  14954. return 15;
  14955. if (optind != 2)
  14956. return 16;
  14957. }
  14958. return 0;
  14959. }
  14960. _ACEOF
  14961. if ac_fn_c_try_run "$LINENO"; then :
  14962. gl_cv_func_getopt_posix=yes
  14963. else
  14964. gl_cv_func_getopt_posix=no
  14965. fi
  14966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14968. fi
  14969. CPPFLAGS=$gl_save_CPPFLAGS
  14970. fi
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
  14972. $as_echo "$gl_cv_func_getopt_posix" >&6; }
  14973. case "$gl_cv_func_getopt_posix" in
  14974. *no) gl_replace_getopt=yes ;;
  14975. esac
  14976. fi
  14977. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
  14979. $as_echo_n "checking for working GNU getopt function... " >&6; }
  14980. if ${gl_cv_func_getopt_gnu+:} false; then :
  14981. $as_echo_n "(cached) " >&6
  14982. else
  14983. # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
  14984. # optstring is necessary for programs like m4 that have POSIX-mandated
  14985. # semantics for supporting options interspersed with files.
  14986. # Also, since getopt_long is a GNU extension, we require optind=0.
  14987. # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
  14988. # so take care to revert to the correct (non-)export state.
  14989. gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
  14990. case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
  14991. xx) gl_had_POSIXLY_CORRECT=exported ;;
  14992. x) gl_had_POSIXLY_CORRECT=yes ;;
  14993. *) gl_had_POSIXLY_CORRECT= ;;
  14994. esac
  14995. POSIXLY_CORRECT=1
  14996. export POSIXLY_CORRECT
  14997. if test "$cross_compiling" = yes; then :
  14998. case $host_os:$ac_cv_have_decl_optreset in
  14999. *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
  15000. *:yes) gl_cv_func_getopt_gnu=no;;
  15001. *) gl_cv_func_getopt_gnu=yes;;
  15002. esac
  15003. else
  15004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15005. /* end confdefs.h. */
  15006. #include <getopt.h>
  15007. #include <stddef.h>
  15008. #include <string.h>
  15009. #include <stdlib.h>
  15010. #if defined __MACH__ && defined __APPLE__
  15011. /* Avoid a crash on MacOS X. */
  15012. #include <mach/mach.h>
  15013. #include <mach/mach_error.h>
  15014. #include <mach/thread_status.h>
  15015. #include <mach/exception.h>
  15016. #include <mach/task.h>
  15017. #include <pthread.h>
  15018. /* The exception port on which our thread listens. */
  15019. static mach_port_t our_exception_port;
  15020. /* The main function of the thread listening for exceptions of type
  15021. EXC_BAD_ACCESS. */
  15022. static void *
  15023. mach_exception_thread (void *arg)
  15024. {
  15025. /* Buffer for a message to be received. */
  15026. struct {
  15027. mach_msg_header_t head;
  15028. mach_msg_body_t msgh_body;
  15029. char data[1024];
  15030. } msg;
  15031. mach_msg_return_t retval;
  15032. /* Wait for a message on the exception port. */
  15033. retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
  15034. our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  15035. if (retval != MACH_MSG_SUCCESS)
  15036. abort ();
  15037. exit (1);
  15038. }
  15039. static void
  15040. nocrash_init (void)
  15041. {
  15042. mach_port_t self = mach_task_self ();
  15043. /* Allocate a port on which the thread shall listen for exceptions. */
  15044. if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
  15045. == KERN_SUCCESS) {
  15046. /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
  15047. if (mach_port_insert_right (self, our_exception_port, our_exception_port,
  15048. MACH_MSG_TYPE_MAKE_SEND)
  15049. == KERN_SUCCESS) {
  15050. /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
  15051. for us. */
  15052. exception_mask_t mask = EXC_MASK_BAD_ACCESS;
  15053. /* Create the thread listening on the exception port. */
  15054. pthread_attr_t attr;
  15055. pthread_t thread;
  15056. if (pthread_attr_init (&attr) == 0
  15057. && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
  15058. && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
  15059. pthread_attr_destroy (&attr);
  15060. /* Replace the exception port info for these exceptions with our own.
  15061. Note that we replace the exception port for the entire task, not only
  15062. for a particular thread. This has the effect that when our exception
  15063. port gets the message, the thread specific exception port has already
  15064. been asked, and we don't need to bother about it.
  15065. See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
  15066. task_set_exception_ports (self, mask, our_exception_port,
  15067. EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
  15068. }
  15069. }
  15070. }
  15071. }
  15072. #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  15073. /* Avoid a crash on native Windows. */
  15074. #define WIN32_LEAN_AND_MEAN
  15075. #include <windows.h>
  15076. #include <winerror.h>
  15077. static LONG WINAPI
  15078. exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
  15079. {
  15080. switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
  15081. {
  15082. case EXCEPTION_ACCESS_VIOLATION:
  15083. case EXCEPTION_IN_PAGE_ERROR:
  15084. case EXCEPTION_STACK_OVERFLOW:
  15085. case EXCEPTION_GUARD_PAGE:
  15086. case EXCEPTION_PRIV_INSTRUCTION:
  15087. case EXCEPTION_ILLEGAL_INSTRUCTION:
  15088. case EXCEPTION_DATATYPE_MISALIGNMENT:
  15089. case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
  15090. case EXCEPTION_NONCONTINUABLE_EXCEPTION:
  15091. exit (1);
  15092. }
  15093. return EXCEPTION_CONTINUE_SEARCH;
  15094. }
  15095. static void
  15096. nocrash_init (void)
  15097. {
  15098. SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
  15099. }
  15100. #else
  15101. /* Avoid a crash on POSIX systems. */
  15102. #include <signal.h>
  15103. /* A POSIX signal handler. */
  15104. static void
  15105. exception_handler (int sig)
  15106. {
  15107. exit (1);
  15108. }
  15109. static void
  15110. nocrash_init (void)
  15111. {
  15112. #ifdef SIGSEGV
  15113. signal (SIGSEGV, exception_handler);
  15114. #endif
  15115. #ifdef SIGBUS
  15116. signal (SIGBUS, exception_handler);
  15117. #endif
  15118. }
  15119. #endif
  15120. int
  15121. main ()
  15122. {
  15123. int result = 0;
  15124. nocrash_init();
  15125. /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
  15126. and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
  15127. OSF/1 5.1, Solaris 10. */
  15128. {
  15129. static char conftest[] = "conftest";
  15130. static char plus[] = "-+";
  15131. char *argv[3] = { conftest, plus, NULL };
  15132. opterr = 0;
  15133. if (getopt (2, argv, "+a") != '?')
  15134. result |= 1;
  15135. }
  15136. /* This code succeeds on glibc 2.8, mingw,
  15137. and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
  15138. IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
  15139. {
  15140. static char program[] = "program";
  15141. static char p[] = "-p";
  15142. static char foo[] = "foo";
  15143. static char bar[] = "bar";
  15144. char *argv[] = { program, p, foo, bar, NULL };
  15145. optind = 1;
  15146. if (getopt (4, argv, "p::") != 'p')
  15147. result |= 2;
  15148. else if (optarg != NULL)
  15149. result |= 4;
  15150. else if (getopt (4, argv, "p::") != -1)
  15151. result |= 6;
  15152. else if (optind != 2)
  15153. result |= 8;
  15154. }
  15155. /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
  15156. {
  15157. static char program[] = "program";
  15158. static char foo[] = "foo";
  15159. static char p[] = "-p";
  15160. char *argv[] = { program, foo, p, NULL };
  15161. optind = 0;
  15162. if (getopt (3, argv, "-p") != 1)
  15163. result |= 16;
  15164. else if (getopt (3, argv, "-p") != 'p')
  15165. result |= 32;
  15166. }
  15167. /* This code fails on glibc 2.11. */
  15168. {
  15169. static char program[] = "program";
  15170. static char b[] = "-b";
  15171. static char a[] = "-a";
  15172. char *argv[] = { program, b, a, NULL };
  15173. optind = opterr = 0;
  15174. if (getopt (3, argv, "+:a:b") != 'b')
  15175. result |= 64;
  15176. else if (getopt (3, argv, "+:a:b") != ':')
  15177. result |= 64;
  15178. }
  15179. /* This code dumps core on glibc 2.14. */
  15180. {
  15181. static char program[] = "program";
  15182. static char w[] = "-W";
  15183. static char dummy[] = "dummy";
  15184. char *argv[] = { program, w, dummy, NULL };
  15185. optind = opterr = 1;
  15186. if (getopt (3, argv, "W;") != 'W')
  15187. result |= 128;
  15188. }
  15189. return result;
  15190. ;
  15191. return 0;
  15192. }
  15193. _ACEOF
  15194. if ac_fn_c_try_run "$LINENO"; then :
  15195. gl_cv_func_getopt_gnu=yes
  15196. else
  15197. gl_cv_func_getopt_gnu=no
  15198. fi
  15199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15200. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15201. fi
  15202. case $gl_had_POSIXLY_CORRECT in
  15203. exported) ;;
  15204. yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
  15205. *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
  15206. esac
  15207. fi
  15208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
  15209. $as_echo "$gl_cv_func_getopt_gnu" >&6; }
  15210. if test "$gl_cv_func_getopt_gnu" = "no"; then
  15211. gl_replace_getopt=yes
  15212. fi
  15213. fi
  15214. REPLACE_GETOPT=0
  15215. if test -n "$gl_replace_getopt"; then :
  15216. REPLACE_GETOPT=1
  15217. fi
  15218. if test $REPLACE_GETOPT = 1; then
  15219. GETOPT_H=getopt.h
  15220. $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
  15221. GNULIB_UNISTD_H_GETOPT=1
  15222. fi
  15223. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  15224. if test "x$ac_cv_have_decl_getenv" = xyes; then :
  15225. ac_have_decl=1
  15226. else
  15227. ac_have_decl=0
  15228. fi
  15229. cat >>confdefs.h <<_ACEOF
  15230. #define HAVE_DECL_GETENV $ac_have_decl
  15231. _ACEOF
  15232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  15233. $as_echo_n "checking for unsigned long long int... " >&6; }
  15234. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  15235. $as_echo_n "(cached) " >&6
  15236. else
  15237. ac_cv_type_unsigned_long_long_int=yes
  15238. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  15239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15240. /* end confdefs.h. */
  15241. /* For now, do not test the preprocessor; as of 2007 there are too many
  15242. implementations with broken preprocessors. Perhaps this can
  15243. be revisited in 2012. In the meantime, code should not expect
  15244. #if to work with literals wider than 32 bits. */
  15245. /* Test literals. */
  15246. long long int ll = 9223372036854775807ll;
  15247. long long int nll = -9223372036854775807LL;
  15248. unsigned long long int ull = 18446744073709551615ULL;
  15249. /* Test constant expressions. */
  15250. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  15251. ? 1 : -1)];
  15252. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  15253. ? 1 : -1)];
  15254. int i = 63;
  15255. int
  15256. main ()
  15257. {
  15258. /* Test availability of runtime routines for shift and division. */
  15259. long long int llmax = 9223372036854775807ll;
  15260. unsigned long long int ullmax = 18446744073709551615ull;
  15261. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  15262. | (llmax / ll) | (llmax % ll)
  15263. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  15264. | (ullmax / ull) | (ullmax % ull));
  15265. ;
  15266. return 0;
  15267. }
  15268. _ACEOF
  15269. if ac_fn_c_try_link "$LINENO"; then :
  15270. else
  15271. ac_cv_type_unsigned_long_long_int=no
  15272. fi
  15273. rm -f core conftest.err conftest.$ac_objext \
  15274. conftest$ac_exeext conftest.$ac_ext
  15275. fi
  15276. fi
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  15278. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  15279. if test $ac_cv_type_unsigned_long_long_int = yes; then
  15280. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  15281. fi
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  15283. $as_echo_n "checking for long long int... " >&6; }
  15284. if ${ac_cv_type_long_long_int+:} false; then :
  15285. $as_echo_n "(cached) " >&6
  15286. else
  15287. ac_cv_type_long_long_int=yes
  15288. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  15289. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  15290. if test $ac_cv_type_long_long_int = yes; then
  15291. if test "$cross_compiling" = yes; then :
  15292. :
  15293. else
  15294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15295. /* end confdefs.h. */
  15296. #include <limits.h>
  15297. #ifndef LLONG_MAX
  15298. # define HALF \
  15299. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  15300. # define LLONG_MAX (HALF - 1 + HALF)
  15301. #endif
  15302. int
  15303. main ()
  15304. {
  15305. long long int n = 1;
  15306. int i;
  15307. for (i = 0; ; i++)
  15308. {
  15309. long long int m = n << i;
  15310. if (m >> i != n)
  15311. return 1;
  15312. if (LLONG_MAX / 2 < m)
  15313. break;
  15314. }
  15315. return 0;
  15316. ;
  15317. return 0;
  15318. }
  15319. _ACEOF
  15320. if ac_fn_c_try_run "$LINENO"; then :
  15321. else
  15322. ac_cv_type_long_long_int=no
  15323. fi
  15324. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15325. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15326. fi
  15327. fi
  15328. fi
  15329. fi
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  15331. $as_echo "$ac_cv_type_long_long_int" >&6; }
  15332. if test $ac_cv_type_long_long_int = yes; then
  15333. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  15334. fi
  15335. gl_cv_c_multiarch=no
  15336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15337. /* end confdefs.h. */
  15338. #ifndef __APPLE_CC__
  15339. not a universal capable compiler
  15340. #endif
  15341. typedef int dummy;
  15342. _ACEOF
  15343. if ac_fn_c_try_compile "$LINENO"; then :
  15344. arch=
  15345. prev=
  15346. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  15347. if test -n "$prev"; then
  15348. case $word in
  15349. i?86 | x86_64 | ppc | ppc64)
  15350. if test -z "$arch" || test "$arch" = "$word"; then
  15351. arch="$word"
  15352. else
  15353. gl_cv_c_multiarch=yes
  15354. fi
  15355. ;;
  15356. esac
  15357. prev=
  15358. else
  15359. if test "x$word" = "x-arch"; then
  15360. prev=arch
  15361. fi
  15362. fi
  15363. done
  15364. fi
  15365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15366. if test $gl_cv_c_multiarch = yes; then
  15367. APPLE_UNIVERSAL_BUILD=1
  15368. else
  15369. APPLE_UNIVERSAL_BUILD=0
  15370. fi
  15371. if test $ac_cv_type_long_long_int = yes; then
  15372. HAVE_LONG_LONG_INT=1
  15373. else
  15374. HAVE_LONG_LONG_INT=0
  15375. fi
  15376. if test $ac_cv_type_unsigned_long_long_int = yes; then
  15377. HAVE_UNSIGNED_LONG_LONG_INT=1
  15378. else
  15379. HAVE_UNSIGNED_LONG_LONG_INT=0
  15380. fi
  15381. if test $ac_cv_header_wchar_h = yes; then
  15382. HAVE_WCHAR_H=1
  15383. else
  15384. HAVE_WCHAR_H=0
  15385. fi
  15386. if test $ac_cv_header_inttypes_h = yes; then
  15387. HAVE_INTTYPES_H=1
  15388. else
  15389. HAVE_INTTYPES_H=0
  15390. fi
  15391. if test $ac_cv_header_sys_types_h = yes; then
  15392. HAVE_SYS_TYPES_H=1
  15393. else
  15394. HAVE_SYS_TYPES_H=0
  15395. fi
  15396. if test $gl_cv_have_include_next = yes; then
  15397. gl_cv_next_stdint_h='<'stdint.h'>'
  15398. else
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  15400. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  15401. if ${gl_cv_next_stdint_h+:} false; then :
  15402. $as_echo_n "(cached) " >&6
  15403. else
  15404. if test $ac_cv_header_stdint_h = yes; then
  15405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15406. /* end confdefs.h. */
  15407. #include <stdint.h>
  15408. _ACEOF
  15409. case "$host_os" in
  15410. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15411. *) gl_absname_cpp="$ac_cpp" ;;
  15412. esac
  15413. case "$host_os" in
  15414. mingw*)
  15415. gl_dirsep_regex='[/\\]'
  15416. ;;
  15417. *)
  15418. gl_dirsep_regex='/'
  15419. ;;
  15420. esac
  15421. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
  15422. s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
  15423. s|^/[^/]|//&|
  15424. p
  15425. q
  15426. }'
  15427. gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15428. sed -n "$gl_absolute_header_sed"`'"'
  15429. else
  15430. gl_cv_next_stdint_h='<'stdint.h'>'
  15431. fi
  15432. fi
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  15434. $as_echo "$gl_cv_next_stdint_h" >&6; }
  15435. fi
  15436. NEXT_STDINT_H=$gl_cv_next_stdint_h
  15437. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15438. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15439. gl_next_as_first_directive='<'stdint.h'>'
  15440. else
  15441. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15442. gl_next_as_first_directive=$gl_cv_next_stdint_h
  15443. fi
  15444. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  15445. if test $ac_cv_header_stdint_h = yes; then
  15446. HAVE_STDINT_H=1
  15447. else
  15448. HAVE_STDINT_H=0
  15449. fi
  15450. if test $ac_cv_header_stdint_h = yes; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  15452. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  15453. if ${gl_cv_header_working_stdint_h+:} false; then :
  15454. $as_echo_n "(cached) " >&6
  15455. else
  15456. gl_cv_header_working_stdint_h=no
  15457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15458. /* end confdefs.h. */
  15459. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  15460. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  15461. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  15462. #include <stdint.h>
  15463. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  15464. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  15465. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  15466. #endif
  15467. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15468. included before <wchar.h>. */
  15469. #include <stddef.h>
  15470. #include <signal.h>
  15471. #if HAVE_WCHAR_H
  15472. # include <stdio.h>
  15473. # include <time.h>
  15474. # include <wchar.h>
  15475. #endif
  15476. #ifdef INT8_MAX
  15477. int8_t a1 = INT8_MAX;
  15478. int8_t a1min = INT8_MIN;
  15479. #endif
  15480. #ifdef INT16_MAX
  15481. int16_t a2 = INT16_MAX;
  15482. int16_t a2min = INT16_MIN;
  15483. #endif
  15484. #ifdef INT32_MAX
  15485. int32_t a3 = INT32_MAX;
  15486. int32_t a3min = INT32_MIN;
  15487. #endif
  15488. #ifdef INT64_MAX
  15489. int64_t a4 = INT64_MAX;
  15490. int64_t a4min = INT64_MIN;
  15491. #endif
  15492. #ifdef UINT8_MAX
  15493. uint8_t b1 = UINT8_MAX;
  15494. #else
  15495. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  15496. #endif
  15497. #ifdef UINT16_MAX
  15498. uint16_t b2 = UINT16_MAX;
  15499. #endif
  15500. #ifdef UINT32_MAX
  15501. uint32_t b3 = UINT32_MAX;
  15502. #endif
  15503. #ifdef UINT64_MAX
  15504. uint64_t b4 = UINT64_MAX;
  15505. #endif
  15506. int_least8_t c1 = INT8_C (0x7f);
  15507. int_least8_t c1max = INT_LEAST8_MAX;
  15508. int_least8_t c1min = INT_LEAST8_MIN;
  15509. int_least16_t c2 = INT16_C (0x7fff);
  15510. int_least16_t c2max = INT_LEAST16_MAX;
  15511. int_least16_t c2min = INT_LEAST16_MIN;
  15512. int_least32_t c3 = INT32_C (0x7fffffff);
  15513. int_least32_t c3max = INT_LEAST32_MAX;
  15514. int_least32_t c3min = INT_LEAST32_MIN;
  15515. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  15516. int_least64_t c4max = INT_LEAST64_MAX;
  15517. int_least64_t c4min = INT_LEAST64_MIN;
  15518. uint_least8_t d1 = UINT8_C (0xff);
  15519. uint_least8_t d1max = UINT_LEAST8_MAX;
  15520. uint_least16_t d2 = UINT16_C (0xffff);
  15521. uint_least16_t d2max = UINT_LEAST16_MAX;
  15522. uint_least32_t d3 = UINT32_C (0xffffffff);
  15523. uint_least32_t d3max = UINT_LEAST32_MAX;
  15524. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  15525. uint_least64_t d4max = UINT_LEAST64_MAX;
  15526. int_fast8_t e1 = INT_FAST8_MAX;
  15527. int_fast8_t e1min = INT_FAST8_MIN;
  15528. int_fast16_t e2 = INT_FAST16_MAX;
  15529. int_fast16_t e2min = INT_FAST16_MIN;
  15530. int_fast32_t e3 = INT_FAST32_MAX;
  15531. int_fast32_t e3min = INT_FAST32_MIN;
  15532. int_fast64_t e4 = INT_FAST64_MAX;
  15533. int_fast64_t e4min = INT_FAST64_MIN;
  15534. uint_fast8_t f1 = UINT_FAST8_MAX;
  15535. uint_fast16_t f2 = UINT_FAST16_MAX;
  15536. uint_fast32_t f3 = UINT_FAST32_MAX;
  15537. uint_fast64_t f4 = UINT_FAST64_MAX;
  15538. #ifdef INTPTR_MAX
  15539. intptr_t g = INTPTR_MAX;
  15540. intptr_t gmin = INTPTR_MIN;
  15541. #endif
  15542. #ifdef UINTPTR_MAX
  15543. uintptr_t h = UINTPTR_MAX;
  15544. #endif
  15545. intmax_t i = INTMAX_MAX;
  15546. uintmax_t j = UINTMAX_MAX;
  15547. #include <limits.h> /* for CHAR_BIT */
  15548. #define TYPE_MINIMUM(t) \
  15549. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  15550. #define TYPE_MAXIMUM(t) \
  15551. ((t) ((t) 0 < (t) -1 \
  15552. ? (t) -1 \
  15553. : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  15554. struct s {
  15555. int check_PTRDIFF:
  15556. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  15557. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  15558. ? 1 : -1;
  15559. /* Detect bug in FreeBSD 6.0 / ia64. */
  15560. int check_SIG_ATOMIC:
  15561. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  15562. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  15563. ? 1 : -1;
  15564. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  15565. int check_WCHAR:
  15566. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  15567. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  15568. ? 1 : -1;
  15569. /* Detect bug in mingw. */
  15570. int check_WINT:
  15571. WINT_MIN == TYPE_MINIMUM (wint_t)
  15572. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  15573. ? 1 : -1;
  15574. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  15575. int check_UINT8_C:
  15576. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  15577. int check_UINT16_C:
  15578. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  15579. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  15580. #ifdef UINT8_MAX
  15581. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  15582. #endif
  15583. #ifdef UINT16_MAX
  15584. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  15585. #endif
  15586. #ifdef UINT32_MAX
  15587. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  15588. #endif
  15589. #ifdef UINT64_MAX
  15590. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  15591. #endif
  15592. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  15593. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  15594. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  15595. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  15596. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  15597. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  15598. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  15599. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  15600. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  15601. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  15602. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  15603. };
  15604. int
  15605. main ()
  15606. {
  15607. ;
  15608. return 0;
  15609. }
  15610. _ACEOF
  15611. if ac_fn_c_try_compile "$LINENO"; then :
  15612. if test "$cross_compiling" = yes; then :
  15613. gl_cv_header_working_stdint_h=yes
  15614. else
  15615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15616. /* end confdefs.h. */
  15617. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  15618. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  15619. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  15620. #include <stdint.h>
  15621. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15622. included before <wchar.h>. */
  15623. #include <stddef.h>
  15624. #include <signal.h>
  15625. #if HAVE_WCHAR_H
  15626. # include <stdio.h>
  15627. # include <time.h>
  15628. # include <wchar.h>
  15629. #endif
  15630. #include <stdio.h>
  15631. #include <string.h>
  15632. #define MVAL(macro) MVAL1(macro)
  15633. #define MVAL1(expression) #expression
  15634. static const char *macro_values[] =
  15635. {
  15636. #ifdef INT8_MAX
  15637. MVAL (INT8_MAX),
  15638. #endif
  15639. #ifdef INT16_MAX
  15640. MVAL (INT16_MAX),
  15641. #endif
  15642. #ifdef INT32_MAX
  15643. MVAL (INT32_MAX),
  15644. #endif
  15645. #ifdef INT64_MAX
  15646. MVAL (INT64_MAX),
  15647. #endif
  15648. #ifdef UINT8_MAX
  15649. MVAL (UINT8_MAX),
  15650. #endif
  15651. #ifdef UINT16_MAX
  15652. MVAL (UINT16_MAX),
  15653. #endif
  15654. #ifdef UINT32_MAX
  15655. MVAL (UINT32_MAX),
  15656. #endif
  15657. #ifdef UINT64_MAX
  15658. MVAL (UINT64_MAX),
  15659. #endif
  15660. NULL
  15661. };
  15662. int
  15663. main ()
  15664. {
  15665. const char **mv;
  15666. for (mv = macro_values; *mv != NULL; mv++)
  15667. {
  15668. const char *value = *mv;
  15669. /* Test whether it looks like a cast expression. */
  15670. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  15671. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  15672. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  15673. || strncmp (value, "((int)"/*)*/, 6) == 0
  15674. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  15675. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  15676. return mv - macro_values + 1;
  15677. }
  15678. return 0;
  15679. ;
  15680. return 0;
  15681. }
  15682. _ACEOF
  15683. if ac_fn_c_try_run "$LINENO"; then :
  15684. gl_cv_header_working_stdint_h=yes
  15685. fi
  15686. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15687. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15688. fi
  15689. fi
  15690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15691. fi
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  15693. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  15694. fi
  15695. if test "$gl_cv_header_working_stdint_h" = yes; then
  15696. STDINT_H=
  15697. else
  15698. for ac_header in sys/inttypes.h sys/bitypes.h
  15699. do :
  15700. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15701. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15702. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15703. cat >>confdefs.h <<_ACEOF
  15704. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15705. _ACEOF
  15706. fi
  15707. done
  15708. if test $ac_cv_header_sys_inttypes_h = yes; then
  15709. HAVE_SYS_INTTYPES_H=1
  15710. else
  15711. HAVE_SYS_INTTYPES_H=0
  15712. fi
  15713. if test $ac_cv_header_sys_bitypes_h = yes; then
  15714. HAVE_SYS_BITYPES_H=1
  15715. else
  15716. HAVE_SYS_BITYPES_H=0
  15717. fi
  15718. if test $APPLE_UNIVERSAL_BUILD = 0; then
  15719. for gltype in ptrdiff_t size_t ; do
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  15721. $as_echo_n "checking for bit size of $gltype... " >&6; }
  15722. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  15723. $as_echo_n "(cached) " >&6
  15724. else
  15725. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  15726. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15727. included before <wchar.h>. */
  15728. #include <stddef.h>
  15729. #include <signal.h>
  15730. #if HAVE_WCHAR_H
  15731. # include <stdio.h>
  15732. # include <time.h>
  15733. # include <wchar.h>
  15734. #endif
  15735. #include <limits.h>"; then :
  15736. else
  15737. result=unknown
  15738. fi
  15739. eval gl_cv_bitsizeof_${gltype}=\$result
  15740. fi
  15741. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15743. $as_echo "$ac_res" >&6; }
  15744. eval result=\$gl_cv_bitsizeof_${gltype}
  15745. if test $result = unknown; then
  15746. result=0
  15747. fi
  15748. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15749. cat >>confdefs.h <<_ACEOF
  15750. #define BITSIZEOF_${GLTYPE} $result
  15751. _ACEOF
  15752. eval BITSIZEOF_${GLTYPE}=\$result
  15753. done
  15754. fi
  15755. for gltype in sig_atomic_t wchar_t wint_t ; do
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  15757. $as_echo_n "checking for bit size of $gltype... " >&6; }
  15758. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  15759. $as_echo_n "(cached) " >&6
  15760. else
  15761. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  15762. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15763. included before <wchar.h>. */
  15764. #include <stddef.h>
  15765. #include <signal.h>
  15766. #if HAVE_WCHAR_H
  15767. # include <stdio.h>
  15768. # include <time.h>
  15769. # include <wchar.h>
  15770. #endif
  15771. #include <limits.h>"; then :
  15772. else
  15773. result=unknown
  15774. fi
  15775. eval gl_cv_bitsizeof_${gltype}=\$result
  15776. fi
  15777. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  15778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15779. $as_echo "$ac_res" >&6; }
  15780. eval result=\$gl_cv_bitsizeof_${gltype}
  15781. if test $result = unknown; then
  15782. result=0
  15783. fi
  15784. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15785. cat >>confdefs.h <<_ACEOF
  15786. #define BITSIZEOF_${GLTYPE} $result
  15787. _ACEOF
  15788. eval BITSIZEOF_${GLTYPE}=\$result
  15789. done
  15790. for gltype in sig_atomic_t wchar_t wint_t ; do
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  15792. $as_echo_n "checking whether $gltype is signed... " >&6; }
  15793. if eval \${gl_cv_type_${gltype}_signed+:} false; then :
  15794. $as_echo_n "(cached) " >&6
  15795. else
  15796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15797. /* end confdefs.h. */
  15798. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15799. included before <wchar.h>. */
  15800. #include <stddef.h>
  15801. #include <signal.h>
  15802. #if HAVE_WCHAR_H
  15803. # include <stdio.h>
  15804. # include <time.h>
  15805. # include <wchar.h>
  15806. #endif
  15807. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  15808. int
  15809. main ()
  15810. {
  15811. ;
  15812. return 0;
  15813. }
  15814. _ACEOF
  15815. if ac_fn_c_try_compile "$LINENO"; then :
  15816. result=yes
  15817. else
  15818. result=no
  15819. fi
  15820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15821. eval gl_cv_type_${gltype}_signed=\$result
  15822. fi
  15823. eval ac_res=\$gl_cv_type_${gltype}_signed
  15824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15825. $as_echo "$ac_res" >&6; }
  15826. eval result=\$gl_cv_type_${gltype}_signed
  15827. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15828. if test "$result" = yes; then
  15829. cat >>confdefs.h <<_ACEOF
  15830. #define HAVE_SIGNED_${GLTYPE} 1
  15831. _ACEOF
  15832. eval HAVE_SIGNED_${GLTYPE}=1
  15833. else
  15834. eval HAVE_SIGNED_${GLTYPE}=0
  15835. fi
  15836. done
  15837. gl_cv_type_ptrdiff_t_signed=yes
  15838. gl_cv_type_size_t_signed=no
  15839. if test $APPLE_UNIVERSAL_BUILD = 0; then
  15840. for gltype in ptrdiff_t size_t ; do
  15841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  15842. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  15843. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  15844. $as_echo_n "(cached) " >&6
  15845. else
  15846. eval gl_cv_type_${gltype}_suffix=no
  15847. eval result=\$gl_cv_type_${gltype}_signed
  15848. if test "$result" = yes; then
  15849. glsufu=
  15850. else
  15851. glsufu=u
  15852. fi
  15853. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  15854. case $glsuf in
  15855. '') gltype1='int';;
  15856. l) gltype1='long int';;
  15857. ll) gltype1='long long int';;
  15858. i64) gltype1='__int64';;
  15859. u) gltype1='unsigned int';;
  15860. ul) gltype1='unsigned long int';;
  15861. ull) gltype1='unsigned long long int';;
  15862. ui64)gltype1='unsigned __int64';;
  15863. esac
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15867. included before <wchar.h>. */
  15868. #include <stddef.h>
  15869. #include <signal.h>
  15870. #if HAVE_WCHAR_H
  15871. # include <stdio.h>
  15872. # include <time.h>
  15873. # include <wchar.h>
  15874. #endif
  15875. extern $gltype foo;
  15876. extern $gltype1 foo;
  15877. int
  15878. main ()
  15879. {
  15880. ;
  15881. return 0;
  15882. }
  15883. _ACEOF
  15884. if ac_fn_c_try_compile "$LINENO"; then :
  15885. eval gl_cv_type_${gltype}_suffix=\$glsuf
  15886. fi
  15887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15888. eval result=\$gl_cv_type_${gltype}_suffix
  15889. test "$result" != no && break
  15890. done
  15891. fi
  15892. eval ac_res=\$gl_cv_type_${gltype}_suffix
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15894. $as_echo "$ac_res" >&6; }
  15895. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15896. eval result=\$gl_cv_type_${gltype}_suffix
  15897. test "$result" = no && result=
  15898. eval ${GLTYPE}_SUFFIX=\$result
  15899. cat >>confdefs.h <<_ACEOF
  15900. #define ${GLTYPE}_SUFFIX $result
  15901. _ACEOF
  15902. done
  15903. fi
  15904. for gltype in sig_atomic_t wchar_t wint_t ; do
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  15906. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  15907. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  15908. $as_echo_n "(cached) " >&6
  15909. else
  15910. eval gl_cv_type_${gltype}_suffix=no
  15911. eval result=\$gl_cv_type_${gltype}_signed
  15912. if test "$result" = yes; then
  15913. glsufu=
  15914. else
  15915. glsufu=u
  15916. fi
  15917. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  15918. case $glsuf in
  15919. '') gltype1='int';;
  15920. l) gltype1='long int';;
  15921. ll) gltype1='long long int';;
  15922. i64) gltype1='__int64';;
  15923. u) gltype1='unsigned int';;
  15924. ul) gltype1='unsigned long int';;
  15925. ull) gltype1='unsigned long long int';;
  15926. ui64)gltype1='unsigned __int64';;
  15927. esac
  15928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15929. /* end confdefs.h. */
  15930. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15931. included before <wchar.h>. */
  15932. #include <stddef.h>
  15933. #include <signal.h>
  15934. #if HAVE_WCHAR_H
  15935. # include <stdio.h>
  15936. # include <time.h>
  15937. # include <wchar.h>
  15938. #endif
  15939. extern $gltype foo;
  15940. extern $gltype1 foo;
  15941. int
  15942. main ()
  15943. {
  15944. ;
  15945. return 0;
  15946. }
  15947. _ACEOF
  15948. if ac_fn_c_try_compile "$LINENO"; then :
  15949. eval gl_cv_type_${gltype}_suffix=\$glsuf
  15950. fi
  15951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15952. eval result=\$gl_cv_type_${gltype}_suffix
  15953. test "$result" != no && break
  15954. done
  15955. fi
  15956. eval ac_res=\$gl_cv_type_${gltype}_suffix
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15958. $as_echo "$ac_res" >&6; }
  15959. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15960. eval result=\$gl_cv_type_${gltype}_suffix
  15961. test "$result" = no && result=
  15962. eval ${GLTYPE}_SUFFIX=\$result
  15963. cat >>confdefs.h <<_ACEOF
  15964. #define ${GLTYPE}_SUFFIX $result
  15965. _ACEOF
  15966. done
  15967. if test $BITSIZEOF_WINT_T -lt 32; then
  15968. BITSIZEOF_WINT_T=32
  15969. fi
  15970. STDINT_H=stdint.h
  15971. fi
  15972. if test -n "$STDINT_H"; then
  15973. GL_GENERATE_STDINT_H_TRUE=
  15974. GL_GENERATE_STDINT_H_FALSE='#'
  15975. else
  15976. GL_GENERATE_STDINT_H_TRUE='#'
  15977. GL_GENERATE_STDINT_H_FALSE=
  15978. fi
  15979. GNULIB_IMAXABS=0;
  15980. GNULIB_IMAXDIV=0;
  15981. GNULIB_STRTOIMAX=0;
  15982. GNULIB_STRTOUMAX=0;
  15983. HAVE_DECL_IMAXABS=1;
  15984. HAVE_DECL_IMAXDIV=1;
  15985. HAVE_DECL_STRTOIMAX=1;
  15986. HAVE_DECL_STRTOUMAX=1;
  15987. INT32_MAX_LT_INTMAX_MAX=1;
  15988. INT64_MAX_EQ_LONG_MAX='defined _LP64';
  15989. PRI_MACROS_BROKEN=0;
  15990. PRIPTR_PREFIX=__PRIPTR_PREFIX;
  15991. UINT32_MAX_LT_UINTMAX_MAX=1;
  15992. UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
  15993. if test $gl_cv_have_include_next = yes; then
  15994. gl_cv_next_inttypes_h='<'inttypes.h'>'
  15995. else
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
  15997. $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
  15998. if ${gl_cv_next_inttypes_h+:} false; then :
  15999. $as_echo_n "(cached) " >&6
  16000. else
  16001. if test $ac_cv_header_inttypes_h = yes; then
  16002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16003. /* end confdefs.h. */
  16004. #include <inttypes.h>
  16005. _ACEOF
  16006. case "$host_os" in
  16007. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  16008. *) gl_absname_cpp="$ac_cpp" ;;
  16009. esac
  16010. case "$host_os" in
  16011. mingw*)
  16012. gl_dirsep_regex='[/\\]'
  16013. ;;
  16014. *)
  16015. gl_dirsep_regex='/'
  16016. ;;
  16017. esac
  16018. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
  16019. s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
  16020. s|^/[^/]|//&|
  16021. p
  16022. q
  16023. }'
  16024. gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  16025. sed -n "$gl_absolute_header_sed"`'"'
  16026. else
  16027. gl_cv_next_inttypes_h='<'inttypes.h'>'
  16028. fi
  16029. fi
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
  16031. $as_echo "$gl_cv_next_inttypes_h" >&6; }
  16032. fi
  16033. NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
  16034. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  16035. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  16036. gl_next_as_first_directive='<'inttypes.h'>'
  16037. else
  16038. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  16039. gl_next_as_first_directive=$gl_cv_next_inttypes_h
  16040. fi
  16041. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
  16042. $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
  16043. GNULIB_FCHMODAT=0;
  16044. GNULIB_FSTAT=0;
  16045. GNULIB_FSTATAT=0;
  16046. GNULIB_FUTIMENS=0;
  16047. GNULIB_LCHMOD=0;
  16048. GNULIB_LSTAT=0;
  16049. GNULIB_MKDIRAT=0;
  16050. GNULIB_MKFIFO=0;
  16051. GNULIB_MKFIFOAT=0;
  16052. GNULIB_MKNOD=0;
  16053. GNULIB_MKNODAT=0;
  16054. GNULIB_STAT=0;
  16055. GNULIB_UTIMENSAT=0;
  16056. HAVE_FCHMODAT=1;
  16057. HAVE_FSTATAT=1;
  16058. HAVE_FUTIMENS=1;
  16059. HAVE_LCHMOD=1;
  16060. HAVE_LSTAT=1;
  16061. HAVE_MKDIRAT=1;
  16062. HAVE_MKFIFO=1;
  16063. HAVE_MKFIFOAT=1;
  16064. HAVE_MKNOD=1;
  16065. HAVE_MKNODAT=1;
  16066. HAVE_UTIMENSAT=1;
  16067. REPLACE_FSTAT=0;
  16068. REPLACE_FSTATAT=0;
  16069. REPLACE_FUTIMENS=0;
  16070. REPLACE_LSTAT=0;
  16071. REPLACE_MKDIR=0;
  16072. REPLACE_MKFIFO=0;
  16073. REPLACE_MKNOD=0;
  16074. REPLACE_STAT=0;
  16075. REPLACE_UTIMENSAT=0;
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  16077. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  16078. if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  16079. $as_echo_n "(cached) " >&6
  16080. else
  16081. rm -f conftest.sym conftest.file
  16082. echo >conftest.file
  16083. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  16084. if test "$cross_compiling" = yes; then :
  16085. # When cross-compiling, be pessimistic so we will end up using the
  16086. # replacement version of lstat that checks for trailing slashes and
  16087. # calls lstat a second time when necessary.
  16088. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16089. else
  16090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16091. /* end confdefs.h. */
  16092. $ac_includes_default
  16093. int
  16094. main ()
  16095. {
  16096. struct stat sbuf;
  16097. /* Linux will dereference the symlink and fail, as required by
  16098. POSIX. That is better in the sense that it means we will not
  16099. have to compile and use the lstat wrapper. */
  16100. return lstat ("conftest.sym/", &sbuf) == 0;
  16101. ;
  16102. return 0;
  16103. }
  16104. _ACEOF
  16105. if ac_fn_c_try_run "$LINENO"; then :
  16106. gl_cv_func_lstat_dereferences_slashed_symlink=yes
  16107. else
  16108. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16109. fi
  16110. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16111. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16112. fi
  16113. else
  16114. # If the 'ln -s' command failed, then we probably don't even
  16115. # have an lstat function.
  16116. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16117. fi
  16118. rm -f conftest.sym conftest.file
  16119. fi
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
  16121. $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16122. test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16123. cat >>confdefs.h <<_ACEOF
  16124. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16125. _ACEOF
  16126. GNULIB_MKTIME=0;
  16127. GNULIB_NANOSLEEP=0;
  16128. GNULIB_STRPTIME=0;
  16129. GNULIB_TIMEGM=0;
  16130. GNULIB_TIME_R=0;
  16131. HAVE_DECL_LOCALTIME_R=1;
  16132. HAVE_NANOSLEEP=1;
  16133. HAVE_STRPTIME=1;
  16134. HAVE_TIMEGM=1;
  16135. REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
  16136. REPLACE_MKTIME=GNULIB_PORTCHECK;
  16137. REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
  16138. REPLACE_TIMEGM=GNULIB_PORTCHECK;
  16139. GNULIB_PTHREAD_SIGMASK=0;
  16140. GNULIB_RAISE=0;
  16141. GNULIB_SIGNAL_H_SIGPIPE=0;
  16142. GNULIB_SIGPROCMASK=0;
  16143. GNULIB_SIGACTION=0;
  16144. HAVE_POSIX_SIGNALBLOCKING=1;
  16145. HAVE_PTHREAD_SIGMASK=1;
  16146. HAVE_RAISE=1;
  16147. HAVE_SIGSET_T=1;
  16148. HAVE_SIGINFO_T=1;
  16149. HAVE_SIGACTION=1;
  16150. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  16151. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  16152. HAVE_SIGHANDLER_T=1;
  16153. REPLACE_PTHREAD_SIGMASK=0;
  16154. REPLACE_RAISE=0;
  16155. ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
  16156. #include <signal.h>
  16157. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  16158. #include <sys/types.h>
  16159. "
  16160. if test "x$ac_cv_type_sigset_t" = xyes; then :
  16161. cat >>confdefs.h <<_ACEOF
  16162. #define HAVE_SIGSET_T 1
  16163. _ACEOF
  16164. gl_cv_type_sigset_t=yes
  16165. else
  16166. gl_cv_type_sigset_t=no
  16167. fi
  16168. if test $gl_cv_type_sigset_t != yes; then
  16169. HAVE_SIGSET_T=0
  16170. fi
  16171. if test $ac_cv_header_sys_socket_h = no; then
  16172. for ac_header in ws2tcpip.h
  16173. do :
  16174. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  16175. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  16176. cat >>confdefs.h <<_ACEOF
  16177. #define HAVE_WS2TCPIP_H 1
  16178. _ACEOF
  16179. fi
  16180. done
  16181. fi
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16183. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16184. if ${ac_cv_header_stdbool_h+:} false; then :
  16185. $as_echo_n "(cached) " >&6
  16186. else
  16187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16188. /* end confdefs.h. */
  16189. #include <stdbool.h>
  16190. #ifndef bool
  16191. "error: bool is not defined"
  16192. #endif
  16193. #ifndef false
  16194. "error: false is not defined"
  16195. #endif
  16196. #if false
  16197. "error: false is not 0"
  16198. #endif
  16199. #ifndef true
  16200. "error: true is not defined"
  16201. #endif
  16202. #if true != 1
  16203. "error: true is not 1"
  16204. #endif
  16205. #ifndef __bool_true_false_are_defined
  16206. "error: __bool_true_false_are_defined is not defined"
  16207. #endif
  16208. struct s { _Bool s: 1; _Bool t; } s;
  16209. char a[true == 1 ? 1 : -1];
  16210. char b[false == 0 ? 1 : -1];
  16211. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16212. char d[(bool) 0.5 == true ? 1 : -1];
  16213. /* See body of main program for 'e'. */
  16214. char f[(_Bool) 0.0 == false ? 1 : -1];
  16215. char g[true];
  16216. char h[sizeof (_Bool)];
  16217. char i[sizeof s.t];
  16218. enum { j = false, k = true, l = false * true, m = true * 256 };
  16219. /* The following fails for
  16220. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16221. _Bool n[m];
  16222. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16223. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16224. /* Catch a bug in an HP-UX C compiler. See
  16225. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16226. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16227. */
  16228. _Bool q = true;
  16229. _Bool *pq = &q;
  16230. int
  16231. main ()
  16232. {
  16233. bool e = &s;
  16234. *pq |= q;
  16235. *pq |= ! q;
  16236. /* Refer to every declared value, to avoid compiler optimizations. */
  16237. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16238. + !m + !n + !o + !p + !q + !pq);
  16239. ;
  16240. return 0;
  16241. }
  16242. _ACEOF
  16243. if ac_fn_c_try_compile "$LINENO"; then :
  16244. ac_cv_header_stdbool_h=yes
  16245. else
  16246. ac_cv_header_stdbool_h=no
  16247. fi
  16248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16249. fi
  16250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16251. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16252. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16253. if test "x$ac_cv_type__Bool" = xyes; then :
  16254. cat >>confdefs.h <<_ACEOF
  16255. #define HAVE__BOOL 1
  16256. _ACEOF
  16257. fi
  16258. REPLACE_NULL=0;
  16259. HAVE_WCHAR_T=1;
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  16261. $as_echo_n "checking for wchar_t... " >&6; }
  16262. if ${gt_cv_c_wchar_t+:} false; then :
  16263. $as_echo_n "(cached) " >&6
  16264. else
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. #include <stddef.h>
  16268. wchar_t foo = (wchar_t)'\0';
  16269. int
  16270. main ()
  16271. {
  16272. ;
  16273. return 0;
  16274. }
  16275. _ACEOF
  16276. if ac_fn_c_try_compile "$LINENO"; then :
  16277. gt_cv_c_wchar_t=yes
  16278. else
  16279. gt_cv_c_wchar_t=no
  16280. fi
  16281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16282. fi
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  16284. $as_echo "$gt_cv_c_wchar_t" >&6; }
  16285. if test $gt_cv_c_wchar_t = yes; then
  16286. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  16287. fi
  16288. GNULIB_DPRINTF=0;
  16289. GNULIB_FCLOSE=0;
  16290. GNULIB_FDOPEN=0;
  16291. GNULIB_FFLUSH=0;
  16292. GNULIB_FGETC=0;
  16293. GNULIB_FGETS=0;
  16294. GNULIB_FOPEN=0;
  16295. GNULIB_FPRINTF=0;
  16296. GNULIB_FPRINTF_POSIX=0;
  16297. GNULIB_FPURGE=0;
  16298. GNULIB_FPUTC=0;
  16299. GNULIB_FPUTS=0;
  16300. GNULIB_FREAD=0;
  16301. GNULIB_FREOPEN=0;
  16302. GNULIB_FSCANF=0;
  16303. GNULIB_FSEEK=0;
  16304. GNULIB_FSEEKO=0;
  16305. GNULIB_FTELL=0;
  16306. GNULIB_FTELLO=0;
  16307. GNULIB_FWRITE=0;
  16308. GNULIB_GETC=0;
  16309. GNULIB_GETCHAR=0;
  16310. GNULIB_GETDELIM=0;
  16311. GNULIB_GETLINE=0;
  16312. GNULIB_OBSTACK_PRINTF=0;
  16313. GNULIB_OBSTACK_PRINTF_POSIX=0;
  16314. GNULIB_PCLOSE=0;
  16315. GNULIB_PERROR=0;
  16316. GNULIB_POPEN=0;
  16317. GNULIB_PRINTF=0;
  16318. GNULIB_PRINTF_POSIX=0;
  16319. GNULIB_PUTC=0;
  16320. GNULIB_PUTCHAR=0;
  16321. GNULIB_PUTS=0;
  16322. GNULIB_REMOVE=0;
  16323. GNULIB_RENAME=0;
  16324. GNULIB_RENAMEAT=0;
  16325. GNULIB_SCANF=0;
  16326. GNULIB_SNPRINTF=0;
  16327. GNULIB_SPRINTF_POSIX=0;
  16328. GNULIB_STDIO_H_NONBLOCKING=0;
  16329. GNULIB_STDIO_H_SIGPIPE=0;
  16330. GNULIB_TMPFILE=0;
  16331. GNULIB_VASPRINTF=0;
  16332. GNULIB_VFSCANF=0;
  16333. GNULIB_VSCANF=0;
  16334. GNULIB_VDPRINTF=0;
  16335. GNULIB_VFPRINTF=0;
  16336. GNULIB_VFPRINTF_POSIX=0;
  16337. GNULIB_VPRINTF=0;
  16338. GNULIB_VPRINTF_POSIX=0;
  16339. GNULIB_VSNPRINTF=0;
  16340. GNULIB_VSPRINTF_POSIX=0;
  16341. HAVE_DECL_FPURGE=1;
  16342. HAVE_DECL_FSEEKO=1;
  16343. HAVE_DECL_FTELLO=1;
  16344. HAVE_DECL_GETDELIM=1;
  16345. HAVE_DECL_GETLINE=1;
  16346. HAVE_DECL_OBSTACK_PRINTF=1;
  16347. HAVE_DECL_SNPRINTF=1;
  16348. HAVE_DECL_VSNPRINTF=1;
  16349. HAVE_DPRINTF=1;
  16350. HAVE_FSEEKO=1;
  16351. HAVE_FTELLO=1;
  16352. HAVE_PCLOSE=1;
  16353. HAVE_POPEN=1;
  16354. HAVE_RENAMEAT=1;
  16355. HAVE_VASPRINTF=1;
  16356. HAVE_VDPRINTF=1;
  16357. REPLACE_DPRINTF=0;
  16358. REPLACE_FCLOSE=0;
  16359. REPLACE_FDOPEN=0;
  16360. REPLACE_FFLUSH=0;
  16361. REPLACE_FOPEN=0;
  16362. REPLACE_FPRINTF=0;
  16363. REPLACE_FPURGE=0;
  16364. REPLACE_FREOPEN=0;
  16365. REPLACE_FSEEK=0;
  16366. REPLACE_FSEEKO=0;
  16367. REPLACE_FTELL=0;
  16368. REPLACE_FTELLO=0;
  16369. REPLACE_GETDELIM=0;
  16370. REPLACE_GETLINE=0;
  16371. REPLACE_OBSTACK_PRINTF=0;
  16372. REPLACE_PERROR=0;
  16373. REPLACE_POPEN=0;
  16374. REPLACE_PRINTF=0;
  16375. REPLACE_REMOVE=0;
  16376. REPLACE_RENAME=0;
  16377. REPLACE_RENAMEAT=0;
  16378. REPLACE_SNPRINTF=0;
  16379. REPLACE_SPRINTF=0;
  16380. REPLACE_STDIO_READ_FUNCS=0;
  16381. REPLACE_STDIO_WRITE_FUNCS=0;
  16382. REPLACE_TMPFILE=0;
  16383. REPLACE_VASPRINTF=0;
  16384. REPLACE_VDPRINTF=0;
  16385. REPLACE_VFPRINTF=0;
  16386. REPLACE_VPRINTF=0;
  16387. REPLACE_VSNPRINTF=0;
  16388. REPLACE_VSPRINTF=0;
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  16390. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  16391. if ${ac_cv_struct_tm+:} false; then :
  16392. $as_echo_n "(cached) " >&6
  16393. else
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. #include <sys/types.h>
  16397. #include <time.h>
  16398. int
  16399. main ()
  16400. {
  16401. struct tm tm;
  16402. int *p = &tm.tm_sec;
  16403. return !p;
  16404. ;
  16405. return 0;
  16406. }
  16407. _ACEOF
  16408. if ac_fn_c_try_compile "$LINENO"; then :
  16409. ac_cv_struct_tm=time.h
  16410. else
  16411. ac_cv_struct_tm=sys/time.h
  16412. fi
  16413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16414. fi
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  16416. $as_echo "$ac_cv_struct_tm" >&6; }
  16417. if test $ac_cv_struct_tm = sys/time.h; then
  16418. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  16419. fi
  16420. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  16421. #include <$ac_cv_struct_tm>
  16422. "
  16423. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define HAVE_STRUCT_TM_TM_ZONE 1
  16426. _ACEOF
  16427. fi
  16428. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  16429. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  16430. else
  16431. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  16432. "
  16433. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  16434. ac_have_decl=1
  16435. else
  16436. ac_have_decl=0
  16437. fi
  16438. cat >>confdefs.h <<_ACEOF
  16439. #define HAVE_DECL_TZNAME $ac_have_decl
  16440. _ACEOF
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  16442. $as_echo_n "checking for tzname... " >&6; }
  16443. if ${ac_cv_var_tzname+:} false; then :
  16444. $as_echo_n "(cached) " >&6
  16445. else
  16446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16447. /* end confdefs.h. */
  16448. #include <time.h>
  16449. #if !HAVE_DECL_TZNAME
  16450. extern char *tzname[];
  16451. #endif
  16452. int
  16453. main ()
  16454. {
  16455. return tzname[0][0];
  16456. ;
  16457. return 0;
  16458. }
  16459. _ACEOF
  16460. if ac_fn_c_try_link "$LINENO"; then :
  16461. ac_cv_var_tzname=yes
  16462. else
  16463. ac_cv_var_tzname=no
  16464. fi
  16465. rm -f core conftest.err conftest.$ac_objext \
  16466. conftest$ac_exeext conftest.$ac_ext
  16467. fi
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  16469. $as_echo "$ac_cv_var_tzname" >&6; }
  16470. if test $ac_cv_var_tzname = yes; then
  16471. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  16472. fi
  16473. fi
  16474. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  16475. "
  16476. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  16477. $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
  16478. fi
  16479. ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
  16480. if test "x$ac_cv_have_decl_strtoimax" = xyes; then :
  16481. ac_have_decl=1
  16482. else
  16483. ac_have_decl=0
  16484. fi
  16485. cat >>confdefs.h <<_ACEOF
  16486. #define HAVE_DECL_STRTOIMAX $ac_have_decl
  16487. _ACEOF
  16488. ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
  16489. if test "x$ac_cv_have_decl_strtoumax" = xyes; then :
  16490. ac_have_decl=1
  16491. else
  16492. ac_have_decl=0
  16493. fi
  16494. cat >>confdefs.h <<_ACEOF
  16495. #define HAVE_DECL_STRTOUMAX $ac_have_decl
  16496. _ACEOF
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  16498. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  16499. if ${ac_cv_header_stat_broken+:} false; then :
  16500. $as_echo_n "(cached) " >&6
  16501. else
  16502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16503. /* end confdefs.h. */
  16504. #include <sys/types.h>
  16505. #include <sys/stat.h>
  16506. #if defined S_ISBLK && defined S_IFDIR
  16507. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  16508. #endif
  16509. #if defined S_ISBLK && defined S_IFCHR
  16510. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  16511. #endif
  16512. #if defined S_ISLNK && defined S_IFREG
  16513. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  16514. #endif
  16515. #if defined S_ISSOCK && defined S_IFREG
  16516. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  16517. #endif
  16518. _ACEOF
  16519. if ac_fn_c_try_compile "$LINENO"; then :
  16520. ac_cv_header_stat_broken=no
  16521. else
  16522. ac_cv_header_stat_broken=yes
  16523. fi
  16524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16525. fi
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  16527. $as_echo "$ac_cv_header_stat_broken" >&6; }
  16528. if test $ac_cv_header_stat_broken = yes; then
  16529. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  16530. fi
  16531. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  16532. if test "x$ac_cv_type_mode_t" = xyes; then :
  16533. else
  16534. cat >>confdefs.h <<_ACEOF
  16535. #define mode_t int
  16536. _ACEOF
  16537. fi
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  16539. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  16540. if ${ac_cv_c_restrict+:} false; then :
  16541. $as_echo_n "(cached) " >&6
  16542. else
  16543. ac_cv_c_restrict=no
  16544. # The order here caters to the fact that C++ does not require restrict.
  16545. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  16546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16547. /* end confdefs.h. */
  16548. typedef int * int_ptr;
  16549. int foo (int_ptr $ac_kw ip) {
  16550. return ip[0];
  16551. }
  16552. int
  16553. main ()
  16554. {
  16555. int s[1];
  16556. int * $ac_kw t = s;
  16557. t[0] = 0;
  16558. return foo(t)
  16559. ;
  16560. return 0;
  16561. }
  16562. _ACEOF
  16563. if ac_fn_c_try_compile "$LINENO"; then :
  16564. ac_cv_c_restrict=$ac_kw
  16565. fi
  16566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16567. test "$ac_cv_c_restrict" != no && break
  16568. done
  16569. fi
  16570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  16571. $as_echo "$ac_cv_c_restrict" >&6; }
  16572. case $ac_cv_c_restrict in
  16573. restrict) ;;
  16574. no) $as_echo "#define restrict /**/" >>confdefs.h
  16575. ;;
  16576. *) cat >>confdefs.h <<_ACEOF
  16577. #define restrict $ac_cv_c_restrict
  16578. _ACEOF
  16579. ;;
  16580. esac
  16581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
  16582. $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
  16583. if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
  16584. $as_echo_n "(cached) " >&6
  16585. else
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. #include <time.h>
  16589. int
  16590. main ()
  16591. {
  16592. static struct timespec x; x.tv_sec = x.tv_nsec;
  16593. ;
  16594. return 0;
  16595. }
  16596. _ACEOF
  16597. if ac_fn_c_try_compile "$LINENO"; then :
  16598. gl_cv_sys_struct_timespec_in_time_h=yes
  16599. else
  16600. gl_cv_sys_struct_timespec_in_time_h=no
  16601. fi
  16602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16603. fi
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
  16605. $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
  16606. TIME_H_DEFINES_STRUCT_TIMESPEC=0
  16607. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
  16608. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
  16609. if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
  16610. TIME_H_DEFINES_STRUCT_TIMESPEC=1
  16611. else
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
  16613. $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
  16614. if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
  16615. $as_echo_n "(cached) " >&6
  16616. else
  16617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16618. /* end confdefs.h. */
  16619. #include <sys/time.h>
  16620. int
  16621. main ()
  16622. {
  16623. static struct timespec x; x.tv_sec = x.tv_nsec;
  16624. ;
  16625. return 0;
  16626. }
  16627. _ACEOF
  16628. if ac_fn_c_try_compile "$LINENO"; then :
  16629. gl_cv_sys_struct_timespec_in_sys_time_h=yes
  16630. else
  16631. gl_cv_sys_struct_timespec_in_sys_time_h=no
  16632. fi
  16633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16634. fi
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
  16636. $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
  16637. if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
  16638. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
  16639. else
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
  16641. $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
  16642. if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
  16643. $as_echo_n "(cached) " >&6
  16644. else
  16645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16646. /* end confdefs.h. */
  16647. #include <pthread.h>
  16648. int
  16649. main ()
  16650. {
  16651. static struct timespec x; x.tv_sec = x.tv_nsec;
  16652. ;
  16653. return 0;
  16654. }
  16655. _ACEOF
  16656. if ac_fn_c_try_compile "$LINENO"; then :
  16657. gl_cv_sys_struct_timespec_in_pthread_h=yes
  16658. else
  16659. gl_cv_sys_struct_timespec_in_pthread_h=no
  16660. fi
  16661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16662. fi
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
  16664. $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
  16665. if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
  16666. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
  16667. fi
  16668. fi
  16669. fi
  16670. if test $gl_cv_have_include_next = yes; then
  16671. gl_cv_next_time_h='<'time.h'>'
  16672. else
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
  16674. $as_echo_n "checking absolute name of <time.h>... " >&6; }
  16675. if ${gl_cv_next_time_h+:} false; then :
  16676. $as_echo_n "(cached) " >&6
  16677. else
  16678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16679. /* end confdefs.h. */
  16680. #include <time.h>
  16681. _ACEOF
  16682. case "$host_os" in
  16683. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  16684. *) gl_absname_cpp="$ac_cpp" ;;
  16685. esac
  16686. case "$host_os" in
  16687. mingw*)
  16688. gl_dirsep_regex='[/\\]'
  16689. ;;
  16690. *)
  16691. gl_dirsep_regex='/'
  16692. ;;
  16693. esac
  16694. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
  16695. s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
  16696. s|^/[^/]|//&|
  16697. p
  16698. q
  16699. }'
  16700. gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  16701. sed -n "$gl_absolute_header_sed"`'"'
  16702. fi
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
  16704. $as_echo "$gl_cv_next_time_h" >&6; }
  16705. fi
  16706. NEXT_TIME_H=$gl_cv_next_time_h
  16707. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  16708. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  16709. gl_next_as_first_directive='<'time.h'>'
  16710. else
  16711. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  16712. gl_next_as_first_directive=$gl_cv_next_time_h
  16713. fi
  16714. NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
  16715. ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
  16716. if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
  16717. ac_have_decl=1
  16718. else
  16719. ac_have_decl=0
  16720. fi
  16721. cat >>confdefs.h <<_ACEOF
  16722. #define HAVE_DECL_LOCALTIME_R $ac_have_decl
  16723. _ACEOF
  16724. if false; then
  16725. GL_COND_LIBTOOL_TRUE=
  16726. GL_COND_LIBTOOL_FALSE='#'
  16727. else
  16728. GL_COND_LIBTOOL_TRUE='#'
  16729. GL_COND_LIBTOOL_FALSE=
  16730. fi
  16731. gl_cond_libtool=false
  16732. gl_libdeps=
  16733. gl_ltlibdeps=
  16734. gl_m4_base='m4'
  16735. gl_source_base='lib'
  16736. if test $ac_cv_func_alloca_works = no; then
  16737. :
  16738. fi
  16739. # Define an additional variable used in the Makefile substitution.
  16740. if test $ac_cv_working_alloca_h = yes; then
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
  16742. $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
  16743. if ${gl_cv_rpl_alloca+:} false; then :
  16744. $as_echo_n "(cached) " >&6
  16745. else
  16746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16747. /* end confdefs.h. */
  16748. #if defined __GNUC__ || defined _AIX || defined _MSC_VER
  16749. Need own alloca
  16750. #endif
  16751. _ACEOF
  16752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16753. $EGREP "Need own alloca" >/dev/null 2>&1; then :
  16754. gl_cv_rpl_alloca=yes
  16755. else
  16756. gl_cv_rpl_alloca=no
  16757. fi
  16758. rm -f conftest*
  16759. fi
  16760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
  16761. $as_echo "$gl_cv_rpl_alloca" >&6; }
  16762. if test $gl_cv_rpl_alloca = yes; then
  16763. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  16764. ALLOCA_H=alloca.h
  16765. else
  16766. ALLOCA_H=
  16767. fi
  16768. else
  16769. ALLOCA_H=alloca.h
  16770. fi
  16771. if test -n "$ALLOCA_H"; then
  16772. GL_GENERATE_ALLOCA_H_TRUE=
  16773. GL_GENERATE_ALLOCA_H_FALSE='#'
  16774. else
  16775. GL_GENERATE_ALLOCA_H_TRUE='#'
  16776. GL_GENERATE_ALLOCA_H_FALSE=
  16777. fi
  16778. :
  16779. :
  16780. $as_echo "#define HAVE_DUP2 1" >>confdefs.h
  16781. if test $HAVE_DUP2 = 1; then
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
  16783. $as_echo_n "checking whether dup2 works... " >&6; }
  16784. if ${gl_cv_func_dup2_works+:} false; then :
  16785. $as_echo_n "(cached) " >&6
  16786. else
  16787. if test "$cross_compiling" = yes; then :
  16788. case "$host_os" in
  16789. mingw*) # on this platform, dup2 always returns 0 for success
  16790. gl_cv_func_dup2_works=no;;
  16791. cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
  16792. gl_cv_func_dup2_works=no;;
  16793. linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
  16794. # closed fd may yield -EBADF instead of -1 / errno=EBADF.
  16795. gl_cv_func_dup2_works=no;;
  16796. freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
  16797. gl_cv_func_dup2_works=no;;
  16798. haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
  16799. gl_cv_func_dup2_works=no;;
  16800. *) gl_cv_func_dup2_works=yes;;
  16801. esac
  16802. else
  16803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16804. /* end confdefs.h. */
  16805. #include <unistd.h>
  16806. #include <fcntl.h>
  16807. #include <errno.h>
  16808. int
  16809. main ()
  16810. {
  16811. int result = 0;
  16812. #ifdef FD_CLOEXEC
  16813. if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
  16814. result |= 1;
  16815. #endif
  16816. if (dup2 (1, 1) == 0)
  16817. result |= 2;
  16818. #ifdef FD_CLOEXEC
  16819. if (fcntl (1, F_GETFD) != FD_CLOEXEC)
  16820. result |= 4;
  16821. #endif
  16822. close (0);
  16823. if (dup2 (0, 0) != -1)
  16824. result |= 8;
  16825. /* Many gnulib modules require POSIX conformance of EBADF. */
  16826. if (dup2 (2, 1000000) == -1 && errno != EBADF)
  16827. result |= 16;
  16828. return result;
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_run "$LINENO"; then :
  16834. gl_cv_func_dup2_works=yes
  16835. else
  16836. gl_cv_func_dup2_works=no
  16837. fi
  16838. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16839. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16840. fi
  16841. fi
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
  16843. $as_echo "$gl_cv_func_dup2_works" >&6; }
  16844. if test "$gl_cv_func_dup2_works" = no; then
  16845. REPLACE_DUP2=1
  16846. fi
  16847. fi
  16848. if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
  16849. gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
  16850. fi
  16851. GNULIB_DUP2=1
  16852. # Persuade glibc <stdlib.h> to declare getloadavg().
  16853. gl_save_LIBS=$LIBS
  16854. # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
  16855. # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
  16856. HAVE_GETLOADAVG=1
  16857. ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
  16858. if test "x$ac_cv_func_getloadavg" = xyes; then :
  16859. else
  16860. gl_func_getloadavg_done=no
  16861. # Some systems with -lutil have (and need) -lkvm as well, some do not.
  16862. # On Solaris, -lkvm requires nlist from -lelf, so check that first
  16863. # to get the right answer into the cache.
  16864. # For kstat on solaris, we need to test for libelf and libkvm to force the
  16865. # definition of SVR4 below.
  16866. if test $gl_func_getloadavg_done = no; then
  16867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
  16868. $as_echo_n "checking for elf_begin in -lelf... " >&6; }
  16869. if ${ac_cv_lib_elf_elf_begin+:} false; then :
  16870. $as_echo_n "(cached) " >&6
  16871. else
  16872. ac_check_lib_save_LIBS=$LIBS
  16873. LIBS="-lelf $LIBS"
  16874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16875. /* end confdefs.h. */
  16876. /* Override any GCC internal prototype to avoid an error.
  16877. Use char because int might match the return type of a GCC
  16878. builtin and then its argument prototype would still apply. */
  16879. #ifdef __cplusplus
  16880. extern "C"
  16881. #endif
  16882. char elf_begin ();
  16883. int
  16884. main ()
  16885. {
  16886. return elf_begin ();
  16887. ;
  16888. return 0;
  16889. }
  16890. _ACEOF
  16891. if ac_fn_c_try_link "$LINENO"; then :
  16892. ac_cv_lib_elf_elf_begin=yes
  16893. else
  16894. ac_cv_lib_elf_elf_begin=no
  16895. fi
  16896. rm -f core conftest.err conftest.$ac_objext \
  16897. conftest$ac_exeext conftest.$ac_ext
  16898. LIBS=$ac_check_lib_save_LIBS
  16899. fi
  16900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
  16901. $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
  16902. if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
  16903. LIBS="-lelf $LIBS"
  16904. fi
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
  16906. $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
  16907. if ${ac_cv_lib_kvm_kvm_open+:} false; then :
  16908. $as_echo_n "(cached) " >&6
  16909. else
  16910. ac_check_lib_save_LIBS=$LIBS
  16911. LIBS="-lkvm $LIBS"
  16912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16913. /* end confdefs.h. */
  16914. /* Override any GCC internal prototype to avoid an error.
  16915. Use char because int might match the return type of a GCC
  16916. builtin and then its argument prototype would still apply. */
  16917. #ifdef __cplusplus
  16918. extern "C"
  16919. #endif
  16920. char kvm_open ();
  16921. int
  16922. main ()
  16923. {
  16924. return kvm_open ();
  16925. ;
  16926. return 0;
  16927. }
  16928. _ACEOF
  16929. if ac_fn_c_try_link "$LINENO"; then :
  16930. ac_cv_lib_kvm_kvm_open=yes
  16931. else
  16932. ac_cv_lib_kvm_kvm_open=no
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. LIBS=$ac_check_lib_save_LIBS
  16937. fi
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
  16939. $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
  16940. if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
  16941. LIBS="-lkvm $LIBS"
  16942. fi
  16943. # Check for the 4.4BSD definition of getloadavg.
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
  16945. $as_echo_n "checking for getloadavg in -lutil... " >&6; }
  16946. if ${ac_cv_lib_util_getloadavg+:} false; then :
  16947. $as_echo_n "(cached) " >&6
  16948. else
  16949. ac_check_lib_save_LIBS=$LIBS
  16950. LIBS="-lutil $LIBS"
  16951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16952. /* end confdefs.h. */
  16953. /* Override any GCC internal prototype to avoid an error.
  16954. Use char because int might match the return type of a GCC
  16955. builtin and then its argument prototype would still apply. */
  16956. #ifdef __cplusplus
  16957. extern "C"
  16958. #endif
  16959. char getloadavg ();
  16960. int
  16961. main ()
  16962. {
  16963. return getloadavg ();
  16964. ;
  16965. return 0;
  16966. }
  16967. _ACEOF
  16968. if ac_fn_c_try_link "$LINENO"; then :
  16969. ac_cv_lib_util_getloadavg=yes
  16970. else
  16971. ac_cv_lib_util_getloadavg=no
  16972. fi
  16973. rm -f core conftest.err conftest.$ac_objext \
  16974. conftest$ac_exeext conftest.$ac_ext
  16975. LIBS=$ac_check_lib_save_LIBS
  16976. fi
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
  16978. $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
  16979. if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
  16980. LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
  16981. fi
  16982. fi
  16983. if test $gl_func_getloadavg_done = no; then
  16984. # There is a commonly available library for RS/6000 AIX.
  16985. # Since it is not a standard part of AIX, it might be installed locally.
  16986. gl_getloadavg_LIBS=$LIBS
  16987. LIBS="-L/usr/local/lib $LIBS"
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
  16989. $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
  16990. if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
  16991. $as_echo_n "(cached) " >&6
  16992. else
  16993. ac_check_lib_save_LIBS=$LIBS
  16994. LIBS="-lgetloadavg $LIBS"
  16995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16996. /* end confdefs.h. */
  16997. /* Override any GCC internal prototype to avoid an error.
  16998. Use char because int might match the return type of a GCC
  16999. builtin and then its argument prototype would still apply. */
  17000. #ifdef __cplusplus
  17001. extern "C"
  17002. #endif
  17003. char getloadavg ();
  17004. int
  17005. main ()
  17006. {
  17007. return getloadavg ();
  17008. ;
  17009. return 0;
  17010. }
  17011. _ACEOF
  17012. if ac_fn_c_try_link "$LINENO"; then :
  17013. ac_cv_lib_getloadavg_getloadavg=yes
  17014. else
  17015. ac_cv_lib_getloadavg_getloadavg=no
  17016. fi
  17017. rm -f core conftest.err conftest.$ac_objext \
  17018. conftest$ac_exeext conftest.$ac_ext
  17019. LIBS=$ac_check_lib_save_LIBS
  17020. fi
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
  17022. $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
  17023. if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
  17024. LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
  17025. else
  17026. LIBS=$gl_getloadavg_LIBS
  17027. fi
  17028. fi
  17029. # Set up the replacement function if necessary.
  17030. if test $gl_func_getloadavg_done = no; then
  17031. HAVE_GETLOADAVG=0
  17032. # Solaris has libkstat which does not require root.
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
  17034. $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
  17035. if ${ac_cv_lib_kstat_kstat_open+:} false; then :
  17036. $as_echo_n "(cached) " >&6
  17037. else
  17038. ac_check_lib_save_LIBS=$LIBS
  17039. LIBS="-lkstat $LIBS"
  17040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17041. /* end confdefs.h. */
  17042. /* Override any GCC internal prototype to avoid an error.
  17043. Use char because int might match the return type of a GCC
  17044. builtin and then its argument prototype would still apply. */
  17045. #ifdef __cplusplus
  17046. extern "C"
  17047. #endif
  17048. char kstat_open ();
  17049. int
  17050. main ()
  17051. {
  17052. return kstat_open ();
  17053. ;
  17054. return 0;
  17055. }
  17056. _ACEOF
  17057. if ac_fn_c_try_link "$LINENO"; then :
  17058. ac_cv_lib_kstat_kstat_open=yes
  17059. else
  17060. ac_cv_lib_kstat_kstat_open=no
  17061. fi
  17062. rm -f core conftest.err conftest.$ac_objext \
  17063. conftest$ac_exeext conftest.$ac_ext
  17064. LIBS=$ac_check_lib_save_LIBS
  17065. fi
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
  17067. $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
  17068. if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
  17069. cat >>confdefs.h <<_ACEOF
  17070. #define HAVE_LIBKSTAT 1
  17071. _ACEOF
  17072. LIBS="-lkstat $LIBS"
  17073. fi
  17074. test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
  17075. # AIX has libperfstat which does not require root
  17076. if test $gl_func_getloadavg_done = no; then
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
  17078. $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
  17079. if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
  17080. $as_echo_n "(cached) " >&6
  17081. else
  17082. ac_check_lib_save_LIBS=$LIBS
  17083. LIBS="-lperfstat $LIBS"
  17084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17085. /* end confdefs.h. */
  17086. /* Override any GCC internal prototype to avoid an error.
  17087. Use char because int might match the return type of a GCC
  17088. builtin and then its argument prototype would still apply. */
  17089. #ifdef __cplusplus
  17090. extern "C"
  17091. #endif
  17092. char perfstat_cpu_total ();
  17093. int
  17094. main ()
  17095. {
  17096. return perfstat_cpu_total ();
  17097. ;
  17098. return 0;
  17099. }
  17100. _ACEOF
  17101. if ac_fn_c_try_link "$LINENO"; then :
  17102. ac_cv_lib_perfstat_perfstat_cpu_total=yes
  17103. else
  17104. ac_cv_lib_perfstat_perfstat_cpu_total=no
  17105. fi
  17106. rm -f core conftest.err conftest.$ac_objext \
  17107. conftest$ac_exeext conftest.$ac_ext
  17108. LIBS=$ac_check_lib_save_LIBS
  17109. fi
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
  17111. $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
  17112. if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
  17113. cat >>confdefs.h <<_ACEOF
  17114. #define HAVE_LIBPERFSTAT 1
  17115. _ACEOF
  17116. LIBS="-lperfstat $LIBS"
  17117. fi
  17118. test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
  17119. fi
  17120. if test $gl_func_getloadavg_done = no; then
  17121. ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
  17122. if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
  17123. gl_func_getloadavg_done=yes
  17124. $as_echo "#define DGUX 1" >>confdefs.h
  17125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
  17126. $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
  17127. if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
  17128. $as_echo_n "(cached) " >&6
  17129. else
  17130. ac_check_lib_save_LIBS=$LIBS
  17131. LIBS="-ldgc $LIBS"
  17132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17133. /* end confdefs.h. */
  17134. /* Override any GCC internal prototype to avoid an error.
  17135. Use char because int might match the return type of a GCC
  17136. builtin and then its argument prototype would still apply. */
  17137. #ifdef __cplusplus
  17138. extern "C"
  17139. #endif
  17140. char dg_sys_info ();
  17141. int
  17142. main ()
  17143. {
  17144. return dg_sys_info ();
  17145. ;
  17146. return 0;
  17147. }
  17148. _ACEOF
  17149. if ac_fn_c_try_link "$LINENO"; then :
  17150. ac_cv_lib_dgc_dg_sys_info=yes
  17151. else
  17152. ac_cv_lib_dgc_dg_sys_info=no
  17153. fi
  17154. rm -f core conftest.err conftest.$ac_objext \
  17155. conftest$ac_exeext conftest.$ac_ext
  17156. LIBS=$ac_check_lib_save_LIBS
  17157. fi
  17158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
  17159. $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
  17160. if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
  17161. cat >>confdefs.h <<_ACEOF
  17162. #define HAVE_LIBDGC 1
  17163. _ACEOF
  17164. LIBS="-ldgc $LIBS"
  17165. fi
  17166. fi
  17167. fi
  17168. fi
  17169. fi
  17170. if test "x$gl_save_LIBS" = x; then
  17171. GETLOADAVG_LIBS=$LIBS
  17172. else
  17173. GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
  17174. fi
  17175. LIBS=$gl_save_LIBS
  17176. # Test whether the system declares getloadavg. Solaris has the function
  17177. # but declares it in <sys/loadavg.h>, not <stdlib.h>.
  17178. for ac_header in sys/loadavg.h
  17179. do :
  17180. ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
  17181. if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
  17182. cat >>confdefs.h <<_ACEOF
  17183. #define HAVE_SYS_LOADAVG_H 1
  17184. _ACEOF
  17185. fi
  17186. done
  17187. if test $ac_cv_header_sys_loadavg_h = yes; then
  17188. HAVE_SYS_LOADAVG_H=1
  17189. else
  17190. HAVE_SYS_LOADAVG_H=0
  17191. fi
  17192. ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
  17193. # include <sys/loadavg.h>
  17194. #endif
  17195. #include <stdlib.h>
  17196. "
  17197. if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
  17198. else
  17199. HAVE_DECL_GETLOADAVG=0
  17200. fi
  17201. if test $HAVE_GETLOADAVG = 0; then
  17202. gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
  17203. # Figure out what our getloadavg.c needs.
  17204. # On HPUX9, an unprivileged user can get load averages this way.
  17205. if test $gl_func_getloadavg_done = no; then
  17206. for ac_func in pstat_getdynamic
  17207. do :
  17208. ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
  17209. if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
  17210. cat >>confdefs.h <<_ACEOF
  17211. #define HAVE_PSTAT_GETDYNAMIC 1
  17212. _ACEOF
  17213. gl_func_getloadavg_done=yes
  17214. fi
  17215. done
  17216. fi
  17217. # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  17218. # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
  17219. # Irix 4.0.5F has the header but not the library.
  17220. if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
  17221. && test "$ac_cv_lib_kvm_kvm_open" = yes; then
  17222. gl_func_getloadavg_done=yes
  17223. $as_echo "#define SVR4 1" >>confdefs.h
  17224. fi
  17225. if test $gl_func_getloadavg_done = no; then
  17226. ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
  17227. if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
  17228. gl_func_getloadavg_done=yes
  17229. $as_echo "#define UMAX 1" >>confdefs.h
  17230. $as_echo "#define UMAX4_3 1" >>confdefs.h
  17231. fi
  17232. fi
  17233. if test $gl_func_getloadavg_done = no; then
  17234. ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
  17235. if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
  17236. gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
  17237. fi
  17238. fi
  17239. if test $gl_func_getloadavg_done = no; then
  17240. for ac_header in mach/mach.h
  17241. do :
  17242. ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
  17243. if test "x$ac_cv_header_mach_mach_h" = xyes; then :
  17244. cat >>confdefs.h <<_ACEOF
  17245. #define HAVE_MACH_MACH_H 1
  17246. _ACEOF
  17247. fi
  17248. done
  17249. fi
  17250. for ac_header in nlist.h
  17251. do :
  17252. ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
  17253. if test "x$ac_cv_header_nlist_h" = xyes; then :
  17254. cat >>confdefs.h <<_ACEOF
  17255. #define HAVE_NLIST_H 1
  17256. _ACEOF
  17257. ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
  17258. "
  17259. if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
  17260. cat >>confdefs.h <<_ACEOF
  17261. #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
  17262. _ACEOF
  17263. fi
  17264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17265. /* end confdefs.h. */
  17266. #include <nlist.h>
  17267. int
  17268. main ()
  17269. {
  17270. struct nlist x;
  17271. #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
  17272. x.n_un.n_name = "";
  17273. #else
  17274. x.n_name = "";
  17275. #endif
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. if ac_fn_c_try_link "$LINENO"; then :
  17281. $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
  17282. fi
  17283. rm -f core conftest.err conftest.$ac_objext \
  17284. conftest$ac_exeext conftest.$ac_ext
  17285. fi
  17286. done
  17287. fi
  17288. GNULIB_GETLOADAVG=1
  17289. if test $REPLACE_GETOPT = 1; then
  17290. gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
  17291. gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
  17292. fi
  17293. REPLACE_GETOPT=0
  17294. if test -n "$gl_replace_getopt"; then :
  17295. REPLACE_GETOPT=1
  17296. fi
  17297. if test $REPLACE_GETOPT = 1; then
  17298. GETOPT_H=getopt.h
  17299. $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
  17300. GNULIB_UNISTD_H_GETOPT=1
  17301. fi
  17302. if test $REPLACE_GETOPT = 1; then
  17303. gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
  17304. gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
  17305. fi
  17306. if test $ac_cv_func_lstat = yes; then
  17307. if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
  17308. REPLACE_LSTAT=1
  17309. fi
  17310. else
  17311. HAVE_LSTAT=0
  17312. fi
  17313. if test $REPLACE_LSTAT = 1; then
  17314. gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
  17315. :
  17316. fi
  17317. GNULIB_LSTAT=1
  17318. if test $APPLE_UNIVERSAL_BUILD = 1; then
  17319. # A universal build on Apple MacOS X platforms.
  17320. # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
  17321. # But we need a configuration result that is valid in both modes.
  17322. gl_cv_func_working_mktime=no
  17323. fi
  17324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17325. $as_echo_n "checking for working mktime... " >&6; }
  17326. if ${gl_cv_func_working_mktime+:} false; then :
  17327. $as_echo_n "(cached) " >&6
  17328. else
  17329. if test "$cross_compiling" = yes; then :
  17330. gl_cv_func_working_mktime=no
  17331. else
  17332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17333. /* end confdefs.h. */
  17334. /* Test program from Paul Eggert and Tony Leneis. */
  17335. #include <limits.h>
  17336. #include <stdlib.h>
  17337. #include <time.h>
  17338. #ifdef HAVE_UNISTD_H
  17339. # include <unistd.h>
  17340. #endif
  17341. #ifndef HAVE_ALARM
  17342. # define alarm(X) /* empty */
  17343. #endif
  17344. /* Work around redefinition to rpl_putenv by other config tests. */
  17345. #undef putenv
  17346. static time_t time_t_max;
  17347. static time_t time_t_min;
  17348. /* Values we'll use to set the TZ environment variable. */
  17349. static char *tz_strings[] = {
  17350. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17351. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17352. };
  17353. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17354. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17355. Based on a problem report from Andreas Jaeger. */
  17356. static int
  17357. spring_forward_gap ()
  17358. {
  17359. /* glibc (up to about 1998-10-07) failed this test. */
  17360. struct tm tm;
  17361. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17362. instead of "TZ=America/Vancouver" in order to detect the bug even
  17363. on systems that don't support the Olson extension, or don't have the
  17364. full zoneinfo tables installed. */
  17365. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17366. tm.tm_year = 98;
  17367. tm.tm_mon = 3;
  17368. tm.tm_mday = 5;
  17369. tm.tm_hour = 2;
  17370. tm.tm_min = 0;
  17371. tm.tm_sec = 0;
  17372. tm.tm_isdst = -1;
  17373. return mktime (&tm) != (time_t) -1;
  17374. }
  17375. static int
  17376. mktime_test1 (time_t now)
  17377. {
  17378. struct tm *lt;
  17379. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17380. }
  17381. static int
  17382. mktime_test (time_t now)
  17383. {
  17384. return (mktime_test1 (now)
  17385. && mktime_test1 ((time_t) (time_t_max - now))
  17386. && mktime_test1 ((time_t) (time_t_min + now)));
  17387. }
  17388. static int
  17389. irix_6_4_bug ()
  17390. {
  17391. /* Based on code from Ariel Faigon. */
  17392. struct tm tm;
  17393. tm.tm_year = 96;
  17394. tm.tm_mon = 3;
  17395. tm.tm_mday = 0;
  17396. tm.tm_hour = 0;
  17397. tm.tm_min = 0;
  17398. tm.tm_sec = 0;
  17399. tm.tm_isdst = -1;
  17400. mktime (&tm);
  17401. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17402. }
  17403. static int
  17404. bigtime_test (int j)
  17405. {
  17406. struct tm tm;
  17407. time_t now;
  17408. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17409. now = mktime (&tm);
  17410. if (now != (time_t) -1)
  17411. {
  17412. struct tm *lt = localtime (&now);
  17413. if (! (lt
  17414. && lt->tm_year == tm.tm_year
  17415. && lt->tm_mon == tm.tm_mon
  17416. && lt->tm_mday == tm.tm_mday
  17417. && lt->tm_hour == tm.tm_hour
  17418. && lt->tm_min == tm.tm_min
  17419. && lt->tm_sec == tm.tm_sec
  17420. && lt->tm_yday == tm.tm_yday
  17421. && lt->tm_wday == tm.tm_wday
  17422. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17423. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17424. return 0;
  17425. }
  17426. return 1;
  17427. }
  17428. static int
  17429. year_2050_test ()
  17430. {
  17431. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17432. ignoring leap seconds. */
  17433. unsigned long int answer = 2527315200UL;
  17434. struct tm tm;
  17435. time_t t;
  17436. tm.tm_year = 2050 - 1900;
  17437. tm.tm_mon = 2 - 1;
  17438. tm.tm_mday = 1;
  17439. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17440. tm.tm_isdst = -1;
  17441. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17442. instead of "TZ=America/Vancouver" in order to detect the bug even
  17443. on systems that don't support the Olson extension, or don't have the
  17444. full zoneinfo tables installed. */
  17445. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17446. t = mktime (&tm);
  17447. /* Check that the result is either a failure, or close enough
  17448. to the correct answer that we can assume the discrepancy is
  17449. due to leap seconds. */
  17450. return (t == (time_t) -1
  17451. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17452. }
  17453. int
  17454. main ()
  17455. {
  17456. int result = 0;
  17457. time_t t, delta;
  17458. int i, j;
  17459. int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
  17460. int time_t_signed = ! ((time_t) 0 < (time_t) -1);
  17461. /* This test makes some buggy mktime implementations loop.
  17462. Give up after 60 seconds; a mktime slower than that
  17463. isn't worth using anyway. */
  17464. alarm (60);
  17465. time_t_max = (! time_t_signed
  17466. ? (time_t) -1
  17467. : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
  17468. * 2 + 1));
  17469. time_t_min = (! time_t_signed
  17470. ? (time_t) 0
  17471. : time_t_signed_magnitude
  17472. ? ~ (time_t) 0
  17473. : ~ time_t_max);
  17474. delta = time_t_max / 997; /* a suitable prime number */
  17475. for (i = 0; i < N_STRINGS; i++)
  17476. {
  17477. if (tz_strings[i])
  17478. putenv (tz_strings[i]);
  17479. for (t = 0; t <= time_t_max - delta; t += delta)
  17480. if (! mktime_test (t))
  17481. result |= 1;
  17482. if (! (mktime_test ((time_t) 1)
  17483. && mktime_test ((time_t) (60 * 60))
  17484. && mktime_test ((time_t) (60 * 60 * 24))))
  17485. result |= 2;
  17486. for (j = 1; ; j <<= 1)
  17487. if (! bigtime_test (j))
  17488. result |= 4;
  17489. else if (INT_MAX / 2 < j)
  17490. break;
  17491. if (! bigtime_test (INT_MAX))
  17492. result |= 8;
  17493. }
  17494. if (! irix_6_4_bug ())
  17495. result |= 16;
  17496. if (! spring_forward_gap ())
  17497. result |= 32;
  17498. if (! year_2050_test ())
  17499. result |= 64;
  17500. return result;
  17501. }
  17502. _ACEOF
  17503. if ac_fn_c_try_run "$LINENO"; then :
  17504. gl_cv_func_working_mktime=yes
  17505. else
  17506. gl_cv_func_working_mktime=no
  17507. fi
  17508. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17509. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17510. fi
  17511. fi
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
  17513. $as_echo "$gl_cv_func_working_mktime" >&6; }
  17514. if test $gl_cv_func_working_mktime = no; then
  17515. REPLACE_MKTIME=1
  17516. else
  17517. REPLACE_MKTIME=0
  17518. fi
  17519. if test $REPLACE_MKTIME = 1; then
  17520. gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
  17521. fi
  17522. GNULIB_MKTIME=1
  17523. LIB_PTHREAD_SIGMASK=
  17524. if test $ac_cv_func_pthread_sigmask = yes; then
  17525. :
  17526. else
  17527. HAVE_PTHREAD_SIGMASK=0
  17528. REPLACE_PTHREAD_SIGMASK=1
  17529. fi
  17530. if test $HAVE_PTHREAD_SIGMASK = 1; then
  17531. if test -z "$LIB_PTHREAD_SIGMASK"; then
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
  17533. $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
  17534. if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then :
  17535. $as_echo_n "(cached) " >&6
  17536. else
  17537. if test "$cross_compiling" = yes; then :
  17538. case "$host_os" in
  17539. freebsd* | hpux* | solaris | solaris2.[2-9]*)
  17540. gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
  17541. *)
  17542. gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
  17543. esac
  17544. else
  17545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17546. /* end confdefs.h. */
  17547. #include <pthread.h>
  17548. #include <signal.h>
  17549. #include <stddef.h>
  17550. int main ()
  17551. {
  17552. sigset_t set;
  17553. sigemptyset (&set);
  17554. return pthread_sigmask (1729, &set, NULL) != 0;
  17555. }
  17556. _ACEOF
  17557. if ac_fn_c_try_run "$LINENO"; then :
  17558. gl_cv_func_pthread_sigmask_in_libc_works=no
  17559. else
  17560. gl_cv_func_pthread_sigmask_in_libc_works=yes
  17561. fi
  17562. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17563. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17564. fi
  17565. fi
  17566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
  17567. $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
  17568. case "$gl_cv_func_pthread_sigmask_in_libc_works" in
  17569. *no)
  17570. REPLACE_PTHREAD_SIGMASK=1
  17571. $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
  17572. ;;
  17573. esac
  17574. fi
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
  17576. $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
  17577. if ${gl_cv_func_pthread_sigmask_return_works+:} false; then :
  17578. $as_echo_n "(cached) " >&6
  17579. else
  17580. gl_save_LIBS="$LIBS"
  17581. LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
  17582. if test "$cross_compiling" = yes; then :
  17583. case "$host_os" in
  17584. cygwin*)
  17585. gl_cv_func_pthread_sigmask_return_works="guessing no";;
  17586. *)
  17587. gl_cv_func_pthread_sigmask_return_works="guessing yes";;
  17588. esac
  17589. else
  17590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17591. /* end confdefs.h. */
  17592. #include <pthread.h>
  17593. #include <signal.h>
  17594. #include <stddef.h>
  17595. int main ()
  17596. {
  17597. sigset_t set;
  17598. sigemptyset (&set);
  17599. if (pthread_sigmask (1729, &set, NULL) == -1)
  17600. return 1;
  17601. return 0;
  17602. }
  17603. _ACEOF
  17604. if ac_fn_c_try_run "$LINENO"; then :
  17605. gl_cv_func_pthread_sigmask_return_works=yes
  17606. else
  17607. gl_cv_func_pthread_sigmask_return_works=no
  17608. fi
  17609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17610. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17611. fi
  17612. LIBS="$gl_save_LIBS"
  17613. fi
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
  17615. $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
  17616. case "$gl_cv_func_pthread_sigmask_return_works" in
  17617. *no)
  17618. REPLACE_PTHREAD_SIGMASK=1
  17619. $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
  17620. ;;
  17621. esac
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
  17623. $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
  17624. if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then :
  17625. $as_echo_n "(cached) " >&6
  17626. else
  17627. case "$host_os" in
  17628. irix*)
  17629. gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
  17630. *)
  17631. gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
  17632. esac
  17633. gl_save_LIBS="$LIBS"
  17634. LIBS="$LIBS $LIBMULTITHREAD"
  17635. if test "$cross_compiling" = yes; then :
  17636. :
  17637. else
  17638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17639. /* end confdefs.h. */
  17640. #include <pthread.h>
  17641. #include <signal.h>
  17642. #include <stdio.h>
  17643. #include <stdlib.h>
  17644. #include <unistd.h>
  17645. static volatile int sigint_occurred;
  17646. static void
  17647. sigint_handler (int sig)
  17648. {
  17649. sigint_occurred++;
  17650. }
  17651. int main ()
  17652. {
  17653. sigset_t set;
  17654. int pid = getpid ();
  17655. char command[80];
  17656. signal (SIGINT, sigint_handler);
  17657. sigemptyset (&set);
  17658. sigaddset (&set, SIGINT);
  17659. if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
  17660. return 1;
  17661. sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
  17662. if (!(system (command) == 0))
  17663. return 2;
  17664. sleep (2);
  17665. if (!(sigint_occurred == 0))
  17666. return 3;
  17667. if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
  17668. return 4;
  17669. if (!(sigint_occurred == 1)) /* This fails on IRIX. */
  17670. return 5;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. if ac_fn_c_try_run "$LINENO"; then :
  17675. :
  17676. else
  17677. gl_cv_func_pthread_sigmask_unblock_works=no
  17678. fi
  17679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17681. fi
  17682. LIBS="$gl_save_LIBS"
  17683. fi
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
  17685. $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
  17686. case "$gl_cv_func_pthread_sigmask_unblock_works" in
  17687. *no)
  17688. REPLACE_PTHREAD_SIGMASK=1
  17689. $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
  17690. ;;
  17691. esac
  17692. fi
  17693. if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
  17694. gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
  17695. if test $HAVE_PTHREAD_SIGMASK = 1; then
  17696. $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
  17697. fi
  17698. fi
  17699. GNULIB_PTHREAD_SIGMASK=1
  17700. if test $ac_cv_func_readlink = no; then
  17701. HAVE_READLINK=0
  17702. else
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
  17704. $as_echo_n "checking whether readlink signature is correct... " >&6; }
  17705. if ${gl_cv_decl_readlink_works+:} false; then :
  17706. $as_echo_n "(cached) " >&6
  17707. else
  17708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17709. /* end confdefs.h. */
  17710. #include <unistd.h>
  17711. /* Cause compilation failure if original declaration has wrong type. */
  17712. ssize_t readlink (const char *, char *, size_t);
  17713. int
  17714. main ()
  17715. {
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_compile "$LINENO"; then :
  17721. gl_cv_decl_readlink_works=yes
  17722. else
  17723. gl_cv_decl_readlink_works=no
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17726. fi
  17727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
  17728. $as_echo "$gl_cv_decl_readlink_works" >&6; }
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
  17730. $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
  17731. if ${gl_cv_func_readlink_works+:} false; then :
  17732. $as_echo_n "(cached) " >&6
  17733. else
  17734. # We have readlink, so assume ln -s works.
  17735. ln -s conftest.no-such conftest.link
  17736. ln -s conftest.link conftest.lnk2
  17737. if test "$cross_compiling" = yes; then :
  17738. gl_cv_func_readlink_works="guessing no"
  17739. else
  17740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17741. /* end confdefs.h. */
  17742. #include <unistd.h>
  17743. int
  17744. main ()
  17745. {
  17746. char buf[20];
  17747. return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
  17748. ;
  17749. return 0;
  17750. }
  17751. _ACEOF
  17752. if ac_fn_c_try_run "$LINENO"; then :
  17753. gl_cv_func_readlink_works=yes
  17754. else
  17755. gl_cv_func_readlink_works=no
  17756. fi
  17757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17758. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17759. fi
  17760. rm -f conftest.link conftest.lnk2
  17761. fi
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
  17763. $as_echo "$gl_cv_func_readlink_works" >&6; }
  17764. if test "$gl_cv_func_readlink_works" != yes; then
  17765. $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
  17766. REPLACE_READLINK=1
  17767. elif test "$gl_cv_decl_readlink_works" != yes; then
  17768. REPLACE_READLINK=1
  17769. fi
  17770. fi
  17771. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  17772. gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
  17773. :
  17774. fi
  17775. GNULIB_READLINK=1
  17776. if test $gl_cv_have_include_next = yes; then
  17777. gl_cv_next_signal_h='<'signal.h'>'
  17778. else
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  17780. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  17781. if ${gl_cv_next_signal_h+:} false; then :
  17782. $as_echo_n "(cached) " >&6
  17783. else
  17784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17785. /* end confdefs.h. */
  17786. #include <signal.h>
  17787. _ACEOF
  17788. case "$host_os" in
  17789. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  17790. *) gl_absname_cpp="$ac_cpp" ;;
  17791. esac
  17792. case "$host_os" in
  17793. mingw*)
  17794. gl_dirsep_regex='[/\\]'
  17795. ;;
  17796. *)
  17797. gl_dirsep_regex='/'
  17798. ;;
  17799. esac
  17800. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
  17801. s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
  17802. s|^/[^/]|//&|
  17803. p
  17804. q
  17805. }'
  17806. gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  17807. sed -n "$gl_absolute_header_sed"`'"'
  17808. fi
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  17810. $as_echo "$gl_cv_next_signal_h" >&6; }
  17811. fi
  17812. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  17813. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  17814. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  17815. gl_next_as_first_directive='<'signal.h'>'
  17816. else
  17817. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  17818. gl_next_as_first_directive=$gl_cv_next_signal_h
  17819. fi
  17820. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  17821. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  17822. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  17823. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  17824. #include <signal.h>
  17825. "
  17826. if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
  17827. else
  17828. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  17829. fi
  17830. ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  17831. #include <signal.h>
  17832. "
  17833. if test "x$ac_cv_type_sighandler_t" = xyes; then :
  17834. else
  17835. HAVE_SIGHANDLER_T=0
  17836. fi
  17837. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  17838. /* <sys/types.h> is not needed according to POSIX, but the
  17839. <sys/socket.h> in i386-unknown-freebsd4.10 and
  17840. powerpc-apple-darwin5.5 required it. */
  17841. #include <sys/types.h>
  17842. #if HAVE_SYS_SOCKET_H
  17843. # include <sys/socket.h>
  17844. #elif HAVE_WS2TCPIP_H
  17845. # include <ws2tcpip.h>
  17846. #endif
  17847. "
  17848. if test "x$ac_cv_type_socklen_t" = xyes; then :
  17849. else
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  17851. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  17852. if ${gl_cv_socklen_t_equiv+:} false; then :
  17853. $as_echo_n "(cached) " >&6
  17854. else
  17855. # Systems have either "struct sockaddr *" or
  17856. # "void *" as the second argument to getpeername
  17857. gl_cv_socklen_t_equiv=
  17858. for arg2 in "struct sockaddr" void; do
  17859. for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  17860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17861. /* end confdefs.h. */
  17862. #include <sys/types.h>
  17863. #include <sys/socket.h>
  17864. int getpeername (int, $arg2 *, $t *);
  17865. int
  17866. main ()
  17867. {
  17868. $t len;
  17869. getpeername (0, 0, &len);
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. if ac_fn_c_try_compile "$LINENO"; then :
  17875. gl_cv_socklen_t_equiv="$t"
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17878. test "$gl_cv_socklen_t_equiv" != "" && break
  17879. done
  17880. test "$gl_cv_socklen_t_equiv" != "" && break
  17881. done
  17882. fi
  17883. if test "$gl_cv_socklen_t_equiv" = ""; then
  17884. as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  17885. fi
  17886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  17887. $as_echo "$gl_cv_socklen_t_equiv" >&6; }
  17888. cat >>confdefs.h <<_ACEOF
  17889. #define socklen_t $gl_cv_socklen_t_equiv
  17890. _ACEOF
  17891. fi
  17892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  17893. $as_echo_n "checking for ssize_t... " >&6; }
  17894. if ${gt_cv_ssize_t+:} false; then :
  17895. $as_echo_n "(cached) " >&6
  17896. else
  17897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17898. /* end confdefs.h. */
  17899. #include <sys/types.h>
  17900. int
  17901. main ()
  17902. {
  17903. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  17904. return !x;
  17905. ;
  17906. return 0;
  17907. }
  17908. _ACEOF
  17909. if ac_fn_c_try_compile "$LINENO"; then :
  17910. gt_cv_ssize_t=yes
  17911. else
  17912. gt_cv_ssize_t=no
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17915. fi
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  17917. $as_echo "$gt_cv_ssize_t" >&6; }
  17918. if test $gt_cv_ssize_t = no; then
  17919. $as_echo "#define ssize_t int" >>confdefs.h
  17920. fi
  17921. STDARG_H=''
  17922. NEXT_STDARG_H='<stdarg.h>'
  17923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  17924. $as_echo_n "checking for va_copy... " >&6; }
  17925. if ${gl_cv_func_va_copy+:} false; then :
  17926. $as_echo_n "(cached) " >&6
  17927. else
  17928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17929. /* end confdefs.h. */
  17930. #include <stdarg.h>
  17931. int
  17932. main ()
  17933. {
  17934. #ifndef va_copy
  17935. void (*func) (va_list, va_list) = va_copy;
  17936. #endif
  17937. ;
  17938. return 0;
  17939. }
  17940. _ACEOF
  17941. if ac_fn_c_try_compile "$LINENO"; then :
  17942. gl_cv_func_va_copy=yes
  17943. else
  17944. gl_cv_func_va_copy=no
  17945. fi
  17946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. fi
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
  17949. $as_echo "$gl_cv_func_va_copy" >&6; }
  17950. if test $gl_cv_func_va_copy = no; then
  17951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17952. /* end confdefs.h. */
  17953. #if defined _AIX && !defined __GNUC__
  17954. AIX vaccine
  17955. #endif
  17956. _ACEOF
  17957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17958. $EGREP "vaccine" >/dev/null 2>&1; then :
  17959. gl_aixcc=yes
  17960. else
  17961. gl_aixcc=no
  17962. fi
  17963. rm -f conftest*
  17964. if test $gl_aixcc = yes; then
  17965. STDARG_H=stdarg.h
  17966. if test $gl_cv_have_include_next = yes; then
  17967. gl_cv_next_stdarg_h='<'stdarg.h'>'
  17968. else
  17969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
  17970. $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
  17971. if ${gl_cv_next_stdarg_h+:} false; then :
  17972. $as_echo_n "(cached) " >&6
  17973. else
  17974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17975. /* end confdefs.h. */
  17976. #include <stdarg.h>
  17977. _ACEOF
  17978. case "$host_os" in
  17979. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  17980. *) gl_absname_cpp="$ac_cpp" ;;
  17981. esac
  17982. case "$host_os" in
  17983. mingw*)
  17984. gl_dirsep_regex='[/\\]'
  17985. ;;
  17986. *)
  17987. gl_dirsep_regex='/'
  17988. ;;
  17989. esac
  17990. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
  17991. s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
  17992. s|^/[^/]|//&|
  17993. p
  17994. q
  17995. }'
  17996. gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  17997. sed -n "$gl_absolute_header_sed"`'"'
  17998. fi
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
  18000. $as_echo "$gl_cv_next_stdarg_h" >&6; }
  18001. fi
  18002. NEXT_STDARG_H=$gl_cv_next_stdarg_h
  18003. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18004. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18005. gl_next_as_first_directive='<'stdarg.h'>'
  18006. else
  18007. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18008. gl_next_as_first_directive=$gl_cv_next_stdarg_h
  18009. fi
  18010. NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
  18011. if test "$gl_cv_next_stdarg_h" = '""'; then
  18012. gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
  18013. NEXT_STDARG_H="$gl_cv_next_stdarg_h"
  18014. fi
  18015. else
  18016. saved_as_echo_n="$as_echo_n"
  18017. as_echo_n=':'
  18018. if ${gl_cv_func___va_copy+:} false; then :
  18019. $as_echo_n "(cached) " >&6
  18020. else
  18021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18022. /* end confdefs.h. */
  18023. #include <stdarg.h>
  18024. int
  18025. main ()
  18026. {
  18027. #ifndef __va_copy
  18028. error, bail out
  18029. #endif
  18030. ;
  18031. return 0;
  18032. }
  18033. _ACEOF
  18034. if ac_fn_c_try_compile "$LINENO"; then :
  18035. gl_cv_func___va_copy=yes
  18036. else
  18037. gl_cv_func___va_copy=no
  18038. fi
  18039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18040. fi
  18041. as_echo_n="$saved_as_echo_n"
  18042. if test $gl_cv_func___va_copy = yes; then
  18043. $as_echo "#define va_copy __va_copy" >>confdefs.h
  18044. else
  18045. $as_echo "#define va_copy gl_va_copy" >>confdefs.h
  18046. fi
  18047. fi
  18048. fi
  18049. if test -n "$STDARG_H"; then
  18050. GL_GENERATE_STDARG_H_TRUE=
  18051. GL_GENERATE_STDARG_H_FALSE='#'
  18052. else
  18053. GL_GENERATE_STDARG_H_TRUE='#'
  18054. GL_GENERATE_STDARG_H_FALSE=
  18055. fi
  18056. # Define two additional variables used in the Makefile substitution.
  18057. if test "$ac_cv_header_stdbool_h" = yes; then
  18058. STDBOOL_H=''
  18059. else
  18060. STDBOOL_H='stdbool.h'
  18061. fi
  18062. if test -n "$STDBOOL_H"; then
  18063. GL_GENERATE_STDBOOL_H_TRUE=
  18064. GL_GENERATE_STDBOOL_H_FALSE='#'
  18065. else
  18066. GL_GENERATE_STDBOOL_H_TRUE='#'
  18067. GL_GENERATE_STDBOOL_H_FALSE=
  18068. fi
  18069. if test "$ac_cv_type__Bool" = yes; then
  18070. HAVE__BOOL=1
  18071. else
  18072. HAVE__BOOL=0
  18073. fi
  18074. STDDEF_H=
  18075. if test $gt_cv_c_wchar_t = no; then
  18076. HAVE_WCHAR_T=0
  18077. STDDEF_H=stddef.h
  18078. fi
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  18080. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  18081. if ${gl_cv_decl_null_works+:} false; then :
  18082. $as_echo_n "(cached) " >&6
  18083. else
  18084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18085. /* end confdefs.h. */
  18086. #include <stddef.h>
  18087. int test[2 * (sizeof NULL == sizeof (void *)) -1];
  18088. int
  18089. main ()
  18090. {
  18091. ;
  18092. return 0;
  18093. }
  18094. _ACEOF
  18095. if ac_fn_c_try_compile "$LINENO"; then :
  18096. gl_cv_decl_null_works=yes
  18097. else
  18098. gl_cv_decl_null_works=no
  18099. fi
  18100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18101. fi
  18102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  18103. $as_echo "$gl_cv_decl_null_works" >&6; }
  18104. if test $gl_cv_decl_null_works = no; then
  18105. REPLACE_NULL=1
  18106. STDDEF_H=stddef.h
  18107. fi
  18108. if test -n "$STDDEF_H"; then
  18109. GL_GENERATE_STDDEF_H_TRUE=
  18110. GL_GENERATE_STDDEF_H_FALSE='#'
  18111. else
  18112. GL_GENERATE_STDDEF_H_TRUE='#'
  18113. GL_GENERATE_STDDEF_H_FALSE=
  18114. fi
  18115. if test -n "$STDDEF_H"; then
  18116. if test $gl_cv_have_include_next = yes; then
  18117. gl_cv_next_stddef_h='<'stddef.h'>'
  18118. else
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  18120. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  18121. if ${gl_cv_next_stddef_h+:} false; then :
  18122. $as_echo_n "(cached) " >&6
  18123. else
  18124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18125. /* end confdefs.h. */
  18126. #include <stddef.h>
  18127. _ACEOF
  18128. case "$host_os" in
  18129. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18130. *) gl_absname_cpp="$ac_cpp" ;;
  18131. esac
  18132. case "$host_os" in
  18133. mingw*)
  18134. gl_dirsep_regex='[/\\]'
  18135. ;;
  18136. *)
  18137. gl_dirsep_regex='/'
  18138. ;;
  18139. esac
  18140. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
  18141. s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
  18142. s|^/[^/]|//&|
  18143. p
  18144. q
  18145. }'
  18146. gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18147. sed -n "$gl_absolute_header_sed"`'"'
  18148. fi
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  18150. $as_echo "$gl_cv_next_stddef_h" >&6; }
  18151. fi
  18152. NEXT_STDDEF_H=$gl_cv_next_stddef_h
  18153. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18154. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18155. gl_next_as_first_directive='<'stddef.h'>'
  18156. else
  18157. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18158. gl_next_as_first_directive=$gl_cv_next_stddef_h
  18159. fi
  18160. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  18161. fi
  18162. if test $gl_cv_have_include_next = yes; then
  18163. gl_cv_next_stdio_h='<'stdio.h'>'
  18164. else
  18165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
  18166. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  18167. if ${gl_cv_next_stdio_h+:} false; then :
  18168. $as_echo_n "(cached) " >&6
  18169. else
  18170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18171. /* end confdefs.h. */
  18172. #include <stdio.h>
  18173. _ACEOF
  18174. case "$host_os" in
  18175. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18176. *) gl_absname_cpp="$ac_cpp" ;;
  18177. esac
  18178. case "$host_os" in
  18179. mingw*)
  18180. gl_dirsep_regex='[/\\]'
  18181. ;;
  18182. *)
  18183. gl_dirsep_regex='/'
  18184. ;;
  18185. esac
  18186. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
  18187. s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
  18188. s|^/[^/]|//&|
  18189. p
  18190. q
  18191. }'
  18192. gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18193. sed -n "$gl_absolute_header_sed"`'"'
  18194. fi
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
  18196. $as_echo "$gl_cv_next_stdio_h" >&6; }
  18197. fi
  18198. NEXT_STDIO_H=$gl_cv_next_stdio_h
  18199. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18200. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18201. gl_next_as_first_directive='<'stdio.h'>'
  18202. else
  18203. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18204. gl_next_as_first_directive=$gl_cv_next_stdio_h
  18205. fi
  18206. NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  18207. GNULIB_FSCANF=1
  18208. GNULIB_SCANF=1
  18209. GNULIB_FGETC=1
  18210. GNULIB_GETC=1
  18211. GNULIB_GETCHAR=1
  18212. GNULIB_FGETS=1
  18213. GNULIB_FREAD=1
  18214. GNULIB_FPRINTF=1
  18215. GNULIB_PRINTF=1
  18216. GNULIB_VFPRINTF=1
  18217. GNULIB_VPRINTF=1
  18218. GNULIB_FPUTC=1
  18219. GNULIB_PUTC=1
  18220. GNULIB_PUTCHAR=1
  18221. GNULIB_FPUTS=1
  18222. GNULIB_PUTS=1
  18223. GNULIB_FWRITE=1
  18224. if test $gl_cv_have_include_next = yes; then
  18225. gl_cv_next_stdlib_h='<'stdlib.h'>'
  18226. else
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
  18228. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  18229. if ${gl_cv_next_stdlib_h+:} false; then :
  18230. $as_echo_n "(cached) " >&6
  18231. else
  18232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18233. /* end confdefs.h. */
  18234. #include <stdlib.h>
  18235. _ACEOF
  18236. case "$host_os" in
  18237. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18238. *) gl_absname_cpp="$ac_cpp" ;;
  18239. esac
  18240. case "$host_os" in
  18241. mingw*)
  18242. gl_dirsep_regex='[/\\]'
  18243. ;;
  18244. *)
  18245. gl_dirsep_regex='/'
  18246. ;;
  18247. esac
  18248. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
  18249. s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
  18250. s|^/[^/]|//&|
  18251. p
  18252. q
  18253. }'
  18254. gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18255. sed -n "$gl_absolute_header_sed"`'"'
  18256. fi
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
  18258. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  18259. fi
  18260. NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  18261. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18262. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18263. gl_next_as_first_directive='<'stdlib.h'>'
  18264. else
  18265. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18266. gl_next_as_first_directive=$gl_cv_next_stdlib_h
  18267. fi
  18268. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  18269. # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
  18270. $as_echo "#define my_strftime nstrftime" >>confdefs.h
  18271. if test "$ac_cv_have_decl_strtoimax" != yes; then
  18272. HAVE_DECL_STRTOIMAX=0
  18273. fi
  18274. if test $ac_cv_func_strtoimax = no; then
  18275. gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
  18276. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  18277. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  18278. ac_have_decl=1
  18279. else
  18280. ac_have_decl=0
  18281. fi
  18282. cat >>confdefs.h <<_ACEOF
  18283. #define HAVE_DECL_STRTOLL $ac_have_decl
  18284. _ACEOF
  18285. fi
  18286. GNULIB_STRTOIMAX=1
  18287. if test "$ac_cv_have_decl_strtoumax" != yes; then
  18288. HAVE_DECL_STRTOUMAX=0
  18289. fi
  18290. if test $ac_cv_func_strtoumax = no; then
  18291. gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
  18292. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  18293. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  18294. ac_have_decl=1
  18295. else
  18296. ac_have_decl=0
  18297. fi
  18298. cat >>confdefs.h <<_ACEOF
  18299. #define HAVE_DECL_STRTOULL $ac_have_decl
  18300. _ACEOF
  18301. fi
  18302. GNULIB_STRTOUMAX=1
  18303. if test $ac_cv_func_symlink = no; then
  18304. HAVE_SYMLINK=0
  18305. else
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
  18307. $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
  18308. if ${gl_cv_func_symlink_works+:} false; then :
  18309. $as_echo_n "(cached) " >&6
  18310. else
  18311. if test "$cross_compiling" = yes; then :
  18312. gl_cv_func_symlink_works="guessing no"
  18313. else
  18314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. /* end confdefs.h. */
  18316. #include <unistd.h>
  18317. int
  18318. main ()
  18319. {
  18320. int result = 0;
  18321. if (!symlink ("a", "conftest.link/"))
  18322. result |= 1;
  18323. if (symlink ("conftest.f", "conftest.lnk2"))
  18324. result |= 2;
  18325. else if (!symlink ("a", "conftest.lnk2/"))
  18326. result |= 4;
  18327. return result;
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_run "$LINENO"; then :
  18333. gl_cv_func_symlink_works=yes
  18334. else
  18335. gl_cv_func_symlink_works=no
  18336. fi
  18337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18338. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18339. fi
  18340. rm -f conftest.f conftest.link conftest.lnk2
  18341. fi
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
  18343. $as_echo "$gl_cv_func_symlink_works" >&6; }
  18344. if test "$gl_cv_func_symlink_works" != yes; then
  18345. REPLACE_SYMLINK=1
  18346. fi
  18347. fi
  18348. if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
  18349. gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
  18350. fi
  18351. GNULIB_SYMLINK=1
  18352. if test $gl_cv_have_include_next = yes; then
  18353. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  18354. else
  18355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  18356. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  18357. if ${gl_cv_next_sys_stat_h+:} false; then :
  18358. $as_echo_n "(cached) " >&6
  18359. else
  18360. if test $ac_cv_header_sys_stat_h = yes; then
  18361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18362. /* end confdefs.h. */
  18363. #include <sys/stat.h>
  18364. _ACEOF
  18365. case "$host_os" in
  18366. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18367. *) gl_absname_cpp="$ac_cpp" ;;
  18368. esac
  18369. case "$host_os" in
  18370. mingw*)
  18371. gl_dirsep_regex='[/\\]'
  18372. ;;
  18373. *)
  18374. gl_dirsep_regex='/'
  18375. ;;
  18376. esac
  18377. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
  18378. s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
  18379. s|^/[^/]|//&|
  18380. p
  18381. q
  18382. }'
  18383. gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18384. sed -n "$gl_absolute_header_sed"`'"'
  18385. else
  18386. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  18387. fi
  18388. fi
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  18390. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  18391. fi
  18392. NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  18393. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18394. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18395. gl_next_as_first_directive='<'sys/stat.h'>'
  18396. else
  18397. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18398. gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  18399. fi
  18400. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  18401. ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  18402. #include <sys/stat.h>
  18403. "
  18404. if test "x$ac_cv_type_nlink_t" = xyes; then :
  18405. else
  18406. $as_echo "#define nlink_t int" >>confdefs.h
  18407. fi
  18408. if test $ac_cv_have_decl_localtime_r = no; then
  18409. HAVE_DECL_LOCALTIME_R=0
  18410. fi
  18411. if test $ac_cv_func_localtime_r = yes; then
  18412. HAVE_LOCALTIME_R=1
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
  18414. $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
  18415. if ${gl_cv_time_r_posix+:} false; then :
  18416. $as_echo_n "(cached) " >&6
  18417. else
  18418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18419. /* end confdefs.h. */
  18420. #include <time.h>
  18421. int
  18422. main ()
  18423. {
  18424. /* We don't need to append 'restrict's to the argument types,
  18425. even though the POSIX signature has the 'restrict's,
  18426. since C99 says they can't affect type compatibility. */
  18427. struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
  18428. if (ptr) return 0;
  18429. /* Check the return type is a pointer.
  18430. On HP-UX 10 it is 'int'. */
  18431. *localtime_r (0, 0);
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. if ac_fn_c_try_compile "$LINENO"; then :
  18437. gl_cv_time_r_posix=yes
  18438. else
  18439. gl_cv_time_r_posix=no
  18440. fi
  18441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18442. fi
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
  18444. $as_echo "$gl_cv_time_r_posix" >&6; }
  18445. if test $gl_cv_time_r_posix = yes; then
  18446. REPLACE_LOCALTIME_R=0
  18447. else
  18448. REPLACE_LOCALTIME_R=1
  18449. fi
  18450. else
  18451. HAVE_LOCALTIME_R=0
  18452. fi
  18453. if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  18454. gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
  18455. :
  18456. fi
  18457. GNULIB_TIME_R=1
  18458. if test $gl_cv_have_include_next = yes; then
  18459. gl_cv_next_unistd_h='<'unistd.h'>'
  18460. else
  18461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
  18462. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  18463. if ${gl_cv_next_unistd_h+:} false; then :
  18464. $as_echo_n "(cached) " >&6
  18465. else
  18466. if test $ac_cv_header_unistd_h = yes; then
  18467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18468. /* end confdefs.h. */
  18469. #include <unistd.h>
  18470. _ACEOF
  18471. case "$host_os" in
  18472. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18473. *) gl_absname_cpp="$ac_cpp" ;;
  18474. esac
  18475. case "$host_os" in
  18476. mingw*)
  18477. gl_dirsep_regex='[/\\]'
  18478. ;;
  18479. *)
  18480. gl_dirsep_regex='/'
  18481. ;;
  18482. esac
  18483. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
  18484. s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
  18485. s|^/[^/]|//&|
  18486. p
  18487. q
  18488. }'
  18489. gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18490. sed -n "$gl_absolute_header_sed"`'"'
  18491. else
  18492. gl_cv_next_unistd_h='<'unistd.h'>'
  18493. fi
  18494. fi
  18495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
  18496. $as_echo "$gl_cv_next_unistd_h" >&6; }
  18497. fi
  18498. NEXT_UNISTD_H=$gl_cv_next_unistd_h
  18499. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18500. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18501. gl_next_as_first_directive='<'unistd.h'>'
  18502. else
  18503. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18504. gl_next_as_first_directive=$gl_cv_next_unistd_h
  18505. fi
  18506. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  18507. if test $ac_cv_header_unistd_h = yes; then
  18508. HAVE_UNISTD_H=1
  18509. else
  18510. HAVE_UNISTD_H=0
  18511. fi
  18512. gl_gnulib_enabled_dosname=false
  18513. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
  18514. gl_gnulib_enabled_pathmax=false
  18515. gl_gnulib_enabled_sigprocmask=false
  18516. gl_gnulib_enabled_stat=false
  18517. gl_gnulib_enabled_strtoll=false
  18518. gl_gnulib_enabled_strtoull=false
  18519. gl_gnulib_enabled_verify=false
  18520. func_gl_gnulib_m4code_dosname ()
  18521. {
  18522. if ! $gl_gnulib_enabled_dosname; then
  18523. gl_gnulib_enabled_dosname=true
  18524. fi
  18525. }
  18526. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
  18527. {
  18528. if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  18529. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
  18530. fi
  18531. }
  18532. func_gl_gnulib_m4code_pathmax ()
  18533. {
  18534. if ! $gl_gnulib_enabled_pathmax; then
  18535. gl_gnulib_enabled_pathmax=true
  18536. fi
  18537. }
  18538. func_gl_gnulib_m4code_sigprocmask ()
  18539. {
  18540. if ! $gl_gnulib_enabled_sigprocmask; then
  18541. if test $gl_cv_type_sigset_t = yes; then
  18542. ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
  18543. if test "x$ac_cv_func_sigprocmask" = xyes; then :
  18544. gl_cv_func_sigprocmask=1
  18545. fi
  18546. fi
  18547. if test -z "$gl_cv_func_sigprocmask"; then
  18548. HAVE_POSIX_SIGNALBLOCKING=0
  18549. fi
  18550. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  18551. gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  18552. fi
  18553. GNULIB_SIGPROCMASK=1
  18554. gl_gnulib_enabled_sigprocmask=true
  18555. fi
  18556. }
  18557. func_gl_gnulib_m4code_stat ()
  18558. {
  18559. if ! $gl_gnulib_enabled_stat; then
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
  18561. $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
  18562. if ${gl_cv_func_stat_dir_slash+:} false; then :
  18563. $as_echo_n "(cached) " >&6
  18564. else
  18565. if test "$cross_compiling" = yes; then :
  18566. case $host_os in
  18567. mingw*) gl_cv_func_stat_dir_slash="guessing no";;
  18568. *) gl_cv_func_stat_dir_slash="guessing yes";;
  18569. esac
  18570. else
  18571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18572. /* end confdefs.h. */
  18573. #include <sys/stat.h>
  18574. int
  18575. main ()
  18576. {
  18577. struct stat st; return stat (".", &st) != stat ("./", &st);
  18578. ;
  18579. return 0;
  18580. }
  18581. _ACEOF
  18582. if ac_fn_c_try_run "$LINENO"; then :
  18583. gl_cv_func_stat_dir_slash=yes
  18584. else
  18585. gl_cv_func_stat_dir_slash=no
  18586. fi
  18587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18588. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18589. fi
  18590. fi
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
  18592. $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
  18594. $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
  18595. if ${gl_cv_func_stat_file_slash+:} false; then :
  18596. $as_echo_n "(cached) " >&6
  18597. else
  18598. touch conftest.tmp
  18599. # Assume that if we have lstat, we can also check symlinks.
  18600. if test $ac_cv_func_lstat = yes; then
  18601. ln -s conftest.tmp conftest.lnk
  18602. fi
  18603. if test "$cross_compiling" = yes; then :
  18604. gl_cv_func_stat_file_slash="guessing no"
  18605. else
  18606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18607. /* end confdefs.h. */
  18608. #include <sys/stat.h>
  18609. int
  18610. main ()
  18611. {
  18612. int result = 0;
  18613. struct stat st;
  18614. if (!stat ("conftest.tmp/", &st))
  18615. result |= 1;
  18616. #if HAVE_LSTAT
  18617. if (!stat ("conftest.lnk/", &st))
  18618. result |= 2;
  18619. #endif
  18620. return result;
  18621. ;
  18622. return 0;
  18623. }
  18624. _ACEOF
  18625. if ac_fn_c_try_run "$LINENO"; then :
  18626. gl_cv_func_stat_file_slash=yes
  18627. else
  18628. gl_cv_func_stat_file_slash=no
  18629. fi
  18630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18631. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18632. fi
  18633. rm -f conftest.tmp conftest.lnk
  18634. fi
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
  18636. $as_echo "$gl_cv_func_stat_file_slash" >&6; }
  18637. case $gl_cv_func_stat_dir_slash in
  18638. *no) REPLACE_STAT=1
  18639. $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
  18640. ;;
  18641. esac
  18642. case $gl_cv_func_stat_file_slash in
  18643. *no) REPLACE_STAT=1
  18644. $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
  18645. ;;
  18646. esac
  18647. if test $REPLACE_STAT = 1; then
  18648. gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
  18649. :
  18650. fi
  18651. GNULIB_STAT=1
  18652. gl_gnulib_enabled_stat=true
  18653. if test $REPLACE_STAT = 1; then
  18654. func_gl_gnulib_m4code_dosname
  18655. fi
  18656. if test $REPLACE_STAT = 1; then
  18657. func_gl_gnulib_m4code_pathmax
  18658. fi
  18659. if test $REPLACE_STAT = 1; then
  18660. func_gl_gnulib_m4code_verify
  18661. fi
  18662. fi
  18663. }
  18664. func_gl_gnulib_m4code_strtoll ()
  18665. {
  18666. if ! $gl_gnulib_enabled_strtoll; then
  18667. if test "$ac_cv_type_long_long_int" = yes; then
  18668. for ac_func in strtoll
  18669. do :
  18670. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  18671. if test "x$ac_cv_func_strtoll" = xyes; then :
  18672. cat >>confdefs.h <<_ACEOF
  18673. #define HAVE_STRTOLL 1
  18674. _ACEOF
  18675. fi
  18676. done
  18677. if test $ac_cv_func_strtoll = no; then
  18678. HAVE_STRTOLL=0
  18679. fi
  18680. fi
  18681. if test $HAVE_STRTOLL = 0; then
  18682. gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
  18683. :
  18684. fi
  18685. GNULIB_STRTOLL=1
  18686. gl_gnulib_enabled_strtoll=true
  18687. fi
  18688. }
  18689. func_gl_gnulib_m4code_strtoull ()
  18690. {
  18691. if ! $gl_gnulib_enabled_strtoull; then
  18692. if test "$ac_cv_type_unsigned_long_long_int" = yes; then
  18693. for ac_func in strtoull
  18694. do :
  18695. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  18696. if test "x$ac_cv_func_strtoull" = xyes; then :
  18697. cat >>confdefs.h <<_ACEOF
  18698. #define HAVE_STRTOULL 1
  18699. _ACEOF
  18700. fi
  18701. done
  18702. if test $ac_cv_func_strtoull = no; then
  18703. HAVE_STRTOULL=0
  18704. fi
  18705. fi
  18706. if test $HAVE_STRTOULL = 0; then
  18707. gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
  18708. :
  18709. fi
  18710. GNULIB_STRTOULL=1
  18711. gl_gnulib_enabled_strtoull=true
  18712. fi
  18713. }
  18714. func_gl_gnulib_m4code_verify ()
  18715. {
  18716. if ! $gl_gnulib_enabled_verify; then
  18717. gl_gnulib_enabled_verify=true
  18718. fi
  18719. }
  18720. if test $REPLACE_GETOPT = 1; then
  18721. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
  18722. fi
  18723. if test $REPLACE_LSTAT = 1; then
  18724. func_gl_gnulib_m4code_dosname
  18725. fi
  18726. if test $REPLACE_LSTAT = 1; then
  18727. func_gl_gnulib_m4code_stat
  18728. fi
  18729. if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
  18730. func_gl_gnulib_m4code_sigprocmask
  18731. fi
  18732. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  18733. func_gl_gnulib_m4code_stat
  18734. fi
  18735. if test $ac_cv_func_strtoimax = no; then
  18736. func_gl_gnulib_m4code_verify
  18737. fi
  18738. if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
  18739. func_gl_gnulib_m4code_strtoll
  18740. fi
  18741. if test $ac_cv_func_strtoumax = no; then
  18742. func_gl_gnulib_m4code_verify
  18743. fi
  18744. if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
  18745. func_gl_gnulib_m4code_strtoull
  18746. fi
  18747. if $gl_gnulib_enabled_dosname; then
  18748. gl_GNULIB_ENABLED_dosname_TRUE=
  18749. gl_GNULIB_ENABLED_dosname_FALSE='#'
  18750. else
  18751. gl_GNULIB_ENABLED_dosname_TRUE='#'
  18752. gl_GNULIB_ENABLED_dosname_FALSE=
  18753. fi
  18754. if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  18755. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
  18756. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
  18757. else
  18758. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
  18759. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
  18760. fi
  18761. if $gl_gnulib_enabled_pathmax; then
  18762. gl_GNULIB_ENABLED_pathmax_TRUE=
  18763. gl_GNULIB_ENABLED_pathmax_FALSE='#'
  18764. else
  18765. gl_GNULIB_ENABLED_pathmax_TRUE='#'
  18766. gl_GNULIB_ENABLED_pathmax_FALSE=
  18767. fi
  18768. if $gl_gnulib_enabled_sigprocmask; then
  18769. gl_GNULIB_ENABLED_sigprocmask_TRUE=
  18770. gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
  18771. else
  18772. gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
  18773. gl_GNULIB_ENABLED_sigprocmask_FALSE=
  18774. fi
  18775. if $gl_gnulib_enabled_stat; then
  18776. gl_GNULIB_ENABLED_stat_TRUE=
  18777. gl_GNULIB_ENABLED_stat_FALSE='#'
  18778. else
  18779. gl_GNULIB_ENABLED_stat_TRUE='#'
  18780. gl_GNULIB_ENABLED_stat_FALSE=
  18781. fi
  18782. if $gl_gnulib_enabled_strtoll; then
  18783. gl_GNULIB_ENABLED_strtoll_TRUE=
  18784. gl_GNULIB_ENABLED_strtoll_FALSE='#'
  18785. else
  18786. gl_GNULIB_ENABLED_strtoll_TRUE='#'
  18787. gl_GNULIB_ENABLED_strtoll_FALSE=
  18788. fi
  18789. if $gl_gnulib_enabled_strtoull; then
  18790. gl_GNULIB_ENABLED_strtoull_TRUE=
  18791. gl_GNULIB_ENABLED_strtoull_FALSE='#'
  18792. else
  18793. gl_GNULIB_ENABLED_strtoull_TRUE='#'
  18794. gl_GNULIB_ENABLED_strtoull_FALSE=
  18795. fi
  18796. if $gl_gnulib_enabled_verify; then
  18797. gl_GNULIB_ENABLED_verify_TRUE=
  18798. gl_GNULIB_ENABLED_verify_FALSE='#'
  18799. else
  18800. gl_GNULIB_ENABLED_verify_TRUE='#'
  18801. gl_GNULIB_ENABLED_verify_FALSE=
  18802. fi
  18803. # End of code from modules
  18804. gltests_libdeps=
  18805. gltests_ltlibdeps=
  18806. gl_source_base='tests'
  18807. 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
  18808. gl_module_indicator_condition=$gltests_WITNESS
  18809. LIBGNU_LIBDEPS="$gl_libdeps"
  18810. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  18811. case "$opsys" in
  18812. aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
  18813. darwin)
  18814. ## The -headerpad option tells ld (see man page) to leave room at the
  18815. ## end of the header for adding load commands. Needed for dumping.
  18816. ## 0x690 is the total size of 30 segment load commands (at 56
  18817. ## each); under Cocoa 31 commands are required.
  18818. if test "$HAVE_NS" = "yes"; then
  18819. libs_nsgui="-framework AppKit"
  18820. headerpad_extra=6C8
  18821. else
  18822. libs_nsgui=
  18823. headerpad_extra=690
  18824. fi
  18825. LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
  18826. ## This is here because src/Makefile.in did some extra fiddling around
  18827. ## with LD_SWITCH_SYSTEM. The cpp logic was:
  18828. ## #ifndef LD_SWITCH_SYSTEM
  18829. ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
  18830. ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
  18831. ## not using gcc, darwin system not on an alpha (ie darwin, since
  18832. ## darwin + alpha does not occur).
  18833. ## Because this was done in src/Makefile.in, the resulting part of
  18834. ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
  18835. ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
  18836. ## rather than LD_SWITCH_SYSTEM.
  18837. test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
  18838. LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
  18839. ;;
  18840. ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
  18841. ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
  18842. ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
  18843. ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
  18844. ## had different values in configure (in ac_link) and src/Makefile.in.
  18845. ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
  18846. gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
  18847. *) LD_SWITCH_SYSTEM_TEMACS= ;;
  18848. esac
  18849. if test "$NS_IMPL_GNUSTEP" = "yes"; then
  18850. LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
  18851. fi
  18852. LD_FIRSTFLAG=
  18853. ORDINARY_LINK=
  18854. case "$opsys" in
  18855. ## gnu: GNU needs its own crt0.
  18856. aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
  18857. ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
  18858. ## library search parth, i.e. it won't search /usr/lib for libc and
  18859. ## friends. Using -nostartfiles instead avoids this problem, and
  18860. ## will also work on earlier NetBSD releases.
  18861. netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
  18862. ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
  18863. ## MkLinux/LinuxPPC needs this.
  18864. ## ibms390x only supports opsys = gnu-linux so it can be added here.
  18865. gnu-*)
  18866. case "$machine" in
  18867. macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
  18868. esac
  18869. ;;
  18870. esac
  18871. if test "x$ORDINARY_LINK" = "xyes"; then
  18872. LD_FIRSTFLAG=""
  18873. $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
  18874. ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
  18875. ## freebsd, gnu-* not on macppc|ibms390x.
  18876. elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
  18877. ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
  18878. ## places that are difficult to figure out at make time. Fortunately,
  18879. ## these same versions allow you to pass arbitrary flags on to the
  18880. ## linker, so there is no reason not to use it as a linker.
  18881. ##
  18882. ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
  18883. ## searching for libraries in its internal directories, so we have to
  18884. ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
  18885. LD_FIRSTFLAG="-nostdlib"
  18886. fi
  18887. ## FIXME? What setting of EDIT_LDFLAGS should this have?
  18888. test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
  18889. ## FIXME? The logic here is not precisely the same as that above.
  18890. ## There is no check here for a pre-defined LD_FIRSTFLAG.
  18891. ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
  18892. LIB_GCC=
  18893. if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
  18894. case "$opsys" in
  18895. freebsd|netbsd|openbsd) LIB_GCC= ;;
  18896. gnu-*)
  18897. ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
  18898. ## build on ARM EABI under GNU/Linux. (Bug#5518)
  18899. case $host_cpu in
  18900. arm*)
  18901. LIB_GCC="-lgcc_s"
  18902. ;;
  18903. *)
  18904. ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
  18905. ## immediately undefine it again and redefine it to empty.
  18906. ## Was the C_SWITCH_X_SITE part really necessary?
  18907. ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
  18908. LIB_GCC=
  18909. ;;
  18910. esac
  18911. ;;
  18912. ## Ask GCC where to find libgcc.a.
  18913. *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
  18914. esac
  18915. fi
  18916. ## If we're using X11/GNUstep, define some consequences.
  18917. if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
  18918. $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
  18919. $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
  18920. fi
  18921. #### Report on what we decided to do.
  18922. #### Report GTK as a toolkit, even if it doesn't use Xt.
  18923. #### It makes printing result more understandable as using GTK sets
  18924. #### toolkit_scroll_bars to yes by default.
  18925. if test "${HAVE_GTK}" = "yes"; then
  18926. USE_X_TOOLKIT=GTK
  18927. fi
  18928. and_machfile=
  18929. if test -n "$machfile"; then
  18930. and_machfile=" and \`${machfile}'"
  18931. fi
  18932. echo "
  18933. Configured for \`${canonical}'.
  18934. Where should the build process find the source code? ${srcdir}
  18935. What operating system and machine description files should Emacs use?
  18936. \`${opsysfile}'${and_machfile}
  18937. What compiler should emacs be built with? ${CC} ${CFLAGS}
  18938. Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
  18939. Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
  18940. Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
  18941. What window system should Emacs use? ${window_system}
  18942. What toolkit should Emacs use? ${USE_X_TOOLKIT}"
  18943. if test -n "${x_includes}"; then
  18944. echo " Where do we find X Windows header files? ${x_includes}"
  18945. else
  18946. echo " Where do we find X Windows header files? Standard dirs"
  18947. fi
  18948. if test -n "${x_libraries}"; then
  18949. echo " Where do we find X Windows libraries? ${x_libraries}"
  18950. else
  18951. echo " Where do we find X Windows libraries? Standard dirs"
  18952. fi
  18953. echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
  18954. echo " Does Emacs use -lXpm? ${HAVE_XPM}"
  18955. echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
  18956. echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
  18957. echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
  18958. echo " Does Emacs use -lpng? ${HAVE_PNG}"
  18959. echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
  18960. echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
  18961. echo " Does Emacs use -lgpm? ${HAVE_GPM}"
  18962. echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
  18963. echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
  18964. echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
  18965. echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
  18966. echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
  18967. echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
  18968. echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
  18969. echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
  18970. echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
  18971. echo " Does Emacs use -lxft? ${HAVE_XFT}"
  18972. echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
  18973. echo
  18974. if test -n "${EMACSDATA}"; then
  18975. echo " Environment variable EMACSDATA set to: $EMACSDATA"
  18976. fi
  18977. if test -n "${EMACSDOC}"; then
  18978. echo " Environment variable EMACSDOC set to: $EMACSDOC"
  18979. fi
  18980. if test $USE_XASSERTS = yes; then
  18981. echo " Compiling with asserts turned on."
  18982. CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
  18983. fi
  18984. echo
  18985. if test "$HAVE_NS" = "yes"; then
  18986. echo
  18987. echo "You must run \"${MAKE-make} install\" in order to test the built application.
  18988. The installed application will go to nextstep/Emacs.app and can be
  18989. run or moved from there."
  18990. if test "$EN_NS_SELF_CONTAINED" = "yes"; then
  18991. echo "The application will be fully self-contained."
  18992. else
  18993. echo "The lisp resources for the application will be installed under ${prefix}.
  18994. You may need to run \"${MAKE-make} install\" with sudo. The application will fail
  18995. to run if these resources are not installed."
  18996. fi
  18997. echo
  18998. fi
  18999. # Remove any trailing slashes in these variables.
  19000. test "${prefix}" != NONE &&
  19001. prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
  19002. test "${exec_prefix}" != NONE &&
  19003. exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
  19004. SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
  19005. ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
  19006. opt_makefile=test/automated/Makefile
  19007. if test -f $srcdir/${opt_makefile}.in; then
  19008. SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
  19009. ac_config_files="$ac_config_files test/automated/Makefile"
  19010. fi
  19011. SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
  19012. ac_config_commands="$ac_config_commands mkdirs"
  19013. ac_config_commands="$ac_config_commands epaths"
  19014. ac_config_commands="$ac_config_commands gdbinit"
  19015. cat >confcache <<\_ACEOF
  19016. # This file is a shell script that caches the results of configure
  19017. # tests run on this system so they can be shared between configure
  19018. # scripts and configure runs, see configure's option --config-cache.
  19019. # It is not useful on other systems. If it contains results you don't
  19020. # want to keep, you may remove or edit it.
  19021. #
  19022. # config.status only pays attention to the cache file if you give it
  19023. # the --recheck option to rerun configure.
  19024. #
  19025. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19026. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19027. # following values.
  19028. _ACEOF
  19029. # The following way of writing the cache mishandles newlines in values,
  19030. # but we know of no workaround that is simple, portable, and efficient.
  19031. # So, we kill variables containing newlines.
  19032. # Ultrix sh set writes to stderr and can't be redirected directly,
  19033. # and sets the high bit in the cache file unless we assign to the vars.
  19034. (
  19035. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19036. eval ac_val=\$$ac_var
  19037. case $ac_val in #(
  19038. *${as_nl}*)
  19039. case $ac_var in #(
  19040. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19041. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19042. esac
  19043. case $ac_var in #(
  19044. _ | IFS | as_nl) ;; #(
  19045. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19046. *) { eval $ac_var=; unset $ac_var;} ;;
  19047. esac ;;
  19048. esac
  19049. done
  19050. (set) 2>&1 |
  19051. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19052. *${as_nl}ac_space=\ *)
  19053. # `set' does not quote correctly, so add quotes: double-quote
  19054. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19055. sed -n \
  19056. "s/'/'\\\\''/g;
  19057. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19058. ;; #(
  19059. *)
  19060. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19061. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19062. ;;
  19063. esac |
  19064. sort
  19065. ) |
  19066. sed '
  19067. /^ac_cv_env_/b end
  19068. t clear
  19069. :clear
  19070. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19071. t end
  19072. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19073. :end' >>confcache
  19074. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19075. if test -w "$cache_file"; then
  19076. if test "x$cache_file" != "x/dev/null"; then
  19077. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19078. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19079. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19080. cat confcache >"$cache_file"
  19081. else
  19082. case $cache_file in #(
  19083. */* | ?:*)
  19084. mv -f confcache "$cache_file"$$ &&
  19085. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19086. *)
  19087. mv -f confcache "$cache_file" ;;
  19088. esac
  19089. fi
  19090. fi
  19091. else
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19093. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19094. fi
  19095. fi
  19096. rm -f confcache
  19097. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19098. # Let make expand exec_prefix.
  19099. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19100. DEFS=-DHAVE_CONFIG_H
  19101. ac_libobjs=
  19102. ac_ltlibobjs=
  19103. U=
  19104. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19105. # 1. Remove the extension, and $U if already installed.
  19106. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19107. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19108. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19109. # will be set to the directory where LIBOBJS objects are built.
  19110. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19111. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19112. done
  19113. LIBOBJS=$ac_libobjs
  19114. LTLIBOBJS=$ac_ltlibobjs
  19115. if test -n "$EXEEXT"; then
  19116. am__EXEEXT_TRUE=
  19117. am__EXEEXT_FALSE='#'
  19118. else
  19119. am__EXEEXT_TRUE='#'
  19120. am__EXEEXT_FALSE=
  19121. fi
  19122. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19123. as_fn_error $? "conditional \"AMDEP\" was never defined.
  19124. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19125. fi
  19126. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19127. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  19128. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19129. fi
  19130. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  19131. as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  19132. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19133. fi
  19134. if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
  19135. as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
  19136. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19137. fi
  19138. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  19139. as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  19140. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19141. fi
  19142. if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
  19143. as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
  19144. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19145. fi
  19146. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  19147. as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  19148. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19149. fi
  19150. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  19151. as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  19152. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19153. fi
  19154. if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
  19155. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
  19156. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19157. fi
  19158. if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
  19159. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
  19160. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19161. fi
  19162. if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
  19163. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
  19164. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19165. fi
  19166. if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
  19167. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
  19168. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19169. fi
  19170. if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
  19171. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
  19172. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19173. fi
  19174. if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
  19175. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
  19176. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19177. fi
  19178. if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
  19179. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
  19180. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19181. fi
  19182. if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
  19183. as_fn_error $? "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
  19184. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19185. fi
  19186. gl_libobjs=
  19187. gl_ltlibobjs=
  19188. if test -n "$gl_LIBOBJS"; then
  19189. # Remove the extension.
  19190. sed_drop_objext='s/\.o$//;s/\.obj$//'
  19191. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  19192. gl_libobjs="$gl_libobjs $i.$ac_objext"
  19193. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  19194. done
  19195. fi
  19196. gl_LIBOBJS=$gl_libobjs
  19197. gl_LTLIBOBJS=$gl_ltlibobjs
  19198. gltests_libobjs=
  19199. gltests_ltlibobjs=
  19200. if test -n "$gltests_LIBOBJS"; then
  19201. # Remove the extension.
  19202. sed_drop_objext='s/\.o$//;s/\.obj$//'
  19203. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  19204. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  19205. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  19206. done
  19207. fi
  19208. gltests_LIBOBJS=$gltests_libobjs
  19209. gltests_LTLIBOBJS=$gltests_ltlibobjs
  19210. : "${CONFIG_STATUS=./config.status}"
  19211. ac_write_fail=0
  19212. ac_clean_files_save=$ac_clean_files
  19213. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19215. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19216. as_write_fail=0
  19217. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19218. #! $SHELL
  19219. # Generated by $as_me.
  19220. # Run this file to recreate the current configuration.
  19221. # Compiler output produced by configure, useful for debugging
  19222. # configure, is in config.log if it exists.
  19223. debug=false
  19224. ac_cs_recheck=false
  19225. ac_cs_silent=false
  19226. SHELL=\${CONFIG_SHELL-$SHELL}
  19227. export SHELL
  19228. _ASEOF
  19229. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19230. ## -------------------- ##
  19231. ## M4sh Initialization. ##
  19232. ## -------------------- ##
  19233. # Be more Bourne compatible
  19234. DUALCASE=1; export DUALCASE # for MKS sh
  19235. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19236. emulate sh
  19237. NULLCMD=:
  19238. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19239. # is contrary to our usage. Disable this feature.
  19240. alias -g '${1+"$@"}'='"$@"'
  19241. setopt NO_GLOB_SUBST
  19242. else
  19243. case `(set -o) 2>/dev/null` in #(
  19244. *posix*) :
  19245. set -o posix ;; #(
  19246. *) :
  19247. ;;
  19248. esac
  19249. fi
  19250. as_nl='
  19251. '
  19252. export as_nl
  19253. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19254. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19255. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19256. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19257. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19258. # but without wasting forks for bash or zsh.
  19259. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19260. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19261. as_echo='print -r --'
  19262. as_echo_n='print -rn --'
  19263. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19264. as_echo='printf %s\n'
  19265. as_echo_n='printf %s'
  19266. else
  19267. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19268. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19269. as_echo_n='/usr/ucb/echo -n'
  19270. else
  19271. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19272. as_echo_n_body='eval
  19273. arg=$1;
  19274. case $arg in #(
  19275. *"$as_nl"*)
  19276. expr "X$arg" : "X\\(.*\\)$as_nl";
  19277. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19278. esac;
  19279. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19280. '
  19281. export as_echo_n_body
  19282. as_echo_n='sh -c $as_echo_n_body as_echo'
  19283. fi
  19284. export as_echo_body
  19285. as_echo='sh -c $as_echo_body as_echo'
  19286. fi
  19287. # The user is always right.
  19288. if test "${PATH_SEPARATOR+set}" != set; then
  19289. PATH_SEPARATOR=:
  19290. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19291. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19292. PATH_SEPARATOR=';'
  19293. }
  19294. fi
  19295. # IFS
  19296. # We need space, tab and new line, in precisely that order. Quoting is
  19297. # there to prevent editors from complaining about space-tab.
  19298. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19299. # splitting by setting IFS to empty value.)
  19300. IFS=" "" $as_nl"
  19301. # Find who we are. Look in the path if we contain no directory separator.
  19302. as_myself=
  19303. case $0 in #((
  19304. *[\\/]* ) as_myself=$0 ;;
  19305. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19306. for as_dir in $PATH
  19307. do
  19308. IFS=$as_save_IFS
  19309. test -z "$as_dir" && as_dir=.
  19310. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19311. done
  19312. IFS=$as_save_IFS
  19313. ;;
  19314. esac
  19315. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19316. # in which case we are not to be found in the path.
  19317. if test "x$as_myself" = x; then
  19318. as_myself=$0
  19319. fi
  19320. if test ! -f "$as_myself"; then
  19321. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19322. exit 1
  19323. fi
  19324. # Unset variables that we do not need and which cause bugs (e.g. in
  19325. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19326. # suppresses any "Segmentation fault" message there. '((' could
  19327. # trigger a bug in pdksh 5.2.14.
  19328. for as_var in BASH_ENV ENV MAIL MAILPATH
  19329. do eval test x\${$as_var+set} = xset \
  19330. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19331. done
  19332. PS1='$ '
  19333. PS2='> '
  19334. PS4='+ '
  19335. # NLS nuisances.
  19336. LC_ALL=C
  19337. export LC_ALL
  19338. LANGUAGE=C
  19339. export LANGUAGE
  19340. # CDPATH.
  19341. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19343. # ----------------------------------------
  19344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19346. # script with STATUS, using 1 if that was 0.
  19347. as_fn_error ()
  19348. {
  19349. as_status=$1; test $as_status -eq 0 && as_status=1
  19350. if test "$4"; then
  19351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19353. fi
  19354. $as_echo "$as_me: error: $2" >&2
  19355. as_fn_exit $as_status
  19356. } # as_fn_error
  19357. # as_fn_set_status STATUS
  19358. # -----------------------
  19359. # Set $? to STATUS, without forking.
  19360. as_fn_set_status ()
  19361. {
  19362. return $1
  19363. } # as_fn_set_status
  19364. # as_fn_exit STATUS
  19365. # -----------------
  19366. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19367. as_fn_exit ()
  19368. {
  19369. set +e
  19370. as_fn_set_status $1
  19371. exit $1
  19372. } # as_fn_exit
  19373. # as_fn_unset VAR
  19374. # ---------------
  19375. # Portably unset VAR.
  19376. as_fn_unset ()
  19377. {
  19378. { eval $1=; unset $1;}
  19379. }
  19380. as_unset=as_fn_unset
  19381. # as_fn_append VAR VALUE
  19382. # ----------------------
  19383. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19384. # advantage of any shell optimizations that allow amortized linear growth over
  19385. # repeated appends, instead of the typical quadratic growth present in naive
  19386. # implementations.
  19387. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19388. eval 'as_fn_append ()
  19389. {
  19390. eval $1+=\$2
  19391. }'
  19392. else
  19393. as_fn_append ()
  19394. {
  19395. eval $1=\$$1\$2
  19396. }
  19397. fi # as_fn_append
  19398. # as_fn_arith ARG...
  19399. # ------------------
  19400. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19401. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19402. # must be portable across $(()) and expr.
  19403. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19404. eval 'as_fn_arith ()
  19405. {
  19406. as_val=$(( $* ))
  19407. }'
  19408. else
  19409. as_fn_arith ()
  19410. {
  19411. as_val=`expr "$@" || test $? -eq 1`
  19412. }
  19413. fi # as_fn_arith
  19414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19416. as_expr=expr
  19417. else
  19418. as_expr=false
  19419. fi
  19420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19421. as_basename=basename
  19422. else
  19423. as_basename=false
  19424. fi
  19425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19426. as_dirname=dirname
  19427. else
  19428. as_dirname=false
  19429. fi
  19430. as_me=`$as_basename -- "$0" ||
  19431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19432. X"$0" : 'X\(//\)$' \| \
  19433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19434. $as_echo X/"$0" |
  19435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19436. s//\1/
  19437. q
  19438. }
  19439. /^X\/\(\/\/\)$/{
  19440. s//\1/
  19441. q
  19442. }
  19443. /^X\/\(\/\).*/{
  19444. s//\1/
  19445. q
  19446. }
  19447. s/.*/./; q'`
  19448. # Avoid depending upon Character Ranges.
  19449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19452. as_cr_digits='0123456789'
  19453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19454. ECHO_C= ECHO_N= ECHO_T=
  19455. case `echo -n x` in #(((((
  19456. -n*)
  19457. case `echo 'xy\c'` in
  19458. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19459. xy) ECHO_C='\c';;
  19460. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19461. ECHO_T=' ';;
  19462. esac;;
  19463. *)
  19464. ECHO_N='-n';;
  19465. esac
  19466. rm -f conf$$ conf$$.exe conf$$.file
  19467. if test -d conf$$.dir; then
  19468. rm -f conf$$.dir/conf$$.file
  19469. else
  19470. rm -f conf$$.dir
  19471. mkdir conf$$.dir 2>/dev/null
  19472. fi
  19473. if (echo >conf$$.file) 2>/dev/null; then
  19474. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19475. as_ln_s='ln -s'
  19476. # ... but there are two gotchas:
  19477. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19478. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19479. # In both cases, we have to default to `cp -p'.
  19480. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19481. as_ln_s='cp -p'
  19482. elif ln conf$$.file conf$$ 2>/dev/null; then
  19483. as_ln_s=ln
  19484. else
  19485. as_ln_s='cp -p'
  19486. fi
  19487. else
  19488. as_ln_s='cp -p'
  19489. fi
  19490. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19491. rmdir conf$$.dir 2>/dev/null
  19492. # as_fn_mkdir_p
  19493. # -------------
  19494. # Create "$as_dir" as a directory, including parents if necessary.
  19495. as_fn_mkdir_p ()
  19496. {
  19497. case $as_dir in #(
  19498. -*) as_dir=./$as_dir;;
  19499. esac
  19500. test -d "$as_dir" || eval $as_mkdir_p || {
  19501. as_dirs=
  19502. while :; do
  19503. case $as_dir in #(
  19504. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19505. *) as_qdir=$as_dir;;
  19506. esac
  19507. as_dirs="'$as_qdir' $as_dirs"
  19508. as_dir=`$as_dirname -- "$as_dir" ||
  19509. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19510. X"$as_dir" : 'X\(//\)[^/]' \| \
  19511. X"$as_dir" : 'X\(//\)$' \| \
  19512. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19513. $as_echo X"$as_dir" |
  19514. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19515. s//\1/
  19516. q
  19517. }
  19518. /^X\(\/\/\)[^/].*/{
  19519. s//\1/
  19520. q
  19521. }
  19522. /^X\(\/\/\)$/{
  19523. s//\1/
  19524. q
  19525. }
  19526. /^X\(\/\).*/{
  19527. s//\1/
  19528. q
  19529. }
  19530. s/.*/./; q'`
  19531. test -d "$as_dir" && break
  19532. done
  19533. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19534. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19535. } # as_fn_mkdir_p
  19536. if mkdir -p . 2>/dev/null; then
  19537. as_mkdir_p='mkdir -p "$as_dir"'
  19538. else
  19539. test -d ./-p && rmdir ./-p
  19540. as_mkdir_p=false
  19541. fi
  19542. if test -x / >/dev/null 2>&1; then
  19543. as_test_x='test -x'
  19544. else
  19545. if ls -dL / >/dev/null 2>&1; then
  19546. as_ls_L_option=L
  19547. else
  19548. as_ls_L_option=
  19549. fi
  19550. as_test_x='
  19551. eval sh -c '\''
  19552. if test -d "$1"; then
  19553. test -d "$1/.";
  19554. else
  19555. case $1 in #(
  19556. -*)set "./$1";;
  19557. esac;
  19558. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  19559. ???[sx]*):;;*)false;;esac;fi
  19560. '\'' sh
  19561. '
  19562. fi
  19563. as_executable_p=$as_test_x
  19564. # Sed expression to map a string onto a valid CPP name.
  19565. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19566. # Sed expression to map a string onto a valid variable name.
  19567. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19568. exec 6>&1
  19569. ## ----------------------------------- ##
  19570. ## Main body of $CONFIG_STATUS script. ##
  19571. ## ----------------------------------- ##
  19572. _ASEOF
  19573. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19574. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19575. # Save the log message, to keep $0 and so on meaningful, and to
  19576. # report actual input values of CONFIG_FILES etc. instead of their
  19577. # values after options handling.
  19578. ac_log="
  19579. This file was extended by emacs $as_me 24.2, which was
  19580. generated by GNU Autoconf 2.68. Invocation command line was
  19581. CONFIG_FILES = $CONFIG_FILES
  19582. CONFIG_HEADERS = $CONFIG_HEADERS
  19583. CONFIG_LINKS = $CONFIG_LINKS
  19584. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19585. $ $0 $@
  19586. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19587. "
  19588. _ACEOF
  19589. case $ac_config_files in *"
  19590. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19591. esac
  19592. case $ac_config_headers in *"
  19593. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19594. esac
  19595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19596. # Files that config.status was made for.
  19597. config_files="$ac_config_files"
  19598. config_headers="$ac_config_headers"
  19599. config_commands="$ac_config_commands"
  19600. _ACEOF
  19601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19602. ac_cs_usage="\
  19603. \`$as_me' instantiates files and other configuration actions
  19604. from templates according to the current configuration. Unless the files
  19605. and actions are specified as TAGs, all are instantiated by default.
  19606. Usage: $0 [OPTION]... [TAG]...
  19607. -h, --help print this help, then exit
  19608. -V, --version print version number and configuration settings, then exit
  19609. --config print configuration, then exit
  19610. -q, --quiet, --silent
  19611. do not print progress messages
  19612. -d, --debug don't remove temporary files
  19613. --recheck update $as_me by reconfiguring in the same conditions
  19614. --file=FILE[:TEMPLATE]
  19615. instantiate the configuration file FILE
  19616. --header=FILE[:TEMPLATE]
  19617. instantiate the configuration header FILE
  19618. Configuration files:
  19619. $config_files
  19620. Configuration headers:
  19621. $config_headers
  19622. Configuration commands:
  19623. $config_commands
  19624. Report bugs to the package provider."
  19625. _ACEOF
  19626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19627. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19628. ac_cs_version="\\
  19629. emacs config.status 24.2
  19630. configured by $0, generated by GNU Autoconf 2.68,
  19631. with options \\"\$ac_cs_config\\"
  19632. Copyright (C) 2010 Free Software Foundation, Inc.
  19633. This config.status script is free software; the Free Software Foundation
  19634. gives unlimited permission to copy, distribute and modify it."
  19635. ac_pwd='$ac_pwd'
  19636. srcdir='$srcdir'
  19637. INSTALL='$INSTALL'
  19638. MKDIR_P='$MKDIR_P'
  19639. AWK='$AWK'
  19640. test -n "\$AWK" || AWK=awk
  19641. _ACEOF
  19642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19643. # The default lists apply if the user does not specify any file.
  19644. ac_need_defaults=:
  19645. while test $# != 0
  19646. do
  19647. case $1 in
  19648. --*=?*)
  19649. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19650. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19651. ac_shift=:
  19652. ;;
  19653. --*=)
  19654. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19655. ac_optarg=
  19656. ac_shift=:
  19657. ;;
  19658. *)
  19659. ac_option=$1
  19660. ac_optarg=$2
  19661. ac_shift=shift
  19662. ;;
  19663. esac
  19664. case $ac_option in
  19665. # Handling of the options.
  19666. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19667. ac_cs_recheck=: ;;
  19668. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19669. $as_echo "$ac_cs_version"; exit ;;
  19670. --config | --confi | --conf | --con | --co | --c )
  19671. $as_echo "$ac_cs_config"; exit ;;
  19672. --debug | --debu | --deb | --de | --d | -d )
  19673. debug=: ;;
  19674. --file | --fil | --fi | --f )
  19675. $ac_shift
  19676. case $ac_optarg in
  19677. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19678. '') as_fn_error $? "missing file argument" ;;
  19679. esac
  19680. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19681. ac_need_defaults=false;;
  19682. --header | --heade | --head | --hea )
  19683. $ac_shift
  19684. case $ac_optarg in
  19685. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19686. esac
  19687. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19688. ac_need_defaults=false;;
  19689. --he | --h)
  19690. # Conflict between --help and --header
  19691. as_fn_error $? "ambiguous option: \`$1'
  19692. Try \`$0 --help' for more information.";;
  19693. --help | --hel | -h )
  19694. $as_echo "$ac_cs_usage"; exit ;;
  19695. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19696. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19697. ac_cs_silent=: ;;
  19698. # This is an error.
  19699. -*) as_fn_error $? "unrecognized option: \`$1'
  19700. Try \`$0 --help' for more information." ;;
  19701. *) as_fn_append ac_config_targets " $1"
  19702. ac_need_defaults=false ;;
  19703. esac
  19704. shift
  19705. done
  19706. ac_configure_extra_args=
  19707. if $ac_cs_silent; then
  19708. exec 6>/dev/null
  19709. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19710. fi
  19711. _ACEOF
  19712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19713. if \$ac_cs_recheck; then
  19714. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19715. shift
  19716. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19717. CONFIG_SHELL='$SHELL'
  19718. export CONFIG_SHELL
  19719. exec "\$@"
  19720. fi
  19721. _ACEOF
  19722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19723. exec 5>>config.log
  19724. {
  19725. echo
  19726. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19727. ## Running $as_me. ##
  19728. _ASBOX
  19729. $as_echo "$ac_log"
  19730. } >&5
  19731. _ACEOF
  19732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19733. #
  19734. # INIT-COMMANDS
  19735. #
  19736. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19737. GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
  19738. _ACEOF
  19739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19740. # Handling of arguments.
  19741. for ac_config_target in $ac_config_targets
  19742. do
  19743. case $ac_config_target in
  19744. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
  19745. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19746. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19747. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19748. "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
  19749. "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
  19750. "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
  19751. "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
  19752. "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
  19753. "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
  19754. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19755. "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
  19756. "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
  19757. "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
  19758. "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
  19759. "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
  19760. "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
  19761. "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
  19762. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19763. esac
  19764. done
  19765. # If the user did not use the arguments to specify the items to instantiate,
  19766. # then the envvar interface is used. Set only those that are not.
  19767. # We use the long form for the default assignment because of an extremely
  19768. # bizarre bug on SunOS 4.1.3.
  19769. if $ac_need_defaults; then
  19770. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19771. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19772. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19773. fi
  19774. # Have a temporary directory for convenience. Make it in the build tree
  19775. # simply because there is no reason against having it here, and in addition,
  19776. # creating and moving files from /tmp can sometimes cause problems.
  19777. # Hook for its removal unless debugging.
  19778. # Note that there is a small window in which the directory will not be cleaned:
  19779. # after its creation but before its name has been assigned to `$tmp'.
  19780. $debug ||
  19781. {
  19782. tmp= ac_tmp=
  19783. trap 'exit_status=$?
  19784. : "${ac_tmp:=$tmp}"
  19785. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19786. ' 0
  19787. trap 'as_fn_exit 1' 1 2 13 15
  19788. }
  19789. # Create a (secure) tmp directory for tmp files.
  19790. {
  19791. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19792. test -d "$tmp"
  19793. } ||
  19794. {
  19795. tmp=./conf$$-$RANDOM
  19796. (umask 077 && mkdir "$tmp")
  19797. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19798. ac_tmp=$tmp
  19799. # Set up the scripts for CONFIG_FILES section.
  19800. # No need to generate them if there are no CONFIG_FILES.
  19801. # This happens for instance with `./config.status config.h'.
  19802. if test -n "$CONFIG_FILES"; then
  19803. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  19804. ac_cs_awk_getline=:
  19805. ac_cs_awk_pipe_init=
  19806. ac_cs_awk_read_file='
  19807. while ((getline aline < (F[key])) > 0)
  19808. print(aline)
  19809. close(F[key])'
  19810. ac_cs_awk_pipe_fini=
  19811. else
  19812. ac_cs_awk_getline=false
  19813. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  19814. ac_cs_awk_read_file='
  19815. print "|#_!!_#|"
  19816. print "cat " F[key] " &&"
  19817. '$ac_cs_awk_pipe_init
  19818. # The final `:' finishes the AND list.
  19819. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  19820. fi
  19821. ac_cr=`echo X | tr X '\015'`
  19822. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19823. # But we know of no other shell where ac_cr would be empty at this
  19824. # point, so we can use a bashism as a fallback.
  19825. if test "x$ac_cr" = x; then
  19826. eval ac_cr=\$\'\\r\'
  19827. fi
  19828. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19829. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19830. ac_cs_awk_cr='\\r'
  19831. else
  19832. ac_cs_awk_cr=$ac_cr
  19833. fi
  19834. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19835. _ACEOF
  19836. # Create commands to substitute file output variables.
  19837. {
  19838. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  19839. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  19840. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  19841. echo "_ACAWK" &&
  19842. echo "_ACEOF"
  19843. } >conf$$files.sh &&
  19844. . ./conf$$files.sh ||
  19845. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19846. rm -f conf$$files.sh
  19847. {
  19848. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19849. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19850. echo "_ACEOF"
  19851. } >conf$$subs.sh ||
  19852. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19853. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19854. ac_delim='%!_!# '
  19855. for ac_last_try in false false false false false :; do
  19856. . ./conf$$subs.sh ||
  19857. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19858. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19859. if test $ac_delim_n = $ac_delim_num; then
  19860. break
  19861. elif $ac_last_try; then
  19862. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19863. else
  19864. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19865. fi
  19866. done
  19867. rm -f conf$$subs.sh
  19868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19869. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19870. _ACEOF
  19871. sed -n '
  19872. h
  19873. s/^/S["/; s/!.*/"]=/
  19874. p
  19875. g
  19876. s/^[^!]*!//
  19877. :repl
  19878. t repl
  19879. s/'"$ac_delim"'$//
  19880. t delim
  19881. :nl
  19882. h
  19883. s/\(.\{148\}\)..*/\1/
  19884. t more1
  19885. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19886. p
  19887. n
  19888. b repl
  19889. :more1
  19890. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19891. p
  19892. g
  19893. s/.\{148\}//
  19894. t nl
  19895. :delim
  19896. h
  19897. s/\(.\{148\}\)..*/\1/
  19898. t more2
  19899. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19900. p
  19901. b
  19902. :more2
  19903. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19904. p
  19905. g
  19906. s/.\{148\}//
  19907. t delim
  19908. ' <conf$$subs.awk | sed '
  19909. /^[^""]/{
  19910. N
  19911. s/\n//
  19912. }
  19913. ' >>$CONFIG_STATUS || ac_write_fail=1
  19914. rm -f conf$$subs.awk
  19915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19916. _ACAWK
  19917. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19918. for (key in S) S_is_set[key] = 1
  19919. FS = ""
  19920. \$ac_cs_awk_pipe_init
  19921. }
  19922. {
  19923. line = $ 0
  19924. nfields = split(line, field, "@")
  19925. substed = 0
  19926. len = length(field[1])
  19927. for (i = 2; i < nfields; i++) {
  19928. key = field[i]
  19929. keylen = length(key)
  19930. if (S_is_set[key]) {
  19931. value = S[key]
  19932. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19933. len += length(value) + length(field[++i])
  19934. substed = 1
  19935. } else
  19936. len += 1 + keylen
  19937. }
  19938. if (nfields == 3 && !substed) {
  19939. key = field[2]
  19940. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  19941. \$ac_cs_awk_read_file
  19942. next
  19943. }
  19944. }
  19945. print line
  19946. }
  19947. \$ac_cs_awk_pipe_fini
  19948. _ACAWK
  19949. _ACEOF
  19950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19951. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19952. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19953. else
  19954. cat
  19955. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19956. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19957. _ACEOF
  19958. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19959. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19960. # trailing colons and then remove the whole line if VPATH becomes empty
  19961. # (actually we leave an empty line to preserve line numbers).
  19962. if test "x$srcdir" = x.; then
  19963. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19964. h
  19965. s///
  19966. s/^/:/
  19967. s/[ ]*$/:/
  19968. s/:\$(srcdir):/:/g
  19969. s/:\${srcdir}:/:/g
  19970. s/:@srcdir@:/:/g
  19971. s/^:*//
  19972. s/:*$//
  19973. x
  19974. s/\(=[ ]*\).*/\1/
  19975. G
  19976. s/\n//
  19977. s/^[^=]*=[ ]*$//
  19978. }'
  19979. fi
  19980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19981. fi # test -n "$CONFIG_FILES"
  19982. # Set up the scripts for CONFIG_HEADERS section.
  19983. # No need to generate them if there are no CONFIG_HEADERS.
  19984. # This happens for instance with `./config.status Makefile'.
  19985. if test -n "$CONFIG_HEADERS"; then
  19986. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19987. BEGIN {
  19988. _ACEOF
  19989. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19990. # here-document in config.status, that substitutes the proper values into
  19991. # config.h.in to produce config.h.
  19992. # Create a delimiter string that does not exist in confdefs.h, to ease
  19993. # handling of long lines.
  19994. ac_delim='%!_!# '
  19995. for ac_last_try in false false :; do
  19996. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19997. if test -z "$ac_tt"; then
  19998. break
  19999. elif $ac_last_try; then
  20000. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20001. else
  20002. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20003. fi
  20004. done
  20005. # For the awk script, D is an array of macro values keyed by name,
  20006. # likewise P contains macro parameters if any. Preserve backslash
  20007. # newline sequences.
  20008. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20009. sed -n '
  20010. s/.\{148\}/&'"$ac_delim"'/g
  20011. t rset
  20012. :rset
  20013. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20014. t def
  20015. d
  20016. :def
  20017. s/\\$//
  20018. t bsnl
  20019. s/["\\]/\\&/g
  20020. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20021. D["\1"]=" \3"/p
  20022. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20023. d
  20024. :bsnl
  20025. s/["\\]/\\&/g
  20026. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20027. D["\1"]=" \3\\\\\\n"\\/p
  20028. t cont
  20029. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20030. t cont
  20031. d
  20032. :cont
  20033. n
  20034. s/.\{148\}/&'"$ac_delim"'/g
  20035. t clear
  20036. :clear
  20037. s/\\$//
  20038. t bsnlc
  20039. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20040. d
  20041. :bsnlc
  20042. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20043. b cont
  20044. ' <confdefs.h | sed '
  20045. s/'"$ac_delim"'/"\\\
  20046. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20048. for (key in D) D_is_set[key] = 1
  20049. FS = ""
  20050. }
  20051. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20052. line = \$ 0
  20053. split(line, arg, " ")
  20054. if (arg[1] == "#") {
  20055. defundef = arg[2]
  20056. mac1 = arg[3]
  20057. } else {
  20058. defundef = substr(arg[1], 2)
  20059. mac1 = arg[2]
  20060. }
  20061. split(mac1, mac2, "(") #)
  20062. macro = mac2[1]
  20063. prefix = substr(line, 1, index(line, defundef) - 1)
  20064. if (D_is_set[macro]) {
  20065. # Preserve the white space surrounding the "#".
  20066. print prefix "define", macro P[macro] D[macro]
  20067. next
  20068. } else {
  20069. # Replace #undef with comments. This is necessary, for example,
  20070. # in the case of _POSIX_SOURCE, which is predefined and required
  20071. # on some systems where configure will not decide to define it.
  20072. if (defundef == "undef") {
  20073. print "/*", prefix defundef, macro, "*/"
  20074. next
  20075. }
  20076. }
  20077. }
  20078. { print }
  20079. _ACAWK
  20080. _ACEOF
  20081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20082. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20083. fi # test -n "$CONFIG_HEADERS"
  20084. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20085. shift
  20086. for ac_tag
  20087. do
  20088. case $ac_tag in
  20089. :[FHLC]) ac_mode=$ac_tag; continue;;
  20090. esac
  20091. case $ac_mode$ac_tag in
  20092. :[FHL]*:*);;
  20093. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20094. :[FH]-) ac_tag=-:-;;
  20095. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20096. esac
  20097. ac_save_IFS=$IFS
  20098. IFS=:
  20099. set x $ac_tag
  20100. IFS=$ac_save_IFS
  20101. shift
  20102. ac_file=$1
  20103. shift
  20104. case $ac_mode in
  20105. :L) ac_source=$1;;
  20106. :[FH])
  20107. ac_file_inputs=
  20108. for ac_f
  20109. do
  20110. case $ac_f in
  20111. -) ac_f="$ac_tmp/stdin";;
  20112. *) # Look for the file first in the build tree, then in the source tree
  20113. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20114. # because $ac_f cannot contain `:'.
  20115. test -f "$ac_f" ||
  20116. case $ac_f in
  20117. [\\/$]*) false;;
  20118. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20119. esac ||
  20120. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20121. esac
  20122. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20123. as_fn_append ac_file_inputs " '$ac_f'"
  20124. done
  20125. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20126. # use $as_me), people would be surprised to read:
  20127. # /* config.h. Generated by config.status. */
  20128. configure_input='Generated from '`
  20129. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20130. `' by configure.'
  20131. if test x"$ac_file" != x-; then
  20132. configure_input="$ac_file. $configure_input"
  20133. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20134. $as_echo "$as_me: creating $ac_file" >&6;}
  20135. fi
  20136. # Neutralize special characters interpreted by sed in replacement strings.
  20137. case $configure_input in #(
  20138. *\&* | *\|* | *\\* )
  20139. ac_sed_conf_input=`$as_echo "$configure_input" |
  20140. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20141. *) ac_sed_conf_input=$configure_input;;
  20142. esac
  20143. case $ac_tag in
  20144. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20145. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20146. esac
  20147. ;;
  20148. esac
  20149. ac_dir=`$as_dirname -- "$ac_file" ||
  20150. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20151. X"$ac_file" : 'X\(//\)[^/]' \| \
  20152. X"$ac_file" : 'X\(//\)$' \| \
  20153. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20154. $as_echo X"$ac_file" |
  20155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20156. s//\1/
  20157. q
  20158. }
  20159. /^X\(\/\/\)[^/].*/{
  20160. s//\1/
  20161. q
  20162. }
  20163. /^X\(\/\/\)$/{
  20164. s//\1/
  20165. q
  20166. }
  20167. /^X\(\/\).*/{
  20168. s//\1/
  20169. q
  20170. }
  20171. s/.*/./; q'`
  20172. as_dir="$ac_dir"; as_fn_mkdir_p
  20173. ac_builddir=.
  20174. case "$ac_dir" in
  20175. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20176. *)
  20177. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20178. # A ".." for each directory in $ac_dir_suffix.
  20179. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20180. case $ac_top_builddir_sub in
  20181. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20182. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20183. esac ;;
  20184. esac
  20185. ac_abs_top_builddir=$ac_pwd
  20186. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20187. # for backward compatibility:
  20188. ac_top_builddir=$ac_top_build_prefix
  20189. case $srcdir in
  20190. .) # We are building in place.
  20191. ac_srcdir=.
  20192. ac_top_srcdir=$ac_top_builddir_sub
  20193. ac_abs_top_srcdir=$ac_pwd ;;
  20194. [\\/]* | ?:[\\/]* ) # Absolute name.
  20195. ac_srcdir=$srcdir$ac_dir_suffix;
  20196. ac_top_srcdir=$srcdir
  20197. ac_abs_top_srcdir=$srcdir ;;
  20198. *) # Relative name.
  20199. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20200. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20201. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20202. esac
  20203. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20204. case $ac_mode in
  20205. :F)
  20206. #
  20207. # CONFIG_FILE
  20208. #
  20209. case $INSTALL in
  20210. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20211. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20212. esac
  20213. ac_MKDIR_P=$MKDIR_P
  20214. case $MKDIR_P in
  20215. [\\/$]* | ?:[\\/]* ) ;;
  20216. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20217. esac
  20218. _ACEOF
  20219. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20220. # If the template does not know about datarootdir, expand it.
  20221. # FIXME: This hack should be removed a few years after 2.60.
  20222. ac_datarootdir_hack=; ac_datarootdir_seen=
  20223. ac_sed_dataroot='
  20224. /datarootdir/ {
  20225. p
  20226. q
  20227. }
  20228. /@datadir@/p
  20229. /@docdir@/p
  20230. /@infodir@/p
  20231. /@localedir@/p
  20232. /@mandir@/p'
  20233. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20234. *datarootdir*) ac_datarootdir_seen=yes;;
  20235. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20237. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20238. _ACEOF
  20239. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20240. ac_datarootdir_hack='
  20241. s&@datadir@&$datadir&g
  20242. s&@docdir@&$docdir&g
  20243. s&@infodir@&$infodir&g
  20244. s&@localedir@&$localedir&g
  20245. s&@mandir@&$mandir&g
  20246. s&\\\${datarootdir}&$datarootdir&g' ;;
  20247. esac
  20248. _ACEOF
  20249. # Neutralize VPATH when `$srcdir' = `.'.
  20250. # Shell code in configure.ac might set extrasub.
  20251. # FIXME: do we really want to maintain this feature?
  20252. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20253. ac_sed_extra="$ac_vpsub
  20254. $extrasub
  20255. _ACEOF
  20256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20257. :t
  20258. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20259. s|@configure_input@|$ac_sed_conf_input|;t t
  20260. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20261. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20262. s&@srcdir@&$ac_srcdir&;t t
  20263. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20264. s&@top_srcdir@&$ac_top_srcdir&;t t
  20265. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20266. s&@builddir@&$ac_builddir&;t t
  20267. s&@abs_builddir@&$ac_abs_builddir&;t t
  20268. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20269. s&@INSTALL@&$ac_INSTALL&;t t
  20270. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20271. $ac_datarootdir_hack
  20272. "
  20273. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  20274. if $ac_cs_awk_getline; then
  20275. $AWK -f "$ac_tmp/subs.awk"
  20276. else
  20277. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  20278. fi \
  20279. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20280. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20281. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20282. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20283. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20285. which seems to be undefined. Please make sure it is defined" >&5
  20286. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20287. which seems to be undefined. Please make sure it is defined" >&2;}
  20288. rm -f "$ac_tmp/stdin"
  20289. case $ac_file in
  20290. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20291. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20292. esac \
  20293. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20294. ;;
  20295. :H)
  20296. #
  20297. # CONFIG_HEADER
  20298. #
  20299. if test x"$ac_file" != x-; then
  20300. {
  20301. $as_echo "/* $configure_input */" \
  20302. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20303. } >"$ac_tmp/config.h" \
  20304. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20305. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20306. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20307. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20308. else
  20309. rm -f "$ac_file"
  20310. mv "$ac_tmp/config.h" "$ac_file" \
  20311. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20312. fi
  20313. else
  20314. $as_echo "/* $configure_input */" \
  20315. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20316. || as_fn_error $? "could not create -" "$LINENO" 5
  20317. fi
  20318. # Compute "$ac_file"'s index in $config_headers.
  20319. _am_arg="$ac_file"
  20320. _am_stamp_count=1
  20321. for _am_header in $config_headers :; do
  20322. case $_am_header in
  20323. $_am_arg | $_am_arg:* )
  20324. break ;;
  20325. * )
  20326. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20327. esac
  20328. done
  20329. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20330. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20331. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20332. X"$_am_arg" : 'X\(//\)$' \| \
  20333. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20334. $as_echo X"$_am_arg" |
  20335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20336. s//\1/
  20337. q
  20338. }
  20339. /^X\(\/\/\)[^/].*/{
  20340. s//\1/
  20341. q
  20342. }
  20343. /^X\(\/\/\)$/{
  20344. s//\1/
  20345. q
  20346. }
  20347. /^X\(\/\).*/{
  20348. s//\1/
  20349. q
  20350. }
  20351. s/.*/./; q'`/stamp-h$_am_stamp_count
  20352. ;;
  20353. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20354. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20355. ;;
  20356. esac
  20357. case $ac_file$ac_mode in
  20358. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20359. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  20360. # are listed without --file. Let's play safe and only enable the eval
  20361. # if we detect the quoting.
  20362. case $CONFIG_FILES in
  20363. *\'*) eval set x "$CONFIG_FILES" ;;
  20364. *) set x $CONFIG_FILES ;;
  20365. esac
  20366. shift
  20367. for mf
  20368. do
  20369. # Strip MF so we end up with the name of the file.
  20370. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20371. # Check whether this is an Automake generated Makefile or not.
  20372. # We used to match only the files named `Makefile.in', but
  20373. # some people rename them; so instead we look at the file content.
  20374. # Grep'ing the first line is not enough: some people post-process
  20375. # each Makefile.in and add a new line on top of each file to say so.
  20376. # Grep'ing the whole file is not good either: AIX grep has a line
  20377. # limit of 2048, but all sed's we know have understand at least 4000.
  20378. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20379. dirpart=`$as_dirname -- "$mf" ||
  20380. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20381. X"$mf" : 'X\(//\)[^/]' \| \
  20382. X"$mf" : 'X\(//\)$' \| \
  20383. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20384. $as_echo X"$mf" |
  20385. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20386. s//\1/
  20387. q
  20388. }
  20389. /^X\(\/\/\)[^/].*/{
  20390. s//\1/
  20391. q
  20392. }
  20393. /^X\(\/\/\)$/{
  20394. s//\1/
  20395. q
  20396. }
  20397. /^X\(\/\).*/{
  20398. s//\1/
  20399. q
  20400. }
  20401. s/.*/./; q'`
  20402. else
  20403. continue
  20404. fi
  20405. # Extract the definition of DEPDIR, am__include, and am__quote
  20406. # from the Makefile without running `make'.
  20407. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20408. test -z "$DEPDIR" && continue
  20409. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20410. test -z "am__include" && continue
  20411. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20412. # When using ansi2knr, U may be empty or an underscore; expand it
  20413. U=`sed -n 's/^U = //p' < "$mf"`
  20414. # Find all dependency output files, they are included files with
  20415. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20416. # simplest approach to changing $(DEPDIR) to its actual value in the
  20417. # expansion.
  20418. for file in `sed -n "
  20419. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20420. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20421. # Make sure the directory exists.
  20422. test -f "$dirpart/$file" && continue
  20423. fdir=`$as_dirname -- "$file" ||
  20424. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20425. X"$file" : 'X\(//\)[^/]' \| \
  20426. X"$file" : 'X\(//\)$' \| \
  20427. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20428. $as_echo X"$file" |
  20429. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20430. s//\1/
  20431. q
  20432. }
  20433. /^X\(\/\/\)[^/].*/{
  20434. s//\1/
  20435. q
  20436. }
  20437. /^X\(\/\/\)$/{
  20438. s//\1/
  20439. q
  20440. }
  20441. /^X\(\/\).*/{
  20442. s//\1/
  20443. q
  20444. }
  20445. s/.*/./; q'`
  20446. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20447. # echo "creating $dirpart/$file"
  20448. echo '# dummy' > "$dirpart/$file"
  20449. done
  20450. done
  20451. }
  20452. ;;
  20453. "mkdirs":C)
  20454. for dir in etc lisp ; do
  20455. test -d ${dir} || mkdir ${dir}
  20456. done
  20457. ;;
  20458. "epaths":C)
  20459. echo creating src/epaths.h
  20460. ${MAKE-make} epaths-force
  20461. ;;
  20462. "gdbinit":C)
  20463. if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
  20464. echo creating src/.gdbinit
  20465. echo source $srcdir/src/.gdbinit > src/.gdbinit
  20466. fi
  20467. ;;
  20468. esac
  20469. done # for ac_tag
  20470. as_fn_exit 0
  20471. _ACEOF
  20472. ac_clean_files=$ac_clean_files_save
  20473. test $ac_write_fail = 0 ||
  20474. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20475. # configure is writing to config.log, and then calls config.status.
  20476. # config.status does its own redirection, appending to config.log.
  20477. # Unfortunately, on DOS this fails, as config.log is still kept open
  20478. # by configure, so config.status won't be able to write to it; its
  20479. # output is simply discarded. So we exec the FD to /dev/null,
  20480. # effectively closing config.log, so it can be properly (re)opened and
  20481. # appended to by config.status. When coming back to configure, we
  20482. # need to make the FD available again.
  20483. if test "$no_create" != yes; then
  20484. ac_cs_success=:
  20485. ac_config_status_args=
  20486. test "$silent" = yes &&
  20487. ac_config_status_args="$ac_config_status_args --quiet"
  20488. exec 5>/dev/null
  20489. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20490. exec 5>>config.log
  20491. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20492. # would make configure fail if this is the last instruction.
  20493. $ac_cs_success || as_fn_exit 1
  20494. fi
  20495. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20497. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20498. fi