configure 450 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.57.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. # Support unset when possible.
  23. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. as_mkdir_p=false
  200. fi
  201. as_executable_p="test -f"
  202. # Sed expression to map a string onto a valid CPP name.
  203. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  204. # Sed expression to map a string onto a valid variable name.
  205. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  206. # IFS
  207. # We need space, tab and new line, in precisely that order.
  208. as_nl='
  209. '
  210. IFS=" $as_nl"
  211. # CDPATH.
  212. $as_unset CDPATH
  213. # Find the correct PATH separator. Usually this is `:', but
  214. # DJGPP uses `;' like DOS.
  215. if test "X${PATH_SEPARATOR+set}" != Xset; then
  216. UNAME=${UNAME-`uname 2>/dev/null`}
  217. case X$UNAME in
  218. *-DOS) lt_cv_sys_path_separator=';' ;;
  219. *) lt_cv_sys_path_separator=':' ;;
  220. esac
  221. fi
  222. # Check that we are running under the correct shell.
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. case "X$ECHO" in
  225. X*--fallback-echo)
  226. # Remove one level of quotation (which was required for Make).
  227. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  228. ;;
  229. esac
  230. echo=${ECHO-echo}
  231. if test "X$1" = X--no-reexec; then
  232. # Discard the --no-reexec flag, and continue.
  233. shift
  234. elif test "X$1" = X--fallback-echo; then
  235. # Avoid inline document here, it may be left over
  236. :
  237. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  238. # Yippee, $echo works!
  239. :
  240. else
  241. # Restart under the correct shell.
  242. exec $SHELL "$0" --no-reexec ${1+"$@"}
  243. fi
  244. if test "X$1" = X--fallback-echo; then
  245. # used as fallback echo
  246. shift
  247. cat <<EOF
  248. EOF
  249. exit 0
  250. fi
  251. # The HP-UX ksh and POSIX shell print the target directory to stdout
  252. # if CDPATH is set.
  253. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  254. if test -z "$ECHO"; then
  255. if test "X${echo_test_string+set}" != Xset; then
  256. # find a string as large as possible, as long as the shell can cope with it
  257. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  258. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  259. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  260. echo_test_string="`eval $cmd`" &&
  261. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  262. then
  263. break
  264. fi
  265. done
  266. fi
  267. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  268. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  269. test "X$echo_testing_string" = "X$echo_test_string"; then
  270. :
  271. else
  272. # The Solaris, AIX, and Digital Unix default echo programs unquote
  273. # backslashes. This makes it impossible to quote backslashes using
  274. # echo "$something" | sed 's/\\/\\\\/g'
  275. #
  276. # So, first we look for a working echo in the user's PATH.
  277. IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  278. for dir in $PATH /usr/ucb; do
  279. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  280. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  281. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  282. test "X$echo_testing_string" = "X$echo_test_string"; then
  283. echo="$dir/echo"
  284. break
  285. fi
  286. done
  287. IFS="$save_ifs"
  288. if test "X$echo" = Xecho; then
  289. # We didn't find a better echo, so look for alternatives.
  290. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  291. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  292. test "X$echo_testing_string" = "X$echo_test_string"; then
  293. # This shell has a builtin print -r that does the trick.
  294. echo='print -r'
  295. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  296. test "X$CONFIG_SHELL" != X/bin/ksh; then
  297. # If we have ksh, try running ltconfig again with it.
  298. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  299. export ORIGINAL_CONFIG_SHELL
  300. CONFIG_SHELL=/bin/ksh
  301. export CONFIG_SHELL
  302. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  303. else
  304. # Try using printf.
  305. echo='printf %s\n'
  306. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  307. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. # Cool, printf works
  310. :
  311. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  312. test "X$echo_testing_string" = 'X\t' &&
  313. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  314. test "X$echo_testing_string" = "X$echo_test_string"; then
  315. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  316. export CONFIG_SHELL
  317. SHELL="$CONFIG_SHELL"
  318. export SHELL
  319. echo="$CONFIG_SHELL $0 --fallback-echo"
  320. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  321. test "X$echo_testing_string" = 'X\t' &&
  322. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  323. test "X$echo_testing_string" = "X$echo_test_string"; then
  324. echo="$CONFIG_SHELL $0 --fallback-echo"
  325. else
  326. # maybe with a smaller string...
  327. prev=:
  328. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  329. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  330. then
  331. break
  332. fi
  333. prev="$cmd"
  334. done
  335. if test "$prev" != 'sed 50q "$0"'; then
  336. echo_test_string=`eval $prev`
  337. export echo_test_string
  338. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  339. else
  340. # Oops. We lost completely, so just stick with echo.
  341. echo=echo
  342. fi
  343. fi
  344. fi
  345. fi
  346. fi
  347. fi
  348. # Copy echo and quote the copy suitably for passing to libtool from
  349. # the Makefile, instead of quoting the original, which is used later.
  350. ECHO=$echo
  351. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  352. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  353. fi
  354. # Name of the host.
  355. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  356. # so uname gets run too.
  357. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  358. exec 6>&1
  359. #
  360. # Initializations.
  361. #
  362. ac_default_prefix=/usr/local
  363. ac_config_libobj_dir=.
  364. cross_compiling=no
  365. subdirs=
  366. MFLAGS=
  367. MAKEFLAGS=
  368. SHELL=${CONFIG_SHELL-/bin/sh}
  369. # Maximum number of lines to put in a shell here document.
  370. # This variable seems obsolete. It should probably be removed, and
  371. # only ac_max_sed_lines should be used.
  372. : ${ac_max_here_lines=38}
  373. # Identity of this package.
  374. PACKAGE_NAME=
  375. PACKAGE_TARNAME=
  376. PACKAGE_VERSION=
  377. PACKAGE_STRING=
  378. PACKAGE_BUGREPORT=
  379. ac_unique_file="src/feature.h"
  380. # Factoring default headers for most tests.
  381. ac_includes_default="\
  382. #include <stdio.h>
  383. #if HAVE_SYS_TYPES_H
  384. # include <sys/types.h>
  385. #endif
  386. #if HAVE_SYS_STAT_H
  387. # include <sys/stat.h>
  388. #endif
  389. #if STDC_HEADERS
  390. # include <stdlib.h>
  391. # include <stddef.h>
  392. #else
  393. # if HAVE_STDLIB_H
  394. # include <stdlib.h>
  395. # endif
  396. #endif
  397. #if HAVE_STRING_H
  398. # if !STDC_HEADERS && HAVE_MEMORY_H
  399. # include <memory.h>
  400. # endif
  401. # include <string.h>
  402. #endif
  403. #if HAVE_STRINGS_H
  404. # include <strings.h>
  405. #endif
  406. #if HAVE_INTTYPES_H
  407. # include <inttypes.h>
  408. #else
  409. # if HAVE_STDINT_H
  410. # include <stdint.h>
  411. # endif
  412. #endif
  413. #if HAVE_UNISTD_H
  414. # include <unistd.h>
  415. #endif"
  416. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_u_int16_typedef rxvt_int32_typedef rxvt_u_int32_typedef rxvt_int64_typedef rxvt_u_int64_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB OBJLIST LIBOBJLIST RXVTNAME include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h lib_multicharset LIBOBJS LTLIBOBJS'
  417. ac_subst_files='MCOMMON'
  418. # Initialize some variables set by options.
  419. ac_init_help=
  420. ac_init_version=false
  421. # The variables have the same names as the options, with
  422. # dashes changed to underlines.
  423. cache_file=/dev/null
  424. exec_prefix=NONE
  425. no_create=
  426. no_recursion=
  427. prefix=NONE
  428. program_prefix=NONE
  429. program_suffix=NONE
  430. program_transform_name=s,x,x,
  431. silent=
  432. site=
  433. srcdir=
  434. verbose=
  435. x_includes=NONE
  436. x_libraries=NONE
  437. # Installation directory options.
  438. # These are left unexpanded so users can "make install exec_prefix=/foo"
  439. # and all the variables that are supposed to be based on exec_prefix
  440. # by default will actually change.
  441. # Use braces instead of parens because sh, perl, etc. also accept them.
  442. bindir='${exec_prefix}/bin'
  443. sbindir='${exec_prefix}/sbin'
  444. libexecdir='${exec_prefix}/libexec'
  445. datadir='${prefix}/share'
  446. sysconfdir='${prefix}/etc'
  447. sharedstatedir='${prefix}/com'
  448. localstatedir='${prefix}/var'
  449. libdir='${exec_prefix}/lib'
  450. includedir='${prefix}/include'
  451. oldincludedir='/usr/include'
  452. infodir='${prefix}/info'
  453. mandir='${prefix}/man'
  454. ac_prev=
  455. for ac_option
  456. do
  457. # If the previous option needs an argument, assign it.
  458. if test -n "$ac_prev"; then
  459. eval "$ac_prev=\$ac_option"
  460. ac_prev=
  461. continue
  462. fi
  463. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  464. # Accept the important Cygnus configure options, so we can diagnose typos.
  465. case $ac_option in
  466. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  467. ac_prev=bindir ;;
  468. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  469. bindir=$ac_optarg ;;
  470. -build | --build | --buil | --bui | --bu)
  471. ac_prev=build_alias ;;
  472. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  473. build_alias=$ac_optarg ;;
  474. -cache-file | --cache-file | --cache-fil | --cache-fi \
  475. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  476. ac_prev=cache_file ;;
  477. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  478. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  479. cache_file=$ac_optarg ;;
  480. --config-cache | -C)
  481. cache_file=config.cache ;;
  482. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  483. ac_prev=datadir ;;
  484. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  485. | --da=*)
  486. datadir=$ac_optarg ;;
  487. -disable-* | --disable-*)
  488. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  489. # Reject names that are not valid shell variable names.
  490. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  491. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  492. { (exit 1); exit 1; }; }
  493. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  494. eval "enable_$ac_feature=no" ;;
  495. -enable-* | --enable-*)
  496. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  497. # Reject names that are not valid shell variable names.
  498. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  499. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  500. { (exit 1); exit 1; }; }
  501. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  502. case $ac_option in
  503. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  504. *) ac_optarg=yes ;;
  505. esac
  506. eval "enable_$ac_feature='$ac_optarg'" ;;
  507. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  508. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  509. | --exec | --exe | --ex)
  510. ac_prev=exec_prefix ;;
  511. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  512. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  513. | --exec=* | --exe=* | --ex=*)
  514. exec_prefix=$ac_optarg ;;
  515. -gas | --gas | --ga | --g)
  516. # Obsolete; use --with-gas.
  517. with_gas=yes ;;
  518. -help | --help | --hel | --he | -h)
  519. ac_init_help=long ;;
  520. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  521. ac_init_help=recursive ;;
  522. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  523. ac_init_help=short ;;
  524. -host | --host | --hos | --ho)
  525. ac_prev=host_alias ;;
  526. -host=* | --host=* | --hos=* | --ho=*)
  527. host_alias=$ac_optarg ;;
  528. -includedir | --includedir | --includedi | --included | --include \
  529. | --includ | --inclu | --incl | --inc)
  530. ac_prev=includedir ;;
  531. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  532. | --includ=* | --inclu=* | --incl=* | --inc=*)
  533. includedir=$ac_optarg ;;
  534. -infodir | --infodir | --infodi | --infod | --info | --inf)
  535. ac_prev=infodir ;;
  536. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  537. infodir=$ac_optarg ;;
  538. -libdir | --libdir | --libdi | --libd)
  539. ac_prev=libdir ;;
  540. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  541. libdir=$ac_optarg ;;
  542. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  543. | --libexe | --libex | --libe)
  544. ac_prev=libexecdir ;;
  545. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  546. | --libexe=* | --libex=* | --libe=*)
  547. libexecdir=$ac_optarg ;;
  548. -localstatedir | --localstatedir | --localstatedi | --localstated \
  549. | --localstate | --localstat | --localsta | --localst \
  550. | --locals | --local | --loca | --loc | --lo)
  551. ac_prev=localstatedir ;;
  552. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  553. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  554. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  555. localstatedir=$ac_optarg ;;
  556. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  557. ac_prev=mandir ;;
  558. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  559. mandir=$ac_optarg ;;
  560. -nfp | --nfp | --nf)
  561. # Obsolete; use --without-fp.
  562. with_fp=no ;;
  563. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  564. | --no-cr | --no-c | -n)
  565. no_create=yes ;;
  566. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  567. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  568. no_recursion=yes ;;
  569. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  570. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  571. | --oldin | --oldi | --old | --ol | --o)
  572. ac_prev=oldincludedir ;;
  573. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  574. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  575. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  576. oldincludedir=$ac_optarg ;;
  577. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  578. ac_prev=prefix ;;
  579. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  580. prefix=$ac_optarg ;;
  581. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  582. | --program-pre | --program-pr | --program-p)
  583. ac_prev=program_prefix ;;
  584. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  585. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  586. program_prefix=$ac_optarg ;;
  587. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  588. | --program-suf | --program-su | --program-s)
  589. ac_prev=program_suffix ;;
  590. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  591. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  592. program_suffix=$ac_optarg ;;
  593. -program-transform-name | --program-transform-name \
  594. | --program-transform-nam | --program-transform-na \
  595. | --program-transform-n | --program-transform- \
  596. | --program-transform | --program-transfor \
  597. | --program-transfo | --program-transf \
  598. | --program-trans | --program-tran \
  599. | --progr-tra | --program-tr | --program-t)
  600. ac_prev=program_transform_name ;;
  601. -program-transform-name=* | --program-transform-name=* \
  602. | --program-transform-nam=* | --program-transform-na=* \
  603. | --program-transform-n=* | --program-transform-=* \
  604. | --program-transform=* | --program-transfor=* \
  605. | --program-transfo=* | --program-transf=* \
  606. | --program-trans=* | --program-tran=* \
  607. | --progr-tra=* | --program-tr=* | --program-t=*)
  608. program_transform_name=$ac_optarg ;;
  609. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  610. | -silent | --silent | --silen | --sile | --sil)
  611. silent=yes ;;
  612. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  613. ac_prev=sbindir ;;
  614. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  615. | --sbi=* | --sb=*)
  616. sbindir=$ac_optarg ;;
  617. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  618. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  619. | --sharedst | --shareds | --shared | --share | --shar \
  620. | --sha | --sh)
  621. ac_prev=sharedstatedir ;;
  622. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  623. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  624. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  625. | --sha=* | --sh=*)
  626. sharedstatedir=$ac_optarg ;;
  627. -site | --site | --sit)
  628. ac_prev=site ;;
  629. -site=* | --site=* | --sit=*)
  630. site=$ac_optarg ;;
  631. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  632. ac_prev=srcdir ;;
  633. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  634. srcdir=$ac_optarg ;;
  635. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  636. | --syscon | --sysco | --sysc | --sys | --sy)
  637. ac_prev=sysconfdir ;;
  638. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  639. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  640. sysconfdir=$ac_optarg ;;
  641. -target | --target | --targe | --targ | --tar | --ta | --t)
  642. ac_prev=target_alias ;;
  643. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  644. target_alias=$ac_optarg ;;
  645. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  646. verbose=yes ;;
  647. -version | --version | --versio | --versi | --vers | -V)
  648. ac_init_version=: ;;
  649. -with-* | --with-*)
  650. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  651. # Reject names that are not valid shell variable names.
  652. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  653. { echo "$as_me: error: invalid package name: $ac_package" >&2
  654. { (exit 1); exit 1; }; }
  655. ac_package=`echo $ac_package| sed 's/-/_/g'`
  656. case $ac_option in
  657. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  658. *) ac_optarg=yes ;;
  659. esac
  660. eval "with_$ac_package='$ac_optarg'" ;;
  661. -without-* | --without-*)
  662. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  663. # Reject names that are not valid shell variable names.
  664. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  665. { echo "$as_me: error: invalid package name: $ac_package" >&2
  666. { (exit 1); exit 1; }; }
  667. ac_package=`echo $ac_package | sed 's/-/_/g'`
  668. eval "with_$ac_package=no" ;;
  669. --x)
  670. # Obsolete; use --with-x.
  671. with_x=yes ;;
  672. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  673. | --x-incl | --x-inc | --x-in | --x-i)
  674. ac_prev=x_includes ;;
  675. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  676. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  677. x_includes=$ac_optarg ;;
  678. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  679. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  680. ac_prev=x_libraries ;;
  681. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  682. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  683. x_libraries=$ac_optarg ;;
  684. -*) { echo "$as_me: error: unrecognized option: $ac_option
  685. Try \`$0 --help' for more information." >&2
  686. { (exit 1); exit 1; }; }
  687. ;;
  688. *=*)
  689. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  690. # Reject names that are not valid shell variable names.
  691. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  692. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  693. { (exit 1); exit 1; }; }
  694. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  695. eval "$ac_envvar='$ac_optarg'"
  696. export $ac_envvar ;;
  697. *)
  698. # FIXME: should be removed in autoconf 3.0.
  699. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  700. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  701. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  702. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  703. ;;
  704. esac
  705. done
  706. if test -n "$ac_prev"; then
  707. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  708. { echo "$as_me: error: missing argument to $ac_option" >&2
  709. { (exit 1); exit 1; }; }
  710. fi
  711. # Be sure to have absolute paths.
  712. for ac_var in exec_prefix prefix
  713. do
  714. eval ac_val=$`echo $ac_var`
  715. case $ac_val in
  716. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  717. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  718. { (exit 1); exit 1; }; };;
  719. esac
  720. done
  721. # Be sure to have absolute paths.
  722. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  723. localstatedir libdir includedir oldincludedir infodir mandir
  724. do
  725. eval ac_val=$`echo $ac_var`
  726. case $ac_val in
  727. [\\/$]* | ?:[\\/]* ) ;;
  728. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  729. { (exit 1); exit 1; }; };;
  730. esac
  731. done
  732. # There might be people who depend on the old broken behavior: `$host'
  733. # used to hold the argument of --host etc.
  734. # FIXME: To remove some day.
  735. build=$build_alias
  736. host=$host_alias
  737. target=$target_alias
  738. # FIXME: To remove some day.
  739. if test "x$host_alias" != x; then
  740. if test "x$build_alias" = x; then
  741. cross_compiling=maybe
  742. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  743. If a cross compiler is detected then cross compile mode will be used." >&2
  744. elif test "x$build_alias" != "x$host_alias"; then
  745. cross_compiling=yes
  746. fi
  747. fi
  748. ac_tool_prefix=
  749. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  750. test "$silent" = yes && exec 6>/dev/null
  751. # Find the source files, if location was not specified.
  752. if test -z "$srcdir"; then
  753. ac_srcdir_defaulted=yes
  754. # Try the directory containing this script, then its parent.
  755. ac_confdir=`(dirname "$0") 2>/dev/null ||
  756. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  757. X"$0" : 'X\(//\)[^/]' \| \
  758. X"$0" : 'X\(//\)$' \| \
  759. X"$0" : 'X\(/\)' \| \
  760. . : '\(.\)' 2>/dev/null ||
  761. echo X"$0" |
  762. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  763. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  764. /^X\(\/\/\)$/{ s//\1/; q; }
  765. /^X\(\/\).*/{ s//\1/; q; }
  766. s/.*/./; q'`
  767. srcdir=$ac_confdir
  768. if test ! -r $srcdir/$ac_unique_file; then
  769. srcdir=..
  770. fi
  771. else
  772. ac_srcdir_defaulted=no
  773. fi
  774. if test ! -r $srcdir/$ac_unique_file; then
  775. if test "$ac_srcdir_defaulted" = yes; then
  776. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  777. { (exit 1); exit 1; }; }
  778. else
  779. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  780. { (exit 1); exit 1; }; }
  781. fi
  782. fi
  783. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  784. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  785. { (exit 1); exit 1; }; }
  786. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  787. ac_env_build_alias_set=${build_alias+set}
  788. ac_env_build_alias_value=$build_alias
  789. ac_cv_env_build_alias_set=${build_alias+set}
  790. ac_cv_env_build_alias_value=$build_alias
  791. ac_env_host_alias_set=${host_alias+set}
  792. ac_env_host_alias_value=$host_alias
  793. ac_cv_env_host_alias_set=${host_alias+set}
  794. ac_cv_env_host_alias_value=$host_alias
  795. ac_env_target_alias_set=${target_alias+set}
  796. ac_env_target_alias_value=$target_alias
  797. ac_cv_env_target_alias_set=${target_alias+set}
  798. ac_cv_env_target_alias_value=$target_alias
  799. ac_env_CC_set=${CC+set}
  800. ac_env_CC_value=$CC
  801. ac_cv_env_CC_set=${CC+set}
  802. ac_cv_env_CC_value=$CC
  803. ac_env_CFLAGS_set=${CFLAGS+set}
  804. ac_env_CFLAGS_value=$CFLAGS
  805. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  806. ac_cv_env_CFLAGS_value=$CFLAGS
  807. ac_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_env_LDFLAGS_value=$LDFLAGS
  809. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  810. ac_cv_env_LDFLAGS_value=$LDFLAGS
  811. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  814. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  815. ac_env_CPP_set=${CPP+set}
  816. ac_env_CPP_value=$CPP
  817. ac_cv_env_CPP_set=${CPP+set}
  818. ac_cv_env_CPP_value=$CPP
  819. #
  820. # Report the --help message.
  821. #
  822. if test "$ac_init_help" = "long"; then
  823. # Omit some internal or obsolete options to make the list less imposing.
  824. # This message is too long to be a string in the A/UX 3.1 sh.
  825. cat <<_ACEOF
  826. \`configure' configures this package to adapt to many kinds of systems.
  827. Usage: $0 [OPTION]... [VAR=VALUE]...
  828. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  829. VAR=VALUE. See below for descriptions of some of the useful variables.
  830. Defaults for the options are specified in brackets.
  831. Configuration:
  832. -h, --help display this help and exit
  833. --help=short display options specific to this package
  834. --help=recursive display the short help of all the included packages
  835. -V, --version display version information and exit
  836. -q, --quiet, --silent do not print \`checking...' messages
  837. --cache-file=FILE cache test results in FILE [disabled]
  838. -C, --config-cache alias for \`--cache-file=config.cache'
  839. -n, --no-create do not create output files
  840. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  841. _ACEOF
  842. cat <<_ACEOF
  843. Installation directories:
  844. --prefix=PREFIX install architecture-independent files in PREFIX
  845. [$ac_default_prefix]
  846. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  847. [PREFIX]
  848. By default, \`make install' will install all the files in
  849. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  850. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  851. for instance \`--prefix=\$HOME'.
  852. For better control, use the options below.
  853. Fine tuning of the installation directories:
  854. --bindir=DIR user executables [EPREFIX/bin]
  855. --sbindir=DIR system admin executables [EPREFIX/sbin]
  856. --libexecdir=DIR program executables [EPREFIX/libexec]
  857. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  858. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  859. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  860. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  861. --libdir=DIR object code libraries [EPREFIX/lib]
  862. --includedir=DIR C header files [PREFIX/include]
  863. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  864. --infodir=DIR info documentation [PREFIX/info]
  865. --mandir=DIR man documentation [PREFIX/man]
  866. _ACEOF
  867. cat <<\_ACEOF
  868. X features:
  869. --x-includes=DIR X include files are in DIR
  870. --x-libraries=DIR X library files are in DIR
  871. Program names:
  872. --program-prefix=PREFIX prepend PREFIX to installed program names
  873. --program-suffix=SUFFIX append SUFFIX to installed program names
  874. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  875. System types:
  876. --build=BUILD configure for building on BUILD [guessed]
  877. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  878. _ACEOF
  879. fi
  880. if test -n "$ac_init_help"; then
  881. cat <<\_ACEOF
  882. Optional Features:
  883. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  884. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  885. --enable-shared=PKGS build shared libraries default=no
  886. --enable-static=PKGS build static libraries default=yes
  887. --enable-fast-install=PKGS optimize for fast installation default=yes
  888. --disable-libtool-lock avoid locking (might break parallel builds)
  889. --enable-everything enable standard non-multichoice features: marked *
  890. NOTE: this option is order dependent
  891. NOTE: automatically enabled with --enable-shared
  892. --enable-languages enable multichar glyph language support
  893. --enable-utmp enable utmp (utmpx) support *
  894. --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*
  895. --enable-lastlog enable lastlog support (requires --enable-utmp) *
  896. --enable-xpm-background enable XPM background pixmaps *
  897. --enable-transparency enable transparent backgrounds *
  898. --enable-menubar enable menubar *
  899. --enable-graphics enable rxvt own graphics mode (see src/graphics) *
  900. --enable-rxvt-scroll enable rxvt style scrollbar *
  901. --enable-next-scroll enable NeXT style scrollbar *
  902. --enable-xterm-scroll enable Xterm style scrollbar *
  903. --enable-half-shadow use half width/height shadow on rxvt scrollbar
  904. --enable-xim XIM (X Input Method) protocol support *
  905. --enable-greek enable greek keyboard support
  906. --enable-ttygid enable tty setting to group named "tty"
  907. --disable-backspace-key disable handling of the backspace key
  908. --disable-delete-key disable handling of the delete key
  909. --disable-resources disable all resource checking
  910. --enable-xgetdefault enable resources via X instead of our small version
  911. --enable-strings enable some replacement system functions
  912. --disable-swapscreen disable swap screen support
  913. --enable-frills enable support for rarely used features *
  914. --enable-linespace enable support for linespace *
  915. --enable-24bit enable support for using 24bit visuals if available *
  916. --enable-keepscrolling enable continual scrolling on scrollbar arrow press *
  917. --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *
  918. --enable-slipwheeling enable slip wheel scrolling (requires previous) *
  919. --enable-old-selection enable v2.20 (& prior) mouse selection style support*
  920. --disable-new-selection disable new mouse (xterm) selection style support
  921. --enable-dmalloc enable Gray Watson's malloc - for debugging use
  922. --enable-dlmalloc enable Doug Lea's malloc - for production use
  923. NOTE: enable only one malloc package
  924. --enable-smart-resize enable smart growth/shrink behaviour
  925. --enable-256-color enable 256-color support
  926. Optional Packages:
  927. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  928. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  929. --with-gnu-ld assume the C compiler uses GNU ld default=no
  930. --with-pic try to use only PIC/non-PIC objects default=use both
  931. --with-encoding=NAME set language default encoding to NAME (default: sjis)
  932. (eucj|sjis|big5|gb|kr|noenc)
  933. --with-term=NAME set the terminal to NAME (default \"xterm\")
  934. --with-terminfo=PATH set the path to the terminfo tree to PATH
  935. --with-x use the X Window System
  936. --with-xpm-includes=DIR use XPM includes in DIR
  937. --with-xpm-library=DIR use XPM library in DIR
  938. --with-xpm use XPM
  939. Some influential environment variables:
  940. CC C compiler command
  941. CFLAGS C compiler flags
  942. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  943. nonstandard directory <lib dir>
  944. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  945. headers in a nonstandard directory <include dir>
  946. CPP C preprocessor
  947. Use these variables to override the choices made by `configure' or to help
  948. it to find libraries and programs with nonstandard names/locations.
  949. _ACEOF
  950. fi
  951. if test "$ac_init_help" = "recursive"; then
  952. # If there are subdirs, report their specific --help.
  953. ac_popdir=`pwd`
  954. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  955. test -d $ac_dir || continue
  956. ac_builddir=.
  957. if test "$ac_dir" != .; then
  958. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  959. # A "../" for each directory in $ac_dir_suffix.
  960. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  961. else
  962. ac_dir_suffix= ac_top_builddir=
  963. fi
  964. case $srcdir in
  965. .) # No --srcdir option. We are building in place.
  966. ac_srcdir=.
  967. if test -z "$ac_top_builddir"; then
  968. ac_top_srcdir=.
  969. else
  970. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  971. fi ;;
  972. [\\/]* | ?:[\\/]* ) # Absolute path.
  973. ac_srcdir=$srcdir$ac_dir_suffix;
  974. ac_top_srcdir=$srcdir ;;
  975. *) # Relative path.
  976. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  977. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  978. esac
  979. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  980. # absolute.
  981. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  982. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  983. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  984. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  985. cd $ac_dir
  986. # Check for guested configure; otherwise get Cygnus style configure.
  987. if test -f $ac_srcdir/configure.gnu; then
  988. echo
  989. $SHELL $ac_srcdir/configure.gnu --help=recursive
  990. elif test -f $ac_srcdir/configure; then
  991. echo
  992. $SHELL $ac_srcdir/configure --help=recursive
  993. elif test -f $ac_srcdir/configure.ac ||
  994. test -f $ac_srcdir/configure.in; then
  995. echo
  996. $ac_configure --help
  997. else
  998. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  999. fi
  1000. cd $ac_popdir
  1001. done
  1002. fi
  1003. test -n "$ac_init_help" && exit 0
  1004. if $ac_init_version; then
  1005. cat <<\_ACEOF
  1006. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1007. Free Software Foundation, Inc.
  1008. This configure script is free software; the Free Software Foundation
  1009. gives unlimited permission to copy, distribute and modify it.
  1010. _ACEOF
  1011. exit 0
  1012. fi
  1013. exec 5>config.log
  1014. cat >&5 <<_ACEOF
  1015. This file contains any messages produced by compilers while
  1016. running configure, to aid debugging if configure makes a mistake.
  1017. It was created by $as_me, which was
  1018. generated by GNU Autoconf 2.57. Invocation command line was
  1019. $ $0 $@
  1020. _ACEOF
  1021. {
  1022. cat <<_ASUNAME
  1023. ## --------- ##
  1024. ## Platform. ##
  1025. ## --------- ##
  1026. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1027. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1028. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1029. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1030. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1031. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1032. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1033. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1034. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1035. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1036. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1037. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1038. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1039. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1040. _ASUNAME
  1041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1042. for as_dir in $PATH
  1043. do
  1044. IFS=$as_save_IFS
  1045. test -z "$as_dir" && as_dir=.
  1046. echo "PATH: $as_dir"
  1047. done
  1048. } >&5
  1049. cat >&5 <<_ACEOF
  1050. ## ----------- ##
  1051. ## Core tests. ##
  1052. ## ----------- ##
  1053. _ACEOF
  1054. # Keep a trace of the command line.
  1055. # Strip out --no-create and --no-recursion so they do not pile up.
  1056. # Strip out --silent because we don't want to record it for future runs.
  1057. # Also quote any args containing shell meta-characters.
  1058. # Make two passes to allow for proper duplicate-argument suppression.
  1059. ac_configure_args=
  1060. ac_configure_args0=
  1061. ac_configure_args1=
  1062. ac_sep=
  1063. ac_must_keep_next=false
  1064. for ac_pass in 1 2
  1065. do
  1066. for ac_arg
  1067. do
  1068. case $ac_arg in
  1069. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1070. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1071. | -silent | --silent | --silen | --sile | --sil)
  1072. continue ;;
  1073. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1074. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1075. esac
  1076. case $ac_pass in
  1077. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1078. 2)
  1079. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1080. if test $ac_must_keep_next = true; then
  1081. ac_must_keep_next=false # Got value, back to normal.
  1082. else
  1083. case $ac_arg in
  1084. *=* | --config-cache | -C | -disable-* | --disable-* \
  1085. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1086. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1087. | -with-* | --with-* | -without-* | --without-* | --x)
  1088. case "$ac_configure_args0 " in
  1089. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1090. esac
  1091. ;;
  1092. -* ) ac_must_keep_next=true ;;
  1093. esac
  1094. fi
  1095. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1096. # Get rid of the leading space.
  1097. ac_sep=" "
  1098. ;;
  1099. esac
  1100. done
  1101. done
  1102. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1103. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1104. # When interrupted or exit'd, cleanup temporary files, and complete
  1105. # config.log. We remove comments because anyway the quotes in there
  1106. # would cause problems or look ugly.
  1107. # WARNING: Be sure not to use single quotes in there, as some shells,
  1108. # such as our DU 5.0 friend, will then `close' the trap.
  1109. trap 'exit_status=$?
  1110. # Save into config.log some information that might help in debugging.
  1111. {
  1112. echo
  1113. cat <<\_ASBOX
  1114. ## ---------------- ##
  1115. ## Cache variables. ##
  1116. ## ---------------- ##
  1117. _ASBOX
  1118. echo
  1119. # The following way of writing the cache mishandles newlines in values,
  1120. {
  1121. (set) 2>&1 |
  1122. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1123. *ac_space=\ *)
  1124. sed -n \
  1125. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1126. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1127. ;;
  1128. *)
  1129. sed -n \
  1130. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1131. ;;
  1132. esac;
  1133. }
  1134. echo
  1135. cat <<\_ASBOX
  1136. ## ----------------- ##
  1137. ## Output variables. ##
  1138. ## ----------------- ##
  1139. _ASBOX
  1140. echo
  1141. for ac_var in $ac_subst_vars
  1142. do
  1143. eval ac_val=$`echo $ac_var`
  1144. echo "$ac_var='"'"'$ac_val'"'"'"
  1145. done | sort
  1146. echo
  1147. if test -n "$ac_subst_files"; then
  1148. cat <<\_ASBOX
  1149. ## ------------- ##
  1150. ## Output files. ##
  1151. ## ------------- ##
  1152. _ASBOX
  1153. echo
  1154. for ac_var in $ac_subst_files
  1155. do
  1156. eval ac_val=$`echo $ac_var`
  1157. echo "$ac_var='"'"'$ac_val'"'"'"
  1158. done | sort
  1159. echo
  1160. fi
  1161. if test -s confdefs.h; then
  1162. cat <<\_ASBOX
  1163. ## ----------- ##
  1164. ## confdefs.h. ##
  1165. ## ----------- ##
  1166. _ASBOX
  1167. echo
  1168. sed "/^$/d" confdefs.h | sort
  1169. echo
  1170. fi
  1171. test "$ac_signal" != 0 &&
  1172. echo "$as_me: caught signal $ac_signal"
  1173. echo "$as_me: exit $exit_status"
  1174. } >&5
  1175. rm -f core core.* *.core &&
  1176. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1177. exit $exit_status
  1178. ' 0
  1179. for ac_signal in 1 2 13 15; do
  1180. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1181. done
  1182. ac_signal=0
  1183. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1184. rm -rf conftest* confdefs.h
  1185. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1186. echo >confdefs.h
  1187. # Predefined preprocessor variables.
  1188. cat >>confdefs.h <<_ACEOF
  1189. #define PACKAGE_NAME "$PACKAGE_NAME"
  1190. _ACEOF
  1191. cat >>confdefs.h <<_ACEOF
  1192. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1193. _ACEOF
  1194. cat >>confdefs.h <<_ACEOF
  1195. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1196. _ACEOF
  1197. cat >>confdefs.h <<_ACEOF
  1198. #define PACKAGE_STRING "$PACKAGE_STRING"
  1199. _ACEOF
  1200. cat >>confdefs.h <<_ACEOF
  1201. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1202. _ACEOF
  1203. # Let the site file select an alternate cache file if it wants to.
  1204. # Prefer explicitly selected file to automatically selected ones.
  1205. if test -z "$CONFIG_SITE"; then
  1206. if test "x$prefix" != xNONE; then
  1207. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1208. else
  1209. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1210. fi
  1211. fi
  1212. for ac_site_file in $CONFIG_SITE; do
  1213. if test -r "$ac_site_file"; then
  1214. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1215. echo "$as_me: loading site script $ac_site_file" >&6;}
  1216. sed 's/^/| /' "$ac_site_file" >&5
  1217. . "$ac_site_file"
  1218. fi
  1219. done
  1220. if test -r "$cache_file"; then
  1221. # Some versions of bash will fail to source /dev/null (special
  1222. # files actually), so we avoid doing that.
  1223. if test -f "$cache_file"; then
  1224. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1225. echo "$as_me: loading cache $cache_file" >&6;}
  1226. case $cache_file in
  1227. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1228. *) . ./$cache_file;;
  1229. esac
  1230. fi
  1231. else
  1232. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1233. echo "$as_me: creating cache $cache_file" >&6;}
  1234. >$cache_file
  1235. fi
  1236. # Check that the precious variables saved in the cache have kept the same
  1237. # value.
  1238. ac_cache_corrupted=false
  1239. for ac_var in `(set) 2>&1 |
  1240. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1241. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1242. eval ac_new_set=\$ac_env_${ac_var}_set
  1243. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1244. eval ac_new_val="\$ac_env_${ac_var}_value"
  1245. case $ac_old_set,$ac_new_set in
  1246. set,)
  1247. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1248. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1249. ac_cache_corrupted=: ;;
  1250. ,set)
  1251. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1252. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1253. ac_cache_corrupted=: ;;
  1254. ,);;
  1255. *)
  1256. if test "x$ac_old_val" != "x$ac_new_val"; then
  1257. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1258. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1259. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1260. echo "$as_me: former value: $ac_old_val" >&2;}
  1261. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1262. echo "$as_me: current value: $ac_new_val" >&2;}
  1263. ac_cache_corrupted=:
  1264. fi;;
  1265. esac
  1266. # Pass precious variables to config.status.
  1267. if test "$ac_new_set" = set; then
  1268. case $ac_new_val in
  1269. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1270. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1271. *) ac_arg=$ac_var=$ac_new_val ;;
  1272. esac
  1273. case " $ac_configure_args " in
  1274. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1275. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1276. esac
  1277. fi
  1278. done
  1279. if $ac_cache_corrupted; then
  1280. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1281. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1282. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1283. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. ac_ext=c
  1287. ac_cpp='$CPP $CPPFLAGS'
  1288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1291. ac_aux_dir=
  1292. for ac_dir in autoconf $srcdir/autoconf; do
  1293. if test -f $ac_dir/install-sh; then
  1294. ac_aux_dir=$ac_dir
  1295. ac_install_sh="$ac_aux_dir/install-sh -c"
  1296. break
  1297. elif test -f $ac_dir/install.sh; then
  1298. ac_aux_dir=$ac_dir
  1299. ac_install_sh="$ac_aux_dir/install.sh -c"
  1300. break
  1301. elif test -f $ac_dir/shtool; then
  1302. ac_aux_dir=$ac_dir
  1303. ac_install_sh="$ac_aux_dir/shtool install -c"
  1304. break
  1305. fi
  1306. done
  1307. if test -z "$ac_aux_dir"; then
  1308. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
  1309. echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
  1310. { (exit 1); exit 1; }; }
  1311. fi
  1312. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1313. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1314. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1315. ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
  1316. VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
  1317. DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
  1318. LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
  1319. LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
  1320. echo ""
  1321. echo "configuring for rxvt $VERSION"
  1322. echo ""
  1323. ac_ext=c
  1324. ac_cpp='$CPP $CPPFLAGS'
  1325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1328. if test -n "$ac_tool_prefix"; then
  1329. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1330. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1331. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1332. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1333. if test "${ac_cv_prog_CC+set}" = set; then
  1334. echo $ECHO_N "(cached) $ECHO_C" >&6
  1335. else
  1336. if test -n "$CC"; then
  1337. ac_cv_prog_CC="$CC" # Let the user override the test.
  1338. else
  1339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1340. for as_dir in $PATH
  1341. do
  1342. IFS=$as_save_IFS
  1343. test -z "$as_dir" && as_dir=.
  1344. for ac_exec_ext in '' $ac_executable_extensions; do
  1345. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1346. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1347. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1348. break 2
  1349. fi
  1350. done
  1351. done
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$ac_cv_prog_CC"; then
  1364. ac_ct_CC=$CC
  1365. # Extract the first word of "gcc", so it can be a program name with args.
  1366. set dummy gcc; ac_word=$2
  1367. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1369. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1370. echo $ECHO_N "(cached) $ECHO_C" >&6
  1371. else
  1372. if test -n "$ac_ct_CC"; then
  1373. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1374. else
  1375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1376. for as_dir in $PATH
  1377. do
  1378. IFS=$as_save_IFS
  1379. test -z "$as_dir" && as_dir=.
  1380. for ac_exec_ext in '' $ac_executable_extensions; do
  1381. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1382. ac_cv_prog_ac_ct_CC="gcc"
  1383. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1384. break 2
  1385. fi
  1386. done
  1387. done
  1388. fi
  1389. fi
  1390. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1391. if test -n "$ac_ct_CC"; then
  1392. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1393. echo "${ECHO_T}$ac_ct_CC" >&6
  1394. else
  1395. echo "$as_me:$LINENO: result: no" >&5
  1396. echo "${ECHO_T}no" >&6
  1397. fi
  1398. CC=$ac_ct_CC
  1399. else
  1400. CC="$ac_cv_prog_CC"
  1401. fi
  1402. if test -z "$CC"; then
  1403. if test -n "$ac_tool_prefix"; then
  1404. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1405. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1406. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1407. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1408. if test "${ac_cv_prog_CC+set}" = set; then
  1409. echo $ECHO_N "(cached) $ECHO_C" >&6
  1410. else
  1411. if test -n "$CC"; then
  1412. ac_cv_prog_CC="$CC" # Let the user override the test.
  1413. else
  1414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1415. for as_dir in $PATH
  1416. do
  1417. IFS=$as_save_IFS
  1418. test -z "$as_dir" && as_dir=.
  1419. for ac_exec_ext in '' $ac_executable_extensions; do
  1420. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1421. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1422. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1423. break 2
  1424. fi
  1425. done
  1426. done
  1427. fi
  1428. fi
  1429. CC=$ac_cv_prog_CC
  1430. if test -n "$CC"; then
  1431. echo "$as_me:$LINENO: result: $CC" >&5
  1432. echo "${ECHO_T}$CC" >&6
  1433. else
  1434. echo "$as_me:$LINENO: result: no" >&5
  1435. echo "${ECHO_T}no" >&6
  1436. fi
  1437. fi
  1438. if test -z "$ac_cv_prog_CC"; then
  1439. ac_ct_CC=$CC
  1440. # Extract the first word of "cc", so it can be a program name with args.
  1441. set dummy cc; ac_word=$2
  1442. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1444. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1445. echo $ECHO_N "(cached) $ECHO_C" >&6
  1446. else
  1447. if test -n "$ac_ct_CC"; then
  1448. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1449. else
  1450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1451. for as_dir in $PATH
  1452. do
  1453. IFS=$as_save_IFS
  1454. test -z "$as_dir" && as_dir=.
  1455. for ac_exec_ext in '' $ac_executable_extensions; do
  1456. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1457. ac_cv_prog_ac_ct_CC="cc"
  1458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1459. break 2
  1460. fi
  1461. done
  1462. done
  1463. fi
  1464. fi
  1465. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1466. if test -n "$ac_ct_CC"; then
  1467. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1468. echo "${ECHO_T}$ac_ct_CC" >&6
  1469. else
  1470. echo "$as_me:$LINENO: result: no" >&5
  1471. echo "${ECHO_T}no" >&6
  1472. fi
  1473. CC=$ac_ct_CC
  1474. else
  1475. CC="$ac_cv_prog_CC"
  1476. fi
  1477. fi
  1478. if test -z "$CC"; then
  1479. # Extract the first word of "cc", so it can be a program name with args.
  1480. set dummy cc; ac_word=$2
  1481. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1482. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1483. if test "${ac_cv_prog_CC+set}" = set; then
  1484. echo $ECHO_N "(cached) $ECHO_C" >&6
  1485. else
  1486. if test -n "$CC"; then
  1487. ac_cv_prog_CC="$CC" # Let the user override the test.
  1488. else
  1489. ac_prog_rejected=no
  1490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1491. for as_dir in $PATH
  1492. do
  1493. IFS=$as_save_IFS
  1494. test -z "$as_dir" && as_dir=.
  1495. for ac_exec_ext in '' $ac_executable_extensions; do
  1496. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1497. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1498. ac_prog_rejected=yes
  1499. continue
  1500. fi
  1501. ac_cv_prog_CC="cc"
  1502. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1503. break 2
  1504. fi
  1505. done
  1506. done
  1507. if test $ac_prog_rejected = yes; then
  1508. # We found a bogon in the path, so make sure we never use it.
  1509. set dummy $ac_cv_prog_CC
  1510. shift
  1511. if test $# != 0; then
  1512. # We chose a different compiler from the bogus one.
  1513. # However, it has the same basename, so the bogon will be chosen
  1514. # first if we set CC to just the basename; use the full file name.
  1515. shift
  1516. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1517. fi
  1518. fi
  1519. fi
  1520. fi
  1521. CC=$ac_cv_prog_CC
  1522. if test -n "$CC"; then
  1523. echo "$as_me:$LINENO: result: $CC" >&5
  1524. echo "${ECHO_T}$CC" >&6
  1525. else
  1526. echo "$as_me:$LINENO: result: no" >&5
  1527. echo "${ECHO_T}no" >&6
  1528. fi
  1529. fi
  1530. if test -z "$CC"; then
  1531. if test -n "$ac_tool_prefix"; then
  1532. for ac_prog in cl
  1533. do
  1534. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1535. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1536. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1538. if test "${ac_cv_prog_CC+set}" = set; then
  1539. echo $ECHO_N "(cached) $ECHO_C" >&6
  1540. else
  1541. if test -n "$CC"; then
  1542. ac_cv_prog_CC="$CC" # Let the user override the test.
  1543. else
  1544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1545. for as_dir in $PATH
  1546. do
  1547. IFS=$as_save_IFS
  1548. test -z "$as_dir" && as_dir=.
  1549. for ac_exec_ext in '' $ac_executable_extensions; do
  1550. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1551. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1553. break 2
  1554. fi
  1555. done
  1556. done
  1557. fi
  1558. fi
  1559. CC=$ac_cv_prog_CC
  1560. if test -n "$CC"; then
  1561. echo "$as_me:$LINENO: result: $CC" >&5
  1562. echo "${ECHO_T}$CC" >&6
  1563. else
  1564. echo "$as_me:$LINENO: result: no" >&5
  1565. echo "${ECHO_T}no" >&6
  1566. fi
  1567. test -n "$CC" && break
  1568. done
  1569. fi
  1570. if test -z "$CC"; then
  1571. ac_ct_CC=$CC
  1572. for ac_prog in cl
  1573. do
  1574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1575. set dummy $ac_prog; ac_word=$2
  1576. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1577. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1578. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1579. echo $ECHO_N "(cached) $ECHO_C" >&6
  1580. else
  1581. if test -n "$ac_ct_CC"; then
  1582. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1583. else
  1584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1585. for as_dir in $PATH
  1586. do
  1587. IFS=$as_save_IFS
  1588. test -z "$as_dir" && as_dir=.
  1589. for ac_exec_ext in '' $ac_executable_extensions; do
  1590. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1591. ac_cv_prog_ac_ct_CC="$ac_prog"
  1592. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1593. break 2
  1594. fi
  1595. done
  1596. done
  1597. fi
  1598. fi
  1599. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1600. if test -n "$ac_ct_CC"; then
  1601. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1602. echo "${ECHO_T}$ac_ct_CC" >&6
  1603. else
  1604. echo "$as_me:$LINENO: result: no" >&5
  1605. echo "${ECHO_T}no" >&6
  1606. fi
  1607. test -n "$ac_ct_CC" && break
  1608. done
  1609. CC=$ac_ct_CC
  1610. fi
  1611. fi
  1612. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1613. See \`config.log' for more details." >&5
  1614. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1615. See \`config.log' for more details." >&2;}
  1616. { (exit 1); exit 1; }; }
  1617. # Provide some information about the compiler.
  1618. echo "$as_me:$LINENO:" \
  1619. "checking for C compiler version" >&5
  1620. ac_compiler=`set X $ac_compile; echo $2`
  1621. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1622. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1623. ac_status=$?
  1624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1625. (exit $ac_status); }
  1626. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1627. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1628. ac_status=$?
  1629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1630. (exit $ac_status); }
  1631. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1632. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1633. ac_status=$?
  1634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1635. (exit $ac_status); }
  1636. cat >conftest.$ac_ext <<_ACEOF
  1637. #line $LINENO "configure"
  1638. /* confdefs.h. */
  1639. _ACEOF
  1640. cat confdefs.h >>conftest.$ac_ext
  1641. cat >>conftest.$ac_ext <<_ACEOF
  1642. /* end confdefs.h. */
  1643. int
  1644. main ()
  1645. {
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. ac_clean_files_save=$ac_clean_files
  1651. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1652. # Try to create an executable without -o first, disregard a.out.
  1653. # It will help us diagnose broken compilers, and finding out an intuition
  1654. # of exeext.
  1655. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1656. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1657. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1658. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1659. (eval $ac_link_default) 2>&5
  1660. ac_status=$?
  1661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1662. (exit $ac_status); }; then
  1663. # Find the output, starting from the most likely. This scheme is
  1664. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1665. # resort.
  1666. # Be careful to initialize this variable, since it used to be cached.
  1667. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1668. ac_cv_exeext=
  1669. # b.out is created by i960 compilers.
  1670. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1671. do
  1672. test -f "$ac_file" || continue
  1673. case $ac_file in
  1674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1675. ;;
  1676. conftest.$ac_ext )
  1677. # This is the source file.
  1678. ;;
  1679. [ab].out )
  1680. # We found the default executable, but exeext='' is most
  1681. # certainly right.
  1682. break;;
  1683. *.* )
  1684. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1685. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1686. # but it would be cool to find out if it's true. Does anybody
  1687. # maintain Libtool? --akim.
  1688. export ac_cv_exeext
  1689. break;;
  1690. * )
  1691. break;;
  1692. esac
  1693. done
  1694. else
  1695. echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1698. See \`config.log' for more details." >&5
  1699. echo "$as_me: error: C compiler cannot create executables
  1700. See \`config.log' for more details." >&2;}
  1701. { (exit 77); exit 77; }; }
  1702. fi
  1703. ac_exeext=$ac_cv_exeext
  1704. echo "$as_me:$LINENO: result: $ac_file" >&5
  1705. echo "${ECHO_T}$ac_file" >&6
  1706. # Check the compiler produces executables we can run. If not, either
  1707. # the compiler is broken, or we cross compile.
  1708. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1709. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1710. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1711. # If not cross compiling, check that we can run a simple program.
  1712. if test "$cross_compiling" != yes; then
  1713. if { ac_try='./$ac_file'
  1714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1715. (eval $ac_try) 2>&5
  1716. ac_status=$?
  1717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1718. (exit $ac_status); }; }; then
  1719. cross_compiling=no
  1720. else
  1721. if test "$cross_compiling" = maybe; then
  1722. cross_compiling=yes
  1723. else
  1724. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1725. If you meant to cross compile, use \`--host'.
  1726. See \`config.log' for more details." >&5
  1727. echo "$as_me: error: cannot run C compiled programs.
  1728. If you meant to cross compile, use \`--host'.
  1729. See \`config.log' for more details." >&2;}
  1730. { (exit 1); exit 1; }; }
  1731. fi
  1732. fi
  1733. fi
  1734. echo "$as_me:$LINENO: result: yes" >&5
  1735. echo "${ECHO_T}yes" >&6
  1736. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1737. ac_clean_files=$ac_clean_files_save
  1738. # Check the compiler produces executables we can run. If not, either
  1739. # the compiler is broken, or we cross compile.
  1740. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1741. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1742. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1743. echo "${ECHO_T}$cross_compiling" >&6
  1744. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1745. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1747. (eval $ac_link) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; then
  1751. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1752. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1753. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1754. # `rm'.
  1755. for ac_file in conftest.exe conftest conftest.*; do
  1756. test -f "$ac_file" || continue
  1757. case $ac_file in
  1758. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1759. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1760. export ac_cv_exeext
  1761. break;;
  1762. * ) break;;
  1763. esac
  1764. done
  1765. else
  1766. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1767. See \`config.log' for more details." >&5
  1768. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1769. See \`config.log' for more details." >&2;}
  1770. { (exit 1); exit 1; }; }
  1771. fi
  1772. rm -f conftest$ac_cv_exeext
  1773. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1774. echo "${ECHO_T}$ac_cv_exeext" >&6
  1775. rm -f conftest.$ac_ext
  1776. EXEEXT=$ac_cv_exeext
  1777. ac_exeext=$EXEEXT
  1778. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1779. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1780. if test "${ac_cv_objext+set}" = set; then
  1781. echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783. cat >conftest.$ac_ext <<_ACEOF
  1784. #line $LINENO "configure"
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. int
  1791. main ()
  1792. {
  1793. ;
  1794. return 0;
  1795. }
  1796. _ACEOF
  1797. rm -f conftest.o conftest.obj
  1798. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1799. (eval $ac_compile) 2>&5
  1800. ac_status=$?
  1801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1802. (exit $ac_status); }; then
  1803. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1804. case $ac_file in
  1805. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1806. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1807. break;;
  1808. esac
  1809. done
  1810. else
  1811. echo "$as_me: failed program was:" >&5
  1812. sed 's/^/| /' conftest.$ac_ext >&5
  1813. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1814. See \`config.log' for more details." >&5
  1815. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1816. See \`config.log' for more details." >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. fi
  1819. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1820. fi
  1821. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1822. echo "${ECHO_T}$ac_cv_objext" >&6
  1823. OBJEXT=$ac_cv_objext
  1824. ac_objext=$OBJEXT
  1825. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1826. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1827. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1828. echo $ECHO_N "(cached) $ECHO_C" >&6
  1829. else
  1830. cat >conftest.$ac_ext <<_ACEOF
  1831. #line $LINENO "configure"
  1832. /* confdefs.h. */
  1833. _ACEOF
  1834. cat confdefs.h >>conftest.$ac_ext
  1835. cat >>conftest.$ac_ext <<_ACEOF
  1836. /* end confdefs.h. */
  1837. int
  1838. main ()
  1839. {
  1840. #ifndef __GNUC__
  1841. choke me
  1842. #endif
  1843. ;
  1844. return 0;
  1845. }
  1846. _ACEOF
  1847. rm -f conftest.$ac_objext
  1848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1849. (eval $ac_compile) 2>&5
  1850. ac_status=$?
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -s conftest.$ac_objext'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; }; then
  1859. ac_compiler_gnu=yes
  1860. else
  1861. echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_compiler_gnu=no
  1864. fi
  1865. rm -f conftest.$ac_objext conftest.$ac_ext
  1866. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1867. fi
  1868. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1869. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1870. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1871. ac_test_CFLAGS=${CFLAGS+set}
  1872. ac_save_CFLAGS=$CFLAGS
  1873. CFLAGS="-g"
  1874. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1875. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1876. if test "${ac_cv_prog_cc_g+set}" = set; then
  1877. echo $ECHO_N "(cached) $ECHO_C" >&6
  1878. else
  1879. cat >conftest.$ac_ext <<_ACEOF
  1880. #line $LINENO "configure"
  1881. /* confdefs.h. */
  1882. _ACEOF
  1883. cat confdefs.h >>conftest.$ac_ext
  1884. cat >>conftest.$ac_ext <<_ACEOF
  1885. /* end confdefs.h. */
  1886. int
  1887. main ()
  1888. {
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. rm -f conftest.$ac_objext
  1894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1895. (eval $ac_compile) 2>&5
  1896. ac_status=$?
  1897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1898. (exit $ac_status); } &&
  1899. { ac_try='test -s conftest.$ac_objext'
  1900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1901. (eval $ac_try) 2>&5
  1902. ac_status=$?
  1903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1904. (exit $ac_status); }; }; then
  1905. ac_cv_prog_cc_g=yes
  1906. else
  1907. echo "$as_me: failed program was:" >&5
  1908. sed 's/^/| /' conftest.$ac_ext >&5
  1909. ac_cv_prog_cc_g=no
  1910. fi
  1911. rm -f conftest.$ac_objext conftest.$ac_ext
  1912. fi
  1913. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1914. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1915. if test "$ac_test_CFLAGS" = set; then
  1916. CFLAGS=$ac_save_CFLAGS
  1917. elif test $ac_cv_prog_cc_g = yes; then
  1918. if test "$GCC" = yes; then
  1919. CFLAGS="-g -O2"
  1920. else
  1921. CFLAGS="-g"
  1922. fi
  1923. else
  1924. if test "$GCC" = yes; then
  1925. CFLAGS="-O2"
  1926. else
  1927. CFLAGS=
  1928. fi
  1929. fi
  1930. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1931. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1932. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1933. echo $ECHO_N "(cached) $ECHO_C" >&6
  1934. else
  1935. ac_cv_prog_cc_stdc=no
  1936. ac_save_CC=$CC
  1937. cat >conftest.$ac_ext <<_ACEOF
  1938. #line $LINENO "configure"
  1939. /* confdefs.h. */
  1940. _ACEOF
  1941. cat confdefs.h >>conftest.$ac_ext
  1942. cat >>conftest.$ac_ext <<_ACEOF
  1943. /* end confdefs.h. */
  1944. #include <stdarg.h>
  1945. #include <stdio.h>
  1946. #include <sys/types.h>
  1947. #include <sys/stat.h>
  1948. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1949. struct buf { int x; };
  1950. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1951. static char *e (p, i)
  1952. char **p;
  1953. int i;
  1954. {
  1955. return p[i];
  1956. }
  1957. static char *f (char * (*g) (char **, int), char **p, ...)
  1958. {
  1959. char *s;
  1960. va_list v;
  1961. va_start (v,p);
  1962. s = g (p, va_arg (v,int));
  1963. va_end (v);
  1964. return s;
  1965. }
  1966. int test (int i, double x);
  1967. struct s1 {int (*f) (int a);};
  1968. struct s2 {int (*f) (double a);};
  1969. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1970. int argc;
  1971. char **argv;
  1972. int
  1973. main ()
  1974. {
  1975. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1976. ;
  1977. return 0;
  1978. }
  1979. _ACEOF
  1980. # Don't try gcc -ansi; that turns off useful extensions and
  1981. # breaks some systems' header files.
  1982. # AIX -qlanglvl=ansi
  1983. # Ultrix and OSF/1 -std1
  1984. # HP-UX 10.20 and later -Ae
  1985. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1986. # SVR4 -Xc -D__EXTENSIONS__
  1987. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1988. do
  1989. CC="$ac_save_CC $ac_arg"
  1990. rm -f conftest.$ac_objext
  1991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1992. (eval $ac_compile) 2>&5
  1993. ac_status=$?
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -s conftest.$ac_objext'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; }; then
  2002. ac_cv_prog_cc_stdc=$ac_arg
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.$ac_objext
  2009. done
  2010. rm -f conftest.$ac_ext conftest.$ac_objext
  2011. CC=$ac_save_CC
  2012. fi
  2013. case "x$ac_cv_prog_cc_stdc" in
  2014. x|xno)
  2015. echo "$as_me:$LINENO: result: none needed" >&5
  2016. echo "${ECHO_T}none needed" >&6 ;;
  2017. *)
  2018. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2019. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2020. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2021. esac
  2022. # Some people use a C++ compiler to compile C. Since we use `exit',
  2023. # in C++ we need to declare it. In case someone uses the same compiler
  2024. # for both compiling C and C++ we need to have the C++ compiler decide
  2025. # the declaration of exit, since it's the most demanding environment.
  2026. cat >conftest.$ac_ext <<_ACEOF
  2027. #ifndef __cplusplus
  2028. choke me
  2029. #endif
  2030. _ACEOF
  2031. rm -f conftest.$ac_objext
  2032. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2033. (eval $ac_compile) 2>&5
  2034. ac_status=$?
  2035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2036. (exit $ac_status); } &&
  2037. { ac_try='test -s conftest.$ac_objext'
  2038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2039. (eval $ac_try) 2>&5
  2040. ac_status=$?
  2041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2042. (exit $ac_status); }; }; then
  2043. for ac_declaration in \
  2044. ''\
  2045. '#include <stdlib.h>' \
  2046. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2047. 'extern "C" void std::exit (int); using std::exit;' \
  2048. 'extern "C" void exit (int) throw ();' \
  2049. 'extern "C" void exit (int);' \
  2050. 'void exit (int);'
  2051. do
  2052. cat >conftest.$ac_ext <<_ACEOF
  2053. #line $LINENO "configure"
  2054. /* confdefs.h. */
  2055. _ACEOF
  2056. cat confdefs.h >>conftest.$ac_ext
  2057. cat >>conftest.$ac_ext <<_ACEOF
  2058. /* end confdefs.h. */
  2059. #include <stdlib.h>
  2060. $ac_declaration
  2061. int
  2062. main ()
  2063. {
  2064. exit (42);
  2065. ;
  2066. return 0;
  2067. }
  2068. _ACEOF
  2069. rm -f conftest.$ac_objext
  2070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2071. (eval $ac_compile) 2>&5
  2072. ac_status=$?
  2073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2074. (exit $ac_status); } &&
  2075. { ac_try='test -s conftest.$ac_objext'
  2076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2077. (eval $ac_try) 2>&5
  2078. ac_status=$?
  2079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); }; }; then
  2081. :
  2082. else
  2083. echo "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. continue
  2086. fi
  2087. rm -f conftest.$ac_objext conftest.$ac_ext
  2088. cat >conftest.$ac_ext <<_ACEOF
  2089. #line $LINENO "configure"
  2090. /* confdefs.h. */
  2091. _ACEOF
  2092. cat confdefs.h >>conftest.$ac_ext
  2093. cat >>conftest.$ac_ext <<_ACEOF
  2094. /* end confdefs.h. */
  2095. $ac_declaration
  2096. int
  2097. main ()
  2098. {
  2099. exit (42);
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. rm -f conftest.$ac_objext
  2105. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2106. (eval $ac_compile) 2>&5
  2107. ac_status=$?
  2108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2109. (exit $ac_status); } &&
  2110. { ac_try='test -s conftest.$ac_objext'
  2111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2112. (eval $ac_try) 2>&5
  2113. ac_status=$?
  2114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2115. (exit $ac_status); }; }; then
  2116. break
  2117. else
  2118. echo "$as_me: failed program was:" >&5
  2119. sed 's/^/| /' conftest.$ac_ext >&5
  2120. fi
  2121. rm -f conftest.$ac_objext conftest.$ac_ext
  2122. done
  2123. rm -f conftest*
  2124. if test -n "$ac_declaration"; then
  2125. echo '#ifdef __cplusplus' >>confdefs.h
  2126. echo $ac_declaration >>confdefs.h
  2127. echo '#endif' >>confdefs.h
  2128. fi
  2129. else
  2130. echo "$as_me: failed program was:" >&5
  2131. sed 's/^/| /' conftest.$ac_ext >&5
  2132. fi
  2133. rm -f conftest.$ac_objext conftest.$ac_ext
  2134. ac_ext=c
  2135. ac_cpp='$CPP $CPPFLAGS'
  2136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2139. ac_ext=c
  2140. ac_cpp='$CPP $CPPFLAGS'
  2141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2144. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2145. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2146. # On Suns, sometimes $CPP names a directory.
  2147. if test -n "$CPP" && test -d "$CPP"; then
  2148. CPP=
  2149. fi
  2150. if test -z "$CPP"; then
  2151. if test "${ac_cv_prog_CPP+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. # Double quotes because CPP needs to be expanded
  2155. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2156. do
  2157. ac_preproc_ok=false
  2158. for ac_c_preproc_warn_flag in '' yes
  2159. do
  2160. # Use a header file that comes with gcc, so configuring glibc
  2161. # with a fresh cross-compiler works.
  2162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2163. # <limits.h> exists even on freestanding compilers.
  2164. # On the NeXT, cc -E runs the code through the compiler's parser,
  2165. # not just through cpp. "Syntax error" is here to catch this case.
  2166. cat >conftest.$ac_ext <<_ACEOF
  2167. #line $LINENO "configure"
  2168. /* confdefs.h. */
  2169. _ACEOF
  2170. cat confdefs.h >>conftest.$ac_ext
  2171. cat >>conftest.$ac_ext <<_ACEOF
  2172. /* end confdefs.h. */
  2173. #ifdef __STDC__
  2174. # include <limits.h>
  2175. #else
  2176. # include <assert.h>
  2177. #endif
  2178. Syntax error
  2179. _ACEOF
  2180. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2181. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2182. ac_status=$?
  2183. grep -v '^ *+' conftest.er1 >conftest.err
  2184. rm -f conftest.er1
  2185. cat conftest.err >&5
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } >/dev/null; then
  2188. if test -s conftest.err; then
  2189. ac_cpp_err=$ac_c_preproc_warn_flag
  2190. else
  2191. ac_cpp_err=
  2192. fi
  2193. else
  2194. ac_cpp_err=yes
  2195. fi
  2196. if test -z "$ac_cpp_err"; then
  2197. :
  2198. else
  2199. echo "$as_me: failed program was:" >&5
  2200. sed 's/^/| /' conftest.$ac_ext >&5
  2201. # Broken: fails on valid input.
  2202. continue
  2203. fi
  2204. rm -f conftest.err conftest.$ac_ext
  2205. # OK, works on sane cases. Now check whether non-existent headers
  2206. # can be detected and how.
  2207. cat >conftest.$ac_ext <<_ACEOF
  2208. #line $LINENO "configure"
  2209. /* confdefs.h. */
  2210. _ACEOF
  2211. cat confdefs.h >>conftest.$ac_ext
  2212. cat >>conftest.$ac_ext <<_ACEOF
  2213. /* end confdefs.h. */
  2214. #include <ac_nonexistent.h>
  2215. _ACEOF
  2216. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2217. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2218. ac_status=$?
  2219. grep -v '^ *+' conftest.er1 >conftest.err
  2220. rm -f conftest.er1
  2221. cat conftest.err >&5
  2222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223. (exit $ac_status); } >/dev/null; then
  2224. if test -s conftest.err; then
  2225. ac_cpp_err=$ac_c_preproc_warn_flag
  2226. else
  2227. ac_cpp_err=
  2228. fi
  2229. else
  2230. ac_cpp_err=yes
  2231. fi
  2232. if test -z "$ac_cpp_err"; then
  2233. # Broken: success on invalid input.
  2234. continue
  2235. else
  2236. echo "$as_me: failed program was:" >&5
  2237. sed 's/^/| /' conftest.$ac_ext >&5
  2238. # Passes both tests.
  2239. ac_preproc_ok=:
  2240. break
  2241. fi
  2242. rm -f conftest.err conftest.$ac_ext
  2243. done
  2244. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2245. rm -f conftest.err conftest.$ac_ext
  2246. if $ac_preproc_ok; then
  2247. break
  2248. fi
  2249. done
  2250. ac_cv_prog_CPP=$CPP
  2251. fi
  2252. CPP=$ac_cv_prog_CPP
  2253. else
  2254. ac_cv_prog_CPP=$CPP
  2255. fi
  2256. echo "$as_me:$LINENO: result: $CPP" >&5
  2257. echo "${ECHO_T}$CPP" >&6
  2258. ac_preproc_ok=false
  2259. for ac_c_preproc_warn_flag in '' yes
  2260. do
  2261. # Use a header file that comes with gcc, so configuring glibc
  2262. # with a fresh cross-compiler works.
  2263. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2264. # <limits.h> exists even on freestanding compilers.
  2265. # On the NeXT, cc -E runs the code through the compiler's parser,
  2266. # not just through cpp. "Syntax error" is here to catch this case.
  2267. cat >conftest.$ac_ext <<_ACEOF
  2268. #line $LINENO "configure"
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #ifdef __STDC__
  2275. # include <limits.h>
  2276. #else
  2277. # include <assert.h>
  2278. #endif
  2279. Syntax error
  2280. _ACEOF
  2281. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2282. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2283. ac_status=$?
  2284. grep -v '^ *+' conftest.er1 >conftest.err
  2285. rm -f conftest.er1
  2286. cat conftest.err >&5
  2287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2288. (exit $ac_status); } >/dev/null; then
  2289. if test -s conftest.err; then
  2290. ac_cpp_err=$ac_c_preproc_warn_flag
  2291. else
  2292. ac_cpp_err=
  2293. fi
  2294. else
  2295. ac_cpp_err=yes
  2296. fi
  2297. if test -z "$ac_cpp_err"; then
  2298. :
  2299. else
  2300. echo "$as_me: failed program was:" >&5
  2301. sed 's/^/| /' conftest.$ac_ext >&5
  2302. # Broken: fails on valid input.
  2303. continue
  2304. fi
  2305. rm -f conftest.err conftest.$ac_ext
  2306. # OK, works on sane cases. Now check whether non-existent headers
  2307. # can be detected and how.
  2308. cat >conftest.$ac_ext <<_ACEOF
  2309. #line $LINENO "configure"
  2310. /* confdefs.h. */
  2311. _ACEOF
  2312. cat confdefs.h >>conftest.$ac_ext
  2313. cat >>conftest.$ac_ext <<_ACEOF
  2314. /* end confdefs.h. */
  2315. #include <ac_nonexistent.h>
  2316. _ACEOF
  2317. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2318. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2319. ac_status=$?
  2320. grep -v '^ *+' conftest.er1 >conftest.err
  2321. rm -f conftest.er1
  2322. cat conftest.err >&5
  2323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2324. (exit $ac_status); } >/dev/null; then
  2325. if test -s conftest.err; then
  2326. ac_cpp_err=$ac_c_preproc_warn_flag
  2327. else
  2328. ac_cpp_err=
  2329. fi
  2330. else
  2331. ac_cpp_err=yes
  2332. fi
  2333. if test -z "$ac_cpp_err"; then
  2334. # Broken: success on invalid input.
  2335. continue
  2336. else
  2337. echo "$as_me: failed program was:" >&5
  2338. sed 's/^/| /' conftest.$ac_ext >&5
  2339. # Passes both tests.
  2340. ac_preproc_ok=:
  2341. break
  2342. fi
  2343. rm -f conftest.err conftest.$ac_ext
  2344. done
  2345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2346. rm -f conftest.err conftest.$ac_ext
  2347. if $ac_preproc_ok; then
  2348. :
  2349. else
  2350. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2351. See \`config.log' for more details." >&5
  2352. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2353. See \`config.log' for more details." >&2;}
  2354. { (exit 1); exit 1; }; }
  2355. fi
  2356. ac_ext=c
  2357. ac_cpp='$CPP $CPPFLAGS'
  2358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2361. # Find a good install program. We prefer a C program (faster),
  2362. # so one script is as good as another. But avoid the broken or
  2363. # incompatible versions:
  2364. # SysV /etc/install, /usr/sbin/install
  2365. # SunOS /usr/etc/install
  2366. # IRIX /sbin/install
  2367. # AIX /bin/install
  2368. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2369. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2370. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2371. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2372. # ./install, which can be erroneously created by make from ./install.sh.
  2373. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2374. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2375. if test -z "$INSTALL"; then
  2376. if test "${ac_cv_path_install+set}" = set; then
  2377. echo $ECHO_N "(cached) $ECHO_C" >&6
  2378. else
  2379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2380. for as_dir in $PATH
  2381. do
  2382. IFS=$as_save_IFS
  2383. test -z "$as_dir" && as_dir=.
  2384. # Account for people who put trailing slashes in PATH elements.
  2385. case $as_dir/ in
  2386. ./ | .// | /cC/* | \
  2387. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2388. /usr/ucb/* ) ;;
  2389. *)
  2390. # OSF1 and SCO ODT 3.0 have their own names for install.
  2391. # Don't use installbsd from OSF since it installs stuff as root
  2392. # by default.
  2393. for ac_prog in ginstall scoinst install; do
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2396. if test $ac_prog = install &&
  2397. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2398. # AIX install. It has an incompatible calling convention.
  2399. :
  2400. elif test $ac_prog = install &&
  2401. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2402. # program-specific install script used by HP pwplus--don't use.
  2403. :
  2404. else
  2405. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2406. break 3
  2407. fi
  2408. fi
  2409. done
  2410. done
  2411. ;;
  2412. esac
  2413. done
  2414. fi
  2415. if test "${ac_cv_path_install+set}" = set; then
  2416. INSTALL=$ac_cv_path_install
  2417. else
  2418. # As a last resort, use the slow shell script. We don't cache a
  2419. # path for INSTALL within a source directory, because that will
  2420. # break other packages using the cache if that directory is
  2421. # removed, or if the path is relative.
  2422. INSTALL=$ac_install_sh
  2423. fi
  2424. fi
  2425. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2426. echo "${ECHO_T}$INSTALL" >&6
  2427. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2428. # It thinks the first close brace ends the variable substitution.
  2429. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2430. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2431. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2432. for ac_prog in gawk mawk nawk awk
  2433. do
  2434. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2435. set dummy $ac_prog; ac_word=$2
  2436. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2437. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2438. if test "${ac_cv_prog_AWK+set}" = set; then
  2439. echo $ECHO_N "(cached) $ECHO_C" >&6
  2440. else
  2441. if test -n "$AWK"; then
  2442. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_exec_ext in '' $ac_executable_extensions; do
  2450. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2451. ac_cv_prog_AWK="$ac_prog"
  2452. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. fi
  2458. fi
  2459. AWK=$ac_cv_prog_AWK
  2460. if test -n "$AWK"; then
  2461. echo "$as_me:$LINENO: result: $AWK" >&5
  2462. echo "${ECHO_T}$AWK" >&6
  2463. else
  2464. echo "$as_me:$LINENO: result: no" >&5
  2465. echo "${ECHO_T}no" >&6
  2466. fi
  2467. test -n "$AWK" && break
  2468. done
  2469. echo "$as_me:$LINENO: checking for egrep" >&5
  2470. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2471. if test "${ac_cv_prog_egrep+set}" = set; then
  2472. echo $ECHO_N "(cached) $ECHO_C" >&6
  2473. else
  2474. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2475. then ac_cv_prog_egrep='grep -E'
  2476. else ac_cv_prog_egrep='egrep'
  2477. fi
  2478. fi
  2479. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2480. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2481. EGREP=$ac_cv_prog_egrep
  2482. echo "$as_me:$LINENO: checking for AIX" >&5
  2483. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2484. cat >conftest.$ac_ext <<_ACEOF
  2485. #line $LINENO "configure"
  2486. /* confdefs.h. */
  2487. _ACEOF
  2488. cat confdefs.h >>conftest.$ac_ext
  2489. cat >>conftest.$ac_ext <<_ACEOF
  2490. /* end confdefs.h. */
  2491. #ifdef _AIX
  2492. yes
  2493. #endif
  2494. _ACEOF
  2495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2496. $EGREP "yes" >/dev/null 2>&1; then
  2497. echo "$as_me:$LINENO: result: yes" >&5
  2498. echo "${ECHO_T}yes" >&6
  2499. cat >>confdefs.h <<\_ACEOF
  2500. #define _ALL_SOURCE 1
  2501. _ACEOF
  2502. else
  2503. echo "$as_me:$LINENO: result: no" >&5
  2504. echo "${ECHO_T}no" >&6
  2505. fi
  2506. rm -f conftest*
  2507. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2508. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2509. if test "${ac_cv_search_strerror+set}" = set; then
  2510. echo $ECHO_N "(cached) $ECHO_C" >&6
  2511. else
  2512. ac_func_search_save_LIBS=$LIBS
  2513. ac_cv_search_strerror=no
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. #line $LINENO "configure"
  2516. /* confdefs.h. */
  2517. _ACEOF
  2518. cat confdefs.h >>conftest.$ac_ext
  2519. cat >>conftest.$ac_ext <<_ACEOF
  2520. /* end confdefs.h. */
  2521. /* Override any gcc2 internal prototype to avoid an error. */
  2522. #ifdef __cplusplus
  2523. extern "C"
  2524. #endif
  2525. /* We use char because int might match the return type of a gcc2
  2526. builtin and then its argument prototype would still apply. */
  2527. char strerror ();
  2528. int
  2529. main ()
  2530. {
  2531. strerror ();
  2532. ;
  2533. return 0;
  2534. }
  2535. _ACEOF
  2536. rm -f conftest.$ac_objext conftest$ac_exeext
  2537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2538. (eval $ac_link) 2>&5
  2539. ac_status=$?
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -s conftest$ac_exeext'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; }; then
  2548. ac_cv_search_strerror="none required"
  2549. else
  2550. echo "$as_me: failed program was:" >&5
  2551. sed 's/^/| /' conftest.$ac_ext >&5
  2552. fi
  2553. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2554. if test "$ac_cv_search_strerror" = no; then
  2555. for ac_lib in cposix; do
  2556. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2557. cat >conftest.$ac_ext <<_ACEOF
  2558. #line $LINENO "configure"
  2559. /* confdefs.h. */
  2560. _ACEOF
  2561. cat confdefs.h >>conftest.$ac_ext
  2562. cat >>conftest.$ac_ext <<_ACEOF
  2563. /* end confdefs.h. */
  2564. /* Override any gcc2 internal prototype to avoid an error. */
  2565. #ifdef __cplusplus
  2566. extern "C"
  2567. #endif
  2568. /* We use char because int might match the return type of a gcc2
  2569. builtin and then its argument prototype would still apply. */
  2570. char strerror ();
  2571. int
  2572. main ()
  2573. {
  2574. strerror ();
  2575. ;
  2576. return 0;
  2577. }
  2578. _ACEOF
  2579. rm -f conftest.$ac_objext conftest$ac_exeext
  2580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2581. (eval $ac_link) 2>&5
  2582. ac_status=$?
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } &&
  2585. { ac_try='test -s conftest$ac_exeext'
  2586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2587. (eval $ac_try) 2>&5
  2588. ac_status=$?
  2589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. (exit $ac_status); }; }; then
  2591. ac_cv_search_strerror="-l$ac_lib"
  2592. break
  2593. else
  2594. echo "$as_me: failed program was:" >&5
  2595. sed 's/^/| /' conftest.$ac_ext >&5
  2596. fi
  2597. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2598. done
  2599. fi
  2600. LIBS=$ac_func_search_save_LIBS
  2601. fi
  2602. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2603. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2604. if test "$ac_cv_search_strerror" != no; then
  2605. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2606. fi
  2607. # Check whether --enable-shared or --disable-shared was given.
  2608. if test "${enable_shared+set}" = set; then
  2609. enableval="$enable_shared"
  2610. p=${PACKAGE-default}
  2611. case "$enableval" in
  2612. yes) enable_shared=yes ;;
  2613. no) enable_shared=no ;;
  2614. *)
  2615. enable_shared=no
  2616. # Look at the argument we got. We use all the common list separators.
  2617. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2618. for pkg in $enableval; do
  2619. if test "X$pkg" = "X$p"; then
  2620. enable_shared=yes
  2621. fi
  2622. done
  2623. IFS="$ac_save_ifs"
  2624. ;;
  2625. esac
  2626. else
  2627. enable_shared=no
  2628. fi; # Check whether --enable-static or --disable-static was given.
  2629. if test "${enable_static+set}" = set; then
  2630. enableval="$enable_static"
  2631. p=${PACKAGE-default}
  2632. case "$enableval" in
  2633. yes) enable_static=yes ;;
  2634. no) enable_static=no ;;
  2635. *)
  2636. enable_static=no
  2637. # Look at the argument we got. We use all the common list separators.
  2638. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2639. for pkg in $enableval; do
  2640. if test "X$pkg" = "X$p"; then
  2641. enable_static=yes
  2642. fi
  2643. done
  2644. IFS="$ac_save_ifs"
  2645. ;;
  2646. esac
  2647. else
  2648. enable_static=yes
  2649. fi; # Check whether --enable-fast-install or --disable-fast-install was given.
  2650. if test "${enable_fast_install+set}" = set; then
  2651. enableval="$enable_fast_install"
  2652. p=${PACKAGE-default}
  2653. case "$enableval" in
  2654. yes) enable_fast_install=yes ;;
  2655. no) enable_fast_install=no ;;
  2656. *)
  2657. enable_fast_install=no
  2658. # Look at the argument we got. We use all the common list separators.
  2659. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2660. for pkg in $enableval; do
  2661. if test "X$pkg" = "X$p"; then
  2662. enable_fast_install=yes
  2663. fi
  2664. done
  2665. IFS="$ac_save_ifs"
  2666. ;;
  2667. esac
  2668. else
  2669. enable_fast_install=yes
  2670. fi;
  2671. # Make sure we can run config.sub.
  2672. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2673. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2674. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2675. { (exit 1); exit 1; }; }
  2676. echo "$as_me:$LINENO: checking build system type" >&5
  2677. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2678. if test "${ac_cv_build+set}" = set; then
  2679. echo $ECHO_N "(cached) $ECHO_C" >&6
  2680. else
  2681. ac_cv_build_alias=$build_alias
  2682. test -z "$ac_cv_build_alias" &&
  2683. ac_cv_build_alias=`$ac_config_guess`
  2684. test -z "$ac_cv_build_alias" &&
  2685. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2686. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2687. { (exit 1); exit 1; }; }
  2688. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2689. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2690. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2691. { (exit 1); exit 1; }; }
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2694. echo "${ECHO_T}$ac_cv_build" >&6
  2695. build=$ac_cv_build
  2696. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2697. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2698. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2699. echo "$as_me:$LINENO: checking host system type" >&5
  2700. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2701. if test "${ac_cv_host+set}" = set; then
  2702. echo $ECHO_N "(cached) $ECHO_C" >&6
  2703. else
  2704. ac_cv_host_alias=$host_alias
  2705. test -z "$ac_cv_host_alias" &&
  2706. ac_cv_host_alias=$ac_cv_build_alias
  2707. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2708. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2709. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2710. { (exit 1); exit 1; }; }
  2711. fi
  2712. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2713. echo "${ECHO_T}$ac_cv_host" >&6
  2714. host=$ac_cv_host
  2715. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2716. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2717. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2718. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2719. if test "${with_gnu_ld+set}" = set; then
  2720. withval="$with_gnu_ld"
  2721. test "$withval" = no || with_gnu_ld=yes
  2722. else
  2723. with_gnu_ld=no
  2724. fi;
  2725. ac_prog=ld
  2726. if test "$GCC" = yes; then
  2727. # Check if gcc -print-prog-name=ld gives a path.
  2728. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  2729. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  2730. case $host in
  2731. *-*-mingw*)
  2732. # gcc leaves a trailing carriage return which upsets mingw
  2733. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2734. *)
  2735. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2736. esac
  2737. case "$ac_prog" in
  2738. # Accept absolute paths.
  2739. [\\/]* | [A-Za-z]:[\\/]*)
  2740. re_direlt='/[^/][^/]*/\.\./'
  2741. # Canonicalize the path of ld
  2742. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2743. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2744. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2745. done
  2746. test -z "$LD" && LD="$ac_prog"
  2747. ;;
  2748. "")
  2749. # If it fails, then pretend we aren't using GCC.
  2750. ac_prog=ld
  2751. ;;
  2752. *)
  2753. # If it is relative, then search for the first ld in PATH.
  2754. with_gnu_ld=unknown
  2755. ;;
  2756. esac
  2757. elif test "$with_gnu_ld" = yes; then
  2758. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2759. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2760. else
  2761. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2762. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2763. fi
  2764. if test "${lt_cv_path_LD+set}" = set; then
  2765. echo $ECHO_N "(cached) $ECHO_C" >&6
  2766. else
  2767. if test -z "$LD"; then
  2768. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  2769. for ac_dir in $PATH; do
  2770. test -z "$ac_dir" && ac_dir=.
  2771. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2772. lt_cv_path_LD="$ac_dir/$ac_prog"
  2773. # Check to see if the program is GNU ld. I'd rather use --version,
  2774. # but apparently some GNU ld's only accept -v.
  2775. # Break only if it was the GNU/non-GNU ld that we prefer.
  2776. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  2777. test "$with_gnu_ld" != no && break
  2778. else
  2779. test "$with_gnu_ld" != yes && break
  2780. fi
  2781. fi
  2782. done
  2783. IFS="$ac_save_ifs"
  2784. else
  2785. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2786. fi
  2787. fi
  2788. LD="$lt_cv_path_LD"
  2789. if test -n "$LD"; then
  2790. echo "$as_me:$LINENO: result: $LD" >&5
  2791. echo "${ECHO_T}$LD" >&6
  2792. else
  2793. echo "$as_me:$LINENO: result: no" >&5
  2794. echo "${ECHO_T}no" >&6
  2795. fi
  2796. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2797. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2798. { (exit 1); exit 1; }; }
  2799. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2800. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2801. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2802. echo $ECHO_N "(cached) $ECHO_C" >&6
  2803. else
  2804. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2805. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  2806. lt_cv_prog_gnu_ld=yes
  2807. else
  2808. lt_cv_prog_gnu_ld=no
  2809. fi
  2810. fi
  2811. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2812. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2813. with_gnu_ld=$lt_cv_prog_gnu_ld
  2814. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2815. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2816. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2817. echo $ECHO_N "(cached) $ECHO_C" >&6
  2818. else
  2819. lt_cv_ld_reload_flag='-r'
  2820. fi
  2821. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2822. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2823. reload_flag=$lt_cv_ld_reload_flag
  2824. test -n "$reload_flag" && reload_flag=" $reload_flag"
  2825. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2826. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2827. if test "${lt_cv_path_NM+set}" = set; then
  2828. echo $ECHO_N "(cached) $ECHO_C" >&6
  2829. else
  2830. if test -n "$NM"; then
  2831. # Let the user override the test.
  2832. lt_cv_path_NM="$NM"
  2833. else
  2834. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  2835. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2836. test -z "$ac_dir" && ac_dir=.
  2837. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  2838. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  2839. # Check to see if the nm accepts a BSD-compat flag.
  2840. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2841. # nm: unknown option "B" ignored
  2842. # Tru64's nm complains that /dev/null is an invalid object file
  2843. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  2844. lt_cv_path_NM="$tmp_nm -B"
  2845. break
  2846. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  2847. lt_cv_path_NM="$tmp_nm -p"
  2848. break
  2849. else
  2850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2851. continue # so that we can try to find one that supports BSD flags
  2852. fi
  2853. fi
  2854. done
  2855. IFS="$ac_save_ifs"
  2856. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2857. fi
  2858. fi
  2859. NM="$lt_cv_path_NM"
  2860. echo "$as_me:$LINENO: result: $NM" >&5
  2861. echo "${ECHO_T}$NM" >&6
  2862. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2863. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2864. LN_S=$as_ln_s
  2865. if test "$LN_S" = "ln -s"; then
  2866. echo "$as_me:$LINENO: result: yes" >&5
  2867. echo "${ECHO_T}yes" >&6
  2868. else
  2869. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2870. echo "${ECHO_T}no, using $LN_S" >&6
  2871. fi
  2872. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  2873. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  2874. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2875. echo $ECHO_N "(cached) $ECHO_C" >&6
  2876. else
  2877. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2878. lt_cv_file_magic_test_file=
  2879. lt_cv_deplibs_check_method='unknown'
  2880. # Need to set the preceding variable on all platforms that support
  2881. # interlibrary dependencies.
  2882. # 'none' -- dependencies not supported.
  2883. # `unknown' -- same as none, but documents that we really don't know.
  2884. # 'pass_all' -- all dependencies passed with no checks.
  2885. # 'test_compile' -- check by making test program.
  2886. # ['file_magic [regex]'] -- check by looking for files in library path
  2887. # which responds to the $file_magic_cmd with a given egrep regex.
  2888. # If you have `file' or equivalent on your system and you're not sure
  2889. # whether `pass_all' will *always* work, you probably want this one.
  2890. case "$host_os" in
  2891. aix4*)
  2892. lt_cv_deplibs_check_method=pass_all
  2893. ;;
  2894. beos*)
  2895. lt_cv_deplibs_check_method=pass_all
  2896. ;;
  2897. bsdi4*)
  2898. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2899. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2900. lt_cv_file_magic_test_file=/shlib/libc.so
  2901. ;;
  2902. cygwin* | mingw* | pw32*)
  2903. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2904. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2905. ;;
  2906. darwin*|rhapsody*)
  2907. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  2908. lt_cv_file_magiic_cmd=/usr/bin/file
  2909. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  2910. ;;
  2911. freebsd*)
  2912. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2913. case "$host_cpu" in
  2914. i*86 )
  2915. # Not sure whether the presence of OpenBSD here was a mistake.
  2916. # Let's accept both of them until this is cleared up.
  2917. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  2918. lt_cv_file_magic_cmd=/usr/bin/file
  2919. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2920. ;;
  2921. esac
  2922. else
  2923. lt_cv_deplibs_check_method=pass_all
  2924. fi
  2925. ;;
  2926. gnu*)
  2927. lt_cv_deplibs_check_method=pass_all
  2928. ;;
  2929. hpux10.20*|hpux11*)
  2930. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2931. lt_cv_file_magic_cmd=/usr/bin/file
  2932. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2933. ;;
  2934. irix5* | irix6*)
  2935. case "$host_os" in
  2936. irix5*)
  2937. # this will be overridden with pass_all, but let us keep it just in case
  2938. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  2939. ;;
  2940. *)
  2941. case "$LD" in
  2942. *-32|*"-32 ") libmagic=32-bit;;
  2943. *-n32|*"-n32 ") libmagic=N32;;
  2944. *-64|*"-64 ") libmagic=64-bit;;
  2945. *) libmagic=never-match;;
  2946. esac
  2947. # this will be overridden with pass_all, but let us keep it just in case
  2948. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  2949. ;;
  2950. esac
  2951. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  2952. lt_cv_deplibs_check_method=pass_all
  2953. ;;
  2954. # This must be Linux ELF.
  2955. linux-gnu*)
  2956. case "$host_cpu" in
  2957. alpha* | i*86 | powerpc* | sparc* | ia64* )
  2958. lt_cv_deplibs_check_method=pass_all ;;
  2959. *)
  2960. # glibc up to 2.1.1 does not perform some relocations on ARM
  2961. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  2962. esac
  2963. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  2964. ;;
  2965. netbsd*)
  2966. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2967. lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
  2968. else
  2969. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  2970. fi
  2971. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2972. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2973. ;;
  2974. newos6*)
  2975. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2976. lt_cv_file_magic_cmd=/usr/bin/file
  2977. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2978. ;;
  2979. osf3* | osf4* | osf5*)
  2980. # this will be overridden with pass_all, but let us keep it just in case
  2981. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  2982. lt_cv_file_magic_test_file=/shlib/libc.so
  2983. lt_cv_deplibs_check_method=pass_all
  2984. ;;
  2985. sco3.2v5*)
  2986. lt_cv_deplibs_check_method=pass_all
  2987. ;;
  2988. solaris*)
  2989. lt_cv_deplibs_check_method=pass_all
  2990. lt_cv_file_magic_test_file=/lib/libc.so
  2991. ;;
  2992. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2993. case "$host_vendor" in
  2994. motorola)
  2995. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  2996. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2997. ;;
  2998. ncr)
  2999. lt_cv_deplibs_check_method=pass_all
  3000. ;;
  3001. sequent)
  3002. lt_cv_file_magic_cmd='/bin/file'
  3003. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3004. ;;
  3005. sni)
  3006. lt_cv_file_magic_cmd='/bin/file'
  3007. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3008. lt_cv_file_magic_test_file=/lib/libc.so
  3009. ;;
  3010. esac
  3011. ;;
  3012. esac
  3013. fi
  3014. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3015. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3016. file_magic_cmd=$lt_cv_file_magic_cmd
  3017. deplibs_check_method=$lt_cv_deplibs_check_method
  3018. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3019. echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  3020. echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  3021. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  3022. echo $ECHO_N "(cached) $ECHO_C" >&6
  3023. else
  3024. # These are sane defaults that work on at least a few old systems.
  3025. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3026. # Character class describing NM global symbol codes.
  3027. symcode='[BCDEGRST]'
  3028. # Regexp to match symbols that can be accessed directly from C.
  3029. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  3030. # Transform the above into a raw symbol and a C symbol.
  3031. symxfrm='\1 \2\3 \3'
  3032. # Transform an extracted symbol line into a proper C declaration
  3033. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  3034. # Define system-specific variables.
  3035. case "$host_os" in
  3036. aix*)
  3037. symcode='[BCDT]'
  3038. ;;
  3039. cygwin* | mingw* | pw32*)
  3040. symcode='[ABCDGISTW]'
  3041. ;;
  3042. hpux*) # Its linker distinguishes data from code symbols
  3043. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
  3044. ;;
  3045. irix*)
  3046. symcode='[BCDEGRST]'
  3047. ;;
  3048. solaris* | sysv5*)
  3049. symcode='[BDT]'
  3050. ;;
  3051. sysv4)
  3052. symcode='[DFNSTU]'
  3053. ;;
  3054. esac
  3055. # Handle CRLF in mingw tool chain
  3056. opt_cr=
  3057. case "$host_os" in
  3058. mingw*)
  3059. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3060. ;;
  3061. esac
  3062. # If we're using GNU nm, then use its standard symbol codes.
  3063. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  3064. symcode='[ABCDGISTW]'
  3065. fi
  3066. # Try without a prefix undercore, then with it.
  3067. for ac_symprfx in "" "_"; do
  3068. # Write the raw and C identifiers.
  3069. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  3070. # Check to see that the pipe works correctly.
  3071. pipe_works=no
  3072. rm -f conftest*
  3073. cat > conftest.$ac_ext <<EOF
  3074. #ifdef __cplusplus
  3075. extern "C" {
  3076. #endif
  3077. char nm_test_var;
  3078. void nm_test_func(){}
  3079. #ifdef __cplusplus
  3080. }
  3081. #endif
  3082. main(){nm_test_var='a';nm_test_func();return(0);}
  3083. EOF
  3084. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3085. (eval $ac_compile) 2>&5
  3086. ac_status=$?
  3087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3088. (exit $ac_status); }; then
  3089. # Now try to grab the symbols.
  3090. nlist=conftest.nm
  3091. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  3092. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  3093. ac_status=$?
  3094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095. (exit $ac_status); } && test -s "$nlist"; then
  3096. # Try sorting and uniquifying the output.
  3097. if sort "$nlist" | uniq > "$nlist"T; then
  3098. mv -f "$nlist"T "$nlist"
  3099. else
  3100. rm -f "$nlist"T
  3101. fi
  3102. # Make sure that we snagged all the symbols we need.
  3103. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  3104. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  3105. cat <<EOF > conftest.$ac_ext
  3106. #ifdef __cplusplus
  3107. extern "C" {
  3108. #endif
  3109. EOF
  3110. # Now generate the symbol file.
  3111. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  3112. cat <<EOF >> conftest.$ac_ext
  3113. #if defined (__STDC__) && __STDC__
  3114. # define lt_ptr_t void *
  3115. #else
  3116. # define lt_ptr_t char *
  3117. # define const
  3118. #endif
  3119. /* The mapping between symbol names and symbols. */
  3120. const struct {
  3121. const char *name;
  3122. lt_ptr_t address;
  3123. }
  3124. lt_preloaded_symbols[] =
  3125. {
  3126. EOF
  3127. sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
  3128. cat <<\EOF >> conftest.$ac_ext
  3129. {0, (lt_ptr_t) 0}
  3130. };
  3131. #ifdef __cplusplus
  3132. }
  3133. #endif
  3134. EOF
  3135. # Now try linking the two files.
  3136. mv conftest.$ac_objext conftstm.$ac_objext
  3137. save_LIBS="$LIBS"
  3138. save_CFLAGS="$CFLAGS"
  3139. LIBS="conftstm.$ac_objext"
  3140. CFLAGS="$CFLAGS$no_builtin_flag"
  3141. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3142. (eval $ac_link) 2>&5
  3143. ac_status=$?
  3144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3145. (exit $ac_status); } && test -s conftest; then
  3146. pipe_works=yes
  3147. fi
  3148. LIBS="$save_LIBS"
  3149. CFLAGS="$save_CFLAGS"
  3150. else
  3151. echo "cannot find nm_test_func in $nlist" >&5
  3152. fi
  3153. else
  3154. echo "cannot find nm_test_var in $nlist" >&5
  3155. fi
  3156. else
  3157. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  3158. fi
  3159. else
  3160. echo "$progname: failed program was:" >&5
  3161. cat conftest.$ac_ext >&5
  3162. fi
  3163. rm -f conftest* conftst*
  3164. # Do not use the global_symbol_pipe unless it works.
  3165. if test "$pipe_works" = yes; then
  3166. break
  3167. else
  3168. lt_cv_sys_global_symbol_pipe=
  3169. fi
  3170. done
  3171. fi
  3172. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  3173. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3174. global_symbol_to_cdecl=
  3175. else
  3176. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  3177. fi
  3178. if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  3179. echo "$as_me:$LINENO: result: failed" >&5
  3180. echo "${ECHO_T}failed" >&6
  3181. else
  3182. echo "$as_me:$LINENO: result: ok" >&5
  3183. echo "${ECHO_T}ok" >&6
  3184. fi
  3185. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3186. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3187. if test "${ac_cv_header_stdc+set}" = set; then
  3188. echo $ECHO_N "(cached) $ECHO_C" >&6
  3189. else
  3190. cat >conftest.$ac_ext <<_ACEOF
  3191. #line $LINENO "configure"
  3192. /* confdefs.h. */
  3193. _ACEOF
  3194. cat confdefs.h >>conftest.$ac_ext
  3195. cat >>conftest.$ac_ext <<_ACEOF
  3196. /* end confdefs.h. */
  3197. #include <stdlib.h>
  3198. #include <stdarg.h>
  3199. #include <string.h>
  3200. #include <float.h>
  3201. int
  3202. main ()
  3203. {
  3204. ;
  3205. return 0;
  3206. }
  3207. _ACEOF
  3208. rm -f conftest.$ac_objext
  3209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3210. (eval $ac_compile) 2>&5
  3211. ac_status=$?
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } &&
  3214. { ac_try='test -s conftest.$ac_objext'
  3215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3216. (eval $ac_try) 2>&5
  3217. ac_status=$?
  3218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3219. (exit $ac_status); }; }; then
  3220. ac_cv_header_stdc=yes
  3221. else
  3222. echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. ac_cv_header_stdc=no
  3225. fi
  3226. rm -f conftest.$ac_objext conftest.$ac_ext
  3227. if test $ac_cv_header_stdc = yes; then
  3228. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3229. cat >conftest.$ac_ext <<_ACEOF
  3230. #line $LINENO "configure"
  3231. /* confdefs.h. */
  3232. _ACEOF
  3233. cat confdefs.h >>conftest.$ac_ext
  3234. cat >>conftest.$ac_ext <<_ACEOF
  3235. /* end confdefs.h. */
  3236. #include <string.h>
  3237. _ACEOF
  3238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3239. $EGREP "memchr" >/dev/null 2>&1; then
  3240. :
  3241. else
  3242. ac_cv_header_stdc=no
  3243. fi
  3244. rm -f conftest*
  3245. fi
  3246. if test $ac_cv_header_stdc = yes; then
  3247. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3248. cat >conftest.$ac_ext <<_ACEOF
  3249. #line $LINENO "configure"
  3250. /* confdefs.h. */
  3251. _ACEOF
  3252. cat confdefs.h >>conftest.$ac_ext
  3253. cat >>conftest.$ac_ext <<_ACEOF
  3254. /* end confdefs.h. */
  3255. #include <stdlib.h>
  3256. _ACEOF
  3257. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3258. $EGREP "free" >/dev/null 2>&1; then
  3259. :
  3260. else
  3261. ac_cv_header_stdc=no
  3262. fi
  3263. rm -f conftest*
  3264. fi
  3265. if test $ac_cv_header_stdc = yes; then
  3266. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3267. if test "$cross_compiling" = yes; then
  3268. :
  3269. else
  3270. cat >conftest.$ac_ext <<_ACEOF
  3271. #line $LINENO "configure"
  3272. /* confdefs.h. */
  3273. _ACEOF
  3274. cat confdefs.h >>conftest.$ac_ext
  3275. cat >>conftest.$ac_ext <<_ACEOF
  3276. /* end confdefs.h. */
  3277. #include <ctype.h>
  3278. #if ((' ' & 0x0FF) == 0x020)
  3279. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3280. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3281. #else
  3282. # define ISLOWER(c) \
  3283. (('a' <= (c) && (c) <= 'i') \
  3284. || ('j' <= (c) && (c) <= 'r') \
  3285. || ('s' <= (c) && (c) <= 'z'))
  3286. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3287. #endif
  3288. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3289. int
  3290. main ()
  3291. {
  3292. int i;
  3293. for (i = 0; i < 256; i++)
  3294. if (XOR (islower (i), ISLOWER (i))
  3295. || toupper (i) != TOUPPER (i))
  3296. exit(2);
  3297. exit (0);
  3298. }
  3299. _ACEOF
  3300. rm -f conftest$ac_exeext
  3301. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3302. (eval $ac_link) 2>&5
  3303. ac_status=$?
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); }; }; then
  3311. :
  3312. else
  3313. echo "$as_me: program exited with status $ac_status" >&5
  3314. echo "$as_me: failed program was:" >&5
  3315. sed 's/^/| /' conftest.$ac_ext >&5
  3316. ( exit $ac_status )
  3317. ac_cv_header_stdc=no
  3318. fi
  3319. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3320. fi
  3321. fi
  3322. fi
  3323. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3324. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3325. if test $ac_cv_header_stdc = yes; then
  3326. cat >>confdefs.h <<\_ACEOF
  3327. #define STDC_HEADERS 1
  3328. _ACEOF
  3329. fi
  3330. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3331. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3332. inttypes.h stdint.h unistd.h
  3333. do
  3334. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3335. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3336. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3337. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3338. echo $ECHO_N "(cached) $ECHO_C" >&6
  3339. else
  3340. cat >conftest.$ac_ext <<_ACEOF
  3341. #line $LINENO "configure"
  3342. /* confdefs.h. */
  3343. _ACEOF
  3344. cat confdefs.h >>conftest.$ac_ext
  3345. cat >>conftest.$ac_ext <<_ACEOF
  3346. /* end confdefs.h. */
  3347. $ac_includes_default
  3348. #include <$ac_header>
  3349. _ACEOF
  3350. rm -f conftest.$ac_objext
  3351. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3352. (eval $ac_compile) 2>&5
  3353. ac_status=$?
  3354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3355. (exit $ac_status); } &&
  3356. { ac_try='test -s conftest.$ac_objext'
  3357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3358. (eval $ac_try) 2>&5
  3359. ac_status=$?
  3360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3361. (exit $ac_status); }; }; then
  3362. eval "$as_ac_Header=yes"
  3363. else
  3364. echo "$as_me: failed program was:" >&5
  3365. sed 's/^/| /' conftest.$ac_ext >&5
  3366. eval "$as_ac_Header=no"
  3367. fi
  3368. rm -f conftest.$ac_objext conftest.$ac_ext
  3369. fi
  3370. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3371. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3372. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3373. cat >>confdefs.h <<_ACEOF
  3374. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3375. _ACEOF
  3376. fi
  3377. done
  3378. for ac_header in dlfcn.h
  3379. do
  3380. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3381. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3382. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3383. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3384. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3385. echo $ECHO_N "(cached) $ECHO_C" >&6
  3386. fi
  3387. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3388. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3389. else
  3390. # Is the header compilable?
  3391. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3392. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3393. cat >conftest.$ac_ext <<_ACEOF
  3394. #line $LINENO "configure"
  3395. /* confdefs.h. */
  3396. _ACEOF
  3397. cat confdefs.h >>conftest.$ac_ext
  3398. cat >>conftest.$ac_ext <<_ACEOF
  3399. /* end confdefs.h. */
  3400. $ac_includes_default
  3401. #include <$ac_header>
  3402. _ACEOF
  3403. rm -f conftest.$ac_objext
  3404. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3405. (eval $ac_compile) 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); } &&
  3409. { ac_try='test -s conftest.$ac_objext'
  3410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3411. (eval $ac_try) 2>&5
  3412. ac_status=$?
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); }; }; then
  3415. ac_header_compiler=yes
  3416. else
  3417. echo "$as_me: failed program was:" >&5
  3418. sed 's/^/| /' conftest.$ac_ext >&5
  3419. ac_header_compiler=no
  3420. fi
  3421. rm -f conftest.$ac_objext conftest.$ac_ext
  3422. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3423. echo "${ECHO_T}$ac_header_compiler" >&6
  3424. # Is the header present?
  3425. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3426. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3427. cat >conftest.$ac_ext <<_ACEOF
  3428. #line $LINENO "configure"
  3429. /* confdefs.h. */
  3430. _ACEOF
  3431. cat confdefs.h >>conftest.$ac_ext
  3432. cat >>conftest.$ac_ext <<_ACEOF
  3433. /* end confdefs.h. */
  3434. #include <$ac_header>
  3435. _ACEOF
  3436. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3437. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3438. ac_status=$?
  3439. grep -v '^ *+' conftest.er1 >conftest.err
  3440. rm -f conftest.er1
  3441. cat conftest.err >&5
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } >/dev/null; then
  3444. if test -s conftest.err; then
  3445. ac_cpp_err=$ac_c_preproc_warn_flag
  3446. else
  3447. ac_cpp_err=
  3448. fi
  3449. else
  3450. ac_cpp_err=yes
  3451. fi
  3452. if test -z "$ac_cpp_err"; then
  3453. ac_header_preproc=yes
  3454. else
  3455. echo "$as_me: failed program was:" >&5
  3456. sed 's/^/| /' conftest.$ac_ext >&5
  3457. ac_header_preproc=no
  3458. fi
  3459. rm -f conftest.err conftest.$ac_ext
  3460. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3461. echo "${ECHO_T}$ac_header_preproc" >&6
  3462. # So? What about this header?
  3463. case $ac_header_compiler:$ac_header_preproc in
  3464. yes:no )
  3465. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3466. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3468. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3469. (
  3470. cat <<\_ASBOX
  3471. ## ------------------------------------ ##
  3472. ## Report this to bug-autoconf@gnu.org. ##
  3473. ## ------------------------------------ ##
  3474. _ASBOX
  3475. ) |
  3476. sed "s/^/$as_me: WARNING: /" >&2
  3477. ;;
  3478. no:yes )
  3479. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3480. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3481. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3482. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3483. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3484. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3485. (
  3486. cat <<\_ASBOX
  3487. ## ------------------------------------ ##
  3488. ## Report this to bug-autoconf@gnu.org. ##
  3489. ## ------------------------------------ ##
  3490. _ASBOX
  3491. ) |
  3492. sed "s/^/$as_me: WARNING: /" >&2
  3493. ;;
  3494. esac
  3495. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3496. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3497. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3498. echo $ECHO_N "(cached) $ECHO_C" >&6
  3499. else
  3500. eval "$as_ac_Header=$ac_header_preproc"
  3501. fi
  3502. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3503. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3504. fi
  3505. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3506. cat >>confdefs.h <<_ACEOF
  3507. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3508. _ACEOF
  3509. fi
  3510. done
  3511. # Only perform the check for file, if the check method requires it
  3512. case "$deplibs_check_method" in
  3513. file_magic*)
  3514. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3515. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  3516. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  3517. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3518. echo $ECHO_N "(cached) $ECHO_C" >&6
  3519. else
  3520. case "$MAGIC_CMD" in
  3521. /*)
  3522. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3523. ;;
  3524. ?:/*)
  3525. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3526. ;;
  3527. *)
  3528. ac_save_MAGIC_CMD="$MAGIC_CMD"
  3529. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3530. ac_dummy="/usr/bin:$PATH"
  3531. for ac_dir in $ac_dummy; do
  3532. test -z "$ac_dir" && ac_dir=.
  3533. if test -f $ac_dir/${ac_tool_prefix}file; then
  3534. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  3535. if test -n "$file_magic_test_file"; then
  3536. case "$deplibs_check_method" in
  3537. "file_magic "*)
  3538. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3539. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3540. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3541. egrep "$file_magic_regex" > /dev/null; then
  3542. :
  3543. else
  3544. cat <<EOF 1>&2
  3545. *** Warning: the command libtool uses to detect shared libraries,
  3546. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3547. *** The result is that libtool may fail to recognize shared libraries
  3548. *** as such. This will affect the creation of libtool libraries that
  3549. *** depend on shared libraries, but programs linked with such libtool
  3550. *** libraries will work regardless of this problem. Nevertheless, you
  3551. *** may want to report the problem to your system manager and/or to
  3552. *** bug-libtool@gnu.org
  3553. EOF
  3554. fi ;;
  3555. esac
  3556. fi
  3557. break
  3558. fi
  3559. done
  3560. IFS="$ac_save_ifs"
  3561. MAGIC_CMD="$ac_save_MAGIC_CMD"
  3562. ;;
  3563. esac
  3564. fi
  3565. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3566. if test -n "$MAGIC_CMD"; then
  3567. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3568. echo "${ECHO_T}$MAGIC_CMD" >&6
  3569. else
  3570. echo "$as_me:$LINENO: result: no" >&5
  3571. echo "${ECHO_T}no" >&6
  3572. fi
  3573. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3574. if test -n "$ac_tool_prefix"; then
  3575. echo "$as_me:$LINENO: checking for file" >&5
  3576. echo $ECHO_N "checking for file... $ECHO_C" >&6
  3577. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3578. echo $ECHO_N "(cached) $ECHO_C" >&6
  3579. else
  3580. case "$MAGIC_CMD" in
  3581. /*)
  3582. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3583. ;;
  3584. ?:/*)
  3585. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3586. ;;
  3587. *)
  3588. ac_save_MAGIC_CMD="$MAGIC_CMD"
  3589. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3590. ac_dummy="/usr/bin:$PATH"
  3591. for ac_dir in $ac_dummy; do
  3592. test -z "$ac_dir" && ac_dir=.
  3593. if test -f $ac_dir/file; then
  3594. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  3595. if test -n "$file_magic_test_file"; then
  3596. case "$deplibs_check_method" in
  3597. "file_magic "*)
  3598. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3599. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3600. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3601. egrep "$file_magic_regex" > /dev/null; then
  3602. :
  3603. else
  3604. cat <<EOF 1>&2
  3605. *** Warning: the command libtool uses to detect shared libraries,
  3606. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3607. *** The result is that libtool may fail to recognize shared libraries
  3608. *** as such. This will affect the creation of libtool libraries that
  3609. *** depend on shared libraries, but programs linked with such libtool
  3610. *** libraries will work regardless of this problem. Nevertheless, you
  3611. *** may want to report the problem to your system manager and/or to
  3612. *** bug-libtool@gnu.org
  3613. EOF
  3614. fi ;;
  3615. esac
  3616. fi
  3617. break
  3618. fi
  3619. done
  3620. IFS="$ac_save_ifs"
  3621. MAGIC_CMD="$ac_save_MAGIC_CMD"
  3622. ;;
  3623. esac
  3624. fi
  3625. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3626. if test -n "$MAGIC_CMD"; then
  3627. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3628. echo "${ECHO_T}$MAGIC_CMD" >&6
  3629. else
  3630. echo "$as_me:$LINENO: result: no" >&5
  3631. echo "${ECHO_T}no" >&6
  3632. fi
  3633. else
  3634. MAGIC_CMD=:
  3635. fi
  3636. fi
  3637. fi
  3638. ;;
  3639. esac
  3640. if test -n "$ac_tool_prefix"; then
  3641. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3642. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3643. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3644. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3645. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3646. echo $ECHO_N "(cached) $ECHO_C" >&6
  3647. else
  3648. if test -n "$RANLIB"; then
  3649. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3650. else
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH
  3653. do
  3654. IFS=$as_save_IFS
  3655. test -z "$as_dir" && as_dir=.
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3658. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3660. break 2
  3661. fi
  3662. done
  3663. done
  3664. fi
  3665. fi
  3666. RANLIB=$ac_cv_prog_RANLIB
  3667. if test -n "$RANLIB"; then
  3668. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3669. echo "${ECHO_T}$RANLIB" >&6
  3670. else
  3671. echo "$as_me:$LINENO: result: no" >&5
  3672. echo "${ECHO_T}no" >&6
  3673. fi
  3674. fi
  3675. if test -z "$ac_cv_prog_RANLIB"; then
  3676. ac_ct_RANLIB=$RANLIB
  3677. # Extract the first word of "ranlib", so it can be a program name with args.
  3678. set dummy ranlib; ac_word=$2
  3679. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3680. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3681. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3682. echo $ECHO_N "(cached) $ECHO_C" >&6
  3683. else
  3684. if test -n "$ac_ct_RANLIB"; then
  3685. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3686. else
  3687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3688. for as_dir in $PATH
  3689. do
  3690. IFS=$as_save_IFS
  3691. test -z "$as_dir" && as_dir=.
  3692. for ac_exec_ext in '' $ac_executable_extensions; do
  3693. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3694. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3695. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3696. break 2
  3697. fi
  3698. done
  3699. done
  3700. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3701. fi
  3702. fi
  3703. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3704. if test -n "$ac_ct_RANLIB"; then
  3705. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3706. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3707. else
  3708. echo "$as_me:$LINENO: result: no" >&5
  3709. echo "${ECHO_T}no" >&6
  3710. fi
  3711. RANLIB=$ac_ct_RANLIB
  3712. else
  3713. RANLIB="$ac_cv_prog_RANLIB"
  3714. fi
  3715. if test -n "$ac_tool_prefix"; then
  3716. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3717. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3718. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3719. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3720. if test "${ac_cv_prog_STRIP+set}" = set; then
  3721. echo $ECHO_N "(cached) $ECHO_C" >&6
  3722. else
  3723. if test -n "$STRIP"; then
  3724. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3725. else
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_exec_ext in '' $ac_executable_extensions; do
  3732. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3733. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3734. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3735. break 2
  3736. fi
  3737. done
  3738. done
  3739. fi
  3740. fi
  3741. STRIP=$ac_cv_prog_STRIP
  3742. if test -n "$STRIP"; then
  3743. echo "$as_me:$LINENO: result: $STRIP" >&5
  3744. echo "${ECHO_T}$STRIP" >&6
  3745. else
  3746. echo "$as_me:$LINENO: result: no" >&5
  3747. echo "${ECHO_T}no" >&6
  3748. fi
  3749. fi
  3750. if test -z "$ac_cv_prog_STRIP"; then
  3751. ac_ct_STRIP=$STRIP
  3752. # Extract the first word of "strip", so it can be a program name with args.
  3753. set dummy strip; ac_word=$2
  3754. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3755. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3756. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  3757. echo $ECHO_N "(cached) $ECHO_C" >&6
  3758. else
  3759. if test -n "$ac_ct_STRIP"; then
  3760. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3761. else
  3762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763. for as_dir in $PATH
  3764. do
  3765. IFS=$as_save_IFS
  3766. test -z "$as_dir" && as_dir=.
  3767. for ac_exec_ext in '' $ac_executable_extensions; do
  3768. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3769. ac_cv_prog_ac_ct_STRIP="strip"
  3770. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3771. break 2
  3772. fi
  3773. done
  3774. done
  3775. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  3776. fi
  3777. fi
  3778. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3779. if test -n "$ac_ct_STRIP"; then
  3780. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  3781. echo "${ECHO_T}$ac_ct_STRIP" >&6
  3782. else
  3783. echo "$as_me:$LINENO: result: no" >&5
  3784. echo "${ECHO_T}no" >&6
  3785. fi
  3786. STRIP=$ac_ct_STRIP
  3787. else
  3788. STRIP="$ac_cv_prog_STRIP"
  3789. fi
  3790. enable_dlopen=no
  3791. enable_win32_dll=no
  3792. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3793. if test "${enable_libtool_lock+set}" = set; then
  3794. enableval="$enable_libtool_lock"
  3795. fi;
  3796. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3797. # Some flags need to be propagated to the compiler or linker for good
  3798. # libtool support.
  3799. case "$host" in
  3800. *-*-irix6*)
  3801. # Find out which ABI we are using.
  3802. echo '#line 4217 "configure"' > conftest.$ac_ext
  3803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3804. (eval $ac_compile) 2>&5
  3805. ac_status=$?
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); }; then
  3808. case "`/usr/bin/file conftest.$ac_objext`" in
  3809. *32-bit*)
  3810. LD="${LD-ld} -32"
  3811. ;;
  3812. *N32*)
  3813. LD="${LD-ld} -n32"
  3814. ;;
  3815. *64-bit*)
  3816. LD="${LD-ld} -64"
  3817. ;;
  3818. esac
  3819. fi
  3820. rm -rf conftest*
  3821. ;;
  3822. *-*-sco3.2v5*)
  3823. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3824. SAVE_CFLAGS="$CFLAGS"
  3825. CFLAGS="$CFLAGS -belf"
  3826. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3827. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3828. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3829. echo $ECHO_N "(cached) $ECHO_C" >&6
  3830. else
  3831. ac_ext=c
  3832. ac_cpp='$CPP $CPPFLAGS'
  3833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3836. cat >conftest.$ac_ext <<_ACEOF
  3837. #line $LINENO "configure"
  3838. /* confdefs.h. */
  3839. _ACEOF
  3840. cat confdefs.h >>conftest.$ac_ext
  3841. cat >>conftest.$ac_ext <<_ACEOF
  3842. /* end confdefs.h. */
  3843. int
  3844. main ()
  3845. {
  3846. ;
  3847. return 0;
  3848. }
  3849. _ACEOF
  3850. rm -f conftest.$ac_objext conftest$ac_exeext
  3851. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3852. (eval $ac_link) 2>&5
  3853. ac_status=$?
  3854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3855. (exit $ac_status); } &&
  3856. { ac_try='test -s conftest$ac_exeext'
  3857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3858. (eval $ac_try) 2>&5
  3859. ac_status=$?
  3860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3861. (exit $ac_status); }; }; then
  3862. lt_cv_cc_needs_belf=yes
  3863. else
  3864. echo "$as_me: failed program was:" >&5
  3865. sed 's/^/| /' conftest.$ac_ext >&5
  3866. lt_cv_cc_needs_belf=no
  3867. fi
  3868. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3869. ac_ext=c
  3870. ac_cpp='$CPP $CPPFLAGS'
  3871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3874. fi
  3875. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3876. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3877. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3878. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3879. CFLAGS="$SAVE_CFLAGS"
  3880. fi
  3881. ;;
  3882. esac
  3883. # Sed substitution that helps us do robust quoting. It backslashifies
  3884. # metacharacters that are still active within double-quoted strings.
  3885. Xsed='sed -e s/^X//'
  3886. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  3887. # Same as above, but do not quote variable references.
  3888. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  3889. # Sed substitution to delay expansion of an escaped shell variable in a
  3890. # double_quote_subst'ed string.
  3891. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3892. # Constants:
  3893. rm="rm -f"
  3894. # Global variables:
  3895. default_ofile=libtool
  3896. can_build_shared=yes
  3897. # All known linkers require a `.a' archive for static linking (except M$VC,
  3898. # which needs '.lib').
  3899. libext=a
  3900. ltmain="$ac_aux_dir/ltmain.sh"
  3901. ofile="$default_ofile"
  3902. with_gnu_ld="$lt_cv_prog_gnu_ld"
  3903. need_locks="$enable_libtool_lock"
  3904. old_CC="$CC"
  3905. old_CFLAGS="$CFLAGS"
  3906. # Set sane defaults for various variables
  3907. test -z "$AR" && AR=ar
  3908. test -z "$AR_FLAGS" && AR_FLAGS=cru
  3909. test -z "$AS" && AS=as
  3910. test -z "$CC" && CC=cc
  3911. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3912. test -z "$LD" && LD=ld
  3913. test -z "$LN_S" && LN_S="ln -s"
  3914. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  3915. test -z "$NM" && NM=nm
  3916. test -z "$OBJDUMP" && OBJDUMP=objdump
  3917. test -z "$RANLIB" && RANLIB=:
  3918. test -z "$STRIP" && STRIP=:
  3919. test -z "$ac_objext" && ac_objext=o
  3920. if test x"$host" != x"$build"; then
  3921. ac_tool_prefix=${host_alias}-
  3922. else
  3923. ac_tool_prefix=
  3924. fi
  3925. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  3926. case "$host_os" in
  3927. linux-gnu*) ;;
  3928. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  3929. esac
  3930. case "$host_os" in
  3931. aix3*)
  3932. # AIX sometimes has problems with the GCC collect2 program. For some
  3933. # reason, if we set the COLLECT_NAMES environment variable, the problems
  3934. # vanish in a puff of smoke.
  3935. if test "X${COLLECT_NAMES+set}" != Xset; then
  3936. COLLECT_NAMES=
  3937. export COLLECT_NAMES
  3938. fi
  3939. ;;
  3940. esac
  3941. # Determine commands to create old-style static archives.
  3942. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  3943. old_postinstall_cmds='chmod 644 $oldlib'
  3944. old_postuninstall_cmds=
  3945. if test -n "$RANLIB"; then
  3946. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  3947. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  3948. fi
  3949. # Allow CC to be a program name with arguments.
  3950. set dummy $CC
  3951. compiler="$2"
  3952. ## FIXME: this should be a separate macro
  3953. ##
  3954. echo "$as_me:$LINENO: checking for objdir" >&5
  3955. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  3956. rm -f .libs 2>/dev/null
  3957. mkdir .libs 2>/dev/null
  3958. if test -d .libs; then
  3959. objdir=.libs
  3960. else
  3961. # MS-DOS does not allow filenames that begin with a dot.
  3962. objdir=_libs
  3963. fi
  3964. rmdir .libs 2>/dev/null
  3965. echo "$as_me:$LINENO: result: $objdir" >&5
  3966. echo "${ECHO_T}$objdir" >&6
  3967. ##
  3968. ## END FIXME
  3969. ## FIXME: this should be a separate macro
  3970. ##
  3971. # Check whether --with-pic or --without-pic was given.
  3972. if test "${with_pic+set}" = set; then
  3973. withval="$with_pic"
  3974. pic_mode="$withval"
  3975. else
  3976. pic_mode=default
  3977. fi;
  3978. test -z "$pic_mode" && pic_mode=default
  3979. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  3980. # in isolation, and that seeing it set (from the cache) indicates that
  3981. # the associated values are set (in the cache) correctly too.
  3982. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  3983. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  3984. if test "${lt_cv_prog_cc_pic+set}" = set; then
  3985. echo $ECHO_N "(cached) $ECHO_C" >&6
  3986. else
  3987. lt_cv_prog_cc_pic=
  3988. lt_cv_prog_cc_shlib=
  3989. lt_cv_prog_cc_wl=
  3990. lt_cv_prog_cc_static=
  3991. lt_cv_prog_cc_no_builtin=
  3992. lt_cv_prog_cc_can_build_shared=$can_build_shared
  3993. if test "$GCC" = yes; then
  3994. lt_cv_prog_cc_wl='-Wl,'
  3995. lt_cv_prog_cc_static='-static'
  3996. case "$host_os" in
  3997. beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  3998. # PIC is the default for these OSes.
  3999. ;;
  4000. aix*)
  4001. # Below there is a dirty hack to force normal static linking with -ldl
  4002. # The problem is because libdl dynamically linked with both libc and
  4003. # libC (AIX C++ library), which obviously doesn't included in libraries
  4004. # list by gcc. This cause undefined symbols with -static flags.
  4005. # This hack allows C programs to be linked with "-static -ldl", but
  4006. # we not sure about C++ programs.
  4007. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  4008. ;;
  4009. cygwin* | mingw* | pw32* | os2*)
  4010. # This hack is so that the source file can tell whether it is being
  4011. # built for inclusion in a dll (and should export symbols for example).
  4012. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4013. ;;
  4014. amigaos*)
  4015. # FIXME: we need at least 68020 code to build shared libraries, but
  4016. # adding the `-m68020' flag to GCC prevents building anything better,
  4017. # like `-m68040'.
  4018. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  4019. ;;
  4020. sysv4*MP*)
  4021. if test -d /usr/nec; then
  4022. lt_cv_prog_cc_pic=-Kconform_pic
  4023. fi
  4024. ;;
  4025. *)
  4026. lt_cv_prog_cc_pic='-fPIC'
  4027. ;;
  4028. esac
  4029. else
  4030. # PORTME Check for PIC flags for the system compiler.
  4031. case "$host_os" in
  4032. aix3* | aix4*)
  4033. # All AIX code is PIC.
  4034. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  4035. ;;
  4036. hpux9* | hpux10* | hpux11*)
  4037. # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  4038. lt_cv_prog_cc_wl='-Wl,'
  4039. lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  4040. lt_cv_prog_cc_pic='+Z'
  4041. ;;
  4042. irix5* | irix6*)
  4043. lt_cv_prog_cc_wl='-Wl,'
  4044. lt_cv_prog_cc_static='-non_shared'
  4045. # PIC (with -KPIC) is the default.
  4046. ;;
  4047. cygwin* | mingw* | pw32* | os2*)
  4048. # This hack is so that the source file can tell whether it is being
  4049. # built for inclusion in a dll (and should export symbols for example).
  4050. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4051. ;;
  4052. newsos6)
  4053. lt_cv_prog_cc_pic='-KPIC'
  4054. lt_cv_prog_cc_static='-Bstatic'
  4055. ;;
  4056. osf3* | osf4* | osf5*)
  4057. # All OSF/1 code is PIC.
  4058. lt_cv_prog_cc_wl='-Wl,'
  4059. lt_cv_prog_cc_static='-non_shared'
  4060. ;;
  4061. sco3.2v5*)
  4062. lt_cv_prog_cc_pic='-Kpic'
  4063. lt_cv_prog_cc_static='-dn'
  4064. lt_cv_prog_cc_shlib='-belf'
  4065. ;;
  4066. solaris*)
  4067. lt_cv_prog_cc_pic='-KPIC'
  4068. lt_cv_prog_cc_static='-Bstatic'
  4069. lt_cv_prog_cc_wl='-Wl,'
  4070. ;;
  4071. sunos4*)
  4072. lt_cv_prog_cc_pic='-PIC'
  4073. lt_cv_prog_cc_static='-Bstatic'
  4074. lt_cv_prog_cc_wl='-Qoption ld '
  4075. ;;
  4076. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4077. lt_cv_prog_cc_pic='-KPIC'
  4078. lt_cv_prog_cc_static='-Bstatic'
  4079. if test "x$host_vendor" = xsni; then
  4080. lt_cv_prog_cc_wl='-LD'
  4081. else
  4082. lt_cv_prog_cc_wl='-Wl,'
  4083. fi
  4084. ;;
  4085. uts4*)
  4086. lt_cv_prog_cc_pic='-pic'
  4087. lt_cv_prog_cc_static='-Bstatic'
  4088. ;;
  4089. sysv4*MP*)
  4090. if test -d /usr/nec ;then
  4091. lt_cv_prog_cc_pic='-Kconform_pic'
  4092. lt_cv_prog_cc_static='-Bstatic'
  4093. fi
  4094. ;;
  4095. *)
  4096. lt_cv_prog_cc_can_build_shared=no
  4097. ;;
  4098. esac
  4099. fi
  4100. fi
  4101. if test -z "$lt_cv_prog_cc_pic"; then
  4102. echo "$as_me:$LINENO: result: none" >&5
  4103. echo "${ECHO_T}none" >&6
  4104. else
  4105. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  4106. echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  4107. # Check to make sure the pic_flag actually works.
  4108. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  4109. echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  4110. if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  4111. echo $ECHO_N "(cached) $ECHO_C" >&6
  4112. else
  4113. save_CFLAGS="$CFLAGS"
  4114. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  4115. cat >conftest.$ac_ext <<_ACEOF
  4116. #line $LINENO "configure"
  4117. /* confdefs.h. */
  4118. _ACEOF
  4119. cat confdefs.h >>conftest.$ac_ext
  4120. cat >>conftest.$ac_ext <<_ACEOF
  4121. /* end confdefs.h. */
  4122. int
  4123. main ()
  4124. {
  4125. ;
  4126. return 0;
  4127. }
  4128. _ACEOF
  4129. rm -f conftest.$ac_objext
  4130. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4131. (eval $ac_compile) 2>&5
  4132. ac_status=$?
  4133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4134. (exit $ac_status); } &&
  4135. { ac_try='test -s conftest.$ac_objext'
  4136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4137. (eval $ac_try) 2>&5
  4138. ac_status=$?
  4139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4140. (exit $ac_status); }; }; then
  4141. case "$host_os" in
  4142. hpux9* | hpux10* | hpux11*)
  4143. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  4144. # they create non-PIC objects. So, if there were any warnings, we
  4145. # assume that PIC is not supported.
  4146. if test -s conftest.err; then
  4147. lt_cv_prog_cc_pic_works=no
  4148. else
  4149. lt_cv_prog_cc_pic_works=yes
  4150. fi
  4151. ;;
  4152. *)
  4153. lt_cv_prog_cc_pic_works=yes
  4154. ;;
  4155. esac
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. lt_cv_prog_cc_pic_works=no
  4160. fi
  4161. rm -f conftest.$ac_objext conftest.$ac_ext
  4162. CFLAGS="$save_CFLAGS"
  4163. fi
  4164. if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  4165. lt_cv_prog_cc_pic=
  4166. lt_cv_prog_cc_can_build_shared=no
  4167. else
  4168. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  4169. fi
  4170. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  4171. echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  4172. fi
  4173. ##
  4174. ## END FIXME
  4175. # Check for any special shared library compilation flags.
  4176. if test -n "$lt_cv_prog_cc_shlib"; then
  4177. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  4178. echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  4179. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  4180. else
  4181. { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  4182. echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  4183. lt_cv_prog_cc_can_build_shared=no
  4184. fi
  4185. fi
  4186. ## FIXME: this should be a separate macro
  4187. ##
  4188. echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  4189. echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  4190. if test "${lt_cv_prog_cc_static_works+set}" = set; then
  4191. echo $ECHO_N "(cached) $ECHO_C" >&6
  4192. else
  4193. lt_cv_prog_cc_static_works=no
  4194. save_LDFLAGS="$LDFLAGS"
  4195. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  4196. cat >conftest.$ac_ext <<_ACEOF
  4197. #line $LINENO "configure"
  4198. /* confdefs.h. */
  4199. _ACEOF
  4200. cat confdefs.h >>conftest.$ac_ext
  4201. cat >>conftest.$ac_ext <<_ACEOF
  4202. /* end confdefs.h. */
  4203. int
  4204. main ()
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. rm -f conftest.$ac_objext conftest$ac_exeext
  4211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4212. (eval $ac_link) 2>&5
  4213. ac_status=$?
  4214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4215. (exit $ac_status); } &&
  4216. { ac_try='test -s conftest$ac_exeext'
  4217. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4218. (eval $ac_try) 2>&5
  4219. ac_status=$?
  4220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4221. (exit $ac_status); }; }; then
  4222. lt_cv_prog_cc_static_works=yes
  4223. else
  4224. echo "$as_me: failed program was:" >&5
  4225. sed 's/^/| /' conftest.$ac_ext >&5
  4226. fi
  4227. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4228. LDFLAGS="$save_LDFLAGS"
  4229. fi
  4230. # Belt *and* braces to stop my trousers falling down:
  4231. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  4232. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  4233. echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  4234. pic_flag="$lt_cv_prog_cc_pic"
  4235. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  4236. wl="$lt_cv_prog_cc_wl"
  4237. link_static_flag="$lt_cv_prog_cc_static"
  4238. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  4239. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  4240. ##
  4241. ## END FIXME
  4242. ## FIXME: this should be a separate macro
  4243. ##
  4244. # Check to see if options -o and -c are simultaneously supported by compiler
  4245. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  4246. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  4247. $rm -r conftest 2>/dev/null
  4248. mkdir conftest
  4249. cd conftest
  4250. echo "int some_variable = 0;" > conftest.$ac_ext
  4251. mkdir out
  4252. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  4253. # that will create temporary files in the current directory regardless of
  4254. # the output directory. Thus, making CWD read-only will cause this test
  4255. # to fail, enabling locking or at least warning the user not to do parallel
  4256. # builds.
  4257. chmod -w .
  4258. save_CFLAGS="$CFLAGS"
  4259. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  4260. compiler_c_o=no
  4261. if { (eval echo configure:4742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  4262. # The compiler can only warn and ignore the option if not recognized
  4263. # So say no if there are warnings
  4264. if test -s out/conftest.err; then
  4265. compiler_c_o=no
  4266. else
  4267. compiler_c_o=yes
  4268. fi
  4269. else
  4270. # Append any errors to the config.log.
  4271. cat out/conftest.err 1>&5
  4272. compiler_c_o=no
  4273. fi
  4274. echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  4275. echo "${ECHO_T}$compiler_c_o" >&6
  4276. CFLAGS="$save_CFLAGS"
  4277. chmod u+w .
  4278. $rm conftest* out/*
  4279. rmdir out
  4280. cd ..
  4281. rmdir conftest
  4282. $rm -r conftest 2>/dev/null
  4283. if test x"$compiler_c_o" = x"yes"; then
  4284. # Check to see if we can write to a .lo
  4285. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  4286. echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  4287. compiler_o_lo=no
  4288. save_CFLAGS="$CFLAGS"
  4289. CFLAGS="$CFLAGS -c -o conftest.lo"
  4290. cat >conftest.$ac_ext <<_ACEOF
  4291. #line $LINENO "configure"
  4292. /* confdefs.h. */
  4293. _ACEOF
  4294. cat confdefs.h >>conftest.$ac_ext
  4295. cat >>conftest.$ac_ext <<_ACEOF
  4296. /* end confdefs.h. */
  4297. int
  4298. main ()
  4299. {
  4300. int some_variable = 0;
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. rm -f conftest.$ac_objext
  4306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4307. (eval $ac_compile) 2>&5
  4308. ac_status=$?
  4309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4310. (exit $ac_status); } &&
  4311. { ac_try='test -s conftest.$ac_objext'
  4312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4313. (eval $ac_try) 2>&5
  4314. ac_status=$?
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); }; }; then
  4317. # The compiler can only warn and ignore the option if not recognized
  4318. # So say no if there are warnings
  4319. if test -s conftest.err; then
  4320. compiler_o_lo=no
  4321. else
  4322. compiler_o_lo=yes
  4323. fi
  4324. else
  4325. echo "$as_me: failed program was:" >&5
  4326. sed 's/^/| /' conftest.$ac_ext >&5
  4327. fi
  4328. rm -f conftest.$ac_objext conftest.$ac_ext
  4329. echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  4330. echo "${ECHO_T}$compiler_c_o" >&6
  4331. CFLAGS="$save_CFLAGS"
  4332. else
  4333. compiler_o_lo=no
  4334. fi
  4335. ##
  4336. ## END FIXME
  4337. ## FIXME: this should be a separate macro
  4338. ##
  4339. # Check to see if we can do hard links to lock some files if needed
  4340. hard_links="nottested"
  4341. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  4342. # do not overwrite the value of need_locks provided by the user
  4343. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  4344. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  4345. hard_links=yes
  4346. $rm conftest*
  4347. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4348. touch conftest.a
  4349. ln conftest.a conftest.b 2>&5 || hard_links=no
  4350. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4351. echo "$as_me:$LINENO: result: $hard_links" >&5
  4352. echo "${ECHO_T}$hard_links" >&6
  4353. if test "$hard_links" = no; then
  4354. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  4355. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  4356. need_locks=warn
  4357. fi
  4358. else
  4359. need_locks=no
  4360. fi
  4361. ##
  4362. ## END FIXME
  4363. ## FIXME: this should be a separate macro
  4364. ##
  4365. if test "$GCC" = yes; then
  4366. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  4367. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4368. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  4369. echo "int some_variable = 0;" > conftest.$ac_ext
  4370. save_CFLAGS="$CFLAGS"
  4371. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  4372. compiler_rtti_exceptions=no
  4373. cat >conftest.$ac_ext <<_ACEOF
  4374. #line $LINENO "configure"
  4375. /* confdefs.h. */
  4376. _ACEOF
  4377. cat confdefs.h >>conftest.$ac_ext
  4378. cat >>conftest.$ac_ext <<_ACEOF
  4379. /* end confdefs.h. */
  4380. int
  4381. main ()
  4382. {
  4383. int some_variable = 0;
  4384. ;
  4385. return 0;
  4386. }
  4387. _ACEOF
  4388. rm -f conftest.$ac_objext
  4389. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4390. (eval $ac_compile) 2>&5
  4391. ac_status=$?
  4392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4393. (exit $ac_status); } &&
  4394. { ac_try='test -s conftest.$ac_objext'
  4395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4396. (eval $ac_try) 2>&5
  4397. ac_status=$?
  4398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4399. (exit $ac_status); }; }; then
  4400. # The compiler can only warn and ignore the option if not recognized
  4401. # So say no if there are warnings
  4402. if test -s conftest.err; then
  4403. compiler_rtti_exceptions=no
  4404. else
  4405. compiler_rtti_exceptions=yes
  4406. fi
  4407. else
  4408. echo "$as_me: failed program was:" >&5
  4409. sed 's/^/| /' conftest.$ac_ext >&5
  4410. fi
  4411. rm -f conftest.$ac_objext conftest.$ac_ext
  4412. CFLAGS="$save_CFLAGS"
  4413. echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  4414. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  4415. if test "$compiler_rtti_exceptions" = "yes"; then
  4416. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  4417. else
  4418. no_builtin_flag=' -fno-builtin'
  4419. fi
  4420. fi
  4421. ##
  4422. ## END FIXME
  4423. ## FIXME: this should be a separate macro
  4424. ##
  4425. # See if the linker supports building shared libraries.
  4426. echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  4427. echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  4428. allow_undefined_flag=
  4429. no_undefined_flag=
  4430. need_lib_prefix=unknown
  4431. need_version=unknown
  4432. # when you set need_version to no, make sure it does not cause -set_version
  4433. # flags to be left without arguments
  4434. archive_cmds=
  4435. archive_expsym_cmds=
  4436. old_archive_from_new_cmds=
  4437. old_archive_from_expsyms_cmds=
  4438. export_dynamic_flag_spec=
  4439. whole_archive_flag_spec=
  4440. thread_safe_flag_spec=
  4441. hardcode_into_libs=no
  4442. hardcode_libdir_flag_spec=
  4443. hardcode_libdir_separator=
  4444. hardcode_direct=no
  4445. hardcode_minus_L=no
  4446. hardcode_shlibpath_var=unsupported
  4447. runpath_var=
  4448. link_all_deplibs=unknown
  4449. always_export_symbols=no
  4450. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4451. # include_expsyms should be a list of space-separated symbols to be *always*
  4452. # included in the symbol list
  4453. include_expsyms=
  4454. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  4455. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4456. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4457. # as well as any symbol that contains `d'.
  4458. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  4459. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4460. # platforms (ab)use it in PIC code, but their linkers get confused if
  4461. # the symbol is explicitly referenced. Since portable code cannot
  4462. # rely on this symbol name, it's probably fine to never include it in
  4463. # preloaded symbol tables.
  4464. extract_expsyms_cmds=
  4465. case "$host_os" in
  4466. cygwin* | mingw* | pw32* )
  4467. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4468. # When not using gcc, we currently assume that we are using
  4469. # Microsoft Visual C++.
  4470. if test "$GCC" != yes; then
  4471. with_gnu_ld=no
  4472. fi
  4473. ;;
  4474. esac
  4475. ld_shlibs=yes
  4476. if test "$with_gnu_ld" = yes; then
  4477. # If archive_cmds runs LD, not CC, wlarc should be empty
  4478. wlarc='${wl}'
  4479. # See if GNU ld supports shared libraries.
  4480. case "$host_os" in
  4481. aix3* | aix4*)
  4482. # On AIX, the GNU linker is very broken
  4483. ld_shlibs=no
  4484. cat <<EOF 1>&2
  4485. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4486. *** to be unable to reliably create shared libraries on AIX.
  4487. *** Therefore, libtool is disabling shared libraries support. If you
  4488. *** really care for shared libraries, you may want to modify your PATH
  4489. *** so that a non-GNU linker is found, and then restart.
  4490. EOF
  4491. ;;
  4492. amigaos*)
  4493. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4494. hardcode_libdir_flag_spec='-L$libdir'
  4495. hardcode_minus_L=yes
  4496. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4497. # that the semantics of dynamic libraries on AmigaOS, at least up
  4498. # to version 4, is to share data among multiple programs linked
  4499. # with the same dynamic library. Since this doesn't match the
  4500. # behavior of shared libraries on other platforms, we can use
  4501. # them.
  4502. ld_shlibs=no
  4503. ;;
  4504. beos*)
  4505. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4506. allow_undefined_flag=unsupported
  4507. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4508. # support --undefined. This deserves some investigation. FIXME
  4509. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4510. else
  4511. ld_shlibs=no
  4512. fi
  4513. ;;
  4514. cygwin* | mingw* | pw32*)
  4515. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4516. # no search path for DLLs.
  4517. hardcode_libdir_flag_spec='-L$libdir'
  4518. allow_undefined_flag=unsupported
  4519. always_export_symbols=yes
  4520. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  4521. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  4522. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  4523. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  4524. else $CC -o impgen impgen.c ; fi)~
  4525. $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
  4526. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  4527. # cygwin and mingw dlls have different entry points and sets of symbols
  4528. # to exclude.
  4529. # FIXME: what about values for MSVC?
  4530. dll_entry=__cygwin_dll_entry@12
  4531. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  4532. case "$host_os" in
  4533. mingw*)
  4534. # mingw values
  4535. dll_entry=_DllMainCRTStartup@12
  4536. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  4537. ;;
  4538. esac
  4539. # mingw and cygwin differ, and it's simplest to just exclude the union
  4540. # of the two symbol sets.
  4541. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  4542. # recent cygwin and mingw systems supply a stub DllMain which the user
  4543. # can override, but on older systems we have to supply one (in ltdll.c)
  4544. if test "x$lt_cv_need_dllmain" = "xyes"; then
  4545. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  4546. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
  4547. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  4548. else
  4549. ltdll_obj=
  4550. ltdll_cmds=
  4551. fi
  4552. # Extract the symbol export list from an `--export-all' def file,
  4553. # then regenerate the def file from the symbol export list, so that
  4554. # the compiled dll only exports the symbol export list.
  4555. # Be careful not to strip the DATA tag left be newer dlltools.
  4556. export_symbols_cmds="$ltdll_cmds"'
  4557. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  4558. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  4559. # If DATA tags from a recent dlltool are present, honour them!
  4560. archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
  4561. _lt_hint=1;
  4562. cat $export_symbols | while read symbol; do
  4563. set dummy \$symbol;
  4564. case \$# in
  4565. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  4566. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  4567. esac;
  4568. _lt_hint=`expr 1 + \$_lt_hint`;
  4569. done~
  4570. '"$ltdll_cmds"'
  4571. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  4572. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  4573. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  4574. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  4575. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  4576. ;;
  4577. netbsd*)
  4578. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4579. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4580. wlarc=
  4581. else
  4582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4583. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4584. fi
  4585. ;;
  4586. solaris* | sysv5*)
  4587. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  4588. ld_shlibs=no
  4589. cat <<EOF 1>&2
  4590. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4591. *** create shared libraries on Solaris systems. Therefore, libtool
  4592. *** is disabling shared libraries support. We urge you to upgrade GNU
  4593. *** binutils to release 2.9.1 or newer. Another option is to modify
  4594. *** your PATH or compiler configuration so that the native linker is
  4595. *** used, and then restart.
  4596. EOF
  4597. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4598. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4599. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4600. else
  4601. ld_shlibs=no
  4602. fi
  4603. ;;
  4604. sunos4*)
  4605. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4606. wlarc=
  4607. hardcode_direct=yes
  4608. hardcode_shlibpath_var=no
  4609. ;;
  4610. *)
  4611. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4613. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4614. else
  4615. ld_shlibs=no
  4616. fi
  4617. ;;
  4618. esac
  4619. if test "$ld_shlibs" = yes; then
  4620. runpath_var=LD_RUN_PATH
  4621. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4622. export_dynamic_flag_spec='${wl}--export-dynamic'
  4623. case $host_os in
  4624. cygwin* | mingw* | pw32*)
  4625. # dlltool doesn't understand --whole-archive et. al.
  4626. whole_archive_flag_spec=
  4627. ;;
  4628. *)
  4629. # ancient GNU ld didn't support --whole-archive et. al.
  4630. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4631. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4632. else
  4633. whole_archive_flag_spec=
  4634. fi
  4635. ;;
  4636. esac
  4637. fi
  4638. else
  4639. # PORTME fill in a description of your system's linker (not GNU ld)
  4640. case "$host_os" in
  4641. aix3*)
  4642. allow_undefined_flag=unsupported
  4643. always_export_symbols=yes
  4644. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4645. # Note: this linker hardcodes the directories in LIBPATH if there
  4646. # are no directories specified by -L.
  4647. hardcode_minus_L=yes
  4648. if test "$GCC" = yes && test -z "$link_static_flag"; then
  4649. # Neither direct hardcoding nor static linking is supported with a
  4650. # broken collect2.
  4651. hardcode_direct=unsupported
  4652. fi
  4653. ;;
  4654. aix4*)
  4655. hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
  4656. hardcode_libdir_separator=':'
  4657. if test "$GCC" = yes; then
  4658. collect2name=`${CC} -print-prog-name=collect2`
  4659. if test -f "$collect2name" && \
  4660. strings "$collect2name" | grep resolve_lib_name >/dev/null
  4661. then
  4662. # We have reworked collect2
  4663. hardcode_direct=yes
  4664. else
  4665. # We have old collect2
  4666. hardcode_direct=unsupported
  4667. # It fails to find uninstalled libraries when the uninstalled
  4668. # path is not listed in the libpath. Setting hardcode_minus_L
  4669. # to unsupported forces relinking
  4670. hardcode_minus_L=yes
  4671. hardcode_libdir_flag_spec='-L$libdir'
  4672. hardcode_libdir_separator=
  4673. fi
  4674. shared_flag='-shared'
  4675. else
  4676. shared_flag='${wl}-bM:SRE'
  4677. hardcode_direct=yes
  4678. fi
  4679. allow_undefined_flag=' ${wl}-berok'
  4680. archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
  4681. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
  4682. case "$host_os" in aix4.[01]|aix4.[01].*)
  4683. # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
  4684. always_export_symbols=yes ;;
  4685. esac
  4686. # We don't want to build shared libraries on unknown CPU types.
  4687. case $host_cpu in
  4688. powerpc | rs6000) ;;
  4689. *) ld_shlibs=no ;;
  4690. esac
  4691. ;;
  4692. amigaos*)
  4693. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4694. hardcode_libdir_flag_spec='-L$libdir'
  4695. hardcode_minus_L=yes
  4696. # see comment about different semantics on the GNU ld section
  4697. ld_shlibs=no
  4698. ;;
  4699. cygwin* | mingw* | pw32*)
  4700. # When not using gcc, we currently assume that we are using
  4701. # Microsoft Visual C++.
  4702. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4703. # no search path for DLLs.
  4704. hardcode_libdir_flag_spec=' '
  4705. allow_undefined_flag=unsupported
  4706. # Tell ltmain to make .lib files, not .a files.
  4707. libext=lib
  4708. # FIXME: Setting linknames here is a bad hack.
  4709. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4710. # The linker will automatically build a .lib file if we build a DLL.
  4711. old_archive_from_new_cmds='true'
  4712. # FIXME: Should let the user specify the lib program.
  4713. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4714. fix_srcfile_path='`cygpath -w "$srcfile"`'
  4715. ;;
  4716. darwin* | rhapsody*)
  4717. allow_undefined_flag='-undefined warning'
  4718. archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
  4719. echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
  4720. archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  4721. ## What we need is to hardcode the path to the library, not the search path
  4722. #hardcode_direct=yes
  4723. #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
  4724. hardcode_shlibpath_var=no
  4725. whole_archive_flag_spec='-all_load'
  4726. ;;
  4727. freebsd1*)
  4728. ld_shlibs=no
  4729. ;;
  4730. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4731. # support. Future versions do this automatically, but an explicit c++rt0.o
  4732. # does not break anything, and helps significantly (at the cost of a little
  4733. # extra space).
  4734. freebsd2.2*)
  4735. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4736. hardcode_libdir_flag_spec='-R$libdir'
  4737. hardcode_direct=yes
  4738. hardcode_shlibpath_var=no
  4739. ;;
  4740. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4741. freebsd2*)
  4742. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4743. hardcode_direct=yes
  4744. hardcode_minus_L=yes
  4745. hardcode_shlibpath_var=no
  4746. ;;
  4747. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4748. freebsd*)
  4749. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4750. hardcode_libdir_flag_spec='-R$libdir'
  4751. hardcode_direct=yes
  4752. hardcode_shlibpath_var=no
  4753. ;;
  4754. hpux9* | hpux10* | hpux11*)
  4755. case "$host_os" in
  4756. hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  4757. *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  4758. esac
  4759. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  4760. hardcode_libdir_separator=:
  4761. hardcode_direct=yes
  4762. hardcode_minus_L=yes # Not in the search PATH, but as the default
  4763. # location of the library.
  4764. export_dynamic_flag_spec='${wl}-E'
  4765. ;;
  4766. irix5* | irix6*)
  4767. if test "$GCC" = yes; then
  4768. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4769. else
  4770. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4771. fi
  4772. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4773. hardcode_libdir_separator=:
  4774. link_all_deplibs=yes
  4775. ;;
  4776. netbsd*)
  4777. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4778. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4779. else
  4780. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4781. fi
  4782. hardcode_libdir_flag_spec='-R$libdir'
  4783. hardcode_direct=yes
  4784. hardcode_shlibpath_var=no
  4785. ;;
  4786. newsos6)
  4787. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4788. hardcode_direct=yes
  4789. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4790. hardcode_libdir_separator=:
  4791. hardcode_shlibpath_var=no
  4792. ;;
  4793. openbsd*)
  4794. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4795. hardcode_libdir_flag_spec='-R$libdir'
  4796. hardcode_direct=yes
  4797. hardcode_shlibpath_var=no
  4798. ;;
  4799. os2*)
  4800. hardcode_libdir_flag_spec='-L$libdir'
  4801. hardcode_minus_L=yes
  4802. allow_undefined_flag=unsupported
  4803. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  4804. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4805. ;;
  4806. osf3*)
  4807. if test "$GCC" = yes; then
  4808. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4809. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4810. else
  4811. allow_undefined_flag=' -expect_unresolved \*'
  4812. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4813. fi
  4814. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4815. hardcode_libdir_separator=:
  4816. ;;
  4817. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4818. if test "$GCC" = yes; then
  4819. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4820. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4821. else
  4822. allow_undefined_flag=' -expect_unresolved \*'
  4823. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4824. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  4825. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  4826. fi
  4827. #Both c and cxx compiler support -rpath directly
  4828. hardcode_libdir_flag_spec='-rpath $libdir'
  4829. hardcode_libdir_separator=:
  4830. ;;
  4831. sco3.2v5*)
  4832. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4833. hardcode_shlibpath_var=no
  4834. runpath_var=LD_RUN_PATH
  4835. hardcode_runpath_var=yes
  4836. ;;
  4837. solaris*)
  4838. no_undefined_flag=' -z text'
  4839. # $CC -shared without GNU ld will not create a library from C++
  4840. # object files and a static libstdc++, better avoid it by now
  4841. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4842. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4843. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4844. hardcode_libdir_flag_spec='-R$libdir'
  4845. hardcode_shlibpath_var=no
  4846. case "$host_os" in
  4847. solaris2.[0-5] | solaris2.[0-5].*) ;;
  4848. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  4849. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  4850. esac
  4851. link_all_deplibs=yes
  4852. ;;
  4853. sunos4*)
  4854. if test "x$host_vendor" = xsequent; then
  4855. # Use $CC to link under sequent, because it throws in some extra .o
  4856. # files that make .init and .fini sections work.
  4857. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4858. else
  4859. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4860. fi
  4861. hardcode_libdir_flag_spec='-L$libdir'
  4862. hardcode_direct=yes
  4863. hardcode_minus_L=yes
  4864. hardcode_shlibpath_var=no
  4865. ;;
  4866. sysv4)
  4867. if test "x$host_vendor" = xsno; then
  4868. archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
  4869. hardcode_direct=yes # is this really true???
  4870. else
  4871. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4872. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  4873. fi
  4874. runpath_var='LD_RUN_PATH'
  4875. hardcode_shlibpath_var=no
  4876. ;;
  4877. sysv4.3*)
  4878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4879. hardcode_shlibpath_var=no
  4880. export_dynamic_flag_spec='-Bexport'
  4881. ;;
  4882. sysv5*)
  4883. no_undefined_flag=' -z text'
  4884. # $CC -shared without GNU ld will not create a library from C++
  4885. # object files and a static libstdc++, better avoid it by now
  4886. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4887. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4888. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4889. hardcode_libdir_flag_spec=
  4890. hardcode_shlibpath_var=no
  4891. runpath_var='LD_RUN_PATH'
  4892. ;;
  4893. uts4*)
  4894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4895. hardcode_libdir_flag_spec='-L$libdir'
  4896. hardcode_shlibpath_var=no
  4897. ;;
  4898. dgux*)
  4899. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4900. hardcode_libdir_flag_spec='-L$libdir'
  4901. hardcode_shlibpath_var=no
  4902. ;;
  4903. sysv4*MP*)
  4904. if test -d /usr/nec; then
  4905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4906. hardcode_shlibpath_var=no
  4907. runpath_var=LD_RUN_PATH
  4908. hardcode_runpath_var=yes
  4909. ld_shlibs=yes
  4910. fi
  4911. ;;
  4912. sysv4.2uw2*)
  4913. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4914. hardcode_direct=yes
  4915. hardcode_minus_L=no
  4916. hardcode_shlibpath_var=no
  4917. hardcode_runpath_var=yes
  4918. runpath_var=LD_RUN_PATH
  4919. ;;
  4920. unixware7*)
  4921. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4922. runpath_var='LD_RUN_PATH'
  4923. hardcode_shlibpath_var=no
  4924. ;;
  4925. *)
  4926. ld_shlibs=no
  4927. ;;
  4928. esac
  4929. fi
  4930. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  4931. echo "${ECHO_T}$ld_shlibs" >&6
  4932. test "$ld_shlibs" = no && can_build_shared=no
  4933. ##
  4934. ## END FIXME
  4935. ## FIXME: this should be a separate macro
  4936. ##
  4937. # Check hardcoding attributes.
  4938. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  4939. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  4940. hardcode_action=
  4941. if test -n "$hardcode_libdir_flag_spec" || \
  4942. test -n "$runpath_var"; then
  4943. # We can hardcode non-existant directories.
  4944. if test "$hardcode_direct" != no &&
  4945. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  4946. # have to relink, otherwise we might link with an installed library
  4947. # when we should be linking with a yet-to-be-installed one
  4948. ## test "$hardcode_shlibpath_var" != no &&
  4949. test "$hardcode_minus_L" != no; then
  4950. # Linking always hardcodes the temporary library directory.
  4951. hardcode_action=relink
  4952. else
  4953. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  4954. hardcode_action=immediate
  4955. fi
  4956. else
  4957. # We cannot hardcode anything, or else we can only hardcode existing
  4958. # directories.
  4959. hardcode_action=unsupported
  4960. fi
  4961. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  4962. echo "${ECHO_T}$hardcode_action" >&6
  4963. ##
  4964. ## END FIXME
  4965. ## FIXME: this should be a separate macro
  4966. ##
  4967. striplib=
  4968. old_striplib=
  4969. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  4970. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  4971. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  4972. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  4973. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  4974. echo "$as_me:$LINENO: result: yes" >&5
  4975. echo "${ECHO_T}yes" >&6
  4976. else
  4977. echo "$as_me:$LINENO: result: no" >&5
  4978. echo "${ECHO_T}no" >&6
  4979. fi
  4980. ##
  4981. ## END FIXME
  4982. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4983. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4984. ## FIXME: this should be a separate macro
  4985. ##
  4986. # PORTME Fill in your ld.so characteristics
  4987. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  4988. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  4989. library_names_spec=
  4990. libname_spec='lib$name'
  4991. soname_spec=
  4992. postinstall_cmds=
  4993. postuninstall_cmds=
  4994. finish_cmds=
  4995. finish_eval=
  4996. shlibpath_var=
  4997. shlibpath_overrides_runpath=unknown
  4998. version_type=none
  4999. dynamic_linker="$host_os ld.so"
  5000. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5001. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5002. case "$host_os" in
  5003. aix3*)
  5004. version_type=linux
  5005. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5006. shlibpath_var=LIBPATH
  5007. # AIX has no versioning support, so we append a major version to the name.
  5008. soname_spec='${libname}${release}.so$major'
  5009. ;;
  5010. aix4*)
  5011. version_type=linux
  5012. # AIX has no versioning support, so currently we can not hardcode correct
  5013. # soname into executable. Probably we can add versioning support to
  5014. # collect2, so additional links can be useful in future.
  5015. # We preserve .a as extension for shared libraries though AIX4.2
  5016. # and later linker supports .so
  5017. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
  5018. shlibpath_var=LIBPATH
  5019. ;;
  5020. amigaos*)
  5021. library_names_spec='$libname.ixlibrary $libname.a'
  5022. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5023. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  5024. ;;
  5025. beos*)
  5026. library_names_spec='${libname}.so'
  5027. dynamic_linker="$host_os ld.so"
  5028. shlibpath_var=LIBRARY_PATH
  5029. ;;
  5030. bsdi4*)
  5031. version_type=linux
  5032. need_version=no
  5033. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5034. soname_spec='${libname}${release}.so$major'
  5035. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5036. shlibpath_var=LD_LIBRARY_PATH
  5037. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5038. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5039. export_dynamic_flag_spec=-rdynamic
  5040. # the default ld.so.conf also contains /usr/contrib/lib and
  5041. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5042. # libtool to hard-code these into programs
  5043. ;;
  5044. cygwin* | mingw* | pw32*)
  5045. version_type=windows
  5046. need_version=no
  5047. need_lib_prefix=no
  5048. if test "$GCC" = yes; then
  5049. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5050. else
  5051. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  5052. fi
  5053. dynamic_linker='Win32 ld.exe'
  5054. # FIXME: first we should search . and the directory the executable is in
  5055. shlibpath_var=PATH
  5056. ;;
  5057. darwin* | rhapsody*)
  5058. need_lib_prefix=no
  5059. need_version=no
  5060. library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
  5061. shlibpath_overrides_runpath=yes
  5062. shlibpath_var=DYLD_LIBRARY_PATH
  5063. postinstall_cmds='chmod +x $lib'
  5064. ;;
  5065. freebsd1*)
  5066. dynamic_linker=no
  5067. ;;
  5068. freebsd*)
  5069. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5070. version_type=freebsd-$objformat
  5071. case "$version_type" in
  5072. freebsd-elf*)
  5073. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5074. need_version=no
  5075. need_lib_prefix=no
  5076. ;;
  5077. freebsd-*)
  5078. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5079. need_version=yes
  5080. ;;
  5081. esac
  5082. shlibpath_var=LD_LIBRARY_PATH
  5083. case "$host_os" in
  5084. freebsd2*)
  5085. shlibpath_overrides_runpath=yes
  5086. ;;
  5087. *)
  5088. shlibpath_overrides_runpath=no
  5089. hardcode_into_libs=yes
  5090. ;;
  5091. esac
  5092. ;;
  5093. gnu*)
  5094. version_type=linux
  5095. need_lib_prefix=no
  5096. need_version=no
  5097. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5098. soname_spec='${libname}${release}.so$major'
  5099. shlibpath_var=LD_LIBRARY_PATH
  5100. hardcode_into_libs=yes
  5101. ;;
  5102. hpux9* | hpux10* | hpux11*)
  5103. # Give a soname corresponding to the major version so that dld.sl refuses to
  5104. # link against other versions.
  5105. dynamic_linker="$host_os dld.sl"
  5106. version_type=sunos
  5107. need_lib_prefix=no
  5108. need_version=no
  5109. shlibpath_var=SHLIB_PATH
  5110. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5111. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5112. soname_spec='${libname}${release}.sl$major'
  5113. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5114. postinstall_cmds='chmod 555 $lib'
  5115. ;;
  5116. irix5* | irix6*)
  5117. version_type=irix
  5118. need_lib_prefix=no
  5119. need_version=no
  5120. soname_spec='${libname}${release}.so$major'
  5121. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5122. case "$host_os" in
  5123. irix5*)
  5124. libsuff= shlibsuff=
  5125. ;;
  5126. *)
  5127. case "$LD" in # libtool.m4 will add one of these switches to LD
  5128. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5129. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5130. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5131. *) libsuff= shlibsuff= libmagic=never-match;;
  5132. esac
  5133. ;;
  5134. esac
  5135. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5136. shlibpath_overrides_runpath=no
  5137. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5138. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5139. ;;
  5140. # No shared lib support for Linux oldld, aout, or coff.
  5141. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5142. dynamic_linker=no
  5143. ;;
  5144. # This must be Linux ELF.
  5145. linux-gnu*)
  5146. version_type=linux
  5147. need_lib_prefix=no
  5148. need_version=no
  5149. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5150. soname_spec='${libname}${release}.so$major'
  5151. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5152. shlibpath_var=LD_LIBRARY_PATH
  5153. shlibpath_overrides_runpath=no
  5154. # This implies no fast_install, which is unacceptable.
  5155. # Some rework will be needed to allow for fast_install
  5156. # before this can be enabled.
  5157. hardcode_into_libs=yes
  5158. # We used to test for /lib/ld.so.1 and disable shared libraries on
  5159. # powerpc, because MkLinux only supported shared libraries with the
  5160. # GNU dynamic linker. Since this was broken with cross compilers,
  5161. # most powerpc-linux boxes support dynamic linking these days and
  5162. # people can always --disable-shared, the test was removed, and we
  5163. # assume the GNU/Linux dynamic linker is in use.
  5164. dynamic_linker='GNU/Linux ld.so'
  5165. ;;
  5166. netbsd*)
  5167. version_type=sunos
  5168. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5169. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5170. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5171. dynamic_linker='NetBSD (a.out) ld.so'
  5172. else
  5173. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5174. soname_spec='${libname}${release}.so$major'
  5175. dynamic_linker='NetBSD ld.elf_so'
  5176. fi
  5177. shlibpath_var=LD_LIBRARY_PATH
  5178. shlibpath_overrides_runpath=yes
  5179. hardcode_into_libs=yes
  5180. ;;
  5181. newsos6)
  5182. version_type=linux
  5183. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5184. shlibpath_var=LD_LIBRARY_PATH
  5185. shlibpath_overrides_runpath=yes
  5186. ;;
  5187. openbsd*)
  5188. version_type=sunos
  5189. if test "$with_gnu_ld" = yes; then
  5190. need_lib_prefix=no
  5191. need_version=no
  5192. fi
  5193. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5194. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5195. shlibpath_var=LD_LIBRARY_PATH
  5196. ;;
  5197. os2*)
  5198. libname_spec='$name'
  5199. need_lib_prefix=no
  5200. library_names_spec='$libname.dll $libname.a'
  5201. dynamic_linker='OS/2 ld.exe'
  5202. shlibpath_var=LIBPATH
  5203. ;;
  5204. osf3* | osf4* | osf5*)
  5205. version_type=osf
  5206. need_version=no
  5207. soname_spec='${libname}${release}.so'
  5208. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5209. shlibpath_var=LD_LIBRARY_PATH
  5210. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5211. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5212. ;;
  5213. sco3.2v5*)
  5214. version_type=osf
  5215. soname_spec='${libname}${release}.so$major'
  5216. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5217. shlibpath_var=LD_LIBRARY_PATH
  5218. ;;
  5219. solaris*)
  5220. version_type=linux
  5221. need_lib_prefix=no
  5222. need_version=no
  5223. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5224. soname_spec='${libname}${release}.so$major'
  5225. shlibpath_var=LD_LIBRARY_PATH
  5226. shlibpath_overrides_runpath=yes
  5227. hardcode_into_libs=yes
  5228. # ldd complains unless libraries are executable
  5229. postinstall_cmds='chmod +x $lib'
  5230. ;;
  5231. sunos4*)
  5232. version_type=sunos
  5233. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5234. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5235. shlibpath_var=LD_LIBRARY_PATH
  5236. shlibpath_overrides_runpath=yes
  5237. if test "$with_gnu_ld" = yes; then
  5238. need_lib_prefix=no
  5239. fi
  5240. need_version=yes
  5241. ;;
  5242. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5243. version_type=linux
  5244. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5245. soname_spec='${libname}${release}.so$major'
  5246. shlibpath_var=LD_LIBRARY_PATH
  5247. case "$host_vendor" in
  5248. sni)
  5249. shlibpath_overrides_runpath=no
  5250. ;;
  5251. motorola)
  5252. need_lib_prefix=no
  5253. need_version=no
  5254. shlibpath_overrides_runpath=no
  5255. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5256. ;;
  5257. esac
  5258. ;;
  5259. uts4*)
  5260. version_type=linux
  5261. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5262. soname_spec='${libname}${release}.so$major'
  5263. shlibpath_var=LD_LIBRARY_PATH
  5264. ;;
  5265. dgux*)
  5266. version_type=linux
  5267. need_lib_prefix=no
  5268. need_version=no
  5269. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5270. soname_spec='${libname}${release}.so$major'
  5271. shlibpath_var=LD_LIBRARY_PATH
  5272. ;;
  5273. sysv4*MP*)
  5274. if test -d /usr/nec ;then
  5275. version_type=linux
  5276. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5277. soname_spec='$libname.so.$major'
  5278. shlibpath_var=LD_LIBRARY_PATH
  5279. fi
  5280. ;;
  5281. *)
  5282. dynamic_linker=no
  5283. ;;
  5284. esac
  5285. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  5286. echo "${ECHO_T}$dynamic_linker" >&6
  5287. test "$dynamic_linker" = no && can_build_shared=no
  5288. ##
  5289. ## END FIXME
  5290. ## FIXME: this should be a separate macro
  5291. ##
  5292. # Report the final consequences.
  5293. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  5294. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  5295. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  5296. echo "${ECHO_T}$can_build_shared" >&6
  5297. ##
  5298. ## END FIXME
  5299. if test "$hardcode_action" = relink; then
  5300. # Fast installation is not supported
  5301. enable_fast_install=no
  5302. elif test "$shlibpath_overrides_runpath" = yes ||
  5303. test "$enable_shared" = no; then
  5304. # Fast installation is not necessary
  5305. enable_fast_install=needless
  5306. fi
  5307. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  5308. if test "$GCC" = yes; then
  5309. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  5310. fi
  5311. if test "x$enable_dlopen" != xyes; then
  5312. enable_dlopen=unknown
  5313. enable_dlopen_self=unknown
  5314. enable_dlopen_self_static=unknown
  5315. else
  5316. lt_cv_dlopen=no
  5317. lt_cv_dlopen_libs=
  5318. case "$host_os" in
  5319. beos*)
  5320. lt_cv_dlopen="load_add_on"
  5321. lt_cv_dlopen_libs=
  5322. lt_cv_dlopen_self=yes
  5323. ;;
  5324. cygwin* | mingw* | pw32*)
  5325. lt_cv_dlopen="LoadLibrary"
  5326. lt_cv_dlopen_libs=
  5327. ;;
  5328. *)
  5329. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  5330. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  5331. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  5332. echo $ECHO_N "(cached) $ECHO_C" >&6
  5333. else
  5334. ac_check_lib_save_LIBS=$LIBS
  5335. LIBS="-ldl $LIBS"
  5336. cat >conftest.$ac_ext <<_ACEOF
  5337. #line $LINENO "configure"
  5338. /* confdefs.h. */
  5339. _ACEOF
  5340. cat confdefs.h >>conftest.$ac_ext
  5341. cat >>conftest.$ac_ext <<_ACEOF
  5342. /* end confdefs.h. */
  5343. /* Override any gcc2 internal prototype to avoid an error. */
  5344. #ifdef __cplusplus
  5345. extern "C"
  5346. #endif
  5347. /* We use char because int might match the return type of a gcc2
  5348. builtin and then its argument prototype would still apply. */
  5349. char dlopen ();
  5350. int
  5351. main ()
  5352. {
  5353. dlopen ();
  5354. ;
  5355. return 0;
  5356. }
  5357. _ACEOF
  5358. rm -f conftest.$ac_objext conftest$ac_exeext
  5359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5360. (eval $ac_link) 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); } &&
  5364. { ac_try='test -s conftest$ac_exeext'
  5365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5366. (eval $ac_try) 2>&5
  5367. ac_status=$?
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); }; }; then
  5370. ac_cv_lib_dl_dlopen=yes
  5371. else
  5372. echo "$as_me: failed program was:" >&5
  5373. sed 's/^/| /' conftest.$ac_ext >&5
  5374. ac_cv_lib_dl_dlopen=no
  5375. fi
  5376. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5377. LIBS=$ac_check_lib_save_LIBS
  5378. fi
  5379. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  5380. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  5381. if test $ac_cv_lib_dl_dlopen = yes; then
  5382. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  5383. else
  5384. echo "$as_me:$LINENO: checking for dlopen" >&5
  5385. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  5386. if test "${ac_cv_func_dlopen+set}" = set; then
  5387. echo $ECHO_N "(cached) $ECHO_C" >&6
  5388. else
  5389. cat >conftest.$ac_ext <<_ACEOF
  5390. #line $LINENO "configure"
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. /* System header to define __stub macros and hopefully few prototypes,
  5397. which can conflict with char dlopen (); below.
  5398. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5399. <limits.h> exists even on freestanding compilers. */
  5400. #ifdef __STDC__
  5401. # include <limits.h>
  5402. #else
  5403. # include <assert.h>
  5404. #endif
  5405. /* Override any gcc2 internal prototype to avoid an error. */
  5406. #ifdef __cplusplus
  5407. extern "C"
  5408. {
  5409. #endif
  5410. /* We use char because int might match the return type of a gcc2
  5411. builtin and then its argument prototype would still apply. */
  5412. char dlopen ();
  5413. /* The GNU C library defines this for functions which it implements
  5414. to always fail with ENOSYS. Some functions are actually named
  5415. something starting with __ and the normal name is an alias. */
  5416. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  5417. choke me
  5418. #else
  5419. char (*f) () = dlopen;
  5420. #endif
  5421. #ifdef __cplusplus
  5422. }
  5423. #endif
  5424. int
  5425. main ()
  5426. {
  5427. return f != dlopen;
  5428. ;
  5429. return 0;
  5430. }
  5431. _ACEOF
  5432. rm -f conftest.$ac_objext conftest$ac_exeext
  5433. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5434. (eval $ac_link) 2>&5
  5435. ac_status=$?
  5436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5437. (exit $ac_status); } &&
  5438. { ac_try='test -s conftest$ac_exeext'
  5439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5440. (eval $ac_try) 2>&5
  5441. ac_status=$?
  5442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443. (exit $ac_status); }; }; then
  5444. ac_cv_func_dlopen=yes
  5445. else
  5446. echo "$as_me: failed program was:" >&5
  5447. sed 's/^/| /' conftest.$ac_ext >&5
  5448. ac_cv_func_dlopen=no
  5449. fi
  5450. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5451. fi
  5452. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  5453. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  5454. if test $ac_cv_func_dlopen = yes; then
  5455. lt_cv_dlopen="dlopen"
  5456. else
  5457. echo "$as_me:$LINENO: checking for shl_load" >&5
  5458. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  5459. if test "${ac_cv_func_shl_load+set}" = set; then
  5460. echo $ECHO_N "(cached) $ECHO_C" >&6
  5461. else
  5462. cat >conftest.$ac_ext <<_ACEOF
  5463. #line $LINENO "configure"
  5464. /* confdefs.h. */
  5465. _ACEOF
  5466. cat confdefs.h >>conftest.$ac_ext
  5467. cat >>conftest.$ac_ext <<_ACEOF
  5468. /* end confdefs.h. */
  5469. /* System header to define __stub macros and hopefully few prototypes,
  5470. which can conflict with char shl_load (); below.
  5471. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5472. <limits.h> exists even on freestanding compilers. */
  5473. #ifdef __STDC__
  5474. # include <limits.h>
  5475. #else
  5476. # include <assert.h>
  5477. #endif
  5478. /* Override any gcc2 internal prototype to avoid an error. */
  5479. #ifdef __cplusplus
  5480. extern "C"
  5481. {
  5482. #endif
  5483. /* We use char because int might match the return type of a gcc2
  5484. builtin and then its argument prototype would still apply. */
  5485. char shl_load ();
  5486. /* The GNU C library defines this for functions which it implements
  5487. to always fail with ENOSYS. Some functions are actually named
  5488. something starting with __ and the normal name is an alias. */
  5489. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  5490. choke me
  5491. #else
  5492. char (*f) () = shl_load;
  5493. #endif
  5494. #ifdef __cplusplus
  5495. }
  5496. #endif
  5497. int
  5498. main ()
  5499. {
  5500. return f != shl_load;
  5501. ;
  5502. return 0;
  5503. }
  5504. _ACEOF
  5505. rm -f conftest.$ac_objext conftest$ac_exeext
  5506. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5507. (eval $ac_link) 2>&5
  5508. ac_status=$?
  5509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5510. (exit $ac_status); } &&
  5511. { ac_try='test -s conftest$ac_exeext'
  5512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5513. (eval $ac_try) 2>&5
  5514. ac_status=$?
  5515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5516. (exit $ac_status); }; }; then
  5517. ac_cv_func_shl_load=yes
  5518. else
  5519. echo "$as_me: failed program was:" >&5
  5520. sed 's/^/| /' conftest.$ac_ext >&5
  5521. ac_cv_func_shl_load=no
  5522. fi
  5523. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5524. fi
  5525. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  5526. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  5527. if test $ac_cv_func_shl_load = yes; then
  5528. lt_cv_dlopen="shl_load"
  5529. else
  5530. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  5531. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  5532. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  5533. echo $ECHO_N "(cached) $ECHO_C" >&6
  5534. else
  5535. ac_check_lib_save_LIBS=$LIBS
  5536. LIBS="-lsvld $LIBS"
  5537. cat >conftest.$ac_ext <<_ACEOF
  5538. #line $LINENO "configure"
  5539. /* confdefs.h. */
  5540. _ACEOF
  5541. cat confdefs.h >>conftest.$ac_ext
  5542. cat >>conftest.$ac_ext <<_ACEOF
  5543. /* end confdefs.h. */
  5544. /* Override any gcc2 internal prototype to avoid an error. */
  5545. #ifdef __cplusplus
  5546. extern "C"
  5547. #endif
  5548. /* We use char because int might match the return type of a gcc2
  5549. builtin and then its argument prototype would still apply. */
  5550. char dlopen ();
  5551. int
  5552. main ()
  5553. {
  5554. dlopen ();
  5555. ;
  5556. return 0;
  5557. }
  5558. _ACEOF
  5559. rm -f conftest.$ac_objext conftest$ac_exeext
  5560. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5561. (eval $ac_link) 2>&5
  5562. ac_status=$?
  5563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5564. (exit $ac_status); } &&
  5565. { ac_try='test -s conftest$ac_exeext'
  5566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5567. (eval $ac_try) 2>&5
  5568. ac_status=$?
  5569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5570. (exit $ac_status); }; }; then
  5571. ac_cv_lib_svld_dlopen=yes
  5572. else
  5573. echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575. ac_cv_lib_svld_dlopen=no
  5576. fi
  5577. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5578. LIBS=$ac_check_lib_save_LIBS
  5579. fi
  5580. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  5581. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  5582. if test $ac_cv_lib_svld_dlopen = yes; then
  5583. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  5584. else
  5585. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5586. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5587. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. ac_check_lib_save_LIBS=$LIBS
  5591. LIBS="-ldld $LIBS"
  5592. cat >conftest.$ac_ext <<_ACEOF
  5593. #line $LINENO "configure"
  5594. /* confdefs.h. */
  5595. _ACEOF
  5596. cat confdefs.h >>conftest.$ac_ext
  5597. cat >>conftest.$ac_ext <<_ACEOF
  5598. /* end confdefs.h. */
  5599. /* Override any gcc2 internal prototype to avoid an error. */
  5600. #ifdef __cplusplus
  5601. extern "C"
  5602. #endif
  5603. /* We use char because int might match the return type of a gcc2
  5604. builtin and then its argument prototype would still apply. */
  5605. char shl_load ();
  5606. int
  5607. main ()
  5608. {
  5609. shl_load ();
  5610. ;
  5611. return 0;
  5612. }
  5613. _ACEOF
  5614. rm -f conftest.$ac_objext conftest$ac_exeext
  5615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5616. (eval $ac_link) 2>&5
  5617. ac_status=$?
  5618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5619. (exit $ac_status); } &&
  5620. { ac_try='test -s conftest$ac_exeext'
  5621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5622. (eval $ac_try) 2>&5
  5623. ac_status=$?
  5624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5625. (exit $ac_status); }; }; then
  5626. ac_cv_lib_dld_shl_load=yes
  5627. else
  5628. echo "$as_me: failed program was:" >&5
  5629. sed 's/^/| /' conftest.$ac_ext >&5
  5630. ac_cv_lib_dld_shl_load=no
  5631. fi
  5632. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5633. LIBS=$ac_check_lib_save_LIBS
  5634. fi
  5635. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5636. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5637. if test $ac_cv_lib_dld_shl_load = yes; then
  5638. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  5639. fi
  5640. fi
  5641. fi
  5642. fi
  5643. fi
  5644. ;;
  5645. esac
  5646. if test "x$lt_cv_dlopen" != xno; then
  5647. enable_dlopen=yes
  5648. else
  5649. enable_dlopen=no
  5650. fi
  5651. case "$lt_cv_dlopen" in
  5652. dlopen)
  5653. save_CPPFLAGS="$CPP_FLAGS"
  5654. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  5655. save_LDFLAGS="$LDFLAGS"
  5656. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  5657. save_LIBS="$LIBS"
  5658. LIBS="$lt_cv_dlopen_libs $LIBS"
  5659. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  5660. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  5661. if test "${lt_cv_dlopen_self+set}" = set; then
  5662. echo $ECHO_N "(cached) $ECHO_C" >&6
  5663. else
  5664. if test "$cross_compiling" = yes; then :
  5665. lt_cv_dlopen_self=cross
  5666. else
  5667. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5668. lt_status=$lt_dlunknown
  5669. cat > conftest.$ac_ext <<EOF
  5670. #line 6281 "configure"
  5671. #include "confdefs.h"
  5672. #if HAVE_DLFCN_H
  5673. #include <dlfcn.h>
  5674. #endif
  5675. #include <stdio.h>
  5676. #ifdef RTLD_GLOBAL
  5677. # define LT_DLGLOBAL RTLD_GLOBAL
  5678. #else
  5679. # ifdef DL_GLOBAL
  5680. # define LT_DLGLOBAL DL_GLOBAL
  5681. # else
  5682. # define LT_DLGLOBAL 0
  5683. # endif
  5684. #endif
  5685. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  5686. find out it does not work in some platform. */
  5687. #ifndef LT_DLLAZY_OR_NOW
  5688. # ifdef RTLD_LAZY
  5689. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  5690. # else
  5691. # ifdef DL_LAZY
  5692. # define LT_DLLAZY_OR_NOW DL_LAZY
  5693. # else
  5694. # ifdef RTLD_NOW
  5695. # define LT_DLLAZY_OR_NOW RTLD_NOW
  5696. # else
  5697. # ifdef DL_NOW
  5698. # define LT_DLLAZY_OR_NOW DL_NOW
  5699. # else
  5700. # define LT_DLLAZY_OR_NOW 0
  5701. # endif
  5702. # endif
  5703. # endif
  5704. # endif
  5705. #endif
  5706. #ifdef __cplusplus
  5707. extern "C" void exit (int);
  5708. #endif
  5709. fnord() { int i=42;}
  5710. main ()
  5711. {
  5712. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5713. int status = $lt_dlunknown;
  5714. if (self)
  5715. {
  5716. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5717. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5718. /* dlclose (self); */
  5719. }
  5720. exit (status);
  5721. }
  5722. EOF
  5723. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5724. (eval $ac_link) 2>&5
  5725. ac_status=$?
  5726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5727. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  5728. (./conftest; exit; ) 2>/dev/null
  5729. lt_status=$?
  5730. case x$lt_status in
  5731. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  5732. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  5733. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  5734. esac
  5735. else :
  5736. # compilation failed
  5737. lt_cv_dlopen_self=no
  5738. fi
  5739. fi
  5740. rm -fr conftest*
  5741. fi
  5742. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  5743. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  5744. if test "x$lt_cv_dlopen_self" = xyes; then
  5745. LDFLAGS="$LDFLAGS $link_static_flag"
  5746. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  5747. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  5748. if test "${lt_cv_dlopen_self_static+set}" = set; then
  5749. echo $ECHO_N "(cached) $ECHO_C" >&6
  5750. else
  5751. if test "$cross_compiling" = yes; then :
  5752. lt_cv_dlopen_self_static=cross
  5753. else
  5754. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5755. lt_status=$lt_dlunknown
  5756. cat > conftest.$ac_ext <<EOF
  5757. #line 6379 "configure"
  5758. #include "confdefs.h"
  5759. #if HAVE_DLFCN_H
  5760. #include <dlfcn.h>
  5761. #endif
  5762. #include <stdio.h>
  5763. #ifdef RTLD_GLOBAL
  5764. # define LT_DLGLOBAL RTLD_GLOBAL
  5765. #else
  5766. # ifdef DL_GLOBAL
  5767. # define LT_DLGLOBAL DL_GLOBAL
  5768. # else
  5769. # define LT_DLGLOBAL 0
  5770. # endif
  5771. #endif
  5772. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  5773. find out it does not work in some platform. */
  5774. #ifndef LT_DLLAZY_OR_NOW
  5775. # ifdef RTLD_LAZY
  5776. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  5777. # else
  5778. # ifdef DL_LAZY
  5779. # define LT_DLLAZY_OR_NOW DL_LAZY
  5780. # else
  5781. # ifdef RTLD_NOW
  5782. # define LT_DLLAZY_OR_NOW RTLD_NOW
  5783. # else
  5784. # ifdef DL_NOW
  5785. # define LT_DLLAZY_OR_NOW DL_NOW
  5786. # else
  5787. # define LT_DLLAZY_OR_NOW 0
  5788. # endif
  5789. # endif
  5790. # endif
  5791. # endif
  5792. #endif
  5793. #ifdef __cplusplus
  5794. extern "C" void exit (int);
  5795. #endif
  5796. fnord() { int i=42;}
  5797. main ()
  5798. {
  5799. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5800. int status = $lt_dlunknown;
  5801. if (self)
  5802. {
  5803. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5804. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5805. /* dlclose (self); */
  5806. }
  5807. exit (status);
  5808. }
  5809. EOF
  5810. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5811. (eval $ac_link) 2>&5
  5812. ac_status=$?
  5813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  5815. (./conftest; exit; ) 2>/dev/null
  5816. lt_status=$?
  5817. case x$lt_status in
  5818. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  5819. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  5820. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  5821. esac
  5822. else :
  5823. # compilation failed
  5824. lt_cv_dlopen_self_static=no
  5825. fi
  5826. fi
  5827. rm -fr conftest*
  5828. fi
  5829. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  5830. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  5831. fi
  5832. CPPFLAGS="$save_CPPFLAGS"
  5833. LDFLAGS="$save_LDFLAGS"
  5834. LIBS="$save_LIBS"
  5835. ;;
  5836. esac
  5837. case "$lt_cv_dlopen_self" in
  5838. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  5839. *) enable_dlopen_self=unknown ;;
  5840. esac
  5841. case "$lt_cv_dlopen_self_static" in
  5842. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  5843. *) enable_dlopen_self_static=unknown ;;
  5844. esac
  5845. fi
  5846. ## FIXME: this should be a separate macro
  5847. ##
  5848. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5849. case "$archive_cmds" in
  5850. *'~'*)
  5851. # FIXME: we may have to deal with multi-command sequences.
  5852. ;;
  5853. '$CC '*)
  5854. # Test whether the compiler implicitly links with -lc since on some
  5855. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5856. # to ld, don't add -lc before -lgcc.
  5857. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  5858. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  5859. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  5860. echo $ECHO_N "(cached) $ECHO_C" >&6
  5861. else
  5862. $rm conftest*
  5863. echo 'static int dummy;' > conftest.$ac_ext
  5864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5865. (eval $ac_compile) 2>&5
  5866. ac_status=$?
  5867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); }; then
  5869. soname=conftest
  5870. lib=conftest
  5871. libobjs=conftest.$ac_objext
  5872. deplibs=
  5873. wl=$lt_cv_prog_cc_wl
  5874. compiler_flags=-v
  5875. linker_flags=-v
  5876. verstring=
  5877. output_objdir=.
  5878. libname=conftest
  5879. save_allow_undefined_flag=$allow_undefined_flag
  5880. allow_undefined_flag=
  5881. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  5882. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  5883. ac_status=$?
  5884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. (exit $ac_status); }
  5886. then
  5887. lt_cv_archive_cmds_need_lc=no
  5888. else
  5889. lt_cv_archive_cmds_need_lc=yes
  5890. fi
  5891. allow_undefined_flag=$save_allow_undefined_flag
  5892. else
  5893. cat conftest.err 1>&5
  5894. fi
  5895. fi
  5896. echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  5897. echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  5898. ;;
  5899. esac
  5900. fi
  5901. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  5902. ##
  5903. ## END FIXME
  5904. ## FIXME: this should be a separate macro
  5905. ##
  5906. # The second clause should only fire when bootstrapping the
  5907. # libtool distribution, otherwise you forgot to ship ltmain.sh
  5908. # with your package, and you will get complaints that there are
  5909. # no rules to generate ltmain.sh.
  5910. if test -f "$ltmain"; then
  5911. :
  5912. else
  5913. # If there is no Makefile yet, we rely on a make rule to execute
  5914. # `config.status --recheck' to rerun these tests and create the
  5915. # libtool script then.
  5916. test -f Makefile && make "$ltmain"
  5917. fi
  5918. if test -f "$ltmain"; then
  5919. trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  5920. $rm -f "${ofile}T"
  5921. echo creating $ofile
  5922. # Now quote all the things that may contain metacharacters while being
  5923. # careful not to overquote the AC_SUBSTed values. We take copies of the
  5924. # variables and quote the copies for generation of the libtool script.
  5925. for var in echo old_CC old_CFLAGS \
  5926. AR AR_FLAGS CC LD LN_S NM SHELL \
  5927. reload_flag reload_cmds wl \
  5928. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  5929. thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  5930. library_names_spec soname_spec \
  5931. RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  5932. old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  5933. postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  5934. old_striplib striplib file_magic_cmd export_symbols_cmds \
  5935. deplibs_check_method allow_undefined_flag no_undefined_flag \
  5936. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  5937. hardcode_libdir_flag_spec hardcode_libdir_separator \
  5938. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5939. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  5940. case "$var" in
  5941. reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  5942. old_postinstall_cmds | old_postuninstall_cmds | \
  5943. export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  5944. extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  5945. postinstall_cmds | postuninstall_cmds | \
  5946. finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5947. # Double-quote double-evaled strings.
  5948. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5949. ;;
  5950. *)
  5951. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5952. ;;
  5953. esac
  5954. done
  5955. cat <<__EOF__ > "${ofile}T"
  5956. #! $SHELL
  5957. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5958. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5959. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5960. #
  5961. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  5962. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5963. #
  5964. # This program is free software; you can redistribute it and/or modify
  5965. # it under the terms of the GNU General Public License as published by
  5966. # the Free Software Foundation; either version 2 of the License, or
  5967. # (at your option) any later version.
  5968. #
  5969. # This program is distributed in the hope that it will be useful, but
  5970. # WITHOUT ANY WARRANTY; without even the implied warranty of
  5971. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5972. # General Public License for more details.
  5973. #
  5974. # You should have received a copy of the GNU General Public License
  5975. # along with this program; if not, write to the Free Software
  5976. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  5977. #
  5978. # As a special exception to the GNU General Public License, if you
  5979. # distribute this file as part of a program that contains a
  5980. # configuration script generated by Autoconf, you may include it under
  5981. # the same distribution terms that you use for the rest of that program.
  5982. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5983. Xsed="sed -e s/^X//"
  5984. # The HP-UX ksh and POSIX shell print the target directory to stdout
  5985. # if CDPATH is set.
  5986. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  5987. # ### BEGIN LIBTOOL CONFIG
  5988. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5989. # Shell to use when invoking shell scripts.
  5990. SHELL=$lt_SHELL
  5991. # Whether or not to build shared libraries.
  5992. build_libtool_libs=$enable_shared
  5993. # Whether or not to add -lc for building shared libraries.
  5994. build_libtool_need_lc=$need_lc
  5995. # Whether or not to build static libraries.
  5996. build_old_libs=$enable_static
  5997. # Whether or not to optimize for fast installation.
  5998. fast_install=$enable_fast_install
  5999. # The host system.
  6000. host_alias=$host_alias
  6001. host=$host
  6002. # An echo program that does not interpret backslashes.
  6003. echo=$lt_echo
  6004. # The archiver.
  6005. AR=$lt_AR
  6006. AR_FLAGS=$lt_AR_FLAGS
  6007. # The default C compiler.
  6008. CC=$lt_CC
  6009. # Is the compiler the GNU C compiler?
  6010. with_gcc=$GCC
  6011. # The linker used to build libraries.
  6012. LD=$lt_LD
  6013. # Whether we need hard or soft links.
  6014. LN_S=$lt_LN_S
  6015. # A BSD-compatible nm program.
  6016. NM=$lt_NM
  6017. # A symbol stripping program
  6018. STRIP=$STRIP
  6019. # Used to examine libraries when file_magic_cmd begins "file"
  6020. MAGIC_CMD=$MAGIC_CMD
  6021. # Used on cygwin: DLL creation program.
  6022. DLLTOOL="$DLLTOOL"
  6023. # Used on cygwin: object dumper.
  6024. OBJDUMP="$OBJDUMP"
  6025. # Used on cygwin: assembler.
  6026. AS="$AS"
  6027. # The name of the directory that contains temporary libtool files.
  6028. objdir=$objdir
  6029. # How to create reloadable object files.
  6030. reload_flag=$lt_reload_flag
  6031. reload_cmds=$lt_reload_cmds
  6032. # How to pass a linker flag through the compiler.
  6033. wl=$lt_wl
  6034. # Object file suffix (normally "o").
  6035. objext="$ac_objext"
  6036. # Old archive suffix (normally "a").
  6037. libext="$libext"
  6038. # Executable file suffix (normally "").
  6039. exeext="$exeext"
  6040. # Additional compiler flags for building library objects.
  6041. pic_flag=$lt_pic_flag
  6042. pic_mode=$pic_mode
  6043. # Does compiler simultaneously support -c and -o options?
  6044. compiler_c_o=$lt_compiler_c_o
  6045. # Can we write directly to a .lo ?
  6046. compiler_o_lo=$lt_compiler_o_lo
  6047. # Must we lock files when doing compilation ?
  6048. need_locks=$lt_need_locks
  6049. # Do we need the lib prefix for modules?
  6050. need_lib_prefix=$need_lib_prefix
  6051. # Do we need a version for libraries?
  6052. need_version=$need_version
  6053. # Whether dlopen is supported.
  6054. dlopen_support=$enable_dlopen
  6055. # Whether dlopen of programs is supported.
  6056. dlopen_self=$enable_dlopen_self
  6057. # Whether dlopen of statically linked programs is supported.
  6058. dlopen_self_static=$enable_dlopen_self_static
  6059. # Compiler flag to prevent dynamic linking.
  6060. link_static_flag=$lt_link_static_flag
  6061. # Compiler flag to turn off builtin functions.
  6062. no_builtin_flag=$lt_no_builtin_flag
  6063. # Compiler flag to allow reflexive dlopens.
  6064. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6065. # Compiler flag to generate shared objects directly from archives.
  6066. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6067. # Compiler flag to generate thread-safe objects.
  6068. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6069. # Library versioning type.
  6070. version_type=$version_type
  6071. # Format of library name prefix.
  6072. libname_spec=$lt_libname_spec
  6073. # List of archive names. First name is the real one, the rest are links.
  6074. # The last name is the one that the linker finds with -lNAME.
  6075. library_names_spec=$lt_library_names_spec
  6076. # The coded name of the library, if different from the real name.
  6077. soname_spec=$lt_soname_spec
  6078. # Commands used to build and install an old-style archive.
  6079. RANLIB=$lt_RANLIB
  6080. old_archive_cmds=$lt_old_archive_cmds
  6081. old_postinstall_cmds=$lt_old_postinstall_cmds
  6082. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6083. # Create an old-style archive from a shared archive.
  6084. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6085. # Create a temporary old-style archive to link instead of a shared archive.
  6086. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6087. # Commands used to build and install a shared archive.
  6088. archive_cmds=$lt_archive_cmds
  6089. archive_expsym_cmds=$lt_archive_expsym_cmds
  6090. postinstall_cmds=$lt_postinstall_cmds
  6091. postuninstall_cmds=$lt_postuninstall_cmds
  6092. # Commands to strip libraries.
  6093. old_striplib=$lt_old_striplib
  6094. striplib=$lt_striplib
  6095. # Method to check whether dependent libraries are shared objects.
  6096. deplibs_check_method=$lt_deplibs_check_method
  6097. # Command to use when deplibs_check_method == file_magic.
  6098. file_magic_cmd=$lt_file_magic_cmd
  6099. # Flag that allows shared libraries with undefined symbols to be built.
  6100. allow_undefined_flag=$lt_allow_undefined_flag
  6101. # Flag that forces no undefined symbols.
  6102. no_undefined_flag=$lt_no_undefined_flag
  6103. # Commands used to finish a libtool library installation in a directory.
  6104. finish_cmds=$lt_finish_cmds
  6105. # Same as above, but a single script fragment to be evaled but not shown.
  6106. finish_eval=$lt_finish_eval
  6107. # Take the output of nm and produce a listing of raw symbols and C names.
  6108. global_symbol_pipe=$lt_global_symbol_pipe
  6109. # Transform the output of nm in a proper C declaration
  6110. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  6111. # This is the shared library runtime path variable.
  6112. runpath_var=$runpath_var
  6113. # This is the shared library path variable.
  6114. shlibpath_var=$shlibpath_var
  6115. # Is shlibpath searched before the hard-coded library search path?
  6116. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6117. # How to hardcode a shared library path into an executable.
  6118. hardcode_action=$hardcode_action
  6119. # Whether we should hardcode library paths into libraries.
  6120. hardcode_into_libs=$hardcode_into_libs
  6121. # Flag to hardcode \$libdir into a binary during linking.
  6122. # This must work even if \$libdir does not exist.
  6123. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  6124. # Whether we need a single -rpath flag with a separated argument.
  6125. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  6126. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  6127. # resulting binary.
  6128. hardcode_direct=$hardcode_direct
  6129. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6130. # resulting binary.
  6131. hardcode_minus_L=$hardcode_minus_L
  6132. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6133. # the resulting binary.
  6134. hardcode_shlibpath_var=$hardcode_shlibpath_var
  6135. # Variables whose values should be saved in libtool wrapper scripts and
  6136. # restored at relink time.
  6137. variables_saved_for_relink="$variables_saved_for_relink"
  6138. # Whether libtool must link a program against all its dependency libraries.
  6139. link_all_deplibs=$link_all_deplibs
  6140. # Compile-time system search path for libraries
  6141. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6142. # Run-time system search path for libraries
  6143. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6144. # Fix the shell variable \$srcfile for the compiler.
  6145. fix_srcfile_path="$fix_srcfile_path"
  6146. # Set to yes if exported symbols are required.
  6147. always_export_symbols=$always_export_symbols
  6148. # The commands to list exported symbols.
  6149. export_symbols_cmds=$lt_export_symbols_cmds
  6150. # The commands to extract the exported symbol list from a shared archive.
  6151. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6152. # Symbols that should not be listed in the preloaded symbols.
  6153. exclude_expsyms=$lt_exclude_expsyms
  6154. # Symbols that must always be exported.
  6155. include_expsyms=$lt_include_expsyms
  6156. # ### END LIBTOOL CONFIG
  6157. __EOF__
  6158. case "$host_os" in
  6159. aix3*)
  6160. cat <<\EOF >> "${ofile}T"
  6161. # AIX sometimes has problems with the GCC collect2 program. For some
  6162. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6163. # vanish in a puff of smoke.
  6164. if test "X${COLLECT_NAMES+set}" != Xset; then
  6165. COLLECT_NAMES=
  6166. export COLLECT_NAMES
  6167. fi
  6168. EOF
  6169. ;;
  6170. esac
  6171. case "$host_os" in
  6172. cygwin* | mingw* | pw32* | os2*)
  6173. cat <<'EOF' >> "${ofile}T"
  6174. # This is a source program that is used to create dlls on Windows
  6175. # Don't remove nor modify the starting and closing comments
  6176. # /* ltdll.c starts here */
  6177. # #define WIN32_LEAN_AND_MEAN
  6178. # #include <windows.h>
  6179. # #undef WIN32_LEAN_AND_MEAN
  6180. # #include <stdio.h>
  6181. #
  6182. # #ifndef __CYGWIN__
  6183. # # ifdef __CYGWIN32__
  6184. # # define __CYGWIN__ __CYGWIN32__
  6185. # # endif
  6186. # #endif
  6187. #
  6188. # #ifdef __cplusplus
  6189. # extern "C" {
  6190. # #endif
  6191. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6192. # #ifdef __cplusplus
  6193. # }
  6194. # #endif
  6195. #
  6196. # #ifdef __CYGWIN__
  6197. # #include <cygwin/cygwin_dll.h>
  6198. # DECLARE_CYGWIN_DLL( DllMain );
  6199. # #endif
  6200. # HINSTANCE __hDllInstance_base;
  6201. #
  6202. # BOOL APIENTRY
  6203. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6204. # {
  6205. # __hDllInstance_base = hInst;
  6206. # return TRUE;
  6207. # }
  6208. # /* ltdll.c ends here */
  6209. # This is a source program that is used to create import libraries
  6210. # on Windows for dlls which lack them. Don't remove nor modify the
  6211. # starting and closing comments
  6212. # /* impgen.c starts here */
  6213. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  6214. #
  6215. # This file is part of GNU libtool.
  6216. #
  6217. # This program is free software; you can redistribute it and/or modify
  6218. # it under the terms of the GNU General Public License as published by
  6219. # the Free Software Foundation; either version 2 of the License, or
  6220. # (at your option) any later version.
  6221. #
  6222. # This program is distributed in the hope that it will be useful,
  6223. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  6224. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  6225. # GNU General Public License for more details.
  6226. #
  6227. # You should have received a copy of the GNU General Public License
  6228. # along with this program; if not, write to the Free Software
  6229. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6230. # */
  6231. #
  6232. # #include <stdio.h> /* for printf() */
  6233. # #include <unistd.h> /* for open(), lseek(), read() */
  6234. # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  6235. # #include <string.h> /* for strdup() */
  6236. #
  6237. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  6238. # #ifndef O_BINARY
  6239. # #define O_BINARY 0
  6240. # #endif
  6241. #
  6242. # static unsigned int
  6243. # pe_get16 (fd, offset)
  6244. # int fd;
  6245. # int offset;
  6246. # {
  6247. # unsigned char b[2];
  6248. # lseek (fd, offset, SEEK_SET);
  6249. # read (fd, b, 2);
  6250. # return b[0] + (b[1]<<8);
  6251. # }
  6252. #
  6253. # static unsigned int
  6254. # pe_get32 (fd, offset)
  6255. # int fd;
  6256. # int offset;
  6257. # {
  6258. # unsigned char b[4];
  6259. # lseek (fd, offset, SEEK_SET);
  6260. # read (fd, b, 4);
  6261. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  6262. # }
  6263. #
  6264. # static unsigned int
  6265. # pe_as32 (ptr)
  6266. # void *ptr;
  6267. # {
  6268. # unsigned char *b = ptr;
  6269. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  6270. # }
  6271. #
  6272. # int
  6273. # main (argc, argv)
  6274. # int argc;
  6275. # char *argv[];
  6276. # {
  6277. # int dll;
  6278. # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  6279. # unsigned long export_rva, export_size, nsections, secptr, expptr;
  6280. # unsigned long name_rvas, nexp;
  6281. # unsigned char *expdata, *erva;
  6282. # char *filename, *dll_name;
  6283. #
  6284. # filename = argv[1];
  6285. #
  6286. # dll = open(filename, O_RDONLY|O_BINARY);
  6287. # if (!dll)
  6288. # return 1;
  6289. #
  6290. # dll_name = filename;
  6291. #
  6292. # for (i=0; filename[i]; i++)
  6293. # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  6294. # dll_name = filename + i +1;
  6295. #
  6296. # pe_header_offset = pe_get32 (dll, 0x3c);
  6297. # opthdr_ofs = pe_header_offset + 4 + 20;
  6298. # num_entries = pe_get32 (dll, opthdr_ofs + 92);
  6299. #
  6300. # if (num_entries < 1) /* no exports */
  6301. # return 1;
  6302. #
  6303. # export_rva = pe_get32 (dll, opthdr_ofs + 96);
  6304. # export_size = pe_get32 (dll, opthdr_ofs + 100);
  6305. # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  6306. # secptr = (pe_header_offset + 4 + 20 +
  6307. # pe_get16 (dll, pe_header_offset + 4 + 16));
  6308. #
  6309. # expptr = 0;
  6310. # for (i = 0; i < nsections; i++)
  6311. # {
  6312. # char sname[8];
  6313. # unsigned long secptr1 = secptr + 40 * i;
  6314. # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  6315. # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  6316. # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  6317. # lseek(dll, secptr1, SEEK_SET);
  6318. # read(dll, sname, 8);
  6319. # if (vaddr <= export_rva && vaddr+vsize > export_rva)
  6320. # {
  6321. # expptr = fptr + (export_rva - vaddr);
  6322. # if (export_rva + export_size > vaddr + vsize)
  6323. # export_size = vsize - (export_rva - vaddr);
  6324. # break;
  6325. # }
  6326. # }
  6327. #
  6328. # expdata = (unsigned char*)malloc(export_size);
  6329. # lseek (dll, expptr, SEEK_SET);
  6330. # read (dll, expdata, export_size);
  6331. # erva = expdata - export_rva;
  6332. #
  6333. # nexp = pe_as32 (expdata+24);
  6334. # name_rvas = pe_as32 (expdata+32);
  6335. #
  6336. # printf ("EXPORTS\n");
  6337. # for (i = 0; i<nexp; i++)
  6338. # {
  6339. # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  6340. # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  6341. # }
  6342. #
  6343. # return 0;
  6344. # }
  6345. # /* impgen.c ends here */
  6346. EOF
  6347. ;;
  6348. esac
  6349. # We use sed instead of cat because bash on DJGPP gets confused if
  6350. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  6351. # text mode, it properly converts lines to CR/LF. This bash problem
  6352. # is reportedly fixed, but why not run on old versions too?
  6353. sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  6354. mv -f "${ofile}T" "$ofile" || \
  6355. (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  6356. chmod +x "$ofile"
  6357. fi
  6358. ##
  6359. ## END FIXME
  6360. # This can be used to rebuild libtool when needed
  6361. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  6362. # Always use our own libtool.
  6363. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6364. # Prevent multiple expansion
  6365. MALLOC_TYPE=S
  6366. support_addstrings=no
  6367. support_frills=no
  6368. support_linespace=no
  6369. support_graphics=no
  6370. support_inheritpixmap=no
  6371. support_keepscrolling=no
  6372. support_menubar=no
  6373. support_mousewheel=no
  6374. support_mouseslipwheel=no
  6375. support_oldselection=no
  6376. support_utmp=no
  6377. support_wtmp=no
  6378. support_lastlog=no
  6379. support_xim=no
  6380. support_xpm=no
  6381. support_scroll_rxvt=no
  6382. support_scroll_next=no
  6383. support_scroll_xterm=no
  6384. multichar_set=no
  6385. if test "x$enable_shared" = xyes; then
  6386. cat >>confdefs.h <<\_ACEOF
  6387. #define LIBRXVT 1
  6388. _ACEOF
  6389. INSTALL_LIBRXVT=yes
  6390. fi
  6391. # Check whether --enable-everything or --disable-everything was given.
  6392. if test "${enable_everything+set}" = set; then
  6393. enableval="$enable_everything"
  6394. if test x$enableval = xyes; then
  6395. support_24bit=yes
  6396. support_frills=yes
  6397. support_linespace=yes
  6398. support_graphics=yes
  6399. support_inheritpixmap=yes
  6400. support_keepscrolling=yes
  6401. support_lastlog=yes
  6402. support_menubar=yes
  6403. support_mousewheel=yes
  6404. support_mouseslipwheel=yes
  6405. support_oldselection=yes
  6406. support_scroll_rxvt=yes
  6407. support_scroll_next=yes
  6408. support_scroll_xterm=yes
  6409. support_utmp=yes
  6410. support_wtmp=yes
  6411. support_xim=yes
  6412. support_xpm=yes
  6413. fi
  6414. fi;
  6415. # Check whether --enable-languages or --disable-languages was given.
  6416. if test "${enable_languages+set}" = set; then
  6417. enableval="$enable_languages"
  6418. if test x$enableval = xyes; then
  6419. cat >>confdefs.h <<\_ACEOF
  6420. #define MULTICHAR_SET 1
  6421. _ACEOF
  6422. multichar_set=yes
  6423. fi
  6424. fi;
  6425. # Check whether --with-encoding or --without-encoding was given.
  6426. if test "${with_encoding+set}" = set; then
  6427. withval="$with_encoding"
  6428. if test x$enableval = xyes; then
  6429. withval=`echo $withval | tr 'a-z' 'A-Z'`
  6430. cat >>confdefs.h <<_ACEOF
  6431. #define MULTICHAR_ENCODING $withval
  6432. _ACEOF
  6433. fi
  6434. fi;
  6435. # Check whether --enable-utmp or --disable-utmp was given.
  6436. if test "${enable_utmp+set}" = set; then
  6437. enableval="$enable_utmp"
  6438. if test x$enableval = xyes -o x$enableval = xno; then
  6439. support_utmp=$enableval
  6440. fi
  6441. fi;
  6442. # Check whether --enable-wtmp or --disable-wtmp was given.
  6443. if test "${enable_wtmp+set}" = set; then
  6444. enableval="$enable_wtmp"
  6445. if test x$enableval = xyes -o x$enableval = xno; then
  6446. support_wtmp=$enableval
  6447. fi
  6448. fi;
  6449. # Check whether --enable-lastlog or --disable-lastlog was given.
  6450. if test "${enable_lastlog+set}" = set; then
  6451. enableval="$enable_lastlog"
  6452. if test x$enableval = xyes -o x$enableval = xno; then
  6453. support_lastlog=$enableval
  6454. fi
  6455. fi;
  6456. # Check whether --enable-xpm-background or --disable-xpm-background was given.
  6457. if test "${enable_xpm_background+set}" = set; then
  6458. enableval="$enable_xpm_background"
  6459. if test x$enableval = xyes -o x$enableval = xno; then
  6460. support_xpm=$enableval
  6461. fi
  6462. fi;
  6463. # Check whether --enable-transparency or --disable-transparency was given.
  6464. if test "${enable_transparency+set}" = set; then
  6465. enableval="$enable_transparency"
  6466. if test x$enableval = xyes -o x$enableval = xno; then
  6467. support_inheritpixmap=$enableval
  6468. fi
  6469. fi;
  6470. # Check whether --enable-menubar or --disable-menubar was given.
  6471. if test "${enable_menubar+set}" = set; then
  6472. enableval="$enable_menubar"
  6473. if test x$enableval = xyes -o x$enableval = xno; then
  6474. support_menubar=$enableval
  6475. fi
  6476. fi;
  6477. # Check whether --enable-graphics or --disable-graphics was given.
  6478. if test "${enable_graphics+set}" = set; then
  6479. enableval="$enable_graphics"
  6480. if test x$enableval = xyes -o x$enableval = xno; then
  6481. support_graphics=$enableval
  6482. fi
  6483. fi;
  6484. # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
  6485. if test "${enable_rxvt_scroll+set}" = set; then
  6486. enableval="$enable_rxvt_scroll"
  6487. if test x$enableval = xyes; then
  6488. support_scroll_rxvt=yes
  6489. fi
  6490. fi;
  6491. # Check whether --enable-next-scroll or --disable-next-scroll was given.
  6492. if test "${enable_next_scroll+set}" = set; then
  6493. enableval="$enable_next_scroll"
  6494. if test x$enableval = xyes; then
  6495. support_scroll_next=yes
  6496. fi
  6497. fi;
  6498. # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
  6499. if test "${enable_xterm_scroll+set}" = set; then
  6500. enableval="$enable_xterm_scroll"
  6501. if test x$enableval = xyes; then
  6502. support_scroll_xterm=yes
  6503. fi
  6504. fi;
  6505. # Check whether --enable-half-shadow or --disable-half-shadow was given.
  6506. if test "${enable_half_shadow+set}" = set; then
  6507. enableval="$enable_half_shadow"
  6508. if test x$enableval = xyes; then
  6509. cat >>confdefs.h <<\_ACEOF
  6510. #define HALFSHADOW 1
  6511. _ACEOF
  6512. fi
  6513. fi;
  6514. # Check whether --enable-xim or --disable-xim was given.
  6515. if test "${enable_xim+set}" = set; then
  6516. enableval="$enable_xim"
  6517. if test x$enableval = xyes -o x$enableval = xno; then
  6518. support_xim=$enableval
  6519. fi
  6520. fi;
  6521. # Check whether --enable-greek or --disable-greek was given.
  6522. if test "${enable_greek+set}" = set; then
  6523. enableval="$enable_greek"
  6524. if test x$enableval = xyes; then
  6525. cat >>confdefs.h <<\_ACEOF
  6526. #define GREEK_SUPPORT 1
  6527. _ACEOF
  6528. OBJGRKELOT="grkelot.o"
  6529. fi
  6530. fi;
  6531. # Check whether --enable-ttygid or --disable-ttygid was given.
  6532. if test "${enable_ttygid+set}" = set; then
  6533. enableval="$enable_ttygid"
  6534. if test x$enableval = xyes; then
  6535. cat >>confdefs.h <<\_ACEOF
  6536. #define TTY_GID_SUPPORT 1
  6537. _ACEOF
  6538. fi
  6539. fi;
  6540. # Check whether --enable-backspace-key or --disable-backspace-key was given.
  6541. if test "${enable_backspace_key+set}" = set; then
  6542. enableval="$enable_backspace_key"
  6543. if test x$enableval = xno; then
  6544. cat >>confdefs.h <<\_ACEOF
  6545. #define NO_BACKSPACE_KEY 1
  6546. _ACEOF
  6547. fi
  6548. fi;
  6549. # Check whether --enable-delete-key or --disable-delete-key was given.
  6550. if test "${enable_delete_key+set}" = set; then
  6551. enableval="$enable_delete_key"
  6552. if test x$enableval = xno; then
  6553. cat >>confdefs.h <<\_ACEOF
  6554. #define NO_DELETE_KEY 1
  6555. _ACEOF
  6556. fi
  6557. fi;
  6558. # Check whether --enable-resources or --disable-resources was given.
  6559. if test "${enable_resources+set}" = set; then
  6560. enableval="$enable_resources"
  6561. if test x$enableval = xno; then
  6562. cat >>confdefs.h <<\_ACEOF
  6563. #define NO_RESOURCES 1
  6564. _ACEOF
  6565. fi
  6566. fi;
  6567. # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
  6568. if test "${enable_xgetdefault+set}" = set; then
  6569. enableval="$enable_xgetdefault"
  6570. if test x$enableval = xyes; then
  6571. cat >>confdefs.h <<\_ACEOF
  6572. #define USE_XGETDEFAULT 1
  6573. _ACEOF
  6574. fi
  6575. fi;
  6576. # Check whether --enable-strings or --disable-strings was given.
  6577. if test "${enable_strings+set}" = set; then
  6578. enableval="$enable_strings"
  6579. if test x$enableval = xyes -o x$enableval = xno; then
  6580. support_addstrings=$enableval
  6581. fi
  6582. fi;
  6583. # Check whether --enable-swapscreen or --disable-swapscreen was given.
  6584. if test "${enable_swapscreen+set}" = set; then
  6585. enableval="$enable_swapscreen"
  6586. if test x$enableval = xno; then
  6587. cat >>confdefs.h <<\_ACEOF
  6588. #define NO_SECONDARY_SCREEN 1
  6589. _ACEOF
  6590. fi
  6591. fi;
  6592. # Check whether --enable-frills or --disable-frills was given.
  6593. if test "${enable_frills+set}" = set; then
  6594. enableval="$enable_frills"
  6595. if test x$enableval = xyes -o x$enableval = xno; then
  6596. support_frills=$enableval
  6597. fi
  6598. fi;
  6599. # Check whether --enable-linespace or --disable-linespace was given.
  6600. if test "${enable_linespace+set}" = set; then
  6601. enableval="$enable_linespace"
  6602. if test x$enableval = xyes -o x$enableval = xno; then
  6603. support_linespace=$enableval
  6604. fi
  6605. fi;
  6606. # Check whether --enable-24bit or --disable-24bit was given.
  6607. if test "${enable_24bit+set}" = set; then
  6608. enableval="$enable_24bit"
  6609. if test x$enableval = xyes -o x$enableval = xno; then
  6610. support_24bit=$enableval
  6611. fi
  6612. fi;
  6613. # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
  6614. if test "${enable_keepscrolling+set}" = set; then
  6615. enableval="$enable_keepscrolling"
  6616. if test x$enableval = xyes -o x$enableval = xno; then
  6617. support_keepscrolling=$enableval
  6618. fi
  6619. fi;
  6620. # Check whether --enable-mousewheel or --disable-mousewheel was given.
  6621. if test "${enable_mousewheel+set}" = set; then
  6622. enableval="$enable_mousewheel"
  6623. if test x$enableval = xyes -o x$enableval = xno; then
  6624. support_mousewheel=$enableval
  6625. fi
  6626. fi;
  6627. # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
  6628. if test "${enable_slipwheeling+set}" = set; then
  6629. enableval="$enable_slipwheeling"
  6630. if test x$enableval = xyes -o x$enableval = xno; then
  6631. support_mouseslipwheel=$enableval
  6632. fi
  6633. fi;
  6634. # Check whether --enable-old-selection or --disable-old-selection was given.
  6635. if test "${enable_old_selection+set}" = set; then
  6636. enableval="$enable_old_selection"
  6637. if test x$enableval = xyes -o x$enableval = xno; then
  6638. support_oldselection=$enableval
  6639. fi
  6640. fi;
  6641. # Check whether --enable-new-selection or --disable-new-selection was given.
  6642. if test "${enable_new_selection+set}" = set; then
  6643. enableval="$enable_new_selection"
  6644. if test x$enableval = xno; then
  6645. cat >>confdefs.h <<\_ACEOF
  6646. #define NO_NEW_SELECTION 1
  6647. _ACEOF
  6648. fi
  6649. fi;
  6650. # Check whether --enable-dmalloc or --disable-dmalloc was given.
  6651. if test "${enable_dmalloc+set}" = set; then
  6652. enableval="$enable_dmalloc"
  6653. if test x$enableval = xyes; then
  6654. MALLOC_TYPE=G
  6655. DEBUG=-DDEBUG_MALLOC
  6656. DLIB="-L/usr/local/lib -ldmalloc"
  6657. DINCLUDE=-I/usr/local/include
  6658. fi
  6659. fi;
  6660. # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
  6661. if test "${enable_dlmalloc+set}" = set; then
  6662. enableval="$enable_dlmalloc"
  6663. if test x$enableval = xyes; then
  6664. MALLOC_TYPE=D
  6665. DEBUG=
  6666. DLIB="-L/usr/local/lib -ldlmalloc"
  6667. DINCLUDE=
  6668. fi
  6669. fi;
  6670. # Check whether --enable-smart-resize or --disable-smart-resize was given.
  6671. if test "${enable_smart_resize+set}" = set; then
  6672. enableval="$enable_smart_resize"
  6673. if test x$enableval = xyes; then
  6674. cat >>confdefs.h <<\_ACEOF
  6675. #define SMART_RESIZE 1
  6676. _ACEOF
  6677. fi
  6678. fi;
  6679. # Check whether --enable-256-color or --disable-256-color was given.
  6680. if test "${enable_256_color+set}" = set; then
  6681. enableval="$enable_256_color"
  6682. if test x$enableval = xyes; then
  6683. cat >>confdefs.h <<\_ACEOF
  6684. #define TTY_256COLOR 1
  6685. _ACEOF
  6686. fi
  6687. fi;
  6688. # Check whether --with-term or --without-term was given.
  6689. if test "${with_term+set}" = set; then
  6690. withval="$with_term"
  6691. if test x$withval != x; then
  6692. cat >>confdefs.h <<_ACEOF
  6693. #define TERMENV "$withval"
  6694. _ACEOF
  6695. term="$withval"
  6696. fi
  6697. fi;
  6698. # Check whether --with-terminfo or --without-terminfo was given.
  6699. if test "${with_terminfo+set}" = set; then
  6700. withval="$with_terminfo"
  6701. if test x$withval != x; then
  6702. cat >>confdefs.h <<_ACEOF
  6703. #define RXVT_TERMINFO "$withval"
  6704. _ACEOF
  6705. terminfo="$withval"
  6706. fi
  6707. fi;
  6708. cat >>confdefs.h <<\_ACEOF
  6709. #define PROTOTYPES 1
  6710. _ACEOF
  6711. if test -z "$CFLAGS"; then
  6712. if test -z "$CCOPTS"; then
  6713. CCOPTS='-O'
  6714. fi
  6715. CFLAGS="$CCOPTS"
  6716. fi
  6717. # Extract the first word of "mv", so it can be a program name with args.
  6718. set dummy mv; ac_word=$2
  6719. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6720. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6721. if test "${ac_cv_path_MV+set}" = set; then
  6722. echo $ECHO_N "(cached) $ECHO_C" >&6
  6723. else
  6724. case $MV in
  6725. [\\/]* | ?:[\\/]*)
  6726. ac_cv_path_MV="$MV" # Let the user override the test with a path.
  6727. ;;
  6728. *)
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6736. ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
  6737. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
  6743. ;;
  6744. esac
  6745. fi
  6746. MV=$ac_cv_path_MV
  6747. if test -n "$MV"; then
  6748. echo "$as_me:$LINENO: result: $MV" >&5
  6749. echo "${ECHO_T}$MV" >&6
  6750. else
  6751. echo "$as_me:$LINENO: result: no" >&5
  6752. echo "${ECHO_T}no" >&6
  6753. fi
  6754. # Extract the first word of "rm", so it can be a program name with args.
  6755. set dummy rm; ac_word=$2
  6756. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6757. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6758. if test "${ac_cv_path_RM+set}" = set; then
  6759. echo $ECHO_N "(cached) $ECHO_C" >&6
  6760. else
  6761. case $RM in
  6762. [\\/]* | ?:[\\/]*)
  6763. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  6764. ;;
  6765. *)
  6766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6767. for as_dir in $PATH
  6768. do
  6769. IFS=$as_save_IFS
  6770. test -z "$as_dir" && as_dir=.
  6771. for ac_exec_ext in '' $ac_executable_extensions; do
  6772. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6773. ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
  6774. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6775. break 2
  6776. fi
  6777. done
  6778. done
  6779. test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  6780. ;;
  6781. esac
  6782. fi
  6783. RM=$ac_cv_path_RM
  6784. if test -n "$RM"; then
  6785. echo "$as_me:$LINENO: result: $RM" >&5
  6786. echo "${ECHO_T}$RM" >&6
  6787. else
  6788. echo "$as_me:$LINENO: result: no" >&5
  6789. echo "${ECHO_T}no" >&6
  6790. fi
  6791. # Extract the first word of "cp", so it can be a program name with args.
  6792. set dummy cp; ac_word=$2
  6793. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6794. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6795. if test "${ac_cv_path_CP+set}" = set; then
  6796. echo $ECHO_N "(cached) $ECHO_C" >&6
  6797. else
  6798. case $CP in
  6799. [\\/]* | ?:[\\/]*)
  6800. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  6801. ;;
  6802. *)
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. test -z "$as_dir" && as_dir=.
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6810. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  6811. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
  6817. ;;
  6818. esac
  6819. fi
  6820. CP=$ac_cv_path_CP
  6821. if test -n "$CP"; then
  6822. echo "$as_me:$LINENO: result: $CP" >&5
  6823. echo "${ECHO_T}$CP" >&6
  6824. else
  6825. echo "$as_me:$LINENO: result: no" >&5
  6826. echo "${ECHO_T}no" >&6
  6827. fi
  6828. # Extract the first word of "ln", so it can be a program name with args.
  6829. set dummy ln; ac_word=$2
  6830. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6831. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6832. if test "${ac_cv_path_LN+set}" = set; then
  6833. echo $ECHO_N "(cached) $ECHO_C" >&6
  6834. else
  6835. case $LN in
  6836. [\\/]* | ?:[\\/]*)
  6837. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6838. ;;
  6839. *)
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. test -z "$as_dir" && as_dir=.
  6845. for ac_exec_ext in '' $ac_executable_extensions; do
  6846. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6847. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6848. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6849. break 2
  6850. fi
  6851. done
  6852. done
  6853. test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
  6854. ;;
  6855. esac
  6856. fi
  6857. LN=$ac_cv_path_LN
  6858. if test -n "$LN"; then
  6859. echo "$as_me:$LINENO: result: $LN" >&5
  6860. echo "${ECHO_T}$LN" >&6
  6861. else
  6862. echo "$as_me:$LINENO: result: no" >&5
  6863. echo "${ECHO_T}no" >&6
  6864. fi
  6865. # Extract the first word of "sed", so it can be a program name with args.
  6866. set dummy sed; ac_word=$2
  6867. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6868. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6869. if test "${ac_cv_path_SED+set}" = set; then
  6870. echo $ECHO_N "(cached) $ECHO_C" >&6
  6871. else
  6872. case $SED in
  6873. [\\/]* | ?:[\\/]*)
  6874. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  6875. ;;
  6876. *)
  6877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6878. for as_dir in $PATH
  6879. do
  6880. IFS=$as_save_IFS
  6881. test -z "$as_dir" && as_dir=.
  6882. for ac_exec_ext in '' $ac_executable_extensions; do
  6883. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6884. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  6885. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6886. break 2
  6887. fi
  6888. done
  6889. done
  6890. test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
  6891. ;;
  6892. esac
  6893. fi
  6894. SED=$ac_cv_path_SED
  6895. if test -n "$SED"; then
  6896. echo "$as_me:$LINENO: result: $SED" >&5
  6897. echo "${ECHO_T}$SED" >&6
  6898. else
  6899. echo "$as_me:$LINENO: result: no" >&5
  6900. echo "${ECHO_T}no" >&6
  6901. fi
  6902. # Extract the first word of "echo", so it can be a program name with args.
  6903. set dummy echo; ac_word=$2
  6904. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6906. if test "${ac_cv_path_ECHO+set}" = set; then
  6907. echo $ECHO_N "(cached) $ECHO_C" >&6
  6908. else
  6909. case $ECHO in
  6910. [\\/]* | ?:[\\/]*)
  6911. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  6912. ;;
  6913. *)
  6914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6915. for as_dir in $PATH
  6916. do
  6917. IFS=$as_save_IFS
  6918. test -z "$as_dir" && as_dir=.
  6919. for ac_exec_ext in '' $ac_executable_extensions; do
  6920. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6921. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  6922. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6923. break 2
  6924. fi
  6925. done
  6926. done
  6927. test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
  6928. ;;
  6929. esac
  6930. fi
  6931. ECHO=$ac_cv_path_ECHO
  6932. if test -n "$ECHO"; then
  6933. echo "$as_me:$LINENO: result: $ECHO" >&5
  6934. echo "${ECHO_T}$ECHO" >&6
  6935. else
  6936. echo "$as_me:$LINENO: result: no" >&5
  6937. echo "${ECHO_T}no" >&6
  6938. fi
  6939. # Extract the first word of "cmp", so it can be a program name with args.
  6940. set dummy cmp; ac_word=$2
  6941. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6943. if test "${ac_cv_path_CMP+set}" = set; then
  6944. echo $ECHO_N "(cached) $ECHO_C" >&6
  6945. else
  6946. case $CMP in
  6947. [\\/]* | ?:[\\/]*)
  6948. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6949. ;;
  6950. *)
  6951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6952. for as_dir in $PATH
  6953. do
  6954. IFS=$as_save_IFS
  6955. test -z "$as_dir" && as_dir=.
  6956. for ac_exec_ext in '' $ac_executable_extensions; do
  6957. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6958. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6959. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6960. break 2
  6961. fi
  6962. done
  6963. done
  6964. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
  6965. ;;
  6966. esac
  6967. fi
  6968. CMP=$ac_cv_path_CMP
  6969. if test -n "$CMP"; then
  6970. echo "$as_me:$LINENO: result: $CMP" >&5
  6971. echo "${ECHO_T}$CMP" >&6
  6972. else
  6973. echo "$as_me:$LINENO: result: no" >&5
  6974. echo "${ECHO_T}no" >&6
  6975. fi
  6976. # Extract the first word of "tbl", so it can be a program name with args.
  6977. set dummy tbl; ac_word=$2
  6978. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6980. if test "${ac_cv_path_TBL+set}" = set; then
  6981. echo $ECHO_N "(cached) $ECHO_C" >&6
  6982. else
  6983. case $TBL in
  6984. [\\/]* | ?:[\\/]*)
  6985. ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
  6986. ;;
  6987. *)
  6988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6989. for as_dir in $PATH
  6990. do
  6991. IFS=$as_save_IFS
  6992. test -z "$as_dir" && as_dir=.
  6993. for ac_exec_ext in '' $ac_executable_extensions; do
  6994. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6995. ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
  6996. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6997. break 2
  6998. fi
  6999. done
  7000. done
  7001. ;;
  7002. esac
  7003. fi
  7004. TBL=$ac_cv_path_TBL
  7005. if test -n "$TBL"; then
  7006. echo "$as_me:$LINENO: result: $TBL" >&5
  7007. echo "${ECHO_T}$TBL" >&6
  7008. else
  7009. echo "$as_me:$LINENO: result: no" >&5
  7010. echo "${ECHO_T}no" >&6
  7011. fi
  7012. echo "$as_me:$LINENO: checking for X" >&5
  7013. echo $ECHO_N "checking for X... $ECHO_C" >&6
  7014. # Check whether --with-x or --without-x was given.
  7015. if test "${with_x+set}" = set; then
  7016. withval="$with_x"
  7017. fi;
  7018. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  7019. if test "x$with_x" = xno; then
  7020. # The user explicitly disabled X.
  7021. have_x=disabled
  7022. else
  7023. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  7024. # Both variables are already set.
  7025. have_x=yes
  7026. else
  7027. if test "${ac_cv_have_x+set}" = set; then
  7028. echo $ECHO_N "(cached) $ECHO_C" >&6
  7029. else
  7030. # One or both of the vars are not set, and there is no cached value.
  7031. ac_x_includes=no ac_x_libraries=no
  7032. rm -fr conftest.dir
  7033. if mkdir conftest.dir; then
  7034. cd conftest.dir
  7035. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  7036. cat >Imakefile <<'_ACEOF'
  7037. acfindx:
  7038. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  7039. _ACEOF
  7040. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  7041. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  7042. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  7043. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  7044. for ac_extension in a so sl; do
  7045. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  7046. test -f $ac_im_libdir/libX11.$ac_extension; then
  7047. ac_im_usrlibdir=$ac_im_libdir; break
  7048. fi
  7049. done
  7050. # Screen out bogus values from the imake configuration. They are
  7051. # bogus both because they are the default anyway, and because
  7052. # using them would break gcc on systems where it needs fixed includes.
  7053. case $ac_im_incroot in
  7054. /usr/include) ;;
  7055. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  7056. esac
  7057. case $ac_im_usrlibdir in
  7058. /usr/lib | /lib) ;;
  7059. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  7060. esac
  7061. fi
  7062. cd ..
  7063. rm -fr conftest.dir
  7064. fi
  7065. # Standard set of common directories for X headers.
  7066. # Check X11 before X11Rn because it is often a symlink to the current release.
  7067. ac_x_header_dirs='
  7068. /usr/X11/include
  7069. /usr/X11R6/include
  7070. /usr/X11R5/include
  7071. /usr/X11R4/include
  7072. /usr/include/X11
  7073. /usr/include/X11R6
  7074. /usr/include/X11R5
  7075. /usr/include/X11R4
  7076. /usr/local/X11/include
  7077. /usr/local/X11R6/include
  7078. /usr/local/X11R5/include
  7079. /usr/local/X11R4/include
  7080. /usr/local/include/X11
  7081. /usr/local/include/X11R6
  7082. /usr/local/include/X11R5
  7083. /usr/local/include/X11R4
  7084. /usr/X386/include
  7085. /usr/x386/include
  7086. /usr/XFree86/include/X11
  7087. /usr/include
  7088. /usr/local/include
  7089. /usr/unsupported/include
  7090. /usr/athena/include
  7091. /usr/local/x11r5/include
  7092. /usr/lpp/Xamples/include
  7093. /usr/openwin/include
  7094. /usr/openwin/share/include'
  7095. if test "$ac_x_includes" = no; then
  7096. # Guess where to find include files, by looking for Intrinsic.h.
  7097. # First, try using that file with no special directory specified.
  7098. cat >conftest.$ac_ext <<_ACEOF
  7099. #line $LINENO "configure"
  7100. /* confdefs.h. */
  7101. _ACEOF
  7102. cat confdefs.h >>conftest.$ac_ext
  7103. cat >>conftest.$ac_ext <<_ACEOF
  7104. /* end confdefs.h. */
  7105. #include <X11/Intrinsic.h>
  7106. _ACEOF
  7107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } >/dev/null; then
  7115. if test -s conftest.err; then
  7116. ac_cpp_err=$ac_c_preproc_warn_flag
  7117. else
  7118. ac_cpp_err=
  7119. fi
  7120. else
  7121. ac_cpp_err=yes
  7122. fi
  7123. if test -z "$ac_cpp_err"; then
  7124. # We can compile using X headers with no special include directory.
  7125. ac_x_includes=
  7126. else
  7127. echo "$as_me: failed program was:" >&5
  7128. sed 's/^/| /' conftest.$ac_ext >&5
  7129. for ac_dir in $ac_x_header_dirs; do
  7130. if test -r "$ac_dir/X11/Intrinsic.h"; then
  7131. ac_x_includes=$ac_dir
  7132. break
  7133. fi
  7134. done
  7135. fi
  7136. rm -f conftest.err conftest.$ac_ext
  7137. fi # $ac_x_includes = no
  7138. if test "$ac_x_libraries" = no; then
  7139. # Check for the libraries.
  7140. # See if we find them without any special options.
  7141. # Don't add to $LIBS permanently.
  7142. ac_save_LIBS=$LIBS
  7143. LIBS="-lXt $LIBS"
  7144. cat >conftest.$ac_ext <<_ACEOF
  7145. #line $LINENO "configure"
  7146. /* confdefs.h. */
  7147. _ACEOF
  7148. cat confdefs.h >>conftest.$ac_ext
  7149. cat >>conftest.$ac_ext <<_ACEOF
  7150. /* end confdefs.h. */
  7151. #include <X11/Intrinsic.h>
  7152. int
  7153. main ()
  7154. {
  7155. XtMalloc (0)
  7156. ;
  7157. return 0;
  7158. }
  7159. _ACEOF
  7160. rm -f conftest.$ac_objext conftest$ac_exeext
  7161. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7162. (eval $ac_link) 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); } &&
  7166. { ac_try='test -s conftest$ac_exeext'
  7167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7168. (eval $ac_try) 2>&5
  7169. ac_status=$?
  7170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7171. (exit $ac_status); }; }; then
  7172. LIBS=$ac_save_LIBS
  7173. # We can link X programs with no special library path.
  7174. ac_x_libraries=
  7175. else
  7176. echo "$as_me: failed program was:" >&5
  7177. sed 's/^/| /' conftest.$ac_ext >&5
  7178. LIBS=$ac_save_LIBS
  7179. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  7180. do
  7181. # Don't even attempt the hair of trying to link an X program!
  7182. for ac_extension in a so sl; do
  7183. if test -r $ac_dir/libXt.$ac_extension; then
  7184. ac_x_libraries=$ac_dir
  7185. break 2
  7186. fi
  7187. done
  7188. done
  7189. fi
  7190. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7191. fi # $ac_x_libraries = no
  7192. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  7193. # Didn't find X anywhere. Cache the known absence of X.
  7194. ac_cv_have_x="have_x=no"
  7195. else
  7196. # Record where we found X for the cache.
  7197. ac_cv_have_x="have_x=yes \
  7198. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  7199. fi
  7200. fi
  7201. fi
  7202. eval "$ac_cv_have_x"
  7203. fi # $with_x != no
  7204. if test "$have_x" != yes; then
  7205. echo "$as_me:$LINENO: result: $have_x" >&5
  7206. echo "${ECHO_T}$have_x" >&6
  7207. no_x=yes
  7208. else
  7209. # If each of the values was on the command line, it overrides each guess.
  7210. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  7211. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  7212. # Update the cache value to reflect the command line values.
  7213. ac_cv_have_x="have_x=yes \
  7214. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  7215. echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  7216. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  7217. fi
  7218. if test "$no_x" = yes; then
  7219. # Not all programs may use this symbol, but it does not hurt to define it.
  7220. cat >>confdefs.h <<\_ACEOF
  7221. #define X_DISPLAY_MISSING 1
  7222. _ACEOF
  7223. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  7224. else
  7225. if test -n "$x_includes"; then
  7226. X_CFLAGS="$X_CFLAGS -I$x_includes"
  7227. fi
  7228. # It would also be nice to do this for all -L options, not just this one.
  7229. if test -n "$x_libraries"; then
  7230. X_LIBS="$X_LIBS -L$x_libraries"
  7231. # For Solaris; some versions of Sun CC require a space after -R and
  7232. # others require no space. Words are not sufficient . . . .
  7233. case `(uname -sr) 2>/dev/null` in
  7234. "SunOS 5"*)
  7235. echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  7236. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  7237. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  7238. cat >conftest.$ac_ext <<_ACEOF
  7239. #line $LINENO "configure"
  7240. /* confdefs.h. */
  7241. _ACEOF
  7242. cat confdefs.h >>conftest.$ac_ext
  7243. cat >>conftest.$ac_ext <<_ACEOF
  7244. /* end confdefs.h. */
  7245. int
  7246. main ()
  7247. {
  7248. ;
  7249. return 0;
  7250. }
  7251. _ACEOF
  7252. rm -f conftest.$ac_objext conftest$ac_exeext
  7253. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7254. (eval $ac_link) 2>&5
  7255. ac_status=$?
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } &&
  7258. { ac_try='test -s conftest$ac_exeext'
  7259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7260. (eval $ac_try) 2>&5
  7261. ac_status=$?
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); }; }; then
  7264. ac_R_nospace=yes
  7265. else
  7266. echo "$as_me: failed program was:" >&5
  7267. sed 's/^/| /' conftest.$ac_ext >&5
  7268. ac_R_nospace=no
  7269. fi
  7270. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7271. if test $ac_R_nospace = yes; then
  7272. echo "$as_me:$LINENO: result: no" >&5
  7273. echo "${ECHO_T}no" >&6
  7274. X_LIBS="$X_LIBS -R$x_libraries"
  7275. else
  7276. LIBS="$ac_xsave_LIBS -R $x_libraries"
  7277. cat >conftest.$ac_ext <<_ACEOF
  7278. #line $LINENO "configure"
  7279. /* confdefs.h. */
  7280. _ACEOF
  7281. cat confdefs.h >>conftest.$ac_ext
  7282. cat >>conftest.$ac_ext <<_ACEOF
  7283. /* end confdefs.h. */
  7284. int
  7285. main ()
  7286. {
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. rm -f conftest.$ac_objext conftest$ac_exeext
  7292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7293. (eval $ac_link) 2>&5
  7294. ac_status=$?
  7295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7296. (exit $ac_status); } &&
  7297. { ac_try='test -s conftest$ac_exeext'
  7298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7299. (eval $ac_try) 2>&5
  7300. ac_status=$?
  7301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. (exit $ac_status); }; }; then
  7303. ac_R_space=yes
  7304. else
  7305. echo "$as_me: failed program was:" >&5
  7306. sed 's/^/| /' conftest.$ac_ext >&5
  7307. ac_R_space=no
  7308. fi
  7309. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7310. if test $ac_R_space = yes; then
  7311. echo "$as_me:$LINENO: result: yes" >&5
  7312. echo "${ECHO_T}yes" >&6
  7313. X_LIBS="$X_LIBS -R $x_libraries"
  7314. else
  7315. echo "$as_me:$LINENO: result: neither works" >&5
  7316. echo "${ECHO_T}neither works" >&6
  7317. fi
  7318. fi
  7319. LIBS=$ac_xsave_LIBS
  7320. esac
  7321. fi
  7322. # Check for system-dependent libraries X programs must link with.
  7323. # Do this before checking for the system-independent R6 libraries
  7324. # (-lICE), since we may need -lsocket or whatever for X linking.
  7325. if test "$ISC" = yes; then
  7326. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  7327. else
  7328. # Martyn Johnson says this is needed for Ultrix, if the X
  7329. # libraries were built with DECnet support. And Karl Berry says
  7330. # the Alpha needs dnet_stub (dnet does not exist).
  7331. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  7332. cat >conftest.$ac_ext <<_ACEOF
  7333. #line $LINENO "configure"
  7334. /* confdefs.h. */
  7335. _ACEOF
  7336. cat confdefs.h >>conftest.$ac_ext
  7337. cat >>conftest.$ac_ext <<_ACEOF
  7338. /* end confdefs.h. */
  7339. /* Override any gcc2 internal prototype to avoid an error. */
  7340. #ifdef __cplusplus
  7341. extern "C"
  7342. #endif
  7343. /* We use char because int might match the return type of a gcc2
  7344. builtin and then its argument prototype would still apply. */
  7345. char XOpenDisplay ();
  7346. int
  7347. main ()
  7348. {
  7349. XOpenDisplay ();
  7350. ;
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. rm -f conftest.$ac_objext conftest$ac_exeext
  7355. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7356. (eval $ac_link) 2>&5
  7357. ac_status=$?
  7358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7359. (exit $ac_status); } &&
  7360. { ac_try='test -s conftest$ac_exeext'
  7361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7362. (eval $ac_try) 2>&5
  7363. ac_status=$?
  7364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7365. (exit $ac_status); }; }; then
  7366. :
  7367. else
  7368. echo "$as_me: failed program was:" >&5
  7369. sed 's/^/| /' conftest.$ac_ext >&5
  7370. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  7371. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  7372. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  7373. echo $ECHO_N "(cached) $ECHO_C" >&6
  7374. else
  7375. ac_check_lib_save_LIBS=$LIBS
  7376. LIBS="-ldnet $LIBS"
  7377. cat >conftest.$ac_ext <<_ACEOF
  7378. #line $LINENO "configure"
  7379. /* confdefs.h. */
  7380. _ACEOF
  7381. cat confdefs.h >>conftest.$ac_ext
  7382. cat >>conftest.$ac_ext <<_ACEOF
  7383. /* end confdefs.h. */
  7384. /* Override any gcc2 internal prototype to avoid an error. */
  7385. #ifdef __cplusplus
  7386. extern "C"
  7387. #endif
  7388. /* We use char because int might match the return type of a gcc2
  7389. builtin and then its argument prototype would still apply. */
  7390. char dnet_ntoa ();
  7391. int
  7392. main ()
  7393. {
  7394. dnet_ntoa ();
  7395. ;
  7396. return 0;
  7397. }
  7398. _ACEOF
  7399. rm -f conftest.$ac_objext conftest$ac_exeext
  7400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7401. (eval $ac_link) 2>&5
  7402. ac_status=$?
  7403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7404. (exit $ac_status); } &&
  7405. { ac_try='test -s conftest$ac_exeext'
  7406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7407. (eval $ac_try) 2>&5
  7408. ac_status=$?
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); }; }; then
  7411. ac_cv_lib_dnet_dnet_ntoa=yes
  7412. else
  7413. echo "$as_me: failed program was:" >&5
  7414. sed 's/^/| /' conftest.$ac_ext >&5
  7415. ac_cv_lib_dnet_dnet_ntoa=no
  7416. fi
  7417. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7418. LIBS=$ac_check_lib_save_LIBS
  7419. fi
  7420. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  7421. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  7422. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  7423. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  7424. fi
  7425. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  7426. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  7427. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  7428. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  7429. echo $ECHO_N "(cached) $ECHO_C" >&6
  7430. else
  7431. ac_check_lib_save_LIBS=$LIBS
  7432. LIBS="-ldnet_stub $LIBS"
  7433. cat >conftest.$ac_ext <<_ACEOF
  7434. #line $LINENO "configure"
  7435. /* confdefs.h. */
  7436. _ACEOF
  7437. cat confdefs.h >>conftest.$ac_ext
  7438. cat >>conftest.$ac_ext <<_ACEOF
  7439. /* end confdefs.h. */
  7440. /* Override any gcc2 internal prototype to avoid an error. */
  7441. #ifdef __cplusplus
  7442. extern "C"
  7443. #endif
  7444. /* We use char because int might match the return type of a gcc2
  7445. builtin and then its argument prototype would still apply. */
  7446. char dnet_ntoa ();
  7447. int
  7448. main ()
  7449. {
  7450. dnet_ntoa ();
  7451. ;
  7452. return 0;
  7453. }
  7454. _ACEOF
  7455. rm -f conftest.$ac_objext conftest$ac_exeext
  7456. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7457. (eval $ac_link) 2>&5
  7458. ac_status=$?
  7459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7460. (exit $ac_status); } &&
  7461. { ac_try='test -s conftest$ac_exeext'
  7462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7463. (eval $ac_try) 2>&5
  7464. ac_status=$?
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. (exit $ac_status); }; }; then
  7467. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  7468. else
  7469. echo "$as_me: failed program was:" >&5
  7470. sed 's/^/| /' conftest.$ac_ext >&5
  7471. ac_cv_lib_dnet_stub_dnet_ntoa=no
  7472. fi
  7473. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7474. LIBS=$ac_check_lib_save_LIBS
  7475. fi
  7476. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  7477. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  7478. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  7479. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  7480. fi
  7481. fi
  7482. fi
  7483. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7484. LIBS="$ac_xsave_LIBS"
  7485. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  7486. # to get the SysV transport functions.
  7487. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  7488. # needs -lnsl.
  7489. # The nsl library prevents programs from opening the X display
  7490. # on Irix 5.2, according to T.E. Dickey.
  7491. # The functions gethostbyname, getservbyname, and inet_addr are
  7492. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  7493. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  7494. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  7495. if test "${ac_cv_func_gethostbyname+set}" = set; then
  7496. echo $ECHO_N "(cached) $ECHO_C" >&6
  7497. else
  7498. cat >conftest.$ac_ext <<_ACEOF
  7499. #line $LINENO "configure"
  7500. /* confdefs.h. */
  7501. _ACEOF
  7502. cat confdefs.h >>conftest.$ac_ext
  7503. cat >>conftest.$ac_ext <<_ACEOF
  7504. /* end confdefs.h. */
  7505. /* System header to define __stub macros and hopefully few prototypes,
  7506. which can conflict with char gethostbyname (); below.
  7507. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7508. <limits.h> exists even on freestanding compilers. */
  7509. #ifdef __STDC__
  7510. # include <limits.h>
  7511. #else
  7512. # include <assert.h>
  7513. #endif
  7514. /* Override any gcc2 internal prototype to avoid an error. */
  7515. #ifdef __cplusplus
  7516. extern "C"
  7517. {
  7518. #endif
  7519. /* We use char because int might match the return type of a gcc2
  7520. builtin and then its argument prototype would still apply. */
  7521. char gethostbyname ();
  7522. /* The GNU C library defines this for functions which it implements
  7523. to always fail with ENOSYS. Some functions are actually named
  7524. something starting with __ and the normal name is an alias. */
  7525. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  7526. choke me
  7527. #else
  7528. char (*f) () = gethostbyname;
  7529. #endif
  7530. #ifdef __cplusplus
  7531. }
  7532. #endif
  7533. int
  7534. main ()
  7535. {
  7536. return f != gethostbyname;
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. rm -f conftest.$ac_objext conftest$ac_exeext
  7542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7543. (eval $ac_link) 2>&5
  7544. ac_status=$?
  7545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7546. (exit $ac_status); } &&
  7547. { ac_try='test -s conftest$ac_exeext'
  7548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7549. (eval $ac_try) 2>&5
  7550. ac_status=$?
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); }; }; then
  7553. ac_cv_func_gethostbyname=yes
  7554. else
  7555. echo "$as_me: failed program was:" >&5
  7556. sed 's/^/| /' conftest.$ac_ext >&5
  7557. ac_cv_func_gethostbyname=no
  7558. fi
  7559. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7560. fi
  7561. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  7562. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  7563. if test $ac_cv_func_gethostbyname = no; then
  7564. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  7565. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  7566. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  7567. echo $ECHO_N "(cached) $ECHO_C" >&6
  7568. else
  7569. ac_check_lib_save_LIBS=$LIBS
  7570. LIBS="-lnsl $LIBS"
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. #line $LINENO "configure"
  7573. /* confdefs.h. */
  7574. _ACEOF
  7575. cat confdefs.h >>conftest.$ac_ext
  7576. cat >>conftest.$ac_ext <<_ACEOF
  7577. /* end confdefs.h. */
  7578. /* Override any gcc2 internal prototype to avoid an error. */
  7579. #ifdef __cplusplus
  7580. extern "C"
  7581. #endif
  7582. /* We use char because int might match the return type of a gcc2
  7583. builtin and then its argument prototype would still apply. */
  7584. char gethostbyname ();
  7585. int
  7586. main ()
  7587. {
  7588. gethostbyname ();
  7589. ;
  7590. return 0;
  7591. }
  7592. _ACEOF
  7593. rm -f conftest.$ac_objext conftest$ac_exeext
  7594. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7595. (eval $ac_link) 2>&5
  7596. ac_status=$?
  7597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7598. (exit $ac_status); } &&
  7599. { ac_try='test -s conftest$ac_exeext'
  7600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7601. (eval $ac_try) 2>&5
  7602. ac_status=$?
  7603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); }; }; then
  7605. ac_cv_lib_nsl_gethostbyname=yes
  7606. else
  7607. echo "$as_me: failed program was:" >&5
  7608. sed 's/^/| /' conftest.$ac_ext >&5
  7609. ac_cv_lib_nsl_gethostbyname=no
  7610. fi
  7611. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7612. LIBS=$ac_check_lib_save_LIBS
  7613. fi
  7614. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7615. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  7616. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  7617. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  7618. fi
  7619. if test $ac_cv_lib_nsl_gethostbyname = no; then
  7620. echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  7621. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  7622. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  7623. echo $ECHO_N "(cached) $ECHO_C" >&6
  7624. else
  7625. ac_check_lib_save_LIBS=$LIBS
  7626. LIBS="-lbsd $LIBS"
  7627. cat >conftest.$ac_ext <<_ACEOF
  7628. #line $LINENO "configure"
  7629. /* confdefs.h. */
  7630. _ACEOF
  7631. cat confdefs.h >>conftest.$ac_ext
  7632. cat >>conftest.$ac_ext <<_ACEOF
  7633. /* end confdefs.h. */
  7634. /* Override any gcc2 internal prototype to avoid an error. */
  7635. #ifdef __cplusplus
  7636. extern "C"
  7637. #endif
  7638. /* We use char because int might match the return type of a gcc2
  7639. builtin and then its argument prototype would still apply. */
  7640. char gethostbyname ();
  7641. int
  7642. main ()
  7643. {
  7644. gethostbyname ();
  7645. ;
  7646. return 0;
  7647. }
  7648. _ACEOF
  7649. rm -f conftest.$ac_objext conftest$ac_exeext
  7650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7651. (eval $ac_link) 2>&5
  7652. ac_status=$?
  7653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7654. (exit $ac_status); } &&
  7655. { ac_try='test -s conftest$ac_exeext'
  7656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7657. (eval $ac_try) 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); }; }; then
  7661. ac_cv_lib_bsd_gethostbyname=yes
  7662. else
  7663. echo "$as_me: failed program was:" >&5
  7664. sed 's/^/| /' conftest.$ac_ext >&5
  7665. ac_cv_lib_bsd_gethostbyname=no
  7666. fi
  7667. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7668. LIBS=$ac_check_lib_save_LIBS
  7669. fi
  7670. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  7671. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  7672. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  7673. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  7674. fi
  7675. fi
  7676. fi
  7677. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  7678. # socket/setsockopt and other routines are undefined under SCO ODT
  7679. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  7680. # on later versions), says Simon Leinen: it contains gethostby*
  7681. # variants that don't use the name server (or something). -lsocket
  7682. # must be given before -lnsl if both are needed. We assume that
  7683. # if connect needs -lnsl, so does gethostbyname.
  7684. echo "$as_me:$LINENO: checking for connect" >&5
  7685. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  7686. if test "${ac_cv_func_connect+set}" = set; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. cat >conftest.$ac_ext <<_ACEOF
  7690. #line $LINENO "configure"
  7691. /* confdefs.h. */
  7692. _ACEOF
  7693. cat confdefs.h >>conftest.$ac_ext
  7694. cat >>conftest.$ac_ext <<_ACEOF
  7695. /* end confdefs.h. */
  7696. /* System header to define __stub macros and hopefully few prototypes,
  7697. which can conflict with char connect (); below.
  7698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7699. <limits.h> exists even on freestanding compilers. */
  7700. #ifdef __STDC__
  7701. # include <limits.h>
  7702. #else
  7703. # include <assert.h>
  7704. #endif
  7705. /* Override any gcc2 internal prototype to avoid an error. */
  7706. #ifdef __cplusplus
  7707. extern "C"
  7708. {
  7709. #endif
  7710. /* We use char because int might match the return type of a gcc2
  7711. builtin and then its argument prototype would still apply. */
  7712. char connect ();
  7713. /* The GNU C library defines this for functions which it implements
  7714. to always fail with ENOSYS. Some functions are actually named
  7715. something starting with __ and the normal name is an alias. */
  7716. #if defined (__stub_connect) || defined (__stub___connect)
  7717. choke me
  7718. #else
  7719. char (*f) () = connect;
  7720. #endif
  7721. #ifdef __cplusplus
  7722. }
  7723. #endif
  7724. int
  7725. main ()
  7726. {
  7727. return f != connect;
  7728. ;
  7729. return 0;
  7730. }
  7731. _ACEOF
  7732. rm -f conftest.$ac_objext conftest$ac_exeext
  7733. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7734. (eval $ac_link) 2>&5
  7735. ac_status=$?
  7736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7737. (exit $ac_status); } &&
  7738. { ac_try='test -s conftest$ac_exeext'
  7739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7740. (eval $ac_try) 2>&5
  7741. ac_status=$?
  7742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7743. (exit $ac_status); }; }; then
  7744. ac_cv_func_connect=yes
  7745. else
  7746. echo "$as_me: failed program was:" >&5
  7747. sed 's/^/| /' conftest.$ac_ext >&5
  7748. ac_cv_func_connect=no
  7749. fi
  7750. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7751. fi
  7752. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  7753. echo "${ECHO_T}$ac_cv_func_connect" >&6
  7754. if test $ac_cv_func_connect = no; then
  7755. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  7756. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  7757. if test "${ac_cv_lib_socket_connect+set}" = set; then
  7758. echo $ECHO_N "(cached) $ECHO_C" >&6
  7759. else
  7760. ac_check_lib_save_LIBS=$LIBS
  7761. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  7762. cat >conftest.$ac_ext <<_ACEOF
  7763. #line $LINENO "configure"
  7764. /* confdefs.h. */
  7765. _ACEOF
  7766. cat confdefs.h >>conftest.$ac_ext
  7767. cat >>conftest.$ac_ext <<_ACEOF
  7768. /* end confdefs.h. */
  7769. /* Override any gcc2 internal prototype to avoid an error. */
  7770. #ifdef __cplusplus
  7771. extern "C"
  7772. #endif
  7773. /* We use char because int might match the return type of a gcc2
  7774. builtin and then its argument prototype would still apply. */
  7775. char connect ();
  7776. int
  7777. main ()
  7778. {
  7779. connect ();
  7780. ;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. rm -f conftest.$ac_objext conftest$ac_exeext
  7785. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7786. (eval $ac_link) 2>&5
  7787. ac_status=$?
  7788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7789. (exit $ac_status); } &&
  7790. { ac_try='test -s conftest$ac_exeext'
  7791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7792. (eval $ac_try) 2>&5
  7793. ac_status=$?
  7794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7795. (exit $ac_status); }; }; then
  7796. ac_cv_lib_socket_connect=yes
  7797. else
  7798. echo "$as_me: failed program was:" >&5
  7799. sed 's/^/| /' conftest.$ac_ext >&5
  7800. ac_cv_lib_socket_connect=no
  7801. fi
  7802. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7803. LIBS=$ac_check_lib_save_LIBS
  7804. fi
  7805. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  7806. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  7807. if test $ac_cv_lib_socket_connect = yes; then
  7808. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  7809. fi
  7810. fi
  7811. # Guillermo Gomez says -lposix is necessary on A/UX.
  7812. echo "$as_me:$LINENO: checking for remove" >&5
  7813. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  7814. if test "${ac_cv_func_remove+set}" = set; then
  7815. echo $ECHO_N "(cached) $ECHO_C" >&6
  7816. else
  7817. cat >conftest.$ac_ext <<_ACEOF
  7818. #line $LINENO "configure"
  7819. /* confdefs.h. */
  7820. _ACEOF
  7821. cat confdefs.h >>conftest.$ac_ext
  7822. cat >>conftest.$ac_ext <<_ACEOF
  7823. /* end confdefs.h. */
  7824. /* System header to define __stub macros and hopefully few prototypes,
  7825. which can conflict with char remove (); below.
  7826. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7827. <limits.h> exists even on freestanding compilers. */
  7828. #ifdef __STDC__
  7829. # include <limits.h>
  7830. #else
  7831. # include <assert.h>
  7832. #endif
  7833. /* Override any gcc2 internal prototype to avoid an error. */
  7834. #ifdef __cplusplus
  7835. extern "C"
  7836. {
  7837. #endif
  7838. /* We use char because int might match the return type of a gcc2
  7839. builtin and then its argument prototype would still apply. */
  7840. char remove ();
  7841. /* The GNU C library defines this for functions which it implements
  7842. to always fail with ENOSYS. Some functions are actually named
  7843. something starting with __ and the normal name is an alias. */
  7844. #if defined (__stub_remove) || defined (__stub___remove)
  7845. choke me
  7846. #else
  7847. char (*f) () = remove;
  7848. #endif
  7849. #ifdef __cplusplus
  7850. }
  7851. #endif
  7852. int
  7853. main ()
  7854. {
  7855. return f != remove;
  7856. ;
  7857. return 0;
  7858. }
  7859. _ACEOF
  7860. rm -f conftest.$ac_objext conftest$ac_exeext
  7861. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7862. (eval $ac_link) 2>&5
  7863. ac_status=$?
  7864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } &&
  7866. { ac_try='test -s conftest$ac_exeext'
  7867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7868. (eval $ac_try) 2>&5
  7869. ac_status=$?
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); }; }; then
  7872. ac_cv_func_remove=yes
  7873. else
  7874. echo "$as_me: failed program was:" >&5
  7875. sed 's/^/| /' conftest.$ac_ext >&5
  7876. ac_cv_func_remove=no
  7877. fi
  7878. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7879. fi
  7880. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  7881. echo "${ECHO_T}$ac_cv_func_remove" >&6
  7882. if test $ac_cv_func_remove = no; then
  7883. echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  7884. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  7885. if test "${ac_cv_lib_posix_remove+set}" = set; then
  7886. echo $ECHO_N "(cached) $ECHO_C" >&6
  7887. else
  7888. ac_check_lib_save_LIBS=$LIBS
  7889. LIBS="-lposix $LIBS"
  7890. cat >conftest.$ac_ext <<_ACEOF
  7891. #line $LINENO "configure"
  7892. /* confdefs.h. */
  7893. _ACEOF
  7894. cat confdefs.h >>conftest.$ac_ext
  7895. cat >>conftest.$ac_ext <<_ACEOF
  7896. /* end confdefs.h. */
  7897. /* Override any gcc2 internal prototype to avoid an error. */
  7898. #ifdef __cplusplus
  7899. extern "C"
  7900. #endif
  7901. /* We use char because int might match the return type of a gcc2
  7902. builtin and then its argument prototype would still apply. */
  7903. char remove ();
  7904. int
  7905. main ()
  7906. {
  7907. remove ();
  7908. ;
  7909. return 0;
  7910. }
  7911. _ACEOF
  7912. rm -f conftest.$ac_objext conftest$ac_exeext
  7913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7914. (eval $ac_link) 2>&5
  7915. ac_status=$?
  7916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7917. (exit $ac_status); } &&
  7918. { ac_try='test -s conftest$ac_exeext'
  7919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7920. (eval $ac_try) 2>&5
  7921. ac_status=$?
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); }; }; then
  7924. ac_cv_lib_posix_remove=yes
  7925. else
  7926. echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. ac_cv_lib_posix_remove=no
  7929. fi
  7930. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7931. LIBS=$ac_check_lib_save_LIBS
  7932. fi
  7933. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  7934. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  7935. if test $ac_cv_lib_posix_remove = yes; then
  7936. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  7937. fi
  7938. fi
  7939. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  7940. echo "$as_me:$LINENO: checking for shmat" >&5
  7941. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  7942. if test "${ac_cv_func_shmat+set}" = set; then
  7943. echo $ECHO_N "(cached) $ECHO_C" >&6
  7944. else
  7945. cat >conftest.$ac_ext <<_ACEOF
  7946. #line $LINENO "configure"
  7947. /* confdefs.h. */
  7948. _ACEOF
  7949. cat confdefs.h >>conftest.$ac_ext
  7950. cat >>conftest.$ac_ext <<_ACEOF
  7951. /* end confdefs.h. */
  7952. /* System header to define __stub macros and hopefully few prototypes,
  7953. which can conflict with char shmat (); below.
  7954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7955. <limits.h> exists even on freestanding compilers. */
  7956. #ifdef __STDC__
  7957. # include <limits.h>
  7958. #else
  7959. # include <assert.h>
  7960. #endif
  7961. /* Override any gcc2 internal prototype to avoid an error. */
  7962. #ifdef __cplusplus
  7963. extern "C"
  7964. {
  7965. #endif
  7966. /* We use char because int might match the return type of a gcc2
  7967. builtin and then its argument prototype would still apply. */
  7968. char shmat ();
  7969. /* The GNU C library defines this for functions which it implements
  7970. to always fail with ENOSYS. Some functions are actually named
  7971. something starting with __ and the normal name is an alias. */
  7972. #if defined (__stub_shmat) || defined (__stub___shmat)
  7973. choke me
  7974. #else
  7975. char (*f) () = shmat;
  7976. #endif
  7977. #ifdef __cplusplus
  7978. }
  7979. #endif
  7980. int
  7981. main ()
  7982. {
  7983. return f != shmat;
  7984. ;
  7985. return 0;
  7986. }
  7987. _ACEOF
  7988. rm -f conftest.$ac_objext conftest$ac_exeext
  7989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7990. (eval $ac_link) 2>&5
  7991. ac_status=$?
  7992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7993. (exit $ac_status); } &&
  7994. { ac_try='test -s conftest$ac_exeext'
  7995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7996. (eval $ac_try) 2>&5
  7997. ac_status=$?
  7998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7999. (exit $ac_status); }; }; then
  8000. ac_cv_func_shmat=yes
  8001. else
  8002. echo "$as_me: failed program was:" >&5
  8003. sed 's/^/| /' conftest.$ac_ext >&5
  8004. ac_cv_func_shmat=no
  8005. fi
  8006. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8007. fi
  8008. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  8009. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  8010. if test $ac_cv_func_shmat = no; then
  8011. echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  8012. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  8013. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  8014. echo $ECHO_N "(cached) $ECHO_C" >&6
  8015. else
  8016. ac_check_lib_save_LIBS=$LIBS
  8017. LIBS="-lipc $LIBS"
  8018. cat >conftest.$ac_ext <<_ACEOF
  8019. #line $LINENO "configure"
  8020. /* confdefs.h. */
  8021. _ACEOF
  8022. cat confdefs.h >>conftest.$ac_ext
  8023. cat >>conftest.$ac_ext <<_ACEOF
  8024. /* end confdefs.h. */
  8025. /* Override any gcc2 internal prototype to avoid an error. */
  8026. #ifdef __cplusplus
  8027. extern "C"
  8028. #endif
  8029. /* We use char because int might match the return type of a gcc2
  8030. builtin and then its argument prototype would still apply. */
  8031. char shmat ();
  8032. int
  8033. main ()
  8034. {
  8035. shmat ();
  8036. ;
  8037. return 0;
  8038. }
  8039. _ACEOF
  8040. rm -f conftest.$ac_objext conftest$ac_exeext
  8041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8042. (eval $ac_link) 2>&5
  8043. ac_status=$?
  8044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8045. (exit $ac_status); } &&
  8046. { ac_try='test -s conftest$ac_exeext'
  8047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8048. (eval $ac_try) 2>&5
  8049. ac_status=$?
  8050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. (exit $ac_status); }; }; then
  8052. ac_cv_lib_ipc_shmat=yes
  8053. else
  8054. echo "$as_me: failed program was:" >&5
  8055. sed 's/^/| /' conftest.$ac_ext >&5
  8056. ac_cv_lib_ipc_shmat=no
  8057. fi
  8058. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8059. LIBS=$ac_check_lib_save_LIBS
  8060. fi
  8061. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  8062. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  8063. if test $ac_cv_lib_ipc_shmat = yes; then
  8064. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  8065. fi
  8066. fi
  8067. fi
  8068. # Check for libraries that X11R6 Xt/Xaw programs need.
  8069. ac_save_LDFLAGS=$LDFLAGS
  8070. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  8071. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  8072. # check for ICE first), but we must link in the order -lSM -lICE or
  8073. # we get undefined symbols. So assume we have SM if we have ICE.
  8074. # These have to be linked with before -lX11, unlike the other
  8075. # libraries we check for below, so use a different variable.
  8076. # John Interrante, Karl Berry
  8077. echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  8078. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  8079. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  8080. echo $ECHO_N "(cached) $ECHO_C" >&6
  8081. else
  8082. ac_check_lib_save_LIBS=$LIBS
  8083. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  8084. cat >conftest.$ac_ext <<_ACEOF
  8085. #line $LINENO "configure"
  8086. /* confdefs.h. */
  8087. _ACEOF
  8088. cat confdefs.h >>conftest.$ac_ext
  8089. cat >>conftest.$ac_ext <<_ACEOF
  8090. /* end confdefs.h. */
  8091. /* Override any gcc2 internal prototype to avoid an error. */
  8092. #ifdef __cplusplus
  8093. extern "C"
  8094. #endif
  8095. /* We use char because int might match the return type of a gcc2
  8096. builtin and then its argument prototype would still apply. */
  8097. char IceConnectionNumber ();
  8098. int
  8099. main ()
  8100. {
  8101. IceConnectionNumber ();
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext conftest$ac_exeext
  8107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8108. (eval $ac_link) 2>&5
  8109. ac_status=$?
  8110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8111. (exit $ac_status); } &&
  8112. { ac_try='test -s conftest$ac_exeext'
  8113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8114. (eval $ac_try) 2>&5
  8115. ac_status=$?
  8116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117. (exit $ac_status); }; }; then
  8118. ac_cv_lib_ICE_IceConnectionNumber=yes
  8119. else
  8120. echo "$as_me: failed program was:" >&5
  8121. sed 's/^/| /' conftest.$ac_ext >&5
  8122. ac_cv_lib_ICE_IceConnectionNumber=no
  8123. fi
  8124. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8125. LIBS=$ac_check_lib_save_LIBS
  8126. fi
  8127. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  8128. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  8129. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  8130. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  8131. fi
  8132. LDFLAGS=$ac_save_LDFLAGS
  8133. fi
  8134. if test x$support_xpm = xyes; then
  8135. # Initialize some more variables set by options.
  8136. # The variables have the same names as the options, with
  8137. # dashes changed to underlines.
  8138. # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
  8139. # paths, otherwise set no_xpm=yes.
  8140. # Uses ac_ vars as temps to allow command line to override cache and checks.
  8141. echo "$as_me:$LINENO: checking for libXpm" >&5
  8142. echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
  8143. # Check whether --with-xpm_includes or --without-xpm_includes was given.
  8144. if test "${with_xpm_includes+set}" = set; then
  8145. withval="$with_xpm_includes"
  8146. xpm_includes="$withval"
  8147. else
  8148. xpm_includes=NO
  8149. fi;
  8150. # Check whether --with-xpm_library or --without-xpm_library was given.
  8151. if test "${with_xpm_library+set}" = set; then
  8152. withval="$with_xpm_library"
  8153. xpm_libraries="$withval"
  8154. else
  8155. xpm_libraries=NO
  8156. fi;
  8157. # --without-xpm overrides everything else, but does not touch the cache.
  8158. # Check whether --with-xpm or --without-xpm was given.
  8159. if test "${with_xpm+set}" = set; then
  8160. withval="$with_xpm"
  8161. fi;
  8162. if test "$with_xpm" = no; then
  8163. have_xpm=disabled
  8164. else
  8165. if test "${ac_cv_have_xpm+set}" = set; then
  8166. echo $ECHO_N "(cached) $ECHO_C" >&6
  8167. else
  8168. vt_xpm_include_X11=no
  8169. if test -n "$xpm_includes"; then
  8170. vt_xpm_includes=$xpm_includes
  8171. else
  8172. vt_xpm_includes=NO
  8173. fi
  8174. if test -n "$xpm_libraries"; then
  8175. vt_xpm_libraries=$xpm_libraries
  8176. else
  8177. vt_xpm_libraries=NO
  8178. fi
  8179. if test "$vt_xpm_includes" = NO; then
  8180. # Guess where to find xpm.h
  8181. ac_save_CPPFLAGS="$CPPFLAGS"
  8182. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  8183. # First, try using that file with no special directory specified.
  8184. cat >conftest.$ac_ext <<_ACEOF
  8185. #line $LINENO "configure"
  8186. /* confdefs.h. */
  8187. _ACEOF
  8188. cat confdefs.h >>conftest.$ac_ext
  8189. cat >>conftest.$ac_ext <<_ACEOF
  8190. /* end confdefs.h. */
  8191. #include <X11/xpm.h>
  8192. _ACEOF
  8193. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8194. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8195. ac_status=$?
  8196. grep -v '^ *+' conftest.er1 >conftest.err
  8197. rm -f conftest.er1
  8198. cat conftest.err >&5
  8199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8200. (exit $ac_status); } >/dev/null; then
  8201. if test -s conftest.err; then
  8202. ac_cpp_err=$ac_c_preproc_warn_flag
  8203. else
  8204. ac_cpp_err=
  8205. fi
  8206. else
  8207. ac_cpp_err=yes
  8208. fi
  8209. if test -z "$ac_cpp_err"; then
  8210. # We can compile using X headers with no special include directory.
  8211. vt_xpm_includes=
  8212. vt_xpm_include_X11=yes
  8213. else
  8214. echo "$as_me: failed program was:" >&5
  8215. sed 's/^/| /' conftest.$ac_ext >&5
  8216. CPPFLAGS="$ac_save_CPPFLAGS"
  8217. # Look for the header file in a standard set of common directories.
  8218. for ac_dir in \
  8219. /usr/X11/include \
  8220. /usr/X11R6/include \
  8221. /usr/X11R5/include \
  8222. /usr/X11R4/include \
  8223. \
  8224. /usr/include/X11 \
  8225. /usr/include/X11R6 \
  8226. /usr/include/X11R5 \
  8227. /usr/include/X11R4 \
  8228. \
  8229. /usr/local/X11/include \
  8230. /usr/local/X11R6/include \
  8231. /usr/local/X11R5/include \
  8232. /usr/local/X11R4/include \
  8233. \
  8234. /usr/local/include/X11 \
  8235. /usr/local/include/X11R6 \
  8236. /usr/local/include/X11R5 \
  8237. /usr/local/include/X11R4 \
  8238. \
  8239. /usr/X386/include \
  8240. /usr/x386/include \
  8241. /usr/XFree86/include/X11 \
  8242. \
  8243. /usr/include \
  8244. /usr/local/include \
  8245. /usr/unsupported/include \
  8246. /usr/athena/include \
  8247. /usr/local/x11r5/include \
  8248. /usr/lpp/Xamples/include \
  8249. \
  8250. /usr/openwin/include \
  8251. /usr/openwin/share/include \
  8252. ; \
  8253. do
  8254. if test -r "$ac_dir/X11/xpm.h"; then
  8255. vt_xpm_includes="$ac_dir"
  8256. vt_xpm_include_X11=yes
  8257. break
  8258. else
  8259. if test -r "$ac_dir/xpm.h"; then
  8260. vt_xpm_includes=$ac_dir
  8261. break
  8262. fi
  8263. fi
  8264. done
  8265. fi
  8266. rm -f conftest.err conftest.$ac_ext
  8267. fi
  8268. if test "$vt_xpm_libraries" = NO; then
  8269. # Check for the libraries.
  8270. # See if we find them without any special options.
  8271. # Don't add to $LIBS permanently.
  8272. ac_save_LIBS="$LIBS"
  8273. LIBS="$LIBS $X_LIBS -lXpm -lX11"
  8274. cat >conftest.$ac_ext <<_ACEOF
  8275. #line $LINENO "configure"
  8276. /* confdefs.h. */
  8277. _ACEOF
  8278. cat confdefs.h >>conftest.$ac_ext
  8279. cat >>conftest.$ac_ext <<_ACEOF
  8280. /* end confdefs.h. */
  8281. int
  8282. main ()
  8283. {
  8284. XpmReadFileToPixmap()
  8285. ;
  8286. return 0;
  8287. }
  8288. _ACEOF
  8289. rm -f conftest.$ac_objext conftest$ac_exeext
  8290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8291. (eval $ac_link) 2>&5
  8292. ac_status=$?
  8293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8294. (exit $ac_status); } &&
  8295. { ac_try='test -s conftest$ac_exeext'
  8296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8297. (eval $ac_try) 2>&5
  8298. ac_status=$?
  8299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8300. (exit $ac_status); }; }; then
  8301. LIBS="$ac_save_LIBS"
  8302. # We can link libXpm with no special library path.
  8303. vt_xpm_libraries=
  8304. else
  8305. echo "$as_me: failed program was:" >&5
  8306. sed 's/^/| /' conftest.$ac_ext >&5
  8307. LIBS="$ac_save_LIBS"
  8308. # First see if replacing the include by lib works.
  8309. for ac_dir in \
  8310. `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
  8311. /usr/X11/lib \
  8312. /usr/X11R6/lib \
  8313. /usr/X11R5/lib \
  8314. /usr/X11R4/lib \
  8315. \
  8316. /usr/lib/X11 \
  8317. /usr/lib/X11R6 \
  8318. /usr/lib/X11R5 \
  8319. /usr/lib/X11R4 \
  8320. \
  8321. /usr/local/X11/lib \
  8322. /usr/local/X11R6/lib \
  8323. /usr/local/X11R5/lib \
  8324. /usr/local/X11R4/lib \
  8325. \
  8326. /usr/local/lib/X11 \
  8327. /usr/local/lib/X11R6 \
  8328. /usr/local/lib/X11R5 \
  8329. /usr/local/lib/X11R4 \
  8330. \
  8331. /usr/X386/lib \
  8332. /usr/x386/lib \
  8333. /usr/XFree86/lib/X11 \
  8334. \
  8335. /usr/lib \
  8336. /usr/local/lib \
  8337. /usr/unsupported/lib \
  8338. /usr/athena/lib \
  8339. /usr/local/x11r5/lib \
  8340. /usr/lpp/Xamples/lib \
  8341. \
  8342. /usr/openwin/lib \
  8343. /usr/openwin/share/lib \
  8344. ; \
  8345. do
  8346. for ac_extension in a so sl; do
  8347. if test -r $ac_dir/libXpm.$ac_extension; then
  8348. vt_xpm_libraries=$ac_dir
  8349. break 2
  8350. fi
  8351. done
  8352. done
  8353. fi
  8354. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8355. fi
  8356. if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
  8357. ac_cv_have_xpm="have_xpm=no"
  8358. else
  8359. ac_cv_have_xpm="have_xpm=yes \
  8360. vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
  8361. vt_xpm_include_X11=$vt_xpm_include_X11"
  8362. fi
  8363. fi
  8364. eval "$ac_cv_have_xpm"
  8365. fi
  8366. if test "$have_xpm" != yes; then
  8367. echo "$as_me:$LINENO: result: $have_xpm" >&5
  8368. echo "${ECHO_T}$have_xpm" >&6
  8369. no_xpm=yes
  8370. else
  8371. if test "$xpm_includes" != NO; then
  8372. if test "$xpm_includes" = "$vt_xpm_includes"; then
  8373. if test -r "$xpm_includes/X11/xpm.h"; then
  8374. vt_xpm_include_X11=yes
  8375. fi
  8376. else
  8377. vt_xpm_include_X11=no
  8378. if test -z "$xpm_includes"; then
  8379. cat >conftest.$ac_ext <<_ACEOF
  8380. #line $LINENO "configure"
  8381. /* confdefs.h. */
  8382. _ACEOF
  8383. cat confdefs.h >>conftest.$ac_ext
  8384. cat >>conftest.$ac_ext <<_ACEOF
  8385. /* end confdefs.h. */
  8386. #include <X11/xpm.h>
  8387. _ACEOF
  8388. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8389. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8390. ac_status=$?
  8391. grep -v '^ *+' conftest.er1 >conftest.err
  8392. rm -f conftest.er1
  8393. cat conftest.err >&5
  8394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8395. (exit $ac_status); } >/dev/null; then
  8396. if test -s conftest.err; then
  8397. ac_cpp_err=$ac_c_preproc_warn_flag
  8398. else
  8399. ac_cpp_err=
  8400. fi
  8401. else
  8402. ac_cpp_err=yes
  8403. fi
  8404. if test -z "$ac_cpp_err"; then
  8405. vt_xpm_include_X11=yes
  8406. else
  8407. echo "$as_me: failed program was:" >&5
  8408. sed 's/^/| /' conftest.$ac_ext >&5
  8409. fi
  8410. rm -f conftest.err conftest.$ac_ext
  8411. else
  8412. if test -r "$xpm_includes/X11/xpm.h"; then
  8413. vt_xpm_include_X11=yes
  8414. fi
  8415. fi
  8416. fi
  8417. vt_xpm_includes=$xpm_includes
  8418. fi
  8419. if test "x$xpm_libraries" != xNO; then
  8420. vt_xpm_libraries=$xpm_libraries
  8421. fi
  8422. # Update the cache value to reflect the command line values.
  8423. ac_cv_have_xpm="have_xpm=yes \
  8424. vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
  8425. vt_xpm_include_X11=$vt_xpm_include_X11"
  8426. eval "$ac_cv_have_xpm"
  8427. echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
  8428. echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
  8429. if test -n "$vt_xpm_includes"; then
  8430. XPM_CPPFLAGS="-DHAVE_LIBXPM"
  8431. fi
  8432. if test -n "$vt_xpm_includes"; then
  8433. XPM_CFLAGS="-I$vt_xpm_includes"
  8434. fi
  8435. XPM_LIBS="-lXpm"
  8436. if test -n "$vt_xpm_libraries"; then
  8437. XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
  8438. fi
  8439. if test "x$vt_xpm_include_X11" = xyes; then
  8440. cat >>confdefs.h <<\_ACEOF
  8441. #define XPM_INC_X11 1
  8442. _ACEOF
  8443. fi
  8444. fi
  8445. if test x$no_xpm = xyes; then
  8446. support_xpm=needsmanualspecification
  8447. fi
  8448. fi
  8449. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  8450. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  8451. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  8452. echo $ECHO_N "(cached) $ECHO_C" >&6
  8453. else
  8454. cat >conftest.$ac_ext <<_ACEOF
  8455. #line $LINENO "configure"
  8456. /* confdefs.h. */
  8457. _ACEOF
  8458. cat confdefs.h >>conftest.$ac_ext
  8459. cat >>conftest.$ac_ext <<_ACEOF
  8460. /* end confdefs.h. */
  8461. #include <sys/types.h>
  8462. #include <sys/wait.h>
  8463. #ifndef WEXITSTATUS
  8464. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  8465. #endif
  8466. #ifndef WIFEXITED
  8467. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  8468. #endif
  8469. int
  8470. main ()
  8471. {
  8472. int s;
  8473. wait (&s);
  8474. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. rm -f conftest.$ac_objext
  8480. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8481. (eval $ac_compile) 2>&5
  8482. ac_status=$?
  8483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8484. (exit $ac_status); } &&
  8485. { ac_try='test -s conftest.$ac_objext'
  8486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8487. (eval $ac_try) 2>&5
  8488. ac_status=$?
  8489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8490. (exit $ac_status); }; }; then
  8491. ac_cv_header_sys_wait_h=yes
  8492. else
  8493. echo "$as_me: failed program was:" >&5
  8494. sed 's/^/| /' conftest.$ac_ext >&5
  8495. ac_cv_header_sys_wait_h=no
  8496. fi
  8497. rm -f conftest.$ac_objext conftest.$ac_ext
  8498. fi
  8499. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  8500. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  8501. if test $ac_cv_header_sys_wait_h = yes; then
  8502. cat >>confdefs.h <<\_ACEOF
  8503. #define HAVE_SYS_WAIT_H 1
  8504. _ACEOF
  8505. fi
  8506. for ac_header in \
  8507. assert.h \
  8508. fcntl.h \
  8509. grp.h \
  8510. libc.h \
  8511. lastlog.h \
  8512. stdarg.h \
  8513. stdlib.h \
  8514. string.h \
  8515. termios.h \
  8516. unistd.h \
  8517. sys/byteorder.h \
  8518. sys/ioctl.h \
  8519. sys/select.h \
  8520. sys/sockio.h \
  8521. sys/strredir.h \
  8522. sys/time.h \
  8523. utmp.h \
  8524. utmpx.h \
  8525. do
  8526. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8527. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8528. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8529. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8530. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8531. echo $ECHO_N "(cached) $ECHO_C" >&6
  8532. fi
  8533. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8534. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8535. else
  8536. # Is the header compilable?
  8537. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8538. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8539. cat >conftest.$ac_ext <<_ACEOF
  8540. #line $LINENO "configure"
  8541. /* confdefs.h. */
  8542. _ACEOF
  8543. cat confdefs.h >>conftest.$ac_ext
  8544. cat >>conftest.$ac_ext <<_ACEOF
  8545. /* end confdefs.h. */
  8546. $ac_includes_default
  8547. #include <$ac_header>
  8548. _ACEOF
  8549. rm -f conftest.$ac_objext
  8550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8551. (eval $ac_compile) 2>&5
  8552. ac_status=$?
  8553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8554. (exit $ac_status); } &&
  8555. { ac_try='test -s conftest.$ac_objext'
  8556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8557. (eval $ac_try) 2>&5
  8558. ac_status=$?
  8559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8560. (exit $ac_status); }; }; then
  8561. ac_header_compiler=yes
  8562. else
  8563. echo "$as_me: failed program was:" >&5
  8564. sed 's/^/| /' conftest.$ac_ext >&5
  8565. ac_header_compiler=no
  8566. fi
  8567. rm -f conftest.$ac_objext conftest.$ac_ext
  8568. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8569. echo "${ECHO_T}$ac_header_compiler" >&6
  8570. # Is the header present?
  8571. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8572. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8573. cat >conftest.$ac_ext <<_ACEOF
  8574. #line $LINENO "configure"
  8575. /* confdefs.h. */
  8576. _ACEOF
  8577. cat confdefs.h >>conftest.$ac_ext
  8578. cat >>conftest.$ac_ext <<_ACEOF
  8579. /* end confdefs.h. */
  8580. #include <$ac_header>
  8581. _ACEOF
  8582. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8583. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8584. ac_status=$?
  8585. grep -v '^ *+' conftest.er1 >conftest.err
  8586. rm -f conftest.er1
  8587. cat conftest.err >&5
  8588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); } >/dev/null; then
  8590. if test -s conftest.err; then
  8591. ac_cpp_err=$ac_c_preproc_warn_flag
  8592. else
  8593. ac_cpp_err=
  8594. fi
  8595. else
  8596. ac_cpp_err=yes
  8597. fi
  8598. if test -z "$ac_cpp_err"; then
  8599. ac_header_preproc=yes
  8600. else
  8601. echo "$as_me: failed program was:" >&5
  8602. sed 's/^/| /' conftest.$ac_ext >&5
  8603. ac_header_preproc=no
  8604. fi
  8605. rm -f conftest.err conftest.$ac_ext
  8606. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8607. echo "${ECHO_T}$ac_header_preproc" >&6
  8608. # So? What about this header?
  8609. case $ac_header_compiler:$ac_header_preproc in
  8610. yes:no )
  8611. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8612. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8613. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8614. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8615. (
  8616. cat <<\_ASBOX
  8617. ## ------------------------------------ ##
  8618. ## Report this to bug-autoconf@gnu.org. ##
  8619. ## ------------------------------------ ##
  8620. _ASBOX
  8621. ) |
  8622. sed "s/^/$as_me: WARNING: /" >&2
  8623. ;;
  8624. no:yes )
  8625. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8626. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8627. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8628. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8629. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8630. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8631. (
  8632. cat <<\_ASBOX
  8633. ## ------------------------------------ ##
  8634. ## Report this to bug-autoconf@gnu.org. ##
  8635. ## ------------------------------------ ##
  8636. _ASBOX
  8637. ) |
  8638. sed "s/^/$as_me: WARNING: /" >&2
  8639. ;;
  8640. esac
  8641. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8642. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8643. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8644. echo $ECHO_N "(cached) $ECHO_C" >&6
  8645. else
  8646. eval "$as_ac_Header=$ac_header_preproc"
  8647. fi
  8648. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8649. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8650. fi
  8651. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8652. cat >>confdefs.h <<_ACEOF
  8653. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8654. _ACEOF
  8655. fi
  8656. done
  8657. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8658. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  8659. if test "${ac_cv_header_time+set}" = set; then
  8660. echo $ECHO_N "(cached) $ECHO_C" >&6
  8661. else
  8662. cat >conftest.$ac_ext <<_ACEOF
  8663. #line $LINENO "configure"
  8664. /* confdefs.h. */
  8665. _ACEOF
  8666. cat confdefs.h >>conftest.$ac_ext
  8667. cat >>conftest.$ac_ext <<_ACEOF
  8668. /* end confdefs.h. */
  8669. #include <sys/types.h>
  8670. #include <sys/time.h>
  8671. #include <time.h>
  8672. int
  8673. main ()
  8674. {
  8675. if ((struct tm *) 0)
  8676. return 0;
  8677. ;
  8678. return 0;
  8679. }
  8680. _ACEOF
  8681. rm -f conftest.$ac_objext
  8682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8683. (eval $ac_compile) 2>&5
  8684. ac_status=$?
  8685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8686. (exit $ac_status); } &&
  8687. { ac_try='test -s conftest.$ac_objext'
  8688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8689. (eval $ac_try) 2>&5
  8690. ac_status=$?
  8691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8692. (exit $ac_status); }; }; then
  8693. ac_cv_header_time=yes
  8694. else
  8695. echo "$as_me: failed program was:" >&5
  8696. sed 's/^/| /' conftest.$ac_ext >&5
  8697. ac_cv_header_time=no
  8698. fi
  8699. rm -f conftest.$ac_objext conftest.$ac_ext
  8700. fi
  8701. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8702. echo "${ECHO_T}$ac_cv_header_time" >&6
  8703. if test $ac_cv_header_time = yes; then
  8704. cat >>confdefs.h <<\_ACEOF
  8705. #define TIME_WITH_SYS_TIME 1
  8706. _ACEOF
  8707. fi
  8708. echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
  8709. echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
  8710. if test "${rxvt_cv_header_sysioctl+set}" = set; then
  8711. echo $ECHO_N "(cached) $ECHO_C" >&6
  8712. else
  8713. cat >conftest.$ac_ext <<_ACEOF
  8714. #line $LINENO "configure"
  8715. /* confdefs.h. */
  8716. _ACEOF
  8717. cat confdefs.h >>conftest.$ac_ext
  8718. cat >>conftest.$ac_ext <<_ACEOF
  8719. /* end confdefs.h. */
  8720. #include <stdio.h>
  8721. #include <sys/ioctl.h>
  8722. #ifdef HAVE_TERMIOS_H
  8723. #include <termios.h>
  8724. #endif
  8725. int
  8726. main ()
  8727. {
  8728. int a = ECHO;
  8729. ;
  8730. return 0;
  8731. }
  8732. _ACEOF
  8733. rm -f conftest.$ac_objext
  8734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8735. (eval $ac_compile) 2>&5
  8736. ac_status=$?
  8737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8738. (exit $ac_status); } &&
  8739. { ac_try='test -s conftest.$ac_objext'
  8740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8741. (eval $ac_try) 2>&5
  8742. ac_status=$?
  8743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); }; }; then
  8745. rxvt_cv_header_sysioctl=yes
  8746. else
  8747. echo "$as_me: failed program was:" >&5
  8748. sed 's/^/| /' conftest.$ac_ext >&5
  8749. rxvt_cv_header_sysioctl=no
  8750. fi
  8751. rm -f conftest.$ac_objext conftest.$ac_ext
  8752. fi
  8753. echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
  8754. echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
  8755. if test -n "$GCC"; then
  8756. LDARG="-Wl,"
  8757. else
  8758. LDARG=""
  8759. fi
  8760. R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
  8761. ac_save_CFLAGS=$CFLAGS
  8762. ac_save_LIBS=$LIBS
  8763. CFLAGS="$CFLAGS $X_CFLAGS"
  8764. LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
  8765. echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
  8766. echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
  8767. if test "${rxvt_cv_rpath+set}" = set; then
  8768. echo $ECHO_N "(cached) $ECHO_C" >&6
  8769. else
  8770. if test "$cross_compiling" = yes; then
  8771. { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
  8772. echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
  8773. else
  8774. cat >conftest.$ac_ext <<_ACEOF
  8775. #line $LINENO "configure"
  8776. /* confdefs.h. */
  8777. _ACEOF
  8778. cat confdefs.h >>conftest.$ac_ext
  8779. cat >>conftest.$ac_ext <<_ACEOF
  8780. /* end confdefs.h. */
  8781. main()
  8782. {
  8783. exit(0);
  8784. (void) XOpenDisplay("foobar");
  8785. }
  8786. _ACEOF
  8787. rm -f conftest$ac_exeext
  8788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8789. (eval $ac_link) 2>&5
  8790. ac_status=$?
  8791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8792. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8794. (eval $ac_try) 2>&5
  8795. ac_status=$?
  8796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8797. (exit $ac_status); }; }; then
  8798. rxvt_cv_rpath=yes
  8799. else
  8800. echo "$as_me: program exited with status $ac_status" >&5
  8801. echo "$as_me: failed program was:" >&5
  8802. sed 's/^/| /' conftest.$ac_ext >&5
  8803. ( exit $ac_status )
  8804. rxvt_cv_rpath=no
  8805. fi
  8806. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8807. fi
  8808. fi
  8809. echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
  8810. echo "${ECHO_T}$rxvt_cv_rpath" >&6
  8811. if test x$rxvt_cv_rpath != xyes; then
  8812. R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
  8813. LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
  8814. echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
  8815. echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
  8816. if test "${rxvt_cv_R+set}" = set; then
  8817. echo $ECHO_N "(cached) $ECHO_C" >&6
  8818. else
  8819. if test "$cross_compiling" = yes; then
  8820. rxvt_cv_R=no
  8821. else
  8822. cat >conftest.$ac_ext <<_ACEOF
  8823. #line $LINENO "configure"
  8824. /* confdefs.h. */
  8825. _ACEOF
  8826. cat confdefs.h >>conftest.$ac_ext
  8827. cat >>conftest.$ac_ext <<_ACEOF
  8828. /* end confdefs.h. */
  8829. main()
  8830. {
  8831. exit(0);
  8832. (void) XOpenDisplay("foobar");
  8833. }
  8834. _ACEOF
  8835. rm -f conftest$ac_exeext
  8836. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8837. (eval $ac_link) 2>&5
  8838. ac_status=$?
  8839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8840. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8842. (eval $ac_try) 2>&5
  8843. ac_status=$?
  8844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. (exit $ac_status); }; }; then
  8846. rxvt_cv_R=yes
  8847. else
  8848. echo "$as_me: program exited with status $ac_status" >&5
  8849. echo "$as_me: failed program was:" >&5
  8850. sed 's/^/| /' conftest.$ac_ext >&5
  8851. ( exit $ac_status )
  8852. rxvt_cv_R=no
  8853. fi
  8854. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8855. fi
  8856. fi
  8857. echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
  8858. echo "${ECHO_T}$rxvt_cv_R" >&6
  8859. if test x$rxvt_cv_R != xyes; then
  8860. LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
  8861. fi
  8862. fi
  8863. echo "$as_me:$LINENO: checking for XPointer" >&5
  8864. echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
  8865. if test "${rxvt_cv_xpointer+set}" = set; then
  8866. echo $ECHO_N "(cached) $ECHO_C" >&6
  8867. else
  8868. cat >conftest.$ac_ext <<_ACEOF
  8869. #line $LINENO "configure"
  8870. /* confdefs.h. */
  8871. _ACEOF
  8872. cat confdefs.h >>conftest.$ac_ext
  8873. cat >>conftest.$ac_ext <<_ACEOF
  8874. /* end confdefs.h. */
  8875. #include <X11/Xlib.h>
  8876. int
  8877. main ()
  8878. {
  8879. XPointer dummy;
  8880. ;
  8881. return 0;
  8882. }
  8883. _ACEOF
  8884. rm -f conftest.$ac_objext
  8885. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8886. (eval $ac_compile) 2>&5
  8887. ac_status=$?
  8888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8889. (exit $ac_status); } &&
  8890. { ac_try='test -s conftest.$ac_objext'
  8891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8892. (eval $ac_try) 2>&5
  8893. ac_status=$?
  8894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8895. (exit $ac_status); }; }; then
  8896. rxvt_cv_xpointer=yes
  8897. else
  8898. echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. rxvt_cv_xpointer=no
  8901. fi
  8902. rm -f conftest.$ac_objext conftest.$ac_ext
  8903. fi
  8904. echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
  8905. echo "${ECHO_T}$rxvt_cv_xpointer" >&6
  8906. if test x$rxvt_cv_xpointer = xyes; then
  8907. cat >>confdefs.h <<\_ACEOF
  8908. #define HAVE_XPOINTER 1
  8909. _ACEOF
  8910. fi
  8911. LIBS=$ac_save_LIBS
  8912. CFLAGS=$ac_save_CFLAGS
  8913. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8914. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  8915. if test "${ac_cv_c_const+set}" = set; then
  8916. echo $ECHO_N "(cached) $ECHO_C" >&6
  8917. else
  8918. cat >conftest.$ac_ext <<_ACEOF
  8919. #line $LINENO "configure"
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. int
  8926. main ()
  8927. {
  8928. /* FIXME: Include the comments suggested by Paul. */
  8929. #ifndef __cplusplus
  8930. /* Ultrix mips cc rejects this. */
  8931. typedef int charset[2];
  8932. const charset x;
  8933. /* SunOS 4.1.1 cc rejects this. */
  8934. char const *const *ccp;
  8935. char **p;
  8936. /* NEC SVR4.0.2 mips cc rejects this. */
  8937. struct point {int x, y;};
  8938. static struct point const zero = {0,0};
  8939. /* AIX XL C 1.02.0.0 rejects this.
  8940. It does not let you subtract one const X* pointer from another in
  8941. an arm of an if-expression whose if-part is not a constant
  8942. expression */
  8943. const char *g = "string";
  8944. ccp = &g + (g ? g-g : 0);
  8945. /* HPUX 7.0 cc rejects these. */
  8946. ++ccp;
  8947. p = (char**) ccp;
  8948. ccp = (char const *const *) p;
  8949. { /* SCO 3.2v4 cc rejects this. */
  8950. char *t;
  8951. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8952. *t++ = 0;
  8953. }
  8954. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8955. int x[] = {25, 17};
  8956. const int *foo = &x[0];
  8957. ++foo;
  8958. }
  8959. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8960. typedef const int *iptr;
  8961. iptr p = 0;
  8962. ++p;
  8963. }
  8964. { /* AIX XL C 1.02.0.0 rejects this saying
  8965. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8966. struct s { int j; const int *ap[3]; };
  8967. struct s *b; b->j = 5;
  8968. }
  8969. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8970. const int foo = 10;
  8971. }
  8972. #endif
  8973. ;
  8974. return 0;
  8975. }
  8976. _ACEOF
  8977. rm -f conftest.$ac_objext
  8978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8979. (eval $ac_compile) 2>&5
  8980. ac_status=$?
  8981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8982. (exit $ac_status); } &&
  8983. { ac_try='test -s conftest.$ac_objext'
  8984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8985. (eval $ac_try) 2>&5
  8986. ac_status=$?
  8987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8988. (exit $ac_status); }; }; then
  8989. ac_cv_c_const=yes
  8990. else
  8991. echo "$as_me: failed program was:" >&5
  8992. sed 's/^/| /' conftest.$ac_ext >&5
  8993. ac_cv_c_const=no
  8994. fi
  8995. rm -f conftest.$ac_objext conftest.$ac_ext
  8996. fi
  8997. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8998. echo "${ECHO_T}$ac_cv_c_const" >&6
  8999. if test $ac_cv_c_const = no; then
  9000. cat >>confdefs.h <<\_ACEOF
  9001. #define const
  9002. _ACEOF
  9003. fi
  9004. echo "$as_me:$LINENO: checking for inline" >&5
  9005. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  9006. if test "${ac_cv_c_inline+set}" = set; then
  9007. echo $ECHO_N "(cached) $ECHO_C" >&6
  9008. else
  9009. ac_cv_c_inline=no
  9010. for ac_kw in inline __inline__ __inline; do
  9011. cat >conftest.$ac_ext <<_ACEOF
  9012. #line $LINENO "configure"
  9013. /* confdefs.h. */
  9014. _ACEOF
  9015. cat confdefs.h >>conftest.$ac_ext
  9016. cat >>conftest.$ac_ext <<_ACEOF
  9017. /* end confdefs.h. */
  9018. #ifndef __cplusplus
  9019. typedef int foo_t;
  9020. static $ac_kw foo_t static_foo () {return 0; }
  9021. $ac_kw foo_t foo () {return 0; }
  9022. #endif
  9023. _ACEOF
  9024. rm -f conftest.$ac_objext
  9025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9026. (eval $ac_compile) 2>&5
  9027. ac_status=$?
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); } &&
  9030. { ac_try='test -s conftest.$ac_objext'
  9031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9032. (eval $ac_try) 2>&5
  9033. ac_status=$?
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); }; }; then
  9036. ac_cv_c_inline=$ac_kw; break
  9037. else
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. fi
  9041. rm -f conftest.$ac_objext conftest.$ac_ext
  9042. done
  9043. fi
  9044. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  9045. echo "${ECHO_T}$ac_cv_c_inline" >&6
  9046. case $ac_cv_c_inline in
  9047. inline | yes) ;;
  9048. no)
  9049. cat >>confdefs.h <<\_ACEOF
  9050. #define inline
  9051. _ACEOF
  9052. ;;
  9053. *) cat >>confdefs.h <<_ACEOF
  9054. #define inline $ac_cv_c_inline
  9055. _ACEOF
  9056. ;;
  9057. esac
  9058. echo "$as_me:$LINENO: checking for mode_t" >&5
  9059. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  9060. if test "${ac_cv_type_mode_t+set}" = set; then
  9061. echo $ECHO_N "(cached) $ECHO_C" >&6
  9062. else
  9063. cat >conftest.$ac_ext <<_ACEOF
  9064. #line $LINENO "configure"
  9065. /* confdefs.h. */
  9066. _ACEOF
  9067. cat confdefs.h >>conftest.$ac_ext
  9068. cat >>conftest.$ac_ext <<_ACEOF
  9069. /* end confdefs.h. */
  9070. $ac_includes_default
  9071. int
  9072. main ()
  9073. {
  9074. if ((mode_t *) 0)
  9075. return 0;
  9076. if (sizeof (mode_t))
  9077. return 0;
  9078. ;
  9079. return 0;
  9080. }
  9081. _ACEOF
  9082. rm -f conftest.$ac_objext
  9083. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9084. (eval $ac_compile) 2>&5
  9085. ac_status=$?
  9086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9087. (exit $ac_status); } &&
  9088. { ac_try='test -s conftest.$ac_objext'
  9089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9090. (eval $ac_try) 2>&5
  9091. ac_status=$?
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); }; }; then
  9094. ac_cv_type_mode_t=yes
  9095. else
  9096. echo "$as_me: failed program was:" >&5
  9097. sed 's/^/| /' conftest.$ac_ext >&5
  9098. ac_cv_type_mode_t=no
  9099. fi
  9100. rm -f conftest.$ac_objext conftest.$ac_ext
  9101. fi
  9102. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  9103. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  9104. if test $ac_cv_type_mode_t = yes; then
  9105. :
  9106. else
  9107. cat >>confdefs.h <<_ACEOF
  9108. #define mode_t int
  9109. _ACEOF
  9110. fi
  9111. echo "$as_me:$LINENO: checking for pid_t" >&5
  9112. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  9113. if test "${ac_cv_type_pid_t+set}" = set; then
  9114. echo $ECHO_N "(cached) $ECHO_C" >&6
  9115. else
  9116. cat >conftest.$ac_ext <<_ACEOF
  9117. #line $LINENO "configure"
  9118. /* confdefs.h. */
  9119. _ACEOF
  9120. cat confdefs.h >>conftest.$ac_ext
  9121. cat >>conftest.$ac_ext <<_ACEOF
  9122. /* end confdefs.h. */
  9123. $ac_includes_default
  9124. int
  9125. main ()
  9126. {
  9127. if ((pid_t *) 0)
  9128. return 0;
  9129. if (sizeof (pid_t))
  9130. return 0;
  9131. ;
  9132. return 0;
  9133. }
  9134. _ACEOF
  9135. rm -f conftest.$ac_objext
  9136. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9137. (eval $ac_compile) 2>&5
  9138. ac_status=$?
  9139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9140. (exit $ac_status); } &&
  9141. { ac_try='test -s conftest.$ac_objext'
  9142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9143. (eval $ac_try) 2>&5
  9144. ac_status=$?
  9145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9146. (exit $ac_status); }; }; then
  9147. ac_cv_type_pid_t=yes
  9148. else
  9149. echo "$as_me: failed program was:" >&5
  9150. sed 's/^/| /' conftest.$ac_ext >&5
  9151. ac_cv_type_pid_t=no
  9152. fi
  9153. rm -f conftest.$ac_objext conftest.$ac_ext
  9154. fi
  9155. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  9156. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  9157. if test $ac_cv_type_pid_t = yes; then
  9158. :
  9159. else
  9160. cat >>confdefs.h <<_ACEOF
  9161. #define pid_t int
  9162. _ACEOF
  9163. fi
  9164. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  9165. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  9166. if test "${ac_cv_type_uid_t+set}" = set; then
  9167. echo $ECHO_N "(cached) $ECHO_C" >&6
  9168. else
  9169. cat >conftest.$ac_ext <<_ACEOF
  9170. #line $LINENO "configure"
  9171. /* confdefs.h. */
  9172. _ACEOF
  9173. cat confdefs.h >>conftest.$ac_ext
  9174. cat >>conftest.$ac_ext <<_ACEOF
  9175. /* end confdefs.h. */
  9176. #include <sys/types.h>
  9177. _ACEOF
  9178. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9179. $EGREP "uid_t" >/dev/null 2>&1; then
  9180. ac_cv_type_uid_t=yes
  9181. else
  9182. ac_cv_type_uid_t=no
  9183. fi
  9184. rm -f conftest*
  9185. fi
  9186. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  9187. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  9188. if test $ac_cv_type_uid_t = no; then
  9189. cat >>confdefs.h <<\_ACEOF
  9190. #define uid_t int
  9191. _ACEOF
  9192. cat >>confdefs.h <<\_ACEOF
  9193. #define gid_t int
  9194. _ACEOF
  9195. fi
  9196. echo "$as_me:$LINENO: checking for char" >&5
  9197. echo $ECHO_N "checking for char... $ECHO_C" >&6
  9198. if test "${ac_cv_type_char+set}" = set; then
  9199. echo $ECHO_N "(cached) $ECHO_C" >&6
  9200. else
  9201. cat >conftest.$ac_ext <<_ACEOF
  9202. #line $LINENO "configure"
  9203. /* confdefs.h. */
  9204. _ACEOF
  9205. cat confdefs.h >>conftest.$ac_ext
  9206. cat >>conftest.$ac_ext <<_ACEOF
  9207. /* end confdefs.h. */
  9208. $ac_includes_default
  9209. int
  9210. main ()
  9211. {
  9212. if ((char *) 0)
  9213. return 0;
  9214. if (sizeof (char))
  9215. return 0;
  9216. ;
  9217. return 0;
  9218. }
  9219. _ACEOF
  9220. rm -f conftest.$ac_objext
  9221. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9222. (eval $ac_compile) 2>&5
  9223. ac_status=$?
  9224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9225. (exit $ac_status); } &&
  9226. { ac_try='test -s conftest.$ac_objext'
  9227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9228. (eval $ac_try) 2>&5
  9229. ac_status=$?
  9230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9231. (exit $ac_status); }; }; then
  9232. ac_cv_type_char=yes
  9233. else
  9234. echo "$as_me: failed program was:" >&5
  9235. sed 's/^/| /' conftest.$ac_ext >&5
  9236. ac_cv_type_char=no
  9237. fi
  9238. rm -f conftest.$ac_objext conftest.$ac_ext
  9239. fi
  9240. echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  9241. echo "${ECHO_T}$ac_cv_type_char" >&6
  9242. echo "$as_me:$LINENO: checking size of char" >&5
  9243. echo $ECHO_N "checking size of char... $ECHO_C" >&6
  9244. if test "${ac_cv_sizeof_char+set}" = set; then
  9245. echo $ECHO_N "(cached) $ECHO_C" >&6
  9246. else
  9247. if test "$ac_cv_type_char" = yes; then
  9248. # The cast to unsigned long works around a bug in the HP C Compiler
  9249. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9250. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9251. # This bug is HP SR number 8606223364.
  9252. if test "$cross_compiling" = yes; then
  9253. # Depending upon the size, compute the lo and hi bounds.
  9254. cat >conftest.$ac_ext <<_ACEOF
  9255. #line $LINENO "configure"
  9256. /* confdefs.h. */
  9257. _ACEOF
  9258. cat confdefs.h >>conftest.$ac_ext
  9259. cat >>conftest.$ac_ext <<_ACEOF
  9260. /* end confdefs.h. */
  9261. $ac_includes_default
  9262. int
  9263. main ()
  9264. {
  9265. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
  9266. test_array [0] = 0
  9267. ;
  9268. return 0;
  9269. }
  9270. _ACEOF
  9271. rm -f conftest.$ac_objext
  9272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9273. (eval $ac_compile) 2>&5
  9274. ac_status=$?
  9275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9276. (exit $ac_status); } &&
  9277. { ac_try='test -s conftest.$ac_objext'
  9278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9279. (eval $ac_try) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); }; }; then
  9283. ac_lo=0 ac_mid=0
  9284. while :; do
  9285. cat >conftest.$ac_ext <<_ACEOF
  9286. #line $LINENO "configure"
  9287. /* confdefs.h. */
  9288. _ACEOF
  9289. cat confdefs.h >>conftest.$ac_ext
  9290. cat >>conftest.$ac_ext <<_ACEOF
  9291. /* end confdefs.h. */
  9292. $ac_includes_default
  9293. int
  9294. main ()
  9295. {
  9296. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  9297. test_array [0] = 0
  9298. ;
  9299. return 0;
  9300. }
  9301. _ACEOF
  9302. rm -f conftest.$ac_objext
  9303. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9304. (eval $ac_compile) 2>&5
  9305. ac_status=$?
  9306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307. (exit $ac_status); } &&
  9308. { ac_try='test -s conftest.$ac_objext'
  9309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9310. (eval $ac_try) 2>&5
  9311. ac_status=$?
  9312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9313. (exit $ac_status); }; }; then
  9314. ac_hi=$ac_mid; break
  9315. else
  9316. echo "$as_me: failed program was:" >&5
  9317. sed 's/^/| /' conftest.$ac_ext >&5
  9318. ac_lo=`expr $ac_mid + 1`
  9319. if test $ac_lo -le $ac_mid; then
  9320. ac_lo= ac_hi=
  9321. break
  9322. fi
  9323. ac_mid=`expr 2 '*' $ac_mid + 1`
  9324. fi
  9325. rm -f conftest.$ac_objext conftest.$ac_ext
  9326. done
  9327. else
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. cat >conftest.$ac_ext <<_ACEOF
  9331. #line $LINENO "configure"
  9332. /* confdefs.h. */
  9333. _ACEOF
  9334. cat confdefs.h >>conftest.$ac_ext
  9335. cat >>conftest.$ac_ext <<_ACEOF
  9336. /* end confdefs.h. */
  9337. $ac_includes_default
  9338. int
  9339. main ()
  9340. {
  9341. static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
  9342. test_array [0] = 0
  9343. ;
  9344. return 0;
  9345. }
  9346. _ACEOF
  9347. rm -f conftest.$ac_objext
  9348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9349. (eval $ac_compile) 2>&5
  9350. ac_status=$?
  9351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9352. (exit $ac_status); } &&
  9353. { ac_try='test -s conftest.$ac_objext'
  9354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9355. (eval $ac_try) 2>&5
  9356. ac_status=$?
  9357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9358. (exit $ac_status); }; }; then
  9359. ac_hi=-1 ac_mid=-1
  9360. while :; do
  9361. cat >conftest.$ac_ext <<_ACEOF
  9362. #line $LINENO "configure"
  9363. /* confdefs.h. */
  9364. _ACEOF
  9365. cat confdefs.h >>conftest.$ac_ext
  9366. cat >>conftest.$ac_ext <<_ACEOF
  9367. /* end confdefs.h. */
  9368. $ac_includes_default
  9369. int
  9370. main ()
  9371. {
  9372. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
  9373. test_array [0] = 0
  9374. ;
  9375. return 0;
  9376. }
  9377. _ACEOF
  9378. rm -f conftest.$ac_objext
  9379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9380. (eval $ac_compile) 2>&5
  9381. ac_status=$?
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); } &&
  9384. { ac_try='test -s conftest.$ac_objext'
  9385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9386. (eval $ac_try) 2>&5
  9387. ac_status=$?
  9388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. (exit $ac_status); }; }; then
  9390. ac_lo=$ac_mid; break
  9391. else
  9392. echo "$as_me: failed program was:" >&5
  9393. sed 's/^/| /' conftest.$ac_ext >&5
  9394. ac_hi=`expr '(' $ac_mid ')' - 1`
  9395. if test $ac_mid -le $ac_hi; then
  9396. ac_lo= ac_hi=
  9397. break
  9398. fi
  9399. ac_mid=`expr 2 '*' $ac_mid`
  9400. fi
  9401. rm -f conftest.$ac_objext conftest.$ac_ext
  9402. done
  9403. else
  9404. echo "$as_me: failed program was:" >&5
  9405. sed 's/^/| /' conftest.$ac_ext >&5
  9406. ac_lo= ac_hi=
  9407. fi
  9408. rm -f conftest.$ac_objext conftest.$ac_ext
  9409. fi
  9410. rm -f conftest.$ac_objext conftest.$ac_ext
  9411. # Binary search between lo and hi bounds.
  9412. while test "x$ac_lo" != "x$ac_hi"; do
  9413. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9414. cat >conftest.$ac_ext <<_ACEOF
  9415. #line $LINENO "configure"
  9416. /* confdefs.h. */
  9417. _ACEOF
  9418. cat confdefs.h >>conftest.$ac_ext
  9419. cat >>conftest.$ac_ext <<_ACEOF
  9420. /* end confdefs.h. */
  9421. $ac_includes_default
  9422. int
  9423. main ()
  9424. {
  9425. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  9426. test_array [0] = 0
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. rm -f conftest.$ac_objext
  9432. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9433. (eval $ac_compile) 2>&5
  9434. ac_status=$?
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); } &&
  9437. { ac_try='test -s conftest.$ac_objext'
  9438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9439. (eval $ac_try) 2>&5
  9440. ac_status=$?
  9441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9442. (exit $ac_status); }; }; then
  9443. ac_hi=$ac_mid
  9444. else
  9445. echo "$as_me: failed program was:" >&5
  9446. sed 's/^/| /' conftest.$ac_ext >&5
  9447. ac_lo=`expr '(' $ac_mid ')' + 1`
  9448. fi
  9449. rm -f conftest.$ac_objext conftest.$ac_ext
  9450. done
  9451. case $ac_lo in
  9452. ?*) ac_cv_sizeof_char=$ac_lo;;
  9453. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  9454. See \`config.log' for more details." >&5
  9455. echo "$as_me: error: cannot compute sizeof (char), 77
  9456. See \`config.log' for more details." >&2;}
  9457. { (exit 1); exit 1; }; } ;;
  9458. esac
  9459. else
  9460. if test "$cross_compiling" = yes; then
  9461. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  9462. See \`config.log' for more details." >&5
  9463. echo "$as_me: error: cannot run test program while cross compiling
  9464. See \`config.log' for more details." >&2;}
  9465. { (exit 1); exit 1; }; }
  9466. else
  9467. cat >conftest.$ac_ext <<_ACEOF
  9468. #line $LINENO "configure"
  9469. /* confdefs.h. */
  9470. _ACEOF
  9471. cat confdefs.h >>conftest.$ac_ext
  9472. cat >>conftest.$ac_ext <<_ACEOF
  9473. /* end confdefs.h. */
  9474. $ac_includes_default
  9475. long longval () { return (long) (sizeof (char)); }
  9476. unsigned long ulongval () { return (long) (sizeof (char)); }
  9477. #include <stdio.h>
  9478. #include <stdlib.h>
  9479. int
  9480. main ()
  9481. {
  9482. FILE *f = fopen ("conftest.val", "w");
  9483. if (! f)
  9484. exit (1);
  9485. if (((long) (sizeof (char))) < 0)
  9486. {
  9487. long i = longval ();
  9488. if (i != ((long) (sizeof (char))))
  9489. exit (1);
  9490. fprintf (f, "%ld\n", i);
  9491. }
  9492. else
  9493. {
  9494. unsigned long i = ulongval ();
  9495. if (i != ((long) (sizeof (char))))
  9496. exit (1);
  9497. fprintf (f, "%lu\n", i);
  9498. }
  9499. exit (ferror (f) || fclose (f) != 0);
  9500. ;
  9501. return 0;
  9502. }
  9503. _ACEOF
  9504. rm -f conftest$ac_exeext
  9505. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9506. (eval $ac_link) 2>&5
  9507. ac_status=$?
  9508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9509. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9511. (eval $ac_try) 2>&5
  9512. ac_status=$?
  9513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9514. (exit $ac_status); }; }; then
  9515. ac_cv_sizeof_char=`cat conftest.val`
  9516. else
  9517. echo "$as_me: program exited with status $ac_status" >&5
  9518. echo "$as_me: failed program was:" >&5
  9519. sed 's/^/| /' conftest.$ac_ext >&5
  9520. ( exit $ac_status )
  9521. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  9522. See \`config.log' for more details." >&5
  9523. echo "$as_me: error: cannot compute sizeof (char), 77
  9524. See \`config.log' for more details." >&2;}
  9525. { (exit 1); exit 1; }; }
  9526. fi
  9527. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9528. fi
  9529. fi
  9530. rm -f conftest.val
  9531. else
  9532. ac_cv_sizeof_char=0
  9533. fi
  9534. fi
  9535. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  9536. echo "${ECHO_T}$ac_cv_sizeof_char" >&6
  9537. cat >>confdefs.h <<_ACEOF
  9538. #define SIZEOF_CHAR $ac_cv_sizeof_char
  9539. _ACEOF
  9540. echo "$as_me:$LINENO: checking for short" >&5
  9541. echo $ECHO_N "checking for short... $ECHO_C" >&6
  9542. if test "${ac_cv_type_short+set}" = set; then
  9543. echo $ECHO_N "(cached) $ECHO_C" >&6
  9544. else
  9545. cat >conftest.$ac_ext <<_ACEOF
  9546. #line $LINENO "configure"
  9547. /* confdefs.h. */
  9548. _ACEOF
  9549. cat confdefs.h >>conftest.$ac_ext
  9550. cat >>conftest.$ac_ext <<_ACEOF
  9551. /* end confdefs.h. */
  9552. $ac_includes_default
  9553. int
  9554. main ()
  9555. {
  9556. if ((short *) 0)
  9557. return 0;
  9558. if (sizeof (short))
  9559. return 0;
  9560. ;
  9561. return 0;
  9562. }
  9563. _ACEOF
  9564. rm -f conftest.$ac_objext
  9565. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9566. (eval $ac_compile) 2>&5
  9567. ac_status=$?
  9568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9569. (exit $ac_status); } &&
  9570. { ac_try='test -s conftest.$ac_objext'
  9571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9572. (eval $ac_try) 2>&5
  9573. ac_status=$?
  9574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9575. (exit $ac_status); }; }; then
  9576. ac_cv_type_short=yes
  9577. else
  9578. echo "$as_me: failed program was:" >&5
  9579. sed 's/^/| /' conftest.$ac_ext >&5
  9580. ac_cv_type_short=no
  9581. fi
  9582. rm -f conftest.$ac_objext conftest.$ac_ext
  9583. fi
  9584. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  9585. echo "${ECHO_T}$ac_cv_type_short" >&6
  9586. echo "$as_me:$LINENO: checking size of short" >&5
  9587. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  9588. if test "${ac_cv_sizeof_short+set}" = set; then
  9589. echo $ECHO_N "(cached) $ECHO_C" >&6
  9590. else
  9591. if test "$ac_cv_type_short" = yes; then
  9592. # The cast to unsigned long works around a bug in the HP C Compiler
  9593. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9594. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9595. # This bug is HP SR number 8606223364.
  9596. if test "$cross_compiling" = yes; then
  9597. # Depending upon the size, compute the lo and hi bounds.
  9598. cat >conftest.$ac_ext <<_ACEOF
  9599. #line $LINENO "configure"
  9600. /* confdefs.h. */
  9601. _ACEOF
  9602. cat confdefs.h >>conftest.$ac_ext
  9603. cat >>conftest.$ac_ext <<_ACEOF
  9604. /* end confdefs.h. */
  9605. $ac_includes_default
  9606. int
  9607. main ()
  9608. {
  9609. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  9610. test_array [0] = 0
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. rm -f conftest.$ac_objext
  9616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9617. (eval $ac_compile) 2>&5
  9618. ac_status=$?
  9619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9620. (exit $ac_status); } &&
  9621. { ac_try='test -s conftest.$ac_objext'
  9622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9623. (eval $ac_try) 2>&5
  9624. ac_status=$?
  9625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9626. (exit $ac_status); }; }; then
  9627. ac_lo=0 ac_mid=0
  9628. while :; do
  9629. cat >conftest.$ac_ext <<_ACEOF
  9630. #line $LINENO "configure"
  9631. /* confdefs.h. */
  9632. _ACEOF
  9633. cat confdefs.h >>conftest.$ac_ext
  9634. cat >>conftest.$ac_ext <<_ACEOF
  9635. /* end confdefs.h. */
  9636. $ac_includes_default
  9637. int
  9638. main ()
  9639. {
  9640. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  9641. test_array [0] = 0
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. rm -f conftest.$ac_objext
  9647. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9648. (eval $ac_compile) 2>&5
  9649. ac_status=$?
  9650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. (exit $ac_status); } &&
  9652. { ac_try='test -s conftest.$ac_objext'
  9653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9654. (eval $ac_try) 2>&5
  9655. ac_status=$?
  9656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9657. (exit $ac_status); }; }; then
  9658. ac_hi=$ac_mid; break
  9659. else
  9660. echo "$as_me: failed program was:" >&5
  9661. sed 's/^/| /' conftest.$ac_ext >&5
  9662. ac_lo=`expr $ac_mid + 1`
  9663. if test $ac_lo -le $ac_mid; then
  9664. ac_lo= ac_hi=
  9665. break
  9666. fi
  9667. ac_mid=`expr 2 '*' $ac_mid + 1`
  9668. fi
  9669. rm -f conftest.$ac_objext conftest.$ac_ext
  9670. done
  9671. else
  9672. echo "$as_me: failed program was:" >&5
  9673. sed 's/^/| /' conftest.$ac_ext >&5
  9674. cat >conftest.$ac_ext <<_ACEOF
  9675. #line $LINENO "configure"
  9676. /* confdefs.h. */
  9677. _ACEOF
  9678. cat confdefs.h >>conftest.$ac_ext
  9679. cat >>conftest.$ac_ext <<_ACEOF
  9680. /* end confdefs.h. */
  9681. $ac_includes_default
  9682. int
  9683. main ()
  9684. {
  9685. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  9686. test_array [0] = 0
  9687. ;
  9688. return 0;
  9689. }
  9690. _ACEOF
  9691. rm -f conftest.$ac_objext
  9692. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9693. (eval $ac_compile) 2>&5
  9694. ac_status=$?
  9695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9696. (exit $ac_status); } &&
  9697. { ac_try='test -s conftest.$ac_objext'
  9698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9699. (eval $ac_try) 2>&5
  9700. ac_status=$?
  9701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9702. (exit $ac_status); }; }; then
  9703. ac_hi=-1 ac_mid=-1
  9704. while :; do
  9705. cat >conftest.$ac_ext <<_ACEOF
  9706. #line $LINENO "configure"
  9707. /* confdefs.h. */
  9708. _ACEOF
  9709. cat confdefs.h >>conftest.$ac_ext
  9710. cat >>conftest.$ac_ext <<_ACEOF
  9711. /* end confdefs.h. */
  9712. $ac_includes_default
  9713. int
  9714. main ()
  9715. {
  9716. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  9717. test_array [0] = 0
  9718. ;
  9719. return 0;
  9720. }
  9721. _ACEOF
  9722. rm -f conftest.$ac_objext
  9723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9724. (eval $ac_compile) 2>&5
  9725. ac_status=$?
  9726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9727. (exit $ac_status); } &&
  9728. { ac_try='test -s conftest.$ac_objext'
  9729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9730. (eval $ac_try) 2>&5
  9731. ac_status=$?
  9732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9733. (exit $ac_status); }; }; then
  9734. ac_lo=$ac_mid; break
  9735. else
  9736. echo "$as_me: failed program was:" >&5
  9737. sed 's/^/| /' conftest.$ac_ext >&5
  9738. ac_hi=`expr '(' $ac_mid ')' - 1`
  9739. if test $ac_mid -le $ac_hi; then
  9740. ac_lo= ac_hi=
  9741. break
  9742. fi
  9743. ac_mid=`expr 2 '*' $ac_mid`
  9744. fi
  9745. rm -f conftest.$ac_objext conftest.$ac_ext
  9746. done
  9747. else
  9748. echo "$as_me: failed program was:" >&5
  9749. sed 's/^/| /' conftest.$ac_ext >&5
  9750. ac_lo= ac_hi=
  9751. fi
  9752. rm -f conftest.$ac_objext conftest.$ac_ext
  9753. fi
  9754. rm -f conftest.$ac_objext conftest.$ac_ext
  9755. # Binary search between lo and hi bounds.
  9756. while test "x$ac_lo" != "x$ac_hi"; do
  9757. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9758. cat >conftest.$ac_ext <<_ACEOF
  9759. #line $LINENO "configure"
  9760. /* confdefs.h. */
  9761. _ACEOF
  9762. cat confdefs.h >>conftest.$ac_ext
  9763. cat >>conftest.$ac_ext <<_ACEOF
  9764. /* end confdefs.h. */
  9765. $ac_includes_default
  9766. int
  9767. main ()
  9768. {
  9769. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  9770. test_array [0] = 0
  9771. ;
  9772. return 0;
  9773. }
  9774. _ACEOF
  9775. rm -f conftest.$ac_objext
  9776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9777. (eval $ac_compile) 2>&5
  9778. ac_status=$?
  9779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9780. (exit $ac_status); } &&
  9781. { ac_try='test -s conftest.$ac_objext'
  9782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9783. (eval $ac_try) 2>&5
  9784. ac_status=$?
  9785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9786. (exit $ac_status); }; }; then
  9787. ac_hi=$ac_mid
  9788. else
  9789. echo "$as_me: failed program was:" >&5
  9790. sed 's/^/| /' conftest.$ac_ext >&5
  9791. ac_lo=`expr '(' $ac_mid ')' + 1`
  9792. fi
  9793. rm -f conftest.$ac_objext conftest.$ac_ext
  9794. done
  9795. case $ac_lo in
  9796. ?*) ac_cv_sizeof_short=$ac_lo;;
  9797. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  9798. See \`config.log' for more details." >&5
  9799. echo "$as_me: error: cannot compute sizeof (short), 77
  9800. See \`config.log' for more details." >&2;}
  9801. { (exit 1); exit 1; }; } ;;
  9802. esac
  9803. else
  9804. if test "$cross_compiling" = yes; then
  9805. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  9806. See \`config.log' for more details." >&5
  9807. echo "$as_me: error: cannot run test program while cross compiling
  9808. See \`config.log' for more details." >&2;}
  9809. { (exit 1); exit 1; }; }
  9810. else
  9811. cat >conftest.$ac_ext <<_ACEOF
  9812. #line $LINENO "configure"
  9813. /* confdefs.h. */
  9814. _ACEOF
  9815. cat confdefs.h >>conftest.$ac_ext
  9816. cat >>conftest.$ac_ext <<_ACEOF
  9817. /* end confdefs.h. */
  9818. $ac_includes_default
  9819. long longval () { return (long) (sizeof (short)); }
  9820. unsigned long ulongval () { return (long) (sizeof (short)); }
  9821. #include <stdio.h>
  9822. #include <stdlib.h>
  9823. int
  9824. main ()
  9825. {
  9826. FILE *f = fopen ("conftest.val", "w");
  9827. if (! f)
  9828. exit (1);
  9829. if (((long) (sizeof (short))) < 0)
  9830. {
  9831. long i = longval ();
  9832. if (i != ((long) (sizeof (short))))
  9833. exit (1);
  9834. fprintf (f, "%ld\n", i);
  9835. }
  9836. else
  9837. {
  9838. unsigned long i = ulongval ();
  9839. if (i != ((long) (sizeof (short))))
  9840. exit (1);
  9841. fprintf (f, "%lu\n", i);
  9842. }
  9843. exit (ferror (f) || fclose (f) != 0);
  9844. ;
  9845. return 0;
  9846. }
  9847. _ACEOF
  9848. rm -f conftest$ac_exeext
  9849. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9850. (eval $ac_link) 2>&5
  9851. ac_status=$?
  9852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9853. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9855. (eval $ac_try) 2>&5
  9856. ac_status=$?
  9857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); }; }; then
  9859. ac_cv_sizeof_short=`cat conftest.val`
  9860. else
  9861. echo "$as_me: program exited with status $ac_status" >&5
  9862. echo "$as_me: failed program was:" >&5
  9863. sed 's/^/| /' conftest.$ac_ext >&5
  9864. ( exit $ac_status )
  9865. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  9866. See \`config.log' for more details." >&5
  9867. echo "$as_me: error: cannot compute sizeof (short), 77
  9868. See \`config.log' for more details." >&2;}
  9869. { (exit 1); exit 1; }; }
  9870. fi
  9871. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9872. fi
  9873. fi
  9874. rm -f conftest.val
  9875. else
  9876. ac_cv_sizeof_short=0
  9877. fi
  9878. fi
  9879. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  9880. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  9881. cat >>confdefs.h <<_ACEOF
  9882. #define SIZEOF_SHORT $ac_cv_sizeof_short
  9883. _ACEOF
  9884. echo "$as_me:$LINENO: checking for int" >&5
  9885. echo $ECHO_N "checking for int... $ECHO_C" >&6
  9886. if test "${ac_cv_type_int+set}" = set; then
  9887. echo $ECHO_N "(cached) $ECHO_C" >&6
  9888. else
  9889. cat >conftest.$ac_ext <<_ACEOF
  9890. #line $LINENO "configure"
  9891. /* confdefs.h. */
  9892. _ACEOF
  9893. cat confdefs.h >>conftest.$ac_ext
  9894. cat >>conftest.$ac_ext <<_ACEOF
  9895. /* end confdefs.h. */
  9896. $ac_includes_default
  9897. int
  9898. main ()
  9899. {
  9900. if ((int *) 0)
  9901. return 0;
  9902. if (sizeof (int))
  9903. return 0;
  9904. ;
  9905. return 0;
  9906. }
  9907. _ACEOF
  9908. rm -f conftest.$ac_objext
  9909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9910. (eval $ac_compile) 2>&5
  9911. ac_status=$?
  9912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9913. (exit $ac_status); } &&
  9914. { ac_try='test -s conftest.$ac_objext'
  9915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9916. (eval $ac_try) 2>&5
  9917. ac_status=$?
  9918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9919. (exit $ac_status); }; }; then
  9920. ac_cv_type_int=yes
  9921. else
  9922. echo "$as_me: failed program was:" >&5
  9923. sed 's/^/| /' conftest.$ac_ext >&5
  9924. ac_cv_type_int=no
  9925. fi
  9926. rm -f conftest.$ac_objext conftest.$ac_ext
  9927. fi
  9928. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  9929. echo "${ECHO_T}$ac_cv_type_int" >&6
  9930. echo "$as_me:$LINENO: checking size of int" >&5
  9931. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  9932. if test "${ac_cv_sizeof_int+set}" = set; then
  9933. echo $ECHO_N "(cached) $ECHO_C" >&6
  9934. else
  9935. if test "$ac_cv_type_int" = yes; then
  9936. # The cast to unsigned long works around a bug in the HP C Compiler
  9937. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9938. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9939. # This bug is HP SR number 8606223364.
  9940. if test "$cross_compiling" = yes; then
  9941. # Depending upon the size, compute the lo and hi bounds.
  9942. cat >conftest.$ac_ext <<_ACEOF
  9943. #line $LINENO "configure"
  9944. /* confdefs.h. */
  9945. _ACEOF
  9946. cat confdefs.h >>conftest.$ac_ext
  9947. cat >>conftest.$ac_ext <<_ACEOF
  9948. /* end confdefs.h. */
  9949. $ac_includes_default
  9950. int
  9951. main ()
  9952. {
  9953. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  9954. test_array [0] = 0
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. rm -f conftest.$ac_objext
  9960. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9961. (eval $ac_compile) 2>&5
  9962. ac_status=$?
  9963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9964. (exit $ac_status); } &&
  9965. { ac_try='test -s conftest.$ac_objext'
  9966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9967. (eval $ac_try) 2>&5
  9968. ac_status=$?
  9969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9970. (exit $ac_status); }; }; then
  9971. ac_lo=0 ac_mid=0
  9972. while :; do
  9973. cat >conftest.$ac_ext <<_ACEOF
  9974. #line $LINENO "configure"
  9975. /* confdefs.h. */
  9976. _ACEOF
  9977. cat confdefs.h >>conftest.$ac_ext
  9978. cat >>conftest.$ac_ext <<_ACEOF
  9979. /* end confdefs.h. */
  9980. $ac_includes_default
  9981. int
  9982. main ()
  9983. {
  9984. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  9985. test_array [0] = 0
  9986. ;
  9987. return 0;
  9988. }
  9989. _ACEOF
  9990. rm -f conftest.$ac_objext
  9991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9992. (eval $ac_compile) 2>&5
  9993. ac_status=$?
  9994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9995. (exit $ac_status); } &&
  9996. { ac_try='test -s conftest.$ac_objext'
  9997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9998. (eval $ac_try) 2>&5
  9999. ac_status=$?
  10000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10001. (exit $ac_status); }; }; then
  10002. ac_hi=$ac_mid; break
  10003. else
  10004. echo "$as_me: failed program was:" >&5
  10005. sed 's/^/| /' conftest.$ac_ext >&5
  10006. ac_lo=`expr $ac_mid + 1`
  10007. if test $ac_lo -le $ac_mid; then
  10008. ac_lo= ac_hi=
  10009. break
  10010. fi
  10011. ac_mid=`expr 2 '*' $ac_mid + 1`
  10012. fi
  10013. rm -f conftest.$ac_objext conftest.$ac_ext
  10014. done
  10015. else
  10016. echo "$as_me: failed program was:" >&5
  10017. sed 's/^/| /' conftest.$ac_ext >&5
  10018. cat >conftest.$ac_ext <<_ACEOF
  10019. #line $LINENO "configure"
  10020. /* confdefs.h. */
  10021. _ACEOF
  10022. cat confdefs.h >>conftest.$ac_ext
  10023. cat >>conftest.$ac_ext <<_ACEOF
  10024. /* end confdefs.h. */
  10025. $ac_includes_default
  10026. int
  10027. main ()
  10028. {
  10029. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  10030. test_array [0] = 0
  10031. ;
  10032. return 0;
  10033. }
  10034. _ACEOF
  10035. rm -f conftest.$ac_objext
  10036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10037. (eval $ac_compile) 2>&5
  10038. ac_status=$?
  10039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. (exit $ac_status); } &&
  10041. { ac_try='test -s conftest.$ac_objext'
  10042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10043. (eval $ac_try) 2>&5
  10044. ac_status=$?
  10045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10046. (exit $ac_status); }; }; then
  10047. ac_hi=-1 ac_mid=-1
  10048. while :; do
  10049. cat >conftest.$ac_ext <<_ACEOF
  10050. #line $LINENO "configure"
  10051. /* confdefs.h. */
  10052. _ACEOF
  10053. cat confdefs.h >>conftest.$ac_ext
  10054. cat >>conftest.$ac_ext <<_ACEOF
  10055. /* end confdefs.h. */
  10056. $ac_includes_default
  10057. int
  10058. main ()
  10059. {
  10060. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  10061. test_array [0] = 0
  10062. ;
  10063. return 0;
  10064. }
  10065. _ACEOF
  10066. rm -f conftest.$ac_objext
  10067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10068. (eval $ac_compile) 2>&5
  10069. ac_status=$?
  10070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } &&
  10072. { ac_try='test -s conftest.$ac_objext'
  10073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10074. (eval $ac_try) 2>&5
  10075. ac_status=$?
  10076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10077. (exit $ac_status); }; }; then
  10078. ac_lo=$ac_mid; break
  10079. else
  10080. echo "$as_me: failed program was:" >&5
  10081. sed 's/^/| /' conftest.$ac_ext >&5
  10082. ac_hi=`expr '(' $ac_mid ')' - 1`
  10083. if test $ac_mid -le $ac_hi; then
  10084. ac_lo= ac_hi=
  10085. break
  10086. fi
  10087. ac_mid=`expr 2 '*' $ac_mid`
  10088. fi
  10089. rm -f conftest.$ac_objext conftest.$ac_ext
  10090. done
  10091. else
  10092. echo "$as_me: failed program was:" >&5
  10093. sed 's/^/| /' conftest.$ac_ext >&5
  10094. ac_lo= ac_hi=
  10095. fi
  10096. rm -f conftest.$ac_objext conftest.$ac_ext
  10097. fi
  10098. rm -f conftest.$ac_objext conftest.$ac_ext
  10099. # Binary search between lo and hi bounds.
  10100. while test "x$ac_lo" != "x$ac_hi"; do
  10101. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10102. cat >conftest.$ac_ext <<_ACEOF
  10103. #line $LINENO "configure"
  10104. /* confdefs.h. */
  10105. _ACEOF
  10106. cat confdefs.h >>conftest.$ac_ext
  10107. cat >>conftest.$ac_ext <<_ACEOF
  10108. /* end confdefs.h. */
  10109. $ac_includes_default
  10110. int
  10111. main ()
  10112. {
  10113. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  10114. test_array [0] = 0
  10115. ;
  10116. return 0;
  10117. }
  10118. _ACEOF
  10119. rm -f conftest.$ac_objext
  10120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10121. (eval $ac_compile) 2>&5
  10122. ac_status=$?
  10123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10124. (exit $ac_status); } &&
  10125. { ac_try='test -s conftest.$ac_objext'
  10126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10127. (eval $ac_try) 2>&5
  10128. ac_status=$?
  10129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10130. (exit $ac_status); }; }; then
  10131. ac_hi=$ac_mid
  10132. else
  10133. echo "$as_me: failed program was:" >&5
  10134. sed 's/^/| /' conftest.$ac_ext >&5
  10135. ac_lo=`expr '(' $ac_mid ')' + 1`
  10136. fi
  10137. rm -f conftest.$ac_objext conftest.$ac_ext
  10138. done
  10139. case $ac_lo in
  10140. ?*) ac_cv_sizeof_int=$ac_lo;;
  10141. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  10142. See \`config.log' for more details." >&5
  10143. echo "$as_me: error: cannot compute sizeof (int), 77
  10144. See \`config.log' for more details." >&2;}
  10145. { (exit 1); exit 1; }; } ;;
  10146. esac
  10147. else
  10148. if test "$cross_compiling" = yes; then
  10149. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10150. See \`config.log' for more details." >&5
  10151. echo "$as_me: error: cannot run test program while cross compiling
  10152. See \`config.log' for more details." >&2;}
  10153. { (exit 1); exit 1; }; }
  10154. else
  10155. cat >conftest.$ac_ext <<_ACEOF
  10156. #line $LINENO "configure"
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162. $ac_includes_default
  10163. long longval () { return (long) (sizeof (int)); }
  10164. unsigned long ulongval () { return (long) (sizeof (int)); }
  10165. #include <stdio.h>
  10166. #include <stdlib.h>
  10167. int
  10168. main ()
  10169. {
  10170. FILE *f = fopen ("conftest.val", "w");
  10171. if (! f)
  10172. exit (1);
  10173. if (((long) (sizeof (int))) < 0)
  10174. {
  10175. long i = longval ();
  10176. if (i != ((long) (sizeof (int))))
  10177. exit (1);
  10178. fprintf (f, "%ld\n", i);
  10179. }
  10180. else
  10181. {
  10182. unsigned long i = ulongval ();
  10183. if (i != ((long) (sizeof (int))))
  10184. exit (1);
  10185. fprintf (f, "%lu\n", i);
  10186. }
  10187. exit (ferror (f) || fclose (f) != 0);
  10188. ;
  10189. return 0;
  10190. }
  10191. _ACEOF
  10192. rm -f conftest$ac_exeext
  10193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10194. (eval $ac_link) 2>&5
  10195. ac_status=$?
  10196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10197. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10199. (eval $ac_try) 2>&5
  10200. ac_status=$?
  10201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10202. (exit $ac_status); }; }; then
  10203. ac_cv_sizeof_int=`cat conftest.val`
  10204. else
  10205. echo "$as_me: program exited with status $ac_status" >&5
  10206. echo "$as_me: failed program was:" >&5
  10207. sed 's/^/| /' conftest.$ac_ext >&5
  10208. ( exit $ac_status )
  10209. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  10210. See \`config.log' for more details." >&5
  10211. echo "$as_me: error: cannot compute sizeof (int), 77
  10212. See \`config.log' for more details." >&2;}
  10213. { (exit 1); exit 1; }; }
  10214. fi
  10215. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10216. fi
  10217. fi
  10218. rm -f conftest.val
  10219. else
  10220. ac_cv_sizeof_int=0
  10221. fi
  10222. fi
  10223. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  10224. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  10225. cat >>confdefs.h <<_ACEOF
  10226. #define SIZEOF_INT $ac_cv_sizeof_int
  10227. _ACEOF
  10228. echo "$as_me:$LINENO: checking for long" >&5
  10229. echo $ECHO_N "checking for long... $ECHO_C" >&6
  10230. if test "${ac_cv_type_long+set}" = set; then
  10231. echo $ECHO_N "(cached) $ECHO_C" >&6
  10232. else
  10233. cat >conftest.$ac_ext <<_ACEOF
  10234. #line $LINENO "configure"
  10235. /* confdefs.h. */
  10236. _ACEOF
  10237. cat confdefs.h >>conftest.$ac_ext
  10238. cat >>conftest.$ac_ext <<_ACEOF
  10239. /* end confdefs.h. */
  10240. $ac_includes_default
  10241. int
  10242. main ()
  10243. {
  10244. if ((long *) 0)
  10245. return 0;
  10246. if (sizeof (long))
  10247. return 0;
  10248. ;
  10249. return 0;
  10250. }
  10251. _ACEOF
  10252. rm -f conftest.$ac_objext
  10253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10254. (eval $ac_compile) 2>&5
  10255. ac_status=$?
  10256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10257. (exit $ac_status); } &&
  10258. { ac_try='test -s conftest.$ac_objext'
  10259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10260. (eval $ac_try) 2>&5
  10261. ac_status=$?
  10262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10263. (exit $ac_status); }; }; then
  10264. ac_cv_type_long=yes
  10265. else
  10266. echo "$as_me: failed program was:" >&5
  10267. sed 's/^/| /' conftest.$ac_ext >&5
  10268. ac_cv_type_long=no
  10269. fi
  10270. rm -f conftest.$ac_objext conftest.$ac_ext
  10271. fi
  10272. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  10273. echo "${ECHO_T}$ac_cv_type_long" >&6
  10274. echo "$as_me:$LINENO: checking size of long" >&5
  10275. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  10276. if test "${ac_cv_sizeof_long+set}" = set; then
  10277. echo $ECHO_N "(cached) $ECHO_C" >&6
  10278. else
  10279. if test "$ac_cv_type_long" = yes; then
  10280. # The cast to unsigned long works around a bug in the HP C Compiler
  10281. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10282. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10283. # This bug is HP SR number 8606223364.
  10284. if test "$cross_compiling" = yes; then
  10285. # Depending upon the size, compute the lo and hi bounds.
  10286. cat >conftest.$ac_ext <<_ACEOF
  10287. #line $LINENO "configure"
  10288. /* confdefs.h. */
  10289. _ACEOF
  10290. cat confdefs.h >>conftest.$ac_ext
  10291. cat >>conftest.$ac_ext <<_ACEOF
  10292. /* end confdefs.h. */
  10293. $ac_includes_default
  10294. int
  10295. main ()
  10296. {
  10297. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  10298. test_array [0] = 0
  10299. ;
  10300. return 0;
  10301. }
  10302. _ACEOF
  10303. rm -f conftest.$ac_objext
  10304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10305. (eval $ac_compile) 2>&5
  10306. ac_status=$?
  10307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10308. (exit $ac_status); } &&
  10309. { ac_try='test -s conftest.$ac_objext'
  10310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10311. (eval $ac_try) 2>&5
  10312. ac_status=$?
  10313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10314. (exit $ac_status); }; }; then
  10315. ac_lo=0 ac_mid=0
  10316. while :; do
  10317. cat >conftest.$ac_ext <<_ACEOF
  10318. #line $LINENO "configure"
  10319. /* confdefs.h. */
  10320. _ACEOF
  10321. cat confdefs.h >>conftest.$ac_ext
  10322. cat >>conftest.$ac_ext <<_ACEOF
  10323. /* end confdefs.h. */
  10324. $ac_includes_default
  10325. int
  10326. main ()
  10327. {
  10328. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  10329. test_array [0] = 0
  10330. ;
  10331. return 0;
  10332. }
  10333. _ACEOF
  10334. rm -f conftest.$ac_objext
  10335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10336. (eval $ac_compile) 2>&5
  10337. ac_status=$?
  10338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); } &&
  10340. { ac_try='test -s conftest.$ac_objext'
  10341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10342. (eval $ac_try) 2>&5
  10343. ac_status=$?
  10344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10345. (exit $ac_status); }; }; then
  10346. ac_hi=$ac_mid; break
  10347. else
  10348. echo "$as_me: failed program was:" >&5
  10349. sed 's/^/| /' conftest.$ac_ext >&5
  10350. ac_lo=`expr $ac_mid + 1`
  10351. if test $ac_lo -le $ac_mid; then
  10352. ac_lo= ac_hi=
  10353. break
  10354. fi
  10355. ac_mid=`expr 2 '*' $ac_mid + 1`
  10356. fi
  10357. rm -f conftest.$ac_objext conftest.$ac_ext
  10358. done
  10359. else
  10360. echo "$as_me: failed program was:" >&5
  10361. sed 's/^/| /' conftest.$ac_ext >&5
  10362. cat >conftest.$ac_ext <<_ACEOF
  10363. #line $LINENO "configure"
  10364. /* confdefs.h. */
  10365. _ACEOF
  10366. cat confdefs.h >>conftest.$ac_ext
  10367. cat >>conftest.$ac_ext <<_ACEOF
  10368. /* end confdefs.h. */
  10369. $ac_includes_default
  10370. int
  10371. main ()
  10372. {
  10373. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  10374. test_array [0] = 0
  10375. ;
  10376. return 0;
  10377. }
  10378. _ACEOF
  10379. rm -f conftest.$ac_objext
  10380. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10381. (eval $ac_compile) 2>&5
  10382. ac_status=$?
  10383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10384. (exit $ac_status); } &&
  10385. { ac_try='test -s conftest.$ac_objext'
  10386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10387. (eval $ac_try) 2>&5
  10388. ac_status=$?
  10389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10390. (exit $ac_status); }; }; then
  10391. ac_hi=-1 ac_mid=-1
  10392. while :; do
  10393. cat >conftest.$ac_ext <<_ACEOF
  10394. #line $LINENO "configure"
  10395. /* confdefs.h. */
  10396. _ACEOF
  10397. cat confdefs.h >>conftest.$ac_ext
  10398. cat >>conftest.$ac_ext <<_ACEOF
  10399. /* end confdefs.h. */
  10400. $ac_includes_default
  10401. int
  10402. main ()
  10403. {
  10404. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  10405. test_array [0] = 0
  10406. ;
  10407. return 0;
  10408. }
  10409. _ACEOF
  10410. rm -f conftest.$ac_objext
  10411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10412. (eval $ac_compile) 2>&5
  10413. ac_status=$?
  10414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); } &&
  10416. { ac_try='test -s conftest.$ac_objext'
  10417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10418. (eval $ac_try) 2>&5
  10419. ac_status=$?
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); }; }; then
  10422. ac_lo=$ac_mid; break
  10423. else
  10424. echo "$as_me: failed program was:" >&5
  10425. sed 's/^/| /' conftest.$ac_ext >&5
  10426. ac_hi=`expr '(' $ac_mid ')' - 1`
  10427. if test $ac_mid -le $ac_hi; then
  10428. ac_lo= ac_hi=
  10429. break
  10430. fi
  10431. ac_mid=`expr 2 '*' $ac_mid`
  10432. fi
  10433. rm -f conftest.$ac_objext conftest.$ac_ext
  10434. done
  10435. else
  10436. echo "$as_me: failed program was:" >&5
  10437. sed 's/^/| /' conftest.$ac_ext >&5
  10438. ac_lo= ac_hi=
  10439. fi
  10440. rm -f conftest.$ac_objext conftest.$ac_ext
  10441. fi
  10442. rm -f conftest.$ac_objext conftest.$ac_ext
  10443. # Binary search between lo and hi bounds.
  10444. while test "x$ac_lo" != "x$ac_hi"; do
  10445. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10446. cat >conftest.$ac_ext <<_ACEOF
  10447. #line $LINENO "configure"
  10448. /* confdefs.h. */
  10449. _ACEOF
  10450. cat confdefs.h >>conftest.$ac_ext
  10451. cat >>conftest.$ac_ext <<_ACEOF
  10452. /* end confdefs.h. */
  10453. $ac_includes_default
  10454. int
  10455. main ()
  10456. {
  10457. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  10458. test_array [0] = 0
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. rm -f conftest.$ac_objext
  10464. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10465. (eval $ac_compile) 2>&5
  10466. ac_status=$?
  10467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10468. (exit $ac_status); } &&
  10469. { ac_try='test -s conftest.$ac_objext'
  10470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10471. (eval $ac_try) 2>&5
  10472. ac_status=$?
  10473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); }; }; then
  10475. ac_hi=$ac_mid
  10476. else
  10477. echo "$as_me: failed program was:" >&5
  10478. sed 's/^/| /' conftest.$ac_ext >&5
  10479. ac_lo=`expr '(' $ac_mid ')' + 1`
  10480. fi
  10481. rm -f conftest.$ac_objext conftest.$ac_ext
  10482. done
  10483. case $ac_lo in
  10484. ?*) ac_cv_sizeof_long=$ac_lo;;
  10485. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  10486. See \`config.log' for more details." >&5
  10487. echo "$as_me: error: cannot compute sizeof (long), 77
  10488. See \`config.log' for more details." >&2;}
  10489. { (exit 1); exit 1; }; } ;;
  10490. esac
  10491. else
  10492. if test "$cross_compiling" = yes; then
  10493. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10494. See \`config.log' for more details." >&5
  10495. echo "$as_me: error: cannot run test program while cross compiling
  10496. See \`config.log' for more details." >&2;}
  10497. { (exit 1); exit 1; }; }
  10498. else
  10499. cat >conftest.$ac_ext <<_ACEOF
  10500. #line $LINENO "configure"
  10501. /* confdefs.h. */
  10502. _ACEOF
  10503. cat confdefs.h >>conftest.$ac_ext
  10504. cat >>conftest.$ac_ext <<_ACEOF
  10505. /* end confdefs.h. */
  10506. $ac_includes_default
  10507. long longval () { return (long) (sizeof (long)); }
  10508. unsigned long ulongval () { return (long) (sizeof (long)); }
  10509. #include <stdio.h>
  10510. #include <stdlib.h>
  10511. int
  10512. main ()
  10513. {
  10514. FILE *f = fopen ("conftest.val", "w");
  10515. if (! f)
  10516. exit (1);
  10517. if (((long) (sizeof (long))) < 0)
  10518. {
  10519. long i = longval ();
  10520. if (i != ((long) (sizeof (long))))
  10521. exit (1);
  10522. fprintf (f, "%ld\n", i);
  10523. }
  10524. else
  10525. {
  10526. unsigned long i = ulongval ();
  10527. if (i != ((long) (sizeof (long))))
  10528. exit (1);
  10529. fprintf (f, "%lu\n", i);
  10530. }
  10531. exit (ferror (f) || fclose (f) != 0);
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. rm -f conftest$ac_exeext
  10537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10538. (eval $ac_link) 2>&5
  10539. ac_status=$?
  10540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10541. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10543. (eval $ac_try) 2>&5
  10544. ac_status=$?
  10545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10546. (exit $ac_status); }; }; then
  10547. ac_cv_sizeof_long=`cat conftest.val`
  10548. else
  10549. echo "$as_me: program exited with status $ac_status" >&5
  10550. echo "$as_me: failed program was:" >&5
  10551. sed 's/^/| /' conftest.$ac_ext >&5
  10552. ( exit $ac_status )
  10553. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  10554. See \`config.log' for more details." >&5
  10555. echo "$as_me: error: cannot compute sizeof (long), 77
  10556. See \`config.log' for more details." >&2;}
  10557. { (exit 1); exit 1; }; }
  10558. fi
  10559. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10560. fi
  10561. fi
  10562. rm -f conftest.val
  10563. else
  10564. ac_cv_sizeof_long=0
  10565. fi
  10566. fi
  10567. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  10568. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  10569. cat >>confdefs.h <<_ACEOF
  10570. #define SIZEOF_LONG $ac_cv_sizeof_long
  10571. _ACEOF
  10572. echo "$as_me:$LINENO: checking for long long" >&5
  10573. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  10574. if test "${ac_cv_type_long_long+set}" = set; then
  10575. echo $ECHO_N "(cached) $ECHO_C" >&6
  10576. else
  10577. cat >conftest.$ac_ext <<_ACEOF
  10578. #line $LINENO "configure"
  10579. /* confdefs.h. */
  10580. _ACEOF
  10581. cat confdefs.h >>conftest.$ac_ext
  10582. cat >>conftest.$ac_ext <<_ACEOF
  10583. /* end confdefs.h. */
  10584. $ac_includes_default
  10585. int
  10586. main ()
  10587. {
  10588. if ((long long *) 0)
  10589. return 0;
  10590. if (sizeof (long long))
  10591. return 0;
  10592. ;
  10593. return 0;
  10594. }
  10595. _ACEOF
  10596. rm -f conftest.$ac_objext
  10597. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10598. (eval $ac_compile) 2>&5
  10599. ac_status=$?
  10600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10601. (exit $ac_status); } &&
  10602. { ac_try='test -s conftest.$ac_objext'
  10603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10604. (eval $ac_try) 2>&5
  10605. ac_status=$?
  10606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10607. (exit $ac_status); }; }; then
  10608. ac_cv_type_long_long=yes
  10609. else
  10610. echo "$as_me: failed program was:" >&5
  10611. sed 's/^/| /' conftest.$ac_ext >&5
  10612. ac_cv_type_long_long=no
  10613. fi
  10614. rm -f conftest.$ac_objext conftest.$ac_ext
  10615. fi
  10616. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  10617. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  10618. echo "$as_me:$LINENO: checking size of long long" >&5
  10619. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  10620. if test "${ac_cv_sizeof_long_long+set}" = set; then
  10621. echo $ECHO_N "(cached) $ECHO_C" >&6
  10622. else
  10623. if test "$ac_cv_type_long_long" = yes; then
  10624. # The cast to unsigned long works around a bug in the HP C Compiler
  10625. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10626. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10627. # This bug is HP SR number 8606223364.
  10628. if test "$cross_compiling" = yes; then
  10629. # Depending upon the size, compute the lo and hi bounds.
  10630. cat >conftest.$ac_ext <<_ACEOF
  10631. #line $LINENO "configure"
  10632. /* confdefs.h. */
  10633. _ACEOF
  10634. cat confdefs.h >>conftest.$ac_ext
  10635. cat >>conftest.$ac_ext <<_ACEOF
  10636. /* end confdefs.h. */
  10637. $ac_includes_default
  10638. int
  10639. main ()
  10640. {
  10641. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  10642. test_array [0] = 0
  10643. ;
  10644. return 0;
  10645. }
  10646. _ACEOF
  10647. rm -f conftest.$ac_objext
  10648. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10649. (eval $ac_compile) 2>&5
  10650. ac_status=$?
  10651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10652. (exit $ac_status); } &&
  10653. { ac_try='test -s conftest.$ac_objext'
  10654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10655. (eval $ac_try) 2>&5
  10656. ac_status=$?
  10657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10658. (exit $ac_status); }; }; then
  10659. ac_lo=0 ac_mid=0
  10660. while :; do
  10661. cat >conftest.$ac_ext <<_ACEOF
  10662. #line $LINENO "configure"
  10663. /* confdefs.h. */
  10664. _ACEOF
  10665. cat confdefs.h >>conftest.$ac_ext
  10666. cat >>conftest.$ac_ext <<_ACEOF
  10667. /* end confdefs.h. */
  10668. $ac_includes_default
  10669. int
  10670. main ()
  10671. {
  10672. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  10673. test_array [0] = 0
  10674. ;
  10675. return 0;
  10676. }
  10677. _ACEOF
  10678. rm -f conftest.$ac_objext
  10679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10680. (eval $ac_compile) 2>&5
  10681. ac_status=$?
  10682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10683. (exit $ac_status); } &&
  10684. { ac_try='test -s conftest.$ac_objext'
  10685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10686. (eval $ac_try) 2>&5
  10687. ac_status=$?
  10688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10689. (exit $ac_status); }; }; then
  10690. ac_hi=$ac_mid; break
  10691. else
  10692. echo "$as_me: failed program was:" >&5
  10693. sed 's/^/| /' conftest.$ac_ext >&5
  10694. ac_lo=`expr $ac_mid + 1`
  10695. if test $ac_lo -le $ac_mid; then
  10696. ac_lo= ac_hi=
  10697. break
  10698. fi
  10699. ac_mid=`expr 2 '*' $ac_mid + 1`
  10700. fi
  10701. rm -f conftest.$ac_objext conftest.$ac_ext
  10702. done
  10703. else
  10704. echo "$as_me: failed program was:" >&5
  10705. sed 's/^/| /' conftest.$ac_ext >&5
  10706. cat >conftest.$ac_ext <<_ACEOF
  10707. #line $LINENO "configure"
  10708. /* confdefs.h. */
  10709. _ACEOF
  10710. cat confdefs.h >>conftest.$ac_ext
  10711. cat >>conftest.$ac_ext <<_ACEOF
  10712. /* end confdefs.h. */
  10713. $ac_includes_default
  10714. int
  10715. main ()
  10716. {
  10717. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  10718. test_array [0] = 0
  10719. ;
  10720. return 0;
  10721. }
  10722. _ACEOF
  10723. rm -f conftest.$ac_objext
  10724. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10725. (eval $ac_compile) 2>&5
  10726. ac_status=$?
  10727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. (exit $ac_status); } &&
  10729. { ac_try='test -s conftest.$ac_objext'
  10730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10731. (eval $ac_try) 2>&5
  10732. ac_status=$?
  10733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10734. (exit $ac_status); }; }; then
  10735. ac_hi=-1 ac_mid=-1
  10736. while :; do
  10737. cat >conftest.$ac_ext <<_ACEOF
  10738. #line $LINENO "configure"
  10739. /* confdefs.h. */
  10740. _ACEOF
  10741. cat confdefs.h >>conftest.$ac_ext
  10742. cat >>conftest.$ac_ext <<_ACEOF
  10743. /* end confdefs.h. */
  10744. $ac_includes_default
  10745. int
  10746. main ()
  10747. {
  10748. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  10749. test_array [0] = 0
  10750. ;
  10751. return 0;
  10752. }
  10753. _ACEOF
  10754. rm -f conftest.$ac_objext
  10755. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10756. (eval $ac_compile) 2>&5
  10757. ac_status=$?
  10758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10759. (exit $ac_status); } &&
  10760. { ac_try='test -s conftest.$ac_objext'
  10761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10762. (eval $ac_try) 2>&5
  10763. ac_status=$?
  10764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10765. (exit $ac_status); }; }; then
  10766. ac_lo=$ac_mid; break
  10767. else
  10768. echo "$as_me: failed program was:" >&5
  10769. sed 's/^/| /' conftest.$ac_ext >&5
  10770. ac_hi=`expr '(' $ac_mid ')' - 1`
  10771. if test $ac_mid -le $ac_hi; then
  10772. ac_lo= ac_hi=
  10773. break
  10774. fi
  10775. ac_mid=`expr 2 '*' $ac_mid`
  10776. fi
  10777. rm -f conftest.$ac_objext conftest.$ac_ext
  10778. done
  10779. else
  10780. echo "$as_me: failed program was:" >&5
  10781. sed 's/^/| /' conftest.$ac_ext >&5
  10782. ac_lo= ac_hi=
  10783. fi
  10784. rm -f conftest.$ac_objext conftest.$ac_ext
  10785. fi
  10786. rm -f conftest.$ac_objext conftest.$ac_ext
  10787. # Binary search between lo and hi bounds.
  10788. while test "x$ac_lo" != "x$ac_hi"; do
  10789. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10790. cat >conftest.$ac_ext <<_ACEOF
  10791. #line $LINENO "configure"
  10792. /* confdefs.h. */
  10793. _ACEOF
  10794. cat confdefs.h >>conftest.$ac_ext
  10795. cat >>conftest.$ac_ext <<_ACEOF
  10796. /* end confdefs.h. */
  10797. $ac_includes_default
  10798. int
  10799. main ()
  10800. {
  10801. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  10802. test_array [0] = 0
  10803. ;
  10804. return 0;
  10805. }
  10806. _ACEOF
  10807. rm -f conftest.$ac_objext
  10808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10809. (eval $ac_compile) 2>&5
  10810. ac_status=$?
  10811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10812. (exit $ac_status); } &&
  10813. { ac_try='test -s conftest.$ac_objext'
  10814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10815. (eval $ac_try) 2>&5
  10816. ac_status=$?
  10817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10818. (exit $ac_status); }; }; then
  10819. ac_hi=$ac_mid
  10820. else
  10821. echo "$as_me: failed program was:" >&5
  10822. sed 's/^/| /' conftest.$ac_ext >&5
  10823. ac_lo=`expr '(' $ac_mid ')' + 1`
  10824. fi
  10825. rm -f conftest.$ac_objext conftest.$ac_ext
  10826. done
  10827. case $ac_lo in
  10828. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  10829. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  10830. See \`config.log' for more details." >&5
  10831. echo "$as_me: error: cannot compute sizeof (long long), 77
  10832. See \`config.log' for more details." >&2;}
  10833. { (exit 1); exit 1; }; } ;;
  10834. esac
  10835. else
  10836. if test "$cross_compiling" = yes; then
  10837. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10838. See \`config.log' for more details." >&5
  10839. echo "$as_me: error: cannot run test program while cross compiling
  10840. See \`config.log' for more details." >&2;}
  10841. { (exit 1); exit 1; }; }
  10842. else
  10843. cat >conftest.$ac_ext <<_ACEOF
  10844. #line $LINENO "configure"
  10845. /* confdefs.h. */
  10846. _ACEOF
  10847. cat confdefs.h >>conftest.$ac_ext
  10848. cat >>conftest.$ac_ext <<_ACEOF
  10849. /* end confdefs.h. */
  10850. $ac_includes_default
  10851. long longval () { return (long) (sizeof (long long)); }
  10852. unsigned long ulongval () { return (long) (sizeof (long long)); }
  10853. #include <stdio.h>
  10854. #include <stdlib.h>
  10855. int
  10856. main ()
  10857. {
  10858. FILE *f = fopen ("conftest.val", "w");
  10859. if (! f)
  10860. exit (1);
  10861. if (((long) (sizeof (long long))) < 0)
  10862. {
  10863. long i = longval ();
  10864. if (i != ((long) (sizeof (long long))))
  10865. exit (1);
  10866. fprintf (f, "%ld\n", i);
  10867. }
  10868. else
  10869. {
  10870. unsigned long i = ulongval ();
  10871. if (i != ((long) (sizeof (long long))))
  10872. exit (1);
  10873. fprintf (f, "%lu\n", i);
  10874. }
  10875. exit (ferror (f) || fclose (f) != 0);
  10876. ;
  10877. return 0;
  10878. }
  10879. _ACEOF
  10880. rm -f conftest$ac_exeext
  10881. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10882. (eval $ac_link) 2>&5
  10883. ac_status=$?
  10884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10885. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10887. (eval $ac_try) 2>&5
  10888. ac_status=$?
  10889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10890. (exit $ac_status); }; }; then
  10891. ac_cv_sizeof_long_long=`cat conftest.val`
  10892. else
  10893. echo "$as_me: program exited with status $ac_status" >&5
  10894. echo "$as_me: failed program was:" >&5
  10895. sed 's/^/| /' conftest.$ac_ext >&5
  10896. ( exit $ac_status )
  10897. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  10898. See \`config.log' for more details." >&5
  10899. echo "$as_me: error: cannot compute sizeof (long long), 77
  10900. See \`config.log' for more details." >&2;}
  10901. { (exit 1); exit 1; }; }
  10902. fi
  10903. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10904. fi
  10905. fi
  10906. rm -f conftest.val
  10907. else
  10908. ac_cv_sizeof_long_long=0
  10909. fi
  10910. fi
  10911. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  10912. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  10913. cat >>confdefs.h <<_ACEOF
  10914. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10915. _ACEOF
  10916. echo "$as_me:$LINENO: checking for int *" >&5
  10917. echo $ECHO_N "checking for int *... $ECHO_C" >&6
  10918. if test "${ac_cv_type_int_p+set}" = set; then
  10919. echo $ECHO_N "(cached) $ECHO_C" >&6
  10920. else
  10921. cat >conftest.$ac_ext <<_ACEOF
  10922. #line $LINENO "configure"
  10923. /* confdefs.h. */
  10924. _ACEOF
  10925. cat confdefs.h >>conftest.$ac_ext
  10926. cat >>conftest.$ac_ext <<_ACEOF
  10927. /* end confdefs.h. */
  10928. $ac_includes_default
  10929. int
  10930. main ()
  10931. {
  10932. if ((int * *) 0)
  10933. return 0;
  10934. if (sizeof (int *))
  10935. return 0;
  10936. ;
  10937. return 0;
  10938. }
  10939. _ACEOF
  10940. rm -f conftest.$ac_objext
  10941. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10942. (eval $ac_compile) 2>&5
  10943. ac_status=$?
  10944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10945. (exit $ac_status); } &&
  10946. { ac_try='test -s conftest.$ac_objext'
  10947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10948. (eval $ac_try) 2>&5
  10949. ac_status=$?
  10950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10951. (exit $ac_status); }; }; then
  10952. ac_cv_type_int_p=yes
  10953. else
  10954. echo "$as_me: failed program was:" >&5
  10955. sed 's/^/| /' conftest.$ac_ext >&5
  10956. ac_cv_type_int_p=no
  10957. fi
  10958. rm -f conftest.$ac_objext conftest.$ac_ext
  10959. fi
  10960. echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
  10961. echo "${ECHO_T}$ac_cv_type_int_p" >&6
  10962. echo "$as_me:$LINENO: checking size of int *" >&5
  10963. echo $ECHO_N "checking size of int *... $ECHO_C" >&6
  10964. if test "${ac_cv_sizeof_int_p+set}" = set; then
  10965. echo $ECHO_N "(cached) $ECHO_C" >&6
  10966. else
  10967. if test "$ac_cv_type_int_p" = yes; then
  10968. # The cast to unsigned long works around a bug in the HP C Compiler
  10969. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10970. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10971. # This bug is HP SR number 8606223364.
  10972. if test "$cross_compiling" = yes; then
  10973. # Depending upon the size, compute the lo and hi bounds.
  10974. cat >conftest.$ac_ext <<_ACEOF
  10975. #line $LINENO "configure"
  10976. /* confdefs.h. */
  10977. _ACEOF
  10978. cat confdefs.h >>conftest.$ac_ext
  10979. cat >>conftest.$ac_ext <<_ACEOF
  10980. /* end confdefs.h. */
  10981. $ac_includes_default
  10982. int
  10983. main ()
  10984. {
  10985. static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
  10986. test_array [0] = 0
  10987. ;
  10988. return 0;
  10989. }
  10990. _ACEOF
  10991. rm -f conftest.$ac_objext
  10992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10993. (eval $ac_compile) 2>&5
  10994. ac_status=$?
  10995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10996. (exit $ac_status); } &&
  10997. { ac_try='test -s conftest.$ac_objext'
  10998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10999. (eval $ac_try) 2>&5
  11000. ac_status=$?
  11001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11002. (exit $ac_status); }; }; then
  11003. ac_lo=0 ac_mid=0
  11004. while :; do
  11005. cat >conftest.$ac_ext <<_ACEOF
  11006. #line $LINENO "configure"
  11007. /* confdefs.h. */
  11008. _ACEOF
  11009. cat confdefs.h >>conftest.$ac_ext
  11010. cat >>conftest.$ac_ext <<_ACEOF
  11011. /* end confdefs.h. */
  11012. $ac_includes_default
  11013. int
  11014. main ()
  11015. {
  11016. static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
  11017. test_array [0] = 0
  11018. ;
  11019. return 0;
  11020. }
  11021. _ACEOF
  11022. rm -f conftest.$ac_objext
  11023. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11024. (eval $ac_compile) 2>&5
  11025. ac_status=$?
  11026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11027. (exit $ac_status); } &&
  11028. { ac_try='test -s conftest.$ac_objext'
  11029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11030. (eval $ac_try) 2>&5
  11031. ac_status=$?
  11032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11033. (exit $ac_status); }; }; then
  11034. ac_hi=$ac_mid; break
  11035. else
  11036. echo "$as_me: failed program was:" >&5
  11037. sed 's/^/| /' conftest.$ac_ext >&5
  11038. ac_lo=`expr $ac_mid + 1`
  11039. if test $ac_lo -le $ac_mid; then
  11040. ac_lo= ac_hi=
  11041. break
  11042. fi
  11043. ac_mid=`expr 2 '*' $ac_mid + 1`
  11044. fi
  11045. rm -f conftest.$ac_objext conftest.$ac_ext
  11046. done
  11047. else
  11048. echo "$as_me: failed program was:" >&5
  11049. sed 's/^/| /' conftest.$ac_ext >&5
  11050. cat >conftest.$ac_ext <<_ACEOF
  11051. #line $LINENO "configure"
  11052. /* confdefs.h. */
  11053. _ACEOF
  11054. cat confdefs.h >>conftest.$ac_ext
  11055. cat >>conftest.$ac_ext <<_ACEOF
  11056. /* end confdefs.h. */
  11057. $ac_includes_default
  11058. int
  11059. main ()
  11060. {
  11061. static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
  11062. test_array [0] = 0
  11063. ;
  11064. return 0;
  11065. }
  11066. _ACEOF
  11067. rm -f conftest.$ac_objext
  11068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11069. (eval $ac_compile) 2>&5
  11070. ac_status=$?
  11071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11072. (exit $ac_status); } &&
  11073. { ac_try='test -s conftest.$ac_objext'
  11074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11075. (eval $ac_try) 2>&5
  11076. ac_status=$?
  11077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11078. (exit $ac_status); }; }; then
  11079. ac_hi=-1 ac_mid=-1
  11080. while :; do
  11081. cat >conftest.$ac_ext <<_ACEOF
  11082. #line $LINENO "configure"
  11083. /* confdefs.h. */
  11084. _ACEOF
  11085. cat confdefs.h >>conftest.$ac_ext
  11086. cat >>conftest.$ac_ext <<_ACEOF
  11087. /* end confdefs.h. */
  11088. $ac_includes_default
  11089. int
  11090. main ()
  11091. {
  11092. static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
  11093. test_array [0] = 0
  11094. ;
  11095. return 0;
  11096. }
  11097. _ACEOF
  11098. rm -f conftest.$ac_objext
  11099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11100. (eval $ac_compile) 2>&5
  11101. ac_status=$?
  11102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11103. (exit $ac_status); } &&
  11104. { ac_try='test -s conftest.$ac_objext'
  11105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11106. (eval $ac_try) 2>&5
  11107. ac_status=$?
  11108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11109. (exit $ac_status); }; }; then
  11110. ac_lo=$ac_mid; break
  11111. else
  11112. echo "$as_me: failed program was:" >&5
  11113. sed 's/^/| /' conftest.$ac_ext >&5
  11114. ac_hi=`expr '(' $ac_mid ')' - 1`
  11115. if test $ac_mid -le $ac_hi; then
  11116. ac_lo= ac_hi=
  11117. break
  11118. fi
  11119. ac_mid=`expr 2 '*' $ac_mid`
  11120. fi
  11121. rm -f conftest.$ac_objext conftest.$ac_ext
  11122. done
  11123. else
  11124. echo "$as_me: failed program was:" >&5
  11125. sed 's/^/| /' conftest.$ac_ext >&5
  11126. ac_lo= ac_hi=
  11127. fi
  11128. rm -f conftest.$ac_objext conftest.$ac_ext
  11129. fi
  11130. rm -f conftest.$ac_objext conftest.$ac_ext
  11131. # Binary search between lo and hi bounds.
  11132. while test "x$ac_lo" != "x$ac_hi"; do
  11133. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11134. cat >conftest.$ac_ext <<_ACEOF
  11135. #line $LINENO "configure"
  11136. /* confdefs.h. */
  11137. _ACEOF
  11138. cat confdefs.h >>conftest.$ac_ext
  11139. cat >>conftest.$ac_ext <<_ACEOF
  11140. /* end confdefs.h. */
  11141. $ac_includes_default
  11142. int
  11143. main ()
  11144. {
  11145. static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
  11146. test_array [0] = 0
  11147. ;
  11148. return 0;
  11149. }
  11150. _ACEOF
  11151. rm -f conftest.$ac_objext
  11152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11153. (eval $ac_compile) 2>&5
  11154. ac_status=$?
  11155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11156. (exit $ac_status); } &&
  11157. { ac_try='test -s conftest.$ac_objext'
  11158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11159. (eval $ac_try) 2>&5
  11160. ac_status=$?
  11161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11162. (exit $ac_status); }; }; then
  11163. ac_hi=$ac_mid
  11164. else
  11165. echo "$as_me: failed program was:" >&5
  11166. sed 's/^/| /' conftest.$ac_ext >&5
  11167. ac_lo=`expr '(' $ac_mid ')' + 1`
  11168. fi
  11169. rm -f conftest.$ac_objext conftest.$ac_ext
  11170. done
  11171. case $ac_lo in
  11172. ?*) ac_cv_sizeof_int_p=$ac_lo;;
  11173. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
  11174. See \`config.log' for more details." >&5
  11175. echo "$as_me: error: cannot compute sizeof (int *), 77
  11176. See \`config.log' for more details." >&2;}
  11177. { (exit 1); exit 1; }; } ;;
  11178. esac
  11179. else
  11180. if test "$cross_compiling" = yes; then
  11181. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  11182. See \`config.log' for more details." >&5
  11183. echo "$as_me: error: cannot run test program while cross compiling
  11184. See \`config.log' for more details." >&2;}
  11185. { (exit 1); exit 1; }; }
  11186. else
  11187. cat >conftest.$ac_ext <<_ACEOF
  11188. #line $LINENO "configure"
  11189. /* confdefs.h. */
  11190. _ACEOF
  11191. cat confdefs.h >>conftest.$ac_ext
  11192. cat >>conftest.$ac_ext <<_ACEOF
  11193. /* end confdefs.h. */
  11194. $ac_includes_default
  11195. long longval () { return (long) (sizeof (int *)); }
  11196. unsigned long ulongval () { return (long) (sizeof (int *)); }
  11197. #include <stdio.h>
  11198. #include <stdlib.h>
  11199. int
  11200. main ()
  11201. {
  11202. FILE *f = fopen ("conftest.val", "w");
  11203. if (! f)
  11204. exit (1);
  11205. if (((long) (sizeof (int *))) < 0)
  11206. {
  11207. long i = longval ();
  11208. if (i != ((long) (sizeof (int *))))
  11209. exit (1);
  11210. fprintf (f, "%ld\n", i);
  11211. }
  11212. else
  11213. {
  11214. unsigned long i = ulongval ();
  11215. if (i != ((long) (sizeof (int *))))
  11216. exit (1);
  11217. fprintf (f, "%lu\n", i);
  11218. }
  11219. exit (ferror (f) || fclose (f) != 0);
  11220. ;
  11221. return 0;
  11222. }
  11223. _ACEOF
  11224. rm -f conftest$ac_exeext
  11225. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11226. (eval $ac_link) 2>&5
  11227. ac_status=$?
  11228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11229. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11231. (eval $ac_try) 2>&5
  11232. ac_status=$?
  11233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11234. (exit $ac_status); }; }; then
  11235. ac_cv_sizeof_int_p=`cat conftest.val`
  11236. else
  11237. echo "$as_me: program exited with status $ac_status" >&5
  11238. echo "$as_me: failed program was:" >&5
  11239. sed 's/^/| /' conftest.$ac_ext >&5
  11240. ( exit $ac_status )
  11241. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
  11242. See \`config.log' for more details." >&5
  11243. echo "$as_me: error: cannot compute sizeof (int *), 77
  11244. See \`config.log' for more details." >&2;}
  11245. { (exit 1); exit 1; }; }
  11246. fi
  11247. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11248. fi
  11249. fi
  11250. rm -f conftest.val
  11251. else
  11252. ac_cv_sizeof_int_p=0
  11253. fi
  11254. fi
  11255. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
  11256. echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
  11257. cat >>confdefs.h <<_ACEOF
  11258. #define SIZEOF_INT_P $ac_cv_sizeof_int_p
  11259. _ACEOF
  11260. echo "$as_me:$LINENO: checking for int16_t" >&5
  11261. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  11262. if test "${rxvt_cv_int16_t+set}" = set; then
  11263. echo $ECHO_N "(cached) $ECHO_C" >&6
  11264. else
  11265. cat >conftest.$ac_ext <<_ACEOF
  11266. #line $LINENO "configure"
  11267. /* confdefs.h. */
  11268. _ACEOF
  11269. cat confdefs.h >>conftest.$ac_ext
  11270. cat >>conftest.$ac_ext <<_ACEOF
  11271. /* end confdefs.h. */
  11272. #include <sys/types.h>
  11273. int
  11274. main ()
  11275. {
  11276. int16_t dummy;
  11277. ;
  11278. return 0;
  11279. }
  11280. _ACEOF
  11281. rm -f conftest.$ac_objext
  11282. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11283. (eval $ac_compile) 2>&5
  11284. ac_status=$?
  11285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11286. (exit $ac_status); } &&
  11287. { ac_try='test -s conftest.$ac_objext'
  11288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11289. (eval $ac_try) 2>&5
  11290. ac_status=$?
  11291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11292. (exit $ac_status); }; }; then
  11293. rxvt_cv_int16_t=yes
  11294. else
  11295. echo "$as_me: failed program was:" >&5
  11296. sed 's/^/| /' conftest.$ac_ext >&5
  11297. if test $ac_cv_sizeof_char -ge 2; then
  11298. rxvt_cv_int16_t=" char"
  11299. else
  11300. if test $ac_cv_sizeof_short -ge 2; then
  11301. rxvt_cv_int16_t=" short"
  11302. else
  11303. if test $ac_cv_sizeof_int -ge 2; then
  11304. rxvt_cv_int16_t=" int"
  11305. else
  11306. if test $ac_cv_sizeof_long -ge 2; then
  11307. rxvt_cv_int16_t=" long"
  11308. else
  11309. if test $ac_cv_sizeof_long_long -ge 2; then
  11310. rxvt_cv_int16_t=" long long"
  11311. else
  11312. rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
  11313. fi
  11314. fi
  11315. fi
  11316. fi
  11317. fi
  11318. fi
  11319. rm -f conftest.$ac_objext conftest.$ac_ext
  11320. fi
  11321. echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
  11322. echo "${ECHO_T}$rxvt_cv_int16_t" >&6
  11323. if test x"$rxvt_cv_int16_t" != xyes; then
  11324. rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
  11325. else
  11326. if test x"" = x; then
  11327. rxvt_int16_typedef="/* typedef short int16_t; */"
  11328. else
  11329. rxvt_int16_typedef="/* typedef short int16_t; */"
  11330. fi
  11331. fi
  11332. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  11333. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  11334. if test "${rxvt_cv_u_int16_t+set}" = set; then
  11335. echo $ECHO_N "(cached) $ECHO_C" >&6
  11336. else
  11337. cat >conftest.$ac_ext <<_ACEOF
  11338. #line $LINENO "configure"
  11339. /* confdefs.h. */
  11340. _ACEOF
  11341. cat confdefs.h >>conftest.$ac_ext
  11342. cat >>conftest.$ac_ext <<_ACEOF
  11343. /* end confdefs.h. */
  11344. #include <sys/types.h>
  11345. int
  11346. main ()
  11347. {
  11348. u_int16_t dummy;
  11349. ;
  11350. return 0;
  11351. }
  11352. _ACEOF
  11353. rm -f conftest.$ac_objext
  11354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11355. (eval $ac_compile) 2>&5
  11356. ac_status=$?
  11357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11358. (exit $ac_status); } &&
  11359. { ac_try='test -s conftest.$ac_objext'
  11360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11361. (eval $ac_try) 2>&5
  11362. ac_status=$?
  11363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11364. (exit $ac_status); }; }; then
  11365. rxvt_cv_u_int16_t=yes
  11366. else
  11367. echo "$as_me: failed program was:" >&5
  11368. sed 's/^/| /' conftest.$ac_ext >&5
  11369. if test $ac_cv_sizeof_char -ge 2; then
  11370. rxvt_cv_u_int16_t="unsigned char"
  11371. else
  11372. if test $ac_cv_sizeof_short -ge 2; then
  11373. rxvt_cv_u_int16_t="unsigned short"
  11374. else
  11375. if test $ac_cv_sizeof_int -ge 2; then
  11376. rxvt_cv_u_int16_t="unsigned int"
  11377. else
  11378. if test $ac_cv_sizeof_long -ge 2; then
  11379. rxvt_cv_u_int16_t="unsigned long"
  11380. else
  11381. if test $ac_cv_sizeof_long_long -ge 2; then
  11382. rxvt_cv_u_int16_t="unsigned long long"
  11383. else
  11384. rxvt_cv_u_int16_t="unsigned short" # we _must_ have a (possibly wrong) default
  11385. fi
  11386. fi
  11387. fi
  11388. fi
  11389. fi
  11390. fi
  11391. rm -f conftest.$ac_objext conftest.$ac_ext
  11392. fi
  11393. echo "$as_me:$LINENO: result: $rxvt_cv_u_int16_t" >&5
  11394. echo "${ECHO_T}$rxvt_cv_u_int16_t" >&6
  11395. if test x"$rxvt_cv_u_int16_t" != xyes; then
  11396. rxvt_u_int16_typedef="typedef $rxvt_cv_u_int16_t u_int16_t;"
  11397. else
  11398. if test x"unsigned" = x; then
  11399. rxvt_u_int16_typedef="/* typedef short u_int16_t; */"
  11400. else
  11401. rxvt_u_int16_typedef="/* typedef unsigned short u_int16_t; */"
  11402. fi
  11403. fi
  11404. echo "$as_me:$LINENO: checking for int32_t" >&5
  11405. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  11406. if test "${rxvt_cv_int32_t+set}" = set; then
  11407. echo $ECHO_N "(cached) $ECHO_C" >&6
  11408. else
  11409. cat >conftest.$ac_ext <<_ACEOF
  11410. #line $LINENO "configure"
  11411. /* confdefs.h. */
  11412. _ACEOF
  11413. cat confdefs.h >>conftest.$ac_ext
  11414. cat >>conftest.$ac_ext <<_ACEOF
  11415. /* end confdefs.h. */
  11416. #include <sys/types.h>
  11417. int
  11418. main ()
  11419. {
  11420. int32_t dummy;
  11421. ;
  11422. return 0;
  11423. }
  11424. _ACEOF
  11425. rm -f conftest.$ac_objext
  11426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11427. (eval $ac_compile) 2>&5
  11428. ac_status=$?
  11429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11430. (exit $ac_status); } &&
  11431. { ac_try='test -s conftest.$ac_objext'
  11432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11433. (eval $ac_try) 2>&5
  11434. ac_status=$?
  11435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11436. (exit $ac_status); }; }; then
  11437. rxvt_cv_int32_t=yes
  11438. else
  11439. echo "$as_me: failed program was:" >&5
  11440. sed 's/^/| /' conftest.$ac_ext >&5
  11441. if test $ac_cv_sizeof_char -ge 4; then
  11442. rxvt_cv_int32_t=" char"
  11443. else
  11444. if test $ac_cv_sizeof_short -ge 4; then
  11445. rxvt_cv_int32_t=" short"
  11446. else
  11447. if test $ac_cv_sizeof_int -ge 4; then
  11448. rxvt_cv_int32_t=" int"
  11449. else
  11450. if test $ac_cv_sizeof_long -ge 4; then
  11451. rxvt_cv_int32_t=" long"
  11452. else
  11453. if test $ac_cv_sizeof_long_long -ge 4; then
  11454. rxvt_cv_int32_t=" long long"
  11455. else
  11456. rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
  11457. fi
  11458. fi
  11459. fi
  11460. fi
  11461. fi
  11462. fi
  11463. rm -f conftest.$ac_objext conftest.$ac_ext
  11464. fi
  11465. echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
  11466. echo "${ECHO_T}$rxvt_cv_int32_t" >&6
  11467. if test x"$rxvt_cv_int32_t" != xyes; then
  11468. rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
  11469. else
  11470. if test x"" = x; then
  11471. rxvt_int32_typedef="/* typedef int int32_t; */"
  11472. else
  11473. rxvt_int32_typedef="/* typedef int int32_t; */"
  11474. fi
  11475. fi
  11476. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  11477. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  11478. if test "${rxvt_cv_u_int32_t+set}" = set; then
  11479. echo $ECHO_N "(cached) $ECHO_C" >&6
  11480. else
  11481. cat >conftest.$ac_ext <<_ACEOF
  11482. #line $LINENO "configure"
  11483. /* confdefs.h. */
  11484. _ACEOF
  11485. cat confdefs.h >>conftest.$ac_ext
  11486. cat >>conftest.$ac_ext <<_ACEOF
  11487. /* end confdefs.h. */
  11488. #include <sys/types.h>
  11489. int
  11490. main ()
  11491. {
  11492. u_int32_t dummy;
  11493. ;
  11494. return 0;
  11495. }
  11496. _ACEOF
  11497. rm -f conftest.$ac_objext
  11498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11499. (eval $ac_compile) 2>&5
  11500. ac_status=$?
  11501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11502. (exit $ac_status); } &&
  11503. { ac_try='test -s conftest.$ac_objext'
  11504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11505. (eval $ac_try) 2>&5
  11506. ac_status=$?
  11507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11508. (exit $ac_status); }; }; then
  11509. rxvt_cv_u_int32_t=yes
  11510. else
  11511. echo "$as_me: failed program was:" >&5
  11512. sed 's/^/| /' conftest.$ac_ext >&5
  11513. if test $ac_cv_sizeof_char -ge 4; then
  11514. rxvt_cv_u_int32_t="unsigned char"
  11515. else
  11516. if test $ac_cv_sizeof_short -ge 4; then
  11517. rxvt_cv_u_int32_t="unsigned short"
  11518. else
  11519. if test $ac_cv_sizeof_int -ge 4; then
  11520. rxvt_cv_u_int32_t="unsigned int"
  11521. else
  11522. if test $ac_cv_sizeof_long -ge 4; then
  11523. rxvt_cv_u_int32_t="unsigned long"
  11524. else
  11525. if test $ac_cv_sizeof_long_long -ge 4; then
  11526. rxvt_cv_u_int32_t="unsigned long long"
  11527. else
  11528. rxvt_cv_u_int32_t="unsigned int" # we _must_ have a (possibly wrong) default
  11529. fi
  11530. fi
  11531. fi
  11532. fi
  11533. fi
  11534. fi
  11535. rm -f conftest.$ac_objext conftest.$ac_ext
  11536. fi
  11537. echo "$as_me:$LINENO: result: $rxvt_cv_u_int32_t" >&5
  11538. echo "${ECHO_T}$rxvt_cv_u_int32_t" >&6
  11539. if test x"$rxvt_cv_u_int32_t" != xyes; then
  11540. rxvt_u_int32_typedef="typedef $rxvt_cv_u_int32_t u_int32_t;"
  11541. else
  11542. if test x"unsigned" = x; then
  11543. rxvt_u_int32_typedef="/* typedef int u_int32_t; */"
  11544. else
  11545. rxvt_u_int32_typedef="/* typedef unsigned int u_int32_t; */"
  11546. fi
  11547. fi
  11548. echo "$as_me:$LINENO: checking for int64_t" >&5
  11549. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
  11550. if test "${rxvt_cv_int64_t+set}" = set; then
  11551. echo $ECHO_N "(cached) $ECHO_C" >&6
  11552. else
  11553. cat >conftest.$ac_ext <<_ACEOF
  11554. #line $LINENO "configure"
  11555. /* confdefs.h. */
  11556. _ACEOF
  11557. cat confdefs.h >>conftest.$ac_ext
  11558. cat >>conftest.$ac_ext <<_ACEOF
  11559. /* end confdefs.h. */
  11560. #include <sys/types.h>
  11561. int
  11562. main ()
  11563. {
  11564. int64_t dummy;
  11565. ;
  11566. return 0;
  11567. }
  11568. _ACEOF
  11569. rm -f conftest.$ac_objext
  11570. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11571. (eval $ac_compile) 2>&5
  11572. ac_status=$?
  11573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11574. (exit $ac_status); } &&
  11575. { ac_try='test -s conftest.$ac_objext'
  11576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11577. (eval $ac_try) 2>&5
  11578. ac_status=$?
  11579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11580. (exit $ac_status); }; }; then
  11581. rxvt_cv_int64_t=yes
  11582. else
  11583. echo "$as_me: failed program was:" >&5
  11584. sed 's/^/| /' conftest.$ac_ext >&5
  11585. if test $ac_cv_sizeof_char -ge 8; then
  11586. rxvt_cv_int64_t=" char"
  11587. else
  11588. if test $ac_cv_sizeof_short -ge 8; then
  11589. rxvt_cv_int64_t=" short"
  11590. else
  11591. if test $ac_cv_sizeof_int -ge 8; then
  11592. rxvt_cv_int64_t=" int"
  11593. else
  11594. if test $ac_cv_sizeof_long -ge 8; then
  11595. rxvt_cv_int64_t=" long"
  11596. else
  11597. if test $ac_cv_sizeof_long_long -ge 8; then
  11598. rxvt_cv_int64_t=" long long"
  11599. else
  11600. rxvt_cv_int64_t=" long long" # we _must_ have a (possibly wrong) default
  11601. fi
  11602. fi
  11603. fi
  11604. fi
  11605. fi
  11606. fi
  11607. rm -f conftest.$ac_objext conftest.$ac_ext
  11608. fi
  11609. echo "$as_me:$LINENO: result: $rxvt_cv_int64_t" >&5
  11610. echo "${ECHO_T}$rxvt_cv_int64_t" >&6
  11611. if test x"$rxvt_cv_int64_t" != xyes; then
  11612. rxvt_int64_typedef="typedef $rxvt_cv_int64_t int64_t;"
  11613. else
  11614. if test x"" = x; then
  11615. rxvt_int64_typedef="/* typedef long long int64_t; */"
  11616. else
  11617. rxvt_int64_typedef="/* typedef long long int64_t; */"
  11618. fi
  11619. fi
  11620. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  11621. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  11622. if test "${rxvt_cv_u_int64_t+set}" = set; then
  11623. echo $ECHO_N "(cached) $ECHO_C" >&6
  11624. else
  11625. cat >conftest.$ac_ext <<_ACEOF
  11626. #line $LINENO "configure"
  11627. /* confdefs.h. */
  11628. _ACEOF
  11629. cat confdefs.h >>conftest.$ac_ext
  11630. cat >>conftest.$ac_ext <<_ACEOF
  11631. /* end confdefs.h. */
  11632. #include <sys/types.h>
  11633. int
  11634. main ()
  11635. {
  11636. u_int64_t dummy;
  11637. ;
  11638. return 0;
  11639. }
  11640. _ACEOF
  11641. rm -f conftest.$ac_objext
  11642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11643. (eval $ac_compile) 2>&5
  11644. ac_status=$?
  11645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11646. (exit $ac_status); } &&
  11647. { ac_try='test -s conftest.$ac_objext'
  11648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11649. (eval $ac_try) 2>&5
  11650. ac_status=$?
  11651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11652. (exit $ac_status); }; }; then
  11653. rxvt_cv_u_int64_t=yes
  11654. else
  11655. echo "$as_me: failed program was:" >&5
  11656. sed 's/^/| /' conftest.$ac_ext >&5
  11657. if test $ac_cv_sizeof_char -ge 8; then
  11658. rxvt_cv_u_int64_t="unsigned char"
  11659. else
  11660. if test $ac_cv_sizeof_short -ge 8; then
  11661. rxvt_cv_u_int64_t="unsigned short"
  11662. else
  11663. if test $ac_cv_sizeof_int -ge 8; then
  11664. rxvt_cv_u_int64_t="unsigned int"
  11665. else
  11666. if test $ac_cv_sizeof_long -ge 8; then
  11667. rxvt_cv_u_int64_t="unsigned long"
  11668. else
  11669. if test $ac_cv_sizeof_long_long -ge 8; then
  11670. rxvt_cv_u_int64_t="unsigned long long"
  11671. else
  11672. rxvt_cv_u_int64_t="unsigned long long" # we _must_ have a (possibly wrong) default
  11673. fi
  11674. fi
  11675. fi
  11676. fi
  11677. fi
  11678. fi
  11679. rm -f conftest.$ac_objext conftest.$ac_ext
  11680. fi
  11681. echo "$as_me:$LINENO: result: $rxvt_cv_u_int64_t" >&5
  11682. echo "${ECHO_T}$rxvt_cv_u_int64_t" >&6
  11683. if test x"$rxvt_cv_u_int64_t" != xyes; then
  11684. rxvt_u_int64_typedef="typedef $rxvt_cv_u_int64_t u_int64_t;"
  11685. else
  11686. if test x"unsigned" = x; then
  11687. rxvt_u_int64_typedef="/* typedef long long u_int64_t; */"
  11688. else
  11689. rxvt_u_int64_typedef="/* typedef unsigned long long u_int64_t; */"
  11690. fi
  11691. fi
  11692. if test $ac_cv_sizeof_int_p -eq 8; then
  11693. rxvt_intp_define="#define intp_t int64_t"
  11694. rxvt_u_intp_define="#define u_intp_t u_int64_t"
  11695. else
  11696. if test $ac_cv_sizeof_int_p -eq 4; then
  11697. rxvt_intp_define="#define intp_t int32_t"
  11698. rxvt_u_intp_define="#define u_intp_t u_int32_t"
  11699. else
  11700. if test $ac_cv_sizeof_int_p -eq 2; then
  11701. rxvt_intp_define="#define intp_t int16_t"
  11702. rxvt_u_intp_define="#define u_intp_t u_int16_t"
  11703. else
  11704. rxvt_intp_define="#error set intp_t"
  11705. rxvt_u_intp_define="#error set u_intp_t"
  11706. fi
  11707. fi
  11708. fi
  11709. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  11710. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  11711. if test "${ac_cv_type_signal+set}" = set; then
  11712. echo $ECHO_N "(cached) $ECHO_C" >&6
  11713. else
  11714. cat >conftest.$ac_ext <<_ACEOF
  11715. #line $LINENO "configure"
  11716. /* confdefs.h. */
  11717. _ACEOF
  11718. cat confdefs.h >>conftest.$ac_ext
  11719. cat >>conftest.$ac_ext <<_ACEOF
  11720. /* end confdefs.h. */
  11721. #include <sys/types.h>
  11722. #include <signal.h>
  11723. #ifdef signal
  11724. # undef signal
  11725. #endif
  11726. #ifdef __cplusplus
  11727. extern "C" void (*signal (int, void (*)(int)))(int);
  11728. #else
  11729. void (*signal ()) ();
  11730. #endif
  11731. int
  11732. main ()
  11733. {
  11734. int i;
  11735. ;
  11736. return 0;
  11737. }
  11738. _ACEOF
  11739. rm -f conftest.$ac_objext
  11740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11741. (eval $ac_compile) 2>&5
  11742. ac_status=$?
  11743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11744. (exit $ac_status); } &&
  11745. { ac_try='test -s conftest.$ac_objext'
  11746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11747. (eval $ac_try) 2>&5
  11748. ac_status=$?
  11749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11750. (exit $ac_status); }; }; then
  11751. ac_cv_type_signal=void
  11752. else
  11753. echo "$as_me: failed program was:" >&5
  11754. sed 's/^/| /' conftest.$ac_ext >&5
  11755. ac_cv_type_signal=int
  11756. fi
  11757. rm -f conftest.$ac_objext conftest.$ac_ext
  11758. fi
  11759. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  11760. echo "${ECHO_T}$ac_cv_type_signal" >&6
  11761. cat >>confdefs.h <<_ACEOF
  11762. #define RETSIGTYPE $ac_cv_type_signal
  11763. _ACEOF
  11764. case "$host_alias" in
  11765. *ultrix) ac_cv_func_setsid='no' ;;
  11766. *) break;;
  11767. esac
  11768. for ac_func in \
  11769. atexit \
  11770. revoke \
  11771. unsetenv \
  11772. setutent \
  11773. seteuid \
  11774. setreuid \
  11775. setsid \
  11776. setpgrp \
  11777. setpgid \
  11778. openpty \
  11779. _getpty \
  11780. grantpt \
  11781. unlockpt \
  11782. isastream \
  11783. on_exit \
  11784. nanosleep \
  11785. updwtmp \
  11786. ttyslot \
  11787. do
  11788. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11789. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11790. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11791. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11792. echo $ECHO_N "(cached) $ECHO_C" >&6
  11793. else
  11794. cat >conftest.$ac_ext <<_ACEOF
  11795. #line $LINENO "configure"
  11796. /* confdefs.h. */
  11797. _ACEOF
  11798. cat confdefs.h >>conftest.$ac_ext
  11799. cat >>conftest.$ac_ext <<_ACEOF
  11800. /* end confdefs.h. */
  11801. /* System header to define __stub macros and hopefully few prototypes,
  11802. which can conflict with char $ac_func (); below.
  11803. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11804. <limits.h> exists even on freestanding compilers. */
  11805. #ifdef __STDC__
  11806. # include <limits.h>
  11807. #else
  11808. # include <assert.h>
  11809. #endif
  11810. /* Override any gcc2 internal prototype to avoid an error. */
  11811. #ifdef __cplusplus
  11812. extern "C"
  11813. {
  11814. #endif
  11815. /* We use char because int might match the return type of a gcc2
  11816. builtin and then its argument prototype would still apply. */
  11817. char $ac_func ();
  11818. /* The GNU C library defines this for functions which it implements
  11819. to always fail with ENOSYS. Some functions are actually named
  11820. something starting with __ and the normal name is an alias. */
  11821. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11822. choke me
  11823. #else
  11824. char (*f) () = $ac_func;
  11825. #endif
  11826. #ifdef __cplusplus
  11827. }
  11828. #endif
  11829. int
  11830. main ()
  11831. {
  11832. return f != $ac_func;
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. rm -f conftest.$ac_objext conftest$ac_exeext
  11838. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11839. (eval $ac_link) 2>&5
  11840. ac_status=$?
  11841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11842. (exit $ac_status); } &&
  11843. { ac_try='test -s conftest$ac_exeext'
  11844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11845. (eval $ac_try) 2>&5
  11846. ac_status=$?
  11847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11848. (exit $ac_status); }; }; then
  11849. eval "$as_ac_var=yes"
  11850. else
  11851. echo "$as_me: failed program was:" >&5
  11852. sed 's/^/| /' conftest.$ac_ext >&5
  11853. eval "$as_ac_var=no"
  11854. fi
  11855. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11856. fi
  11857. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11858. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11859. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11860. cat >>confdefs.h <<_ACEOF
  11861. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11862. _ACEOF
  11863. fi
  11864. done
  11865. if test "${ac_cv_header_utmp_h+set}" = set; then
  11866. echo "$as_me:$LINENO: checking for utmp.h" >&5
  11867. echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
  11868. if test "${ac_cv_header_utmp_h+set}" = set; then
  11869. echo $ECHO_N "(cached) $ECHO_C" >&6
  11870. fi
  11871. echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
  11872. echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
  11873. else
  11874. # Is the header compilable?
  11875. echo "$as_me:$LINENO: checking utmp.h usability" >&5
  11876. echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
  11877. cat >conftest.$ac_ext <<_ACEOF
  11878. #line $LINENO "configure"
  11879. /* confdefs.h. */
  11880. _ACEOF
  11881. cat confdefs.h >>conftest.$ac_ext
  11882. cat >>conftest.$ac_ext <<_ACEOF
  11883. /* end confdefs.h. */
  11884. $ac_includes_default
  11885. #include <utmp.h>
  11886. _ACEOF
  11887. rm -f conftest.$ac_objext
  11888. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11889. (eval $ac_compile) 2>&5
  11890. ac_status=$?
  11891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11892. (exit $ac_status); } &&
  11893. { ac_try='test -s conftest.$ac_objext'
  11894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11895. (eval $ac_try) 2>&5
  11896. ac_status=$?
  11897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11898. (exit $ac_status); }; }; then
  11899. ac_header_compiler=yes
  11900. else
  11901. echo "$as_me: failed program was:" >&5
  11902. sed 's/^/| /' conftest.$ac_ext >&5
  11903. ac_header_compiler=no
  11904. fi
  11905. rm -f conftest.$ac_objext conftest.$ac_ext
  11906. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11907. echo "${ECHO_T}$ac_header_compiler" >&6
  11908. # Is the header present?
  11909. echo "$as_me:$LINENO: checking utmp.h presence" >&5
  11910. echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
  11911. cat >conftest.$ac_ext <<_ACEOF
  11912. #line $LINENO "configure"
  11913. /* confdefs.h. */
  11914. _ACEOF
  11915. cat confdefs.h >>conftest.$ac_ext
  11916. cat >>conftest.$ac_ext <<_ACEOF
  11917. /* end confdefs.h. */
  11918. #include <utmp.h>
  11919. _ACEOF
  11920. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  11921. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11922. ac_status=$?
  11923. grep -v '^ *+' conftest.er1 >conftest.err
  11924. rm -f conftest.er1
  11925. cat conftest.err >&5
  11926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11927. (exit $ac_status); } >/dev/null; then
  11928. if test -s conftest.err; then
  11929. ac_cpp_err=$ac_c_preproc_warn_flag
  11930. else
  11931. ac_cpp_err=
  11932. fi
  11933. else
  11934. ac_cpp_err=yes
  11935. fi
  11936. if test -z "$ac_cpp_err"; then
  11937. ac_header_preproc=yes
  11938. else
  11939. echo "$as_me: failed program was:" >&5
  11940. sed 's/^/| /' conftest.$ac_ext >&5
  11941. ac_header_preproc=no
  11942. fi
  11943. rm -f conftest.err conftest.$ac_ext
  11944. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11945. echo "${ECHO_T}$ac_header_preproc" >&6
  11946. # So? What about this header?
  11947. case $ac_header_compiler:$ac_header_preproc in
  11948. yes:no )
  11949. { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11950. echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11951. { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
  11952. echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
  11953. (
  11954. cat <<\_ASBOX
  11955. ## ------------------------------------ ##
  11956. ## Report this to bug-autoconf@gnu.org. ##
  11957. ## ------------------------------------ ##
  11958. _ASBOX
  11959. ) |
  11960. sed "s/^/$as_me: WARNING: /" >&2
  11961. ;;
  11962. no:yes )
  11963. { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
  11964. echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
  11965. { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
  11966. echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
  11967. { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
  11968. echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
  11969. (
  11970. cat <<\_ASBOX
  11971. ## ------------------------------------ ##
  11972. ## Report this to bug-autoconf@gnu.org. ##
  11973. ## ------------------------------------ ##
  11974. _ASBOX
  11975. ) |
  11976. sed "s/^/$as_me: WARNING: /" >&2
  11977. ;;
  11978. esac
  11979. echo "$as_me:$LINENO: checking for utmp.h" >&5
  11980. echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
  11981. if test "${ac_cv_header_utmp_h+set}" = set; then
  11982. echo $ECHO_N "(cached) $ECHO_C" >&6
  11983. else
  11984. ac_cv_header_utmp_h=$ac_header_preproc
  11985. fi
  11986. echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
  11987. echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
  11988. fi
  11989. if test $ac_cv_header_utmp_h = yes; then
  11990. echo "$as_me:$LINENO: checking for struct utmp" >&5
  11991. echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
  11992. if test "${rxvt_cv_struct_utmp+set}" = set; then
  11993. echo $ECHO_N "(cached) $ECHO_C" >&6
  11994. else
  11995. cat >conftest.$ac_ext <<_ACEOF
  11996. #line $LINENO "configure"
  11997. /* confdefs.h. */
  11998. _ACEOF
  11999. cat confdefs.h >>conftest.$ac_ext
  12000. cat >>conftest.$ac_ext <<_ACEOF
  12001. /* end confdefs.h. */
  12002. #include <sys/types.h>
  12003. #include <utmp.h>
  12004. int
  12005. main ()
  12006. {
  12007. struct utmp ut;
  12008. ;
  12009. return 0;
  12010. }
  12011. _ACEOF
  12012. rm -f conftest.$ac_objext
  12013. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12014. (eval $ac_compile) 2>&5
  12015. ac_status=$?
  12016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12017. (exit $ac_status); } &&
  12018. { ac_try='test -s conftest.$ac_objext'
  12019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12020. (eval $ac_try) 2>&5
  12021. ac_status=$?
  12022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. (exit $ac_status); }; }; then
  12024. rxvt_cv_struct_utmp=yes
  12025. else
  12026. echo "$as_me: failed program was:" >&5
  12027. sed 's/^/| /' conftest.$ac_ext >&5
  12028. rxvt_cv_struct_utmp=no
  12029. fi
  12030. rm -f conftest.$ac_objext conftest.$ac_ext
  12031. fi
  12032. echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
  12033. echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
  12034. if test x$rxvt_cv_struct_utmp = xyes; then
  12035. cat >>confdefs.h <<\_ACEOF
  12036. #define HAVE_STRUCT_UTMP 1
  12037. _ACEOF
  12038. fi
  12039. echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
  12040. echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
  12041. if test "${rxvt_cv_struct_utmp_host+set}" = set; then
  12042. echo $ECHO_N "(cached) $ECHO_C" >&6
  12043. else
  12044. cat >conftest.$ac_ext <<_ACEOF
  12045. #line $LINENO "configure"
  12046. /* confdefs.h. */
  12047. _ACEOF
  12048. cat confdefs.h >>conftest.$ac_ext
  12049. cat >>conftest.$ac_ext <<_ACEOF
  12050. /* end confdefs.h. */
  12051. #include <sys/types.h>
  12052. #include <utmp.h>
  12053. int
  12054. main ()
  12055. {
  12056. struct utmp ut; ut.ut_host;
  12057. ;
  12058. return 0;
  12059. }
  12060. _ACEOF
  12061. rm -f conftest.$ac_objext
  12062. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12063. (eval $ac_compile) 2>&5
  12064. ac_status=$?
  12065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12066. (exit $ac_status); } &&
  12067. { ac_try='test -s conftest.$ac_objext'
  12068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12069. (eval $ac_try) 2>&5
  12070. ac_status=$?
  12071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12072. (exit $ac_status); }; }; then
  12073. rxvt_cv_struct_utmp_host=yes
  12074. else
  12075. echo "$as_me: failed program was:" >&5
  12076. sed 's/^/| /' conftest.$ac_ext >&5
  12077. rxvt_cv_struct_utmp_host=no
  12078. fi
  12079. rm -f conftest.$ac_objext conftest.$ac_ext
  12080. fi
  12081. echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
  12082. echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
  12083. if test x$rxvt_cv_struct_utmp_host = xyes; then
  12084. cat >>confdefs.h <<\_ACEOF
  12085. #define HAVE_UTMP_HOST 1
  12086. _ACEOF
  12087. fi
  12088. echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
  12089. echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
  12090. if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
  12091. echo $ECHO_N "(cached) $ECHO_C" >&6
  12092. else
  12093. cat >conftest.$ac_ext <<_ACEOF
  12094. #line $LINENO "configure"
  12095. /* confdefs.h. */
  12096. _ACEOF
  12097. cat confdefs.h >>conftest.$ac_ext
  12098. cat >>conftest.$ac_ext <<_ACEOF
  12099. /* end confdefs.h. */
  12100. #include <sys/types.h>
  12101. #include <utmp.h>
  12102. int
  12103. main ()
  12104. {
  12105. struct utmp ut; ut.ut_pid;
  12106. ;
  12107. return 0;
  12108. }
  12109. _ACEOF
  12110. rm -f conftest.$ac_objext
  12111. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12112. (eval $ac_compile) 2>&5
  12113. ac_status=$?
  12114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12115. (exit $ac_status); } &&
  12116. { ac_try='test -s conftest.$ac_objext'
  12117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12118. (eval $ac_try) 2>&5
  12119. ac_status=$?
  12120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12121. (exit $ac_status); }; }; then
  12122. rxvt_cv_struct_utmp_pid=yes
  12123. else
  12124. echo "$as_me: failed program was:" >&5
  12125. sed 's/^/| /' conftest.$ac_ext >&5
  12126. rxvt_cv_struct_utmp_pid=no
  12127. fi
  12128. rm -f conftest.$ac_objext conftest.$ac_ext
  12129. fi
  12130. echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
  12131. echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
  12132. if test x$rxvt_cv_struct_utmp_pid = xyes; then
  12133. cat >>confdefs.h <<\_ACEOF
  12134. #define HAVE_UTMP_PID 1
  12135. _ACEOF
  12136. fi
  12137. fi
  12138. if test "${ac_cv_header_utmpx_h+set}" = set; then
  12139. echo "$as_me:$LINENO: checking for utmpx.h" >&5
  12140. echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
  12141. if test "${ac_cv_header_utmpx_h+set}" = set; then
  12142. echo $ECHO_N "(cached) $ECHO_C" >&6
  12143. fi
  12144. echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
  12145. echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
  12146. else
  12147. # Is the header compilable?
  12148. echo "$as_me:$LINENO: checking utmpx.h usability" >&5
  12149. echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
  12150. cat >conftest.$ac_ext <<_ACEOF
  12151. #line $LINENO "configure"
  12152. /* confdefs.h. */
  12153. _ACEOF
  12154. cat confdefs.h >>conftest.$ac_ext
  12155. cat >>conftest.$ac_ext <<_ACEOF
  12156. /* end confdefs.h. */
  12157. $ac_includes_default
  12158. #include <utmpx.h>
  12159. _ACEOF
  12160. rm -f conftest.$ac_objext
  12161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12162. (eval $ac_compile) 2>&5
  12163. ac_status=$?
  12164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12165. (exit $ac_status); } &&
  12166. { ac_try='test -s conftest.$ac_objext'
  12167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12168. (eval $ac_try) 2>&5
  12169. ac_status=$?
  12170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12171. (exit $ac_status); }; }; then
  12172. ac_header_compiler=yes
  12173. else
  12174. echo "$as_me: failed program was:" >&5
  12175. sed 's/^/| /' conftest.$ac_ext >&5
  12176. ac_header_compiler=no
  12177. fi
  12178. rm -f conftest.$ac_objext conftest.$ac_ext
  12179. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12180. echo "${ECHO_T}$ac_header_compiler" >&6
  12181. # Is the header present?
  12182. echo "$as_me:$LINENO: checking utmpx.h presence" >&5
  12183. echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
  12184. cat >conftest.$ac_ext <<_ACEOF
  12185. #line $LINENO "configure"
  12186. /* confdefs.h. */
  12187. _ACEOF
  12188. cat confdefs.h >>conftest.$ac_ext
  12189. cat >>conftest.$ac_ext <<_ACEOF
  12190. /* end confdefs.h. */
  12191. #include <utmpx.h>
  12192. _ACEOF
  12193. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  12194. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  12195. ac_status=$?
  12196. grep -v '^ *+' conftest.er1 >conftest.err
  12197. rm -f conftest.er1
  12198. cat conftest.err >&5
  12199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12200. (exit $ac_status); } >/dev/null; then
  12201. if test -s conftest.err; then
  12202. ac_cpp_err=$ac_c_preproc_warn_flag
  12203. else
  12204. ac_cpp_err=
  12205. fi
  12206. else
  12207. ac_cpp_err=yes
  12208. fi
  12209. if test -z "$ac_cpp_err"; then
  12210. ac_header_preproc=yes
  12211. else
  12212. echo "$as_me: failed program was:" >&5
  12213. sed 's/^/| /' conftest.$ac_ext >&5
  12214. ac_header_preproc=no
  12215. fi
  12216. rm -f conftest.err conftest.$ac_ext
  12217. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12218. echo "${ECHO_T}$ac_header_preproc" >&6
  12219. # So? What about this header?
  12220. case $ac_header_compiler:$ac_header_preproc in
  12221. yes:no )
  12222. { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
  12223. echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12224. { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
  12225. echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
  12226. (
  12227. cat <<\_ASBOX
  12228. ## ------------------------------------ ##
  12229. ## Report this to bug-autoconf@gnu.org. ##
  12230. ## ------------------------------------ ##
  12231. _ASBOX
  12232. ) |
  12233. sed "s/^/$as_me: WARNING: /" >&2
  12234. ;;
  12235. no:yes )
  12236. { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
  12237. echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
  12238. { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
  12239. echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
  12240. { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
  12241. echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
  12242. (
  12243. cat <<\_ASBOX
  12244. ## ------------------------------------ ##
  12245. ## Report this to bug-autoconf@gnu.org. ##
  12246. ## ------------------------------------ ##
  12247. _ASBOX
  12248. ) |
  12249. sed "s/^/$as_me: WARNING: /" >&2
  12250. ;;
  12251. esac
  12252. echo "$as_me:$LINENO: checking for utmpx.h" >&5
  12253. echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
  12254. if test "${ac_cv_header_utmpx_h+set}" = set; then
  12255. echo $ECHO_N "(cached) $ECHO_C" >&6
  12256. else
  12257. ac_cv_header_utmpx_h=$ac_header_preproc
  12258. fi
  12259. echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
  12260. echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
  12261. fi
  12262. if test $ac_cv_header_utmpx_h = yes; then
  12263. echo "$as_me:$LINENO: checking for struct utmpx" >&5
  12264. echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
  12265. if test "${rxvt_cv_struct_utmpx+set}" = set; then
  12266. echo $ECHO_N "(cached) $ECHO_C" >&6
  12267. else
  12268. cat >conftest.$ac_ext <<_ACEOF
  12269. #line $LINENO "configure"
  12270. /* confdefs.h. */
  12271. _ACEOF
  12272. cat confdefs.h >>conftest.$ac_ext
  12273. cat >>conftest.$ac_ext <<_ACEOF
  12274. /* end confdefs.h. */
  12275. #include <sys/types.h>
  12276. #include <utmpx.h>
  12277. int
  12278. main ()
  12279. {
  12280. struct utmpx ut;
  12281. ;
  12282. return 0;
  12283. }
  12284. _ACEOF
  12285. rm -f conftest.$ac_objext
  12286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12287. (eval $ac_compile) 2>&5
  12288. ac_status=$?
  12289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12290. (exit $ac_status); } &&
  12291. { ac_try='test -s conftest.$ac_objext'
  12292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12293. (eval $ac_try) 2>&5
  12294. ac_status=$?
  12295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12296. (exit $ac_status); }; }; then
  12297. rxvt_cv_struct_utmpx=yes
  12298. else
  12299. echo "$as_me: failed program was:" >&5
  12300. sed 's/^/| /' conftest.$ac_ext >&5
  12301. rxvt_cv_struct_utmpx=no
  12302. fi
  12303. rm -f conftest.$ac_objext conftest.$ac_ext
  12304. fi
  12305. echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
  12306. echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
  12307. if test x$rxvt_cv_struct_utmpx = xyes; then
  12308. cat >>confdefs.h <<\_ACEOF
  12309. #define HAVE_STRUCT_UTMPX 1
  12310. _ACEOF
  12311. fi
  12312. echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
  12313. echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
  12314. if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
  12315. echo $ECHO_N "(cached) $ECHO_C" >&6
  12316. else
  12317. cat >conftest.$ac_ext <<_ACEOF
  12318. #line $LINENO "configure"
  12319. /* confdefs.h. */
  12320. _ACEOF
  12321. cat confdefs.h >>conftest.$ac_ext
  12322. cat >>conftest.$ac_ext <<_ACEOF
  12323. /* end confdefs.h. */
  12324. #include <sys/types.h>
  12325. #include <utmpx.h>
  12326. int
  12327. main ()
  12328. {
  12329. struct utmpx utx; utx.ut_host;
  12330. ;
  12331. return 0;
  12332. }
  12333. _ACEOF
  12334. rm -f conftest.$ac_objext
  12335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12336. (eval $ac_compile) 2>&5
  12337. ac_status=$?
  12338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12339. (exit $ac_status); } &&
  12340. { ac_try='test -s conftest.$ac_objext'
  12341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12342. (eval $ac_try) 2>&5
  12343. ac_status=$?
  12344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12345. (exit $ac_status); }; }; then
  12346. rxvt_cv_struct_utmpx_host=yes
  12347. else
  12348. echo "$as_me: failed program was:" >&5
  12349. sed 's/^/| /' conftest.$ac_ext >&5
  12350. rxvt_cv_struct_utmpx_host=no
  12351. fi
  12352. rm -f conftest.$ac_objext conftest.$ac_ext
  12353. fi
  12354. echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
  12355. echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
  12356. if test x$rxvt_cv_struct_utmpx_host = xyes; then
  12357. cat >>confdefs.h <<\_ACEOF
  12358. #define HAVE_UTMPX_HOST 1
  12359. _ACEOF
  12360. fi
  12361. fi
  12362. echo "$as_me:$LINENO: checking for struct lastlog" >&5
  12363. echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
  12364. if test "${rxvt_cv_struct_lastlog+set}" = set; then
  12365. echo $ECHO_N "(cached) $ECHO_C" >&6
  12366. else
  12367. cat >conftest.$ac_ext <<_ACEOF
  12368. #line $LINENO "configure"
  12369. /* confdefs.h. */
  12370. _ACEOF
  12371. cat confdefs.h >>conftest.$ac_ext
  12372. cat >>conftest.$ac_ext <<_ACEOF
  12373. /* end confdefs.h. */
  12374. #include <sys/types.h>
  12375. #include <utmp.h>
  12376. #ifdef HAVE_LASTLOG_H
  12377. #include <lastlog.h>
  12378. #endif
  12379. int
  12380. main ()
  12381. {
  12382. struct lastlog ll;
  12383. ;
  12384. return 0;
  12385. }
  12386. _ACEOF
  12387. rm -f conftest.$ac_objext
  12388. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12389. (eval $ac_compile) 2>&5
  12390. ac_status=$?
  12391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12392. (exit $ac_status); } &&
  12393. { ac_try='test -s conftest.$ac_objext'
  12394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12395. (eval $ac_try) 2>&5
  12396. ac_status=$?
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); }; }; then
  12399. rxvt_cv_struct_lastlog=yes
  12400. else
  12401. echo "$as_me: failed program was:" >&5
  12402. sed 's/^/| /' conftest.$ac_ext >&5
  12403. rxvt_cv_struct_lastlog=no
  12404. fi
  12405. rm -f conftest.$ac_objext conftest.$ac_ext
  12406. fi
  12407. echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
  12408. echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
  12409. if test x$rxvt_cv_struct_lastlog = xyes; then
  12410. cat >>confdefs.h <<\_ACEOF
  12411. #define HAVE_STRUCT_LASTLOG 1
  12412. _ACEOF
  12413. fi
  12414. echo "$as_me:$LINENO: checking for struct lastlogx" >&5
  12415. echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
  12416. if test "${rxvt_cv_struct_lastlogx+set}" = set; then
  12417. echo $ECHO_N "(cached) $ECHO_C" >&6
  12418. else
  12419. cat >conftest.$ac_ext <<_ACEOF
  12420. #line $LINENO "configure"
  12421. /* confdefs.h. */
  12422. _ACEOF
  12423. cat confdefs.h >>conftest.$ac_ext
  12424. cat >>conftest.$ac_ext <<_ACEOF
  12425. /* end confdefs.h. */
  12426. #include <sys/types.h>
  12427. #include <utmpx.h>
  12428. #ifdef HAVE_LASTLOG_H
  12429. #include <lastlog.h>
  12430. #endif
  12431. int
  12432. main ()
  12433. {
  12434. struct lastlogx ll;
  12435. ;
  12436. return 0;
  12437. }
  12438. _ACEOF
  12439. rm -f conftest.$ac_objext
  12440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12441. (eval $ac_compile) 2>&5
  12442. ac_status=$?
  12443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12444. (exit $ac_status); } &&
  12445. { ac_try='test -s conftest.$ac_objext'
  12446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12447. (eval $ac_try) 2>&5
  12448. ac_status=$?
  12449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12450. (exit $ac_status); }; }; then
  12451. rxvt_cv_struct_lastlogx=yes
  12452. else
  12453. echo "$as_me: failed program was:" >&5
  12454. sed 's/^/| /' conftest.$ac_ext >&5
  12455. rxvt_cv_struct_lastlogx=no
  12456. fi
  12457. rm -f conftest.$ac_objext conftest.$ac_ext
  12458. fi
  12459. echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
  12460. echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
  12461. if test x$rxvt_cv_struct_lastlogx = xyes; then
  12462. cat >>confdefs.h <<\_ACEOF
  12463. #define HAVE_STRUCT_LASTLOGX 1
  12464. _ACEOF
  12465. fi
  12466. echo "$as_me:$LINENO: checking where utmp is located" >&5
  12467. echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
  12468. if test "${rxvt_cv_path_utmp+set}" = set; then
  12469. echo $ECHO_N "(cached) $ECHO_C" >&6
  12470. else
  12471. if test "$cross_compiling" = yes; then
  12472. { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
  12473. echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
  12474. else
  12475. cat >conftest.$ac_ext <<_ACEOF
  12476. #line $LINENO "configure"
  12477. /* confdefs.h. */
  12478. _ACEOF
  12479. cat confdefs.h >>conftest.$ac_ext
  12480. cat >>conftest.$ac_ext <<_ACEOF
  12481. /* end confdefs.h. */
  12482. #include <stdio.h>
  12483. #include <sys/types.h>
  12484. #include <utmp.h>
  12485. #include <errno.h>
  12486. main()
  12487. {
  12488. char **u, *utmplist[] = {
  12489. "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
  12490. FILE *a, *f=fopen("conftestval", "w");
  12491. if (!f) exit(1);
  12492. #ifdef UTMP_FILE
  12493. fprintf(f, "%s\n", UTMP_FILE);
  12494. exit(0);
  12495. #endif
  12496. #ifdef _PATH_UTMP
  12497. fprintf(f, "%s\n", _PATH_UTMP);
  12498. exit(0);
  12499. #endif
  12500. for (u = utmplist; *u; u++) {
  12501. if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
  12502. fprintf(f, "%s\n", *u);
  12503. exit(0);
  12504. }
  12505. }
  12506. exit(0);
  12507. }
  12508. _ACEOF
  12509. rm -f conftest$ac_exeext
  12510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12511. (eval $ac_link) 2>&5
  12512. ac_status=$?
  12513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12516. (eval $ac_try) 2>&5
  12517. ac_status=$?
  12518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12519. (exit $ac_status); }; }; then
  12520. rxvt_cv_path_utmp=`cat conftestval`
  12521. else
  12522. echo "$as_me: program exited with status $ac_status" >&5
  12523. echo "$as_me: failed program was:" >&5
  12524. sed 's/^/| /' conftest.$ac_ext >&5
  12525. ( exit $ac_status )
  12526. rxvt_cv_path_utmp=
  12527. fi
  12528. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12529. fi
  12530. fi
  12531. echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
  12532. echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
  12533. if test x$rxvt_cv_path_utmp != x; then
  12534. cat >>confdefs.h <<_ACEOF
  12535. #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
  12536. _ACEOF
  12537. fi
  12538. echo "$as_me:$LINENO: checking where utmpx is located" >&5
  12539. echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
  12540. if test "${rxvt_cv_path_utmpx+set}" = set; then
  12541. echo $ECHO_N "(cached) $ECHO_C" >&6
  12542. else
  12543. if test "$cross_compiling" = yes; then
  12544. { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
  12545. echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
  12546. else
  12547. cat >conftest.$ac_ext <<_ACEOF
  12548. #line $LINENO "configure"
  12549. /* confdefs.h. */
  12550. _ACEOF
  12551. cat confdefs.h >>conftest.$ac_ext
  12552. cat >>conftest.$ac_ext <<_ACEOF
  12553. /* end confdefs.h. */
  12554. #include <stdio.h>
  12555. #include <sys/types.h>
  12556. #include <utmpx.h>
  12557. #include <errno.h>
  12558. #include <sys/stat.h>
  12559. #ifdef HAVE_STRING_H
  12560. #include <string.h>
  12561. #endif
  12562. main()
  12563. {
  12564. char **u, *p, *utmplist[] = {
  12565. #ifdef UTMPX_FILE
  12566. UTMPX_FILE,
  12567. #endif
  12568. #ifdef _PATH_UTMPX
  12569. _PATH_UTMPX,
  12570. #endif
  12571. "/var/adm/utmpx", "/etc/utmpx", NULL };
  12572. FILE *a, *f=fopen("conftestval", "w");
  12573. struct stat statu, statux;
  12574. if (!f) exit(1);
  12575. for (u = utmplist; *u; u++) {
  12576. if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
  12577. if (stat(*u, &statux) < 0)
  12578. continue;
  12579. p = strdup(*u);
  12580. p[strlen(p) - 1] = '\0';
  12581. if (stat(p, &statu) >= 0
  12582. && (statu.st_mtime - statux.st_mtime > 86400))
  12583. continue;
  12584. fprintf(f, "%s\n", *u);
  12585. exit(0);
  12586. }
  12587. }
  12588. exit(0);
  12589. }
  12590. _ACEOF
  12591. rm -f conftest$ac_exeext
  12592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12593. (eval $ac_link) 2>&5
  12594. ac_status=$?
  12595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12596. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12598. (eval $ac_try) 2>&5
  12599. ac_status=$?
  12600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12601. (exit $ac_status); }; }; then
  12602. rxvt_cv_path_utmpx=`cat conftestval`
  12603. else
  12604. echo "$as_me: program exited with status $ac_status" >&5
  12605. echo "$as_me: failed program was:" >&5
  12606. sed 's/^/| /' conftest.$ac_ext >&5
  12607. ( exit $ac_status )
  12608. rxvt_cv_path_utmpx=
  12609. fi
  12610. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12611. fi
  12612. fi
  12613. echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
  12614. echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
  12615. if test x$rxvt_cv_path_utmpx != x; then
  12616. cat >>confdefs.h <<_ACEOF
  12617. #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
  12618. _ACEOF
  12619. fi
  12620. echo "$as_me:$LINENO: checking where wtmp is located" >&5
  12621. echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
  12622. if test "${rxvt_cv_path_wtmp+set}" = set; then
  12623. echo $ECHO_N "(cached) $ECHO_C" >&6
  12624. else
  12625. if test "$cross_compiling" = yes; then
  12626. { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
  12627. echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
  12628. else
  12629. cat >conftest.$ac_ext <<_ACEOF
  12630. #line $LINENO "configure"
  12631. /* confdefs.h. */
  12632. _ACEOF
  12633. cat confdefs.h >>conftest.$ac_ext
  12634. cat >>conftest.$ac_ext <<_ACEOF
  12635. /* end confdefs.h. */
  12636. #include <stdio.h>
  12637. #include <sys/types.h>
  12638. #ifdef HAVE_UTMP_H
  12639. #include <utmp.h>
  12640. #endif
  12641. #include <errno.h>
  12642. main()
  12643. {
  12644. char **w, *wtmplist[] = {
  12645. "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
  12646. FILE *a, *f=fopen("conftestval", "w");
  12647. if (!f) exit(1);
  12648. #ifdef WTMP_FILE
  12649. fprintf(f, "%s\n", WTMP_FILE);
  12650. exit(0);
  12651. #endif
  12652. #ifdef _PATH_WTMP
  12653. fprintf(f, "%s\n", _PATH_WTMP);
  12654. exit(0);
  12655. #endif
  12656. for (w = wtmplist; *w; w++) {
  12657. if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
  12658. fprintf(f, "%s\n", *w);
  12659. exit(0);
  12660. }
  12661. }
  12662. exit(0);
  12663. }
  12664. _ACEOF
  12665. rm -f conftest$ac_exeext
  12666. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12667. (eval $ac_link) 2>&5
  12668. ac_status=$?
  12669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12670. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12672. (eval $ac_try) 2>&5
  12673. ac_status=$?
  12674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12675. (exit $ac_status); }; }; then
  12676. rxvt_cv_path_wtmp=`cat conftestval`
  12677. else
  12678. echo "$as_me: program exited with status $ac_status" >&5
  12679. echo "$as_me: failed program was:" >&5
  12680. sed 's/^/| /' conftest.$ac_ext >&5
  12681. ( exit $ac_status )
  12682. rxvt_cv_path_wtmp=
  12683. fi
  12684. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12685. fi
  12686. fi
  12687. echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
  12688. echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
  12689. if test x$rxvt_cv_path_wtmp != x; then
  12690. cat >>confdefs.h <<_ACEOF
  12691. #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
  12692. _ACEOF
  12693. fi
  12694. echo "$as_me:$LINENO: checking where wtmpx is located" >&5
  12695. echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
  12696. if test "${rxvt_cv_path_wtmpx+set}" = set; then
  12697. echo $ECHO_N "(cached) $ECHO_C" >&6
  12698. else
  12699. if test "$cross_compiling" = yes; then
  12700. { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
  12701. echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
  12702. else
  12703. cat >conftest.$ac_ext <<_ACEOF
  12704. #line $LINENO "configure"
  12705. /* confdefs.h. */
  12706. _ACEOF
  12707. cat confdefs.h >>conftest.$ac_ext
  12708. cat >>conftest.$ac_ext <<_ACEOF
  12709. /* end confdefs.h. */
  12710. #include <stdio.h>
  12711. #ifdef HAVE_UTMPX_H
  12712. #include <utmpx.h>
  12713. #endif
  12714. #include <errno.h>
  12715. main()
  12716. {
  12717. char **w, *wtmplist[] = {
  12718. "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
  12719. FILE *a, *f=fopen("conftestval", "w");
  12720. if (!f) exit(1);
  12721. #ifdef WTMPX_FILE
  12722. fprintf(f, "%s\n", WTMPX_FILE);
  12723. exit(0);
  12724. #endif
  12725. #ifdef _PATH_WTMPX
  12726. fprintf(f, "%s\n", _PATH_WTMPX);
  12727. exit(0);
  12728. #endif
  12729. for (w = wtmplist; *w; w++) {
  12730. if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
  12731. fprintf(f, "%s\n", *w);
  12732. exit(0);
  12733. }
  12734. }
  12735. exit(0);
  12736. }
  12737. _ACEOF
  12738. rm -f conftest$ac_exeext
  12739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12740. (eval $ac_link) 2>&5
  12741. ac_status=$?
  12742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12743. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12745. (eval $ac_try) 2>&5
  12746. ac_status=$?
  12747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12748. (exit $ac_status); }; }; then
  12749. rxvt_cv_path_wtmpx=`cat conftestval`
  12750. else
  12751. echo "$as_me: program exited with status $ac_status" >&5
  12752. echo "$as_me: failed program was:" >&5
  12753. sed 's/^/| /' conftest.$ac_ext >&5
  12754. ( exit $ac_status )
  12755. rxvt_cv_path_wtmpx=
  12756. fi
  12757. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12758. fi
  12759. fi
  12760. echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
  12761. echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
  12762. if test x$rxvt_cv_path_wtmpx != x; then
  12763. cat >>confdefs.h <<_ACEOF
  12764. #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
  12765. _ACEOF
  12766. fi
  12767. echo "$as_me:$LINENO: checking where lastlog is located" >&5
  12768. echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
  12769. if test "${rxvt_cv_path_lastlog+set}" = set; then
  12770. echo $ECHO_N "(cached) $ECHO_C" >&6
  12771. else
  12772. if test "$cross_compiling" = yes; then
  12773. { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
  12774. echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
  12775. else
  12776. cat >conftest.$ac_ext <<_ACEOF
  12777. #line $LINENO "configure"
  12778. /* confdefs.h. */
  12779. _ACEOF
  12780. cat confdefs.h >>conftest.$ac_ext
  12781. cat >>conftest.$ac_ext <<_ACEOF
  12782. /* end confdefs.h. */
  12783. #include <stdio.h>
  12784. #include <sys/types.h>
  12785. #ifdef HAVE_UTMPX_H
  12786. #include <utmpx.h>
  12787. #elif defined(HAVE_UTMP_H)
  12788. #include <utmp.h>
  12789. #endif
  12790. #ifdef HAVE_LASTLOG_H
  12791. #include <lastlog.h>
  12792. #endif
  12793. #include <errno.h>
  12794. main()
  12795. {
  12796. char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
  12797. FILE *a, *f=fopen("conftestval", "w");
  12798. if (!f) exit(1);
  12799. #ifdef LASTLOG_FILE
  12800. fprintf(f, "%s\n", LASTLOG_FILE);
  12801. exit(0);
  12802. #endif
  12803. #ifdef _PATH_LASTLOG
  12804. fprintf(f, "%s\n", _PATH_LASTLOG);
  12805. exit(0);
  12806. #endif
  12807. for (w = lastloglist; *w; w++) {
  12808. if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
  12809. fprintf(f, "%s\n", *w);
  12810. exit(0);
  12811. }
  12812. }
  12813. exit(0);
  12814. }
  12815. _ACEOF
  12816. rm -f conftest$ac_exeext
  12817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12818. (eval $ac_link) 2>&5
  12819. ac_status=$?
  12820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12823. (eval $ac_try) 2>&5
  12824. ac_status=$?
  12825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12826. (exit $ac_status); }; }; then
  12827. rxvt_cv_path_lastlog=`cat conftestval`
  12828. else
  12829. echo "$as_me: program exited with status $ac_status" >&5
  12830. echo "$as_me: failed program was:" >&5
  12831. sed 's/^/| /' conftest.$ac_ext >&5
  12832. ( exit $ac_status )
  12833. rxvt_cv_path_lastlog=
  12834. fi
  12835. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12836. fi
  12837. fi
  12838. echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
  12839. echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
  12840. if test x$rxvt_cv_path_lastlog != x; then
  12841. cat >>confdefs.h <<_ACEOF
  12842. #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
  12843. _ACEOF
  12844. if test -d "$rxvt_cv_path_lastlog"; then
  12845. cat >>confdefs.h <<\_ACEOF
  12846. #define LASTLOG_IS_DIR 1
  12847. _ACEOF
  12848. fi
  12849. fi
  12850. echo "$as_me:$LINENO: checking where lastlogx is located" >&5
  12851. echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
  12852. if test "${rxvt_cv_path_lastlogx+set}" = set; then
  12853. echo $ECHO_N "(cached) $ECHO_C" >&6
  12854. else
  12855. if test "$cross_compiling" = yes; then
  12856. { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
  12857. echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
  12858. else
  12859. cat >conftest.$ac_ext <<_ACEOF
  12860. #line $LINENO "configure"
  12861. /* confdefs.h. */
  12862. _ACEOF
  12863. cat confdefs.h >>conftest.$ac_ext
  12864. cat >>conftest.$ac_ext <<_ACEOF
  12865. /* end confdefs.h. */
  12866. #include <stdio.h>
  12867. #ifdef HAVE_UTMPX_H
  12868. #include <utmpx.h>
  12869. #endif
  12870. #include <errno.h>
  12871. main()
  12872. {
  12873. char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
  12874. FILE *a, *f=fopen("conftestval", "w");
  12875. if (!f) exit(1);
  12876. #ifdef LASTLOGX_FILE
  12877. fprintf(f, "%s\n", LASTLOGX_FILE);
  12878. exit(0);
  12879. #endif
  12880. #ifdef _PATH_LASTLOGX
  12881. fprintf(f, "%s\n", _PATH_LASTLOGX);
  12882. exit(0);
  12883. #endif
  12884. for (w = wtmplist; *w; w++) {
  12885. if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
  12886. fprintf(f, "%s\n", *w);
  12887. exit(0);
  12888. }
  12889. }
  12890. exit(0);
  12891. }
  12892. _ACEOF
  12893. rm -f conftest$ac_exeext
  12894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12895. (eval $ac_link) 2>&5
  12896. ac_status=$?
  12897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12900. (eval $ac_try) 2>&5
  12901. ac_status=$?
  12902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12903. (exit $ac_status); }; }; then
  12904. rxvt_cv_path_lastlogx=`cat conftestval`
  12905. else
  12906. echo "$as_me: program exited with status $ac_status" >&5
  12907. echo "$as_me: failed program was:" >&5
  12908. sed 's/^/| /' conftest.$ac_ext >&5
  12909. ( exit $ac_status )
  12910. rxvt_cv_path_lastlogx=
  12911. fi
  12912. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12913. fi
  12914. fi
  12915. echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
  12916. echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
  12917. if test x$rxvt_cv_path_lastlogx != x; then
  12918. cat >>confdefs.h <<_ACEOF
  12919. #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
  12920. _ACEOF
  12921. fi
  12922. echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
  12923. echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
  12924. if test "${rxvt_cv_path_ttytab+set}" = set; then
  12925. echo $ECHO_N "(cached) $ECHO_C" >&6
  12926. else
  12927. for ttys_file in /etc/ttys /etc/ttytab;
  12928. do
  12929. if test -f "$ttys_file" ; then
  12930. rxvt_cv_path_ttytab=$ttys_file
  12931. break
  12932. fi
  12933. done
  12934. fi
  12935. echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
  12936. echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
  12937. if test x$rxvt_cv_path_ttytab != x; then
  12938. cat >>confdefs.h <<_ACEOF
  12939. #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
  12940. _ACEOF
  12941. fi
  12942. ac_save_LIBS=$LIBS
  12943. ac_save_CFLAGS=$CFLAGS
  12944. CFLAGS="$CFLAGS $X_CFLAGS"
  12945. LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
  12946. if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
  12947. LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
  12948. fi
  12949. echo "$as_me:$LINENO: checking for working Xlocale" >&5
  12950. echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
  12951. if test "${rxvt_cv_func_xlocale+set}" = set; then
  12952. echo $ECHO_N "(cached) $ECHO_C" >&6
  12953. else
  12954. if test "$cross_compiling" = yes; then
  12955. { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
  12956. echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
  12957. else
  12958. cat >conftest.$ac_ext <<_ACEOF
  12959. #line $LINENO "configure"
  12960. /* confdefs.h. */
  12961. _ACEOF
  12962. cat confdefs.h >>conftest.$ac_ext
  12963. cat >>conftest.$ac_ext <<_ACEOF
  12964. /* end confdefs.h. */
  12965. #include <X11/Xlib.h>
  12966. main() {
  12967. char *p;
  12968. if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
  12969. exit (XSupportsLocale() ? 0 : 1);
  12970. else
  12971. exit (1);}
  12972. _ACEOF
  12973. rm -f conftest$ac_exeext
  12974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12975. (eval $ac_link) 2>&5
  12976. ac_status=$?
  12977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12978. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12980. (eval $ac_try) 2>&5
  12981. ac_status=$?
  12982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12983. (exit $ac_status); }; }; then
  12984. rxvt_cv_func_xlocale=yes
  12985. else
  12986. echo "$as_me: program exited with status $ac_status" >&5
  12987. echo "$as_me: failed program was:" >&5
  12988. sed 's/^/| /' conftest.$ac_ext >&5
  12989. ( exit $ac_status )
  12990. rxvt_cv_func_xlocale=no
  12991. fi
  12992. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12993. fi
  12994. fi
  12995. echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
  12996. echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
  12997. if test x$rxvt_cv_func_xlocale = xyes; then
  12998. cat >>confdefs.h <<\_ACEOF
  12999. #define HAVE_XLOCALE 1
  13000. _ACEOF
  13001. fi
  13002. echo "$as_me:$LINENO: checking for working X setlocale" >&5
  13003. echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
  13004. if test "${rxvt_cv_func_xsetlocale+set}" = set; then
  13005. echo $ECHO_N "(cached) $ECHO_C" >&6
  13006. else
  13007. cat >conftest.$ac_ext <<_ACEOF
  13008. #line $LINENO "configure"
  13009. /* confdefs.h. */
  13010. _ACEOF
  13011. cat confdefs.h >>conftest.$ac_ext
  13012. cat >>conftest.$ac_ext <<_ACEOF
  13013. /* end confdefs.h. */
  13014. #define X_LOCALE 1
  13015. #include <X11/Xlocale.h>
  13016. int
  13017. main ()
  13018. {
  13019. setlocale(LC_CTYPE, "");
  13020. ;
  13021. return 0;
  13022. }
  13023. _ACEOF
  13024. rm -f conftest.$ac_objext conftest$ac_exeext
  13025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13026. (eval $ac_link) 2>&5
  13027. ac_status=$?
  13028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13029. (exit $ac_status); } &&
  13030. { ac_try='test -s conftest$ac_exeext'
  13031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13032. (eval $ac_try) 2>&5
  13033. ac_status=$?
  13034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13035. (exit $ac_status); }; }; then
  13036. rxvt_cv_func_xsetlocale=yes
  13037. else
  13038. echo "$as_me: failed program was:" >&5
  13039. sed 's/^/| /' conftest.$ac_ext >&5
  13040. rxvt_cv_func_xsetlocale=no
  13041. fi
  13042. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13043. fi
  13044. echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
  13045. echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
  13046. if test x$rxvt_cv_func_xsetlocale = xyes; then
  13047. cat >>confdefs.h <<\_ACEOF
  13048. #define HAVE_XSETLOCALE 1
  13049. _ACEOF
  13050. fi
  13051. LIBS=$ac_save_LIBS
  13052. CFLAGS=$ac_save_CFLAGS
  13053. echo "$as_me:$LINENO: checking for working plain setlocale" >&5
  13054. echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
  13055. if test "${rxvt_cv_func_setlocale+set}" = set; then
  13056. echo $ECHO_N "(cached) $ECHO_C" >&6
  13057. else
  13058. cat >conftest.$ac_ext <<_ACEOF
  13059. #line $LINENO "configure"
  13060. /* confdefs.h. */
  13061. _ACEOF
  13062. cat confdefs.h >>conftest.$ac_ext
  13063. cat >>conftest.$ac_ext <<_ACEOF
  13064. /* end confdefs.h. */
  13065. #include <locale.h>
  13066. int
  13067. main ()
  13068. {
  13069. setlocale(LC_CTYPE, "");
  13070. ;
  13071. return 0;
  13072. }
  13073. _ACEOF
  13074. rm -f conftest.$ac_objext conftest$ac_exeext
  13075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13076. (eval $ac_link) 2>&5
  13077. ac_status=$?
  13078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13079. (exit $ac_status); } &&
  13080. { ac_try='test -s conftest$ac_exeext'
  13081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13082. (eval $ac_try) 2>&5
  13083. ac_status=$?
  13084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13085. (exit $ac_status); }; }; then
  13086. rxvt_cv_func_setlocale=yes
  13087. else
  13088. echo "$as_me: failed program was:" >&5
  13089. sed 's/^/| /' conftest.$ac_ext >&5
  13090. rxvt_cv_func_setlocale=no
  13091. fi
  13092. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13093. fi
  13094. echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
  13095. echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
  13096. if test x$rxvt_cv_func_setlocale = xyes; then
  13097. cat >>confdefs.h <<\_ACEOF
  13098. #define HAVE_SETLOCALE 1
  13099. _ACEOF
  13100. fi
  13101. echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
  13102. echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
  13103. if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
  13104. echo $ECHO_N "(cached) $ECHO_C" >&6
  13105. else
  13106. cat >conftest.$ac_ext <<_ACEOF
  13107. #line $LINENO "configure"
  13108. /* confdefs.h. */
  13109. _ACEOF
  13110. cat confdefs.h >>conftest.$ac_ext
  13111. cat >>conftest.$ac_ext <<_ACEOF
  13112. /* end confdefs.h. */
  13113. #include <langinfo.h>
  13114. int
  13115. main ()
  13116. {
  13117. nl_langinfo(CODESET);
  13118. ;
  13119. return 0;
  13120. }
  13121. _ACEOF
  13122. rm -f conftest.$ac_objext conftest$ac_exeext
  13123. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13124. (eval $ac_link) 2>&5
  13125. ac_status=$?
  13126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13127. (exit $ac_status); } &&
  13128. { ac_try='test -s conftest$ac_exeext'
  13129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13130. (eval $ac_try) 2>&5
  13131. ac_status=$?
  13132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13133. (exit $ac_status); }; }; then
  13134. rxvt_cv_func_nl_langinfo=yes
  13135. else
  13136. echo "$as_me: failed program was:" >&5
  13137. sed 's/^/| /' conftest.$ac_ext >&5
  13138. rxvt_cv_func_nl_langinfo=no
  13139. fi
  13140. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13141. fi
  13142. echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
  13143. echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
  13144. if test x$rxvt_cv_func_nl_langinfo = xyes; then
  13145. cat >>confdefs.h <<\_ACEOF
  13146. #define HAVE_NL_LANGINFO 1
  13147. _ACEOF
  13148. fi
  13149. echo "$as_me:$LINENO: checking for getpt" >&5
  13150. echo $ECHO_N "checking for getpt... $ECHO_C" >&6
  13151. if test "${rxvt_cv_func_getpt+set}" = set; then
  13152. echo $ECHO_N "(cached) $ECHO_C" >&6
  13153. else
  13154. cat >conftest.$ac_ext <<_ACEOF
  13155. #line $LINENO "configure"
  13156. /* confdefs.h. */
  13157. _ACEOF
  13158. cat confdefs.h >>conftest.$ac_ext
  13159. cat >>conftest.$ac_ext <<_ACEOF
  13160. /* end confdefs.h. */
  13161. #define _GNU_SOURCE
  13162. #ifdef HAVE_STDLIB_H
  13163. # include <stdlib.h>
  13164. #endif
  13165. int
  13166. main ()
  13167. {
  13168. (void)getpt();
  13169. ;
  13170. return 0;
  13171. }
  13172. _ACEOF
  13173. rm -f conftest.$ac_objext conftest$ac_exeext
  13174. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13175. (eval $ac_link) 2>&5
  13176. ac_status=$?
  13177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13178. (exit $ac_status); } &&
  13179. { ac_try='test -s conftest$ac_exeext'
  13180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13181. (eval $ac_try) 2>&5
  13182. ac_status=$?
  13183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13184. (exit $ac_status); }; }; then
  13185. rxvt_cv_func_getpt=yes
  13186. else
  13187. echo "$as_me: failed program was:" >&5
  13188. sed 's/^/| /' conftest.$ac_ext >&5
  13189. rxvt_cv_func_getpt=no
  13190. fi
  13191. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13192. fi
  13193. echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
  13194. echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
  13195. if test x$rxvt_cv_func_getpt = xyes; then
  13196. cat >>confdefs.h <<\_ACEOF
  13197. #define HAVE_GETPT 1
  13198. _ACEOF
  13199. fi
  13200. echo "$as_me:$LINENO: checking for pty/tty type" >&5
  13201. echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
  13202. if test "${rxvt_cv_ptys+set}" = set; then
  13203. echo $ECHO_N "(cached) $ECHO_C" >&6
  13204. else
  13205. if test x$ac_cv_func_openpty = xyes; then
  13206. rxvt_cv_ptys=OPENPTY
  13207. else if test x$ac_cv_func__getpty = xyes; then
  13208. rxvt_cv_ptys=SGI4
  13209. else if test -c /dev/ttyp20; then
  13210. rxvt_cv_ptys=SCO
  13211. else if test -c /dev/ptym/clone; then
  13212. rxvt_cv_ptys=HPUX
  13213. else if test x$rxvt_cv_func_getpt = xyes; then
  13214. rxvt_cv_ptys=GLIBC
  13215. else if test -c /dev/ptc -a -c /dev/pts; then
  13216. rxvt_cv_ptys=PTC
  13217. else if test -c /dev/ptc -a -d /dev/pts; then
  13218. rxvt_cv_ptys=PTC
  13219. else if test -c /dev/ptmx -a -c /dev/pts/0; then
  13220. rxvt_cv_ptys=STREAMS
  13221. else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
  13222. rxvt_cv_ptys=STREAMS
  13223. else
  13224. rxvt_cv_ptys=BSD
  13225. fi
  13226. fi
  13227. fi
  13228. fi
  13229. fi
  13230. fi
  13231. fi
  13232. fi
  13233. fi
  13234. fi
  13235. echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
  13236. echo "${ECHO_T}$rxvt_cv_ptys" >&6
  13237. if test x$rxvt_cv_ptys = xOPENPTY; then
  13238. cat >>confdefs.h <<\_ACEOF
  13239. #define PTYS_ARE_OPENPTY 1
  13240. _ACEOF
  13241. fi
  13242. if test x$rxvt_cv_ptys = xSCO; then
  13243. cat >>confdefs.h <<\_ACEOF
  13244. #define PTYS_ARE_NUMERIC 1
  13245. _ACEOF
  13246. fi
  13247. if test x$rxvt_cv_ptys = xSTREAMS; then
  13248. cat >>confdefs.h <<\_ACEOF
  13249. #define PTYS_ARE_PTMX 1
  13250. _ACEOF
  13251. fi
  13252. if test x$rxvt_cv_ptys = xPTC; then
  13253. cat >>confdefs.h <<\_ACEOF
  13254. #define PTYS_ARE_PTC 1
  13255. _ACEOF
  13256. fi
  13257. if test x$rxvt_cv_ptys = xSGI4; then
  13258. cat >>confdefs.h <<\_ACEOF
  13259. #define PTYS_ARE__GETPTY 1
  13260. _ACEOF
  13261. fi
  13262. if test x$rxvt_cv_ptys = xCONVEX; then
  13263. cat >>confdefs.h <<\_ACEOF
  13264. #define PTYS_ARE_GETPTY 1
  13265. _ACEOF
  13266. fi
  13267. if test x$rxvt_cv_ptys = xGLIBC; then
  13268. cat >>confdefs.h <<\_ACEOF
  13269. #define PTYS_ARE_GETPT 1
  13270. _ACEOF
  13271. fi
  13272. if test x$rxvt_cv_ptys = xHPUX; then
  13273. cat >>confdefs.h <<\_ACEOF
  13274. #define PTYS_ARE_CLONE 1
  13275. _ACEOF
  13276. fi
  13277. if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
  13278. cat >>confdefs.h <<\_ACEOF
  13279. #define PTYS_ARE_SEARCHED 1
  13280. _ACEOF
  13281. fi
  13282. { echo "$as_me:$LINENO: checking for pty ranges..." >&5
  13283. echo "$as_me: checking for pty ranges..." >&6;}
  13284. ptys=`echo /dev/pty??`
  13285. pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
  13286. pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
  13287. if test x$pch1 != x; then
  13288. cat >>confdefs.h <<_ACEOF
  13289. #define PTYCHAR1 "$pch1"
  13290. _ACEOF
  13291. fi
  13292. if test x$pch2 != x; then
  13293. cat >>confdefs.h <<_ACEOF
  13294. #define PTYCHAR2 "$pch2"
  13295. _ACEOF
  13296. fi
  13297. echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
  13298. echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
  13299. if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
  13300. echo $ECHO_N "(cached) $ECHO_C" >&6
  13301. else
  13302. ac_check_lib_save_LIBS=$LIBS
  13303. LIBS="-lxpg4 $LIBS"
  13304. cat >conftest.$ac_ext <<_ACEOF
  13305. #line $LINENO "configure"
  13306. /* confdefs.h. */
  13307. _ACEOF
  13308. cat confdefs.h >>conftest.$ac_ext
  13309. cat >>conftest.$ac_ext <<_ACEOF
  13310. /* end confdefs.h. */
  13311. /* Override any gcc2 internal prototype to avoid an error. */
  13312. #ifdef __cplusplus
  13313. extern "C"
  13314. #endif
  13315. /* We use char because int might match the return type of a gcc2
  13316. builtin and then its argument prototype would still apply. */
  13317. char setlocale ();
  13318. int
  13319. main ()
  13320. {
  13321. setlocale ();
  13322. ;
  13323. return 0;
  13324. }
  13325. _ACEOF
  13326. rm -f conftest.$ac_objext conftest$ac_exeext
  13327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13328. (eval $ac_link) 2>&5
  13329. ac_status=$?
  13330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13331. (exit $ac_status); } &&
  13332. { ac_try='test -s conftest$ac_exeext'
  13333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13334. (eval $ac_try) 2>&5
  13335. ac_status=$?
  13336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13337. (exit $ac_status); }; }; then
  13338. ac_cv_lib_xpg4_setlocale=yes
  13339. else
  13340. echo "$as_me: failed program was:" >&5
  13341. sed 's/^/| /' conftest.$ac_ext >&5
  13342. ac_cv_lib_xpg4_setlocale=no
  13343. fi
  13344. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13345. LIBS=$ac_check_lib_save_LIBS
  13346. fi
  13347. echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
  13348. echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
  13349. if test $ac_cv_lib_xpg4_setlocale = yes; then
  13350. LIBS="$LIBS -lxpg4"
  13351. fi
  13352. if test x$support_graphics = xyes; then
  13353. cat >>confdefs.h <<\_ACEOF
  13354. #define RXVT_GRAPHICS 1
  13355. _ACEOF
  13356. OBJGRAPHICS="graphics.o"
  13357. fi
  13358. if test x$support_inheritpixmap = xyes; then
  13359. cat >>confdefs.h <<\_ACEOF
  13360. #define TRANSPARENT 1
  13361. _ACEOF
  13362. fi
  13363. if test x$support_keepscrolling = xno; then
  13364. cat >>confdefs.h <<\_ACEOF
  13365. #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
  13366. _ACEOF
  13367. fi
  13368. if test x$support_menubar = xyes; then
  13369. cat >>confdefs.h <<\_ACEOF
  13370. #define MENUBAR 1
  13371. _ACEOF
  13372. OBJMENUBAR="menubar.o"
  13373. fi
  13374. if test x$support_frills = xno; then
  13375. cat >>confdefs.h <<\_ACEOF
  13376. #define NO_FRILLS 1
  13377. _ACEOF
  13378. fi
  13379. if test x$support_linespace = xno; then
  13380. cat >>confdefs.h <<\_ACEOF
  13381. #define NO_LINESPACE 1
  13382. _ACEOF
  13383. fi
  13384. if test x$support_24bit = xyes; then
  13385. cat >>confdefs.h <<\_ACEOF
  13386. #define PREFER_24BIT 1
  13387. _ACEOF
  13388. fi
  13389. if test x$support_mousewheel = xyes; then
  13390. cat >>confdefs.h <<\_ACEOF
  13391. #define MOUSE_WHEEL 1
  13392. _ACEOF
  13393. fi
  13394. if test x$support_mouseslipwheel = xyes; then
  13395. cat >>confdefs.h <<\_ACEOF
  13396. #define MOUSE_SLIP_WHEELING 1
  13397. _ACEOF
  13398. fi
  13399. if test x$support_oldselection = xno; then
  13400. cat >>confdefs.h <<\_ACEOF
  13401. #define NO_OLD_SELECTION 1
  13402. _ACEOF
  13403. fi
  13404. if test x$support_utmp = xyes; then
  13405. cat >>confdefs.h <<\_ACEOF
  13406. #define UTMP_SUPPORT 1
  13407. _ACEOF
  13408. OBJLOGGING="logging.o"
  13409. fi
  13410. if test x$support_wtmp = xyes; then
  13411. cat >>confdefs.h <<\_ACEOF
  13412. #define WTMP_SUPPORT 1
  13413. _ACEOF
  13414. fi
  13415. if test x$support_lastlog = xyes; then
  13416. cat >>confdefs.h <<\_ACEOF
  13417. #define LASTLOG_SUPPORT 1
  13418. _ACEOF
  13419. fi
  13420. if test x$support_xim = xyes -o x$multichar_set = xyes; then
  13421. if test x$rxvt_cv_func_xlocale = xyes; then
  13422. cat >>confdefs.h <<\_ACEOF
  13423. #define USE_XIM 1
  13424. _ACEOF
  13425. fi
  13426. fi
  13427. if test x$support_xpm = xyes; then
  13428. cat >>confdefs.h <<\_ACEOF
  13429. #define XPM_BACKGROUND 1
  13430. _ACEOF
  13431. OBJXPM="xpm.o"
  13432. fi
  13433. if test x$support_scroll_rxvt = xyes; then
  13434. cat >>confdefs.h <<\_ACEOF
  13435. #define RXVT_SCROLLBAR 1
  13436. _ACEOF
  13437. OBJSCROLLBAR="scrollbar-rxvt.o"
  13438. scrolltypes="rxvt"
  13439. fi
  13440. if test x$support_scroll_next = xyes; then
  13441. cat >>confdefs.h <<\_ACEOF
  13442. #define NEXT_SCROLLBAR 1
  13443. _ACEOF
  13444. OBJSCROLLBAR="$OBJSCROLLBAR scrollbar-next.o"
  13445. scrolltypes="$scrolltypes next"
  13446. fi
  13447. if test x$support_scroll_xterm = xyes; then
  13448. cat >>confdefs.h <<\_ACEOF
  13449. #define XTERM_SCROLLBAR 1
  13450. _ACEOF
  13451. OBJSCROLLBAR="$OBJSCROLLBAR scrollbar-xterm.o"
  13452. scrolltypes="$scrolltypes xterm"
  13453. fi
  13454. CFLAGS=${CFLAGS--O}
  13455. LDFLAGS=${LDFLAGS--O}
  13456. CPPFLAGS="$CPPFLAGS"
  13457. if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
  13458. DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
  13459. LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
  13460. X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
  13461. X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
  13462. XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
  13463. fi
  13464. if test x$support_addstrings = xyes; then
  13465. OBJSTRINGS="strings.o"
  13466. else
  13467. cat >>confdefs.h <<\_ACEOF
  13468. #define NO_STRINGS 1
  13469. _ACEOF
  13470. fi
  13471. OBJLIST="command.o defaultfont.o init.o $OBJGRAPHICS $OBJGRKELOT $OBJLOGGING main.o $OBJMENUBAR misc.o netdisp.o ptytty.o screen.o scrollbar.o $OBJSCROLLBAR $OBJSTRINGS xdefaults.o $OBJXPM"
  13472. LIBOBJLIST=`echo $OBJLIST | sed 's/\.o/.lo/g'`
  13473. MCOMMON=./autoconf/Make.common
  13474. test "$program_prefix" != NONE &&
  13475. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  13476. # Use a double $ so make ignores it.
  13477. test "$program_suffix" != NONE &&
  13478. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  13479. # Double any \ or $. echo might interpret backslashes.
  13480. # By default was `s,x,x', remove it if useless.
  13481. cat <<\_ACEOF >conftest.sed
  13482. s/[\\$]/&&/g;s/;s,x,x,$//
  13483. _ACEOF
  13484. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  13485. rm conftest.sed
  13486. RXVTNAME=`echo rxvt|sed "$program_transform_name"`
  13487. if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
  13488. include_stdarg_h="#include <stdarg.h>"
  13489. else
  13490. include_stdarg_h="/* #include <stdarg.h> */"
  13491. fi
  13492. if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
  13493. include_stdlib_h="#include <stdlib.h>"
  13494. else
  13495. include_stdlib_h="/* #include <stdlib.h> */"
  13496. fi
  13497. if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
  13498. include_unistd_h="#include <unistd.h>"
  13499. else
  13500. include_unistd_h="/* #include <unistd.h> */"
  13501. fi
  13502. if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
  13503. include_string_h="#include <string.h>"
  13504. else
  13505. include_string_h="/* #include <string.h> */"
  13506. fi
  13507. if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
  13508. include_fcntl_h="#include <fcntl.h>"
  13509. else
  13510. include_fcntl_h="/* #include <fcntl.h> */"
  13511. fi
  13512. if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
  13513. include_util_h="#include <util.h>"
  13514. else
  13515. include_util_h="/* #include <util.h> */"
  13516. fi
  13517. if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
  13518. include_assert_h="#include <assert.h>"
  13519. else
  13520. include_assert_h="/* #include <assert.h> */"
  13521. fi
  13522. if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
  13523. include_sys_ioctl_h="#include <sys/ioctl.h>"
  13524. else
  13525. include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
  13526. fi
  13527. if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
  13528. include_sys_select_h="#include <sys/select.h>"
  13529. else
  13530. include_sys_select_h="/* #include <sys/select.h> */"
  13531. fi
  13532. if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
  13533. include_sys_strredir_h="#include <sys/strredir.h>"
  13534. else
  13535. include_sys_strredir_h="/* #include <sys/strredir.h> */"
  13536. fi
  13537. if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
  13538. include_sys_time_h="#include <sys/time.h>"
  13539. else
  13540. include_sys_time_h="/* #include <sys/time.h> */"
  13541. fi
  13542. if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
  13543. include_time_h="#include <time.h>"
  13544. else
  13545. include_time_h="/* #include <time.h> */"
  13546. fi
  13547. if test "$multichar_set" = yes; then
  13548. lib_multicharset="#define MULTICHAR_SET 1"
  13549. else
  13550. lib_multicharset="/* #undef MULTICHAR_SET */"
  13551. fi
  13552. ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/graphics/Makefile src/test/Makefile src/rxvtlib.h rclock/Makefile W11/Makefile"
  13553. cat >confcache <<\_ACEOF
  13554. # This file is a shell script that caches the results of configure
  13555. # tests run on this system so they can be shared between configure
  13556. # scripts and configure runs, see configure's option --config-cache.
  13557. # It is not useful on other systems. If it contains results you don't
  13558. # want to keep, you may remove or edit it.
  13559. #
  13560. # config.status only pays attention to the cache file if you give it
  13561. # the --recheck option to rerun configure.
  13562. #
  13563. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13564. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13565. # following values.
  13566. _ACEOF
  13567. # The following way of writing the cache mishandles newlines in values,
  13568. # but we know of no workaround that is simple, portable, and efficient.
  13569. # So, don't put newlines in cache variables' values.
  13570. # Ultrix sh set writes to stderr and can't be redirected directly,
  13571. # and sets the high bit in the cache file unless we assign to the vars.
  13572. {
  13573. (set) 2>&1 |
  13574. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  13575. *ac_space=\ *)
  13576. # `set' does not quote correctly, so add quotes (double-quote
  13577. # substitution turns \\\\ into \\, and sed turns \\ into \).
  13578. sed -n \
  13579. "s/'/'\\\\''/g;
  13580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13581. ;;
  13582. *)
  13583. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13584. sed -n \
  13585. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  13586. ;;
  13587. esac;
  13588. } |
  13589. sed '
  13590. t clear
  13591. : clear
  13592. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13593. t end
  13594. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13595. : end' >>confcache
  13596. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  13597. if test -w $cache_file; then
  13598. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  13599. cat confcache >$cache_file
  13600. else
  13601. echo "not updating unwritable cache $cache_file"
  13602. fi
  13603. fi
  13604. rm -f confcache
  13605. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13606. # Let make expand exec_prefix.
  13607. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13608. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13609. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13610. # trailing colons and then remove the whole line if VPATH becomes empty
  13611. # (actually we leave an empty line to preserve line numbers).
  13612. if test "x$srcdir" = x.; then
  13613. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13614. s/:*\$(srcdir):*/:/;
  13615. s/:*\${srcdir}:*/:/;
  13616. s/:*@srcdir@:*/:/;
  13617. s/^\([^=]*=[ ]*\):*/\1/;
  13618. s/:*$//;
  13619. s/^[^=]*=[ ]*$//;
  13620. }'
  13621. fi
  13622. DEFS=-DHAVE_CONFIG_H
  13623. ac_libobjs=
  13624. ac_ltlibobjs=
  13625. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13626. # 1. Remove the extension, and $U if already installed.
  13627. ac_i=`echo "$ac_i" |
  13628. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  13629. # 2. Add them.
  13630. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  13631. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  13632. done
  13633. LIBOBJS=$ac_libobjs
  13634. LTLIBOBJS=$ac_ltlibobjs
  13635. : ${CONFIG_STATUS=./config.status}
  13636. ac_clean_files_save=$ac_clean_files
  13637. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13638. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  13639. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13640. cat >$CONFIG_STATUS <<_ACEOF
  13641. #! $SHELL
  13642. # Generated by $as_me.
  13643. # Run this file to recreate the current configuration.
  13644. # Compiler output produced by configure, useful for debugging
  13645. # configure, is in config.log if it exists.
  13646. debug=false
  13647. ac_cs_recheck=false
  13648. ac_cs_silent=false
  13649. SHELL=\${CONFIG_SHELL-$SHELL}
  13650. _ACEOF
  13651. cat >>$CONFIG_STATUS <<\_ACEOF
  13652. ## --------------------- ##
  13653. ## M4sh Initialization. ##
  13654. ## --------------------- ##
  13655. # Be Bourne compatible
  13656. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13657. emulate sh
  13658. NULLCMD=:
  13659. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  13660. # is contrary to our usage. Disable this feature.
  13661. alias -g '${1+"$@"}'='"$@"'
  13662. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  13663. set -o posix
  13664. fi
  13665. # Support unset when possible.
  13666. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  13667. as_unset=unset
  13668. else
  13669. as_unset=false
  13670. fi
  13671. # Work around bugs in pre-3.0 UWIN ksh.
  13672. $as_unset ENV MAIL MAILPATH
  13673. PS1='$ '
  13674. PS2='> '
  13675. PS4='+ '
  13676. # NLS nuisances.
  13677. for as_var in \
  13678. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  13679. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  13680. LC_TELEPHONE LC_TIME
  13681. do
  13682. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  13683. eval $as_var=C; export $as_var
  13684. else
  13685. $as_unset $as_var
  13686. fi
  13687. done
  13688. # Required to use basename.
  13689. if expr a : '\(a\)' >/dev/null 2>&1; then
  13690. as_expr=expr
  13691. else
  13692. as_expr=false
  13693. fi
  13694. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  13695. as_basename=basename
  13696. else
  13697. as_basename=false
  13698. fi
  13699. # Name of the executable.
  13700. as_me=`$as_basename "$0" ||
  13701. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13702. X"$0" : 'X\(//\)$' \| \
  13703. X"$0" : 'X\(/\)$' \| \
  13704. . : '\(.\)' 2>/dev/null ||
  13705. echo X/"$0" |
  13706. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  13707. /^X\/\(\/\/\)$/{ s//\1/; q; }
  13708. /^X\/\(\/\).*/{ s//\1/; q; }
  13709. s/.*/./; q'`
  13710. # PATH needs CR, and LINENO needs CR and PATH.
  13711. # Avoid depending upon Character Ranges.
  13712. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13713. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13714. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13715. as_cr_digits='0123456789'
  13716. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13717. # The user is always right.
  13718. if test "${PATH_SEPARATOR+set}" != set; then
  13719. echo "#! /bin/sh" >conf$$.sh
  13720. echo "exit 0" >>conf$$.sh
  13721. chmod +x conf$$.sh
  13722. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13723. PATH_SEPARATOR=';'
  13724. else
  13725. PATH_SEPARATOR=:
  13726. fi
  13727. rm -f conf$$.sh
  13728. fi
  13729. as_lineno_1=$LINENO
  13730. as_lineno_2=$LINENO
  13731. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  13732. test "x$as_lineno_1" != "x$as_lineno_2" &&
  13733. test "x$as_lineno_3" = "x$as_lineno_2" || {
  13734. # Find who we are. Look in the path if we contain no path at all
  13735. # relative or not.
  13736. case $0 in
  13737. *[\\/]* ) as_myself=$0 ;;
  13738. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13739. for as_dir in $PATH
  13740. do
  13741. IFS=$as_save_IFS
  13742. test -z "$as_dir" && as_dir=.
  13743. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13744. done
  13745. ;;
  13746. esac
  13747. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13748. # in which case we are not to be found in the path.
  13749. if test "x$as_myself" = x; then
  13750. as_myself=$0
  13751. fi
  13752. if test ! -f "$as_myself"; then
  13753. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  13754. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  13755. { (exit 1); exit 1; }; }
  13756. fi
  13757. case $CONFIG_SHELL in
  13758. '')
  13759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13760. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  13761. do
  13762. IFS=$as_save_IFS
  13763. test -z "$as_dir" && as_dir=.
  13764. for as_base in sh bash ksh sh5; do
  13765. case $as_dir in
  13766. /*)
  13767. if ("$as_dir/$as_base" -c '
  13768. as_lineno_1=$LINENO
  13769. as_lineno_2=$LINENO
  13770. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  13771. test "x$as_lineno_1" != "x$as_lineno_2" &&
  13772. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  13773. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  13774. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  13775. CONFIG_SHELL=$as_dir/$as_base
  13776. export CONFIG_SHELL
  13777. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  13778. fi;;
  13779. esac
  13780. done
  13781. done
  13782. ;;
  13783. esac
  13784. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13785. # uniformly replaced by the line number. The first 'sed' inserts a
  13786. # line-number line before each line; the second 'sed' does the real
  13787. # work. The second script uses 'N' to pair each line-number line
  13788. # with the numbered line, and appends trailing '-' during
  13789. # substitution so that $LINENO is not a special case at line end.
  13790. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13791. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  13792. sed '=' <$as_myself |
  13793. sed '
  13794. N
  13795. s,$,-,
  13796. : loop
  13797. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  13798. t loop
  13799. s,-$,,
  13800. s,^['$as_cr_digits']*\n,,
  13801. ' >$as_me.lineno &&
  13802. chmod +x $as_me.lineno ||
  13803. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  13804. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  13805. { (exit 1); exit 1; }; }
  13806. # Don't try to exec as it changes $[0], causing all sort of problems
  13807. # (the dirname of $[0] is not the place where we might find the
  13808. # original and so on. Autoconf is especially sensible to this).
  13809. . ./$as_me.lineno
  13810. # Exit status is that of the last command.
  13811. exit
  13812. }
  13813. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  13814. *c*,-n*) ECHO_N= ECHO_C='
  13815. ' ECHO_T=' ' ;;
  13816. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  13817. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  13818. esac
  13819. if expr a : '\(a\)' >/dev/null 2>&1; then
  13820. as_expr=expr
  13821. else
  13822. as_expr=false
  13823. fi
  13824. rm -f conf$$ conf$$.exe conf$$.file
  13825. echo >conf$$.file
  13826. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13827. # We could just check for DJGPP; but this test a) works b) is more generic
  13828. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  13829. if test -f conf$$.exe; then
  13830. # Don't use ln at all; we don't have any links
  13831. as_ln_s='cp -p'
  13832. else
  13833. as_ln_s='ln -s'
  13834. fi
  13835. elif ln conf$$.file conf$$ 2>/dev/null; then
  13836. as_ln_s=ln
  13837. else
  13838. as_ln_s='cp -p'
  13839. fi
  13840. rm -f conf$$ conf$$.exe conf$$.file
  13841. if mkdir -p . 2>/dev/null; then
  13842. as_mkdir_p=:
  13843. else
  13844. as_mkdir_p=false
  13845. fi
  13846. as_executable_p="test -f"
  13847. # Sed expression to map a string onto a valid CPP name.
  13848. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  13849. # Sed expression to map a string onto a valid variable name.
  13850. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  13851. # IFS
  13852. # We need space, tab and new line, in precisely that order.
  13853. as_nl='
  13854. '
  13855. IFS=" $as_nl"
  13856. # CDPATH.
  13857. $as_unset CDPATH
  13858. exec 6>&1
  13859. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  13860. # report actual input values of CONFIG_FILES etc. instead of their
  13861. # values after options handling. Logging --version etc. is OK.
  13862. exec 5>>config.log
  13863. {
  13864. echo
  13865. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13866. ## Running $as_me. ##
  13867. _ASBOX
  13868. } >&5
  13869. cat >&5 <<_CSEOF
  13870. This file was extended by $as_me, which was
  13871. generated by GNU Autoconf 2.57. Invocation command line was
  13872. CONFIG_FILES = $CONFIG_FILES
  13873. CONFIG_HEADERS = $CONFIG_HEADERS
  13874. CONFIG_LINKS = $CONFIG_LINKS
  13875. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13876. $ $0 $@
  13877. _CSEOF
  13878. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  13879. echo >&5
  13880. _ACEOF
  13881. # Files that config.status was made for.
  13882. if test -n "$ac_config_files"; then
  13883. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  13884. fi
  13885. if test -n "$ac_config_headers"; then
  13886. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  13887. fi
  13888. if test -n "$ac_config_links"; then
  13889. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  13890. fi
  13891. if test -n "$ac_config_commands"; then
  13892. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  13893. fi
  13894. cat >>$CONFIG_STATUS <<\_ACEOF
  13895. ac_cs_usage="\
  13896. \`$as_me' instantiates files from templates according to the
  13897. current configuration.
  13898. Usage: $0 [OPTIONS] [FILE]...
  13899. -h, --help print this help, then exit
  13900. -V, --version print version number, then exit
  13901. -q, --quiet do not print progress messages
  13902. -d, --debug don't remove temporary files
  13903. --recheck update $as_me by reconfiguring in the same conditions
  13904. --file=FILE[:TEMPLATE]
  13905. instantiate the configuration file FILE
  13906. --header=FILE[:TEMPLATE]
  13907. instantiate the configuration header FILE
  13908. Configuration files:
  13909. $config_files
  13910. Configuration headers:
  13911. $config_headers
  13912. Report bugs to <bug-autoconf@gnu.org>."
  13913. _ACEOF
  13914. cat >>$CONFIG_STATUS <<_ACEOF
  13915. ac_cs_version="\\
  13916. config.status
  13917. configured by $0, generated by GNU Autoconf 2.57,
  13918. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  13919. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  13920. Free Software Foundation, Inc.
  13921. This config.status script is free software; the Free Software Foundation
  13922. gives unlimited permission to copy, distribute and modify it."
  13923. srcdir=$srcdir
  13924. INSTALL="$INSTALL"
  13925. _ACEOF
  13926. cat >>$CONFIG_STATUS <<\_ACEOF
  13927. # If no file are specified by the user, then we need to provide default
  13928. # value. By we need to know if files were specified by the user.
  13929. ac_need_defaults=:
  13930. while test $# != 0
  13931. do
  13932. case $1 in
  13933. --*=*)
  13934. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  13935. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  13936. ac_shift=:
  13937. ;;
  13938. -*)
  13939. ac_option=$1
  13940. ac_optarg=$2
  13941. ac_shift=shift
  13942. ;;
  13943. *) # This is not an option, so the user has probably given explicit
  13944. # arguments.
  13945. ac_option=$1
  13946. ac_need_defaults=false;;
  13947. esac
  13948. case $ac_option in
  13949. # Handling of the options.
  13950. _ACEOF
  13951. cat >>$CONFIG_STATUS <<\_ACEOF
  13952. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13953. ac_cs_recheck=: ;;
  13954. --version | --vers* | -V )
  13955. echo "$ac_cs_version"; exit 0 ;;
  13956. --he | --h)
  13957. # Conflict between --help and --header
  13958. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  13959. Try \`$0 --help' for more information." >&5
  13960. echo "$as_me: error: ambiguous option: $1
  13961. Try \`$0 --help' for more information." >&2;}
  13962. { (exit 1); exit 1; }; };;
  13963. --help | --hel | -h )
  13964. echo "$ac_cs_usage"; exit 0 ;;
  13965. --debug | --d* | -d )
  13966. debug=: ;;
  13967. --file | --fil | --fi | --f )
  13968. $ac_shift
  13969. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  13970. ac_need_defaults=false;;
  13971. --header | --heade | --head | --hea )
  13972. $ac_shift
  13973. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  13974. ac_need_defaults=false;;
  13975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13976. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13977. ac_cs_silent=: ;;
  13978. # This is an error.
  13979. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  13980. Try \`$0 --help' for more information." >&5
  13981. echo "$as_me: error: unrecognized option: $1
  13982. Try \`$0 --help' for more information." >&2;}
  13983. { (exit 1); exit 1; }; } ;;
  13984. *) ac_config_targets="$ac_config_targets $1" ;;
  13985. esac
  13986. shift
  13987. done
  13988. ac_configure_extra_args=
  13989. if $ac_cs_silent; then
  13990. exec 6>/dev/null
  13991. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13992. fi
  13993. _ACEOF
  13994. cat >>$CONFIG_STATUS <<_ACEOF
  13995. if \$ac_cs_recheck; then
  13996. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  13997. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13998. fi
  13999. _ACEOF
  14000. cat >>$CONFIG_STATUS <<\_ACEOF
  14001. for ac_config_target in $ac_config_targets
  14002. do
  14003. case "$ac_config_target" in
  14004. # Handling of arguments.
  14005. "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
  14006. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14007. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14008. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14009. "src/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/graphics/Makefile" ;;
  14010. "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  14011. "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
  14012. "rclock/Makefile" ) CONFIG_FILES="$CONFIG_FILES rclock/Makefile" ;;
  14013. "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
  14014. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
  14015. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14016. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14017. { (exit 1); exit 1; }; };;
  14018. esac
  14019. done
  14020. # If the user did not use the arguments to specify the items to instantiate,
  14021. # then the envvar interface is used. Set only those that are not.
  14022. # We use the long form for the default assignment because of an extremely
  14023. # bizarre bug on SunOS 4.1.3.
  14024. if $ac_need_defaults; then
  14025. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14026. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14027. fi
  14028. # Have a temporary directory for convenience. Make it in the build tree
  14029. # simply because there is no reason to put it here, and in addition,
  14030. # creating and moving files from /tmp can sometimes cause problems.
  14031. # Create a temporary directory, and hook for its removal unless debugging.
  14032. $debug ||
  14033. {
  14034. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  14035. trap '{ (exit 1); exit 1; }' 1 2 13 15
  14036. }
  14037. # Create a (secure) tmp directory for tmp files.
  14038. {
  14039. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  14040. test -n "$tmp" && test -d "$tmp"
  14041. } ||
  14042. {
  14043. tmp=./confstat$$-$RANDOM
  14044. (umask 077 && mkdir $tmp)
  14045. } ||
  14046. {
  14047. echo "$me: cannot create a temporary directory in ." >&2
  14048. { (exit 1); exit 1; }
  14049. }
  14050. _ACEOF
  14051. cat >>$CONFIG_STATUS <<_ACEOF
  14052. #
  14053. # CONFIG_FILES section.
  14054. #
  14055. # No need to generate the scripts if there are no CONFIG_FILES.
  14056. # This happens for instance when ./config.status config.h
  14057. if test -n "\$CONFIG_FILES"; then
  14058. # Protect against being on the right side of a sed subst in config.status.
  14059. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  14060. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  14061. s,@SHELL@,$SHELL,;t t
  14062. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  14063. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  14064. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  14065. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  14066. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  14067. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  14068. s,@exec_prefix@,$exec_prefix,;t t
  14069. s,@prefix@,$prefix,;t t
  14070. s,@program_transform_name@,$program_transform_name,;t t
  14071. s,@bindir@,$bindir,;t t
  14072. s,@sbindir@,$sbindir,;t t
  14073. s,@libexecdir@,$libexecdir,;t t
  14074. s,@datadir@,$datadir,;t t
  14075. s,@sysconfdir@,$sysconfdir,;t t
  14076. s,@sharedstatedir@,$sharedstatedir,;t t
  14077. s,@localstatedir@,$localstatedir,;t t
  14078. s,@libdir@,$libdir,;t t
  14079. s,@includedir@,$includedir,;t t
  14080. s,@oldincludedir@,$oldincludedir,;t t
  14081. s,@infodir@,$infodir,;t t
  14082. s,@mandir@,$mandir,;t t
  14083. s,@build_alias@,$build_alias,;t t
  14084. s,@host_alias@,$host_alias,;t t
  14085. s,@target_alias@,$target_alias,;t t
  14086. s,@DEFS@,$DEFS,;t t
  14087. s,@ECHO_C@,$ECHO_C,;t t
  14088. s,@ECHO_N@,$ECHO_N,;t t
  14089. s,@ECHO_T@,$ECHO_T,;t t
  14090. s,@LIBS@,$LIBS,;t t
  14091. s,@VERSION@,$VERSION,;t t
  14092. s,@DATE@,$DATE,;t t
  14093. s,@LSMDATE@,$LSMDATE,;t t
  14094. s,@LIBVERSION@,$LIBVERSION,;t t
  14095. s,@CC@,$CC,;t t
  14096. s,@CFLAGS@,$CFLAGS,;t t
  14097. s,@LDFLAGS@,$LDFLAGS,;t t
  14098. s,@CPPFLAGS@,$CPPFLAGS,;t t
  14099. s,@ac_ct_CC@,$ac_ct_CC,;t t
  14100. s,@EXEEXT@,$EXEEXT,;t t
  14101. s,@OBJEXT@,$OBJEXT,;t t
  14102. s,@CPP@,$CPP,;t t
  14103. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  14104. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  14105. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  14106. s,@AWK@,$AWK,;t t
  14107. s,@EGREP@,$EGREP,;t t
  14108. s,@build@,$build,;t t
  14109. s,@build_cpu@,$build_cpu,;t t
  14110. s,@build_vendor@,$build_vendor,;t t
  14111. s,@build_os@,$build_os,;t t
  14112. s,@host@,$host,;t t
  14113. s,@host_cpu@,$host_cpu,;t t
  14114. s,@host_vendor@,$host_vendor,;t t
  14115. s,@host_os@,$host_os,;t t
  14116. s,@LN_S@,$LN_S,;t t
  14117. s,@ECHO@,$ECHO,;t t
  14118. s,@RANLIB@,$RANLIB,;t t
  14119. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  14120. s,@STRIP@,$STRIP,;t t
  14121. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  14122. s,@LIBTOOL@,$LIBTOOL,;t t
  14123. s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
  14124. s,@MV@,$MV,;t t
  14125. s,@RM@,$RM,;t t
  14126. s,@CP@,$CP,;t t
  14127. s,@LN@,$LN,;t t
  14128. s,@SED@,$SED,;t t
  14129. s,@CMP@,$CMP,;t t
  14130. s,@TBL@,$TBL,;t t
  14131. s,@X_CFLAGS@,$X_CFLAGS,;t t
  14132. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  14133. s,@X_LIBS@,$X_LIBS,;t t
  14134. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  14135. s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
  14136. s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
  14137. s,@XPM_LIBS@,$XPM_LIBS,;t t
  14138. s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
  14139. s,@rxvt_u_int16_typedef@,$rxvt_u_int16_typedef,;t t
  14140. s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
  14141. s,@rxvt_u_int32_typedef@,$rxvt_u_int32_typedef,;t t
  14142. s,@rxvt_int64_typedef@,$rxvt_int64_typedef,;t t
  14143. s,@rxvt_u_int64_typedef@,$rxvt_u_int64_typedef,;t t
  14144. s,@rxvt_intp_define@,$rxvt_intp_define,;t t
  14145. s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
  14146. s,@DEBUG@,$DEBUG,;t t
  14147. s,@DINCLUDE@,$DINCLUDE,;t t
  14148. s,@DLIB@,$DLIB,;t t
  14149. s,@OBJLIST@,$OBJLIST,;t t
  14150. s,@LIBOBJLIST@,$LIBOBJLIST,;t t
  14151. s,@RXVTNAME@,$RXVTNAME,;t t
  14152. s,@include_stdarg_h@,$include_stdarg_h,;t t
  14153. s,@include_stdlib_h@,$include_stdlib_h,;t t
  14154. s,@include_unistd_h@,$include_unistd_h,;t t
  14155. s,@include_string_h@,$include_string_h,;t t
  14156. s,@include_fcntl_h@,$include_fcntl_h,;t t
  14157. s,@include_util_h@,$include_util_h,;t t
  14158. s,@include_assert_h@,$include_assert_h,;t t
  14159. s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
  14160. s,@include_sys_select_h@,$include_sys_select_h,;t t
  14161. s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
  14162. s,@include_sys_time_h@,$include_sys_time_h,;t t
  14163. s,@include_time_h@,$include_time_h,;t t
  14164. s,@lib_multicharset@,$lib_multicharset,;t t
  14165. s,@LIBOBJS@,$LIBOBJS,;t t
  14166. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  14167. /@MCOMMON@/r $MCOMMON
  14168. s,@MCOMMON@,,;t t
  14169. CEOF
  14170. _ACEOF
  14171. cat >>$CONFIG_STATUS <<\_ACEOF
  14172. # Split the substitutions into bite-sized pieces for seds with
  14173. # small command number limits, like on Digital OSF/1 and HP-UX.
  14174. ac_max_sed_lines=48
  14175. ac_sed_frag=1 # Number of current file.
  14176. ac_beg=1 # First line for current file.
  14177. ac_end=$ac_max_sed_lines # Line after last line for current file.
  14178. ac_more_lines=:
  14179. ac_sed_cmds=
  14180. while $ac_more_lines; do
  14181. if test $ac_beg -gt 1; then
  14182. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  14183. else
  14184. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  14185. fi
  14186. if test ! -s $tmp/subs.frag; then
  14187. ac_more_lines=false
  14188. else
  14189. # The purpose of the label and of the branching condition is to
  14190. # speed up the sed processing (if there are no `@' at all, there
  14191. # is no need to browse any of the substitutions).
  14192. # These are the two extra sed commands mentioned above.
  14193. (echo ':t
  14194. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  14195. if test -z "$ac_sed_cmds"; then
  14196. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  14197. else
  14198. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  14199. fi
  14200. ac_sed_frag=`expr $ac_sed_frag + 1`
  14201. ac_beg=$ac_end
  14202. ac_end=`expr $ac_end + $ac_max_sed_lines`
  14203. fi
  14204. done
  14205. if test -z "$ac_sed_cmds"; then
  14206. ac_sed_cmds=cat
  14207. fi
  14208. fi # test -n "$CONFIG_FILES"
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF
  14211. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  14212. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  14213. case $ac_file in
  14214. - | *:- | *:-:* ) # input from stdin
  14215. cat >$tmp/stdin
  14216. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14217. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14218. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14219. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14220. * ) ac_file_in=$ac_file.in ;;
  14221. esac
  14222. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  14223. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  14224. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14225. X"$ac_file" : 'X\(//\)[^/]' \| \
  14226. X"$ac_file" : 'X\(//\)$' \| \
  14227. X"$ac_file" : 'X\(/\)' \| \
  14228. . : '\(.\)' 2>/dev/null ||
  14229. echo X"$ac_file" |
  14230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14231. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14232. /^X\(\/\/\)$/{ s//\1/; q; }
  14233. /^X\(\/\).*/{ s//\1/; q; }
  14234. s/.*/./; q'`
  14235. { if $as_mkdir_p; then
  14236. mkdir -p "$ac_dir"
  14237. else
  14238. as_dir="$ac_dir"
  14239. as_dirs=
  14240. while test ! -d "$as_dir"; do
  14241. as_dirs="$as_dir $as_dirs"
  14242. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  14243. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14244. X"$as_dir" : 'X\(//\)[^/]' \| \
  14245. X"$as_dir" : 'X\(//\)$' \| \
  14246. X"$as_dir" : 'X\(/\)' \| \
  14247. . : '\(.\)' 2>/dev/null ||
  14248. echo X"$as_dir" |
  14249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14250. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14251. /^X\(\/\/\)$/{ s//\1/; q; }
  14252. /^X\(\/\).*/{ s//\1/; q; }
  14253. s/.*/./; q'`
  14254. done
  14255. test ! -n "$as_dirs" || mkdir $as_dirs
  14256. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  14257. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  14258. { (exit 1); exit 1; }; }; }
  14259. ac_builddir=.
  14260. if test "$ac_dir" != .; then
  14261. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  14262. # A "../" for each directory in $ac_dir_suffix.
  14263. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  14264. else
  14265. ac_dir_suffix= ac_top_builddir=
  14266. fi
  14267. case $srcdir in
  14268. .) # No --srcdir option. We are building in place.
  14269. ac_srcdir=.
  14270. if test -z "$ac_top_builddir"; then
  14271. ac_top_srcdir=.
  14272. else
  14273. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  14274. fi ;;
  14275. [\\/]* | ?:[\\/]* ) # Absolute path.
  14276. ac_srcdir=$srcdir$ac_dir_suffix;
  14277. ac_top_srcdir=$srcdir ;;
  14278. *) # Relative path.
  14279. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  14280. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  14281. esac
  14282. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  14283. # absolute.
  14284. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  14285. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  14286. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  14287. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  14288. case $INSTALL in
  14289. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14290. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  14291. esac
  14292. if test x"$ac_file" != x-; then
  14293. { echo "$as_me:$LINENO: creating $ac_file" >&5
  14294. echo "$as_me: creating $ac_file" >&6;}
  14295. rm -f "$ac_file"
  14296. fi
  14297. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14298. # use $as_me), people would be surprised to read:
  14299. # /* config.h. Generated by config.status. */
  14300. if test x"$ac_file" = x-; then
  14301. configure_input=
  14302. else
  14303. configure_input="$ac_file. "
  14304. fi
  14305. configure_input=$configure_input"Generated from `echo $ac_file_in |
  14306. sed 's,.*/,,'` by configure."
  14307. # First look for the input files in the build tree, otherwise in the
  14308. # src tree.
  14309. ac_file_inputs=`IFS=:
  14310. for f in $ac_file_in; do
  14311. case $f in
  14312. -) echo $tmp/stdin ;;
  14313. [\\/$]*)
  14314. # Absolute (can't be DOS-style, as IFS=:)
  14315. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14316. echo "$as_me: error: cannot find input file: $f" >&2;}
  14317. { (exit 1); exit 1; }; }
  14318. echo $f;;
  14319. *) # Relative
  14320. if test -f "$f"; then
  14321. # Build tree
  14322. echo $f
  14323. elif test -f "$srcdir/$f"; then
  14324. # Source tree
  14325. echo $srcdir/$f
  14326. else
  14327. # /dev/null tree
  14328. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14329. echo "$as_me: error: cannot find input file: $f" >&2;}
  14330. { (exit 1); exit 1; }; }
  14331. fi;;
  14332. esac
  14333. done` || { (exit 1); exit 1; }
  14334. _ACEOF
  14335. cat >>$CONFIG_STATUS <<_ACEOF
  14336. sed "$ac_vpsub
  14337. $extrasub
  14338. _ACEOF
  14339. cat >>$CONFIG_STATUS <<\_ACEOF
  14340. :t
  14341. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14342. s,@configure_input@,$configure_input,;t t
  14343. s,@srcdir@,$ac_srcdir,;t t
  14344. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  14345. s,@top_srcdir@,$ac_top_srcdir,;t t
  14346. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  14347. s,@builddir@,$ac_builddir,;t t
  14348. s,@abs_builddir@,$ac_abs_builddir,;t t
  14349. s,@top_builddir@,$ac_top_builddir,;t t
  14350. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  14351. s,@INSTALL@,$ac_INSTALL,;t t
  14352. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  14353. rm -f $tmp/stdin
  14354. if test x"$ac_file" != x-; then
  14355. mv $tmp/out $ac_file
  14356. else
  14357. cat $tmp/out
  14358. rm -f $tmp/out
  14359. fi
  14360. done
  14361. _ACEOF
  14362. cat >>$CONFIG_STATUS <<\_ACEOF
  14363. #
  14364. # CONFIG_HEADER section.
  14365. #
  14366. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  14367. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  14368. #
  14369. # ac_d sets the value in "#define NAME VALUE" lines.
  14370. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  14371. ac_dB='[ ].*$,\1#\2'
  14372. ac_dC=' '
  14373. ac_dD=',;t'
  14374. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  14375. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  14376. ac_uB='$,\1#\2define\3'
  14377. ac_uC=' '
  14378. ac_uD=',;t'
  14379. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  14380. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  14381. case $ac_file in
  14382. - | *:- | *:-:* ) # input from stdin
  14383. cat >$tmp/stdin
  14384. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14385. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14386. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14387. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14388. * ) ac_file_in=$ac_file.in ;;
  14389. esac
  14390. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  14391. echo "$as_me: creating $ac_file" >&6;}
  14392. # First look for the input files in the build tree, otherwise in the
  14393. # src tree.
  14394. ac_file_inputs=`IFS=:
  14395. for f in $ac_file_in; do
  14396. case $f in
  14397. -) echo $tmp/stdin ;;
  14398. [\\/$]*)
  14399. # Absolute (can't be DOS-style, as IFS=:)
  14400. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14401. echo "$as_me: error: cannot find input file: $f" >&2;}
  14402. { (exit 1); exit 1; }; }
  14403. echo $f;;
  14404. *) # Relative
  14405. if test -f "$f"; then
  14406. # Build tree
  14407. echo $f
  14408. elif test -f "$srcdir/$f"; then
  14409. # Source tree
  14410. echo $srcdir/$f
  14411. else
  14412. # /dev/null tree
  14413. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14414. echo "$as_me: error: cannot find input file: $f" >&2;}
  14415. { (exit 1); exit 1; }; }
  14416. fi;;
  14417. esac
  14418. done` || { (exit 1); exit 1; }
  14419. # Remove the trailing spaces.
  14420. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  14421. _ACEOF
  14422. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  14423. # `conftest.undefs', that substitutes the proper values into
  14424. # config.h.in to produce config.h. The first handles `#define'
  14425. # templates, and the second `#undef' templates.
  14426. # And first: Protect against being on the right side of a sed subst in
  14427. # config.status. Protect against being in an unquoted here document
  14428. # in config.status.
  14429. rm -f conftest.defines conftest.undefs
  14430. # Using a here document instead of a string reduces the quoting nightmare.
  14431. # Putting comments in sed scripts is not portable.
  14432. #
  14433. # `end' is used to avoid that the second main sed command (meant for
  14434. # 0-ary CPP macros) applies to n-ary macro definitions.
  14435. # See the Autoconf documentation for `clear'.
  14436. cat >confdef2sed.sed <<\_ACEOF
  14437. s/[\\&,]/\\&/g
  14438. s,[\\$`],\\&,g
  14439. t clear
  14440. : clear
  14441. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  14442. t end
  14443. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  14444. : end
  14445. _ACEOF
  14446. # If some macros were called several times there might be several times
  14447. # the same #defines, which is useless. Nevertheless, we may not want to
  14448. # sort them, since we want the *last* AC-DEFINE to be honored.
  14449. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  14450. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  14451. rm -f confdef2sed.sed
  14452. # This sed command replaces #undef with comments. This is necessary, for
  14453. # example, in the case of _POSIX_SOURCE, which is predefined and required
  14454. # on some systems where configure will not decide to define it.
  14455. cat >>conftest.undefs <<\_ACEOF
  14456. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  14457. _ACEOF
  14458. # Break up conftest.defines because some shells have a limit on the size
  14459. # of here documents, and old seds have small limits too (100 cmds).
  14460. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  14461. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  14462. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  14463. echo ' :' >>$CONFIG_STATUS
  14464. rm -f conftest.tail
  14465. while grep . conftest.defines >/dev/null
  14466. do
  14467. # Write a limited-size here document to $tmp/defines.sed.
  14468. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  14469. # Speed up: don't consider the non `#define' lines.
  14470. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  14471. # Work around the forget-to-reset-the-flag bug.
  14472. echo 't clr' >>$CONFIG_STATUS
  14473. echo ': clr' >>$CONFIG_STATUS
  14474. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  14475. echo 'CEOF
  14476. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  14477. rm -f $tmp/in
  14478. mv $tmp/out $tmp/in
  14479. ' >>$CONFIG_STATUS
  14480. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  14481. rm -f conftest.defines
  14482. mv conftest.tail conftest.defines
  14483. done
  14484. rm -f conftest.defines
  14485. echo ' fi # grep' >>$CONFIG_STATUS
  14486. echo >>$CONFIG_STATUS
  14487. # Break up conftest.undefs because some shells have a limit on the size
  14488. # of here documents, and old seds have small limits too (100 cmds).
  14489. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  14490. rm -f conftest.tail
  14491. while grep . conftest.undefs >/dev/null
  14492. do
  14493. # Write a limited-size here document to $tmp/undefs.sed.
  14494. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  14495. # Speed up: don't consider the non `#undef'
  14496. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  14497. # Work around the forget-to-reset-the-flag bug.
  14498. echo 't clr' >>$CONFIG_STATUS
  14499. echo ': clr' >>$CONFIG_STATUS
  14500. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  14501. echo 'CEOF
  14502. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  14503. rm -f $tmp/in
  14504. mv $tmp/out $tmp/in
  14505. ' >>$CONFIG_STATUS
  14506. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  14507. rm -f conftest.undefs
  14508. mv conftest.tail conftest.undefs
  14509. done
  14510. rm -f conftest.undefs
  14511. cat >>$CONFIG_STATUS <<\_ACEOF
  14512. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14513. # use $as_me), people would be surprised to read:
  14514. # /* config.h. Generated by config.status. */
  14515. if test x"$ac_file" = x-; then
  14516. echo "/* Generated by configure. */" >$tmp/config.h
  14517. else
  14518. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  14519. fi
  14520. cat $tmp/in >>$tmp/config.h
  14521. rm -f $tmp/in
  14522. if test x"$ac_file" != x-; then
  14523. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  14524. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  14525. echo "$as_me: $ac_file is unchanged" >&6;}
  14526. else
  14527. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  14528. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14529. X"$ac_file" : 'X\(//\)[^/]' \| \
  14530. X"$ac_file" : 'X\(//\)$' \| \
  14531. X"$ac_file" : 'X\(/\)' \| \
  14532. . : '\(.\)' 2>/dev/null ||
  14533. echo X"$ac_file" |
  14534. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14535. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14536. /^X\(\/\/\)$/{ s//\1/; q; }
  14537. /^X\(\/\).*/{ s//\1/; q; }
  14538. s/.*/./; q'`
  14539. { if $as_mkdir_p; then
  14540. mkdir -p "$ac_dir"
  14541. else
  14542. as_dir="$ac_dir"
  14543. as_dirs=
  14544. while test ! -d "$as_dir"; do
  14545. as_dirs="$as_dir $as_dirs"
  14546. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  14547. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14548. X"$as_dir" : 'X\(//\)[^/]' \| \
  14549. X"$as_dir" : 'X\(//\)$' \| \
  14550. X"$as_dir" : 'X\(/\)' \| \
  14551. . : '\(.\)' 2>/dev/null ||
  14552. echo X"$as_dir" |
  14553. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14554. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14555. /^X\(\/\/\)$/{ s//\1/; q; }
  14556. /^X\(\/\).*/{ s//\1/; q; }
  14557. s/.*/./; q'`
  14558. done
  14559. test ! -n "$as_dirs" || mkdir $as_dirs
  14560. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  14561. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  14562. { (exit 1); exit 1; }; }; }
  14563. rm -f $ac_file
  14564. mv $tmp/config.h $ac_file
  14565. fi
  14566. else
  14567. cat $tmp/config.h
  14568. rm -f $tmp/config.h
  14569. fi
  14570. done
  14571. _ACEOF
  14572. cat >>$CONFIG_STATUS <<\_ACEOF
  14573. { (exit 0); exit 0; }
  14574. _ACEOF
  14575. chmod +x $CONFIG_STATUS
  14576. ac_clean_files=$ac_clean_files_save
  14577. # configure is writing to config.log, and then calls config.status.
  14578. # config.status does its own redirection, appending to config.log.
  14579. # Unfortunately, on DOS this fails, as config.log is still kept open
  14580. # by configure, so config.status won't be able to write to it; its
  14581. # output is simply discarded. So we exec the FD to /dev/null,
  14582. # effectively closing config.log, so it can be properly (re)opened and
  14583. # appended to by config.status. When coming back to configure, we
  14584. # need to make the FD available again.
  14585. if test "$no_create" != yes; then
  14586. ac_cs_success=:
  14587. ac_config_status_args=
  14588. test "$silent" = yes &&
  14589. ac_config_status_args="$ac_config_status_args --quiet"
  14590. exec 5>/dev/null
  14591. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14592. exec 5>>config.log
  14593. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14594. # would make configure fail if this is the last instruction.
  14595. $ac_cs_success || { (exit 1); exit 1; }
  14596. fi
  14597. echo "Configuration:
  14598. Rxvt version: $VERSION : $DATE
  14599. Source code location: $srcdir
  14600. Install path: ${prefix}/bin
  14601. Compiler: $CC
  14602. Compiler flags: $CFLAGS"
  14603. if test "$MALLOC_TYPE" = S; then
  14604. echo " malloc support: system default"
  14605. fi
  14606. if test "$MALLOC_TYPE" = G; then
  14607. echo " malloc support: Gray Watson's dmalloc"
  14608. fi
  14609. if test "$MALLOC_TYPE" = D; then
  14610. echo " malloc support: Doug Lea's malloc"
  14611. fi
  14612. if test x$support_xpm = xyes; then
  14613. echo " Xpm library: $XPM_LIBS"
  14614. fi
  14615. echo "
  14616. Adding modules:"
  14617. if test x$OBJGRAPHICS != x; then HASIT="yes"; else HASIT="no"; fi
  14618. echo " graphics.o: "$HASIT
  14619. if test x$OBJGRKELOT != x; then HASIT="yes"; else HASIT="no"; fi
  14620. echo " grkelot.o: "$HASIT
  14621. if test x$OBJLOGGING != x; then HASIT="yes"; else HASIT="no"; fi
  14622. echo " logging.o: "$HASIT
  14623. if test x$OBJMENUBAR != x; then HASIT="yes"; else HASIT="no"; fi
  14624. echo " menubar.o: "$HASIT
  14625. if test x$support_scroll_rxvt = xyes; then HASIT="yes"; else HASIT="no"; fi
  14626. echo " scrollbar-rxvt.o: "$HASIT
  14627. if test x$support_scroll_next = xyes; then HASIT="yes"; else HASIT="no"; fi
  14628. echo " scrollbar-next.o: "$HASIT
  14629. if test x$support_scroll_xterm = xyes; then HASIT="yes"; else HASIT="no"; fi
  14630. echo " scrollbar-xterm.o: "$HASIT
  14631. if test x$OBJSTRINGS != x; then HASIT="yes"; else HASIT="no"; fi
  14632. echo " strings.o: "$HASIT
  14633. if test x$OBJXPM != x; then HASIT="yes"; else HASIT="no"; fi
  14634. echo " xpm.o: "$HASIT
  14635. echo "
  14636. The following are set in config.h
  14637. "
  14638. echo " multichar glyph languages: "$multichar_set
  14639. echo " pty/tty type: "$rxvt_cv_ptys
  14640. if test x$support_utmp != xyes; then
  14641. echo " utmp support: disabled
  14642. "
  14643. else
  14644. echo " utmp support: enabled
  14645. utmp file: $rxvt_cv_path_utmp
  14646. utmpx file: $rxvt_cv_path_utmpx
  14647. wtmp file: $rxvt_cv_path_wtmp
  14648. wtmpx file: $rxvt_cv_path_wtmpx
  14649. lastlog file: $rxvt_cv_path_lastlog
  14650. ttys/ttytab file: $rxvt_cv_path_ttytab
  14651. "
  14652. fi
  14653. if test x$term != x; then
  14654. echo " set TERM to: $term
  14655. "
  14656. fi
  14657. if test x$terminfo != x; then
  14658. echo " set TERMINFO to: $terminfo
  14659. "
  14660. fi
  14661. if test x$rxvt_cv_ptys = xUNKNOWN; then
  14662. echo ".----------------------------------------------------------------."
  14663. echo ". WARNING: could not determine pty/tty type. Do not build until ."
  14664. echo ". the appropriate PTYS_ARE_* is defined in config.h ."
  14665. echo ".----------------------------------------------------------------."
  14666. fi
  14667. if test x$support_xpm = xneedsmanualspecification; then
  14668. echo ".----------------------------------------------------------------."
  14669. echo ". WARNING: --enable-xpm-background was specified however the ."
  14670. echo ". XPM includes files and libraries could not be found. ."
  14671. echo ". XPM backgrounds are now being DISABLED! If you want ."
  14672. echo ". to use them you should rerun configure with the ."
  14673. echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
  14674. echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
  14675. echo ".----------------------------------------------------------------."
  14676. fi
  14677. if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
  14678. echo ".----------------------------------------------------------------."
  14679. echo ". WARNING: --enable-xim was specified however the locale support ."
  14680. echo ". functions could not be found. ."
  14681. echo ". XIM is now being DISABLED! ."
  14682. echo ".----------------------------------------------------------------."
  14683. fi
  14684. echo " *** Please check src/feature.h for further options ***
  14685. "